protores.js 3.2 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815618166181761818618196182061821618226182361824618256182661827618286182961830618316183261833618346183561836618376183861839618406184161842618436184461845618466184761848618496185061851618526185361854618556185661857618586185961860618616186261863618646186561866618676186861869618706187161872618736187461875618766187761878618796188061881618826188361884618856188661887618886188961890618916189261893618946189561896618976189861899619006190161902619036190461905619066190761908619096191061911619126191361914619156191661917619186191961920619216192261923619246192561926619276192861929619306193161932619336193461935619366193761938619396194061941619426194361944619456194661947619486194961950619516195261953619546195561956619576195861959619606196161962619636196461965619666196761968619696197061971619726197361974619756197661977619786197961980619816198261983619846198561986619876198861989619906199161992619936199461995619966199761998619996200062001620026200362004620056200662007620086200962010620116201262013620146201562016620176201862019620206202162022620236202462025620266202762028620296203062031620326203362034620356203662037620386203962040620416204262043620446204562046620476204862049620506205162052620536205462055620566205762058620596206062061620626206362064620656206662067620686206962070620716207262073620746207562076620776207862079620806208162082620836208462085620866208762088620896209062091620926209362094620956209662097620986209962100621016210262103621046210562106621076210862109621106211162112621136211462115621166211762118621196212062121621226212362124621256212662127621286212962130621316213262133621346213562136621376213862139621406214162142621436214462145621466214762148621496215062151621526215362154621556215662157621586215962160621616216262163621646216562166621676216862169621706217162172621736217462175621766217762178621796218062181621826218362184621856218662187621886218962190621916219262193621946219562196621976219862199622006220162202622036220462205622066220762208622096221062211622126221362214622156221662217622186221962220622216222262223622246222562226622276222862229622306223162232622336223462235622366223762238622396224062241622426224362244622456224662247622486224962250622516225262253622546225562256622576225862259622606226162262622636226462265622666226762268622696227062271622726227362274622756227662277622786227962280622816228262283622846228562286622876228862289622906229162292622936229462295622966229762298622996230062301623026230362304623056230662307623086230962310623116231262313623146231562316623176231862319623206232162322623236232462325623266232762328623296233062331623326233362334623356233662337623386233962340623416234262343623446234562346623476234862349623506235162352623536235462355623566235762358623596236062361623626236362364623656236662367623686236962370623716237262373623746237562376623776237862379623806238162382623836238462385623866238762388623896239062391623926239362394623956239662397623986239962400624016240262403624046240562406624076240862409624106241162412624136241462415624166241762418624196242062421624226242362424624256242662427624286242962430624316243262433624346243562436624376243862439624406244162442624436244462445624466244762448624496245062451624526245362454624556245662457624586245962460624616246262463624646246562466624676246862469624706247162472624736247462475624766247762478624796248062481624826248362484624856248662487624886248962490624916249262493624946249562496624976249862499625006250162502625036250462505625066250762508625096251062511625126251362514625156251662517625186251962520625216252262523625246252562526625276252862529625306253162532625336253462535625366253762538625396254062541625426254362544625456254662547625486254962550625516255262553625546255562556625576255862559625606256162562625636256462565625666256762568625696257062571625726257362574625756257662577625786257962580625816258262583625846258562586625876258862589625906259162592625936259462595625966259762598625996260062601626026260362604626056260662607626086260962610626116261262613626146261562616626176261862619626206262162622626236262462625626266262762628626296263062631626326263362634626356263662637626386263962640626416264262643626446264562646626476264862649626506265162652626536265462655626566265762658626596266062661626626266362664626656266662667626686266962670626716267262673626746267562676626776267862679626806268162682626836268462685626866268762688626896269062691626926269362694626956269662697626986269962700627016270262703627046270562706627076270862709627106271162712627136271462715627166271762718627196272062721627226272362724627256272662727627286272962730627316273262733627346273562736627376273862739627406274162742627436274462745627466274762748627496275062751627526275362754627556275662757627586275962760627616276262763627646276562766627676276862769627706277162772627736277462775627766277762778627796278062781627826278362784627856278662787627886278962790627916279262793627946279562796627976279862799628006280162802628036280462805628066280762808628096281062811628126281362814628156281662817628186281962820628216282262823628246282562826628276282862829628306283162832628336283462835628366283762838628396284062841628426284362844628456284662847628486284962850628516285262853628546285562856628576285862859628606286162862628636286462865628666286762868628696287062871628726287362874628756287662877628786287962880628816288262883628846288562886628876288862889628906289162892628936289462895628966289762898628996290062901629026290362904629056290662907629086290962910629116291262913629146291562916629176291862919629206292162922629236292462925629266292762928629296293062931629326293362934629356293662937629386293962940629416294262943629446294562946629476294862949629506295162952629536295462955629566295762958629596296062961629626296362964629656296662967629686296962970629716297262973629746297562976629776297862979629806298162982629836298462985629866298762988629896299062991629926299362994629956299662997629986299963000630016300263003630046300563006630076300863009630106301163012630136301463015630166301763018630196302063021630226302363024630256302663027630286302963030630316303263033630346303563036630376303863039630406304163042630436304463045630466304763048630496305063051630526305363054630556305663057630586305963060630616306263063630646306563066630676306863069630706307163072630736307463075630766307763078630796308063081630826308363084630856308663087630886308963090630916309263093630946309563096630976309863099631006310163102631036310463105631066310763108631096311063111631126311363114631156311663117631186311963120631216312263123631246312563126631276312863129631306313163132631336313463135631366313763138631396314063141631426314363144631456314663147631486314963150631516315263153631546315563156631576315863159631606316163162631636316463165631666316763168631696317063171631726317363174631756317663177631786317963180631816318263183631846318563186631876318863189631906319163192631936319463195631966319763198631996320063201632026320363204632056320663207632086320963210632116321263213632146321563216632176321863219632206322163222632236322463225632266322763228632296323063231632326323363234632356323663237632386323963240632416324263243632446324563246632476324863249632506325163252632536325463255632566325763258632596326063261632626326363264632656326663267632686326963270632716327263273632746327563276632776327863279632806328163282632836328463285632866328763288632896329063291632926329363294632956329663297632986329963300633016330263303633046330563306633076330863309633106331163312633136331463315633166331763318633196332063321633226332363324633256332663327633286332963330633316333263333633346333563336633376333863339633406334163342633436334463345633466334763348633496335063351633526335363354633556335663357633586335963360633616336263363633646336563366633676336863369633706337163372633736337463375633766337763378633796338063381633826338363384633856338663387633886338963390633916339263393633946339563396633976339863399634006340163402634036340463405634066340763408634096341063411634126341363414634156341663417634186341963420634216342263423634246342563426634276342863429634306343163432634336343463435634366343763438634396344063441634426344363444634456344663447634486344963450634516345263453634546345563456634576345863459634606346163462634636346463465634666346763468634696347063471634726347363474634756347663477634786347963480634816348263483634846348563486634876348863489634906349163492634936349463495634966349763498634996350063501635026350363504635056350663507635086350963510635116351263513635146351563516635176351863519635206352163522635236352463525635266352763528635296353063531635326353363534635356353663537635386353963540635416354263543635446354563546635476354863549635506355163552635536355463555635566355763558635596356063561635626356363564635656356663567635686356963570635716357263573635746357563576635776357863579635806358163582635836358463585635866358763588635896359063591635926359363594635956359663597635986359963600636016360263603636046360563606636076360863609636106361163612636136361463615636166361763618636196362063621636226362363624636256362663627636286362963630636316363263633636346363563636636376363863639636406364163642636436364463645636466364763648636496365063651636526365363654636556365663657636586365963660636616366263663636646366563666636676366863669636706367163672636736367463675636766367763678636796368063681636826368363684636856368663687636886368963690636916369263693636946369563696636976369863699637006370163702637036370463705637066370763708637096371063711637126371363714637156371663717637186371963720637216372263723637246372563726637276372863729637306373163732637336373463735637366373763738637396374063741637426374363744637456374663747637486374963750637516375263753637546375563756637576375863759637606376163762637636376463765637666376763768637696377063771637726377363774637756377663777637786377963780637816378263783637846378563786637876378863789637906379163792637936379463795637966379763798637996380063801638026380363804638056380663807638086380963810638116381263813638146381563816638176381863819638206382163822638236382463825638266382763828638296383063831638326383363834638356383663837638386383963840638416384263843638446384563846638476384863849638506385163852638536385463855638566385763858638596386063861638626386363864638656386663867638686386963870638716387263873638746387563876638776387863879638806388163882638836388463885638866388763888638896389063891638926389363894638956389663897638986389963900639016390263903639046390563906639076390863909639106391163912639136391463915639166391763918639196392063921639226392363924639256392663927639286392963930639316393263933639346393563936639376393863939639406394163942639436394463945639466394763948639496395063951639526395363954639556395663957639586395963960639616396263963639646396563966639676396863969639706397163972639736397463975639766397763978639796398063981639826398363984639856398663987639886398963990639916399263993639946399563996639976399863999640006400164002640036400464005640066400764008640096401064011640126401364014640156401664017640186401964020640216402264023640246402564026640276402864029640306403164032640336403464035640366403764038640396404064041640426404364044640456404664047640486404964050640516405264053640546405564056640576405864059640606406164062640636406464065640666406764068640696407064071640726407364074640756407664077640786407964080640816408264083640846408564086640876408864089640906409164092640936409464095640966409764098640996410064101641026410364104641056410664107641086410964110641116411264113641146411564116641176411864119641206412164122641236412464125641266412764128641296413064131641326413364134641356413664137641386413964140641416414264143641446414564146641476414864149641506415164152641536415464155641566415764158641596416064161641626416364164641656416664167641686416964170641716417264173641746417564176641776417864179641806418164182641836418464185641866418764188641896419064191641926419364194641956419664197641986419964200642016420264203642046420564206642076420864209642106421164212642136421464215642166421764218642196422064221642226422364224642256422664227642286422964230642316423264233642346423564236642376423864239642406424164242642436424464245642466424764248642496425064251642526425364254642556425664257642586425964260642616426264263642646426564266642676426864269642706427164272642736427464275642766427764278642796428064281642826428364284642856428664287642886428964290642916429264293642946429564296642976429864299643006430164302643036430464305643066430764308643096431064311643126431364314643156431664317643186431964320643216432264323643246432564326643276432864329643306433164332643336433464335643366433764338643396434064341643426434364344643456434664347643486434964350643516435264353643546435564356643576435864359643606436164362643636436464365643666436764368643696437064371643726437364374643756437664377643786437964380643816438264383643846438564386643876438864389643906439164392643936439464395643966439764398643996440064401644026440364404644056440664407644086440964410644116441264413644146441564416644176441864419644206442164422644236442464425644266442764428644296443064431644326443364434644356443664437644386443964440644416444264443644446444564446644476444864449644506445164452644536445464455644566445764458644596446064461644626446364464644656446664467644686446964470644716447264473644746447564476644776447864479644806448164482644836448464485644866448764488644896449064491644926449364494644956449664497644986449964500645016450264503645046450564506645076450864509645106451164512645136451464515645166451764518645196452064521645226452364524645256452664527645286452964530645316453264533645346453564536645376453864539645406454164542645436454464545645466454764548645496455064551645526455364554645556455664557645586455964560645616456264563645646456564566645676456864569645706457164572645736457464575645766457764578645796458064581645826458364584645856458664587645886458964590645916459264593645946459564596645976459864599646006460164602646036460464605646066460764608646096461064611646126461364614646156461664617646186461964620646216462264623646246462564626646276462864629646306463164632646336463464635646366463764638646396464064641646426464364644646456464664647646486464964650646516465264653646546465564656646576465864659646606466164662646636466464665646666466764668646696467064671646726467364674646756467664677646786467964680646816468264683646846468564686646876468864689646906469164692646936469464695646966469764698646996470064701647026470364704647056470664707647086470964710647116471264713647146471564716647176471864719647206472164722647236472464725647266472764728647296473064731647326473364734647356473664737647386473964740647416474264743647446474564746647476474864749647506475164752647536475464755647566475764758647596476064761647626476364764647656476664767647686476964770647716477264773647746477564776647776477864779647806478164782647836478464785647866478764788647896479064791647926479364794647956479664797647986479964800648016480264803648046480564806648076480864809648106481164812648136481464815648166481764818648196482064821648226482364824648256482664827648286482964830648316483264833648346483564836648376483864839648406484164842648436484464845648466484764848648496485064851648526485364854648556485664857648586485964860648616486264863648646486564866648676486864869648706487164872648736487464875648766487764878648796488064881648826488364884648856488664887648886488964890648916489264893648946489564896648976489864899649006490164902649036490464905649066490764908649096491064911649126491364914649156491664917649186491964920649216492264923649246492564926649276492864929649306493164932649336493464935649366493764938649396494064941649426494364944649456494664947649486494964950649516495264953649546495564956649576495864959649606496164962649636496464965649666496764968649696497064971649726497364974649756497664977649786497964980649816498264983649846498564986649876498864989649906499164992649936499464995649966499764998649996500065001650026500365004650056500665007650086500965010650116501265013650146501565016650176501865019650206502165022650236502465025650266502765028650296503065031650326503365034650356503665037650386503965040650416504265043650446504565046650476504865049650506505165052650536505465055650566505765058650596506065061650626506365064650656506665067650686506965070650716507265073650746507565076650776507865079650806508165082650836508465085650866508765088650896509065091650926509365094650956509665097650986509965100651016510265103651046510565106651076510865109651106511165112651136511465115651166511765118651196512065121651226512365124651256512665127651286512965130651316513265133651346513565136651376513865139651406514165142651436514465145651466514765148651496515065151651526515365154651556515665157651586515965160651616516265163651646516565166651676516865169651706517165172651736517465175651766517765178651796518065181651826518365184651856518665187651886518965190651916519265193651946519565196651976519865199652006520165202652036520465205652066520765208652096521065211652126521365214652156521665217652186521965220652216522265223652246522565226652276522865229652306523165232652336523465235652366523765238652396524065241652426524365244652456524665247652486524965250652516525265253652546525565256652576525865259652606526165262652636526465265652666526765268652696527065271652726527365274652756527665277652786527965280652816528265283652846528565286652876528865289652906529165292652936529465295652966529765298652996530065301653026530365304653056530665307653086530965310653116531265313653146531565316653176531865319653206532165322653236532465325653266532765328653296533065331653326533365334653356533665337653386533965340653416534265343653446534565346653476534865349653506535165352653536535465355653566535765358653596536065361653626536365364653656536665367653686536965370653716537265373653746537565376653776537865379653806538165382653836538465385653866538765388653896539065391653926539365394653956539665397653986539965400654016540265403654046540565406654076540865409654106541165412654136541465415654166541765418654196542065421654226542365424654256542665427654286542965430654316543265433654346543565436654376543865439654406544165442654436544465445654466544765448654496545065451654526545365454654556545665457654586545965460654616546265463654646546565466654676546865469654706547165472654736547465475654766547765478654796548065481654826548365484654856548665487654886548965490654916549265493654946549565496654976549865499655006550165502655036550465505655066550765508655096551065511655126551365514655156551665517655186551965520655216552265523655246552565526655276552865529655306553165532655336553465535655366553765538655396554065541655426554365544655456554665547655486554965550655516555265553655546555565556655576555865559655606556165562655636556465565655666556765568655696557065571655726557365574655756557665577655786557965580655816558265583655846558565586655876558865589655906559165592655936559465595655966559765598655996560065601656026560365604656056560665607656086560965610656116561265613656146561565616656176561865619656206562165622656236562465625656266562765628656296563065631656326563365634656356563665637656386563965640656416564265643656446564565646656476564865649656506565165652656536565465655656566565765658656596566065661656626566365664656656566665667656686566965670656716567265673656746567565676656776567865679656806568165682656836568465685656866568765688656896569065691656926569365694656956569665697656986569965700657016570265703657046570565706657076570865709657106571165712657136571465715657166571765718657196572065721657226572365724657256572665727657286572965730657316573265733657346573565736657376573865739657406574165742657436574465745657466574765748657496575065751657526575365754657556575665757657586575965760657616576265763657646576565766657676576865769657706577165772657736577465775657766577765778657796578065781657826578365784657856578665787657886578965790657916579265793657946579565796657976579865799658006580165802658036580465805658066580765808658096581065811658126581365814658156581665817658186581965820658216582265823658246582565826658276582865829658306583165832658336583465835658366583765838658396584065841658426584365844658456584665847658486584965850658516585265853658546585565856658576585865859658606586165862658636586465865658666586765868658696587065871658726587365874658756587665877658786587965880658816588265883658846588565886658876588865889658906589165892658936589465895658966589765898658996590065901659026590365904659056590665907659086590965910659116591265913659146591565916659176591865919659206592165922659236592465925659266592765928659296593065931659326593365934659356593665937659386593965940659416594265943659446594565946659476594865949659506595165952659536595465955659566595765958659596596065961659626596365964659656596665967659686596965970659716597265973659746597565976659776597865979659806598165982659836598465985659866598765988659896599065991659926599365994659956599665997659986599966000660016600266003660046600566006660076600866009660106601166012660136601466015660166601766018660196602066021660226602366024660256602666027660286602966030660316603266033660346603566036660376603866039660406604166042660436604466045660466604766048660496605066051660526605366054660556605666057660586605966060660616606266063660646606566066660676606866069660706607166072660736607466075660766607766078660796608066081660826608366084660856608666087660886608966090660916609266093660946609566096660976609866099661006610166102661036610466105661066610766108661096611066111661126611366114661156611666117661186611966120661216612266123661246612566126661276612866129661306613166132661336613466135661366613766138661396614066141661426614366144661456614666147661486614966150661516615266153661546615566156661576615866159661606616166162661636616466165661666616766168661696617066171661726617366174661756617666177661786617966180661816618266183661846618566186661876618866189661906619166192661936619466195661966619766198661996620066201662026620366204662056620666207662086620966210662116621266213662146621566216662176621866219662206622166222662236622466225662266622766228662296623066231662326623366234662356623666237662386623966240662416624266243662446624566246662476624866249662506625166252662536625466255662566625766258662596626066261662626626366264662656626666267662686626966270662716627266273662746627566276662776627866279662806628166282662836628466285662866628766288662896629066291662926629366294662956629666297662986629966300663016630266303663046630566306663076630866309663106631166312663136631466315663166631766318663196632066321663226632366324663256632666327663286632966330663316633266333663346633566336663376633866339663406634166342663436634466345663466634766348663496635066351663526635366354663556635666357663586635966360663616636266363663646636566366663676636866369663706637166372663736637466375663766637766378663796638066381663826638366384663856638666387663886638966390663916639266393663946639566396663976639866399664006640166402664036640466405664066640766408664096641066411664126641366414664156641666417664186641966420664216642266423664246642566426664276642866429664306643166432664336643466435664366643766438664396644066441664426644366444664456644666447664486644966450664516645266453664546645566456664576645866459664606646166462664636646466465664666646766468664696647066471664726647366474664756647666477664786647966480664816648266483664846648566486664876648866489664906649166492664936649466495664966649766498664996650066501665026650366504665056650666507665086650966510665116651266513665146651566516665176651866519665206652166522665236652466525665266652766528665296653066531665326653366534665356653666537665386653966540665416654266543665446654566546665476654866549665506655166552665536655466555665566655766558665596656066561665626656366564665656656666567665686656966570665716657266573665746657566576665776657866579665806658166582665836658466585665866658766588665896659066591665926659366594665956659666597665986659966600666016660266603666046660566606666076660866609666106661166612666136661466615666166661766618666196662066621666226662366624666256662666627666286662966630666316663266633666346663566636666376663866639666406664166642666436664466645666466664766648666496665066651666526665366654666556665666657666586665966660666616666266663666646666566666666676666866669666706667166672666736667466675666766667766678666796668066681666826668366684666856668666687666886668966690666916669266693666946669566696666976669866699667006670166702667036670466705667066670766708667096671066711667126671366714667156671666717667186671966720667216672266723667246672566726667276672866729667306673166732667336673466735667366673766738667396674066741667426674366744667456674666747667486674966750667516675266753667546675566756667576675866759667606676166762667636676466765667666676766768667696677066771667726677366774667756677666777667786677966780667816678266783667846678566786667876678866789667906679166792667936679466795667966679766798667996680066801668026680366804668056680666807668086680966810668116681266813668146681566816668176681866819668206682166822668236682466825668266682766828668296683066831668326683366834668356683666837668386683966840668416684266843668446684566846668476684866849668506685166852668536685466855668566685766858668596686066861668626686366864668656686666867668686686966870668716687266873668746687566876668776687866879668806688166882668836688466885668866688766888668896689066891668926689366894668956689666897668986689966900669016690266903669046690566906669076690866909669106691166912669136691466915669166691766918669196692066921669226692366924669256692666927669286692966930669316693266933669346693566936669376693866939669406694166942669436694466945669466694766948669496695066951669526695366954669556695666957669586695966960669616696266963669646696566966669676696866969669706697166972669736697466975669766697766978669796698066981669826698366984669856698666987669886698966990669916699266993669946699566996669976699866999670006700167002670036700467005670066700767008670096701067011670126701367014670156701667017670186701967020670216702267023670246702567026670276702867029670306703167032670336703467035670366703767038670396704067041670426704367044670456704667047670486704967050670516705267053670546705567056670576705867059670606706167062670636706467065670666706767068670696707067071670726707367074670756707667077670786707967080670816708267083670846708567086670876708867089670906709167092670936709467095670966709767098670996710067101671026710367104671056710667107671086710967110671116711267113671146711567116671176711867119671206712167122671236712467125671266712767128671296713067131671326713367134671356713667137671386713967140671416714267143671446714567146671476714867149671506715167152671536715467155671566715767158671596716067161671626716367164671656716667167671686716967170671716717267173671746717567176671776717867179671806718167182671836718467185671866718767188671896719067191671926719367194671956719667197671986719967200672016720267203672046720567206672076720867209672106721167212672136721467215672166721767218672196722067221672226722367224672256722667227672286722967230672316723267233672346723567236672376723867239672406724167242672436724467245672466724767248672496725067251672526725367254672556725667257672586725967260672616726267263672646726567266672676726867269672706727167272672736727467275672766727767278672796728067281672826728367284672856728667287672886728967290672916729267293672946729567296672976729867299673006730167302673036730467305673066730767308673096731067311673126731367314673156731667317673186731967320673216732267323673246732567326673276732867329673306733167332673336733467335673366733767338673396734067341673426734367344673456734667347673486734967350673516735267353673546735567356673576735867359673606736167362673636736467365673666736767368673696737067371673726737367374673756737667377673786737967380673816738267383673846738567386673876738867389673906739167392673936739467395673966739767398673996740067401674026740367404674056740667407674086740967410674116741267413674146741567416674176741867419674206742167422674236742467425674266742767428674296743067431674326743367434674356743667437674386743967440674416744267443674446744567446674476744867449674506745167452674536745467455674566745767458674596746067461674626746367464674656746667467674686746967470674716747267473674746747567476674776747867479674806748167482674836748467485674866748767488674896749067491674926749367494674956749667497674986749967500675016750267503675046750567506675076750867509675106751167512675136751467515675166751767518675196752067521675226752367524675256752667527675286752967530675316753267533675346753567536675376753867539675406754167542675436754467545675466754767548675496755067551675526755367554675556755667557675586755967560675616756267563675646756567566675676756867569675706757167572675736757467575675766757767578675796758067581675826758367584675856758667587675886758967590675916759267593675946759567596675976759867599676006760167602676036760467605676066760767608676096761067611676126761367614676156761667617676186761967620676216762267623676246762567626676276762867629676306763167632676336763467635676366763767638676396764067641676426764367644676456764667647676486764967650676516765267653676546765567656676576765867659676606766167662676636766467665676666766767668676696767067671676726767367674676756767667677676786767967680676816768267683676846768567686676876768867689676906769167692676936769467695676966769767698676996770067701677026770367704677056770667707677086770967710677116771267713677146771567716677176771867719677206772167722677236772467725677266772767728677296773067731677326773367734677356773667737677386773967740677416774267743677446774567746677476774867749677506775167752677536775467755677566775767758677596776067761677626776367764677656776667767677686776967770677716777267773677746777567776677776777867779677806778167782677836778467785677866778767788677896779067791677926779367794677956779667797677986779967800678016780267803678046780567806678076780867809678106781167812678136781467815678166781767818678196782067821678226782367824678256782667827678286782967830678316783267833678346783567836678376783867839678406784167842678436784467845678466784767848678496785067851678526785367854678556785667857678586785967860678616786267863678646786567866678676786867869678706787167872678736787467875678766787767878678796788067881678826788367884678856788667887678886788967890678916789267893678946789567896678976789867899679006790167902679036790467905679066790767908679096791067911679126791367914679156791667917679186791967920679216792267923679246792567926679276792867929679306793167932679336793467935679366793767938679396794067941679426794367944679456794667947679486794967950679516795267953679546795567956679576795867959679606796167962679636796467965679666796767968679696797067971679726797367974679756797667977679786797967980679816798267983679846798567986679876798867989679906799167992679936799467995679966799767998679996800068001680026800368004680056800668007680086800968010680116801268013680146801568016680176801868019680206802168022680236802468025680266802768028680296803068031680326803368034680356803668037680386803968040680416804268043680446804568046680476804868049680506805168052680536805468055680566805768058680596806068061680626806368064680656806668067680686806968070680716807268073680746807568076680776807868079680806808168082680836808468085680866808768088680896809068091680926809368094680956809668097680986809968100681016810268103681046810568106681076810868109681106811168112681136811468115681166811768118681196812068121681226812368124681256812668127681286812968130681316813268133681346813568136681376813868139681406814168142681436814468145681466814768148681496815068151681526815368154681556815668157681586815968160681616816268163681646816568166681676816868169681706817168172681736817468175681766817768178681796818068181681826818368184681856818668187681886818968190681916819268193681946819568196681976819868199682006820168202682036820468205682066820768208682096821068211682126821368214682156821668217682186821968220682216822268223682246822568226682276822868229682306823168232682336823468235682366823768238682396824068241682426824368244682456824668247682486824968250682516825268253682546825568256682576825868259682606826168262682636826468265682666826768268682696827068271682726827368274682756827668277682786827968280682816828268283682846828568286682876828868289682906829168292682936829468295682966829768298682996830068301683026830368304683056830668307683086830968310683116831268313683146831568316683176831868319683206832168322683236832468325683266832768328683296833068331683326833368334683356833668337683386833968340683416834268343683446834568346683476834868349683506835168352683536835468355683566835768358683596836068361683626836368364683656836668367683686836968370683716837268373683746837568376683776837868379683806838168382683836838468385683866838768388683896839068391683926839368394683956839668397683986839968400684016840268403684046840568406684076840868409684106841168412684136841468415684166841768418684196842068421684226842368424684256842668427684286842968430684316843268433684346843568436684376843868439684406844168442684436844468445684466844768448684496845068451684526845368454684556845668457684586845968460684616846268463684646846568466684676846868469684706847168472684736847468475684766847768478684796848068481684826848368484684856848668487684886848968490684916849268493684946849568496684976849868499685006850168502685036850468505685066850768508685096851068511685126851368514685156851668517685186851968520685216852268523685246852568526685276852868529685306853168532685336853468535685366853768538685396854068541685426854368544685456854668547685486854968550685516855268553685546855568556685576855868559685606856168562685636856468565685666856768568685696857068571685726857368574685756857668577685786857968580685816858268583685846858568586685876858868589685906859168592685936859468595685966859768598685996860068601686026860368604686056860668607686086860968610686116861268613686146861568616686176861868619686206862168622686236862468625686266862768628686296863068631686326863368634686356863668637686386863968640686416864268643686446864568646686476864868649686506865168652686536865468655686566865768658686596866068661686626866368664686656866668667686686866968670686716867268673686746867568676686776867868679686806868168682686836868468685686866868768688686896869068691686926869368694686956869668697686986869968700687016870268703687046870568706687076870868709687106871168712687136871468715687166871768718687196872068721687226872368724687256872668727687286872968730687316873268733687346873568736687376873868739687406874168742687436874468745687466874768748687496875068751687526875368754687556875668757687586875968760687616876268763687646876568766687676876868769687706877168772687736877468775687766877768778687796878068781687826878368784687856878668787687886878968790687916879268793687946879568796687976879868799688006880168802688036880468805688066880768808688096881068811688126881368814688156881668817688186881968820688216882268823688246882568826688276882868829688306883168832688336883468835688366883768838688396884068841688426884368844688456884668847688486884968850688516885268853688546885568856688576885868859688606886168862688636886468865688666886768868688696887068871688726887368874688756887668877688786887968880688816888268883688846888568886688876888868889688906889168892688936889468895688966889768898688996890068901689026890368904689056890668907689086890968910689116891268913689146891568916689176891868919689206892168922689236892468925689266892768928689296893068931689326893368934689356893668937689386893968940689416894268943689446894568946689476894868949689506895168952689536895468955689566895768958689596896068961689626896368964689656896668967689686896968970689716897268973689746897568976689776897868979689806898168982689836898468985689866898768988689896899068991689926899368994689956899668997689986899969000690016900269003690046900569006690076900869009690106901169012690136901469015690166901769018690196902069021690226902369024690256902669027690286902969030690316903269033690346903569036690376903869039690406904169042690436904469045690466904769048690496905069051690526905369054690556905669057690586905969060690616906269063690646906569066690676906869069690706907169072690736907469075690766907769078690796908069081690826908369084690856908669087690886908969090690916909269093690946909569096690976909869099691006910169102691036910469105691066910769108691096911069111691126911369114691156911669117691186911969120691216912269123691246912569126691276912869129691306913169132691336913469135691366913769138691396914069141691426914369144691456914669147691486914969150691516915269153691546915569156691576915869159691606916169162691636916469165691666916769168691696917069171691726917369174691756917669177691786917969180691816918269183691846918569186691876918869189691906919169192691936919469195691966919769198691996920069201692026920369204692056920669207692086920969210692116921269213692146921569216692176921869219692206922169222692236922469225692266922769228692296923069231692326923369234692356923669237692386923969240692416924269243692446924569246692476924869249692506925169252692536925469255692566925769258692596926069261692626926369264692656926669267692686926969270692716927269273692746927569276692776927869279692806928169282692836928469285692866928769288692896929069291692926929369294692956929669297692986929969300693016930269303693046930569306693076930869309693106931169312693136931469315693166931769318693196932069321693226932369324693256932669327693286932969330693316933269333693346933569336693376933869339693406934169342693436934469345693466934769348693496935069351693526935369354693556935669357693586935969360693616936269363693646936569366693676936869369693706937169372693736937469375693766937769378693796938069381693826938369384693856938669387693886938969390693916939269393693946939569396693976939869399694006940169402694036940469405694066940769408694096941069411694126941369414694156941669417694186941969420694216942269423694246942569426694276942869429694306943169432694336943469435694366943769438694396944069441694426944369444694456944669447694486944969450694516945269453694546945569456694576945869459694606946169462694636946469465694666946769468694696947069471694726947369474694756947669477694786947969480694816948269483694846948569486694876948869489694906949169492694936949469495694966949769498694996950069501695026950369504695056950669507695086950969510695116951269513695146951569516695176951869519695206952169522695236952469525695266952769528695296953069531695326953369534695356953669537695386953969540695416954269543695446954569546695476954869549695506955169552695536955469555695566955769558695596956069561695626956369564695656956669567695686956969570695716957269573695746957569576695776957869579695806958169582695836958469585695866958769588695896959069591695926959369594695956959669597695986959969600696016960269603696046960569606696076960869609696106961169612696136961469615696166961769618696196962069621696226962369624696256962669627696286962969630696316963269633696346963569636696376963869639696406964169642696436964469645696466964769648696496965069651696526965369654696556965669657696586965969660696616966269663696646966569666696676966869669696706967169672696736967469675696766967769678696796968069681696826968369684696856968669687696886968969690696916969269693696946969569696696976969869699697006970169702697036970469705697066970769708697096971069711697126971369714697156971669717697186971969720697216972269723697246972569726697276972869729697306973169732697336973469735697366973769738697396974069741697426974369744697456974669747697486974969750697516975269753697546975569756697576975869759697606976169762697636976469765697666976769768697696977069771697726977369774697756977669777697786977969780697816978269783697846978569786697876978869789697906979169792697936979469795697966979769798697996980069801698026980369804698056980669807698086980969810698116981269813698146981569816698176981869819698206982169822698236982469825698266982769828698296983069831698326983369834698356983669837698386983969840698416984269843698446984569846698476984869849698506985169852698536985469855698566985769858698596986069861698626986369864698656986669867698686986969870698716987269873698746987569876698776987869879698806988169882698836988469885698866988769888698896989069891698926989369894698956989669897698986989969900699016990269903699046990569906699076990869909699106991169912699136991469915699166991769918699196992069921699226992369924699256992669927699286992969930699316993269933699346993569936699376993869939699406994169942699436994469945699466994769948699496995069951699526995369954699556995669957699586995969960699616996269963699646996569966699676996869969699706997169972699736997469975699766997769978699796998069981699826998369984699856998669987699886998969990699916999269993699946999569996699976999869999700007000170002700037000470005700067000770008700097001070011700127001370014700157001670017700187001970020700217002270023700247002570026700277002870029700307003170032700337003470035700367003770038700397004070041700427004370044700457004670047700487004970050700517005270053700547005570056700577005870059700607006170062700637006470065700667006770068700697007070071700727007370074700757007670077700787007970080700817008270083700847008570086700877008870089700907009170092700937009470095700967009770098700997010070101701027010370104701057010670107701087010970110701117011270113701147011570116701177011870119701207012170122701237012470125701267012770128701297013070131701327013370134701357013670137701387013970140701417014270143701447014570146701477014870149701507015170152701537015470155701567015770158701597016070161701627016370164701657016670167701687016970170701717017270173701747017570176701777017870179701807018170182701837018470185701867018770188701897019070191701927019370194701957019670197701987019970200702017020270203702047020570206702077020870209702107021170212702137021470215702167021770218702197022070221702227022370224702257022670227702287022970230702317023270233702347023570236702377023870239702407024170242702437024470245702467024770248702497025070251702527025370254702557025670257702587025970260702617026270263702647026570266702677026870269702707027170272702737027470275702767027770278702797028070281702827028370284702857028670287702887028970290702917029270293702947029570296702977029870299703007030170302703037030470305703067030770308703097031070311703127031370314703157031670317703187031970320703217032270323703247032570326703277032870329703307033170332703337033470335703367033770338703397034070341703427034370344703457034670347703487034970350703517035270353703547035570356703577035870359703607036170362703637036470365703667036770368703697037070371703727037370374703757037670377703787037970380703817038270383703847038570386703877038870389703907039170392703937039470395703967039770398703997040070401704027040370404704057040670407704087040970410704117041270413704147041570416704177041870419704207042170422704237042470425704267042770428704297043070431704327043370434704357043670437704387043970440704417044270443704447044570446704477044870449704507045170452704537045470455704567045770458704597046070461704627046370464704657046670467704687046970470704717047270473704747047570476704777047870479704807048170482704837048470485704867048770488704897049070491704927049370494704957049670497704987049970500705017050270503705047050570506705077050870509705107051170512705137051470515705167051770518705197052070521705227052370524705257052670527705287052970530705317053270533705347053570536705377053870539705407054170542705437054470545705467054770548705497055070551705527055370554705557055670557705587055970560705617056270563705647056570566705677056870569705707057170572705737057470575705767057770578705797058070581705827058370584705857058670587705887058970590705917059270593705947059570596705977059870599706007060170602706037060470605706067060770608706097061070611706127061370614706157061670617706187061970620706217062270623706247062570626706277062870629706307063170632706337063470635706367063770638706397064070641706427064370644706457064670647706487064970650706517065270653706547065570656706577065870659706607066170662706637066470665706667066770668706697067070671706727067370674706757067670677706787067970680706817068270683706847068570686706877068870689706907069170692706937069470695706967069770698706997070070701707027070370704707057070670707707087070970710707117071270713707147071570716707177071870719707207072170722707237072470725707267072770728707297073070731707327073370734707357073670737707387073970740707417074270743707447074570746707477074870749707507075170752707537075470755707567075770758707597076070761707627076370764707657076670767707687076970770707717077270773707747077570776707777077870779707807078170782707837078470785707867078770788707897079070791707927079370794707957079670797707987079970800708017080270803708047080570806708077080870809708107081170812708137081470815708167081770818708197082070821708227082370824708257082670827708287082970830708317083270833708347083570836708377083870839708407084170842708437084470845708467084770848708497085070851708527085370854708557085670857708587085970860708617086270863708647086570866708677086870869708707087170872708737087470875708767087770878708797088070881708827088370884708857088670887708887088970890708917089270893708947089570896708977089870899709007090170902709037090470905709067090770908709097091070911709127091370914709157091670917709187091970920709217092270923709247092570926709277092870929709307093170932709337093470935709367093770938709397094070941709427094370944709457094670947709487094970950709517095270953709547095570956709577095870959709607096170962709637096470965709667096770968709697097070971709727097370974709757097670977709787097970980709817098270983709847098570986709877098870989709907099170992709937099470995709967099770998709997100071001710027100371004710057100671007710087100971010710117101271013710147101571016710177101871019710207102171022710237102471025710267102771028710297103071031710327103371034710357103671037710387103971040710417104271043710447104571046710477104871049710507105171052710537105471055710567105771058710597106071061710627106371064710657106671067710687106971070710717107271073710747107571076710777107871079710807108171082710837108471085710867108771088710897109071091710927109371094710957109671097710987109971100711017110271103711047110571106711077110871109711107111171112711137111471115711167111771118711197112071121711227112371124711257112671127711287112971130711317113271133711347113571136711377113871139711407114171142711437114471145711467114771148711497115071151711527115371154711557115671157711587115971160711617116271163711647116571166711677116871169711707117171172711737117471175711767117771178711797118071181711827118371184711857118671187711887118971190711917119271193711947119571196711977119871199712007120171202712037120471205712067120771208712097121071211712127121371214712157121671217712187121971220712217122271223712247122571226712277122871229712307123171232712337123471235712367123771238712397124071241712427124371244712457124671247712487124971250712517125271253712547125571256712577125871259712607126171262712637126471265712667126771268712697127071271712727127371274712757127671277712787127971280712817128271283712847128571286712877128871289712907129171292712937129471295712967129771298712997130071301713027130371304713057130671307713087130971310713117131271313713147131571316713177131871319713207132171322713237132471325713267132771328713297133071331713327133371334713357133671337713387133971340713417134271343713447134571346713477134871349713507135171352713537135471355713567135771358713597136071361713627136371364713657136671367713687136971370713717137271373713747137571376713777137871379713807138171382713837138471385713867138771388713897139071391713927139371394713957139671397713987139971400714017140271403714047140571406714077140871409714107141171412714137141471415714167141771418714197142071421714227142371424714257142671427714287142971430714317143271433714347143571436714377143871439714407144171442714437144471445714467144771448714497145071451714527145371454714557145671457714587145971460714617146271463714647146571466714677146871469714707147171472714737147471475714767147771478714797148071481714827148371484714857148671487714887148971490714917149271493714947149571496714977149871499715007150171502715037150471505715067150771508715097151071511715127151371514715157151671517715187151971520715217152271523715247152571526715277152871529715307153171532715337153471535715367153771538715397154071541715427154371544715457154671547715487154971550715517155271553715547155571556715577155871559715607156171562715637156471565715667156771568715697157071571715727157371574715757157671577715787157971580715817158271583715847158571586715877158871589715907159171592715937159471595715967159771598715997160071601716027160371604716057160671607716087160971610716117161271613716147161571616716177161871619716207162171622716237162471625716267162771628716297163071631716327163371634716357163671637716387163971640716417164271643716447164571646716477164871649716507165171652716537165471655716567165771658716597166071661716627166371664716657166671667716687166971670716717167271673716747167571676716777167871679716807168171682716837168471685716867168771688716897169071691716927169371694716957169671697716987169971700717017170271703717047170571706717077170871709717107171171712717137171471715717167171771718717197172071721717227172371724717257172671727717287172971730717317173271733717347173571736717377173871739717407174171742717437174471745717467174771748717497175071751717527175371754717557175671757717587175971760717617176271763717647176571766717677176871769717707177171772717737177471775717767177771778717797178071781717827178371784717857178671787717887178971790717917179271793717947179571796717977179871799718007180171802718037180471805718067180771808718097181071811718127181371814718157181671817718187181971820718217182271823718247182571826718277182871829718307183171832718337183471835718367183771838718397184071841718427184371844718457184671847718487184971850718517185271853718547185571856718577185871859718607186171862718637186471865718667186771868718697187071871718727187371874718757187671877718787187971880718817188271883718847188571886718877188871889718907189171892718937189471895718967189771898718997190071901719027190371904719057190671907719087190971910719117191271913719147191571916719177191871919719207192171922719237192471925719267192771928719297193071931719327193371934719357193671937719387193971940719417194271943719447194571946719477194871949719507195171952719537195471955719567195771958719597196071961719627196371964719657196671967719687196971970719717197271973719747197571976719777197871979719807198171982719837198471985719867198771988719897199071991719927199371994719957199671997719987199972000720017200272003720047200572006720077200872009720107201172012720137201472015720167201772018720197202072021720227202372024720257202672027720287202972030720317203272033720347203572036720377203872039720407204172042720437204472045720467204772048720497205072051720527205372054720557205672057720587205972060720617206272063720647206572066720677206872069720707207172072720737207472075720767207772078720797208072081720827208372084720857208672087720887208972090720917209272093720947209572096720977209872099721007210172102721037210472105721067210772108721097211072111721127211372114721157211672117721187211972120721217212272123721247212572126721277212872129721307213172132721337213472135721367213772138721397214072141721427214372144721457214672147721487214972150721517215272153721547215572156721577215872159721607216172162721637216472165721667216772168721697217072171721727217372174721757217672177721787217972180721817218272183721847218572186721877218872189721907219172192721937219472195721967219772198721997220072201722027220372204722057220672207722087220972210722117221272213722147221572216722177221872219722207222172222722237222472225722267222772228722297223072231722327223372234722357223672237722387223972240722417224272243722447224572246722477224872249722507225172252722537225472255722567225772258722597226072261722627226372264722657226672267722687226972270722717227272273722747227572276722777227872279722807228172282722837228472285722867228772288722897229072291722927229372294722957229672297722987229972300723017230272303723047230572306723077230872309723107231172312723137231472315
  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. * @property {string|null} [token] login token
  357. * @property {string|null} [extension] login extension
  358. */
  359. /**
  360. * Constructs a new login.
  361. * @memberof game
  362. * @classdesc Represents a login.
  363. * @implements Ilogin
  364. * @constructor
  365. * @param {game.Ilogin=} [properties] Properties to set
  366. */
  367. function login(properties) {
  368. if (properties)
  369. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  370. if (properties[keys[i]] != null)
  371. this[keys[i]] = properties[keys[i]];
  372. }
  373. /**
  374. * login sid.
  375. * @member {number|Long} sid
  376. * @memberof game.login
  377. * @instance
  378. */
  379. login.prototype.sid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  380. /**
  381. * login account.
  382. * @member {string} account
  383. * @memberof game.login
  384. * @instance
  385. */
  386. login.prototype.account = "";
  387. /**
  388. * login channel.
  389. * @member {string} channel
  390. * @memberof game.login
  391. * @instance
  392. */
  393. login.prototype.channel = "";
  394. /**
  395. * login token.
  396. * @member {string} token
  397. * @memberof game.login
  398. * @instance
  399. */
  400. login.prototype.token = "";
  401. /**
  402. * login extension.
  403. * @member {string} extension
  404. * @memberof game.login
  405. * @instance
  406. */
  407. login.prototype.extension = "";
  408. /**
  409. * Creates a new login instance using the specified properties.
  410. * @function create
  411. * @memberof game.login
  412. * @static
  413. * @param {game.Ilogin=} [properties] Properties to set
  414. * @returns {game.login} login instance
  415. */
  416. login.create = function create(properties) {
  417. return new login(properties);
  418. };
  419. /**
  420. * Encodes the specified login message. Does not implicitly {@link game.login.verify|verify} messages.
  421. * @function encode
  422. * @memberof game.login
  423. * @static
  424. * @param {game.Ilogin} message login message or plain object to encode
  425. * @param {$protobuf.Writer} [writer] Writer to encode to
  426. * @returns {$protobuf.Writer} Writer
  427. */
  428. login.encode = function encode(message, writer) {
  429. if (!writer)
  430. writer = $Writer.create();
  431. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  432. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.sid);
  433. if (message.account != null && Object.hasOwnProperty.call(message, "account"))
  434. writer.uint32(/* id 2, wireType 2 =*/18).string(message.account);
  435. if (message.channel != null && Object.hasOwnProperty.call(message, "channel"))
  436. writer.uint32(/* id 3, wireType 2 =*/26).string(message.channel);
  437. if (message.token != null && Object.hasOwnProperty.call(message, "token"))
  438. writer.uint32(/* id 4, wireType 2 =*/34).string(message.token);
  439. if (message.extension != null && Object.hasOwnProperty.call(message, "extension"))
  440. writer.uint32(/* id 5, wireType 2 =*/42).string(message.extension);
  441. return writer;
  442. };
  443. /**
  444. * Encodes the specified login message, length delimited. Does not implicitly {@link game.login.verify|verify} messages.
  445. * @function encodeDelimited
  446. * @memberof game.login
  447. * @static
  448. * @param {game.Ilogin} message login message or plain object to encode
  449. * @param {$protobuf.Writer} [writer] Writer to encode to
  450. * @returns {$protobuf.Writer} Writer
  451. */
  452. login.encodeDelimited = function encodeDelimited(message, writer) {
  453. return this.encode(message, writer).ldelim();
  454. };
  455. /**
  456. * Decodes a login message from the specified reader or buffer.
  457. * @function decode
  458. * @memberof game.login
  459. * @static
  460. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  461. * @param {number} [length] Message length if known beforehand
  462. * @returns {game.login} login
  463. * @throws {Error} If the payload is not a reader or valid buffer
  464. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  465. */
  466. login.decode = function decode(reader, length) {
  467. if (!(reader instanceof $Reader))
  468. reader = $Reader.create(reader);
  469. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.login();
  470. while (reader.pos < end) {
  471. let tag = reader.uint32();
  472. switch (tag >>> 3) {
  473. case 1:
  474. message.sid = reader.int64();
  475. break;
  476. case 2:
  477. message.account = reader.string();
  478. break;
  479. case 3:
  480. message.channel = reader.string();
  481. break;
  482. case 4:
  483. message.token = reader.string();
  484. break;
  485. case 5:
  486. message.extension = reader.string();
  487. break;
  488. default:
  489. reader.skipType(tag & 7);
  490. break;
  491. }
  492. }
  493. return message;
  494. };
  495. /**
  496. * Decodes a login message from the specified reader or buffer, length delimited.
  497. * @function decodeDelimited
  498. * @memberof game.login
  499. * @static
  500. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  501. * @returns {game.login} login
  502. * @throws {Error} If the payload is not a reader or valid buffer
  503. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  504. */
  505. login.decodeDelimited = function decodeDelimited(reader) {
  506. if (!(reader instanceof $Reader))
  507. reader = new $Reader(reader);
  508. return this.decode(reader, reader.uint32());
  509. };
  510. /**
  511. * Verifies a login message.
  512. * @function verify
  513. * @memberof game.login
  514. * @static
  515. * @param {Object.<string,*>} message Plain object to verify
  516. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  517. */
  518. login.verify = function verify(message) {
  519. if (typeof message !== "object" || message === null)
  520. return "object expected";
  521. if (message.sid != null && message.hasOwnProperty("sid"))
  522. if (!$util.isInteger(message.sid) && !(message.sid && $util.isInteger(message.sid.low) && $util.isInteger(message.sid.high)))
  523. return "sid: integer|Long expected";
  524. if (message.account != null && message.hasOwnProperty("account"))
  525. if (!$util.isString(message.account))
  526. return "account: string expected";
  527. if (message.channel != null && message.hasOwnProperty("channel"))
  528. if (!$util.isString(message.channel))
  529. return "channel: string expected";
  530. if (message.token != null && message.hasOwnProperty("token"))
  531. if (!$util.isString(message.token))
  532. return "token: string expected";
  533. if (message.extension != null && message.hasOwnProperty("extension"))
  534. if (!$util.isString(message.extension))
  535. return "extension: string expected";
  536. return null;
  537. };
  538. /**
  539. * Creates a login message from a plain object. Also converts values to their respective internal types.
  540. * @function fromObject
  541. * @memberof game.login
  542. * @static
  543. * @param {Object.<string,*>} object Plain object
  544. * @returns {game.login} login
  545. */
  546. login.fromObject = function fromObject(object) {
  547. if (object instanceof $root.game.login)
  548. return object;
  549. let message = new $root.game.login();
  550. if (object.sid != null)
  551. if ($util.Long)
  552. (message.sid = $util.Long.fromValue(object.sid)).unsigned = false;
  553. else if (typeof object.sid === "string")
  554. message.sid = parseInt(object.sid, 10);
  555. else if (typeof object.sid === "number")
  556. message.sid = object.sid;
  557. else if (typeof object.sid === "object")
  558. message.sid = new $util.LongBits(object.sid.low >>> 0, object.sid.high >>> 0).toNumber();
  559. if (object.account != null)
  560. message.account = String(object.account);
  561. if (object.channel != null)
  562. message.channel = String(object.channel);
  563. if (object.token != null)
  564. message.token = String(object.token);
  565. if (object.extension != null)
  566. message.extension = String(object.extension);
  567. return message;
  568. };
  569. /**
  570. * Creates a plain object from a login message. Also converts values to other types if specified.
  571. * @function toObject
  572. * @memberof game.login
  573. * @static
  574. * @param {game.login} message login
  575. * @param {$protobuf.IConversionOptions} [options] Conversion options
  576. * @returns {Object.<string,*>} Plain object
  577. */
  578. login.toObject = function toObject(message, options) {
  579. if (!options)
  580. options = {};
  581. let object = {};
  582. if (options.defaults) {
  583. if ($util.Long) {
  584. let long = new $util.Long(0, 0, false);
  585. object.sid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  586. } else
  587. object.sid = options.longs === String ? "0" : 0;
  588. object.account = "";
  589. object.channel = "";
  590. object.token = "";
  591. object.extension = "";
  592. }
  593. if (message.sid != null && message.hasOwnProperty("sid"))
  594. if (typeof message.sid === "number")
  595. object.sid = options.longs === String ? String(message.sid) : message.sid;
  596. else
  597. 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;
  598. if (message.account != null && message.hasOwnProperty("account"))
  599. object.account = message.account;
  600. if (message.channel != null && message.hasOwnProperty("channel"))
  601. object.channel = message.channel;
  602. if (message.token != null && message.hasOwnProperty("token"))
  603. object.token = message.token;
  604. if (message.extension != null && message.hasOwnProperty("extension"))
  605. object.extension = message.extension;
  606. return object;
  607. };
  608. /**
  609. * Converts this login to JSON.
  610. * @function toJSON
  611. * @memberof game.login
  612. * @instance
  613. * @returns {Object.<string,*>} JSON object
  614. */
  615. login.prototype.toJSON = function toJSON() {
  616. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  617. };
  618. return login;
  619. })();
  620. game.login_rsp = (function() {
  621. /**
  622. * Properties of a login_rsp.
  623. * @memberof game
  624. * @interface Ilogin_rsp
  625. * @property {number|Long|null} [errno] login_rsp errno
  626. */
  627. /**
  628. * Constructs a new login_rsp.
  629. * @memberof game
  630. * @classdesc Represents a login_rsp.
  631. * @implements Ilogin_rsp
  632. * @constructor
  633. * @param {game.Ilogin_rsp=} [properties] Properties to set
  634. */
  635. function login_rsp(properties) {
  636. if (properties)
  637. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  638. if (properties[keys[i]] != null)
  639. this[keys[i]] = properties[keys[i]];
  640. }
  641. /**
  642. * login_rsp errno.
  643. * @member {number|Long} errno
  644. * @memberof game.login_rsp
  645. * @instance
  646. */
  647. login_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  648. /**
  649. * Creates a new login_rsp instance using the specified properties.
  650. * @function create
  651. * @memberof game.login_rsp
  652. * @static
  653. * @param {game.Ilogin_rsp=} [properties] Properties to set
  654. * @returns {game.login_rsp} login_rsp instance
  655. */
  656. login_rsp.create = function create(properties) {
  657. return new login_rsp(properties);
  658. };
  659. /**
  660. * Encodes the specified login_rsp message. Does not implicitly {@link game.login_rsp.verify|verify} messages.
  661. * @function encode
  662. * @memberof game.login_rsp
  663. * @static
  664. * @param {game.Ilogin_rsp} message login_rsp message or plain object to encode
  665. * @param {$protobuf.Writer} [writer] Writer to encode to
  666. * @returns {$protobuf.Writer} Writer
  667. */
  668. login_rsp.encode = function encode(message, writer) {
  669. if (!writer)
  670. writer = $Writer.create();
  671. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  672. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  673. return writer;
  674. };
  675. /**
  676. * Encodes the specified login_rsp message, length delimited. Does not implicitly {@link game.login_rsp.verify|verify} messages.
  677. * @function encodeDelimited
  678. * @memberof game.login_rsp
  679. * @static
  680. * @param {game.Ilogin_rsp} message login_rsp message or plain object to encode
  681. * @param {$protobuf.Writer} [writer] Writer to encode to
  682. * @returns {$protobuf.Writer} Writer
  683. */
  684. login_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  685. return this.encode(message, writer).ldelim();
  686. };
  687. /**
  688. * Decodes a login_rsp message from the specified reader or buffer.
  689. * @function decode
  690. * @memberof game.login_rsp
  691. * @static
  692. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  693. * @param {number} [length] Message length if known beforehand
  694. * @returns {game.login_rsp} login_rsp
  695. * @throws {Error} If the payload is not a reader or valid buffer
  696. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  697. */
  698. login_rsp.decode = function decode(reader, length) {
  699. if (!(reader instanceof $Reader))
  700. reader = $Reader.create(reader);
  701. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.login_rsp();
  702. while (reader.pos < end) {
  703. let tag = reader.uint32();
  704. switch (tag >>> 3) {
  705. case 1:
  706. message.errno = reader.int64();
  707. break;
  708. default:
  709. reader.skipType(tag & 7);
  710. break;
  711. }
  712. }
  713. return message;
  714. };
  715. /**
  716. * Decodes a login_rsp message from the specified reader or buffer, length delimited.
  717. * @function decodeDelimited
  718. * @memberof game.login_rsp
  719. * @static
  720. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  721. * @returns {game.login_rsp} login_rsp
  722. * @throws {Error} If the payload is not a reader or valid buffer
  723. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  724. */
  725. login_rsp.decodeDelimited = function decodeDelimited(reader) {
  726. if (!(reader instanceof $Reader))
  727. reader = new $Reader(reader);
  728. return this.decode(reader, reader.uint32());
  729. };
  730. /**
  731. * Verifies a login_rsp message.
  732. * @function verify
  733. * @memberof game.login_rsp
  734. * @static
  735. * @param {Object.<string,*>} message Plain object to verify
  736. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  737. */
  738. login_rsp.verify = function verify(message) {
  739. if (typeof message !== "object" || message === null)
  740. return "object expected";
  741. if (message.errno != null && message.hasOwnProperty("errno"))
  742. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  743. return "errno: integer|Long expected";
  744. return null;
  745. };
  746. /**
  747. * Creates a login_rsp message from a plain object. Also converts values to their respective internal types.
  748. * @function fromObject
  749. * @memberof game.login_rsp
  750. * @static
  751. * @param {Object.<string,*>} object Plain object
  752. * @returns {game.login_rsp} login_rsp
  753. */
  754. login_rsp.fromObject = function fromObject(object) {
  755. if (object instanceof $root.game.login_rsp)
  756. return object;
  757. let message = new $root.game.login_rsp();
  758. if (object.errno != null)
  759. if ($util.Long)
  760. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  761. else if (typeof object.errno === "string")
  762. message.errno = parseInt(object.errno, 10);
  763. else if (typeof object.errno === "number")
  764. message.errno = object.errno;
  765. else if (typeof object.errno === "object")
  766. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  767. return message;
  768. };
  769. /**
  770. * Creates a plain object from a login_rsp message. Also converts values to other types if specified.
  771. * @function toObject
  772. * @memberof game.login_rsp
  773. * @static
  774. * @param {game.login_rsp} message login_rsp
  775. * @param {$protobuf.IConversionOptions} [options] Conversion options
  776. * @returns {Object.<string,*>} Plain object
  777. */
  778. login_rsp.toObject = function toObject(message, options) {
  779. if (!options)
  780. options = {};
  781. let object = {};
  782. if (options.defaults)
  783. if ($util.Long) {
  784. let long = new $util.Long(0, 0, false);
  785. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  786. } else
  787. object.errno = options.longs === String ? "0" : 0;
  788. if (message.errno != null && message.hasOwnProperty("errno"))
  789. if (typeof message.errno === "number")
  790. object.errno = options.longs === String ? String(message.errno) : message.errno;
  791. else
  792. 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;
  793. return object;
  794. };
  795. /**
  796. * Converts this login_rsp to JSON.
  797. * @function toJSON
  798. * @memberof game.login_rsp
  799. * @instance
  800. * @returns {Object.<string,*>} JSON object
  801. */
  802. login_rsp.prototype.toJSON = function toJSON() {
  803. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  804. };
  805. return login_rsp;
  806. })();
  807. game.create = (function() {
  808. /**
  809. * Properties of a create.
  810. * @memberof game
  811. * @interface Icreate
  812. * @property {string|null} [nickname] create nickname
  813. */
  814. /**
  815. * Constructs a new create.
  816. * @memberof game
  817. * @classdesc Represents a create.
  818. * @implements Icreate
  819. * @constructor
  820. * @param {game.Icreate=} [properties] Properties to set
  821. */
  822. function create(properties) {
  823. if (properties)
  824. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  825. if (properties[keys[i]] != null)
  826. this[keys[i]] = properties[keys[i]];
  827. }
  828. /**
  829. * create nickname.
  830. * @member {string} nickname
  831. * @memberof game.create
  832. * @instance
  833. */
  834. create.prototype.nickname = "";
  835. /**
  836. * Creates a new create instance using the specified properties.
  837. * @function create
  838. * @memberof game.create
  839. * @static
  840. * @param {game.Icreate=} [properties] Properties to set
  841. * @returns {game.create} create instance
  842. */
  843. create.create = function create(properties) {
  844. return new create(properties);
  845. };
  846. /**
  847. * Encodes the specified create message. Does not implicitly {@link game.create.verify|verify} messages.
  848. * @function encode
  849. * @memberof game.create
  850. * @static
  851. * @param {game.Icreate} message create message or plain object to encode
  852. * @param {$protobuf.Writer} [writer] Writer to encode to
  853. * @returns {$protobuf.Writer} Writer
  854. */
  855. create.encode = function encode(message, writer) {
  856. if (!writer)
  857. writer = $Writer.create();
  858. if (message.nickname != null && Object.hasOwnProperty.call(message, "nickname"))
  859. writer.uint32(/* id 1, wireType 2 =*/10).string(message.nickname);
  860. return writer;
  861. };
  862. /**
  863. * Encodes the specified create message, length delimited. Does not implicitly {@link game.create.verify|verify} messages.
  864. * @function encodeDelimited
  865. * @memberof game.create
  866. * @static
  867. * @param {game.Icreate} message create message or plain object to encode
  868. * @param {$protobuf.Writer} [writer] Writer to encode to
  869. * @returns {$protobuf.Writer} Writer
  870. */
  871. create.encodeDelimited = function encodeDelimited(message, writer) {
  872. return this.encode(message, writer).ldelim();
  873. };
  874. /**
  875. * Decodes a create message from the specified reader or buffer.
  876. * @function decode
  877. * @memberof game.create
  878. * @static
  879. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  880. * @param {number} [length] Message length if known beforehand
  881. * @returns {game.create} create
  882. * @throws {Error} If the payload is not a reader or valid buffer
  883. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  884. */
  885. create.decode = function decode(reader, length) {
  886. if (!(reader instanceof $Reader))
  887. reader = $Reader.create(reader);
  888. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.create();
  889. while (reader.pos < end) {
  890. let tag = reader.uint32();
  891. switch (tag >>> 3) {
  892. case 1:
  893. message.nickname = reader.string();
  894. break;
  895. default:
  896. reader.skipType(tag & 7);
  897. break;
  898. }
  899. }
  900. return message;
  901. };
  902. /**
  903. * Decodes a create message from the specified reader or buffer, length delimited.
  904. * @function decodeDelimited
  905. * @memberof game.create
  906. * @static
  907. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  908. * @returns {game.create} create
  909. * @throws {Error} If the payload is not a reader or valid buffer
  910. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  911. */
  912. create.decodeDelimited = function decodeDelimited(reader) {
  913. if (!(reader instanceof $Reader))
  914. reader = new $Reader(reader);
  915. return this.decode(reader, reader.uint32());
  916. };
  917. /**
  918. * Verifies a create message.
  919. * @function verify
  920. * @memberof game.create
  921. * @static
  922. * @param {Object.<string,*>} message Plain object to verify
  923. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  924. */
  925. create.verify = function verify(message) {
  926. if (typeof message !== "object" || message === null)
  927. return "object expected";
  928. if (message.nickname != null && message.hasOwnProperty("nickname"))
  929. if (!$util.isString(message.nickname))
  930. return "nickname: string expected";
  931. return null;
  932. };
  933. /**
  934. * Creates a create message from a plain object. Also converts values to their respective internal types.
  935. * @function fromObject
  936. * @memberof game.create
  937. * @static
  938. * @param {Object.<string,*>} object Plain object
  939. * @returns {game.create} create
  940. */
  941. create.fromObject = function fromObject(object) {
  942. if (object instanceof $root.game.create)
  943. return object;
  944. let message = new $root.game.create();
  945. if (object.nickname != null)
  946. message.nickname = String(object.nickname);
  947. return message;
  948. };
  949. /**
  950. * Creates a plain object from a create message. Also converts values to other types if specified.
  951. * @function toObject
  952. * @memberof game.create
  953. * @static
  954. * @param {game.create} message create
  955. * @param {$protobuf.IConversionOptions} [options] Conversion options
  956. * @returns {Object.<string,*>} Plain object
  957. */
  958. create.toObject = function toObject(message, options) {
  959. if (!options)
  960. options = {};
  961. let object = {};
  962. if (options.defaults)
  963. object.nickname = "";
  964. if (message.nickname != null && message.hasOwnProperty("nickname"))
  965. object.nickname = message.nickname;
  966. return object;
  967. };
  968. /**
  969. * Converts this create to JSON.
  970. * @function toJSON
  971. * @memberof game.create
  972. * @instance
  973. * @returns {Object.<string,*>} JSON object
  974. */
  975. create.prototype.toJSON = function toJSON() {
  976. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  977. };
  978. return create;
  979. })();
  980. game.create_rsp = (function() {
  981. /**
  982. * Properties of a create_rsp.
  983. * @memberof game
  984. * @interface Icreate_rsp
  985. * @property {number|Long|null} [errno] create_rsp errno
  986. */
  987. /**
  988. * Constructs a new create_rsp.
  989. * @memberof game
  990. * @classdesc Represents a create_rsp.
  991. * @implements Icreate_rsp
  992. * @constructor
  993. * @param {game.Icreate_rsp=} [properties] Properties to set
  994. */
  995. function create_rsp(properties) {
  996. if (properties)
  997. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  998. if (properties[keys[i]] != null)
  999. this[keys[i]] = properties[keys[i]];
  1000. }
  1001. /**
  1002. * create_rsp errno.
  1003. * @member {number|Long} errno
  1004. * @memberof game.create_rsp
  1005. * @instance
  1006. */
  1007. create_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  1008. /**
  1009. * Creates a new create_rsp instance using the specified properties.
  1010. * @function create
  1011. * @memberof game.create_rsp
  1012. * @static
  1013. * @param {game.Icreate_rsp=} [properties] Properties to set
  1014. * @returns {game.create_rsp} create_rsp instance
  1015. */
  1016. create_rsp.create = function create(properties) {
  1017. return new create_rsp(properties);
  1018. };
  1019. /**
  1020. * Encodes the specified create_rsp message. Does not implicitly {@link game.create_rsp.verify|verify} messages.
  1021. * @function encode
  1022. * @memberof game.create_rsp
  1023. * @static
  1024. * @param {game.Icreate_rsp} message create_rsp message or plain object to encode
  1025. * @param {$protobuf.Writer} [writer] Writer to encode to
  1026. * @returns {$protobuf.Writer} Writer
  1027. */
  1028. create_rsp.encode = function encode(message, writer) {
  1029. if (!writer)
  1030. writer = $Writer.create();
  1031. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  1032. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  1033. return writer;
  1034. };
  1035. /**
  1036. * Encodes the specified create_rsp message, length delimited. Does not implicitly {@link game.create_rsp.verify|verify} messages.
  1037. * @function encodeDelimited
  1038. * @memberof game.create_rsp
  1039. * @static
  1040. * @param {game.Icreate_rsp} message create_rsp message or plain object to encode
  1041. * @param {$protobuf.Writer} [writer] Writer to encode to
  1042. * @returns {$protobuf.Writer} Writer
  1043. */
  1044. create_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  1045. return this.encode(message, writer).ldelim();
  1046. };
  1047. /**
  1048. * Decodes a create_rsp message from the specified reader or buffer.
  1049. * @function decode
  1050. * @memberof game.create_rsp
  1051. * @static
  1052. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  1053. * @param {number} [length] Message length if known beforehand
  1054. * @returns {game.create_rsp} create_rsp
  1055. * @throws {Error} If the payload is not a reader or valid buffer
  1056. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  1057. */
  1058. create_rsp.decode = function decode(reader, length) {
  1059. if (!(reader instanceof $Reader))
  1060. reader = $Reader.create(reader);
  1061. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.create_rsp();
  1062. while (reader.pos < end) {
  1063. let tag = reader.uint32();
  1064. switch (tag >>> 3) {
  1065. case 1:
  1066. message.errno = reader.int64();
  1067. break;
  1068. default:
  1069. reader.skipType(tag & 7);
  1070. break;
  1071. }
  1072. }
  1073. return message;
  1074. };
  1075. /**
  1076. * Decodes a create_rsp message from the specified reader or buffer, length delimited.
  1077. * @function decodeDelimited
  1078. * @memberof game.create_rsp
  1079. * @static
  1080. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  1081. * @returns {game.create_rsp} create_rsp
  1082. * @throws {Error} If the payload is not a reader or valid buffer
  1083. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  1084. */
  1085. create_rsp.decodeDelimited = function decodeDelimited(reader) {
  1086. if (!(reader instanceof $Reader))
  1087. reader = new $Reader(reader);
  1088. return this.decode(reader, reader.uint32());
  1089. };
  1090. /**
  1091. * Verifies a create_rsp message.
  1092. * @function verify
  1093. * @memberof game.create_rsp
  1094. * @static
  1095. * @param {Object.<string,*>} message Plain object to verify
  1096. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  1097. */
  1098. create_rsp.verify = function verify(message) {
  1099. if (typeof message !== "object" || message === null)
  1100. return "object expected";
  1101. if (message.errno != null && message.hasOwnProperty("errno"))
  1102. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  1103. return "errno: integer|Long expected";
  1104. return null;
  1105. };
  1106. /**
  1107. * Creates a create_rsp message from a plain object. Also converts values to their respective internal types.
  1108. * @function fromObject
  1109. * @memberof game.create_rsp
  1110. * @static
  1111. * @param {Object.<string,*>} object Plain object
  1112. * @returns {game.create_rsp} create_rsp
  1113. */
  1114. create_rsp.fromObject = function fromObject(object) {
  1115. if (object instanceof $root.game.create_rsp)
  1116. return object;
  1117. let message = new $root.game.create_rsp();
  1118. if (object.errno != null)
  1119. if ($util.Long)
  1120. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  1121. else if (typeof object.errno === "string")
  1122. message.errno = parseInt(object.errno, 10);
  1123. else if (typeof object.errno === "number")
  1124. message.errno = object.errno;
  1125. else if (typeof object.errno === "object")
  1126. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  1127. return message;
  1128. };
  1129. /**
  1130. * Creates a plain object from a create_rsp message. Also converts values to other types if specified.
  1131. * @function toObject
  1132. * @memberof game.create_rsp
  1133. * @static
  1134. * @param {game.create_rsp} message create_rsp
  1135. * @param {$protobuf.IConversionOptions} [options] Conversion options
  1136. * @returns {Object.<string,*>} Plain object
  1137. */
  1138. create_rsp.toObject = function toObject(message, options) {
  1139. if (!options)
  1140. options = {};
  1141. let object = {};
  1142. if (options.defaults)
  1143. if ($util.Long) {
  1144. let long = new $util.Long(0, 0, false);
  1145. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  1146. } else
  1147. object.errno = options.longs === String ? "0" : 0;
  1148. if (message.errno != null && message.hasOwnProperty("errno"))
  1149. if (typeof message.errno === "number")
  1150. object.errno = options.longs === String ? String(message.errno) : message.errno;
  1151. else
  1152. 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;
  1153. return object;
  1154. };
  1155. /**
  1156. * Converts this create_rsp to JSON.
  1157. * @function toJSON
  1158. * @memberof game.create_rsp
  1159. * @instance
  1160. * @returns {Object.<string,*>} JSON object
  1161. */
  1162. create_rsp.prototype.toJSON = function toJSON() {
  1163. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  1164. };
  1165. return create_rsp;
  1166. })();
  1167. game.user = (function() {
  1168. /**
  1169. * Properties of a user.
  1170. * @memberof game
  1171. * @interface Iuser
  1172. * @property {string|null} [uid] user uid
  1173. * @property {string|null} [nickname] user nickname
  1174. * @property {number|Long|null} [level] user level
  1175. * @property {number|Long|null} [exp] user exp
  1176. * @property {number|Long|null} [avatar] user avatar
  1177. * @property {number|Long|null} [svrtime] user svrtime
  1178. * @property {number|Long|null} [renameTime] user renameTime
  1179. * @property {number|Long|null} [createtime] user createtime
  1180. * @property {number|Long|null} [sid] user sid
  1181. * @property {boolean|null} [bfirst] user bfirst
  1182. * @property {Array.<game.Iid_num>|null} [currency] user currency
  1183. */
  1184. /**
  1185. * Constructs a new user.
  1186. * @memberof game
  1187. * @classdesc Represents a user.
  1188. * @implements Iuser
  1189. * @constructor
  1190. * @param {game.Iuser=} [properties] Properties to set
  1191. */
  1192. function user(properties) {
  1193. this.currency = [];
  1194. if (properties)
  1195. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  1196. if (properties[keys[i]] != null)
  1197. this[keys[i]] = properties[keys[i]];
  1198. }
  1199. /**
  1200. * user uid.
  1201. * @member {string} uid
  1202. * @memberof game.user
  1203. * @instance
  1204. */
  1205. user.prototype.uid = "";
  1206. /**
  1207. * user nickname.
  1208. * @member {string} nickname
  1209. * @memberof game.user
  1210. * @instance
  1211. */
  1212. user.prototype.nickname = "";
  1213. /**
  1214. * user level.
  1215. * @member {number|Long} level
  1216. * @memberof game.user
  1217. * @instance
  1218. */
  1219. user.prototype.level = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  1220. /**
  1221. * user exp.
  1222. * @member {number|Long} exp
  1223. * @memberof game.user
  1224. * @instance
  1225. */
  1226. user.prototype.exp = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  1227. /**
  1228. * user avatar.
  1229. * @member {number|Long} avatar
  1230. * @memberof game.user
  1231. * @instance
  1232. */
  1233. user.prototype.avatar = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  1234. /**
  1235. * user svrtime.
  1236. * @member {number|Long} svrtime
  1237. * @memberof game.user
  1238. * @instance
  1239. */
  1240. user.prototype.svrtime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  1241. /**
  1242. * user renameTime.
  1243. * @member {number|Long} renameTime
  1244. * @memberof game.user
  1245. * @instance
  1246. */
  1247. user.prototype.renameTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  1248. /**
  1249. * user createtime.
  1250. * @member {number|Long} createtime
  1251. * @memberof game.user
  1252. * @instance
  1253. */
  1254. user.prototype.createtime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  1255. /**
  1256. * user sid.
  1257. * @member {number|Long} sid
  1258. * @memberof game.user
  1259. * @instance
  1260. */
  1261. user.prototype.sid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  1262. /**
  1263. * user bfirst.
  1264. * @member {boolean} bfirst
  1265. * @memberof game.user
  1266. * @instance
  1267. */
  1268. user.prototype.bfirst = false;
  1269. /**
  1270. * user currency.
  1271. * @member {Array.<game.Iid_num>} currency
  1272. * @memberof game.user
  1273. * @instance
  1274. */
  1275. user.prototype.currency = $util.emptyArray;
  1276. /**
  1277. * Creates a new user instance using the specified properties.
  1278. * @function create
  1279. * @memberof game.user
  1280. * @static
  1281. * @param {game.Iuser=} [properties] Properties to set
  1282. * @returns {game.user} user instance
  1283. */
  1284. user.create = function create(properties) {
  1285. return new user(properties);
  1286. };
  1287. /**
  1288. * Encodes the specified user message. Does not implicitly {@link game.user.verify|verify} messages.
  1289. * @function encode
  1290. * @memberof game.user
  1291. * @static
  1292. * @param {game.Iuser} message user message or plain object to encode
  1293. * @param {$protobuf.Writer} [writer] Writer to encode to
  1294. * @returns {$protobuf.Writer} Writer
  1295. */
  1296. user.encode = function encode(message, writer) {
  1297. if (!writer)
  1298. writer = $Writer.create();
  1299. if (message.uid != null && Object.hasOwnProperty.call(message, "uid"))
  1300. writer.uint32(/* id 1, wireType 2 =*/10).string(message.uid);
  1301. if (message.nickname != null && Object.hasOwnProperty.call(message, "nickname"))
  1302. writer.uint32(/* id 2, wireType 2 =*/18).string(message.nickname);
  1303. if (message.level != null && Object.hasOwnProperty.call(message, "level"))
  1304. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.level);
  1305. if (message.exp != null && Object.hasOwnProperty.call(message, "exp"))
  1306. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.exp);
  1307. if (message.avatar != null && Object.hasOwnProperty.call(message, "avatar"))
  1308. writer.uint32(/* id 5, wireType 0 =*/40).int64(message.avatar);
  1309. if (message.svrtime != null && Object.hasOwnProperty.call(message, "svrtime"))
  1310. writer.uint32(/* id 6, wireType 0 =*/48).int64(message.svrtime);
  1311. if (message.renameTime != null && Object.hasOwnProperty.call(message, "renameTime"))
  1312. writer.uint32(/* id 7, wireType 0 =*/56).int64(message.renameTime);
  1313. if (message.createtime != null && Object.hasOwnProperty.call(message, "createtime"))
  1314. writer.uint32(/* id 8, wireType 0 =*/64).int64(message.createtime);
  1315. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  1316. writer.uint32(/* id 9, wireType 0 =*/72).int64(message.sid);
  1317. if (message.bfirst != null && Object.hasOwnProperty.call(message, "bfirst"))
  1318. writer.uint32(/* id 10, wireType 0 =*/80).bool(message.bfirst);
  1319. if (message.currency != null && message.currency.length)
  1320. for (let i = 0; i < message.currency.length; ++i)
  1321. $root.game.id_num.encode(message.currency[i], writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
  1322. return writer;
  1323. };
  1324. /**
  1325. * Encodes the specified user message, length delimited. Does not implicitly {@link game.user.verify|verify} messages.
  1326. * @function encodeDelimited
  1327. * @memberof game.user
  1328. * @static
  1329. * @param {game.Iuser} message user message or plain object to encode
  1330. * @param {$protobuf.Writer} [writer] Writer to encode to
  1331. * @returns {$protobuf.Writer} Writer
  1332. */
  1333. user.encodeDelimited = function encodeDelimited(message, writer) {
  1334. return this.encode(message, writer).ldelim();
  1335. };
  1336. /**
  1337. * Decodes a user message from the specified reader or buffer.
  1338. * @function decode
  1339. * @memberof game.user
  1340. * @static
  1341. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  1342. * @param {number} [length] Message length if known beforehand
  1343. * @returns {game.user} user
  1344. * @throws {Error} If the payload is not a reader or valid buffer
  1345. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  1346. */
  1347. user.decode = function decode(reader, length) {
  1348. if (!(reader instanceof $Reader))
  1349. reader = $Reader.create(reader);
  1350. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.user();
  1351. while (reader.pos < end) {
  1352. let tag = reader.uint32();
  1353. switch (tag >>> 3) {
  1354. case 1:
  1355. message.uid = reader.string();
  1356. break;
  1357. case 2:
  1358. message.nickname = reader.string();
  1359. break;
  1360. case 3:
  1361. message.level = reader.int64();
  1362. break;
  1363. case 4:
  1364. message.exp = reader.int64();
  1365. break;
  1366. case 5:
  1367. message.avatar = reader.int64();
  1368. break;
  1369. case 6:
  1370. message.svrtime = reader.int64();
  1371. break;
  1372. case 7:
  1373. message.renameTime = reader.int64();
  1374. break;
  1375. case 8:
  1376. message.createtime = reader.int64();
  1377. break;
  1378. case 9:
  1379. message.sid = reader.int64();
  1380. break;
  1381. case 10:
  1382. message.bfirst = reader.bool();
  1383. break;
  1384. case 20:
  1385. if (!(message.currency && message.currency.length))
  1386. message.currency = [];
  1387. message.currency.push($root.game.id_num.decode(reader, reader.uint32()));
  1388. break;
  1389. default:
  1390. reader.skipType(tag & 7);
  1391. break;
  1392. }
  1393. }
  1394. return message;
  1395. };
  1396. /**
  1397. * Decodes a user message from the specified reader or buffer, length delimited.
  1398. * @function decodeDelimited
  1399. * @memberof game.user
  1400. * @static
  1401. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  1402. * @returns {game.user} user
  1403. * @throws {Error} If the payload is not a reader or valid buffer
  1404. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  1405. */
  1406. user.decodeDelimited = function decodeDelimited(reader) {
  1407. if (!(reader instanceof $Reader))
  1408. reader = new $Reader(reader);
  1409. return this.decode(reader, reader.uint32());
  1410. };
  1411. /**
  1412. * Verifies a user message.
  1413. * @function verify
  1414. * @memberof game.user
  1415. * @static
  1416. * @param {Object.<string,*>} message Plain object to verify
  1417. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  1418. */
  1419. user.verify = function verify(message) {
  1420. if (typeof message !== "object" || message === null)
  1421. return "object expected";
  1422. if (message.uid != null && message.hasOwnProperty("uid"))
  1423. if (!$util.isString(message.uid))
  1424. return "uid: string expected";
  1425. if (message.nickname != null && message.hasOwnProperty("nickname"))
  1426. if (!$util.isString(message.nickname))
  1427. return "nickname: string expected";
  1428. if (message.level != null && message.hasOwnProperty("level"))
  1429. if (!$util.isInteger(message.level) && !(message.level && $util.isInteger(message.level.low) && $util.isInteger(message.level.high)))
  1430. return "level: integer|Long expected";
  1431. if (message.exp != null && message.hasOwnProperty("exp"))
  1432. if (!$util.isInteger(message.exp) && !(message.exp && $util.isInteger(message.exp.low) && $util.isInteger(message.exp.high)))
  1433. return "exp: integer|Long expected";
  1434. if (message.avatar != null && message.hasOwnProperty("avatar"))
  1435. if (!$util.isInteger(message.avatar) && !(message.avatar && $util.isInteger(message.avatar.low) && $util.isInteger(message.avatar.high)))
  1436. return "avatar: integer|Long expected";
  1437. if (message.svrtime != null && message.hasOwnProperty("svrtime"))
  1438. if (!$util.isInteger(message.svrtime) && !(message.svrtime && $util.isInteger(message.svrtime.low) && $util.isInteger(message.svrtime.high)))
  1439. return "svrtime: integer|Long expected";
  1440. if (message.renameTime != null && message.hasOwnProperty("renameTime"))
  1441. if (!$util.isInteger(message.renameTime) && !(message.renameTime && $util.isInteger(message.renameTime.low) && $util.isInteger(message.renameTime.high)))
  1442. return "renameTime: integer|Long expected";
  1443. if (message.createtime != null && message.hasOwnProperty("createtime"))
  1444. if (!$util.isInteger(message.createtime) && !(message.createtime && $util.isInteger(message.createtime.low) && $util.isInteger(message.createtime.high)))
  1445. return "createtime: integer|Long expected";
  1446. if (message.sid != null && message.hasOwnProperty("sid"))
  1447. if (!$util.isInteger(message.sid) && !(message.sid && $util.isInteger(message.sid.low) && $util.isInteger(message.sid.high)))
  1448. return "sid: integer|Long expected";
  1449. if (message.bfirst != null && message.hasOwnProperty("bfirst"))
  1450. if (typeof message.bfirst !== "boolean")
  1451. return "bfirst: boolean expected";
  1452. if (message.currency != null && message.hasOwnProperty("currency")) {
  1453. if (!Array.isArray(message.currency))
  1454. return "currency: array expected";
  1455. for (let i = 0; i < message.currency.length; ++i) {
  1456. let error = $root.game.id_num.verify(message.currency[i]);
  1457. if (error)
  1458. return "currency." + error;
  1459. }
  1460. }
  1461. return null;
  1462. };
  1463. /**
  1464. * Creates a user message from a plain object. Also converts values to their respective internal types.
  1465. * @function fromObject
  1466. * @memberof game.user
  1467. * @static
  1468. * @param {Object.<string,*>} object Plain object
  1469. * @returns {game.user} user
  1470. */
  1471. user.fromObject = function fromObject(object) {
  1472. if (object instanceof $root.game.user)
  1473. return object;
  1474. let message = new $root.game.user();
  1475. if (object.uid != null)
  1476. message.uid = String(object.uid);
  1477. if (object.nickname != null)
  1478. message.nickname = String(object.nickname);
  1479. if (object.level != null)
  1480. if ($util.Long)
  1481. (message.level = $util.Long.fromValue(object.level)).unsigned = false;
  1482. else if (typeof object.level === "string")
  1483. message.level = parseInt(object.level, 10);
  1484. else if (typeof object.level === "number")
  1485. message.level = object.level;
  1486. else if (typeof object.level === "object")
  1487. message.level = new $util.LongBits(object.level.low >>> 0, object.level.high >>> 0).toNumber();
  1488. if (object.exp != null)
  1489. if ($util.Long)
  1490. (message.exp = $util.Long.fromValue(object.exp)).unsigned = false;
  1491. else if (typeof object.exp === "string")
  1492. message.exp = parseInt(object.exp, 10);
  1493. else if (typeof object.exp === "number")
  1494. message.exp = object.exp;
  1495. else if (typeof object.exp === "object")
  1496. message.exp = new $util.LongBits(object.exp.low >>> 0, object.exp.high >>> 0).toNumber();
  1497. if (object.avatar != null)
  1498. if ($util.Long)
  1499. (message.avatar = $util.Long.fromValue(object.avatar)).unsigned = false;
  1500. else if (typeof object.avatar === "string")
  1501. message.avatar = parseInt(object.avatar, 10);
  1502. else if (typeof object.avatar === "number")
  1503. message.avatar = object.avatar;
  1504. else if (typeof object.avatar === "object")
  1505. message.avatar = new $util.LongBits(object.avatar.low >>> 0, object.avatar.high >>> 0).toNumber();
  1506. if (object.svrtime != null)
  1507. if ($util.Long)
  1508. (message.svrtime = $util.Long.fromValue(object.svrtime)).unsigned = false;
  1509. else if (typeof object.svrtime === "string")
  1510. message.svrtime = parseInt(object.svrtime, 10);
  1511. else if (typeof object.svrtime === "number")
  1512. message.svrtime = object.svrtime;
  1513. else if (typeof object.svrtime === "object")
  1514. message.svrtime = new $util.LongBits(object.svrtime.low >>> 0, object.svrtime.high >>> 0).toNumber();
  1515. if (object.renameTime != null)
  1516. if ($util.Long)
  1517. (message.renameTime = $util.Long.fromValue(object.renameTime)).unsigned = false;
  1518. else if (typeof object.renameTime === "string")
  1519. message.renameTime = parseInt(object.renameTime, 10);
  1520. else if (typeof object.renameTime === "number")
  1521. message.renameTime = object.renameTime;
  1522. else if (typeof object.renameTime === "object")
  1523. message.renameTime = new $util.LongBits(object.renameTime.low >>> 0, object.renameTime.high >>> 0).toNumber();
  1524. if (object.createtime != null)
  1525. if ($util.Long)
  1526. (message.createtime = $util.Long.fromValue(object.createtime)).unsigned = false;
  1527. else if (typeof object.createtime === "string")
  1528. message.createtime = parseInt(object.createtime, 10);
  1529. else if (typeof object.createtime === "number")
  1530. message.createtime = object.createtime;
  1531. else if (typeof object.createtime === "object")
  1532. message.createtime = new $util.LongBits(object.createtime.low >>> 0, object.createtime.high >>> 0).toNumber();
  1533. if (object.sid != null)
  1534. if ($util.Long)
  1535. (message.sid = $util.Long.fromValue(object.sid)).unsigned = false;
  1536. else if (typeof object.sid === "string")
  1537. message.sid = parseInt(object.sid, 10);
  1538. else if (typeof object.sid === "number")
  1539. message.sid = object.sid;
  1540. else if (typeof object.sid === "object")
  1541. message.sid = new $util.LongBits(object.sid.low >>> 0, object.sid.high >>> 0).toNumber();
  1542. if (object.bfirst != null)
  1543. message.bfirst = Boolean(object.bfirst);
  1544. if (object.currency) {
  1545. if (!Array.isArray(object.currency))
  1546. throw TypeError(".game.user.currency: array expected");
  1547. message.currency = [];
  1548. for (let i = 0; i < object.currency.length; ++i) {
  1549. if (typeof object.currency[i] !== "object")
  1550. throw TypeError(".game.user.currency: object expected");
  1551. message.currency[i] = $root.game.id_num.fromObject(object.currency[i]);
  1552. }
  1553. }
  1554. return message;
  1555. };
  1556. /**
  1557. * Creates a plain object from a user message. Also converts values to other types if specified.
  1558. * @function toObject
  1559. * @memberof game.user
  1560. * @static
  1561. * @param {game.user} message user
  1562. * @param {$protobuf.IConversionOptions} [options] Conversion options
  1563. * @returns {Object.<string,*>} Plain object
  1564. */
  1565. user.toObject = function toObject(message, options) {
  1566. if (!options)
  1567. options = {};
  1568. let object = {};
  1569. if (options.arrays || options.defaults)
  1570. object.currency = [];
  1571. if (options.defaults) {
  1572. object.uid = "";
  1573. object.nickname = "";
  1574. if ($util.Long) {
  1575. let long = new $util.Long(0, 0, false);
  1576. object.level = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  1577. } else
  1578. object.level = options.longs === String ? "0" : 0;
  1579. if ($util.Long) {
  1580. let long = new $util.Long(0, 0, false);
  1581. object.exp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  1582. } else
  1583. object.exp = options.longs === String ? "0" : 0;
  1584. if ($util.Long) {
  1585. let long = new $util.Long(0, 0, false);
  1586. object.avatar = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  1587. } else
  1588. object.avatar = options.longs === String ? "0" : 0;
  1589. if ($util.Long) {
  1590. let long = new $util.Long(0, 0, false);
  1591. object.svrtime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  1592. } else
  1593. object.svrtime = options.longs === String ? "0" : 0;
  1594. if ($util.Long) {
  1595. let long = new $util.Long(0, 0, false);
  1596. object.renameTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  1597. } else
  1598. object.renameTime = options.longs === String ? "0" : 0;
  1599. if ($util.Long) {
  1600. let long = new $util.Long(0, 0, false);
  1601. object.createtime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  1602. } else
  1603. object.createtime = options.longs === String ? "0" : 0;
  1604. if ($util.Long) {
  1605. let long = new $util.Long(0, 0, false);
  1606. object.sid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  1607. } else
  1608. object.sid = options.longs === String ? "0" : 0;
  1609. object.bfirst = false;
  1610. }
  1611. if (message.uid != null && message.hasOwnProperty("uid"))
  1612. object.uid = message.uid;
  1613. if (message.nickname != null && message.hasOwnProperty("nickname"))
  1614. object.nickname = message.nickname;
  1615. if (message.level != null && message.hasOwnProperty("level"))
  1616. if (typeof message.level === "number")
  1617. object.level = options.longs === String ? String(message.level) : message.level;
  1618. else
  1619. 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;
  1620. if (message.exp != null && message.hasOwnProperty("exp"))
  1621. if (typeof message.exp === "number")
  1622. object.exp = options.longs === String ? String(message.exp) : message.exp;
  1623. else
  1624. 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;
  1625. if (message.avatar != null && message.hasOwnProperty("avatar"))
  1626. if (typeof message.avatar === "number")
  1627. object.avatar = options.longs === String ? String(message.avatar) : message.avatar;
  1628. else
  1629. 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;
  1630. if (message.svrtime != null && message.hasOwnProperty("svrtime"))
  1631. if (typeof message.svrtime === "number")
  1632. object.svrtime = options.longs === String ? String(message.svrtime) : message.svrtime;
  1633. else
  1634. 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;
  1635. if (message.renameTime != null && message.hasOwnProperty("renameTime"))
  1636. if (typeof message.renameTime === "number")
  1637. object.renameTime = options.longs === String ? String(message.renameTime) : message.renameTime;
  1638. else
  1639. 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;
  1640. if (message.createtime != null && message.hasOwnProperty("createtime"))
  1641. if (typeof message.createtime === "number")
  1642. object.createtime = options.longs === String ? String(message.createtime) : message.createtime;
  1643. else
  1644. 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;
  1645. if (message.sid != null && message.hasOwnProperty("sid"))
  1646. if (typeof message.sid === "number")
  1647. object.sid = options.longs === String ? String(message.sid) : message.sid;
  1648. else
  1649. 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;
  1650. if (message.bfirst != null && message.hasOwnProperty("bfirst"))
  1651. object.bfirst = message.bfirst;
  1652. if (message.currency && message.currency.length) {
  1653. object.currency = [];
  1654. for (let j = 0; j < message.currency.length; ++j)
  1655. object.currency[j] = $root.game.id_num.toObject(message.currency[j], options);
  1656. }
  1657. return object;
  1658. };
  1659. /**
  1660. * Converts this user to JSON.
  1661. * @function toJSON
  1662. * @memberof game.user
  1663. * @instance
  1664. * @returns {Object.<string,*>} JSON object
  1665. */
  1666. user.prototype.toJSON = function toJSON() {
  1667. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  1668. };
  1669. return user;
  1670. })();
  1671. game.reward_info = (function() {
  1672. /**
  1673. * Properties of a reward_info.
  1674. * @memberof game
  1675. * @interface Ireward_info
  1676. * @property {string|null} [flags] reward_info flags
  1677. * @property {game.Ireward|null} [added] reward_info added
  1678. */
  1679. /**
  1680. * Constructs a new reward_info.
  1681. * @memberof game
  1682. * @classdesc Represents a reward_info.
  1683. * @implements Ireward_info
  1684. * @constructor
  1685. * @param {game.Ireward_info=} [properties] Properties to set
  1686. */
  1687. function reward_info(properties) {
  1688. if (properties)
  1689. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  1690. if (properties[keys[i]] != null)
  1691. this[keys[i]] = properties[keys[i]];
  1692. }
  1693. /**
  1694. * reward_info flags.
  1695. * @member {string} flags
  1696. * @memberof game.reward_info
  1697. * @instance
  1698. */
  1699. reward_info.prototype.flags = "";
  1700. /**
  1701. * reward_info added.
  1702. * @member {game.Ireward|null|undefined} added
  1703. * @memberof game.reward_info
  1704. * @instance
  1705. */
  1706. reward_info.prototype.added = null;
  1707. /**
  1708. * Creates a new reward_info instance using the specified properties.
  1709. * @function create
  1710. * @memberof game.reward_info
  1711. * @static
  1712. * @param {game.Ireward_info=} [properties] Properties to set
  1713. * @returns {game.reward_info} reward_info instance
  1714. */
  1715. reward_info.create = function create(properties) {
  1716. return new reward_info(properties);
  1717. };
  1718. /**
  1719. * Encodes the specified reward_info message. Does not implicitly {@link game.reward_info.verify|verify} messages.
  1720. * @function encode
  1721. * @memberof game.reward_info
  1722. * @static
  1723. * @param {game.Ireward_info} message reward_info message or plain object to encode
  1724. * @param {$protobuf.Writer} [writer] Writer to encode to
  1725. * @returns {$protobuf.Writer} Writer
  1726. */
  1727. reward_info.encode = function encode(message, writer) {
  1728. if (!writer)
  1729. writer = $Writer.create();
  1730. if (message.flags != null && Object.hasOwnProperty.call(message, "flags"))
  1731. writer.uint32(/* id 1, wireType 2 =*/10).string(message.flags);
  1732. if (message.added != null && Object.hasOwnProperty.call(message, "added"))
  1733. $root.game.reward.encode(message.added, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  1734. return writer;
  1735. };
  1736. /**
  1737. * Encodes the specified reward_info message, length delimited. Does not implicitly {@link game.reward_info.verify|verify} messages.
  1738. * @function encodeDelimited
  1739. * @memberof game.reward_info
  1740. * @static
  1741. * @param {game.Ireward_info} message reward_info message or plain object to encode
  1742. * @param {$protobuf.Writer} [writer] Writer to encode to
  1743. * @returns {$protobuf.Writer} Writer
  1744. */
  1745. reward_info.encodeDelimited = function encodeDelimited(message, writer) {
  1746. return this.encode(message, writer).ldelim();
  1747. };
  1748. /**
  1749. * Decodes a reward_info message from the specified reader or buffer.
  1750. * @function decode
  1751. * @memberof game.reward_info
  1752. * @static
  1753. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  1754. * @param {number} [length] Message length if known beforehand
  1755. * @returns {game.reward_info} reward_info
  1756. * @throws {Error} If the payload is not a reader or valid buffer
  1757. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  1758. */
  1759. reward_info.decode = function decode(reader, length) {
  1760. if (!(reader instanceof $Reader))
  1761. reader = $Reader.create(reader);
  1762. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.reward_info();
  1763. while (reader.pos < end) {
  1764. let tag = reader.uint32();
  1765. switch (tag >>> 3) {
  1766. case 1:
  1767. message.flags = reader.string();
  1768. break;
  1769. case 2:
  1770. message.added = $root.game.reward.decode(reader, reader.uint32());
  1771. break;
  1772. default:
  1773. reader.skipType(tag & 7);
  1774. break;
  1775. }
  1776. }
  1777. return message;
  1778. };
  1779. /**
  1780. * Decodes a reward_info message from the specified reader or buffer, length delimited.
  1781. * @function decodeDelimited
  1782. * @memberof game.reward_info
  1783. * @static
  1784. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  1785. * @returns {game.reward_info} reward_info
  1786. * @throws {Error} If the payload is not a reader or valid buffer
  1787. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  1788. */
  1789. reward_info.decodeDelimited = function decodeDelimited(reader) {
  1790. if (!(reader instanceof $Reader))
  1791. reader = new $Reader(reader);
  1792. return this.decode(reader, reader.uint32());
  1793. };
  1794. /**
  1795. * Verifies a reward_info message.
  1796. * @function verify
  1797. * @memberof game.reward_info
  1798. * @static
  1799. * @param {Object.<string,*>} message Plain object to verify
  1800. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  1801. */
  1802. reward_info.verify = function verify(message) {
  1803. if (typeof message !== "object" || message === null)
  1804. return "object expected";
  1805. if (message.flags != null && message.hasOwnProperty("flags"))
  1806. if (!$util.isString(message.flags))
  1807. return "flags: string expected";
  1808. if (message.added != null && message.hasOwnProperty("added")) {
  1809. let error = $root.game.reward.verify(message.added);
  1810. if (error)
  1811. return "added." + error;
  1812. }
  1813. return null;
  1814. };
  1815. /**
  1816. * Creates a reward_info message from a plain object. Also converts values to their respective internal types.
  1817. * @function fromObject
  1818. * @memberof game.reward_info
  1819. * @static
  1820. * @param {Object.<string,*>} object Plain object
  1821. * @returns {game.reward_info} reward_info
  1822. */
  1823. reward_info.fromObject = function fromObject(object) {
  1824. if (object instanceof $root.game.reward_info)
  1825. return object;
  1826. let message = new $root.game.reward_info();
  1827. if (object.flags != null)
  1828. message.flags = String(object.flags);
  1829. if (object.added != null) {
  1830. if (typeof object.added !== "object")
  1831. throw TypeError(".game.reward_info.added: object expected");
  1832. message.added = $root.game.reward.fromObject(object.added);
  1833. }
  1834. return message;
  1835. };
  1836. /**
  1837. * Creates a plain object from a reward_info message. Also converts values to other types if specified.
  1838. * @function toObject
  1839. * @memberof game.reward_info
  1840. * @static
  1841. * @param {game.reward_info} message reward_info
  1842. * @param {$protobuf.IConversionOptions} [options] Conversion options
  1843. * @returns {Object.<string,*>} Plain object
  1844. */
  1845. reward_info.toObject = function toObject(message, options) {
  1846. if (!options)
  1847. options = {};
  1848. let object = {};
  1849. if (options.defaults) {
  1850. object.flags = "";
  1851. object.added = null;
  1852. }
  1853. if (message.flags != null && message.hasOwnProperty("flags"))
  1854. object.flags = message.flags;
  1855. if (message.added != null && message.hasOwnProperty("added"))
  1856. object.added = $root.game.reward.toObject(message.added, options);
  1857. return object;
  1858. };
  1859. /**
  1860. * Converts this reward_info to JSON.
  1861. * @function toJSON
  1862. * @memberof game.reward_info
  1863. * @instance
  1864. * @returns {Object.<string,*>} JSON object
  1865. */
  1866. reward_info.prototype.toJSON = function toJSON() {
  1867. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  1868. };
  1869. return reward_info;
  1870. })();
  1871. game.city_change = (function() {
  1872. /**
  1873. * Properties of a city_change.
  1874. * @memberof game
  1875. * @interface Icity_change
  1876. * @property {game.Iid_num|null} [currency] city_change currency
  1877. * @property {number|Long|null} [time] city_change time
  1878. */
  1879. /**
  1880. * Constructs a new city_change.
  1881. * @memberof game
  1882. * @classdesc Represents a city_change.
  1883. * @implements Icity_change
  1884. * @constructor
  1885. * @param {game.Icity_change=} [properties] Properties to set
  1886. */
  1887. function city_change(properties) {
  1888. if (properties)
  1889. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  1890. if (properties[keys[i]] != null)
  1891. this[keys[i]] = properties[keys[i]];
  1892. }
  1893. /**
  1894. * city_change currency.
  1895. * @member {game.Iid_num|null|undefined} currency
  1896. * @memberof game.city_change
  1897. * @instance
  1898. */
  1899. city_change.prototype.currency = null;
  1900. /**
  1901. * city_change time.
  1902. * @member {number|Long} time
  1903. * @memberof game.city_change
  1904. * @instance
  1905. */
  1906. city_change.prototype.time = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  1907. /**
  1908. * Creates a new city_change instance using the specified properties.
  1909. * @function create
  1910. * @memberof game.city_change
  1911. * @static
  1912. * @param {game.Icity_change=} [properties] Properties to set
  1913. * @returns {game.city_change} city_change instance
  1914. */
  1915. city_change.create = function create(properties) {
  1916. return new city_change(properties);
  1917. };
  1918. /**
  1919. * Encodes the specified city_change message. Does not implicitly {@link game.city_change.verify|verify} messages.
  1920. * @function encode
  1921. * @memberof game.city_change
  1922. * @static
  1923. * @param {game.Icity_change} message city_change message or plain object to encode
  1924. * @param {$protobuf.Writer} [writer] Writer to encode to
  1925. * @returns {$protobuf.Writer} Writer
  1926. */
  1927. city_change.encode = function encode(message, writer) {
  1928. if (!writer)
  1929. writer = $Writer.create();
  1930. if (message.currency != null && Object.hasOwnProperty.call(message, "currency"))
  1931. $root.game.id_num.encode(message.currency, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
  1932. if (message.time != null && Object.hasOwnProperty.call(message, "time"))
  1933. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.time);
  1934. return writer;
  1935. };
  1936. /**
  1937. * Encodes the specified city_change message, length delimited. Does not implicitly {@link game.city_change.verify|verify} messages.
  1938. * @function encodeDelimited
  1939. * @memberof game.city_change
  1940. * @static
  1941. * @param {game.Icity_change} message city_change message or plain object to encode
  1942. * @param {$protobuf.Writer} [writer] Writer to encode to
  1943. * @returns {$protobuf.Writer} Writer
  1944. */
  1945. city_change.encodeDelimited = function encodeDelimited(message, writer) {
  1946. return this.encode(message, writer).ldelim();
  1947. };
  1948. /**
  1949. * Decodes a city_change message from the specified reader or buffer.
  1950. * @function decode
  1951. * @memberof game.city_change
  1952. * @static
  1953. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  1954. * @param {number} [length] Message length if known beforehand
  1955. * @returns {game.city_change} city_change
  1956. * @throws {Error} If the payload is not a reader or valid buffer
  1957. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  1958. */
  1959. city_change.decode = function decode(reader, length) {
  1960. if (!(reader instanceof $Reader))
  1961. reader = $Reader.create(reader);
  1962. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.city_change();
  1963. while (reader.pos < end) {
  1964. let tag = reader.uint32();
  1965. switch (tag >>> 3) {
  1966. case 1:
  1967. message.currency = $root.game.id_num.decode(reader, reader.uint32());
  1968. break;
  1969. case 3:
  1970. message.time = reader.int64();
  1971. break;
  1972. default:
  1973. reader.skipType(tag & 7);
  1974. break;
  1975. }
  1976. }
  1977. return message;
  1978. };
  1979. /**
  1980. * Decodes a city_change message from the specified reader or buffer, length delimited.
  1981. * @function decodeDelimited
  1982. * @memberof game.city_change
  1983. * @static
  1984. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  1985. * @returns {game.city_change} city_change
  1986. * @throws {Error} If the payload is not a reader or valid buffer
  1987. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  1988. */
  1989. city_change.decodeDelimited = function decodeDelimited(reader) {
  1990. if (!(reader instanceof $Reader))
  1991. reader = new $Reader(reader);
  1992. return this.decode(reader, reader.uint32());
  1993. };
  1994. /**
  1995. * Verifies a city_change message.
  1996. * @function verify
  1997. * @memberof game.city_change
  1998. * @static
  1999. * @param {Object.<string,*>} message Plain object to verify
  2000. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  2001. */
  2002. city_change.verify = function verify(message) {
  2003. if (typeof message !== "object" || message === null)
  2004. return "object expected";
  2005. if (message.currency != null && message.hasOwnProperty("currency")) {
  2006. let error = $root.game.id_num.verify(message.currency);
  2007. if (error)
  2008. return "currency." + error;
  2009. }
  2010. if (message.time != null && message.hasOwnProperty("time"))
  2011. if (!$util.isInteger(message.time) && !(message.time && $util.isInteger(message.time.low) && $util.isInteger(message.time.high)))
  2012. return "time: integer|Long expected";
  2013. return null;
  2014. };
  2015. /**
  2016. * Creates a city_change message from a plain object. Also converts values to their respective internal types.
  2017. * @function fromObject
  2018. * @memberof game.city_change
  2019. * @static
  2020. * @param {Object.<string,*>} object Plain object
  2021. * @returns {game.city_change} city_change
  2022. */
  2023. city_change.fromObject = function fromObject(object) {
  2024. if (object instanceof $root.game.city_change)
  2025. return object;
  2026. let message = new $root.game.city_change();
  2027. if (object.currency != null) {
  2028. if (typeof object.currency !== "object")
  2029. throw TypeError(".game.city_change.currency: object expected");
  2030. message.currency = $root.game.id_num.fromObject(object.currency);
  2031. }
  2032. if (object.time != null)
  2033. if ($util.Long)
  2034. (message.time = $util.Long.fromValue(object.time)).unsigned = false;
  2035. else if (typeof object.time === "string")
  2036. message.time = parseInt(object.time, 10);
  2037. else if (typeof object.time === "number")
  2038. message.time = object.time;
  2039. else if (typeof object.time === "object")
  2040. message.time = new $util.LongBits(object.time.low >>> 0, object.time.high >>> 0).toNumber();
  2041. return message;
  2042. };
  2043. /**
  2044. * Creates a plain object from a city_change message. Also converts values to other types if specified.
  2045. * @function toObject
  2046. * @memberof game.city_change
  2047. * @static
  2048. * @param {game.city_change} message city_change
  2049. * @param {$protobuf.IConversionOptions} [options] Conversion options
  2050. * @returns {Object.<string,*>} Plain object
  2051. */
  2052. city_change.toObject = function toObject(message, options) {
  2053. if (!options)
  2054. options = {};
  2055. let object = {};
  2056. if (options.defaults) {
  2057. object.currency = null;
  2058. if ($util.Long) {
  2059. let long = new $util.Long(0, 0, false);
  2060. object.time = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  2061. } else
  2062. object.time = options.longs === String ? "0" : 0;
  2063. }
  2064. if (message.currency != null && message.hasOwnProperty("currency"))
  2065. object.currency = $root.game.id_num.toObject(message.currency, options);
  2066. if (message.time != null && message.hasOwnProperty("time"))
  2067. if (typeof message.time === "number")
  2068. object.time = options.longs === String ? String(message.time) : message.time;
  2069. else
  2070. 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;
  2071. return object;
  2072. };
  2073. /**
  2074. * Converts this city_change to JSON.
  2075. * @function toJSON
  2076. * @memberof game.city_change
  2077. * @instance
  2078. * @returns {Object.<string,*>} JSON object
  2079. */
  2080. city_change.prototype.toJSON = function toJSON() {
  2081. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  2082. };
  2083. return city_change;
  2084. })();
  2085. game.pay_currency = (function() {
  2086. /**
  2087. * Properties of a pay_currency.
  2088. * @memberof game
  2089. * @interface Ipay_currency
  2090. * @property {Array.<game.Iid_num>|null} [now] pay_currency now
  2091. * @property {Array.<game.Iid_num>|null} [pay] pay_currency pay
  2092. */
  2093. /**
  2094. * Constructs a new pay_currency.
  2095. * @memberof game
  2096. * @classdesc Represents a pay_currency.
  2097. * @implements Ipay_currency
  2098. * @constructor
  2099. * @param {game.Ipay_currency=} [properties] Properties to set
  2100. */
  2101. function pay_currency(properties) {
  2102. this.now = [];
  2103. this.pay = [];
  2104. if (properties)
  2105. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  2106. if (properties[keys[i]] != null)
  2107. this[keys[i]] = properties[keys[i]];
  2108. }
  2109. /**
  2110. * pay_currency now.
  2111. * @member {Array.<game.Iid_num>} now
  2112. * @memberof game.pay_currency
  2113. * @instance
  2114. */
  2115. pay_currency.prototype.now = $util.emptyArray;
  2116. /**
  2117. * pay_currency pay.
  2118. * @member {Array.<game.Iid_num>} pay
  2119. * @memberof game.pay_currency
  2120. * @instance
  2121. */
  2122. pay_currency.prototype.pay = $util.emptyArray;
  2123. /**
  2124. * Creates a new pay_currency instance using the specified properties.
  2125. * @function create
  2126. * @memberof game.pay_currency
  2127. * @static
  2128. * @param {game.Ipay_currency=} [properties] Properties to set
  2129. * @returns {game.pay_currency} pay_currency instance
  2130. */
  2131. pay_currency.create = function create(properties) {
  2132. return new pay_currency(properties);
  2133. };
  2134. /**
  2135. * Encodes the specified pay_currency message. Does not implicitly {@link game.pay_currency.verify|verify} messages.
  2136. * @function encode
  2137. * @memberof game.pay_currency
  2138. * @static
  2139. * @param {game.Ipay_currency} message pay_currency message or plain object to encode
  2140. * @param {$protobuf.Writer} [writer] Writer to encode to
  2141. * @returns {$protobuf.Writer} Writer
  2142. */
  2143. pay_currency.encode = function encode(message, writer) {
  2144. if (!writer)
  2145. writer = $Writer.create();
  2146. if (message.now != null && message.now.length)
  2147. for (let i = 0; i < message.now.length; ++i)
  2148. $root.game.id_num.encode(message.now[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
  2149. if (message.pay != null && message.pay.length)
  2150. for (let i = 0; i < message.pay.length; ++i)
  2151. $root.game.id_num.encode(message.pay[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  2152. return writer;
  2153. };
  2154. /**
  2155. * Encodes the specified pay_currency message, length delimited. Does not implicitly {@link game.pay_currency.verify|verify} messages.
  2156. * @function encodeDelimited
  2157. * @memberof game.pay_currency
  2158. * @static
  2159. * @param {game.Ipay_currency} message pay_currency message or plain object to encode
  2160. * @param {$protobuf.Writer} [writer] Writer to encode to
  2161. * @returns {$protobuf.Writer} Writer
  2162. */
  2163. pay_currency.encodeDelimited = function encodeDelimited(message, writer) {
  2164. return this.encode(message, writer).ldelim();
  2165. };
  2166. /**
  2167. * Decodes a pay_currency message from the specified reader or buffer.
  2168. * @function decode
  2169. * @memberof game.pay_currency
  2170. * @static
  2171. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  2172. * @param {number} [length] Message length if known beforehand
  2173. * @returns {game.pay_currency} pay_currency
  2174. * @throws {Error} If the payload is not a reader or valid buffer
  2175. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2176. */
  2177. pay_currency.decode = function decode(reader, length) {
  2178. if (!(reader instanceof $Reader))
  2179. reader = $Reader.create(reader);
  2180. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pay_currency();
  2181. while (reader.pos < end) {
  2182. let tag = reader.uint32();
  2183. switch (tag >>> 3) {
  2184. case 1:
  2185. if (!(message.now && message.now.length))
  2186. message.now = [];
  2187. message.now.push($root.game.id_num.decode(reader, reader.uint32()));
  2188. break;
  2189. case 2:
  2190. if (!(message.pay && message.pay.length))
  2191. message.pay = [];
  2192. message.pay.push($root.game.id_num.decode(reader, reader.uint32()));
  2193. break;
  2194. default:
  2195. reader.skipType(tag & 7);
  2196. break;
  2197. }
  2198. }
  2199. return message;
  2200. };
  2201. /**
  2202. * Decodes a pay_currency message from the specified reader or buffer, length delimited.
  2203. * @function decodeDelimited
  2204. * @memberof game.pay_currency
  2205. * @static
  2206. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  2207. * @returns {game.pay_currency} pay_currency
  2208. * @throws {Error} If the payload is not a reader or valid buffer
  2209. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2210. */
  2211. pay_currency.decodeDelimited = function decodeDelimited(reader) {
  2212. if (!(reader instanceof $Reader))
  2213. reader = new $Reader(reader);
  2214. return this.decode(reader, reader.uint32());
  2215. };
  2216. /**
  2217. * Verifies a pay_currency message.
  2218. * @function verify
  2219. * @memberof game.pay_currency
  2220. * @static
  2221. * @param {Object.<string,*>} message Plain object to verify
  2222. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  2223. */
  2224. pay_currency.verify = function verify(message) {
  2225. if (typeof message !== "object" || message === null)
  2226. return "object expected";
  2227. if (message.now != null && message.hasOwnProperty("now")) {
  2228. if (!Array.isArray(message.now))
  2229. return "now: array expected";
  2230. for (let i = 0; i < message.now.length; ++i) {
  2231. let error = $root.game.id_num.verify(message.now[i]);
  2232. if (error)
  2233. return "now." + error;
  2234. }
  2235. }
  2236. if (message.pay != null && message.hasOwnProperty("pay")) {
  2237. if (!Array.isArray(message.pay))
  2238. return "pay: array expected";
  2239. for (let i = 0; i < message.pay.length; ++i) {
  2240. let error = $root.game.id_num.verify(message.pay[i]);
  2241. if (error)
  2242. return "pay." + error;
  2243. }
  2244. }
  2245. return null;
  2246. };
  2247. /**
  2248. * Creates a pay_currency message from a plain object. Also converts values to their respective internal types.
  2249. * @function fromObject
  2250. * @memberof game.pay_currency
  2251. * @static
  2252. * @param {Object.<string,*>} object Plain object
  2253. * @returns {game.pay_currency} pay_currency
  2254. */
  2255. pay_currency.fromObject = function fromObject(object) {
  2256. if (object instanceof $root.game.pay_currency)
  2257. return object;
  2258. let message = new $root.game.pay_currency();
  2259. if (object.now) {
  2260. if (!Array.isArray(object.now))
  2261. throw TypeError(".game.pay_currency.now: array expected");
  2262. message.now = [];
  2263. for (let i = 0; i < object.now.length; ++i) {
  2264. if (typeof object.now[i] !== "object")
  2265. throw TypeError(".game.pay_currency.now: object expected");
  2266. message.now[i] = $root.game.id_num.fromObject(object.now[i]);
  2267. }
  2268. }
  2269. if (object.pay) {
  2270. if (!Array.isArray(object.pay))
  2271. throw TypeError(".game.pay_currency.pay: array expected");
  2272. message.pay = [];
  2273. for (let i = 0; i < object.pay.length; ++i) {
  2274. if (typeof object.pay[i] !== "object")
  2275. throw TypeError(".game.pay_currency.pay: object expected");
  2276. message.pay[i] = $root.game.id_num.fromObject(object.pay[i]);
  2277. }
  2278. }
  2279. return message;
  2280. };
  2281. /**
  2282. * Creates a plain object from a pay_currency message. Also converts values to other types if specified.
  2283. * @function toObject
  2284. * @memberof game.pay_currency
  2285. * @static
  2286. * @param {game.pay_currency} message pay_currency
  2287. * @param {$protobuf.IConversionOptions} [options] Conversion options
  2288. * @returns {Object.<string,*>} Plain object
  2289. */
  2290. pay_currency.toObject = function toObject(message, options) {
  2291. if (!options)
  2292. options = {};
  2293. let object = {};
  2294. if (options.arrays || options.defaults) {
  2295. object.now = [];
  2296. object.pay = [];
  2297. }
  2298. if (message.now && message.now.length) {
  2299. object.now = [];
  2300. for (let j = 0; j < message.now.length; ++j)
  2301. object.now[j] = $root.game.id_num.toObject(message.now[j], options);
  2302. }
  2303. if (message.pay && message.pay.length) {
  2304. object.pay = [];
  2305. for (let j = 0; j < message.pay.length; ++j)
  2306. object.pay[j] = $root.game.id_num.toObject(message.pay[j], options);
  2307. }
  2308. return object;
  2309. };
  2310. /**
  2311. * Converts this pay_currency to JSON.
  2312. * @function toJSON
  2313. * @memberof game.pay_currency
  2314. * @instance
  2315. * @returns {Object.<string,*>} JSON object
  2316. */
  2317. pay_currency.prototype.toJSON = function toJSON() {
  2318. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  2319. };
  2320. return pay_currency;
  2321. })();
  2322. game.pay_debris_nty = (function() {
  2323. /**
  2324. * Properties of a pay_debris_nty.
  2325. * @memberof game
  2326. * @interface Ipay_debris_nty
  2327. * @property {Array.<game.Iid_num>|null} [list] pay_debris_nty list
  2328. */
  2329. /**
  2330. * Constructs a new pay_debris_nty.
  2331. * @memberof game
  2332. * @classdesc Represents a pay_debris_nty.
  2333. * @implements Ipay_debris_nty
  2334. * @constructor
  2335. * @param {game.Ipay_debris_nty=} [properties] Properties to set
  2336. */
  2337. function pay_debris_nty(properties) {
  2338. this.list = [];
  2339. if (properties)
  2340. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  2341. if (properties[keys[i]] != null)
  2342. this[keys[i]] = properties[keys[i]];
  2343. }
  2344. /**
  2345. * pay_debris_nty list.
  2346. * @member {Array.<game.Iid_num>} list
  2347. * @memberof game.pay_debris_nty
  2348. * @instance
  2349. */
  2350. pay_debris_nty.prototype.list = $util.emptyArray;
  2351. /**
  2352. * Creates a new pay_debris_nty instance using the specified properties.
  2353. * @function create
  2354. * @memberof game.pay_debris_nty
  2355. * @static
  2356. * @param {game.Ipay_debris_nty=} [properties] Properties to set
  2357. * @returns {game.pay_debris_nty} pay_debris_nty instance
  2358. */
  2359. pay_debris_nty.create = function create(properties) {
  2360. return new pay_debris_nty(properties);
  2361. };
  2362. /**
  2363. * Encodes the specified pay_debris_nty message. Does not implicitly {@link game.pay_debris_nty.verify|verify} messages.
  2364. * @function encode
  2365. * @memberof game.pay_debris_nty
  2366. * @static
  2367. * @param {game.Ipay_debris_nty} message pay_debris_nty message or plain object to encode
  2368. * @param {$protobuf.Writer} [writer] Writer to encode to
  2369. * @returns {$protobuf.Writer} Writer
  2370. */
  2371. pay_debris_nty.encode = function encode(message, writer) {
  2372. if (!writer)
  2373. writer = $Writer.create();
  2374. if (message.list != null && message.list.length)
  2375. for (let i = 0; i < message.list.length; ++i)
  2376. $root.game.id_num.encode(message.list[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
  2377. return writer;
  2378. };
  2379. /**
  2380. * Encodes the specified pay_debris_nty message, length delimited. Does not implicitly {@link game.pay_debris_nty.verify|verify} messages.
  2381. * @function encodeDelimited
  2382. * @memberof game.pay_debris_nty
  2383. * @static
  2384. * @param {game.Ipay_debris_nty} message pay_debris_nty message or plain object to encode
  2385. * @param {$protobuf.Writer} [writer] Writer to encode to
  2386. * @returns {$protobuf.Writer} Writer
  2387. */
  2388. pay_debris_nty.encodeDelimited = function encodeDelimited(message, writer) {
  2389. return this.encode(message, writer).ldelim();
  2390. };
  2391. /**
  2392. * Decodes a pay_debris_nty message from the specified reader or buffer.
  2393. * @function decode
  2394. * @memberof game.pay_debris_nty
  2395. * @static
  2396. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  2397. * @param {number} [length] Message length if known beforehand
  2398. * @returns {game.pay_debris_nty} pay_debris_nty
  2399. * @throws {Error} If the payload is not a reader or valid buffer
  2400. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2401. */
  2402. pay_debris_nty.decode = function decode(reader, length) {
  2403. if (!(reader instanceof $Reader))
  2404. reader = $Reader.create(reader);
  2405. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pay_debris_nty();
  2406. while (reader.pos < end) {
  2407. let tag = reader.uint32();
  2408. switch (tag >>> 3) {
  2409. case 1:
  2410. if (!(message.list && message.list.length))
  2411. message.list = [];
  2412. message.list.push($root.game.id_num.decode(reader, reader.uint32()));
  2413. break;
  2414. default:
  2415. reader.skipType(tag & 7);
  2416. break;
  2417. }
  2418. }
  2419. return message;
  2420. };
  2421. /**
  2422. * Decodes a pay_debris_nty message from the specified reader or buffer, length delimited.
  2423. * @function decodeDelimited
  2424. * @memberof game.pay_debris_nty
  2425. * @static
  2426. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  2427. * @returns {game.pay_debris_nty} pay_debris_nty
  2428. * @throws {Error} If the payload is not a reader or valid buffer
  2429. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2430. */
  2431. pay_debris_nty.decodeDelimited = function decodeDelimited(reader) {
  2432. if (!(reader instanceof $Reader))
  2433. reader = new $Reader(reader);
  2434. return this.decode(reader, reader.uint32());
  2435. };
  2436. /**
  2437. * Verifies a pay_debris_nty message.
  2438. * @function verify
  2439. * @memberof game.pay_debris_nty
  2440. * @static
  2441. * @param {Object.<string,*>} message Plain object to verify
  2442. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  2443. */
  2444. pay_debris_nty.verify = function verify(message) {
  2445. if (typeof message !== "object" || message === null)
  2446. return "object expected";
  2447. if (message.list != null && message.hasOwnProperty("list")) {
  2448. if (!Array.isArray(message.list))
  2449. return "list: array expected";
  2450. for (let i = 0; i < message.list.length; ++i) {
  2451. let error = $root.game.id_num.verify(message.list[i]);
  2452. if (error)
  2453. return "list." + error;
  2454. }
  2455. }
  2456. return null;
  2457. };
  2458. /**
  2459. * Creates a pay_debris_nty message from a plain object. Also converts values to their respective internal types.
  2460. * @function fromObject
  2461. * @memberof game.pay_debris_nty
  2462. * @static
  2463. * @param {Object.<string,*>} object Plain object
  2464. * @returns {game.pay_debris_nty} pay_debris_nty
  2465. */
  2466. pay_debris_nty.fromObject = function fromObject(object) {
  2467. if (object instanceof $root.game.pay_debris_nty)
  2468. return object;
  2469. let message = new $root.game.pay_debris_nty();
  2470. if (object.list) {
  2471. if (!Array.isArray(object.list))
  2472. throw TypeError(".game.pay_debris_nty.list: array expected");
  2473. message.list = [];
  2474. for (let i = 0; i < object.list.length; ++i) {
  2475. if (typeof object.list[i] !== "object")
  2476. throw TypeError(".game.pay_debris_nty.list: object expected");
  2477. message.list[i] = $root.game.id_num.fromObject(object.list[i]);
  2478. }
  2479. }
  2480. return message;
  2481. };
  2482. /**
  2483. * Creates a plain object from a pay_debris_nty message. Also converts values to other types if specified.
  2484. * @function toObject
  2485. * @memberof game.pay_debris_nty
  2486. * @static
  2487. * @param {game.pay_debris_nty} message pay_debris_nty
  2488. * @param {$protobuf.IConversionOptions} [options] Conversion options
  2489. * @returns {Object.<string,*>} Plain object
  2490. */
  2491. pay_debris_nty.toObject = function toObject(message, options) {
  2492. if (!options)
  2493. options = {};
  2494. let object = {};
  2495. if (options.arrays || options.defaults)
  2496. object.list = [];
  2497. if (message.list && message.list.length) {
  2498. object.list = [];
  2499. for (let j = 0; j < message.list.length; ++j)
  2500. object.list[j] = $root.game.id_num.toObject(message.list[j], options);
  2501. }
  2502. return object;
  2503. };
  2504. /**
  2505. * Converts this pay_debris_nty to JSON.
  2506. * @function toJSON
  2507. * @memberof game.pay_debris_nty
  2508. * @instance
  2509. * @returns {Object.<string,*>} JSON object
  2510. */
  2511. pay_debris_nty.prototype.toJSON = function toJSON() {
  2512. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  2513. };
  2514. return pay_debris_nty;
  2515. })();
  2516. game.exception_nty = (function() {
  2517. /**
  2518. * Properties of an exception_nty.
  2519. * @memberof game
  2520. * @interface Iexception_nty
  2521. * @property {number|Long|null} [errno] exception_nty errno
  2522. */
  2523. /**
  2524. * Constructs a new exception_nty.
  2525. * @memberof game
  2526. * @classdesc Represents an exception_nty.
  2527. * @implements Iexception_nty
  2528. * @constructor
  2529. * @param {game.Iexception_nty=} [properties] Properties to set
  2530. */
  2531. function exception_nty(properties) {
  2532. if (properties)
  2533. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  2534. if (properties[keys[i]] != null)
  2535. this[keys[i]] = properties[keys[i]];
  2536. }
  2537. /**
  2538. * exception_nty errno.
  2539. * @member {number|Long} errno
  2540. * @memberof game.exception_nty
  2541. * @instance
  2542. */
  2543. exception_nty.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  2544. /**
  2545. * Creates a new exception_nty instance using the specified properties.
  2546. * @function create
  2547. * @memberof game.exception_nty
  2548. * @static
  2549. * @param {game.Iexception_nty=} [properties] Properties to set
  2550. * @returns {game.exception_nty} exception_nty instance
  2551. */
  2552. exception_nty.create = function create(properties) {
  2553. return new exception_nty(properties);
  2554. };
  2555. /**
  2556. * Encodes the specified exception_nty message. Does not implicitly {@link game.exception_nty.verify|verify} messages.
  2557. * @function encode
  2558. * @memberof game.exception_nty
  2559. * @static
  2560. * @param {game.Iexception_nty} message exception_nty message or plain object to encode
  2561. * @param {$protobuf.Writer} [writer] Writer to encode to
  2562. * @returns {$protobuf.Writer} Writer
  2563. */
  2564. exception_nty.encode = function encode(message, writer) {
  2565. if (!writer)
  2566. writer = $Writer.create();
  2567. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  2568. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  2569. return writer;
  2570. };
  2571. /**
  2572. * Encodes the specified exception_nty message, length delimited. Does not implicitly {@link game.exception_nty.verify|verify} messages.
  2573. * @function encodeDelimited
  2574. * @memberof game.exception_nty
  2575. * @static
  2576. * @param {game.Iexception_nty} message exception_nty message or plain object to encode
  2577. * @param {$protobuf.Writer} [writer] Writer to encode to
  2578. * @returns {$protobuf.Writer} Writer
  2579. */
  2580. exception_nty.encodeDelimited = function encodeDelimited(message, writer) {
  2581. return this.encode(message, writer).ldelim();
  2582. };
  2583. /**
  2584. * Decodes an exception_nty message from the specified reader or buffer.
  2585. * @function decode
  2586. * @memberof game.exception_nty
  2587. * @static
  2588. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  2589. * @param {number} [length] Message length if known beforehand
  2590. * @returns {game.exception_nty} exception_nty
  2591. * @throws {Error} If the payload is not a reader or valid buffer
  2592. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2593. */
  2594. exception_nty.decode = function decode(reader, length) {
  2595. if (!(reader instanceof $Reader))
  2596. reader = $Reader.create(reader);
  2597. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.exception_nty();
  2598. while (reader.pos < end) {
  2599. let tag = reader.uint32();
  2600. switch (tag >>> 3) {
  2601. case 1:
  2602. message.errno = reader.int64();
  2603. break;
  2604. default:
  2605. reader.skipType(tag & 7);
  2606. break;
  2607. }
  2608. }
  2609. return message;
  2610. };
  2611. /**
  2612. * Decodes an exception_nty message from the specified reader or buffer, length delimited.
  2613. * @function decodeDelimited
  2614. * @memberof game.exception_nty
  2615. * @static
  2616. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  2617. * @returns {game.exception_nty} exception_nty
  2618. * @throws {Error} If the payload is not a reader or valid buffer
  2619. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2620. */
  2621. exception_nty.decodeDelimited = function decodeDelimited(reader) {
  2622. if (!(reader instanceof $Reader))
  2623. reader = new $Reader(reader);
  2624. return this.decode(reader, reader.uint32());
  2625. };
  2626. /**
  2627. * Verifies an exception_nty message.
  2628. * @function verify
  2629. * @memberof game.exception_nty
  2630. * @static
  2631. * @param {Object.<string,*>} message Plain object to verify
  2632. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  2633. */
  2634. exception_nty.verify = function verify(message) {
  2635. if (typeof message !== "object" || message === null)
  2636. return "object expected";
  2637. if (message.errno != null && message.hasOwnProperty("errno"))
  2638. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  2639. return "errno: integer|Long expected";
  2640. return null;
  2641. };
  2642. /**
  2643. * Creates an exception_nty message from a plain object. Also converts values to their respective internal types.
  2644. * @function fromObject
  2645. * @memberof game.exception_nty
  2646. * @static
  2647. * @param {Object.<string,*>} object Plain object
  2648. * @returns {game.exception_nty} exception_nty
  2649. */
  2650. exception_nty.fromObject = function fromObject(object) {
  2651. if (object instanceof $root.game.exception_nty)
  2652. return object;
  2653. let message = new $root.game.exception_nty();
  2654. if (object.errno != null)
  2655. if ($util.Long)
  2656. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  2657. else if (typeof object.errno === "string")
  2658. message.errno = parseInt(object.errno, 10);
  2659. else if (typeof object.errno === "number")
  2660. message.errno = object.errno;
  2661. else if (typeof object.errno === "object")
  2662. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  2663. return message;
  2664. };
  2665. /**
  2666. * Creates a plain object from an exception_nty message. Also converts values to other types if specified.
  2667. * @function toObject
  2668. * @memberof game.exception_nty
  2669. * @static
  2670. * @param {game.exception_nty} message exception_nty
  2671. * @param {$protobuf.IConversionOptions} [options] Conversion options
  2672. * @returns {Object.<string,*>} Plain object
  2673. */
  2674. exception_nty.toObject = function toObject(message, options) {
  2675. if (!options)
  2676. options = {};
  2677. let object = {};
  2678. if (options.defaults)
  2679. if ($util.Long) {
  2680. let long = new $util.Long(0, 0, false);
  2681. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  2682. } else
  2683. object.errno = options.longs === String ? "0" : 0;
  2684. if (message.errno != null && message.hasOwnProperty("errno"))
  2685. if (typeof message.errno === "number")
  2686. object.errno = options.longs === String ? String(message.errno) : message.errno;
  2687. else
  2688. 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;
  2689. return object;
  2690. };
  2691. /**
  2692. * Converts this exception_nty to JSON.
  2693. * @function toJSON
  2694. * @memberof game.exception_nty
  2695. * @instance
  2696. * @returns {Object.<string,*>} JSON object
  2697. */
  2698. exception_nty.prototype.toJSON = function toJSON() {
  2699. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  2700. };
  2701. return exception_nty;
  2702. })();
  2703. game.create_order_nty = (function() {
  2704. /**
  2705. * Properties of a create_order_nty.
  2706. * @memberof game
  2707. * @interface Icreate_order_nty
  2708. * @property {string|null} [id] create_order_nty id
  2709. * @property {number|Long|null} [cfid] create_order_nty cfid
  2710. * @property {string|null} [sign] create_order_nty sign
  2711. * @property {number|Long|null} [time] create_order_nty time
  2712. */
  2713. /**
  2714. * Constructs a new create_order_nty.
  2715. * @memberof game
  2716. * @classdesc Represents a create_order_nty.
  2717. * @implements Icreate_order_nty
  2718. * @constructor
  2719. * @param {game.Icreate_order_nty=} [properties] Properties to set
  2720. */
  2721. function create_order_nty(properties) {
  2722. if (properties)
  2723. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  2724. if (properties[keys[i]] != null)
  2725. this[keys[i]] = properties[keys[i]];
  2726. }
  2727. /**
  2728. * create_order_nty id.
  2729. * @member {string} id
  2730. * @memberof game.create_order_nty
  2731. * @instance
  2732. */
  2733. create_order_nty.prototype.id = "";
  2734. /**
  2735. * create_order_nty cfid.
  2736. * @member {number|Long} cfid
  2737. * @memberof game.create_order_nty
  2738. * @instance
  2739. */
  2740. create_order_nty.prototype.cfid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  2741. /**
  2742. * create_order_nty sign.
  2743. * @member {string} sign
  2744. * @memberof game.create_order_nty
  2745. * @instance
  2746. */
  2747. create_order_nty.prototype.sign = "";
  2748. /**
  2749. * create_order_nty time.
  2750. * @member {number|Long} time
  2751. * @memberof game.create_order_nty
  2752. * @instance
  2753. */
  2754. create_order_nty.prototype.time = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  2755. /**
  2756. * Creates a new create_order_nty instance using the specified properties.
  2757. * @function create
  2758. * @memberof game.create_order_nty
  2759. * @static
  2760. * @param {game.Icreate_order_nty=} [properties] Properties to set
  2761. * @returns {game.create_order_nty} create_order_nty instance
  2762. */
  2763. create_order_nty.create = function create(properties) {
  2764. return new create_order_nty(properties);
  2765. };
  2766. /**
  2767. * Encodes the specified create_order_nty message. Does not implicitly {@link game.create_order_nty.verify|verify} messages.
  2768. * @function encode
  2769. * @memberof game.create_order_nty
  2770. * @static
  2771. * @param {game.Icreate_order_nty} message create_order_nty message or plain object to encode
  2772. * @param {$protobuf.Writer} [writer] Writer to encode to
  2773. * @returns {$protobuf.Writer} Writer
  2774. */
  2775. create_order_nty.encode = function encode(message, writer) {
  2776. if (!writer)
  2777. writer = $Writer.create();
  2778. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  2779. writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
  2780. if (message.cfid != null && Object.hasOwnProperty.call(message, "cfid"))
  2781. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.cfid);
  2782. if (message.sign != null && Object.hasOwnProperty.call(message, "sign"))
  2783. writer.uint32(/* id 3, wireType 2 =*/26).string(message.sign);
  2784. if (message.time != null && Object.hasOwnProperty.call(message, "time"))
  2785. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.time);
  2786. return writer;
  2787. };
  2788. /**
  2789. * Encodes the specified create_order_nty message, length delimited. Does not implicitly {@link game.create_order_nty.verify|verify} messages.
  2790. * @function encodeDelimited
  2791. * @memberof game.create_order_nty
  2792. * @static
  2793. * @param {game.Icreate_order_nty} message create_order_nty message or plain object to encode
  2794. * @param {$protobuf.Writer} [writer] Writer to encode to
  2795. * @returns {$protobuf.Writer} Writer
  2796. */
  2797. create_order_nty.encodeDelimited = function encodeDelimited(message, writer) {
  2798. return this.encode(message, writer).ldelim();
  2799. };
  2800. /**
  2801. * Decodes a create_order_nty message from the specified reader or buffer.
  2802. * @function decode
  2803. * @memberof game.create_order_nty
  2804. * @static
  2805. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  2806. * @param {number} [length] Message length if known beforehand
  2807. * @returns {game.create_order_nty} create_order_nty
  2808. * @throws {Error} If the payload is not a reader or valid buffer
  2809. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2810. */
  2811. create_order_nty.decode = function decode(reader, length) {
  2812. if (!(reader instanceof $Reader))
  2813. reader = $Reader.create(reader);
  2814. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.create_order_nty();
  2815. while (reader.pos < end) {
  2816. let tag = reader.uint32();
  2817. switch (tag >>> 3) {
  2818. case 1:
  2819. message.id = reader.string();
  2820. break;
  2821. case 2:
  2822. message.cfid = reader.int64();
  2823. break;
  2824. case 3:
  2825. message.sign = reader.string();
  2826. break;
  2827. case 4:
  2828. message.time = reader.int64();
  2829. break;
  2830. default:
  2831. reader.skipType(tag & 7);
  2832. break;
  2833. }
  2834. }
  2835. return message;
  2836. };
  2837. /**
  2838. * Decodes a create_order_nty message from the specified reader or buffer, length delimited.
  2839. * @function decodeDelimited
  2840. * @memberof game.create_order_nty
  2841. * @static
  2842. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  2843. * @returns {game.create_order_nty} create_order_nty
  2844. * @throws {Error} If the payload is not a reader or valid buffer
  2845. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2846. */
  2847. create_order_nty.decodeDelimited = function decodeDelimited(reader) {
  2848. if (!(reader instanceof $Reader))
  2849. reader = new $Reader(reader);
  2850. return this.decode(reader, reader.uint32());
  2851. };
  2852. /**
  2853. * Verifies a create_order_nty message.
  2854. * @function verify
  2855. * @memberof game.create_order_nty
  2856. * @static
  2857. * @param {Object.<string,*>} message Plain object to verify
  2858. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  2859. */
  2860. create_order_nty.verify = function verify(message) {
  2861. if (typeof message !== "object" || message === null)
  2862. return "object expected";
  2863. if (message.id != null && message.hasOwnProperty("id"))
  2864. if (!$util.isString(message.id))
  2865. return "id: string expected";
  2866. if (message.cfid != null && message.hasOwnProperty("cfid"))
  2867. if (!$util.isInteger(message.cfid) && !(message.cfid && $util.isInteger(message.cfid.low) && $util.isInteger(message.cfid.high)))
  2868. return "cfid: integer|Long expected";
  2869. if (message.sign != null && message.hasOwnProperty("sign"))
  2870. if (!$util.isString(message.sign))
  2871. return "sign: string expected";
  2872. if (message.time != null && message.hasOwnProperty("time"))
  2873. if (!$util.isInteger(message.time) && !(message.time && $util.isInteger(message.time.low) && $util.isInteger(message.time.high)))
  2874. return "time: integer|Long expected";
  2875. return null;
  2876. };
  2877. /**
  2878. * Creates a create_order_nty message from a plain object. Also converts values to their respective internal types.
  2879. * @function fromObject
  2880. * @memberof game.create_order_nty
  2881. * @static
  2882. * @param {Object.<string,*>} object Plain object
  2883. * @returns {game.create_order_nty} create_order_nty
  2884. */
  2885. create_order_nty.fromObject = function fromObject(object) {
  2886. if (object instanceof $root.game.create_order_nty)
  2887. return object;
  2888. let message = new $root.game.create_order_nty();
  2889. if (object.id != null)
  2890. message.id = String(object.id);
  2891. if (object.cfid != null)
  2892. if ($util.Long)
  2893. (message.cfid = $util.Long.fromValue(object.cfid)).unsigned = false;
  2894. else if (typeof object.cfid === "string")
  2895. message.cfid = parseInt(object.cfid, 10);
  2896. else if (typeof object.cfid === "number")
  2897. message.cfid = object.cfid;
  2898. else if (typeof object.cfid === "object")
  2899. message.cfid = new $util.LongBits(object.cfid.low >>> 0, object.cfid.high >>> 0).toNumber();
  2900. if (object.sign != null)
  2901. message.sign = String(object.sign);
  2902. if (object.time != null)
  2903. if ($util.Long)
  2904. (message.time = $util.Long.fromValue(object.time)).unsigned = false;
  2905. else if (typeof object.time === "string")
  2906. message.time = parseInt(object.time, 10);
  2907. else if (typeof object.time === "number")
  2908. message.time = object.time;
  2909. else if (typeof object.time === "object")
  2910. message.time = new $util.LongBits(object.time.low >>> 0, object.time.high >>> 0).toNumber();
  2911. return message;
  2912. };
  2913. /**
  2914. * Creates a plain object from a create_order_nty message. Also converts values to other types if specified.
  2915. * @function toObject
  2916. * @memberof game.create_order_nty
  2917. * @static
  2918. * @param {game.create_order_nty} message create_order_nty
  2919. * @param {$protobuf.IConversionOptions} [options] Conversion options
  2920. * @returns {Object.<string,*>} Plain object
  2921. */
  2922. create_order_nty.toObject = function toObject(message, options) {
  2923. if (!options)
  2924. options = {};
  2925. let object = {};
  2926. if (options.defaults) {
  2927. object.id = "";
  2928. if ($util.Long) {
  2929. let long = new $util.Long(0, 0, false);
  2930. object.cfid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  2931. } else
  2932. object.cfid = options.longs === String ? "0" : 0;
  2933. object.sign = "";
  2934. if ($util.Long) {
  2935. let long = new $util.Long(0, 0, false);
  2936. object.time = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  2937. } else
  2938. object.time = options.longs === String ? "0" : 0;
  2939. }
  2940. if (message.id != null && message.hasOwnProperty("id"))
  2941. object.id = message.id;
  2942. if (message.cfid != null && message.hasOwnProperty("cfid"))
  2943. if (typeof message.cfid === "number")
  2944. object.cfid = options.longs === String ? String(message.cfid) : message.cfid;
  2945. else
  2946. 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;
  2947. if (message.sign != null && message.hasOwnProperty("sign"))
  2948. object.sign = message.sign;
  2949. if (message.time != null && message.hasOwnProperty("time"))
  2950. if (typeof message.time === "number")
  2951. object.time = options.longs === String ? String(message.time) : message.time;
  2952. else
  2953. 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;
  2954. return object;
  2955. };
  2956. /**
  2957. * Converts this create_order_nty to JSON.
  2958. * @function toJSON
  2959. * @memberof game.create_order_nty
  2960. * @instance
  2961. * @returns {Object.<string,*>} JSON object
  2962. */
  2963. create_order_nty.prototype.toJSON = function toJSON() {
  2964. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  2965. };
  2966. return create_order_nty;
  2967. })();
  2968. game.city_data = (function() {
  2969. /**
  2970. * Properties of a city_data.
  2971. * @memberof game
  2972. * @interface Icity_data
  2973. */
  2974. /**
  2975. * Constructs a new city_data.
  2976. * @memberof game
  2977. * @classdesc Represents a city_data.
  2978. * @implements Icity_data
  2979. * @constructor
  2980. * @param {game.Icity_data=} [properties] Properties to set
  2981. */
  2982. function city_data(properties) {
  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. * Creates a new city_data instance using the specified properties.
  2990. * @function create
  2991. * @memberof game.city_data
  2992. * @static
  2993. * @param {game.Icity_data=} [properties] Properties to set
  2994. * @returns {game.city_data} city_data instance
  2995. */
  2996. city_data.create = function create(properties) {
  2997. return new city_data(properties);
  2998. };
  2999. /**
  3000. * Encodes the specified city_data message. Does not implicitly {@link game.city_data.verify|verify} messages.
  3001. * @function encode
  3002. * @memberof game.city_data
  3003. * @static
  3004. * @param {game.Icity_data} message city_data message or plain object to encode
  3005. * @param {$protobuf.Writer} [writer] Writer to encode to
  3006. * @returns {$protobuf.Writer} Writer
  3007. */
  3008. city_data.encode = function encode(message, writer) {
  3009. if (!writer)
  3010. writer = $Writer.create();
  3011. return writer;
  3012. };
  3013. /**
  3014. * Encodes the specified city_data message, length delimited. Does not implicitly {@link game.city_data.verify|verify} messages.
  3015. * @function encodeDelimited
  3016. * @memberof game.city_data
  3017. * @static
  3018. * @param {game.Icity_data} message city_data message or plain object to encode
  3019. * @param {$protobuf.Writer} [writer] Writer to encode to
  3020. * @returns {$protobuf.Writer} Writer
  3021. */
  3022. city_data.encodeDelimited = function encodeDelimited(message, writer) {
  3023. return this.encode(message, writer).ldelim();
  3024. };
  3025. /**
  3026. * Decodes a city_data message from the specified reader or buffer.
  3027. * @function decode
  3028. * @memberof game.city_data
  3029. * @static
  3030. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  3031. * @param {number} [length] Message length if known beforehand
  3032. * @returns {game.city_data} city_data
  3033. * @throws {Error} If the payload is not a reader or valid buffer
  3034. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3035. */
  3036. city_data.decode = function decode(reader, length) {
  3037. if (!(reader instanceof $Reader))
  3038. reader = $Reader.create(reader);
  3039. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.city_data();
  3040. while (reader.pos < end) {
  3041. let tag = reader.uint32();
  3042. switch (tag >>> 3) {
  3043. default:
  3044. reader.skipType(tag & 7);
  3045. break;
  3046. }
  3047. }
  3048. return message;
  3049. };
  3050. /**
  3051. * Decodes a city_data message from the specified reader or buffer, length delimited.
  3052. * @function decodeDelimited
  3053. * @memberof game.city_data
  3054. * @static
  3055. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  3056. * @returns {game.city_data} city_data
  3057. * @throws {Error} If the payload is not a reader or valid buffer
  3058. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3059. */
  3060. city_data.decodeDelimited = function decodeDelimited(reader) {
  3061. if (!(reader instanceof $Reader))
  3062. reader = new $Reader(reader);
  3063. return this.decode(reader, reader.uint32());
  3064. };
  3065. /**
  3066. * Verifies a city_data message.
  3067. * @function verify
  3068. * @memberof game.city_data
  3069. * @static
  3070. * @param {Object.<string,*>} message Plain object to verify
  3071. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  3072. */
  3073. city_data.verify = function verify(message) {
  3074. if (typeof message !== "object" || message === null)
  3075. return "object expected";
  3076. return null;
  3077. };
  3078. /**
  3079. * Creates a city_data message from a plain object. Also converts values to their respective internal types.
  3080. * @function fromObject
  3081. * @memberof game.city_data
  3082. * @static
  3083. * @param {Object.<string,*>} object Plain object
  3084. * @returns {game.city_data} city_data
  3085. */
  3086. city_data.fromObject = function fromObject(object) {
  3087. if (object instanceof $root.game.city_data)
  3088. return object;
  3089. return new $root.game.city_data();
  3090. };
  3091. /**
  3092. * Creates a plain object from a city_data message. Also converts values to other types if specified.
  3093. * @function toObject
  3094. * @memberof game.city_data
  3095. * @static
  3096. * @param {game.city_data} message city_data
  3097. * @param {$protobuf.IConversionOptions} [options] Conversion options
  3098. * @returns {Object.<string,*>} Plain object
  3099. */
  3100. city_data.toObject = function toObject() {
  3101. return {};
  3102. };
  3103. /**
  3104. * Converts this city_data to JSON.
  3105. * @function toJSON
  3106. * @memberof game.city_data
  3107. * @instance
  3108. * @returns {Object.<string,*>} JSON object
  3109. */
  3110. city_data.prototype.toJSON = function toJSON() {
  3111. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  3112. };
  3113. return city_data;
  3114. })();
  3115. game.city_data_rsp = (function() {
  3116. /**
  3117. * Properties of a city_data_rsp.
  3118. * @memberof game
  3119. * @interface Icity_data_rsp
  3120. * @property {number|Long|null} [errno] city_data_rsp errno
  3121. * @property {number|Long|null} [time] city_data_rsp time
  3122. * @property {Array.<game.Ibuilding>|null} [list] city_data_rsp list
  3123. * @property {Array.<number|Long>|null} [skillList] city_data_rsp skillList
  3124. * @property {number|Long|null} [skillid] city_data_rsp skillid
  3125. */
  3126. /**
  3127. * Constructs a new city_data_rsp.
  3128. * @memberof game
  3129. * @classdesc Represents a city_data_rsp.
  3130. * @implements Icity_data_rsp
  3131. * @constructor
  3132. * @param {game.Icity_data_rsp=} [properties] Properties to set
  3133. */
  3134. function city_data_rsp(properties) {
  3135. this.list = [];
  3136. this.skillList = [];
  3137. if (properties)
  3138. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  3139. if (properties[keys[i]] != null)
  3140. this[keys[i]] = properties[keys[i]];
  3141. }
  3142. /**
  3143. * city_data_rsp errno.
  3144. * @member {number|Long} errno
  3145. * @memberof game.city_data_rsp
  3146. * @instance
  3147. */
  3148. city_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  3149. /**
  3150. * city_data_rsp time.
  3151. * @member {number|Long} time
  3152. * @memberof game.city_data_rsp
  3153. * @instance
  3154. */
  3155. city_data_rsp.prototype.time = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  3156. /**
  3157. * city_data_rsp list.
  3158. * @member {Array.<game.Ibuilding>} list
  3159. * @memberof game.city_data_rsp
  3160. * @instance
  3161. */
  3162. city_data_rsp.prototype.list = $util.emptyArray;
  3163. /**
  3164. * city_data_rsp skillList.
  3165. * @member {Array.<number|Long>} skillList
  3166. * @memberof game.city_data_rsp
  3167. * @instance
  3168. */
  3169. city_data_rsp.prototype.skillList = $util.emptyArray;
  3170. /**
  3171. * city_data_rsp skillid.
  3172. * @member {number|Long} skillid
  3173. * @memberof game.city_data_rsp
  3174. * @instance
  3175. */
  3176. city_data_rsp.prototype.skillid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  3177. /**
  3178. * Creates a new city_data_rsp instance using the specified properties.
  3179. * @function create
  3180. * @memberof game.city_data_rsp
  3181. * @static
  3182. * @param {game.Icity_data_rsp=} [properties] Properties to set
  3183. * @returns {game.city_data_rsp} city_data_rsp instance
  3184. */
  3185. city_data_rsp.create = function create(properties) {
  3186. return new city_data_rsp(properties);
  3187. };
  3188. /**
  3189. * Encodes the specified city_data_rsp message. Does not implicitly {@link game.city_data_rsp.verify|verify} messages.
  3190. * @function encode
  3191. * @memberof game.city_data_rsp
  3192. * @static
  3193. * @param {game.Icity_data_rsp} message city_data_rsp message or plain object to encode
  3194. * @param {$protobuf.Writer} [writer] Writer to encode to
  3195. * @returns {$protobuf.Writer} Writer
  3196. */
  3197. city_data_rsp.encode = function encode(message, writer) {
  3198. if (!writer)
  3199. writer = $Writer.create();
  3200. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  3201. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  3202. if (message.time != null && Object.hasOwnProperty.call(message, "time"))
  3203. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.time);
  3204. if (message.list != null && message.list.length)
  3205. for (let i = 0; i < message.list.length; ++i)
  3206. $root.game.building.encode(message.list[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
  3207. if (message.skillList != null && message.skillList.length) {
  3208. writer.uint32(/* id 4, wireType 2 =*/34).fork();
  3209. for (let i = 0; i < message.skillList.length; ++i)
  3210. writer.int64(message.skillList[i]);
  3211. writer.ldelim();
  3212. }
  3213. if (message.skillid != null && Object.hasOwnProperty.call(message, "skillid"))
  3214. writer.uint32(/* id 5, wireType 0 =*/40).int64(message.skillid);
  3215. return writer;
  3216. };
  3217. /**
  3218. * Encodes the specified city_data_rsp message, length delimited. Does not implicitly {@link game.city_data_rsp.verify|verify} messages.
  3219. * @function encodeDelimited
  3220. * @memberof game.city_data_rsp
  3221. * @static
  3222. * @param {game.Icity_data_rsp} message city_data_rsp message or plain object to encode
  3223. * @param {$protobuf.Writer} [writer] Writer to encode to
  3224. * @returns {$protobuf.Writer} Writer
  3225. */
  3226. city_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  3227. return this.encode(message, writer).ldelim();
  3228. };
  3229. /**
  3230. * Decodes a city_data_rsp message from the specified reader or buffer.
  3231. * @function decode
  3232. * @memberof game.city_data_rsp
  3233. * @static
  3234. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  3235. * @param {number} [length] Message length if known beforehand
  3236. * @returns {game.city_data_rsp} city_data_rsp
  3237. * @throws {Error} If the payload is not a reader or valid buffer
  3238. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3239. */
  3240. city_data_rsp.decode = function decode(reader, length) {
  3241. if (!(reader instanceof $Reader))
  3242. reader = $Reader.create(reader);
  3243. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.city_data_rsp();
  3244. while (reader.pos < end) {
  3245. let tag = reader.uint32();
  3246. switch (tag >>> 3) {
  3247. case 1:
  3248. message.errno = reader.int64();
  3249. break;
  3250. case 2:
  3251. message.time = reader.int64();
  3252. break;
  3253. case 3:
  3254. if (!(message.list && message.list.length))
  3255. message.list = [];
  3256. message.list.push($root.game.building.decode(reader, reader.uint32()));
  3257. break;
  3258. case 4:
  3259. if (!(message.skillList && message.skillList.length))
  3260. message.skillList = [];
  3261. if ((tag & 7) === 2) {
  3262. let end2 = reader.uint32() + reader.pos;
  3263. while (reader.pos < end2)
  3264. message.skillList.push(reader.int64());
  3265. } else
  3266. message.skillList.push(reader.int64());
  3267. break;
  3268. case 5:
  3269. message.skillid = reader.int64();
  3270. break;
  3271. default:
  3272. reader.skipType(tag & 7);
  3273. break;
  3274. }
  3275. }
  3276. return message;
  3277. };
  3278. /**
  3279. * Decodes a city_data_rsp message from the specified reader or buffer, length delimited.
  3280. * @function decodeDelimited
  3281. * @memberof game.city_data_rsp
  3282. * @static
  3283. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  3284. * @returns {game.city_data_rsp} city_data_rsp
  3285. * @throws {Error} If the payload is not a reader or valid buffer
  3286. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3287. */
  3288. city_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  3289. if (!(reader instanceof $Reader))
  3290. reader = new $Reader(reader);
  3291. return this.decode(reader, reader.uint32());
  3292. };
  3293. /**
  3294. * Verifies a city_data_rsp message.
  3295. * @function verify
  3296. * @memberof game.city_data_rsp
  3297. * @static
  3298. * @param {Object.<string,*>} message Plain object to verify
  3299. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  3300. */
  3301. city_data_rsp.verify = function verify(message) {
  3302. if (typeof message !== "object" || message === null)
  3303. return "object expected";
  3304. if (message.errno != null && message.hasOwnProperty("errno"))
  3305. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  3306. return "errno: integer|Long expected";
  3307. if (message.time != null && message.hasOwnProperty("time"))
  3308. if (!$util.isInteger(message.time) && !(message.time && $util.isInteger(message.time.low) && $util.isInteger(message.time.high)))
  3309. return "time: integer|Long expected";
  3310. if (message.list != null && message.hasOwnProperty("list")) {
  3311. if (!Array.isArray(message.list))
  3312. return "list: array expected";
  3313. for (let i = 0; i < message.list.length; ++i) {
  3314. let error = $root.game.building.verify(message.list[i]);
  3315. if (error)
  3316. return "list." + error;
  3317. }
  3318. }
  3319. if (message.skillList != null && message.hasOwnProperty("skillList")) {
  3320. if (!Array.isArray(message.skillList))
  3321. return "skillList: array expected";
  3322. for (let i = 0; i < message.skillList.length; ++i)
  3323. if (!$util.isInteger(message.skillList[i]) && !(message.skillList[i] && $util.isInteger(message.skillList[i].low) && $util.isInteger(message.skillList[i].high)))
  3324. return "skillList: integer|Long[] expected";
  3325. }
  3326. if (message.skillid != null && message.hasOwnProperty("skillid"))
  3327. if (!$util.isInteger(message.skillid) && !(message.skillid && $util.isInteger(message.skillid.low) && $util.isInteger(message.skillid.high)))
  3328. return "skillid: integer|Long expected";
  3329. return null;
  3330. };
  3331. /**
  3332. * Creates a city_data_rsp message from a plain object. Also converts values to their respective internal types.
  3333. * @function fromObject
  3334. * @memberof game.city_data_rsp
  3335. * @static
  3336. * @param {Object.<string,*>} object Plain object
  3337. * @returns {game.city_data_rsp} city_data_rsp
  3338. */
  3339. city_data_rsp.fromObject = function fromObject(object) {
  3340. if (object instanceof $root.game.city_data_rsp)
  3341. return object;
  3342. let message = new $root.game.city_data_rsp();
  3343. if (object.errno != null)
  3344. if ($util.Long)
  3345. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  3346. else if (typeof object.errno === "string")
  3347. message.errno = parseInt(object.errno, 10);
  3348. else if (typeof object.errno === "number")
  3349. message.errno = object.errno;
  3350. else if (typeof object.errno === "object")
  3351. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  3352. if (object.time != null)
  3353. if ($util.Long)
  3354. (message.time = $util.Long.fromValue(object.time)).unsigned = false;
  3355. else if (typeof object.time === "string")
  3356. message.time = parseInt(object.time, 10);
  3357. else if (typeof object.time === "number")
  3358. message.time = object.time;
  3359. else if (typeof object.time === "object")
  3360. message.time = new $util.LongBits(object.time.low >>> 0, object.time.high >>> 0).toNumber();
  3361. if (object.list) {
  3362. if (!Array.isArray(object.list))
  3363. throw TypeError(".game.city_data_rsp.list: array expected");
  3364. message.list = [];
  3365. for (let i = 0; i < object.list.length; ++i) {
  3366. if (typeof object.list[i] !== "object")
  3367. throw TypeError(".game.city_data_rsp.list: object expected");
  3368. message.list[i] = $root.game.building.fromObject(object.list[i]);
  3369. }
  3370. }
  3371. if (object.skillList) {
  3372. if (!Array.isArray(object.skillList))
  3373. throw TypeError(".game.city_data_rsp.skillList: array expected");
  3374. message.skillList = [];
  3375. for (let i = 0; i < object.skillList.length; ++i)
  3376. if ($util.Long)
  3377. (message.skillList[i] = $util.Long.fromValue(object.skillList[i])).unsigned = false;
  3378. else if (typeof object.skillList[i] === "string")
  3379. message.skillList[i] = parseInt(object.skillList[i], 10);
  3380. else if (typeof object.skillList[i] === "number")
  3381. message.skillList[i] = object.skillList[i];
  3382. else if (typeof object.skillList[i] === "object")
  3383. message.skillList[i] = new $util.LongBits(object.skillList[i].low >>> 0, object.skillList[i].high >>> 0).toNumber();
  3384. }
  3385. if (object.skillid != null)
  3386. if ($util.Long)
  3387. (message.skillid = $util.Long.fromValue(object.skillid)).unsigned = false;
  3388. else if (typeof object.skillid === "string")
  3389. message.skillid = parseInt(object.skillid, 10);
  3390. else if (typeof object.skillid === "number")
  3391. message.skillid = object.skillid;
  3392. else if (typeof object.skillid === "object")
  3393. message.skillid = new $util.LongBits(object.skillid.low >>> 0, object.skillid.high >>> 0).toNumber();
  3394. return message;
  3395. };
  3396. /**
  3397. * Creates a plain object from a city_data_rsp message. Also converts values to other types if specified.
  3398. * @function toObject
  3399. * @memberof game.city_data_rsp
  3400. * @static
  3401. * @param {game.city_data_rsp} message city_data_rsp
  3402. * @param {$protobuf.IConversionOptions} [options] Conversion options
  3403. * @returns {Object.<string,*>} Plain object
  3404. */
  3405. city_data_rsp.toObject = function toObject(message, options) {
  3406. if (!options)
  3407. options = {};
  3408. let object = {};
  3409. if (options.arrays || options.defaults) {
  3410. object.list = [];
  3411. object.skillList = [];
  3412. }
  3413. if (options.defaults) {
  3414. if ($util.Long) {
  3415. let long = new $util.Long(0, 0, false);
  3416. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  3417. } else
  3418. object.errno = options.longs === String ? "0" : 0;
  3419. if ($util.Long) {
  3420. let long = new $util.Long(0, 0, false);
  3421. object.time = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  3422. } else
  3423. object.time = options.longs === String ? "0" : 0;
  3424. if ($util.Long) {
  3425. let long = new $util.Long(0, 0, false);
  3426. object.skillid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  3427. } else
  3428. object.skillid = options.longs === String ? "0" : 0;
  3429. }
  3430. if (message.errno != null && message.hasOwnProperty("errno"))
  3431. if (typeof message.errno === "number")
  3432. object.errno = options.longs === String ? String(message.errno) : message.errno;
  3433. else
  3434. 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;
  3435. if (message.time != null && message.hasOwnProperty("time"))
  3436. if (typeof message.time === "number")
  3437. object.time = options.longs === String ? String(message.time) : message.time;
  3438. else
  3439. 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;
  3440. if (message.list && message.list.length) {
  3441. object.list = [];
  3442. for (let j = 0; j < message.list.length; ++j)
  3443. object.list[j] = $root.game.building.toObject(message.list[j], options);
  3444. }
  3445. if (message.skillList && message.skillList.length) {
  3446. object.skillList = [];
  3447. for (let j = 0; j < message.skillList.length; ++j)
  3448. if (typeof message.skillList[j] === "number")
  3449. object.skillList[j] = options.longs === String ? String(message.skillList[j]) : message.skillList[j];
  3450. else
  3451. 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];
  3452. }
  3453. if (message.skillid != null && message.hasOwnProperty("skillid"))
  3454. if (typeof message.skillid === "number")
  3455. object.skillid = options.longs === String ? String(message.skillid) : message.skillid;
  3456. else
  3457. 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;
  3458. return object;
  3459. };
  3460. /**
  3461. * Converts this city_data_rsp to JSON.
  3462. * @function toJSON
  3463. * @memberof game.city_data_rsp
  3464. * @instance
  3465. * @returns {Object.<string,*>} JSON object
  3466. */
  3467. city_data_rsp.prototype.toJSON = function toJSON() {
  3468. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  3469. };
  3470. return city_data_rsp;
  3471. })();
  3472. game.city_data_send = (function() {
  3473. /**
  3474. * Properties of a city_data_send.
  3475. * @memberof game
  3476. * @interface Icity_data_send
  3477. * @property {number|Long|null} [time] city_data_send time
  3478. * @property {Array.<game.Ibuilding>|null} [list] city_data_send list
  3479. */
  3480. /**
  3481. * Constructs a new city_data_send.
  3482. * @memberof game
  3483. * @classdesc Represents a city_data_send.
  3484. * @implements Icity_data_send
  3485. * @constructor
  3486. * @param {game.Icity_data_send=} [properties] Properties to set
  3487. */
  3488. function city_data_send(properties) {
  3489. this.list = [];
  3490. if (properties)
  3491. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  3492. if (properties[keys[i]] != null)
  3493. this[keys[i]] = properties[keys[i]];
  3494. }
  3495. /**
  3496. * city_data_send time.
  3497. * @member {number|Long} time
  3498. * @memberof game.city_data_send
  3499. * @instance
  3500. */
  3501. city_data_send.prototype.time = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  3502. /**
  3503. * city_data_send list.
  3504. * @member {Array.<game.Ibuilding>} list
  3505. * @memberof game.city_data_send
  3506. * @instance
  3507. */
  3508. city_data_send.prototype.list = $util.emptyArray;
  3509. /**
  3510. * Creates a new city_data_send instance using the specified properties.
  3511. * @function create
  3512. * @memberof game.city_data_send
  3513. * @static
  3514. * @param {game.Icity_data_send=} [properties] Properties to set
  3515. * @returns {game.city_data_send} city_data_send instance
  3516. */
  3517. city_data_send.create = function create(properties) {
  3518. return new city_data_send(properties);
  3519. };
  3520. /**
  3521. * Encodes the specified city_data_send message. Does not implicitly {@link game.city_data_send.verify|verify} messages.
  3522. * @function encode
  3523. * @memberof game.city_data_send
  3524. * @static
  3525. * @param {game.Icity_data_send} message city_data_send message or plain object to encode
  3526. * @param {$protobuf.Writer} [writer] Writer to encode to
  3527. * @returns {$protobuf.Writer} Writer
  3528. */
  3529. city_data_send.encode = function encode(message, writer) {
  3530. if (!writer)
  3531. writer = $Writer.create();
  3532. if (message.time != null && Object.hasOwnProperty.call(message, "time"))
  3533. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.time);
  3534. if (message.list != null && message.list.length)
  3535. for (let i = 0; i < message.list.length; ++i)
  3536. $root.game.building.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  3537. return writer;
  3538. };
  3539. /**
  3540. * Encodes the specified city_data_send message, length delimited. Does not implicitly {@link game.city_data_send.verify|verify} messages.
  3541. * @function encodeDelimited
  3542. * @memberof game.city_data_send
  3543. * @static
  3544. * @param {game.Icity_data_send} message city_data_send message or plain object to encode
  3545. * @param {$protobuf.Writer} [writer] Writer to encode to
  3546. * @returns {$protobuf.Writer} Writer
  3547. */
  3548. city_data_send.encodeDelimited = function encodeDelimited(message, writer) {
  3549. return this.encode(message, writer).ldelim();
  3550. };
  3551. /**
  3552. * Decodes a city_data_send message from the specified reader or buffer.
  3553. * @function decode
  3554. * @memberof game.city_data_send
  3555. * @static
  3556. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  3557. * @param {number} [length] Message length if known beforehand
  3558. * @returns {game.city_data_send} city_data_send
  3559. * @throws {Error} If the payload is not a reader or valid buffer
  3560. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3561. */
  3562. city_data_send.decode = function decode(reader, length) {
  3563. if (!(reader instanceof $Reader))
  3564. reader = $Reader.create(reader);
  3565. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.city_data_send();
  3566. while (reader.pos < end) {
  3567. let tag = reader.uint32();
  3568. switch (tag >>> 3) {
  3569. case 1:
  3570. message.time = reader.int64();
  3571. break;
  3572. case 2:
  3573. if (!(message.list && message.list.length))
  3574. message.list = [];
  3575. message.list.push($root.game.building.decode(reader, reader.uint32()));
  3576. break;
  3577. default:
  3578. reader.skipType(tag & 7);
  3579. break;
  3580. }
  3581. }
  3582. return message;
  3583. };
  3584. /**
  3585. * Decodes a city_data_send message from the specified reader or buffer, length delimited.
  3586. * @function decodeDelimited
  3587. * @memberof game.city_data_send
  3588. * @static
  3589. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  3590. * @returns {game.city_data_send} city_data_send
  3591. * @throws {Error} If the payload is not a reader or valid buffer
  3592. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3593. */
  3594. city_data_send.decodeDelimited = function decodeDelimited(reader) {
  3595. if (!(reader instanceof $Reader))
  3596. reader = new $Reader(reader);
  3597. return this.decode(reader, reader.uint32());
  3598. };
  3599. /**
  3600. * Verifies a city_data_send message.
  3601. * @function verify
  3602. * @memberof game.city_data_send
  3603. * @static
  3604. * @param {Object.<string,*>} message Plain object to verify
  3605. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  3606. */
  3607. city_data_send.verify = function verify(message) {
  3608. if (typeof message !== "object" || message === null)
  3609. return "object expected";
  3610. if (message.time != null && message.hasOwnProperty("time"))
  3611. if (!$util.isInteger(message.time) && !(message.time && $util.isInteger(message.time.low) && $util.isInteger(message.time.high)))
  3612. return "time: integer|Long expected";
  3613. if (message.list != null && message.hasOwnProperty("list")) {
  3614. if (!Array.isArray(message.list))
  3615. return "list: array expected";
  3616. for (let i = 0; i < message.list.length; ++i) {
  3617. let error = $root.game.building.verify(message.list[i]);
  3618. if (error)
  3619. return "list." + error;
  3620. }
  3621. }
  3622. return null;
  3623. };
  3624. /**
  3625. * Creates a city_data_send message from a plain object. Also converts values to their respective internal types.
  3626. * @function fromObject
  3627. * @memberof game.city_data_send
  3628. * @static
  3629. * @param {Object.<string,*>} object Plain object
  3630. * @returns {game.city_data_send} city_data_send
  3631. */
  3632. city_data_send.fromObject = function fromObject(object) {
  3633. if (object instanceof $root.game.city_data_send)
  3634. return object;
  3635. let message = new $root.game.city_data_send();
  3636. if (object.time != null)
  3637. if ($util.Long)
  3638. (message.time = $util.Long.fromValue(object.time)).unsigned = false;
  3639. else if (typeof object.time === "string")
  3640. message.time = parseInt(object.time, 10);
  3641. else if (typeof object.time === "number")
  3642. message.time = object.time;
  3643. else if (typeof object.time === "object")
  3644. message.time = new $util.LongBits(object.time.low >>> 0, object.time.high >>> 0).toNumber();
  3645. if (object.list) {
  3646. if (!Array.isArray(object.list))
  3647. throw TypeError(".game.city_data_send.list: array expected");
  3648. message.list = [];
  3649. for (let i = 0; i < object.list.length; ++i) {
  3650. if (typeof object.list[i] !== "object")
  3651. throw TypeError(".game.city_data_send.list: object expected");
  3652. message.list[i] = $root.game.building.fromObject(object.list[i]);
  3653. }
  3654. }
  3655. return message;
  3656. };
  3657. /**
  3658. * Creates a plain object from a city_data_send message. Also converts values to other types if specified.
  3659. * @function toObject
  3660. * @memberof game.city_data_send
  3661. * @static
  3662. * @param {game.city_data_send} message city_data_send
  3663. * @param {$protobuf.IConversionOptions} [options] Conversion options
  3664. * @returns {Object.<string,*>} Plain object
  3665. */
  3666. city_data_send.toObject = function toObject(message, options) {
  3667. if (!options)
  3668. options = {};
  3669. let object = {};
  3670. if (options.arrays || options.defaults)
  3671. object.list = [];
  3672. if (options.defaults)
  3673. if ($util.Long) {
  3674. let long = new $util.Long(0, 0, false);
  3675. object.time = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  3676. } else
  3677. object.time = options.longs === String ? "0" : 0;
  3678. if (message.time != null && message.hasOwnProperty("time"))
  3679. if (typeof message.time === "number")
  3680. object.time = options.longs === String ? String(message.time) : message.time;
  3681. else
  3682. 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;
  3683. if (message.list && message.list.length) {
  3684. object.list = [];
  3685. for (let j = 0; j < message.list.length; ++j)
  3686. object.list[j] = $root.game.building.toObject(message.list[j], options);
  3687. }
  3688. return object;
  3689. };
  3690. /**
  3691. * Converts this city_data_send to JSON.
  3692. * @function toJSON
  3693. * @memberof game.city_data_send
  3694. * @instance
  3695. * @returns {Object.<string,*>} JSON object
  3696. */
  3697. city_data_send.prototype.toJSON = function toJSON() {
  3698. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  3699. };
  3700. return city_data_send;
  3701. })();
  3702. game.building_upgrade = (function() {
  3703. /**
  3704. * Properties of a building_upgrade.
  3705. * @memberof game
  3706. * @interface Ibuilding_upgrade
  3707. * @property {number|Long|null} [id] building_upgrade id
  3708. */
  3709. /**
  3710. * Constructs a new building_upgrade.
  3711. * @memberof game
  3712. * @classdesc Represents a building_upgrade.
  3713. * @implements Ibuilding_upgrade
  3714. * @constructor
  3715. * @param {game.Ibuilding_upgrade=} [properties] Properties to set
  3716. */
  3717. function building_upgrade(properties) {
  3718. if (properties)
  3719. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  3720. if (properties[keys[i]] != null)
  3721. this[keys[i]] = properties[keys[i]];
  3722. }
  3723. /**
  3724. * building_upgrade id.
  3725. * @member {number|Long} id
  3726. * @memberof game.building_upgrade
  3727. * @instance
  3728. */
  3729. building_upgrade.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  3730. /**
  3731. * Creates a new building_upgrade instance using the specified properties.
  3732. * @function create
  3733. * @memberof game.building_upgrade
  3734. * @static
  3735. * @param {game.Ibuilding_upgrade=} [properties] Properties to set
  3736. * @returns {game.building_upgrade} building_upgrade instance
  3737. */
  3738. building_upgrade.create = function create(properties) {
  3739. return new building_upgrade(properties);
  3740. };
  3741. /**
  3742. * Encodes the specified building_upgrade message. Does not implicitly {@link game.building_upgrade.verify|verify} messages.
  3743. * @function encode
  3744. * @memberof game.building_upgrade
  3745. * @static
  3746. * @param {game.Ibuilding_upgrade} message building_upgrade message or plain object to encode
  3747. * @param {$protobuf.Writer} [writer] Writer to encode to
  3748. * @returns {$protobuf.Writer} Writer
  3749. */
  3750. building_upgrade.encode = function encode(message, writer) {
  3751. if (!writer)
  3752. writer = $Writer.create();
  3753. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  3754. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  3755. return writer;
  3756. };
  3757. /**
  3758. * Encodes the specified building_upgrade message, length delimited. Does not implicitly {@link game.building_upgrade.verify|verify} messages.
  3759. * @function encodeDelimited
  3760. * @memberof game.building_upgrade
  3761. * @static
  3762. * @param {game.Ibuilding_upgrade} message building_upgrade message or plain object to encode
  3763. * @param {$protobuf.Writer} [writer] Writer to encode to
  3764. * @returns {$protobuf.Writer} Writer
  3765. */
  3766. building_upgrade.encodeDelimited = function encodeDelimited(message, writer) {
  3767. return this.encode(message, writer).ldelim();
  3768. };
  3769. /**
  3770. * Decodes a building_upgrade message from the specified reader or buffer.
  3771. * @function decode
  3772. * @memberof game.building_upgrade
  3773. * @static
  3774. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  3775. * @param {number} [length] Message length if known beforehand
  3776. * @returns {game.building_upgrade} building_upgrade
  3777. * @throws {Error} If the payload is not a reader or valid buffer
  3778. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3779. */
  3780. building_upgrade.decode = function decode(reader, length) {
  3781. if (!(reader instanceof $Reader))
  3782. reader = $Reader.create(reader);
  3783. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.building_upgrade();
  3784. while (reader.pos < end) {
  3785. let tag = reader.uint32();
  3786. switch (tag >>> 3) {
  3787. case 1:
  3788. message.id = reader.int64();
  3789. break;
  3790. default:
  3791. reader.skipType(tag & 7);
  3792. break;
  3793. }
  3794. }
  3795. return message;
  3796. };
  3797. /**
  3798. * Decodes a building_upgrade message from the specified reader or buffer, length delimited.
  3799. * @function decodeDelimited
  3800. * @memberof game.building_upgrade
  3801. * @static
  3802. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  3803. * @returns {game.building_upgrade} building_upgrade
  3804. * @throws {Error} If the payload is not a reader or valid buffer
  3805. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3806. */
  3807. building_upgrade.decodeDelimited = function decodeDelimited(reader) {
  3808. if (!(reader instanceof $Reader))
  3809. reader = new $Reader(reader);
  3810. return this.decode(reader, reader.uint32());
  3811. };
  3812. /**
  3813. * Verifies a building_upgrade message.
  3814. * @function verify
  3815. * @memberof game.building_upgrade
  3816. * @static
  3817. * @param {Object.<string,*>} message Plain object to verify
  3818. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  3819. */
  3820. building_upgrade.verify = function verify(message) {
  3821. if (typeof message !== "object" || message === null)
  3822. return "object expected";
  3823. if (message.id != null && message.hasOwnProperty("id"))
  3824. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  3825. return "id: integer|Long expected";
  3826. return null;
  3827. };
  3828. /**
  3829. * Creates a building_upgrade message from a plain object. Also converts values to their respective internal types.
  3830. * @function fromObject
  3831. * @memberof game.building_upgrade
  3832. * @static
  3833. * @param {Object.<string,*>} object Plain object
  3834. * @returns {game.building_upgrade} building_upgrade
  3835. */
  3836. building_upgrade.fromObject = function fromObject(object) {
  3837. if (object instanceof $root.game.building_upgrade)
  3838. return object;
  3839. let message = new $root.game.building_upgrade();
  3840. if (object.id != null)
  3841. if ($util.Long)
  3842. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  3843. else if (typeof object.id === "string")
  3844. message.id = parseInt(object.id, 10);
  3845. else if (typeof object.id === "number")
  3846. message.id = object.id;
  3847. else if (typeof object.id === "object")
  3848. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  3849. return message;
  3850. };
  3851. /**
  3852. * Creates a plain object from a building_upgrade message. Also converts values to other types if specified.
  3853. * @function toObject
  3854. * @memberof game.building_upgrade
  3855. * @static
  3856. * @param {game.building_upgrade} message building_upgrade
  3857. * @param {$protobuf.IConversionOptions} [options] Conversion options
  3858. * @returns {Object.<string,*>} Plain object
  3859. */
  3860. building_upgrade.toObject = function toObject(message, options) {
  3861. if (!options)
  3862. options = {};
  3863. let object = {};
  3864. if (options.defaults)
  3865. if ($util.Long) {
  3866. let long = new $util.Long(0, 0, false);
  3867. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  3868. } else
  3869. object.id = options.longs === String ? "0" : 0;
  3870. if (message.id != null && message.hasOwnProperty("id"))
  3871. if (typeof message.id === "number")
  3872. object.id = options.longs === String ? String(message.id) : message.id;
  3873. else
  3874. 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;
  3875. return object;
  3876. };
  3877. /**
  3878. * Converts this building_upgrade to JSON.
  3879. * @function toJSON
  3880. * @memberof game.building_upgrade
  3881. * @instance
  3882. * @returns {Object.<string,*>} JSON object
  3883. */
  3884. building_upgrade.prototype.toJSON = function toJSON() {
  3885. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  3886. };
  3887. return building_upgrade;
  3888. })();
  3889. game.building_upgrade_rsp = (function() {
  3890. /**
  3891. * Properties of a building_upgrade_rsp.
  3892. * @memberof game
  3893. * @interface Ibuilding_upgrade_rsp
  3894. * @property {number|Long|null} [errno] building_upgrade_rsp errno
  3895. * @property {game.Ibuilding|null} [data] building_upgrade_rsp data
  3896. */
  3897. /**
  3898. * Constructs a new building_upgrade_rsp.
  3899. * @memberof game
  3900. * @classdesc Represents a building_upgrade_rsp.
  3901. * @implements Ibuilding_upgrade_rsp
  3902. * @constructor
  3903. * @param {game.Ibuilding_upgrade_rsp=} [properties] Properties to set
  3904. */
  3905. function building_upgrade_rsp(properties) {
  3906. if (properties)
  3907. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  3908. if (properties[keys[i]] != null)
  3909. this[keys[i]] = properties[keys[i]];
  3910. }
  3911. /**
  3912. * building_upgrade_rsp errno.
  3913. * @member {number|Long} errno
  3914. * @memberof game.building_upgrade_rsp
  3915. * @instance
  3916. */
  3917. building_upgrade_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  3918. /**
  3919. * building_upgrade_rsp data.
  3920. * @member {game.Ibuilding|null|undefined} data
  3921. * @memberof game.building_upgrade_rsp
  3922. * @instance
  3923. */
  3924. building_upgrade_rsp.prototype.data = null;
  3925. /**
  3926. * Creates a new building_upgrade_rsp instance using the specified properties.
  3927. * @function create
  3928. * @memberof game.building_upgrade_rsp
  3929. * @static
  3930. * @param {game.Ibuilding_upgrade_rsp=} [properties] Properties to set
  3931. * @returns {game.building_upgrade_rsp} building_upgrade_rsp instance
  3932. */
  3933. building_upgrade_rsp.create = function create(properties) {
  3934. return new building_upgrade_rsp(properties);
  3935. };
  3936. /**
  3937. * Encodes the specified building_upgrade_rsp message. Does not implicitly {@link game.building_upgrade_rsp.verify|verify} messages.
  3938. * @function encode
  3939. * @memberof game.building_upgrade_rsp
  3940. * @static
  3941. * @param {game.Ibuilding_upgrade_rsp} message building_upgrade_rsp message or plain object to encode
  3942. * @param {$protobuf.Writer} [writer] Writer to encode to
  3943. * @returns {$protobuf.Writer} Writer
  3944. */
  3945. building_upgrade_rsp.encode = function encode(message, writer) {
  3946. if (!writer)
  3947. writer = $Writer.create();
  3948. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  3949. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  3950. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  3951. $root.game.building.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  3952. return writer;
  3953. };
  3954. /**
  3955. * Encodes the specified building_upgrade_rsp message, length delimited. Does not implicitly {@link game.building_upgrade_rsp.verify|verify} messages.
  3956. * @function encodeDelimited
  3957. * @memberof game.building_upgrade_rsp
  3958. * @static
  3959. * @param {game.Ibuilding_upgrade_rsp} message building_upgrade_rsp message or plain object to encode
  3960. * @param {$protobuf.Writer} [writer] Writer to encode to
  3961. * @returns {$protobuf.Writer} Writer
  3962. */
  3963. building_upgrade_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  3964. return this.encode(message, writer).ldelim();
  3965. };
  3966. /**
  3967. * Decodes a building_upgrade_rsp message from the specified reader or buffer.
  3968. * @function decode
  3969. * @memberof game.building_upgrade_rsp
  3970. * @static
  3971. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  3972. * @param {number} [length] Message length if known beforehand
  3973. * @returns {game.building_upgrade_rsp} building_upgrade_rsp
  3974. * @throws {Error} If the payload is not a reader or valid buffer
  3975. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3976. */
  3977. building_upgrade_rsp.decode = function decode(reader, length) {
  3978. if (!(reader instanceof $Reader))
  3979. reader = $Reader.create(reader);
  3980. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.building_upgrade_rsp();
  3981. while (reader.pos < end) {
  3982. let tag = reader.uint32();
  3983. switch (tag >>> 3) {
  3984. case 1:
  3985. message.errno = reader.int64();
  3986. break;
  3987. case 2:
  3988. message.data = $root.game.building.decode(reader, reader.uint32());
  3989. break;
  3990. default:
  3991. reader.skipType(tag & 7);
  3992. break;
  3993. }
  3994. }
  3995. return message;
  3996. };
  3997. /**
  3998. * Decodes a building_upgrade_rsp message from the specified reader or buffer, length delimited.
  3999. * @function decodeDelimited
  4000. * @memberof game.building_upgrade_rsp
  4001. * @static
  4002. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  4003. * @returns {game.building_upgrade_rsp} building_upgrade_rsp
  4004. * @throws {Error} If the payload is not a reader or valid buffer
  4005. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  4006. */
  4007. building_upgrade_rsp.decodeDelimited = function decodeDelimited(reader) {
  4008. if (!(reader instanceof $Reader))
  4009. reader = new $Reader(reader);
  4010. return this.decode(reader, reader.uint32());
  4011. };
  4012. /**
  4013. * Verifies a building_upgrade_rsp message.
  4014. * @function verify
  4015. * @memberof game.building_upgrade_rsp
  4016. * @static
  4017. * @param {Object.<string,*>} message Plain object to verify
  4018. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  4019. */
  4020. building_upgrade_rsp.verify = function verify(message) {
  4021. if (typeof message !== "object" || message === null)
  4022. return "object expected";
  4023. if (message.errno != null && message.hasOwnProperty("errno"))
  4024. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  4025. return "errno: integer|Long expected";
  4026. if (message.data != null && message.hasOwnProperty("data")) {
  4027. let error = $root.game.building.verify(message.data);
  4028. if (error)
  4029. return "data." + error;
  4030. }
  4031. return null;
  4032. };
  4033. /**
  4034. * Creates a building_upgrade_rsp message from a plain object. Also converts values to their respective internal types.
  4035. * @function fromObject
  4036. * @memberof game.building_upgrade_rsp
  4037. * @static
  4038. * @param {Object.<string,*>} object Plain object
  4039. * @returns {game.building_upgrade_rsp} building_upgrade_rsp
  4040. */
  4041. building_upgrade_rsp.fromObject = function fromObject(object) {
  4042. if (object instanceof $root.game.building_upgrade_rsp)
  4043. return object;
  4044. let message = new $root.game.building_upgrade_rsp();
  4045. if (object.errno != null)
  4046. if ($util.Long)
  4047. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  4048. else if (typeof object.errno === "string")
  4049. message.errno = parseInt(object.errno, 10);
  4050. else if (typeof object.errno === "number")
  4051. message.errno = object.errno;
  4052. else if (typeof object.errno === "object")
  4053. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  4054. if (object.data != null) {
  4055. if (typeof object.data !== "object")
  4056. throw TypeError(".game.building_upgrade_rsp.data: object expected");
  4057. message.data = $root.game.building.fromObject(object.data);
  4058. }
  4059. return message;
  4060. };
  4061. /**
  4062. * Creates a plain object from a building_upgrade_rsp message. Also converts values to other types if specified.
  4063. * @function toObject
  4064. * @memberof game.building_upgrade_rsp
  4065. * @static
  4066. * @param {game.building_upgrade_rsp} message building_upgrade_rsp
  4067. * @param {$protobuf.IConversionOptions} [options] Conversion options
  4068. * @returns {Object.<string,*>} Plain object
  4069. */
  4070. building_upgrade_rsp.toObject = function toObject(message, options) {
  4071. if (!options)
  4072. options = {};
  4073. let object = {};
  4074. if (options.defaults) {
  4075. if ($util.Long) {
  4076. let long = new $util.Long(0, 0, false);
  4077. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  4078. } else
  4079. object.errno = options.longs === String ? "0" : 0;
  4080. object.data = null;
  4081. }
  4082. if (message.errno != null && message.hasOwnProperty("errno"))
  4083. if (typeof message.errno === "number")
  4084. object.errno = options.longs === String ? String(message.errno) : message.errno;
  4085. else
  4086. 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;
  4087. if (message.data != null && message.hasOwnProperty("data"))
  4088. object.data = $root.game.building.toObject(message.data, options);
  4089. return object;
  4090. };
  4091. /**
  4092. * Converts this building_upgrade_rsp to JSON.
  4093. * @function toJSON
  4094. * @memberof game.building_upgrade_rsp
  4095. * @instance
  4096. * @returns {Object.<string,*>} JSON object
  4097. */
  4098. building_upgrade_rsp.prototype.toJSON = function toJSON() {
  4099. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  4100. };
  4101. return building_upgrade_rsp;
  4102. })();
  4103. game.building_one_key = (function() {
  4104. /**
  4105. * Properties of a building_one_key.
  4106. * @memberof game
  4107. * @interface Ibuilding_one_key
  4108. */
  4109. /**
  4110. * Constructs a new building_one_key.
  4111. * @memberof game
  4112. * @classdesc Represents a building_one_key.
  4113. * @implements Ibuilding_one_key
  4114. * @constructor
  4115. * @param {game.Ibuilding_one_key=} [properties] Properties to set
  4116. */
  4117. function building_one_key(properties) {
  4118. if (properties)
  4119. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  4120. if (properties[keys[i]] != null)
  4121. this[keys[i]] = properties[keys[i]];
  4122. }
  4123. /**
  4124. * Creates a new building_one_key instance using the specified properties.
  4125. * @function create
  4126. * @memberof game.building_one_key
  4127. * @static
  4128. * @param {game.Ibuilding_one_key=} [properties] Properties to set
  4129. * @returns {game.building_one_key} building_one_key instance
  4130. */
  4131. building_one_key.create = function create(properties) {
  4132. return new building_one_key(properties);
  4133. };
  4134. /**
  4135. * Encodes the specified building_one_key message. Does not implicitly {@link game.building_one_key.verify|verify} messages.
  4136. * @function encode
  4137. * @memberof game.building_one_key
  4138. * @static
  4139. * @param {game.Ibuilding_one_key} message building_one_key message or plain object to encode
  4140. * @param {$protobuf.Writer} [writer] Writer to encode to
  4141. * @returns {$protobuf.Writer} Writer
  4142. */
  4143. building_one_key.encode = function encode(message, writer) {
  4144. if (!writer)
  4145. writer = $Writer.create();
  4146. return writer;
  4147. };
  4148. /**
  4149. * Encodes the specified building_one_key message, length delimited. Does not implicitly {@link game.building_one_key.verify|verify} messages.
  4150. * @function encodeDelimited
  4151. * @memberof game.building_one_key
  4152. * @static
  4153. * @param {game.Ibuilding_one_key} message building_one_key message or plain object to encode
  4154. * @param {$protobuf.Writer} [writer] Writer to encode to
  4155. * @returns {$protobuf.Writer} Writer
  4156. */
  4157. building_one_key.encodeDelimited = function encodeDelimited(message, writer) {
  4158. return this.encode(message, writer).ldelim();
  4159. };
  4160. /**
  4161. * Decodes a building_one_key message from the specified reader or buffer.
  4162. * @function decode
  4163. * @memberof game.building_one_key
  4164. * @static
  4165. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  4166. * @param {number} [length] Message length if known beforehand
  4167. * @returns {game.building_one_key} building_one_key
  4168. * @throws {Error} If the payload is not a reader or valid buffer
  4169. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  4170. */
  4171. building_one_key.decode = function decode(reader, length) {
  4172. if (!(reader instanceof $Reader))
  4173. reader = $Reader.create(reader);
  4174. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.building_one_key();
  4175. while (reader.pos < end) {
  4176. let tag = reader.uint32();
  4177. switch (tag >>> 3) {
  4178. default:
  4179. reader.skipType(tag & 7);
  4180. break;
  4181. }
  4182. }
  4183. return message;
  4184. };
  4185. /**
  4186. * Decodes a building_one_key message from the specified reader or buffer, length delimited.
  4187. * @function decodeDelimited
  4188. * @memberof game.building_one_key
  4189. * @static
  4190. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  4191. * @returns {game.building_one_key} building_one_key
  4192. * @throws {Error} If the payload is not a reader or valid buffer
  4193. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  4194. */
  4195. building_one_key.decodeDelimited = function decodeDelimited(reader) {
  4196. if (!(reader instanceof $Reader))
  4197. reader = new $Reader(reader);
  4198. return this.decode(reader, reader.uint32());
  4199. };
  4200. /**
  4201. * Verifies a building_one_key message.
  4202. * @function verify
  4203. * @memberof game.building_one_key
  4204. * @static
  4205. * @param {Object.<string,*>} message Plain object to verify
  4206. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  4207. */
  4208. building_one_key.verify = function verify(message) {
  4209. if (typeof message !== "object" || message === null)
  4210. return "object expected";
  4211. return null;
  4212. };
  4213. /**
  4214. * Creates a building_one_key message from a plain object. Also converts values to their respective internal types.
  4215. * @function fromObject
  4216. * @memberof game.building_one_key
  4217. * @static
  4218. * @param {Object.<string,*>} object Plain object
  4219. * @returns {game.building_one_key} building_one_key
  4220. */
  4221. building_one_key.fromObject = function fromObject(object) {
  4222. if (object instanceof $root.game.building_one_key)
  4223. return object;
  4224. return new $root.game.building_one_key();
  4225. };
  4226. /**
  4227. * Creates a plain object from a building_one_key message. Also converts values to other types if specified.
  4228. * @function toObject
  4229. * @memberof game.building_one_key
  4230. * @static
  4231. * @param {game.building_one_key} message building_one_key
  4232. * @param {$protobuf.IConversionOptions} [options] Conversion options
  4233. * @returns {Object.<string,*>} Plain object
  4234. */
  4235. building_one_key.toObject = function toObject() {
  4236. return {};
  4237. };
  4238. /**
  4239. * Converts this building_one_key to JSON.
  4240. * @function toJSON
  4241. * @memberof game.building_one_key
  4242. * @instance
  4243. * @returns {Object.<string,*>} JSON object
  4244. */
  4245. building_one_key.prototype.toJSON = function toJSON() {
  4246. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  4247. };
  4248. return building_one_key;
  4249. })();
  4250. game.building_one_key_rsp = (function() {
  4251. /**
  4252. * Properties of a building_one_key_rsp.
  4253. * @memberof game
  4254. * @interface Ibuilding_one_key_rsp
  4255. * @property {number|Long|null} [errno] building_one_key_rsp errno
  4256. * @property {Array.<game.Ibuilding>|null} [list] building_one_key_rsp list
  4257. */
  4258. /**
  4259. * Constructs a new building_one_key_rsp.
  4260. * @memberof game
  4261. * @classdesc Represents a building_one_key_rsp.
  4262. * @implements Ibuilding_one_key_rsp
  4263. * @constructor
  4264. * @param {game.Ibuilding_one_key_rsp=} [properties] Properties to set
  4265. */
  4266. function building_one_key_rsp(properties) {
  4267. this.list = [];
  4268. if (properties)
  4269. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  4270. if (properties[keys[i]] != null)
  4271. this[keys[i]] = properties[keys[i]];
  4272. }
  4273. /**
  4274. * building_one_key_rsp errno.
  4275. * @member {number|Long} errno
  4276. * @memberof game.building_one_key_rsp
  4277. * @instance
  4278. */
  4279. building_one_key_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  4280. /**
  4281. * building_one_key_rsp list.
  4282. * @member {Array.<game.Ibuilding>} list
  4283. * @memberof game.building_one_key_rsp
  4284. * @instance
  4285. */
  4286. building_one_key_rsp.prototype.list = $util.emptyArray;
  4287. /**
  4288. * Creates a new building_one_key_rsp instance using the specified properties.
  4289. * @function create
  4290. * @memberof game.building_one_key_rsp
  4291. * @static
  4292. * @param {game.Ibuilding_one_key_rsp=} [properties] Properties to set
  4293. * @returns {game.building_one_key_rsp} building_one_key_rsp instance
  4294. */
  4295. building_one_key_rsp.create = function create(properties) {
  4296. return new building_one_key_rsp(properties);
  4297. };
  4298. /**
  4299. * Encodes the specified building_one_key_rsp message. Does not implicitly {@link game.building_one_key_rsp.verify|verify} messages.
  4300. * @function encode
  4301. * @memberof game.building_one_key_rsp
  4302. * @static
  4303. * @param {game.Ibuilding_one_key_rsp} message building_one_key_rsp message or plain object to encode
  4304. * @param {$protobuf.Writer} [writer] Writer to encode to
  4305. * @returns {$protobuf.Writer} Writer
  4306. */
  4307. building_one_key_rsp.encode = function encode(message, writer) {
  4308. if (!writer)
  4309. writer = $Writer.create();
  4310. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  4311. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  4312. if (message.list != null && message.list.length)
  4313. for (let i = 0; i < message.list.length; ++i)
  4314. $root.game.building.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  4315. return writer;
  4316. };
  4317. /**
  4318. * Encodes the specified building_one_key_rsp message, length delimited. Does not implicitly {@link game.building_one_key_rsp.verify|verify} messages.
  4319. * @function encodeDelimited
  4320. * @memberof game.building_one_key_rsp
  4321. * @static
  4322. * @param {game.Ibuilding_one_key_rsp} message building_one_key_rsp message or plain object to encode
  4323. * @param {$protobuf.Writer} [writer] Writer to encode to
  4324. * @returns {$protobuf.Writer} Writer
  4325. */
  4326. building_one_key_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  4327. return this.encode(message, writer).ldelim();
  4328. };
  4329. /**
  4330. * Decodes a building_one_key_rsp message from the specified reader or buffer.
  4331. * @function decode
  4332. * @memberof game.building_one_key_rsp
  4333. * @static
  4334. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  4335. * @param {number} [length] Message length if known beforehand
  4336. * @returns {game.building_one_key_rsp} building_one_key_rsp
  4337. * @throws {Error} If the payload is not a reader or valid buffer
  4338. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  4339. */
  4340. building_one_key_rsp.decode = function decode(reader, length) {
  4341. if (!(reader instanceof $Reader))
  4342. reader = $Reader.create(reader);
  4343. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.building_one_key_rsp();
  4344. while (reader.pos < end) {
  4345. let tag = reader.uint32();
  4346. switch (tag >>> 3) {
  4347. case 1:
  4348. message.errno = reader.int64();
  4349. break;
  4350. case 2:
  4351. if (!(message.list && message.list.length))
  4352. message.list = [];
  4353. message.list.push($root.game.building.decode(reader, reader.uint32()));
  4354. break;
  4355. default:
  4356. reader.skipType(tag & 7);
  4357. break;
  4358. }
  4359. }
  4360. return message;
  4361. };
  4362. /**
  4363. * Decodes a building_one_key_rsp message from the specified reader or buffer, length delimited.
  4364. * @function decodeDelimited
  4365. * @memberof game.building_one_key_rsp
  4366. * @static
  4367. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  4368. * @returns {game.building_one_key_rsp} building_one_key_rsp
  4369. * @throws {Error} If the payload is not a reader or valid buffer
  4370. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  4371. */
  4372. building_one_key_rsp.decodeDelimited = function decodeDelimited(reader) {
  4373. if (!(reader instanceof $Reader))
  4374. reader = new $Reader(reader);
  4375. return this.decode(reader, reader.uint32());
  4376. };
  4377. /**
  4378. * Verifies a building_one_key_rsp message.
  4379. * @function verify
  4380. * @memberof game.building_one_key_rsp
  4381. * @static
  4382. * @param {Object.<string,*>} message Plain object to verify
  4383. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  4384. */
  4385. building_one_key_rsp.verify = function verify(message) {
  4386. if (typeof message !== "object" || message === null)
  4387. return "object expected";
  4388. if (message.errno != null && message.hasOwnProperty("errno"))
  4389. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  4390. return "errno: integer|Long expected";
  4391. if (message.list != null && message.hasOwnProperty("list")) {
  4392. if (!Array.isArray(message.list))
  4393. return "list: array expected";
  4394. for (let i = 0; i < message.list.length; ++i) {
  4395. let error = $root.game.building.verify(message.list[i]);
  4396. if (error)
  4397. return "list." + error;
  4398. }
  4399. }
  4400. return null;
  4401. };
  4402. /**
  4403. * Creates a building_one_key_rsp message from a plain object. Also converts values to their respective internal types.
  4404. * @function fromObject
  4405. * @memberof game.building_one_key_rsp
  4406. * @static
  4407. * @param {Object.<string,*>} object Plain object
  4408. * @returns {game.building_one_key_rsp} building_one_key_rsp
  4409. */
  4410. building_one_key_rsp.fromObject = function fromObject(object) {
  4411. if (object instanceof $root.game.building_one_key_rsp)
  4412. return object;
  4413. let message = new $root.game.building_one_key_rsp();
  4414. if (object.errno != null)
  4415. if ($util.Long)
  4416. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  4417. else if (typeof object.errno === "string")
  4418. message.errno = parseInt(object.errno, 10);
  4419. else if (typeof object.errno === "number")
  4420. message.errno = object.errno;
  4421. else if (typeof object.errno === "object")
  4422. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  4423. if (object.list) {
  4424. if (!Array.isArray(object.list))
  4425. throw TypeError(".game.building_one_key_rsp.list: array expected");
  4426. message.list = [];
  4427. for (let i = 0; i < object.list.length; ++i) {
  4428. if (typeof object.list[i] !== "object")
  4429. throw TypeError(".game.building_one_key_rsp.list: object expected");
  4430. message.list[i] = $root.game.building.fromObject(object.list[i]);
  4431. }
  4432. }
  4433. return message;
  4434. };
  4435. /**
  4436. * Creates a plain object from a building_one_key_rsp message. Also converts values to other types if specified.
  4437. * @function toObject
  4438. * @memberof game.building_one_key_rsp
  4439. * @static
  4440. * @param {game.building_one_key_rsp} message building_one_key_rsp
  4441. * @param {$protobuf.IConversionOptions} [options] Conversion options
  4442. * @returns {Object.<string,*>} Plain object
  4443. */
  4444. building_one_key_rsp.toObject = function toObject(message, options) {
  4445. if (!options)
  4446. options = {};
  4447. let object = {};
  4448. if (options.arrays || options.defaults)
  4449. object.list = [];
  4450. if (options.defaults)
  4451. if ($util.Long) {
  4452. let long = new $util.Long(0, 0, false);
  4453. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  4454. } else
  4455. object.errno = options.longs === String ? "0" : 0;
  4456. if (message.errno != null && message.hasOwnProperty("errno"))
  4457. if (typeof message.errno === "number")
  4458. object.errno = options.longs === String ? String(message.errno) : message.errno;
  4459. else
  4460. 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;
  4461. if (message.list && message.list.length) {
  4462. object.list = [];
  4463. for (let j = 0; j < message.list.length; ++j)
  4464. object.list[j] = $root.game.building.toObject(message.list[j], options);
  4465. }
  4466. return object;
  4467. };
  4468. /**
  4469. * Converts this building_one_key_rsp to JSON.
  4470. * @function toJSON
  4471. * @memberof game.building_one_key_rsp
  4472. * @instance
  4473. * @returns {Object.<string,*>} JSON object
  4474. */
  4475. building_one_key_rsp.prototype.toJSON = function toJSON() {
  4476. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  4477. };
  4478. return building_one_key_rsp;
  4479. })();
  4480. game.adventure_data = (function() {
  4481. /**
  4482. * Properties of an adventure_data.
  4483. * @memberof game
  4484. * @interface Iadventure_data
  4485. */
  4486. /**
  4487. * Constructs a new adventure_data.
  4488. * @memberof game
  4489. * @classdesc Represents an adventure_data.
  4490. * @implements Iadventure_data
  4491. * @constructor
  4492. * @param {game.Iadventure_data=} [properties] Properties to set
  4493. */
  4494. function adventure_data(properties) {
  4495. if (properties)
  4496. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  4497. if (properties[keys[i]] != null)
  4498. this[keys[i]] = properties[keys[i]];
  4499. }
  4500. /**
  4501. * Creates a new adventure_data instance using the specified properties.
  4502. * @function create
  4503. * @memberof game.adventure_data
  4504. * @static
  4505. * @param {game.Iadventure_data=} [properties] Properties to set
  4506. * @returns {game.adventure_data} adventure_data instance
  4507. */
  4508. adventure_data.create = function create(properties) {
  4509. return new adventure_data(properties);
  4510. };
  4511. /**
  4512. * Encodes the specified adventure_data message. Does not implicitly {@link game.adventure_data.verify|verify} messages.
  4513. * @function encode
  4514. * @memberof game.adventure_data
  4515. * @static
  4516. * @param {game.Iadventure_data} message adventure_data message or plain object to encode
  4517. * @param {$protobuf.Writer} [writer] Writer to encode to
  4518. * @returns {$protobuf.Writer} Writer
  4519. */
  4520. adventure_data.encode = function encode(message, writer) {
  4521. if (!writer)
  4522. writer = $Writer.create();
  4523. return writer;
  4524. };
  4525. /**
  4526. * Encodes the specified adventure_data message, length delimited. Does not implicitly {@link game.adventure_data.verify|verify} messages.
  4527. * @function encodeDelimited
  4528. * @memberof game.adventure_data
  4529. * @static
  4530. * @param {game.Iadventure_data} message adventure_data message or plain object to encode
  4531. * @param {$protobuf.Writer} [writer] Writer to encode to
  4532. * @returns {$protobuf.Writer} Writer
  4533. */
  4534. adventure_data.encodeDelimited = function encodeDelimited(message, writer) {
  4535. return this.encode(message, writer).ldelim();
  4536. };
  4537. /**
  4538. * Decodes an adventure_data message from the specified reader or buffer.
  4539. * @function decode
  4540. * @memberof game.adventure_data
  4541. * @static
  4542. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  4543. * @param {number} [length] Message length if known beforehand
  4544. * @returns {game.adventure_data} adventure_data
  4545. * @throws {Error} If the payload is not a reader or valid buffer
  4546. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  4547. */
  4548. adventure_data.decode = function decode(reader, length) {
  4549. if (!(reader instanceof $Reader))
  4550. reader = $Reader.create(reader);
  4551. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_data();
  4552. while (reader.pos < end) {
  4553. let tag = reader.uint32();
  4554. switch (tag >>> 3) {
  4555. default:
  4556. reader.skipType(tag & 7);
  4557. break;
  4558. }
  4559. }
  4560. return message;
  4561. };
  4562. /**
  4563. * Decodes an adventure_data message from the specified reader or buffer, length delimited.
  4564. * @function decodeDelimited
  4565. * @memberof game.adventure_data
  4566. * @static
  4567. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  4568. * @returns {game.adventure_data} adventure_data
  4569. * @throws {Error} If the payload is not a reader or valid buffer
  4570. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  4571. */
  4572. adventure_data.decodeDelimited = function decodeDelimited(reader) {
  4573. if (!(reader instanceof $Reader))
  4574. reader = new $Reader(reader);
  4575. return this.decode(reader, reader.uint32());
  4576. };
  4577. /**
  4578. * Verifies an adventure_data message.
  4579. * @function verify
  4580. * @memberof game.adventure_data
  4581. * @static
  4582. * @param {Object.<string,*>} message Plain object to verify
  4583. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  4584. */
  4585. adventure_data.verify = function verify(message) {
  4586. if (typeof message !== "object" || message === null)
  4587. return "object expected";
  4588. return null;
  4589. };
  4590. /**
  4591. * Creates an adventure_data message from a plain object. Also converts values to their respective internal types.
  4592. * @function fromObject
  4593. * @memberof game.adventure_data
  4594. * @static
  4595. * @param {Object.<string,*>} object Plain object
  4596. * @returns {game.adventure_data} adventure_data
  4597. */
  4598. adventure_data.fromObject = function fromObject(object) {
  4599. if (object instanceof $root.game.adventure_data)
  4600. return object;
  4601. return new $root.game.adventure_data();
  4602. };
  4603. /**
  4604. * Creates a plain object from an adventure_data message. Also converts values to other types if specified.
  4605. * @function toObject
  4606. * @memberof game.adventure_data
  4607. * @static
  4608. * @param {game.adventure_data} message adventure_data
  4609. * @param {$protobuf.IConversionOptions} [options] Conversion options
  4610. * @returns {Object.<string,*>} Plain object
  4611. */
  4612. adventure_data.toObject = function toObject() {
  4613. return {};
  4614. };
  4615. /**
  4616. * Converts this adventure_data to JSON.
  4617. * @function toJSON
  4618. * @memberof game.adventure_data
  4619. * @instance
  4620. * @returns {Object.<string,*>} JSON object
  4621. */
  4622. adventure_data.prototype.toJSON = function toJSON() {
  4623. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  4624. };
  4625. return adventure_data;
  4626. })();
  4627. game.adventure_data_rsp = (function() {
  4628. /**
  4629. * Properties of an adventure_data_rsp.
  4630. * @memberof game
  4631. * @interface Iadventure_data_rsp
  4632. * @property {number|Long|null} [errno] adventure_data_rsp errno
  4633. * @property {number|Long|null} [id1] adventure_data_rsp id1
  4634. * @property {Array.<number|Long>|null} [award1] adventure_data_rsp award1
  4635. * @property {number|Long|null} [id2] adventure_data_rsp id2
  4636. * @property {Array.<number|Long>|null} [award2] adventure_data_rsp award2
  4637. * @property {number|Long|null} [type] adventure_data_rsp type
  4638. * @property {number|Long|null} [layer] adventure_data_rsp layer
  4639. * @property {number|Long|null} [cost] adventure_data_rsp cost
  4640. */
  4641. /**
  4642. * Constructs a new adventure_data_rsp.
  4643. * @memberof game
  4644. * @classdesc Represents an adventure_data_rsp.
  4645. * @implements Iadventure_data_rsp
  4646. * @constructor
  4647. * @param {game.Iadventure_data_rsp=} [properties] Properties to set
  4648. */
  4649. function adventure_data_rsp(properties) {
  4650. this.award1 = [];
  4651. this.award2 = [];
  4652. if (properties)
  4653. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  4654. if (properties[keys[i]] != null)
  4655. this[keys[i]] = properties[keys[i]];
  4656. }
  4657. /**
  4658. * adventure_data_rsp errno.
  4659. * @member {number|Long} errno
  4660. * @memberof game.adventure_data_rsp
  4661. * @instance
  4662. */
  4663. adventure_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  4664. /**
  4665. * adventure_data_rsp id1.
  4666. * @member {number|Long} id1
  4667. * @memberof game.adventure_data_rsp
  4668. * @instance
  4669. */
  4670. adventure_data_rsp.prototype.id1 = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  4671. /**
  4672. * adventure_data_rsp award1.
  4673. * @member {Array.<number|Long>} award1
  4674. * @memberof game.adventure_data_rsp
  4675. * @instance
  4676. */
  4677. adventure_data_rsp.prototype.award1 = $util.emptyArray;
  4678. /**
  4679. * adventure_data_rsp id2.
  4680. * @member {number|Long} id2
  4681. * @memberof game.adventure_data_rsp
  4682. * @instance
  4683. */
  4684. adventure_data_rsp.prototype.id2 = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  4685. /**
  4686. * adventure_data_rsp award2.
  4687. * @member {Array.<number|Long>} award2
  4688. * @memberof game.adventure_data_rsp
  4689. * @instance
  4690. */
  4691. adventure_data_rsp.prototype.award2 = $util.emptyArray;
  4692. /**
  4693. * adventure_data_rsp type.
  4694. * @member {number|Long} type
  4695. * @memberof game.adventure_data_rsp
  4696. * @instance
  4697. */
  4698. adventure_data_rsp.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  4699. /**
  4700. * adventure_data_rsp layer.
  4701. * @member {number|Long} layer
  4702. * @memberof game.adventure_data_rsp
  4703. * @instance
  4704. */
  4705. adventure_data_rsp.prototype.layer = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  4706. /**
  4707. * adventure_data_rsp cost.
  4708. * @member {number|Long} cost
  4709. * @memberof game.adventure_data_rsp
  4710. * @instance
  4711. */
  4712. adventure_data_rsp.prototype.cost = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  4713. /**
  4714. * Creates a new adventure_data_rsp instance using the specified properties.
  4715. * @function create
  4716. * @memberof game.adventure_data_rsp
  4717. * @static
  4718. * @param {game.Iadventure_data_rsp=} [properties] Properties to set
  4719. * @returns {game.adventure_data_rsp} adventure_data_rsp instance
  4720. */
  4721. adventure_data_rsp.create = function create(properties) {
  4722. return new adventure_data_rsp(properties);
  4723. };
  4724. /**
  4725. * Encodes the specified adventure_data_rsp message. Does not implicitly {@link game.adventure_data_rsp.verify|verify} messages.
  4726. * @function encode
  4727. * @memberof game.adventure_data_rsp
  4728. * @static
  4729. * @param {game.Iadventure_data_rsp} message adventure_data_rsp message or plain object to encode
  4730. * @param {$protobuf.Writer} [writer] Writer to encode to
  4731. * @returns {$protobuf.Writer} Writer
  4732. */
  4733. adventure_data_rsp.encode = function encode(message, writer) {
  4734. if (!writer)
  4735. writer = $Writer.create();
  4736. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  4737. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  4738. if (message.id1 != null && Object.hasOwnProperty.call(message, "id1"))
  4739. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id1);
  4740. if (message.award1 != null && message.award1.length) {
  4741. writer.uint32(/* id 3, wireType 2 =*/26).fork();
  4742. for (let i = 0; i < message.award1.length; ++i)
  4743. writer.int64(message.award1[i]);
  4744. writer.ldelim();
  4745. }
  4746. if (message.id2 != null && Object.hasOwnProperty.call(message, "id2"))
  4747. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.id2);
  4748. if (message.award2 != null && message.award2.length) {
  4749. writer.uint32(/* id 5, wireType 2 =*/42).fork();
  4750. for (let i = 0; i < message.award2.length; ++i)
  4751. writer.int64(message.award2[i]);
  4752. writer.ldelim();
  4753. }
  4754. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  4755. writer.uint32(/* id 6, wireType 0 =*/48).int64(message.type);
  4756. if (message.layer != null && Object.hasOwnProperty.call(message, "layer"))
  4757. writer.uint32(/* id 7, wireType 0 =*/56).int64(message.layer);
  4758. if (message.cost != null && Object.hasOwnProperty.call(message, "cost"))
  4759. writer.uint32(/* id 8, wireType 0 =*/64).int64(message.cost);
  4760. return writer;
  4761. };
  4762. /**
  4763. * Encodes the specified adventure_data_rsp message, length delimited. Does not implicitly {@link game.adventure_data_rsp.verify|verify} messages.
  4764. * @function encodeDelimited
  4765. * @memberof game.adventure_data_rsp
  4766. * @static
  4767. * @param {game.Iadventure_data_rsp} message adventure_data_rsp message or plain object to encode
  4768. * @param {$protobuf.Writer} [writer] Writer to encode to
  4769. * @returns {$protobuf.Writer} Writer
  4770. */
  4771. adventure_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  4772. return this.encode(message, writer).ldelim();
  4773. };
  4774. /**
  4775. * Decodes an adventure_data_rsp message from the specified reader or buffer.
  4776. * @function decode
  4777. * @memberof game.adventure_data_rsp
  4778. * @static
  4779. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  4780. * @param {number} [length] Message length if known beforehand
  4781. * @returns {game.adventure_data_rsp} adventure_data_rsp
  4782. * @throws {Error} If the payload is not a reader or valid buffer
  4783. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  4784. */
  4785. adventure_data_rsp.decode = function decode(reader, length) {
  4786. if (!(reader instanceof $Reader))
  4787. reader = $Reader.create(reader);
  4788. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_data_rsp();
  4789. while (reader.pos < end) {
  4790. let tag = reader.uint32();
  4791. switch (tag >>> 3) {
  4792. case 1:
  4793. message.errno = reader.int64();
  4794. break;
  4795. case 2:
  4796. message.id1 = reader.int64();
  4797. break;
  4798. case 3:
  4799. if (!(message.award1 && message.award1.length))
  4800. message.award1 = [];
  4801. if ((tag & 7) === 2) {
  4802. let end2 = reader.uint32() + reader.pos;
  4803. while (reader.pos < end2)
  4804. message.award1.push(reader.int64());
  4805. } else
  4806. message.award1.push(reader.int64());
  4807. break;
  4808. case 4:
  4809. message.id2 = reader.int64();
  4810. break;
  4811. case 5:
  4812. if (!(message.award2 && message.award2.length))
  4813. message.award2 = [];
  4814. if ((tag & 7) === 2) {
  4815. let end2 = reader.uint32() + reader.pos;
  4816. while (reader.pos < end2)
  4817. message.award2.push(reader.int64());
  4818. } else
  4819. message.award2.push(reader.int64());
  4820. break;
  4821. case 6:
  4822. message.type = reader.int64();
  4823. break;
  4824. case 7:
  4825. message.layer = reader.int64();
  4826. break;
  4827. case 8:
  4828. message.cost = reader.int64();
  4829. break;
  4830. default:
  4831. reader.skipType(tag & 7);
  4832. break;
  4833. }
  4834. }
  4835. return message;
  4836. };
  4837. /**
  4838. * Decodes an adventure_data_rsp message from the specified reader or buffer, length delimited.
  4839. * @function decodeDelimited
  4840. * @memberof game.adventure_data_rsp
  4841. * @static
  4842. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  4843. * @returns {game.adventure_data_rsp} adventure_data_rsp
  4844. * @throws {Error} If the payload is not a reader or valid buffer
  4845. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  4846. */
  4847. adventure_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  4848. if (!(reader instanceof $Reader))
  4849. reader = new $Reader(reader);
  4850. return this.decode(reader, reader.uint32());
  4851. };
  4852. /**
  4853. * Verifies an adventure_data_rsp message.
  4854. * @function verify
  4855. * @memberof game.adventure_data_rsp
  4856. * @static
  4857. * @param {Object.<string,*>} message Plain object to verify
  4858. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  4859. */
  4860. adventure_data_rsp.verify = function verify(message) {
  4861. if (typeof message !== "object" || message === null)
  4862. return "object expected";
  4863. if (message.errno != null && message.hasOwnProperty("errno"))
  4864. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  4865. return "errno: integer|Long expected";
  4866. if (message.id1 != null && message.hasOwnProperty("id1"))
  4867. if (!$util.isInteger(message.id1) && !(message.id1 && $util.isInteger(message.id1.low) && $util.isInteger(message.id1.high)))
  4868. return "id1: integer|Long expected";
  4869. if (message.award1 != null && message.hasOwnProperty("award1")) {
  4870. if (!Array.isArray(message.award1))
  4871. return "award1: array expected";
  4872. for (let i = 0; i < message.award1.length; ++i)
  4873. if (!$util.isInteger(message.award1[i]) && !(message.award1[i] && $util.isInteger(message.award1[i].low) && $util.isInteger(message.award1[i].high)))
  4874. return "award1: integer|Long[] expected";
  4875. }
  4876. if (message.id2 != null && message.hasOwnProperty("id2"))
  4877. if (!$util.isInteger(message.id2) && !(message.id2 && $util.isInteger(message.id2.low) && $util.isInteger(message.id2.high)))
  4878. return "id2: integer|Long expected";
  4879. if (message.award2 != null && message.hasOwnProperty("award2")) {
  4880. if (!Array.isArray(message.award2))
  4881. return "award2: array expected";
  4882. for (let i = 0; i < message.award2.length; ++i)
  4883. if (!$util.isInteger(message.award2[i]) && !(message.award2[i] && $util.isInteger(message.award2[i].low) && $util.isInteger(message.award2[i].high)))
  4884. return "award2: integer|Long[] expected";
  4885. }
  4886. if (message.type != null && message.hasOwnProperty("type"))
  4887. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  4888. return "type: integer|Long expected";
  4889. if (message.layer != null && message.hasOwnProperty("layer"))
  4890. if (!$util.isInteger(message.layer) && !(message.layer && $util.isInteger(message.layer.low) && $util.isInteger(message.layer.high)))
  4891. return "layer: integer|Long expected";
  4892. if (message.cost != null && message.hasOwnProperty("cost"))
  4893. if (!$util.isInteger(message.cost) && !(message.cost && $util.isInteger(message.cost.low) && $util.isInteger(message.cost.high)))
  4894. return "cost: integer|Long expected";
  4895. return null;
  4896. };
  4897. /**
  4898. * Creates an adventure_data_rsp message from a plain object. Also converts values to their respective internal types.
  4899. * @function fromObject
  4900. * @memberof game.adventure_data_rsp
  4901. * @static
  4902. * @param {Object.<string,*>} object Plain object
  4903. * @returns {game.adventure_data_rsp} adventure_data_rsp
  4904. */
  4905. adventure_data_rsp.fromObject = function fromObject(object) {
  4906. if (object instanceof $root.game.adventure_data_rsp)
  4907. return object;
  4908. let message = new $root.game.adventure_data_rsp();
  4909. if (object.errno != null)
  4910. if ($util.Long)
  4911. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  4912. else if (typeof object.errno === "string")
  4913. message.errno = parseInt(object.errno, 10);
  4914. else if (typeof object.errno === "number")
  4915. message.errno = object.errno;
  4916. else if (typeof object.errno === "object")
  4917. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  4918. if (object.id1 != null)
  4919. if ($util.Long)
  4920. (message.id1 = $util.Long.fromValue(object.id1)).unsigned = false;
  4921. else if (typeof object.id1 === "string")
  4922. message.id1 = parseInt(object.id1, 10);
  4923. else if (typeof object.id1 === "number")
  4924. message.id1 = object.id1;
  4925. else if (typeof object.id1 === "object")
  4926. message.id1 = new $util.LongBits(object.id1.low >>> 0, object.id1.high >>> 0).toNumber();
  4927. if (object.award1) {
  4928. if (!Array.isArray(object.award1))
  4929. throw TypeError(".game.adventure_data_rsp.award1: array expected");
  4930. message.award1 = [];
  4931. for (let i = 0; i < object.award1.length; ++i)
  4932. if ($util.Long)
  4933. (message.award1[i] = $util.Long.fromValue(object.award1[i])).unsigned = false;
  4934. else if (typeof object.award1[i] === "string")
  4935. message.award1[i] = parseInt(object.award1[i], 10);
  4936. else if (typeof object.award1[i] === "number")
  4937. message.award1[i] = object.award1[i];
  4938. else if (typeof object.award1[i] === "object")
  4939. message.award1[i] = new $util.LongBits(object.award1[i].low >>> 0, object.award1[i].high >>> 0).toNumber();
  4940. }
  4941. if (object.id2 != null)
  4942. if ($util.Long)
  4943. (message.id2 = $util.Long.fromValue(object.id2)).unsigned = false;
  4944. else if (typeof object.id2 === "string")
  4945. message.id2 = parseInt(object.id2, 10);
  4946. else if (typeof object.id2 === "number")
  4947. message.id2 = object.id2;
  4948. else if (typeof object.id2 === "object")
  4949. message.id2 = new $util.LongBits(object.id2.low >>> 0, object.id2.high >>> 0).toNumber();
  4950. if (object.award2) {
  4951. if (!Array.isArray(object.award2))
  4952. throw TypeError(".game.adventure_data_rsp.award2: array expected");
  4953. message.award2 = [];
  4954. for (let i = 0; i < object.award2.length; ++i)
  4955. if ($util.Long)
  4956. (message.award2[i] = $util.Long.fromValue(object.award2[i])).unsigned = false;
  4957. else if (typeof object.award2[i] === "string")
  4958. message.award2[i] = parseInt(object.award2[i], 10);
  4959. else if (typeof object.award2[i] === "number")
  4960. message.award2[i] = object.award2[i];
  4961. else if (typeof object.award2[i] === "object")
  4962. message.award2[i] = new $util.LongBits(object.award2[i].low >>> 0, object.award2[i].high >>> 0).toNumber();
  4963. }
  4964. if (object.type != null)
  4965. if ($util.Long)
  4966. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  4967. else if (typeof object.type === "string")
  4968. message.type = parseInt(object.type, 10);
  4969. else if (typeof object.type === "number")
  4970. message.type = object.type;
  4971. else if (typeof object.type === "object")
  4972. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  4973. if (object.layer != null)
  4974. if ($util.Long)
  4975. (message.layer = $util.Long.fromValue(object.layer)).unsigned = false;
  4976. else if (typeof object.layer === "string")
  4977. message.layer = parseInt(object.layer, 10);
  4978. else if (typeof object.layer === "number")
  4979. message.layer = object.layer;
  4980. else if (typeof object.layer === "object")
  4981. message.layer = new $util.LongBits(object.layer.low >>> 0, object.layer.high >>> 0).toNumber();
  4982. if (object.cost != null)
  4983. if ($util.Long)
  4984. (message.cost = $util.Long.fromValue(object.cost)).unsigned = false;
  4985. else if (typeof object.cost === "string")
  4986. message.cost = parseInt(object.cost, 10);
  4987. else if (typeof object.cost === "number")
  4988. message.cost = object.cost;
  4989. else if (typeof object.cost === "object")
  4990. message.cost = new $util.LongBits(object.cost.low >>> 0, object.cost.high >>> 0).toNumber();
  4991. return message;
  4992. };
  4993. /**
  4994. * Creates a plain object from an adventure_data_rsp message. Also converts values to other types if specified.
  4995. * @function toObject
  4996. * @memberof game.adventure_data_rsp
  4997. * @static
  4998. * @param {game.adventure_data_rsp} message adventure_data_rsp
  4999. * @param {$protobuf.IConversionOptions} [options] Conversion options
  5000. * @returns {Object.<string,*>} Plain object
  5001. */
  5002. adventure_data_rsp.toObject = function toObject(message, options) {
  5003. if (!options)
  5004. options = {};
  5005. let object = {};
  5006. if (options.arrays || options.defaults) {
  5007. object.award1 = [];
  5008. object.award2 = [];
  5009. }
  5010. if (options.defaults) {
  5011. if ($util.Long) {
  5012. let long = new $util.Long(0, 0, false);
  5013. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  5014. } else
  5015. object.errno = options.longs === String ? "0" : 0;
  5016. if ($util.Long) {
  5017. let long = new $util.Long(0, 0, false);
  5018. object.id1 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  5019. } else
  5020. object.id1 = options.longs === String ? "0" : 0;
  5021. if ($util.Long) {
  5022. let long = new $util.Long(0, 0, false);
  5023. object.id2 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  5024. } else
  5025. object.id2 = options.longs === String ? "0" : 0;
  5026. if ($util.Long) {
  5027. let long = new $util.Long(0, 0, false);
  5028. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  5029. } else
  5030. object.type = options.longs === String ? "0" : 0;
  5031. if ($util.Long) {
  5032. let long = new $util.Long(0, 0, false);
  5033. object.layer = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  5034. } else
  5035. object.layer = options.longs === String ? "0" : 0;
  5036. if ($util.Long) {
  5037. let long = new $util.Long(0, 0, false);
  5038. object.cost = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  5039. } else
  5040. object.cost = options.longs === String ? "0" : 0;
  5041. }
  5042. if (message.errno != null && message.hasOwnProperty("errno"))
  5043. if (typeof message.errno === "number")
  5044. object.errno = options.longs === String ? String(message.errno) : message.errno;
  5045. else
  5046. 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;
  5047. if (message.id1 != null && message.hasOwnProperty("id1"))
  5048. if (typeof message.id1 === "number")
  5049. object.id1 = options.longs === String ? String(message.id1) : message.id1;
  5050. else
  5051. 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;
  5052. if (message.award1 && message.award1.length) {
  5053. object.award1 = [];
  5054. for (let j = 0; j < message.award1.length; ++j)
  5055. if (typeof message.award1[j] === "number")
  5056. object.award1[j] = options.longs === String ? String(message.award1[j]) : message.award1[j];
  5057. else
  5058. 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];
  5059. }
  5060. if (message.id2 != null && message.hasOwnProperty("id2"))
  5061. if (typeof message.id2 === "number")
  5062. object.id2 = options.longs === String ? String(message.id2) : message.id2;
  5063. else
  5064. 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;
  5065. if (message.award2 && message.award2.length) {
  5066. object.award2 = [];
  5067. for (let j = 0; j < message.award2.length; ++j)
  5068. if (typeof message.award2[j] === "number")
  5069. object.award2[j] = options.longs === String ? String(message.award2[j]) : message.award2[j];
  5070. else
  5071. 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];
  5072. }
  5073. if (message.type != null && message.hasOwnProperty("type"))
  5074. if (typeof message.type === "number")
  5075. object.type = options.longs === String ? String(message.type) : message.type;
  5076. else
  5077. 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;
  5078. if (message.layer != null && message.hasOwnProperty("layer"))
  5079. if (typeof message.layer === "number")
  5080. object.layer = options.longs === String ? String(message.layer) : message.layer;
  5081. else
  5082. 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;
  5083. if (message.cost != null && message.hasOwnProperty("cost"))
  5084. if (typeof message.cost === "number")
  5085. object.cost = options.longs === String ? String(message.cost) : message.cost;
  5086. else
  5087. 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;
  5088. return object;
  5089. };
  5090. /**
  5091. * Converts this adventure_data_rsp to JSON.
  5092. * @function toJSON
  5093. * @memberof game.adventure_data_rsp
  5094. * @instance
  5095. * @returns {Object.<string,*>} JSON object
  5096. */
  5097. adventure_data_rsp.prototype.toJSON = function toJSON() {
  5098. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  5099. };
  5100. return adventure_data_rsp;
  5101. })();
  5102. game.adventure_start = (function() {
  5103. /**
  5104. * Properties of an adventure_start.
  5105. * @memberof game
  5106. * @interface Iadventure_start
  5107. * @property {number|Long|null} [id] adventure_start id
  5108. * @property {number|Long|null} [type] adventure_start type
  5109. */
  5110. /**
  5111. * Constructs a new adventure_start.
  5112. * @memberof game
  5113. * @classdesc Represents an adventure_start.
  5114. * @implements Iadventure_start
  5115. * @constructor
  5116. * @param {game.Iadventure_start=} [properties] Properties to set
  5117. */
  5118. function adventure_start(properties) {
  5119. if (properties)
  5120. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  5121. if (properties[keys[i]] != null)
  5122. this[keys[i]] = properties[keys[i]];
  5123. }
  5124. /**
  5125. * adventure_start id.
  5126. * @member {number|Long} id
  5127. * @memberof game.adventure_start
  5128. * @instance
  5129. */
  5130. adventure_start.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  5131. /**
  5132. * adventure_start type.
  5133. * @member {number|Long} type
  5134. * @memberof game.adventure_start
  5135. * @instance
  5136. */
  5137. adventure_start.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  5138. /**
  5139. * Creates a new adventure_start instance using the specified properties.
  5140. * @function create
  5141. * @memberof game.adventure_start
  5142. * @static
  5143. * @param {game.Iadventure_start=} [properties] Properties to set
  5144. * @returns {game.adventure_start} adventure_start instance
  5145. */
  5146. adventure_start.create = function create(properties) {
  5147. return new adventure_start(properties);
  5148. };
  5149. /**
  5150. * Encodes the specified adventure_start message. Does not implicitly {@link game.adventure_start.verify|verify} messages.
  5151. * @function encode
  5152. * @memberof game.adventure_start
  5153. * @static
  5154. * @param {game.Iadventure_start} message adventure_start message or plain object to encode
  5155. * @param {$protobuf.Writer} [writer] Writer to encode to
  5156. * @returns {$protobuf.Writer} Writer
  5157. */
  5158. adventure_start.encode = function encode(message, writer) {
  5159. if (!writer)
  5160. writer = $Writer.create();
  5161. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  5162. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  5163. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  5164. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.type);
  5165. return writer;
  5166. };
  5167. /**
  5168. * Encodes the specified adventure_start message, length delimited. Does not implicitly {@link game.adventure_start.verify|verify} messages.
  5169. * @function encodeDelimited
  5170. * @memberof game.adventure_start
  5171. * @static
  5172. * @param {game.Iadventure_start} message adventure_start message or plain object to encode
  5173. * @param {$protobuf.Writer} [writer] Writer to encode to
  5174. * @returns {$protobuf.Writer} Writer
  5175. */
  5176. adventure_start.encodeDelimited = function encodeDelimited(message, writer) {
  5177. return this.encode(message, writer).ldelim();
  5178. };
  5179. /**
  5180. * Decodes an adventure_start message from the specified reader or buffer.
  5181. * @function decode
  5182. * @memberof game.adventure_start
  5183. * @static
  5184. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  5185. * @param {number} [length] Message length if known beforehand
  5186. * @returns {game.adventure_start} adventure_start
  5187. * @throws {Error} If the payload is not a reader or valid buffer
  5188. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  5189. */
  5190. adventure_start.decode = function decode(reader, length) {
  5191. if (!(reader instanceof $Reader))
  5192. reader = $Reader.create(reader);
  5193. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_start();
  5194. while (reader.pos < end) {
  5195. let tag = reader.uint32();
  5196. switch (tag >>> 3) {
  5197. case 1:
  5198. message.id = reader.int64();
  5199. break;
  5200. case 2:
  5201. message.type = reader.int64();
  5202. break;
  5203. default:
  5204. reader.skipType(tag & 7);
  5205. break;
  5206. }
  5207. }
  5208. return message;
  5209. };
  5210. /**
  5211. * Decodes an adventure_start message from the specified reader or buffer, length delimited.
  5212. * @function decodeDelimited
  5213. * @memberof game.adventure_start
  5214. * @static
  5215. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  5216. * @returns {game.adventure_start} adventure_start
  5217. * @throws {Error} If the payload is not a reader or valid buffer
  5218. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  5219. */
  5220. adventure_start.decodeDelimited = function decodeDelimited(reader) {
  5221. if (!(reader instanceof $Reader))
  5222. reader = new $Reader(reader);
  5223. return this.decode(reader, reader.uint32());
  5224. };
  5225. /**
  5226. * Verifies an adventure_start message.
  5227. * @function verify
  5228. * @memberof game.adventure_start
  5229. * @static
  5230. * @param {Object.<string,*>} message Plain object to verify
  5231. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  5232. */
  5233. adventure_start.verify = function verify(message) {
  5234. if (typeof message !== "object" || message === null)
  5235. return "object expected";
  5236. if (message.id != null && message.hasOwnProperty("id"))
  5237. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  5238. return "id: integer|Long expected";
  5239. if (message.type != null && message.hasOwnProperty("type"))
  5240. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  5241. return "type: integer|Long expected";
  5242. return null;
  5243. };
  5244. /**
  5245. * Creates an adventure_start message from a plain object. Also converts values to their respective internal types.
  5246. * @function fromObject
  5247. * @memberof game.adventure_start
  5248. * @static
  5249. * @param {Object.<string,*>} object Plain object
  5250. * @returns {game.adventure_start} adventure_start
  5251. */
  5252. adventure_start.fromObject = function fromObject(object) {
  5253. if (object instanceof $root.game.adventure_start)
  5254. return object;
  5255. let message = new $root.game.adventure_start();
  5256. if (object.id != null)
  5257. if ($util.Long)
  5258. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  5259. else if (typeof object.id === "string")
  5260. message.id = parseInt(object.id, 10);
  5261. else if (typeof object.id === "number")
  5262. message.id = object.id;
  5263. else if (typeof object.id === "object")
  5264. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  5265. if (object.type != null)
  5266. if ($util.Long)
  5267. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  5268. else if (typeof object.type === "string")
  5269. message.type = parseInt(object.type, 10);
  5270. else if (typeof object.type === "number")
  5271. message.type = object.type;
  5272. else if (typeof object.type === "object")
  5273. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  5274. return message;
  5275. };
  5276. /**
  5277. * Creates a plain object from an adventure_start message. Also converts values to other types if specified.
  5278. * @function toObject
  5279. * @memberof game.adventure_start
  5280. * @static
  5281. * @param {game.adventure_start} message adventure_start
  5282. * @param {$protobuf.IConversionOptions} [options] Conversion options
  5283. * @returns {Object.<string,*>} Plain object
  5284. */
  5285. adventure_start.toObject = function toObject(message, options) {
  5286. if (!options)
  5287. options = {};
  5288. let object = {};
  5289. if (options.defaults) {
  5290. if ($util.Long) {
  5291. let long = new $util.Long(0, 0, false);
  5292. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  5293. } else
  5294. object.id = options.longs === String ? "0" : 0;
  5295. if ($util.Long) {
  5296. let long = new $util.Long(0, 0, false);
  5297. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  5298. } else
  5299. object.type = options.longs === String ? "0" : 0;
  5300. }
  5301. if (message.id != null && message.hasOwnProperty("id"))
  5302. if (typeof message.id === "number")
  5303. object.id = options.longs === String ? String(message.id) : message.id;
  5304. else
  5305. 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;
  5306. if (message.type != null && message.hasOwnProperty("type"))
  5307. if (typeof message.type === "number")
  5308. object.type = options.longs === String ? String(message.type) : message.type;
  5309. else
  5310. 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;
  5311. return object;
  5312. };
  5313. /**
  5314. * Converts this adventure_start to JSON.
  5315. * @function toJSON
  5316. * @memberof game.adventure_start
  5317. * @instance
  5318. * @returns {Object.<string,*>} JSON object
  5319. */
  5320. adventure_start.prototype.toJSON = function toJSON() {
  5321. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  5322. };
  5323. return adventure_start;
  5324. })();
  5325. game.adventure_start_rsp = (function() {
  5326. /**
  5327. * Properties of an adventure_start_rsp.
  5328. * @memberof game
  5329. * @interface Iadventure_start_rsp
  5330. * @property {number|Long|null} [errno] adventure_start_rsp errno
  5331. * @property {boolean|null} [btrial] adventure_start_rsp btrial
  5332. * @property {number|Long|null} [trialId] adventure_start_rsp trialId
  5333. * @property {number|Long|null} [trialNum] adventure_start_rsp trialNum
  5334. */
  5335. /**
  5336. * Constructs a new adventure_start_rsp.
  5337. * @memberof game
  5338. * @classdesc Represents an adventure_start_rsp.
  5339. * @implements Iadventure_start_rsp
  5340. * @constructor
  5341. * @param {game.Iadventure_start_rsp=} [properties] Properties to set
  5342. */
  5343. function adventure_start_rsp(properties) {
  5344. if (properties)
  5345. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  5346. if (properties[keys[i]] != null)
  5347. this[keys[i]] = properties[keys[i]];
  5348. }
  5349. /**
  5350. * adventure_start_rsp errno.
  5351. * @member {number|Long} errno
  5352. * @memberof game.adventure_start_rsp
  5353. * @instance
  5354. */
  5355. adventure_start_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  5356. /**
  5357. * adventure_start_rsp btrial.
  5358. * @member {boolean} btrial
  5359. * @memberof game.adventure_start_rsp
  5360. * @instance
  5361. */
  5362. adventure_start_rsp.prototype.btrial = false;
  5363. /**
  5364. * adventure_start_rsp trialId.
  5365. * @member {number|Long} trialId
  5366. * @memberof game.adventure_start_rsp
  5367. * @instance
  5368. */
  5369. adventure_start_rsp.prototype.trialId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  5370. /**
  5371. * adventure_start_rsp trialNum.
  5372. * @member {number|Long} trialNum
  5373. * @memberof game.adventure_start_rsp
  5374. * @instance
  5375. */
  5376. adventure_start_rsp.prototype.trialNum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  5377. /**
  5378. * Creates a new adventure_start_rsp instance using the specified properties.
  5379. * @function create
  5380. * @memberof game.adventure_start_rsp
  5381. * @static
  5382. * @param {game.Iadventure_start_rsp=} [properties] Properties to set
  5383. * @returns {game.adventure_start_rsp} adventure_start_rsp instance
  5384. */
  5385. adventure_start_rsp.create = function create(properties) {
  5386. return new adventure_start_rsp(properties);
  5387. };
  5388. /**
  5389. * Encodes the specified adventure_start_rsp message. Does not implicitly {@link game.adventure_start_rsp.verify|verify} messages.
  5390. * @function encode
  5391. * @memberof game.adventure_start_rsp
  5392. * @static
  5393. * @param {game.Iadventure_start_rsp} message adventure_start_rsp message or plain object to encode
  5394. * @param {$protobuf.Writer} [writer] Writer to encode to
  5395. * @returns {$protobuf.Writer} Writer
  5396. */
  5397. adventure_start_rsp.encode = function encode(message, writer) {
  5398. if (!writer)
  5399. writer = $Writer.create();
  5400. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  5401. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  5402. if (message.btrial != null && Object.hasOwnProperty.call(message, "btrial"))
  5403. writer.uint32(/* id 2, wireType 0 =*/16).bool(message.btrial);
  5404. if (message.trialId != null && Object.hasOwnProperty.call(message, "trialId"))
  5405. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.trialId);
  5406. if (message.trialNum != null && Object.hasOwnProperty.call(message, "trialNum"))
  5407. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.trialNum);
  5408. return writer;
  5409. };
  5410. /**
  5411. * Encodes the specified adventure_start_rsp message, length delimited. Does not implicitly {@link game.adventure_start_rsp.verify|verify} messages.
  5412. * @function encodeDelimited
  5413. * @memberof game.adventure_start_rsp
  5414. * @static
  5415. * @param {game.Iadventure_start_rsp} message adventure_start_rsp message or plain object to encode
  5416. * @param {$protobuf.Writer} [writer] Writer to encode to
  5417. * @returns {$protobuf.Writer} Writer
  5418. */
  5419. adventure_start_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  5420. return this.encode(message, writer).ldelim();
  5421. };
  5422. /**
  5423. * Decodes an adventure_start_rsp message from the specified reader or buffer.
  5424. * @function decode
  5425. * @memberof game.adventure_start_rsp
  5426. * @static
  5427. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  5428. * @param {number} [length] Message length if known beforehand
  5429. * @returns {game.adventure_start_rsp} adventure_start_rsp
  5430. * @throws {Error} If the payload is not a reader or valid buffer
  5431. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  5432. */
  5433. adventure_start_rsp.decode = function decode(reader, length) {
  5434. if (!(reader instanceof $Reader))
  5435. reader = $Reader.create(reader);
  5436. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_start_rsp();
  5437. while (reader.pos < end) {
  5438. let tag = reader.uint32();
  5439. switch (tag >>> 3) {
  5440. case 1:
  5441. message.errno = reader.int64();
  5442. break;
  5443. case 2:
  5444. message.btrial = reader.bool();
  5445. break;
  5446. case 3:
  5447. message.trialId = reader.int64();
  5448. break;
  5449. case 4:
  5450. message.trialNum = reader.int64();
  5451. break;
  5452. default:
  5453. reader.skipType(tag & 7);
  5454. break;
  5455. }
  5456. }
  5457. return message;
  5458. };
  5459. /**
  5460. * Decodes an adventure_start_rsp message from the specified reader or buffer, length delimited.
  5461. * @function decodeDelimited
  5462. * @memberof game.adventure_start_rsp
  5463. * @static
  5464. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  5465. * @returns {game.adventure_start_rsp} adventure_start_rsp
  5466. * @throws {Error} If the payload is not a reader or valid buffer
  5467. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  5468. */
  5469. adventure_start_rsp.decodeDelimited = function decodeDelimited(reader) {
  5470. if (!(reader instanceof $Reader))
  5471. reader = new $Reader(reader);
  5472. return this.decode(reader, reader.uint32());
  5473. };
  5474. /**
  5475. * Verifies an adventure_start_rsp message.
  5476. * @function verify
  5477. * @memberof game.adventure_start_rsp
  5478. * @static
  5479. * @param {Object.<string,*>} message Plain object to verify
  5480. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  5481. */
  5482. adventure_start_rsp.verify = function verify(message) {
  5483. if (typeof message !== "object" || message === null)
  5484. return "object expected";
  5485. if (message.errno != null && message.hasOwnProperty("errno"))
  5486. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  5487. return "errno: integer|Long expected";
  5488. if (message.btrial != null && message.hasOwnProperty("btrial"))
  5489. if (typeof message.btrial !== "boolean")
  5490. return "btrial: boolean expected";
  5491. if (message.trialId != null && message.hasOwnProperty("trialId"))
  5492. if (!$util.isInteger(message.trialId) && !(message.trialId && $util.isInteger(message.trialId.low) && $util.isInteger(message.trialId.high)))
  5493. return "trialId: integer|Long expected";
  5494. if (message.trialNum != null && message.hasOwnProperty("trialNum"))
  5495. if (!$util.isInteger(message.trialNum) && !(message.trialNum && $util.isInteger(message.trialNum.low) && $util.isInteger(message.trialNum.high)))
  5496. return "trialNum: integer|Long expected";
  5497. return null;
  5498. };
  5499. /**
  5500. * Creates an adventure_start_rsp message from a plain object. Also converts values to their respective internal types.
  5501. * @function fromObject
  5502. * @memberof game.adventure_start_rsp
  5503. * @static
  5504. * @param {Object.<string,*>} object Plain object
  5505. * @returns {game.adventure_start_rsp} adventure_start_rsp
  5506. */
  5507. adventure_start_rsp.fromObject = function fromObject(object) {
  5508. if (object instanceof $root.game.adventure_start_rsp)
  5509. return object;
  5510. let message = new $root.game.adventure_start_rsp();
  5511. if (object.errno != null)
  5512. if ($util.Long)
  5513. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  5514. else if (typeof object.errno === "string")
  5515. message.errno = parseInt(object.errno, 10);
  5516. else if (typeof object.errno === "number")
  5517. message.errno = object.errno;
  5518. else if (typeof object.errno === "object")
  5519. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  5520. if (object.btrial != null)
  5521. message.btrial = Boolean(object.btrial);
  5522. if (object.trialId != null)
  5523. if ($util.Long)
  5524. (message.trialId = $util.Long.fromValue(object.trialId)).unsigned = false;
  5525. else if (typeof object.trialId === "string")
  5526. message.trialId = parseInt(object.trialId, 10);
  5527. else if (typeof object.trialId === "number")
  5528. message.trialId = object.trialId;
  5529. else if (typeof object.trialId === "object")
  5530. message.trialId = new $util.LongBits(object.trialId.low >>> 0, object.trialId.high >>> 0).toNumber();
  5531. if (object.trialNum != null)
  5532. if ($util.Long)
  5533. (message.trialNum = $util.Long.fromValue(object.trialNum)).unsigned = false;
  5534. else if (typeof object.trialNum === "string")
  5535. message.trialNum = parseInt(object.trialNum, 10);
  5536. else if (typeof object.trialNum === "number")
  5537. message.trialNum = object.trialNum;
  5538. else if (typeof object.trialNum === "object")
  5539. message.trialNum = new $util.LongBits(object.trialNum.low >>> 0, object.trialNum.high >>> 0).toNumber();
  5540. return message;
  5541. };
  5542. /**
  5543. * Creates a plain object from an adventure_start_rsp message. Also converts values to other types if specified.
  5544. * @function toObject
  5545. * @memberof game.adventure_start_rsp
  5546. * @static
  5547. * @param {game.adventure_start_rsp} message adventure_start_rsp
  5548. * @param {$protobuf.IConversionOptions} [options] Conversion options
  5549. * @returns {Object.<string,*>} Plain object
  5550. */
  5551. adventure_start_rsp.toObject = function toObject(message, options) {
  5552. if (!options)
  5553. options = {};
  5554. let object = {};
  5555. if (options.defaults) {
  5556. if ($util.Long) {
  5557. let long = new $util.Long(0, 0, false);
  5558. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  5559. } else
  5560. object.errno = options.longs === String ? "0" : 0;
  5561. object.btrial = false;
  5562. if ($util.Long) {
  5563. let long = new $util.Long(0, 0, false);
  5564. object.trialId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  5565. } else
  5566. object.trialId = options.longs === String ? "0" : 0;
  5567. if ($util.Long) {
  5568. let long = new $util.Long(0, 0, false);
  5569. object.trialNum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  5570. } else
  5571. object.trialNum = options.longs === String ? "0" : 0;
  5572. }
  5573. if (message.errno != null && message.hasOwnProperty("errno"))
  5574. if (typeof message.errno === "number")
  5575. object.errno = options.longs === String ? String(message.errno) : message.errno;
  5576. else
  5577. 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;
  5578. if (message.btrial != null && message.hasOwnProperty("btrial"))
  5579. object.btrial = message.btrial;
  5580. if (message.trialId != null && message.hasOwnProperty("trialId"))
  5581. if (typeof message.trialId === "number")
  5582. object.trialId = options.longs === String ? String(message.trialId) : message.trialId;
  5583. else
  5584. 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;
  5585. if (message.trialNum != null && message.hasOwnProperty("trialNum"))
  5586. if (typeof message.trialNum === "number")
  5587. object.trialNum = options.longs === String ? String(message.trialNum) : message.trialNum;
  5588. else
  5589. 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;
  5590. return object;
  5591. };
  5592. /**
  5593. * Converts this adventure_start_rsp to JSON.
  5594. * @function toJSON
  5595. * @memberof game.adventure_start_rsp
  5596. * @instance
  5597. * @returns {Object.<string,*>} JSON object
  5598. */
  5599. adventure_start_rsp.prototype.toJSON = function toJSON() {
  5600. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  5601. };
  5602. return adventure_start_rsp;
  5603. })();
  5604. game.adventure_end = (function() {
  5605. /**
  5606. * Properties of an adventure_end.
  5607. * @memberof game
  5608. * @interface Iadventure_end
  5609. * @property {boolean|null} [win] adventure_end win
  5610. * @property {number|Long|null} [monsterNum] adventure_end monsterNum
  5611. * @property {number|Long|null} [bossNum] adventure_end bossNum
  5612. * @property {number|Long|null} [eliteNum] adventure_end eliteNum
  5613. */
  5614. /**
  5615. * Constructs a new adventure_end.
  5616. * @memberof game
  5617. * @classdesc Represents an adventure_end.
  5618. * @implements Iadventure_end
  5619. * @constructor
  5620. * @param {game.Iadventure_end=} [properties] Properties to set
  5621. */
  5622. function adventure_end(properties) {
  5623. if (properties)
  5624. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  5625. if (properties[keys[i]] != null)
  5626. this[keys[i]] = properties[keys[i]];
  5627. }
  5628. /**
  5629. * adventure_end win.
  5630. * @member {boolean} win
  5631. * @memberof game.adventure_end
  5632. * @instance
  5633. */
  5634. adventure_end.prototype.win = false;
  5635. /**
  5636. * adventure_end monsterNum.
  5637. * @member {number|Long} monsterNum
  5638. * @memberof game.adventure_end
  5639. * @instance
  5640. */
  5641. adventure_end.prototype.monsterNum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  5642. /**
  5643. * adventure_end bossNum.
  5644. * @member {number|Long} bossNum
  5645. * @memberof game.adventure_end
  5646. * @instance
  5647. */
  5648. adventure_end.prototype.bossNum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  5649. /**
  5650. * adventure_end eliteNum.
  5651. * @member {number|Long} eliteNum
  5652. * @memberof game.adventure_end
  5653. * @instance
  5654. */
  5655. adventure_end.prototype.eliteNum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  5656. /**
  5657. * Creates a new adventure_end instance using the specified properties.
  5658. * @function create
  5659. * @memberof game.adventure_end
  5660. * @static
  5661. * @param {game.Iadventure_end=} [properties] Properties to set
  5662. * @returns {game.adventure_end} adventure_end instance
  5663. */
  5664. adventure_end.create = function create(properties) {
  5665. return new adventure_end(properties);
  5666. };
  5667. /**
  5668. * Encodes the specified adventure_end message. Does not implicitly {@link game.adventure_end.verify|verify} messages.
  5669. * @function encode
  5670. * @memberof game.adventure_end
  5671. * @static
  5672. * @param {game.Iadventure_end} message adventure_end message or plain object to encode
  5673. * @param {$protobuf.Writer} [writer] Writer to encode to
  5674. * @returns {$protobuf.Writer} Writer
  5675. */
  5676. adventure_end.encode = function encode(message, writer) {
  5677. if (!writer)
  5678. writer = $Writer.create();
  5679. if (message.win != null && Object.hasOwnProperty.call(message, "win"))
  5680. writer.uint32(/* id 1, wireType 0 =*/8).bool(message.win);
  5681. if (message.monsterNum != null && Object.hasOwnProperty.call(message, "monsterNum"))
  5682. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.monsterNum);
  5683. if (message.bossNum != null && Object.hasOwnProperty.call(message, "bossNum"))
  5684. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.bossNum);
  5685. if (message.eliteNum != null && Object.hasOwnProperty.call(message, "eliteNum"))
  5686. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.eliteNum);
  5687. return writer;
  5688. };
  5689. /**
  5690. * Encodes the specified adventure_end message, length delimited. Does not implicitly {@link game.adventure_end.verify|verify} messages.
  5691. * @function encodeDelimited
  5692. * @memberof game.adventure_end
  5693. * @static
  5694. * @param {game.Iadventure_end} message adventure_end message or plain object to encode
  5695. * @param {$protobuf.Writer} [writer] Writer to encode to
  5696. * @returns {$protobuf.Writer} Writer
  5697. */
  5698. adventure_end.encodeDelimited = function encodeDelimited(message, writer) {
  5699. return this.encode(message, writer).ldelim();
  5700. };
  5701. /**
  5702. * Decodes an adventure_end message from the specified reader or buffer.
  5703. * @function decode
  5704. * @memberof game.adventure_end
  5705. * @static
  5706. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  5707. * @param {number} [length] Message length if known beforehand
  5708. * @returns {game.adventure_end} adventure_end
  5709. * @throws {Error} If the payload is not a reader or valid buffer
  5710. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  5711. */
  5712. adventure_end.decode = function decode(reader, length) {
  5713. if (!(reader instanceof $Reader))
  5714. reader = $Reader.create(reader);
  5715. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_end();
  5716. while (reader.pos < end) {
  5717. let tag = reader.uint32();
  5718. switch (tag >>> 3) {
  5719. case 1:
  5720. message.win = reader.bool();
  5721. break;
  5722. case 2:
  5723. message.monsterNum = reader.int64();
  5724. break;
  5725. case 3:
  5726. message.bossNum = reader.int64();
  5727. break;
  5728. case 4:
  5729. message.eliteNum = reader.int64();
  5730. break;
  5731. default:
  5732. reader.skipType(tag & 7);
  5733. break;
  5734. }
  5735. }
  5736. return message;
  5737. };
  5738. /**
  5739. * Decodes an adventure_end message from the specified reader or buffer, length delimited.
  5740. * @function decodeDelimited
  5741. * @memberof game.adventure_end
  5742. * @static
  5743. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  5744. * @returns {game.adventure_end} adventure_end
  5745. * @throws {Error} If the payload is not a reader or valid buffer
  5746. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  5747. */
  5748. adventure_end.decodeDelimited = function decodeDelimited(reader) {
  5749. if (!(reader instanceof $Reader))
  5750. reader = new $Reader(reader);
  5751. return this.decode(reader, reader.uint32());
  5752. };
  5753. /**
  5754. * Verifies an adventure_end message.
  5755. * @function verify
  5756. * @memberof game.adventure_end
  5757. * @static
  5758. * @param {Object.<string,*>} message Plain object to verify
  5759. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  5760. */
  5761. adventure_end.verify = function verify(message) {
  5762. if (typeof message !== "object" || message === null)
  5763. return "object expected";
  5764. if (message.win != null && message.hasOwnProperty("win"))
  5765. if (typeof message.win !== "boolean")
  5766. return "win: boolean expected";
  5767. if (message.monsterNum != null && message.hasOwnProperty("monsterNum"))
  5768. if (!$util.isInteger(message.monsterNum) && !(message.monsterNum && $util.isInteger(message.monsterNum.low) && $util.isInteger(message.monsterNum.high)))
  5769. return "monsterNum: integer|Long expected";
  5770. if (message.bossNum != null && message.hasOwnProperty("bossNum"))
  5771. if (!$util.isInteger(message.bossNum) && !(message.bossNum && $util.isInteger(message.bossNum.low) && $util.isInteger(message.bossNum.high)))
  5772. return "bossNum: integer|Long expected";
  5773. if (message.eliteNum != null && message.hasOwnProperty("eliteNum"))
  5774. if (!$util.isInteger(message.eliteNum) && !(message.eliteNum && $util.isInteger(message.eliteNum.low) && $util.isInteger(message.eliteNum.high)))
  5775. return "eliteNum: integer|Long expected";
  5776. return null;
  5777. };
  5778. /**
  5779. * Creates an adventure_end message from a plain object. Also converts values to their respective internal types.
  5780. * @function fromObject
  5781. * @memberof game.adventure_end
  5782. * @static
  5783. * @param {Object.<string,*>} object Plain object
  5784. * @returns {game.adventure_end} adventure_end
  5785. */
  5786. adventure_end.fromObject = function fromObject(object) {
  5787. if (object instanceof $root.game.adventure_end)
  5788. return object;
  5789. let message = new $root.game.adventure_end();
  5790. if (object.win != null)
  5791. message.win = Boolean(object.win);
  5792. if (object.monsterNum != null)
  5793. if ($util.Long)
  5794. (message.monsterNum = $util.Long.fromValue(object.monsterNum)).unsigned = false;
  5795. else if (typeof object.monsterNum === "string")
  5796. message.monsterNum = parseInt(object.monsterNum, 10);
  5797. else if (typeof object.monsterNum === "number")
  5798. message.monsterNum = object.monsterNum;
  5799. else if (typeof object.monsterNum === "object")
  5800. message.monsterNum = new $util.LongBits(object.monsterNum.low >>> 0, object.monsterNum.high >>> 0).toNumber();
  5801. if (object.bossNum != null)
  5802. if ($util.Long)
  5803. (message.bossNum = $util.Long.fromValue(object.bossNum)).unsigned = false;
  5804. else if (typeof object.bossNum === "string")
  5805. message.bossNum = parseInt(object.bossNum, 10);
  5806. else if (typeof object.bossNum === "number")
  5807. message.bossNum = object.bossNum;
  5808. else if (typeof object.bossNum === "object")
  5809. message.bossNum = new $util.LongBits(object.bossNum.low >>> 0, object.bossNum.high >>> 0).toNumber();
  5810. if (object.eliteNum != null)
  5811. if ($util.Long)
  5812. (message.eliteNum = $util.Long.fromValue(object.eliteNum)).unsigned = false;
  5813. else if (typeof object.eliteNum === "string")
  5814. message.eliteNum = parseInt(object.eliteNum, 10);
  5815. else if (typeof object.eliteNum === "number")
  5816. message.eliteNum = object.eliteNum;
  5817. else if (typeof object.eliteNum === "object")
  5818. message.eliteNum = new $util.LongBits(object.eliteNum.low >>> 0, object.eliteNum.high >>> 0).toNumber();
  5819. return message;
  5820. };
  5821. /**
  5822. * Creates a plain object from an adventure_end message. Also converts values to other types if specified.
  5823. * @function toObject
  5824. * @memberof game.adventure_end
  5825. * @static
  5826. * @param {game.adventure_end} message adventure_end
  5827. * @param {$protobuf.IConversionOptions} [options] Conversion options
  5828. * @returns {Object.<string,*>} Plain object
  5829. */
  5830. adventure_end.toObject = function toObject(message, options) {
  5831. if (!options)
  5832. options = {};
  5833. let object = {};
  5834. if (options.defaults) {
  5835. object.win = false;
  5836. if ($util.Long) {
  5837. let long = new $util.Long(0, 0, false);
  5838. object.monsterNum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  5839. } else
  5840. object.monsterNum = options.longs === String ? "0" : 0;
  5841. if ($util.Long) {
  5842. let long = new $util.Long(0, 0, false);
  5843. object.bossNum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  5844. } else
  5845. object.bossNum = options.longs === String ? "0" : 0;
  5846. if ($util.Long) {
  5847. let long = new $util.Long(0, 0, false);
  5848. object.eliteNum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  5849. } else
  5850. object.eliteNum = options.longs === String ? "0" : 0;
  5851. }
  5852. if (message.win != null && message.hasOwnProperty("win"))
  5853. object.win = message.win;
  5854. if (message.monsterNum != null && message.hasOwnProperty("monsterNum"))
  5855. if (typeof message.monsterNum === "number")
  5856. object.monsterNum = options.longs === String ? String(message.monsterNum) : message.monsterNum;
  5857. else
  5858. 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;
  5859. if (message.bossNum != null && message.hasOwnProperty("bossNum"))
  5860. if (typeof message.bossNum === "number")
  5861. object.bossNum = options.longs === String ? String(message.bossNum) : message.bossNum;
  5862. else
  5863. 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;
  5864. if (message.eliteNum != null && message.hasOwnProperty("eliteNum"))
  5865. if (typeof message.eliteNum === "number")
  5866. object.eliteNum = options.longs === String ? String(message.eliteNum) : message.eliteNum;
  5867. else
  5868. 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;
  5869. return object;
  5870. };
  5871. /**
  5872. * Converts this adventure_end to JSON.
  5873. * @function toJSON
  5874. * @memberof game.adventure_end
  5875. * @instance
  5876. * @returns {Object.<string,*>} JSON object
  5877. */
  5878. adventure_end.prototype.toJSON = function toJSON() {
  5879. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  5880. };
  5881. return adventure_end;
  5882. })();
  5883. game.adventure_end_rsp = (function() {
  5884. /**
  5885. * Properties of an adventure_end_rsp.
  5886. * @memberof game
  5887. * @interface Iadventure_end_rsp
  5888. * @property {number|Long|null} [errno] adventure_end_rsp errno
  5889. */
  5890. /**
  5891. * Constructs a new adventure_end_rsp.
  5892. * @memberof game
  5893. * @classdesc Represents an adventure_end_rsp.
  5894. * @implements Iadventure_end_rsp
  5895. * @constructor
  5896. * @param {game.Iadventure_end_rsp=} [properties] Properties to set
  5897. */
  5898. function adventure_end_rsp(properties) {
  5899. if (properties)
  5900. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  5901. if (properties[keys[i]] != null)
  5902. this[keys[i]] = properties[keys[i]];
  5903. }
  5904. /**
  5905. * adventure_end_rsp errno.
  5906. * @member {number|Long} errno
  5907. * @memberof game.adventure_end_rsp
  5908. * @instance
  5909. */
  5910. adventure_end_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  5911. /**
  5912. * Creates a new adventure_end_rsp instance using the specified properties.
  5913. * @function create
  5914. * @memberof game.adventure_end_rsp
  5915. * @static
  5916. * @param {game.Iadventure_end_rsp=} [properties] Properties to set
  5917. * @returns {game.adventure_end_rsp} adventure_end_rsp instance
  5918. */
  5919. adventure_end_rsp.create = function create(properties) {
  5920. return new adventure_end_rsp(properties);
  5921. };
  5922. /**
  5923. * Encodes the specified adventure_end_rsp message. Does not implicitly {@link game.adventure_end_rsp.verify|verify} messages.
  5924. * @function encode
  5925. * @memberof game.adventure_end_rsp
  5926. * @static
  5927. * @param {game.Iadventure_end_rsp} message adventure_end_rsp message or plain object to encode
  5928. * @param {$protobuf.Writer} [writer] Writer to encode to
  5929. * @returns {$protobuf.Writer} Writer
  5930. */
  5931. adventure_end_rsp.encode = function encode(message, writer) {
  5932. if (!writer)
  5933. writer = $Writer.create();
  5934. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  5935. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  5936. return writer;
  5937. };
  5938. /**
  5939. * Encodes the specified adventure_end_rsp message, length delimited. Does not implicitly {@link game.adventure_end_rsp.verify|verify} messages.
  5940. * @function encodeDelimited
  5941. * @memberof game.adventure_end_rsp
  5942. * @static
  5943. * @param {game.Iadventure_end_rsp} message adventure_end_rsp message or plain object to encode
  5944. * @param {$protobuf.Writer} [writer] Writer to encode to
  5945. * @returns {$protobuf.Writer} Writer
  5946. */
  5947. adventure_end_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  5948. return this.encode(message, writer).ldelim();
  5949. };
  5950. /**
  5951. * Decodes an adventure_end_rsp message from the specified reader or buffer.
  5952. * @function decode
  5953. * @memberof game.adventure_end_rsp
  5954. * @static
  5955. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  5956. * @param {number} [length] Message length if known beforehand
  5957. * @returns {game.adventure_end_rsp} adventure_end_rsp
  5958. * @throws {Error} If the payload is not a reader or valid buffer
  5959. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  5960. */
  5961. adventure_end_rsp.decode = function decode(reader, length) {
  5962. if (!(reader instanceof $Reader))
  5963. reader = $Reader.create(reader);
  5964. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_end_rsp();
  5965. while (reader.pos < end) {
  5966. let tag = reader.uint32();
  5967. switch (tag >>> 3) {
  5968. case 1:
  5969. message.errno = reader.int64();
  5970. break;
  5971. default:
  5972. reader.skipType(tag & 7);
  5973. break;
  5974. }
  5975. }
  5976. return message;
  5977. };
  5978. /**
  5979. * Decodes an adventure_end_rsp message from the specified reader or buffer, length delimited.
  5980. * @function decodeDelimited
  5981. * @memberof game.adventure_end_rsp
  5982. * @static
  5983. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  5984. * @returns {game.adventure_end_rsp} adventure_end_rsp
  5985. * @throws {Error} If the payload is not a reader or valid buffer
  5986. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  5987. */
  5988. adventure_end_rsp.decodeDelimited = function decodeDelimited(reader) {
  5989. if (!(reader instanceof $Reader))
  5990. reader = new $Reader(reader);
  5991. return this.decode(reader, reader.uint32());
  5992. };
  5993. /**
  5994. * Verifies an adventure_end_rsp message.
  5995. * @function verify
  5996. * @memberof game.adventure_end_rsp
  5997. * @static
  5998. * @param {Object.<string,*>} message Plain object to verify
  5999. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  6000. */
  6001. adventure_end_rsp.verify = function verify(message) {
  6002. if (typeof message !== "object" || message === null)
  6003. return "object expected";
  6004. if (message.errno != null && message.hasOwnProperty("errno"))
  6005. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  6006. return "errno: integer|Long expected";
  6007. return null;
  6008. };
  6009. /**
  6010. * Creates an adventure_end_rsp message from a plain object. Also converts values to their respective internal types.
  6011. * @function fromObject
  6012. * @memberof game.adventure_end_rsp
  6013. * @static
  6014. * @param {Object.<string,*>} object Plain object
  6015. * @returns {game.adventure_end_rsp} adventure_end_rsp
  6016. */
  6017. adventure_end_rsp.fromObject = function fromObject(object) {
  6018. if (object instanceof $root.game.adventure_end_rsp)
  6019. return object;
  6020. let message = new $root.game.adventure_end_rsp();
  6021. if (object.errno != null)
  6022. if ($util.Long)
  6023. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  6024. else if (typeof object.errno === "string")
  6025. message.errno = parseInt(object.errno, 10);
  6026. else if (typeof object.errno === "number")
  6027. message.errno = object.errno;
  6028. else if (typeof object.errno === "object")
  6029. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  6030. return message;
  6031. };
  6032. /**
  6033. * Creates a plain object from an adventure_end_rsp message. Also converts values to other types if specified.
  6034. * @function toObject
  6035. * @memberof game.adventure_end_rsp
  6036. * @static
  6037. * @param {game.adventure_end_rsp} message adventure_end_rsp
  6038. * @param {$protobuf.IConversionOptions} [options] Conversion options
  6039. * @returns {Object.<string,*>} Plain object
  6040. */
  6041. adventure_end_rsp.toObject = function toObject(message, options) {
  6042. if (!options)
  6043. options = {};
  6044. let object = {};
  6045. if (options.defaults)
  6046. if ($util.Long) {
  6047. let long = new $util.Long(0, 0, false);
  6048. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  6049. } else
  6050. object.errno = options.longs === String ? "0" : 0;
  6051. if (message.errno != null && message.hasOwnProperty("errno"))
  6052. if (typeof message.errno === "number")
  6053. object.errno = options.longs === String ? String(message.errno) : message.errno;
  6054. else
  6055. 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;
  6056. return object;
  6057. };
  6058. /**
  6059. * Converts this adventure_end_rsp to JSON.
  6060. * @function toJSON
  6061. * @memberof game.adventure_end_rsp
  6062. * @instance
  6063. * @returns {Object.<string,*>} JSON object
  6064. */
  6065. adventure_end_rsp.prototype.toJSON = function toJSON() {
  6066. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  6067. };
  6068. return adventure_end_rsp;
  6069. })();
  6070. game.adventure_layer = (function() {
  6071. /**
  6072. * Properties of an adventure_layer.
  6073. * @memberof game
  6074. * @interface Iadventure_layer
  6075. * @property {number|Long|null} [layer] adventure_layer layer
  6076. * @property {number|Long|null} [cost] adventure_layer cost
  6077. * @property {number|Long|null} [monsterNum] adventure_layer monsterNum
  6078. * @property {number|Long|null} [bossNum] adventure_layer bossNum
  6079. * @property {number|Long|null} [eliteNum] adventure_layer eliteNum
  6080. */
  6081. /**
  6082. * Constructs a new adventure_layer.
  6083. * @memberof game
  6084. * @classdesc Represents an adventure_layer.
  6085. * @implements Iadventure_layer
  6086. * @constructor
  6087. * @param {game.Iadventure_layer=} [properties] Properties to set
  6088. */
  6089. function adventure_layer(properties) {
  6090. if (properties)
  6091. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  6092. if (properties[keys[i]] != null)
  6093. this[keys[i]] = properties[keys[i]];
  6094. }
  6095. /**
  6096. * adventure_layer layer.
  6097. * @member {number|Long} layer
  6098. * @memberof game.adventure_layer
  6099. * @instance
  6100. */
  6101. adventure_layer.prototype.layer = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  6102. /**
  6103. * adventure_layer cost.
  6104. * @member {number|Long} cost
  6105. * @memberof game.adventure_layer
  6106. * @instance
  6107. */
  6108. adventure_layer.prototype.cost = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  6109. /**
  6110. * adventure_layer monsterNum.
  6111. * @member {number|Long} monsterNum
  6112. * @memberof game.adventure_layer
  6113. * @instance
  6114. */
  6115. adventure_layer.prototype.monsterNum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  6116. /**
  6117. * adventure_layer bossNum.
  6118. * @member {number|Long} bossNum
  6119. * @memberof game.adventure_layer
  6120. * @instance
  6121. */
  6122. adventure_layer.prototype.bossNum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  6123. /**
  6124. * adventure_layer eliteNum.
  6125. * @member {number|Long} eliteNum
  6126. * @memberof game.adventure_layer
  6127. * @instance
  6128. */
  6129. adventure_layer.prototype.eliteNum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  6130. /**
  6131. * Creates a new adventure_layer instance using the specified properties.
  6132. * @function create
  6133. * @memberof game.adventure_layer
  6134. * @static
  6135. * @param {game.Iadventure_layer=} [properties] Properties to set
  6136. * @returns {game.adventure_layer} adventure_layer instance
  6137. */
  6138. adventure_layer.create = function create(properties) {
  6139. return new adventure_layer(properties);
  6140. };
  6141. /**
  6142. * Encodes the specified adventure_layer message. Does not implicitly {@link game.adventure_layer.verify|verify} messages.
  6143. * @function encode
  6144. * @memberof game.adventure_layer
  6145. * @static
  6146. * @param {game.Iadventure_layer} message adventure_layer message or plain object to encode
  6147. * @param {$protobuf.Writer} [writer] Writer to encode to
  6148. * @returns {$protobuf.Writer} Writer
  6149. */
  6150. adventure_layer.encode = function encode(message, writer) {
  6151. if (!writer)
  6152. writer = $Writer.create();
  6153. if (message.layer != null && Object.hasOwnProperty.call(message, "layer"))
  6154. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.layer);
  6155. if (message.cost != null && Object.hasOwnProperty.call(message, "cost"))
  6156. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.cost);
  6157. if (message.monsterNum != null && Object.hasOwnProperty.call(message, "monsterNum"))
  6158. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.monsterNum);
  6159. if (message.bossNum != null && Object.hasOwnProperty.call(message, "bossNum"))
  6160. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.bossNum);
  6161. if (message.eliteNum != null && Object.hasOwnProperty.call(message, "eliteNum"))
  6162. writer.uint32(/* id 5, wireType 0 =*/40).int64(message.eliteNum);
  6163. return writer;
  6164. };
  6165. /**
  6166. * Encodes the specified adventure_layer message, length delimited. Does not implicitly {@link game.adventure_layer.verify|verify} messages.
  6167. * @function encodeDelimited
  6168. * @memberof game.adventure_layer
  6169. * @static
  6170. * @param {game.Iadventure_layer} message adventure_layer message or plain object to encode
  6171. * @param {$protobuf.Writer} [writer] Writer to encode to
  6172. * @returns {$protobuf.Writer} Writer
  6173. */
  6174. adventure_layer.encodeDelimited = function encodeDelimited(message, writer) {
  6175. return this.encode(message, writer).ldelim();
  6176. };
  6177. /**
  6178. * Decodes an adventure_layer message from the specified reader or buffer.
  6179. * @function decode
  6180. * @memberof game.adventure_layer
  6181. * @static
  6182. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  6183. * @param {number} [length] Message length if known beforehand
  6184. * @returns {game.adventure_layer} adventure_layer
  6185. * @throws {Error} If the payload is not a reader or valid buffer
  6186. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  6187. */
  6188. adventure_layer.decode = function decode(reader, length) {
  6189. if (!(reader instanceof $Reader))
  6190. reader = $Reader.create(reader);
  6191. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_layer();
  6192. while (reader.pos < end) {
  6193. let tag = reader.uint32();
  6194. switch (tag >>> 3) {
  6195. case 1:
  6196. message.layer = reader.int64();
  6197. break;
  6198. case 2:
  6199. message.cost = reader.int64();
  6200. break;
  6201. case 3:
  6202. message.monsterNum = reader.int64();
  6203. break;
  6204. case 4:
  6205. message.bossNum = reader.int64();
  6206. break;
  6207. case 5:
  6208. message.eliteNum = reader.int64();
  6209. break;
  6210. default:
  6211. reader.skipType(tag & 7);
  6212. break;
  6213. }
  6214. }
  6215. return message;
  6216. };
  6217. /**
  6218. * Decodes an adventure_layer message from the specified reader or buffer, length delimited.
  6219. * @function decodeDelimited
  6220. * @memberof game.adventure_layer
  6221. * @static
  6222. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  6223. * @returns {game.adventure_layer} adventure_layer
  6224. * @throws {Error} If the payload is not a reader or valid buffer
  6225. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  6226. */
  6227. adventure_layer.decodeDelimited = function decodeDelimited(reader) {
  6228. if (!(reader instanceof $Reader))
  6229. reader = new $Reader(reader);
  6230. return this.decode(reader, reader.uint32());
  6231. };
  6232. /**
  6233. * Verifies an adventure_layer message.
  6234. * @function verify
  6235. * @memberof game.adventure_layer
  6236. * @static
  6237. * @param {Object.<string,*>} message Plain object to verify
  6238. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  6239. */
  6240. adventure_layer.verify = function verify(message) {
  6241. if (typeof message !== "object" || message === null)
  6242. return "object expected";
  6243. if (message.layer != null && message.hasOwnProperty("layer"))
  6244. if (!$util.isInteger(message.layer) && !(message.layer && $util.isInteger(message.layer.low) && $util.isInteger(message.layer.high)))
  6245. return "layer: integer|Long expected";
  6246. if (message.cost != null && message.hasOwnProperty("cost"))
  6247. if (!$util.isInteger(message.cost) && !(message.cost && $util.isInteger(message.cost.low) && $util.isInteger(message.cost.high)))
  6248. return "cost: integer|Long expected";
  6249. if (message.monsterNum != null && message.hasOwnProperty("monsterNum"))
  6250. if (!$util.isInteger(message.monsterNum) && !(message.monsterNum && $util.isInteger(message.monsterNum.low) && $util.isInteger(message.monsterNum.high)))
  6251. return "monsterNum: integer|Long expected";
  6252. if (message.bossNum != null && message.hasOwnProperty("bossNum"))
  6253. if (!$util.isInteger(message.bossNum) && !(message.bossNum && $util.isInteger(message.bossNum.low) && $util.isInteger(message.bossNum.high)))
  6254. return "bossNum: integer|Long expected";
  6255. if (message.eliteNum != null && message.hasOwnProperty("eliteNum"))
  6256. if (!$util.isInteger(message.eliteNum) && !(message.eliteNum && $util.isInteger(message.eliteNum.low) && $util.isInteger(message.eliteNum.high)))
  6257. return "eliteNum: integer|Long expected";
  6258. return null;
  6259. };
  6260. /**
  6261. * Creates an adventure_layer message from a plain object. Also converts values to their respective internal types.
  6262. * @function fromObject
  6263. * @memberof game.adventure_layer
  6264. * @static
  6265. * @param {Object.<string,*>} object Plain object
  6266. * @returns {game.adventure_layer} adventure_layer
  6267. */
  6268. adventure_layer.fromObject = function fromObject(object) {
  6269. if (object instanceof $root.game.adventure_layer)
  6270. return object;
  6271. let message = new $root.game.adventure_layer();
  6272. if (object.layer != null)
  6273. if ($util.Long)
  6274. (message.layer = $util.Long.fromValue(object.layer)).unsigned = false;
  6275. else if (typeof object.layer === "string")
  6276. message.layer = parseInt(object.layer, 10);
  6277. else if (typeof object.layer === "number")
  6278. message.layer = object.layer;
  6279. else if (typeof object.layer === "object")
  6280. message.layer = new $util.LongBits(object.layer.low >>> 0, object.layer.high >>> 0).toNumber();
  6281. if (object.cost != null)
  6282. if ($util.Long)
  6283. (message.cost = $util.Long.fromValue(object.cost)).unsigned = false;
  6284. else if (typeof object.cost === "string")
  6285. message.cost = parseInt(object.cost, 10);
  6286. else if (typeof object.cost === "number")
  6287. message.cost = object.cost;
  6288. else if (typeof object.cost === "object")
  6289. message.cost = new $util.LongBits(object.cost.low >>> 0, object.cost.high >>> 0).toNumber();
  6290. if (object.monsterNum != null)
  6291. if ($util.Long)
  6292. (message.monsterNum = $util.Long.fromValue(object.monsterNum)).unsigned = false;
  6293. else if (typeof object.monsterNum === "string")
  6294. message.monsterNum = parseInt(object.monsterNum, 10);
  6295. else if (typeof object.monsterNum === "number")
  6296. message.monsterNum = object.monsterNum;
  6297. else if (typeof object.monsterNum === "object")
  6298. message.monsterNum = new $util.LongBits(object.monsterNum.low >>> 0, object.monsterNum.high >>> 0).toNumber();
  6299. if (object.bossNum != null)
  6300. if ($util.Long)
  6301. (message.bossNum = $util.Long.fromValue(object.bossNum)).unsigned = false;
  6302. else if (typeof object.bossNum === "string")
  6303. message.bossNum = parseInt(object.bossNum, 10);
  6304. else if (typeof object.bossNum === "number")
  6305. message.bossNum = object.bossNum;
  6306. else if (typeof object.bossNum === "object")
  6307. message.bossNum = new $util.LongBits(object.bossNum.low >>> 0, object.bossNum.high >>> 0).toNumber();
  6308. if (object.eliteNum != null)
  6309. if ($util.Long)
  6310. (message.eliteNum = $util.Long.fromValue(object.eliteNum)).unsigned = false;
  6311. else if (typeof object.eliteNum === "string")
  6312. message.eliteNum = parseInt(object.eliteNum, 10);
  6313. else if (typeof object.eliteNum === "number")
  6314. message.eliteNum = object.eliteNum;
  6315. else if (typeof object.eliteNum === "object")
  6316. message.eliteNum = new $util.LongBits(object.eliteNum.low >>> 0, object.eliteNum.high >>> 0).toNumber();
  6317. return message;
  6318. };
  6319. /**
  6320. * Creates a plain object from an adventure_layer message. Also converts values to other types if specified.
  6321. * @function toObject
  6322. * @memberof game.adventure_layer
  6323. * @static
  6324. * @param {game.adventure_layer} message adventure_layer
  6325. * @param {$protobuf.IConversionOptions} [options] Conversion options
  6326. * @returns {Object.<string,*>} Plain object
  6327. */
  6328. adventure_layer.toObject = function toObject(message, options) {
  6329. if (!options)
  6330. options = {};
  6331. let object = {};
  6332. if (options.defaults) {
  6333. if ($util.Long) {
  6334. let long = new $util.Long(0, 0, false);
  6335. object.layer = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  6336. } else
  6337. object.layer = options.longs === String ? "0" : 0;
  6338. if ($util.Long) {
  6339. let long = new $util.Long(0, 0, false);
  6340. object.cost = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  6341. } else
  6342. object.cost = options.longs === String ? "0" : 0;
  6343. if ($util.Long) {
  6344. let long = new $util.Long(0, 0, false);
  6345. object.monsterNum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  6346. } else
  6347. object.monsterNum = options.longs === String ? "0" : 0;
  6348. if ($util.Long) {
  6349. let long = new $util.Long(0, 0, false);
  6350. object.bossNum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  6351. } else
  6352. object.bossNum = options.longs === String ? "0" : 0;
  6353. if ($util.Long) {
  6354. let long = new $util.Long(0, 0, false);
  6355. object.eliteNum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  6356. } else
  6357. object.eliteNum = options.longs === String ? "0" : 0;
  6358. }
  6359. if (message.layer != null && message.hasOwnProperty("layer"))
  6360. if (typeof message.layer === "number")
  6361. object.layer = options.longs === String ? String(message.layer) : message.layer;
  6362. else
  6363. 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;
  6364. if (message.cost != null && message.hasOwnProperty("cost"))
  6365. if (typeof message.cost === "number")
  6366. object.cost = options.longs === String ? String(message.cost) : message.cost;
  6367. else
  6368. 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;
  6369. if (message.monsterNum != null && message.hasOwnProperty("monsterNum"))
  6370. if (typeof message.monsterNum === "number")
  6371. object.monsterNum = options.longs === String ? String(message.monsterNum) : message.monsterNum;
  6372. else
  6373. 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;
  6374. if (message.bossNum != null && message.hasOwnProperty("bossNum"))
  6375. if (typeof message.bossNum === "number")
  6376. object.bossNum = options.longs === String ? String(message.bossNum) : message.bossNum;
  6377. else
  6378. 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;
  6379. if (message.eliteNum != null && message.hasOwnProperty("eliteNum"))
  6380. if (typeof message.eliteNum === "number")
  6381. object.eliteNum = options.longs === String ? String(message.eliteNum) : message.eliteNum;
  6382. else
  6383. 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;
  6384. return object;
  6385. };
  6386. /**
  6387. * Converts this adventure_layer to JSON.
  6388. * @function toJSON
  6389. * @memberof game.adventure_layer
  6390. * @instance
  6391. * @returns {Object.<string,*>} JSON object
  6392. */
  6393. adventure_layer.prototype.toJSON = function toJSON() {
  6394. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  6395. };
  6396. return adventure_layer;
  6397. })();
  6398. game.adventure_layer_rsp = (function() {
  6399. /**
  6400. * Properties of an adventure_layer_rsp.
  6401. * @memberof game
  6402. * @interface Iadventure_layer_rsp
  6403. * @property {number|Long|null} [errno] adventure_layer_rsp errno
  6404. */
  6405. /**
  6406. * Constructs a new adventure_layer_rsp.
  6407. * @memberof game
  6408. * @classdesc Represents an adventure_layer_rsp.
  6409. * @implements Iadventure_layer_rsp
  6410. * @constructor
  6411. * @param {game.Iadventure_layer_rsp=} [properties] Properties to set
  6412. */
  6413. function adventure_layer_rsp(properties) {
  6414. if (properties)
  6415. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  6416. if (properties[keys[i]] != null)
  6417. this[keys[i]] = properties[keys[i]];
  6418. }
  6419. /**
  6420. * adventure_layer_rsp errno.
  6421. * @member {number|Long} errno
  6422. * @memberof game.adventure_layer_rsp
  6423. * @instance
  6424. */
  6425. adventure_layer_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  6426. /**
  6427. * Creates a new adventure_layer_rsp instance using the specified properties.
  6428. * @function create
  6429. * @memberof game.adventure_layer_rsp
  6430. * @static
  6431. * @param {game.Iadventure_layer_rsp=} [properties] Properties to set
  6432. * @returns {game.adventure_layer_rsp} adventure_layer_rsp instance
  6433. */
  6434. adventure_layer_rsp.create = function create(properties) {
  6435. return new adventure_layer_rsp(properties);
  6436. };
  6437. /**
  6438. * Encodes the specified adventure_layer_rsp message. Does not implicitly {@link game.adventure_layer_rsp.verify|verify} messages.
  6439. * @function encode
  6440. * @memberof game.adventure_layer_rsp
  6441. * @static
  6442. * @param {game.Iadventure_layer_rsp} message adventure_layer_rsp message or plain object to encode
  6443. * @param {$protobuf.Writer} [writer] Writer to encode to
  6444. * @returns {$protobuf.Writer} Writer
  6445. */
  6446. adventure_layer_rsp.encode = function encode(message, writer) {
  6447. if (!writer)
  6448. writer = $Writer.create();
  6449. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  6450. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  6451. return writer;
  6452. };
  6453. /**
  6454. * Encodes the specified adventure_layer_rsp message, length delimited. Does not implicitly {@link game.adventure_layer_rsp.verify|verify} messages.
  6455. * @function encodeDelimited
  6456. * @memberof game.adventure_layer_rsp
  6457. * @static
  6458. * @param {game.Iadventure_layer_rsp} message adventure_layer_rsp message or plain object to encode
  6459. * @param {$protobuf.Writer} [writer] Writer to encode to
  6460. * @returns {$protobuf.Writer} Writer
  6461. */
  6462. adventure_layer_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  6463. return this.encode(message, writer).ldelim();
  6464. };
  6465. /**
  6466. * Decodes an adventure_layer_rsp message from the specified reader or buffer.
  6467. * @function decode
  6468. * @memberof game.adventure_layer_rsp
  6469. * @static
  6470. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  6471. * @param {number} [length] Message length if known beforehand
  6472. * @returns {game.adventure_layer_rsp} adventure_layer_rsp
  6473. * @throws {Error} If the payload is not a reader or valid buffer
  6474. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  6475. */
  6476. adventure_layer_rsp.decode = function decode(reader, length) {
  6477. if (!(reader instanceof $Reader))
  6478. reader = $Reader.create(reader);
  6479. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_layer_rsp();
  6480. while (reader.pos < end) {
  6481. let tag = reader.uint32();
  6482. switch (tag >>> 3) {
  6483. case 1:
  6484. message.errno = reader.int64();
  6485. break;
  6486. default:
  6487. reader.skipType(tag & 7);
  6488. break;
  6489. }
  6490. }
  6491. return message;
  6492. };
  6493. /**
  6494. * Decodes an adventure_layer_rsp message from the specified reader or buffer, length delimited.
  6495. * @function decodeDelimited
  6496. * @memberof game.adventure_layer_rsp
  6497. * @static
  6498. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  6499. * @returns {game.adventure_layer_rsp} adventure_layer_rsp
  6500. * @throws {Error} If the payload is not a reader or valid buffer
  6501. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  6502. */
  6503. adventure_layer_rsp.decodeDelimited = function decodeDelimited(reader) {
  6504. if (!(reader instanceof $Reader))
  6505. reader = new $Reader(reader);
  6506. return this.decode(reader, reader.uint32());
  6507. };
  6508. /**
  6509. * Verifies an adventure_layer_rsp message.
  6510. * @function verify
  6511. * @memberof game.adventure_layer_rsp
  6512. * @static
  6513. * @param {Object.<string,*>} message Plain object to verify
  6514. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  6515. */
  6516. adventure_layer_rsp.verify = function verify(message) {
  6517. if (typeof message !== "object" || message === null)
  6518. return "object expected";
  6519. if (message.errno != null && message.hasOwnProperty("errno"))
  6520. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  6521. return "errno: integer|Long expected";
  6522. return null;
  6523. };
  6524. /**
  6525. * Creates an adventure_layer_rsp message from a plain object. Also converts values to their respective internal types.
  6526. * @function fromObject
  6527. * @memberof game.adventure_layer_rsp
  6528. * @static
  6529. * @param {Object.<string,*>} object Plain object
  6530. * @returns {game.adventure_layer_rsp} adventure_layer_rsp
  6531. */
  6532. adventure_layer_rsp.fromObject = function fromObject(object) {
  6533. if (object instanceof $root.game.adventure_layer_rsp)
  6534. return object;
  6535. let message = new $root.game.adventure_layer_rsp();
  6536. if (object.errno != null)
  6537. if ($util.Long)
  6538. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  6539. else if (typeof object.errno === "string")
  6540. message.errno = parseInt(object.errno, 10);
  6541. else if (typeof object.errno === "number")
  6542. message.errno = object.errno;
  6543. else if (typeof object.errno === "object")
  6544. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  6545. return message;
  6546. };
  6547. /**
  6548. * Creates a plain object from an adventure_layer_rsp message. Also converts values to other types if specified.
  6549. * @function toObject
  6550. * @memberof game.adventure_layer_rsp
  6551. * @static
  6552. * @param {game.adventure_layer_rsp} message adventure_layer_rsp
  6553. * @param {$protobuf.IConversionOptions} [options] Conversion options
  6554. * @returns {Object.<string,*>} Plain object
  6555. */
  6556. adventure_layer_rsp.toObject = function toObject(message, options) {
  6557. if (!options)
  6558. options = {};
  6559. let object = {};
  6560. if (options.defaults)
  6561. if ($util.Long) {
  6562. let long = new $util.Long(0, 0, false);
  6563. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  6564. } else
  6565. object.errno = options.longs === String ? "0" : 0;
  6566. if (message.errno != null && message.hasOwnProperty("errno"))
  6567. if (typeof message.errno === "number")
  6568. object.errno = options.longs === String ? String(message.errno) : message.errno;
  6569. else
  6570. 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;
  6571. return object;
  6572. };
  6573. /**
  6574. * Converts this adventure_layer_rsp to JSON.
  6575. * @function toJSON
  6576. * @memberof game.adventure_layer_rsp
  6577. * @instance
  6578. * @returns {Object.<string,*>} JSON object
  6579. */
  6580. adventure_layer_rsp.prototype.toJSON = function toJSON() {
  6581. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  6582. };
  6583. return adventure_layer_rsp;
  6584. })();
  6585. game.adventure_sweep = (function() {
  6586. /**
  6587. * Properties of an adventure_sweep.
  6588. * @memberof game
  6589. * @interface Iadventure_sweep
  6590. * @property {number|Long|null} [id] adventure_sweep id
  6591. * @property {number|Long|null} [type] adventure_sweep type
  6592. */
  6593. /**
  6594. * Constructs a new adventure_sweep.
  6595. * @memberof game
  6596. * @classdesc Represents an adventure_sweep.
  6597. * @implements Iadventure_sweep
  6598. * @constructor
  6599. * @param {game.Iadventure_sweep=} [properties] Properties to set
  6600. */
  6601. function adventure_sweep(properties) {
  6602. if (properties)
  6603. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  6604. if (properties[keys[i]] != null)
  6605. this[keys[i]] = properties[keys[i]];
  6606. }
  6607. /**
  6608. * adventure_sweep id.
  6609. * @member {number|Long} id
  6610. * @memberof game.adventure_sweep
  6611. * @instance
  6612. */
  6613. adventure_sweep.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  6614. /**
  6615. * adventure_sweep type.
  6616. * @member {number|Long} type
  6617. * @memberof game.adventure_sweep
  6618. * @instance
  6619. */
  6620. adventure_sweep.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  6621. /**
  6622. * Creates a new adventure_sweep instance using the specified properties.
  6623. * @function create
  6624. * @memberof game.adventure_sweep
  6625. * @static
  6626. * @param {game.Iadventure_sweep=} [properties] Properties to set
  6627. * @returns {game.adventure_sweep} adventure_sweep instance
  6628. */
  6629. adventure_sweep.create = function create(properties) {
  6630. return new adventure_sweep(properties);
  6631. };
  6632. /**
  6633. * Encodes the specified adventure_sweep message. Does not implicitly {@link game.adventure_sweep.verify|verify} messages.
  6634. * @function encode
  6635. * @memberof game.adventure_sweep
  6636. * @static
  6637. * @param {game.Iadventure_sweep} message adventure_sweep message or plain object to encode
  6638. * @param {$protobuf.Writer} [writer] Writer to encode to
  6639. * @returns {$protobuf.Writer} Writer
  6640. */
  6641. adventure_sweep.encode = function encode(message, writer) {
  6642. if (!writer)
  6643. writer = $Writer.create();
  6644. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  6645. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  6646. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  6647. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.type);
  6648. return writer;
  6649. };
  6650. /**
  6651. * Encodes the specified adventure_sweep message, length delimited. Does not implicitly {@link game.adventure_sweep.verify|verify} messages.
  6652. * @function encodeDelimited
  6653. * @memberof game.adventure_sweep
  6654. * @static
  6655. * @param {game.Iadventure_sweep} message adventure_sweep message or plain object to encode
  6656. * @param {$protobuf.Writer} [writer] Writer to encode to
  6657. * @returns {$protobuf.Writer} Writer
  6658. */
  6659. adventure_sweep.encodeDelimited = function encodeDelimited(message, writer) {
  6660. return this.encode(message, writer).ldelim();
  6661. };
  6662. /**
  6663. * Decodes an adventure_sweep message from the specified reader or buffer.
  6664. * @function decode
  6665. * @memberof game.adventure_sweep
  6666. * @static
  6667. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  6668. * @param {number} [length] Message length if known beforehand
  6669. * @returns {game.adventure_sweep} adventure_sweep
  6670. * @throws {Error} If the payload is not a reader or valid buffer
  6671. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  6672. */
  6673. adventure_sweep.decode = function decode(reader, length) {
  6674. if (!(reader instanceof $Reader))
  6675. reader = $Reader.create(reader);
  6676. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_sweep();
  6677. while (reader.pos < end) {
  6678. let tag = reader.uint32();
  6679. switch (tag >>> 3) {
  6680. case 1:
  6681. message.id = reader.int64();
  6682. break;
  6683. case 2:
  6684. message.type = reader.int64();
  6685. break;
  6686. default:
  6687. reader.skipType(tag & 7);
  6688. break;
  6689. }
  6690. }
  6691. return message;
  6692. };
  6693. /**
  6694. * Decodes an adventure_sweep message from the specified reader or buffer, length delimited.
  6695. * @function decodeDelimited
  6696. * @memberof game.adventure_sweep
  6697. * @static
  6698. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  6699. * @returns {game.adventure_sweep} adventure_sweep
  6700. * @throws {Error} If the payload is not a reader or valid buffer
  6701. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  6702. */
  6703. adventure_sweep.decodeDelimited = function decodeDelimited(reader) {
  6704. if (!(reader instanceof $Reader))
  6705. reader = new $Reader(reader);
  6706. return this.decode(reader, reader.uint32());
  6707. };
  6708. /**
  6709. * Verifies an adventure_sweep message.
  6710. * @function verify
  6711. * @memberof game.adventure_sweep
  6712. * @static
  6713. * @param {Object.<string,*>} message Plain object to verify
  6714. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  6715. */
  6716. adventure_sweep.verify = function verify(message) {
  6717. if (typeof message !== "object" || message === null)
  6718. return "object expected";
  6719. if (message.id != null && message.hasOwnProperty("id"))
  6720. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  6721. return "id: integer|Long expected";
  6722. if (message.type != null && message.hasOwnProperty("type"))
  6723. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  6724. return "type: integer|Long expected";
  6725. return null;
  6726. };
  6727. /**
  6728. * Creates an adventure_sweep message from a plain object. Also converts values to their respective internal types.
  6729. * @function fromObject
  6730. * @memberof game.adventure_sweep
  6731. * @static
  6732. * @param {Object.<string,*>} object Plain object
  6733. * @returns {game.adventure_sweep} adventure_sweep
  6734. */
  6735. adventure_sweep.fromObject = function fromObject(object) {
  6736. if (object instanceof $root.game.adventure_sweep)
  6737. return object;
  6738. let message = new $root.game.adventure_sweep();
  6739. if (object.id != null)
  6740. if ($util.Long)
  6741. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  6742. else if (typeof object.id === "string")
  6743. message.id = parseInt(object.id, 10);
  6744. else if (typeof object.id === "number")
  6745. message.id = object.id;
  6746. else if (typeof object.id === "object")
  6747. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  6748. if (object.type != null)
  6749. if ($util.Long)
  6750. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  6751. else if (typeof object.type === "string")
  6752. message.type = parseInt(object.type, 10);
  6753. else if (typeof object.type === "number")
  6754. message.type = object.type;
  6755. else if (typeof object.type === "object")
  6756. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  6757. return message;
  6758. };
  6759. /**
  6760. * Creates a plain object from an adventure_sweep message. Also converts values to other types if specified.
  6761. * @function toObject
  6762. * @memberof game.adventure_sweep
  6763. * @static
  6764. * @param {game.adventure_sweep} message adventure_sweep
  6765. * @param {$protobuf.IConversionOptions} [options] Conversion options
  6766. * @returns {Object.<string,*>} Plain object
  6767. */
  6768. adventure_sweep.toObject = function toObject(message, options) {
  6769. if (!options)
  6770. options = {};
  6771. let object = {};
  6772. if (options.defaults) {
  6773. if ($util.Long) {
  6774. let long = new $util.Long(0, 0, false);
  6775. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  6776. } else
  6777. object.id = options.longs === String ? "0" : 0;
  6778. if ($util.Long) {
  6779. let long = new $util.Long(0, 0, false);
  6780. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  6781. } else
  6782. object.type = options.longs === String ? "0" : 0;
  6783. }
  6784. if (message.id != null && message.hasOwnProperty("id"))
  6785. if (typeof message.id === "number")
  6786. object.id = options.longs === String ? String(message.id) : message.id;
  6787. else
  6788. 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;
  6789. if (message.type != null && message.hasOwnProperty("type"))
  6790. if (typeof message.type === "number")
  6791. object.type = options.longs === String ? String(message.type) : message.type;
  6792. else
  6793. 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;
  6794. return object;
  6795. };
  6796. /**
  6797. * Converts this adventure_sweep to JSON.
  6798. * @function toJSON
  6799. * @memberof game.adventure_sweep
  6800. * @instance
  6801. * @returns {Object.<string,*>} JSON object
  6802. */
  6803. adventure_sweep.prototype.toJSON = function toJSON() {
  6804. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  6805. };
  6806. return adventure_sweep;
  6807. })();
  6808. game.adventure_sweep_rsp = (function() {
  6809. /**
  6810. * Properties of an adventure_sweep_rsp.
  6811. * @memberof game
  6812. * @interface Iadventure_sweep_rsp
  6813. * @property {number|Long|null} [errno] adventure_sweep_rsp errno
  6814. */
  6815. /**
  6816. * Constructs a new adventure_sweep_rsp.
  6817. * @memberof game
  6818. * @classdesc Represents an adventure_sweep_rsp.
  6819. * @implements Iadventure_sweep_rsp
  6820. * @constructor
  6821. * @param {game.Iadventure_sweep_rsp=} [properties] Properties to set
  6822. */
  6823. function adventure_sweep_rsp(properties) {
  6824. if (properties)
  6825. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  6826. if (properties[keys[i]] != null)
  6827. this[keys[i]] = properties[keys[i]];
  6828. }
  6829. /**
  6830. * adventure_sweep_rsp errno.
  6831. * @member {number|Long} errno
  6832. * @memberof game.adventure_sweep_rsp
  6833. * @instance
  6834. */
  6835. adventure_sweep_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  6836. /**
  6837. * Creates a new adventure_sweep_rsp instance using the specified properties.
  6838. * @function create
  6839. * @memberof game.adventure_sweep_rsp
  6840. * @static
  6841. * @param {game.Iadventure_sweep_rsp=} [properties] Properties to set
  6842. * @returns {game.adventure_sweep_rsp} adventure_sweep_rsp instance
  6843. */
  6844. adventure_sweep_rsp.create = function create(properties) {
  6845. return new adventure_sweep_rsp(properties);
  6846. };
  6847. /**
  6848. * Encodes the specified adventure_sweep_rsp message. Does not implicitly {@link game.adventure_sweep_rsp.verify|verify} messages.
  6849. * @function encode
  6850. * @memberof game.adventure_sweep_rsp
  6851. * @static
  6852. * @param {game.Iadventure_sweep_rsp} message adventure_sweep_rsp message or plain object to encode
  6853. * @param {$protobuf.Writer} [writer] Writer to encode to
  6854. * @returns {$protobuf.Writer} Writer
  6855. */
  6856. adventure_sweep_rsp.encode = function encode(message, writer) {
  6857. if (!writer)
  6858. writer = $Writer.create();
  6859. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  6860. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  6861. return writer;
  6862. };
  6863. /**
  6864. * Encodes the specified adventure_sweep_rsp message, length delimited. Does not implicitly {@link game.adventure_sweep_rsp.verify|verify} messages.
  6865. * @function encodeDelimited
  6866. * @memberof game.adventure_sweep_rsp
  6867. * @static
  6868. * @param {game.Iadventure_sweep_rsp} message adventure_sweep_rsp message or plain object to encode
  6869. * @param {$protobuf.Writer} [writer] Writer to encode to
  6870. * @returns {$protobuf.Writer} Writer
  6871. */
  6872. adventure_sweep_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  6873. return this.encode(message, writer).ldelim();
  6874. };
  6875. /**
  6876. * Decodes an adventure_sweep_rsp message from the specified reader or buffer.
  6877. * @function decode
  6878. * @memberof game.adventure_sweep_rsp
  6879. * @static
  6880. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  6881. * @param {number} [length] Message length if known beforehand
  6882. * @returns {game.adventure_sweep_rsp} adventure_sweep_rsp
  6883. * @throws {Error} If the payload is not a reader or valid buffer
  6884. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  6885. */
  6886. adventure_sweep_rsp.decode = function decode(reader, length) {
  6887. if (!(reader instanceof $Reader))
  6888. reader = $Reader.create(reader);
  6889. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_sweep_rsp();
  6890. while (reader.pos < end) {
  6891. let tag = reader.uint32();
  6892. switch (tag >>> 3) {
  6893. case 1:
  6894. message.errno = reader.int64();
  6895. break;
  6896. default:
  6897. reader.skipType(tag & 7);
  6898. break;
  6899. }
  6900. }
  6901. return message;
  6902. };
  6903. /**
  6904. * Decodes an adventure_sweep_rsp message from the specified reader or buffer, length delimited.
  6905. * @function decodeDelimited
  6906. * @memberof game.adventure_sweep_rsp
  6907. * @static
  6908. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  6909. * @returns {game.adventure_sweep_rsp} adventure_sweep_rsp
  6910. * @throws {Error} If the payload is not a reader or valid buffer
  6911. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  6912. */
  6913. adventure_sweep_rsp.decodeDelimited = function decodeDelimited(reader) {
  6914. if (!(reader instanceof $Reader))
  6915. reader = new $Reader(reader);
  6916. return this.decode(reader, reader.uint32());
  6917. };
  6918. /**
  6919. * Verifies an adventure_sweep_rsp message.
  6920. * @function verify
  6921. * @memberof game.adventure_sweep_rsp
  6922. * @static
  6923. * @param {Object.<string,*>} message Plain object to verify
  6924. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  6925. */
  6926. adventure_sweep_rsp.verify = function verify(message) {
  6927. if (typeof message !== "object" || message === null)
  6928. return "object expected";
  6929. if (message.errno != null && message.hasOwnProperty("errno"))
  6930. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  6931. return "errno: integer|Long expected";
  6932. return null;
  6933. };
  6934. /**
  6935. * Creates an adventure_sweep_rsp message from a plain object. Also converts values to their respective internal types.
  6936. * @function fromObject
  6937. * @memberof game.adventure_sweep_rsp
  6938. * @static
  6939. * @param {Object.<string,*>} object Plain object
  6940. * @returns {game.adventure_sweep_rsp} adventure_sweep_rsp
  6941. */
  6942. adventure_sweep_rsp.fromObject = function fromObject(object) {
  6943. if (object instanceof $root.game.adventure_sweep_rsp)
  6944. return object;
  6945. let message = new $root.game.adventure_sweep_rsp();
  6946. if (object.errno != null)
  6947. if ($util.Long)
  6948. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  6949. else if (typeof object.errno === "string")
  6950. message.errno = parseInt(object.errno, 10);
  6951. else if (typeof object.errno === "number")
  6952. message.errno = object.errno;
  6953. else if (typeof object.errno === "object")
  6954. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  6955. return message;
  6956. };
  6957. /**
  6958. * Creates a plain object from an adventure_sweep_rsp message. Also converts values to other types if specified.
  6959. * @function toObject
  6960. * @memberof game.adventure_sweep_rsp
  6961. * @static
  6962. * @param {game.adventure_sweep_rsp} message adventure_sweep_rsp
  6963. * @param {$protobuf.IConversionOptions} [options] Conversion options
  6964. * @returns {Object.<string,*>} Plain object
  6965. */
  6966. adventure_sweep_rsp.toObject = function toObject(message, options) {
  6967. if (!options)
  6968. options = {};
  6969. let object = {};
  6970. if (options.defaults)
  6971. if ($util.Long) {
  6972. let long = new $util.Long(0, 0, false);
  6973. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  6974. } else
  6975. object.errno = options.longs === String ? "0" : 0;
  6976. if (message.errno != null && message.hasOwnProperty("errno"))
  6977. if (typeof message.errno === "number")
  6978. object.errno = options.longs === String ? String(message.errno) : message.errno;
  6979. else
  6980. 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;
  6981. return object;
  6982. };
  6983. /**
  6984. * Converts this adventure_sweep_rsp to JSON.
  6985. * @function toJSON
  6986. * @memberof game.adventure_sweep_rsp
  6987. * @instance
  6988. * @returns {Object.<string,*>} JSON object
  6989. */
  6990. adventure_sweep_rsp.prototype.toJSON = function toJSON() {
  6991. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  6992. };
  6993. return adventure_sweep_rsp;
  6994. })();
  6995. game.adventure_pass_award = (function() {
  6996. /**
  6997. * Properties of an adventure_pass_award.
  6998. * @memberof game
  6999. * @interface Iadventure_pass_award
  7000. * @property {number|Long|null} [id] adventure_pass_award id
  7001. * @property {number|Long|null} [type] adventure_pass_award type
  7002. */
  7003. /**
  7004. * Constructs a new adventure_pass_award.
  7005. * @memberof game
  7006. * @classdesc Represents an adventure_pass_award.
  7007. * @implements Iadventure_pass_award
  7008. * @constructor
  7009. * @param {game.Iadventure_pass_award=} [properties] Properties to set
  7010. */
  7011. function adventure_pass_award(properties) {
  7012. if (properties)
  7013. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  7014. if (properties[keys[i]] != null)
  7015. this[keys[i]] = properties[keys[i]];
  7016. }
  7017. /**
  7018. * adventure_pass_award id.
  7019. * @member {number|Long} id
  7020. * @memberof game.adventure_pass_award
  7021. * @instance
  7022. */
  7023. adventure_pass_award.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  7024. /**
  7025. * adventure_pass_award type.
  7026. * @member {number|Long} type
  7027. * @memberof game.adventure_pass_award
  7028. * @instance
  7029. */
  7030. adventure_pass_award.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  7031. /**
  7032. * Creates a new adventure_pass_award instance using the specified properties.
  7033. * @function create
  7034. * @memberof game.adventure_pass_award
  7035. * @static
  7036. * @param {game.Iadventure_pass_award=} [properties] Properties to set
  7037. * @returns {game.adventure_pass_award} adventure_pass_award instance
  7038. */
  7039. adventure_pass_award.create = function create(properties) {
  7040. return new adventure_pass_award(properties);
  7041. };
  7042. /**
  7043. * Encodes the specified adventure_pass_award message. Does not implicitly {@link game.adventure_pass_award.verify|verify} messages.
  7044. * @function encode
  7045. * @memberof game.adventure_pass_award
  7046. * @static
  7047. * @param {game.Iadventure_pass_award} message adventure_pass_award message or plain object to encode
  7048. * @param {$protobuf.Writer} [writer] Writer to encode to
  7049. * @returns {$protobuf.Writer} Writer
  7050. */
  7051. adventure_pass_award.encode = function encode(message, writer) {
  7052. if (!writer)
  7053. writer = $Writer.create();
  7054. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  7055. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  7056. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  7057. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.type);
  7058. return writer;
  7059. };
  7060. /**
  7061. * Encodes the specified adventure_pass_award message, length delimited. Does not implicitly {@link game.adventure_pass_award.verify|verify} messages.
  7062. * @function encodeDelimited
  7063. * @memberof game.adventure_pass_award
  7064. * @static
  7065. * @param {game.Iadventure_pass_award} message adventure_pass_award message or plain object to encode
  7066. * @param {$protobuf.Writer} [writer] Writer to encode to
  7067. * @returns {$protobuf.Writer} Writer
  7068. */
  7069. adventure_pass_award.encodeDelimited = function encodeDelimited(message, writer) {
  7070. return this.encode(message, writer).ldelim();
  7071. };
  7072. /**
  7073. * Decodes an adventure_pass_award message from the specified reader or buffer.
  7074. * @function decode
  7075. * @memberof game.adventure_pass_award
  7076. * @static
  7077. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  7078. * @param {number} [length] Message length if known beforehand
  7079. * @returns {game.adventure_pass_award} adventure_pass_award
  7080. * @throws {Error} If the payload is not a reader or valid buffer
  7081. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  7082. */
  7083. adventure_pass_award.decode = function decode(reader, length) {
  7084. if (!(reader instanceof $Reader))
  7085. reader = $Reader.create(reader);
  7086. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_pass_award();
  7087. while (reader.pos < end) {
  7088. let tag = reader.uint32();
  7089. switch (tag >>> 3) {
  7090. case 1:
  7091. message.id = reader.int64();
  7092. break;
  7093. case 2:
  7094. message.type = reader.int64();
  7095. break;
  7096. default:
  7097. reader.skipType(tag & 7);
  7098. break;
  7099. }
  7100. }
  7101. return message;
  7102. };
  7103. /**
  7104. * Decodes an adventure_pass_award message from the specified reader or buffer, length delimited.
  7105. * @function decodeDelimited
  7106. * @memberof game.adventure_pass_award
  7107. * @static
  7108. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  7109. * @returns {game.adventure_pass_award} adventure_pass_award
  7110. * @throws {Error} If the payload is not a reader or valid buffer
  7111. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  7112. */
  7113. adventure_pass_award.decodeDelimited = function decodeDelimited(reader) {
  7114. if (!(reader instanceof $Reader))
  7115. reader = new $Reader(reader);
  7116. return this.decode(reader, reader.uint32());
  7117. };
  7118. /**
  7119. * Verifies an adventure_pass_award message.
  7120. * @function verify
  7121. * @memberof game.adventure_pass_award
  7122. * @static
  7123. * @param {Object.<string,*>} message Plain object to verify
  7124. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  7125. */
  7126. adventure_pass_award.verify = function verify(message) {
  7127. if (typeof message !== "object" || message === null)
  7128. return "object expected";
  7129. if (message.id != null && message.hasOwnProperty("id"))
  7130. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  7131. return "id: integer|Long expected";
  7132. if (message.type != null && message.hasOwnProperty("type"))
  7133. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  7134. return "type: integer|Long expected";
  7135. return null;
  7136. };
  7137. /**
  7138. * Creates an adventure_pass_award message from a plain object. Also converts values to their respective internal types.
  7139. * @function fromObject
  7140. * @memberof game.adventure_pass_award
  7141. * @static
  7142. * @param {Object.<string,*>} object Plain object
  7143. * @returns {game.adventure_pass_award} adventure_pass_award
  7144. */
  7145. adventure_pass_award.fromObject = function fromObject(object) {
  7146. if (object instanceof $root.game.adventure_pass_award)
  7147. return object;
  7148. let message = new $root.game.adventure_pass_award();
  7149. if (object.id != null)
  7150. if ($util.Long)
  7151. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  7152. else if (typeof object.id === "string")
  7153. message.id = parseInt(object.id, 10);
  7154. else if (typeof object.id === "number")
  7155. message.id = object.id;
  7156. else if (typeof object.id === "object")
  7157. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  7158. if (object.type != null)
  7159. if ($util.Long)
  7160. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  7161. else if (typeof object.type === "string")
  7162. message.type = parseInt(object.type, 10);
  7163. else if (typeof object.type === "number")
  7164. message.type = object.type;
  7165. else if (typeof object.type === "object")
  7166. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  7167. return message;
  7168. };
  7169. /**
  7170. * Creates a plain object from an adventure_pass_award message. Also converts values to other types if specified.
  7171. * @function toObject
  7172. * @memberof game.adventure_pass_award
  7173. * @static
  7174. * @param {game.adventure_pass_award} message adventure_pass_award
  7175. * @param {$protobuf.IConversionOptions} [options] Conversion options
  7176. * @returns {Object.<string,*>} Plain object
  7177. */
  7178. adventure_pass_award.toObject = function toObject(message, options) {
  7179. if (!options)
  7180. options = {};
  7181. let object = {};
  7182. if (options.defaults) {
  7183. if ($util.Long) {
  7184. let long = new $util.Long(0, 0, false);
  7185. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  7186. } else
  7187. object.id = options.longs === String ? "0" : 0;
  7188. if ($util.Long) {
  7189. let long = new $util.Long(0, 0, false);
  7190. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  7191. } else
  7192. object.type = options.longs === String ? "0" : 0;
  7193. }
  7194. if (message.id != null && message.hasOwnProperty("id"))
  7195. if (typeof message.id === "number")
  7196. object.id = options.longs === String ? String(message.id) : message.id;
  7197. else
  7198. 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;
  7199. if (message.type != null && message.hasOwnProperty("type"))
  7200. if (typeof message.type === "number")
  7201. object.type = options.longs === String ? String(message.type) : message.type;
  7202. else
  7203. 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;
  7204. return object;
  7205. };
  7206. /**
  7207. * Converts this adventure_pass_award to JSON.
  7208. * @function toJSON
  7209. * @memberof game.adventure_pass_award
  7210. * @instance
  7211. * @returns {Object.<string,*>} JSON object
  7212. */
  7213. adventure_pass_award.prototype.toJSON = function toJSON() {
  7214. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  7215. };
  7216. return adventure_pass_award;
  7217. })();
  7218. game.adventure_pass_award_rsp = (function() {
  7219. /**
  7220. * Properties of an adventure_pass_award_rsp.
  7221. * @memberof game
  7222. * @interface Iadventure_pass_award_rsp
  7223. * @property {number|Long|null} [errno] adventure_pass_award_rsp errno
  7224. * @property {number|Long|null} [id] adventure_pass_award_rsp id
  7225. * @property {number|Long|null} [type] adventure_pass_award_rsp type
  7226. */
  7227. /**
  7228. * Constructs a new adventure_pass_award_rsp.
  7229. * @memberof game
  7230. * @classdesc Represents an adventure_pass_award_rsp.
  7231. * @implements Iadventure_pass_award_rsp
  7232. * @constructor
  7233. * @param {game.Iadventure_pass_award_rsp=} [properties] Properties to set
  7234. */
  7235. function adventure_pass_award_rsp(properties) {
  7236. if (properties)
  7237. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  7238. if (properties[keys[i]] != null)
  7239. this[keys[i]] = properties[keys[i]];
  7240. }
  7241. /**
  7242. * adventure_pass_award_rsp errno.
  7243. * @member {number|Long} errno
  7244. * @memberof game.adventure_pass_award_rsp
  7245. * @instance
  7246. */
  7247. adventure_pass_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  7248. /**
  7249. * adventure_pass_award_rsp id.
  7250. * @member {number|Long} id
  7251. * @memberof game.adventure_pass_award_rsp
  7252. * @instance
  7253. */
  7254. adventure_pass_award_rsp.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  7255. /**
  7256. * adventure_pass_award_rsp type.
  7257. * @member {number|Long} type
  7258. * @memberof game.adventure_pass_award_rsp
  7259. * @instance
  7260. */
  7261. adventure_pass_award_rsp.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  7262. /**
  7263. * Creates a new adventure_pass_award_rsp instance using the specified properties.
  7264. * @function create
  7265. * @memberof game.adventure_pass_award_rsp
  7266. * @static
  7267. * @param {game.Iadventure_pass_award_rsp=} [properties] Properties to set
  7268. * @returns {game.adventure_pass_award_rsp} adventure_pass_award_rsp instance
  7269. */
  7270. adventure_pass_award_rsp.create = function create(properties) {
  7271. return new adventure_pass_award_rsp(properties);
  7272. };
  7273. /**
  7274. * Encodes the specified adventure_pass_award_rsp message. Does not implicitly {@link game.adventure_pass_award_rsp.verify|verify} messages.
  7275. * @function encode
  7276. * @memberof game.adventure_pass_award_rsp
  7277. * @static
  7278. * @param {game.Iadventure_pass_award_rsp} message adventure_pass_award_rsp message or plain object to encode
  7279. * @param {$protobuf.Writer} [writer] Writer to encode to
  7280. * @returns {$protobuf.Writer} Writer
  7281. */
  7282. adventure_pass_award_rsp.encode = function encode(message, writer) {
  7283. if (!writer)
  7284. writer = $Writer.create();
  7285. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  7286. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  7287. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  7288. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id);
  7289. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  7290. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.type);
  7291. return writer;
  7292. };
  7293. /**
  7294. * Encodes the specified adventure_pass_award_rsp message, length delimited. Does not implicitly {@link game.adventure_pass_award_rsp.verify|verify} messages.
  7295. * @function encodeDelimited
  7296. * @memberof game.adventure_pass_award_rsp
  7297. * @static
  7298. * @param {game.Iadventure_pass_award_rsp} message adventure_pass_award_rsp message or plain object to encode
  7299. * @param {$protobuf.Writer} [writer] Writer to encode to
  7300. * @returns {$protobuf.Writer} Writer
  7301. */
  7302. adventure_pass_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  7303. return this.encode(message, writer).ldelim();
  7304. };
  7305. /**
  7306. * Decodes an adventure_pass_award_rsp message from the specified reader or buffer.
  7307. * @function decode
  7308. * @memberof game.adventure_pass_award_rsp
  7309. * @static
  7310. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  7311. * @param {number} [length] Message length if known beforehand
  7312. * @returns {game.adventure_pass_award_rsp} adventure_pass_award_rsp
  7313. * @throws {Error} If the payload is not a reader or valid buffer
  7314. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  7315. */
  7316. adventure_pass_award_rsp.decode = function decode(reader, length) {
  7317. if (!(reader instanceof $Reader))
  7318. reader = $Reader.create(reader);
  7319. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_pass_award_rsp();
  7320. while (reader.pos < end) {
  7321. let tag = reader.uint32();
  7322. switch (tag >>> 3) {
  7323. case 1:
  7324. message.errno = reader.int64();
  7325. break;
  7326. case 2:
  7327. message.id = reader.int64();
  7328. break;
  7329. case 3:
  7330. message.type = reader.int64();
  7331. break;
  7332. default:
  7333. reader.skipType(tag & 7);
  7334. break;
  7335. }
  7336. }
  7337. return message;
  7338. };
  7339. /**
  7340. * Decodes an adventure_pass_award_rsp message from the specified reader or buffer, length delimited.
  7341. * @function decodeDelimited
  7342. * @memberof game.adventure_pass_award_rsp
  7343. * @static
  7344. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  7345. * @returns {game.adventure_pass_award_rsp} adventure_pass_award_rsp
  7346. * @throws {Error} If the payload is not a reader or valid buffer
  7347. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  7348. */
  7349. adventure_pass_award_rsp.decodeDelimited = function decodeDelimited(reader) {
  7350. if (!(reader instanceof $Reader))
  7351. reader = new $Reader(reader);
  7352. return this.decode(reader, reader.uint32());
  7353. };
  7354. /**
  7355. * Verifies an adventure_pass_award_rsp message.
  7356. * @function verify
  7357. * @memberof game.adventure_pass_award_rsp
  7358. * @static
  7359. * @param {Object.<string,*>} message Plain object to verify
  7360. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  7361. */
  7362. adventure_pass_award_rsp.verify = function verify(message) {
  7363. if (typeof message !== "object" || message === null)
  7364. return "object expected";
  7365. if (message.errno != null && message.hasOwnProperty("errno"))
  7366. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  7367. return "errno: integer|Long expected";
  7368. if (message.id != null && message.hasOwnProperty("id"))
  7369. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  7370. return "id: integer|Long expected";
  7371. if (message.type != null && message.hasOwnProperty("type"))
  7372. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  7373. return "type: integer|Long expected";
  7374. return null;
  7375. };
  7376. /**
  7377. * Creates an adventure_pass_award_rsp message from a plain object. Also converts values to their respective internal types.
  7378. * @function fromObject
  7379. * @memberof game.adventure_pass_award_rsp
  7380. * @static
  7381. * @param {Object.<string,*>} object Plain object
  7382. * @returns {game.adventure_pass_award_rsp} adventure_pass_award_rsp
  7383. */
  7384. adventure_pass_award_rsp.fromObject = function fromObject(object) {
  7385. if (object instanceof $root.game.adventure_pass_award_rsp)
  7386. return object;
  7387. let message = new $root.game.adventure_pass_award_rsp();
  7388. if (object.errno != null)
  7389. if ($util.Long)
  7390. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  7391. else if (typeof object.errno === "string")
  7392. message.errno = parseInt(object.errno, 10);
  7393. else if (typeof object.errno === "number")
  7394. message.errno = object.errno;
  7395. else if (typeof object.errno === "object")
  7396. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  7397. if (object.id != null)
  7398. if ($util.Long)
  7399. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  7400. else if (typeof object.id === "string")
  7401. message.id = parseInt(object.id, 10);
  7402. else if (typeof object.id === "number")
  7403. message.id = object.id;
  7404. else if (typeof object.id === "object")
  7405. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  7406. if (object.type != null)
  7407. if ($util.Long)
  7408. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  7409. else if (typeof object.type === "string")
  7410. message.type = parseInt(object.type, 10);
  7411. else if (typeof object.type === "number")
  7412. message.type = object.type;
  7413. else if (typeof object.type === "object")
  7414. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  7415. return message;
  7416. };
  7417. /**
  7418. * Creates a plain object from an adventure_pass_award_rsp message. Also converts values to other types if specified.
  7419. * @function toObject
  7420. * @memberof game.adventure_pass_award_rsp
  7421. * @static
  7422. * @param {game.adventure_pass_award_rsp} message adventure_pass_award_rsp
  7423. * @param {$protobuf.IConversionOptions} [options] Conversion options
  7424. * @returns {Object.<string,*>} Plain object
  7425. */
  7426. adventure_pass_award_rsp.toObject = function toObject(message, options) {
  7427. if (!options)
  7428. options = {};
  7429. let object = {};
  7430. if (options.defaults) {
  7431. if ($util.Long) {
  7432. let long = new $util.Long(0, 0, false);
  7433. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  7434. } else
  7435. object.errno = options.longs === String ? "0" : 0;
  7436. if ($util.Long) {
  7437. let long = new $util.Long(0, 0, false);
  7438. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  7439. } else
  7440. object.id = options.longs === String ? "0" : 0;
  7441. if ($util.Long) {
  7442. let long = new $util.Long(0, 0, false);
  7443. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  7444. } else
  7445. object.type = options.longs === String ? "0" : 0;
  7446. }
  7447. if (message.errno != null && message.hasOwnProperty("errno"))
  7448. if (typeof message.errno === "number")
  7449. object.errno = options.longs === String ? String(message.errno) : message.errno;
  7450. else
  7451. 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;
  7452. if (message.id != null && message.hasOwnProperty("id"))
  7453. if (typeof message.id === "number")
  7454. object.id = options.longs === String ? String(message.id) : message.id;
  7455. else
  7456. 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;
  7457. if (message.type != null && message.hasOwnProperty("type"))
  7458. if (typeof message.type === "number")
  7459. object.type = options.longs === String ? String(message.type) : message.type;
  7460. else
  7461. 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;
  7462. return object;
  7463. };
  7464. /**
  7465. * Converts this adventure_pass_award_rsp to JSON.
  7466. * @function toJSON
  7467. * @memberof game.adventure_pass_award_rsp
  7468. * @instance
  7469. * @returns {Object.<string,*>} JSON object
  7470. */
  7471. adventure_pass_award_rsp.prototype.toJSON = function toJSON() {
  7472. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  7473. };
  7474. return adventure_pass_award_rsp;
  7475. })();
  7476. game.adventure_ad_award = (function() {
  7477. /**
  7478. * Properties of an adventure_ad_award.
  7479. * @memberof game
  7480. * @interface Iadventure_ad_award
  7481. */
  7482. /**
  7483. * Constructs a new adventure_ad_award.
  7484. * @memberof game
  7485. * @classdesc Represents an adventure_ad_award.
  7486. * @implements Iadventure_ad_award
  7487. * @constructor
  7488. * @param {game.Iadventure_ad_award=} [properties] Properties to set
  7489. */
  7490. function adventure_ad_award(properties) {
  7491. if (properties)
  7492. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  7493. if (properties[keys[i]] != null)
  7494. this[keys[i]] = properties[keys[i]];
  7495. }
  7496. /**
  7497. * Creates a new adventure_ad_award instance using the specified properties.
  7498. * @function create
  7499. * @memberof game.adventure_ad_award
  7500. * @static
  7501. * @param {game.Iadventure_ad_award=} [properties] Properties to set
  7502. * @returns {game.adventure_ad_award} adventure_ad_award instance
  7503. */
  7504. adventure_ad_award.create = function create(properties) {
  7505. return new adventure_ad_award(properties);
  7506. };
  7507. /**
  7508. * Encodes the specified adventure_ad_award message. Does not implicitly {@link game.adventure_ad_award.verify|verify} messages.
  7509. * @function encode
  7510. * @memberof game.adventure_ad_award
  7511. * @static
  7512. * @param {game.Iadventure_ad_award} message adventure_ad_award message or plain object to encode
  7513. * @param {$protobuf.Writer} [writer] Writer to encode to
  7514. * @returns {$protobuf.Writer} Writer
  7515. */
  7516. adventure_ad_award.encode = function encode(message, writer) {
  7517. if (!writer)
  7518. writer = $Writer.create();
  7519. return writer;
  7520. };
  7521. /**
  7522. * Encodes the specified adventure_ad_award message, length delimited. Does not implicitly {@link game.adventure_ad_award.verify|verify} messages.
  7523. * @function encodeDelimited
  7524. * @memberof game.adventure_ad_award
  7525. * @static
  7526. * @param {game.Iadventure_ad_award} message adventure_ad_award message or plain object to encode
  7527. * @param {$protobuf.Writer} [writer] Writer to encode to
  7528. * @returns {$protobuf.Writer} Writer
  7529. */
  7530. adventure_ad_award.encodeDelimited = function encodeDelimited(message, writer) {
  7531. return this.encode(message, writer).ldelim();
  7532. };
  7533. /**
  7534. * Decodes an adventure_ad_award message from the specified reader or buffer.
  7535. * @function decode
  7536. * @memberof game.adventure_ad_award
  7537. * @static
  7538. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  7539. * @param {number} [length] Message length if known beforehand
  7540. * @returns {game.adventure_ad_award} adventure_ad_award
  7541. * @throws {Error} If the payload is not a reader or valid buffer
  7542. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  7543. */
  7544. adventure_ad_award.decode = function decode(reader, length) {
  7545. if (!(reader instanceof $Reader))
  7546. reader = $Reader.create(reader);
  7547. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_ad_award();
  7548. while (reader.pos < end) {
  7549. let tag = reader.uint32();
  7550. switch (tag >>> 3) {
  7551. default:
  7552. reader.skipType(tag & 7);
  7553. break;
  7554. }
  7555. }
  7556. return message;
  7557. };
  7558. /**
  7559. * Decodes an adventure_ad_award message from the specified reader or buffer, length delimited.
  7560. * @function decodeDelimited
  7561. * @memberof game.adventure_ad_award
  7562. * @static
  7563. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  7564. * @returns {game.adventure_ad_award} adventure_ad_award
  7565. * @throws {Error} If the payload is not a reader or valid buffer
  7566. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  7567. */
  7568. adventure_ad_award.decodeDelimited = function decodeDelimited(reader) {
  7569. if (!(reader instanceof $Reader))
  7570. reader = new $Reader(reader);
  7571. return this.decode(reader, reader.uint32());
  7572. };
  7573. /**
  7574. * Verifies an adventure_ad_award message.
  7575. * @function verify
  7576. * @memberof game.adventure_ad_award
  7577. * @static
  7578. * @param {Object.<string,*>} message Plain object to verify
  7579. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  7580. */
  7581. adventure_ad_award.verify = function verify(message) {
  7582. if (typeof message !== "object" || message === null)
  7583. return "object expected";
  7584. return null;
  7585. };
  7586. /**
  7587. * Creates an adventure_ad_award message from a plain object. Also converts values to their respective internal types.
  7588. * @function fromObject
  7589. * @memberof game.adventure_ad_award
  7590. * @static
  7591. * @param {Object.<string,*>} object Plain object
  7592. * @returns {game.adventure_ad_award} adventure_ad_award
  7593. */
  7594. adventure_ad_award.fromObject = function fromObject(object) {
  7595. if (object instanceof $root.game.adventure_ad_award)
  7596. return object;
  7597. return new $root.game.adventure_ad_award();
  7598. };
  7599. /**
  7600. * Creates a plain object from an adventure_ad_award message. Also converts values to other types if specified.
  7601. * @function toObject
  7602. * @memberof game.adventure_ad_award
  7603. * @static
  7604. * @param {game.adventure_ad_award} message adventure_ad_award
  7605. * @param {$protobuf.IConversionOptions} [options] Conversion options
  7606. * @returns {Object.<string,*>} Plain object
  7607. */
  7608. adventure_ad_award.toObject = function toObject() {
  7609. return {};
  7610. };
  7611. /**
  7612. * Converts this adventure_ad_award to JSON.
  7613. * @function toJSON
  7614. * @memberof game.adventure_ad_award
  7615. * @instance
  7616. * @returns {Object.<string,*>} JSON object
  7617. */
  7618. adventure_ad_award.prototype.toJSON = function toJSON() {
  7619. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  7620. };
  7621. return adventure_ad_award;
  7622. })();
  7623. game.adventure_ad_award_rsp = (function() {
  7624. /**
  7625. * Properties of an adventure_ad_award_rsp.
  7626. * @memberof game
  7627. * @interface Iadventure_ad_award_rsp
  7628. * @property {number|Long|null} [errno] adventure_ad_award_rsp errno
  7629. */
  7630. /**
  7631. * Constructs a new adventure_ad_award_rsp.
  7632. * @memberof game
  7633. * @classdesc Represents an adventure_ad_award_rsp.
  7634. * @implements Iadventure_ad_award_rsp
  7635. * @constructor
  7636. * @param {game.Iadventure_ad_award_rsp=} [properties] Properties to set
  7637. */
  7638. function adventure_ad_award_rsp(properties) {
  7639. if (properties)
  7640. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  7641. if (properties[keys[i]] != null)
  7642. this[keys[i]] = properties[keys[i]];
  7643. }
  7644. /**
  7645. * adventure_ad_award_rsp errno.
  7646. * @member {number|Long} errno
  7647. * @memberof game.adventure_ad_award_rsp
  7648. * @instance
  7649. */
  7650. adventure_ad_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  7651. /**
  7652. * Creates a new adventure_ad_award_rsp instance using the specified properties.
  7653. * @function create
  7654. * @memberof game.adventure_ad_award_rsp
  7655. * @static
  7656. * @param {game.Iadventure_ad_award_rsp=} [properties] Properties to set
  7657. * @returns {game.adventure_ad_award_rsp} adventure_ad_award_rsp instance
  7658. */
  7659. adventure_ad_award_rsp.create = function create(properties) {
  7660. return new adventure_ad_award_rsp(properties);
  7661. };
  7662. /**
  7663. * Encodes the specified adventure_ad_award_rsp message. Does not implicitly {@link game.adventure_ad_award_rsp.verify|verify} messages.
  7664. * @function encode
  7665. * @memberof game.adventure_ad_award_rsp
  7666. * @static
  7667. * @param {game.Iadventure_ad_award_rsp} message adventure_ad_award_rsp message or plain object to encode
  7668. * @param {$protobuf.Writer} [writer] Writer to encode to
  7669. * @returns {$protobuf.Writer} Writer
  7670. */
  7671. adventure_ad_award_rsp.encode = function encode(message, writer) {
  7672. if (!writer)
  7673. writer = $Writer.create();
  7674. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  7675. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  7676. return writer;
  7677. };
  7678. /**
  7679. * Encodes the specified adventure_ad_award_rsp message, length delimited. Does not implicitly {@link game.adventure_ad_award_rsp.verify|verify} messages.
  7680. * @function encodeDelimited
  7681. * @memberof game.adventure_ad_award_rsp
  7682. * @static
  7683. * @param {game.Iadventure_ad_award_rsp} message adventure_ad_award_rsp message or plain object to encode
  7684. * @param {$protobuf.Writer} [writer] Writer to encode to
  7685. * @returns {$protobuf.Writer} Writer
  7686. */
  7687. adventure_ad_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  7688. return this.encode(message, writer).ldelim();
  7689. };
  7690. /**
  7691. * Decodes an adventure_ad_award_rsp message from the specified reader or buffer.
  7692. * @function decode
  7693. * @memberof game.adventure_ad_award_rsp
  7694. * @static
  7695. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  7696. * @param {number} [length] Message length if known beforehand
  7697. * @returns {game.adventure_ad_award_rsp} adventure_ad_award_rsp
  7698. * @throws {Error} If the payload is not a reader or valid buffer
  7699. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  7700. */
  7701. adventure_ad_award_rsp.decode = function decode(reader, length) {
  7702. if (!(reader instanceof $Reader))
  7703. reader = $Reader.create(reader);
  7704. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_ad_award_rsp();
  7705. while (reader.pos < end) {
  7706. let tag = reader.uint32();
  7707. switch (tag >>> 3) {
  7708. case 1:
  7709. message.errno = reader.int64();
  7710. break;
  7711. default:
  7712. reader.skipType(tag & 7);
  7713. break;
  7714. }
  7715. }
  7716. return message;
  7717. };
  7718. /**
  7719. * Decodes an adventure_ad_award_rsp message from the specified reader or buffer, length delimited.
  7720. * @function decodeDelimited
  7721. * @memberof game.adventure_ad_award_rsp
  7722. * @static
  7723. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  7724. * @returns {game.adventure_ad_award_rsp} adventure_ad_award_rsp
  7725. * @throws {Error} If the payload is not a reader or valid buffer
  7726. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  7727. */
  7728. adventure_ad_award_rsp.decodeDelimited = function decodeDelimited(reader) {
  7729. if (!(reader instanceof $Reader))
  7730. reader = new $Reader(reader);
  7731. return this.decode(reader, reader.uint32());
  7732. };
  7733. /**
  7734. * Verifies an adventure_ad_award_rsp message.
  7735. * @function verify
  7736. * @memberof game.adventure_ad_award_rsp
  7737. * @static
  7738. * @param {Object.<string,*>} message Plain object to verify
  7739. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  7740. */
  7741. adventure_ad_award_rsp.verify = function verify(message) {
  7742. if (typeof message !== "object" || message === null)
  7743. return "object expected";
  7744. if (message.errno != null && message.hasOwnProperty("errno"))
  7745. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  7746. return "errno: integer|Long expected";
  7747. return null;
  7748. };
  7749. /**
  7750. * Creates an adventure_ad_award_rsp message from a plain object. Also converts values to their respective internal types.
  7751. * @function fromObject
  7752. * @memberof game.adventure_ad_award_rsp
  7753. * @static
  7754. * @param {Object.<string,*>} object Plain object
  7755. * @returns {game.adventure_ad_award_rsp} adventure_ad_award_rsp
  7756. */
  7757. adventure_ad_award_rsp.fromObject = function fromObject(object) {
  7758. if (object instanceof $root.game.adventure_ad_award_rsp)
  7759. return object;
  7760. let message = new $root.game.adventure_ad_award_rsp();
  7761. if (object.errno != null)
  7762. if ($util.Long)
  7763. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  7764. else if (typeof object.errno === "string")
  7765. message.errno = parseInt(object.errno, 10);
  7766. else if (typeof object.errno === "number")
  7767. message.errno = object.errno;
  7768. else if (typeof object.errno === "object")
  7769. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  7770. return message;
  7771. };
  7772. /**
  7773. * Creates a plain object from an adventure_ad_award_rsp message. Also converts values to other types if specified.
  7774. * @function toObject
  7775. * @memberof game.adventure_ad_award_rsp
  7776. * @static
  7777. * @param {game.adventure_ad_award_rsp} message adventure_ad_award_rsp
  7778. * @param {$protobuf.IConversionOptions} [options] Conversion options
  7779. * @returns {Object.<string,*>} Plain object
  7780. */
  7781. adventure_ad_award_rsp.toObject = function toObject(message, options) {
  7782. if (!options)
  7783. options = {};
  7784. let object = {};
  7785. if (options.defaults)
  7786. if ($util.Long) {
  7787. let long = new $util.Long(0, 0, false);
  7788. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  7789. } else
  7790. object.errno = options.longs === String ? "0" : 0;
  7791. if (message.errno != null && message.hasOwnProperty("errno"))
  7792. if (typeof message.errno === "number")
  7793. object.errno = options.longs === String ? String(message.errno) : message.errno;
  7794. else
  7795. 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;
  7796. return object;
  7797. };
  7798. /**
  7799. * Converts this adventure_ad_award_rsp to JSON.
  7800. * @function toJSON
  7801. * @memberof game.adventure_ad_award_rsp
  7802. * @instance
  7803. * @returns {Object.<string,*>} JSON object
  7804. */
  7805. adventure_ad_award_rsp.prototype.toJSON = function toJSON() {
  7806. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  7807. };
  7808. return adventure_ad_award_rsp;
  7809. })();
  7810. game.adventure_trial = (function() {
  7811. /**
  7812. * Properties of an adventure_trial.
  7813. * @memberof game
  7814. * @interface Iadventure_trial
  7815. */
  7816. /**
  7817. * Constructs a new adventure_trial.
  7818. * @memberof game
  7819. * @classdesc Represents an adventure_trial.
  7820. * @implements Iadventure_trial
  7821. * @constructor
  7822. * @param {game.Iadventure_trial=} [properties] Properties to set
  7823. */
  7824. function adventure_trial(properties) {
  7825. if (properties)
  7826. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  7827. if (properties[keys[i]] != null)
  7828. this[keys[i]] = properties[keys[i]];
  7829. }
  7830. /**
  7831. * Creates a new adventure_trial instance using the specified properties.
  7832. * @function create
  7833. * @memberof game.adventure_trial
  7834. * @static
  7835. * @param {game.Iadventure_trial=} [properties] Properties to set
  7836. * @returns {game.adventure_trial} adventure_trial instance
  7837. */
  7838. adventure_trial.create = function create(properties) {
  7839. return new adventure_trial(properties);
  7840. };
  7841. /**
  7842. * Encodes the specified adventure_trial message. Does not implicitly {@link game.adventure_trial.verify|verify} messages.
  7843. * @function encode
  7844. * @memberof game.adventure_trial
  7845. * @static
  7846. * @param {game.Iadventure_trial} message adventure_trial message or plain object to encode
  7847. * @param {$protobuf.Writer} [writer] Writer to encode to
  7848. * @returns {$protobuf.Writer} Writer
  7849. */
  7850. adventure_trial.encode = function encode(message, writer) {
  7851. if (!writer)
  7852. writer = $Writer.create();
  7853. return writer;
  7854. };
  7855. /**
  7856. * Encodes the specified adventure_trial message, length delimited. Does not implicitly {@link game.adventure_trial.verify|verify} messages.
  7857. * @function encodeDelimited
  7858. * @memberof game.adventure_trial
  7859. * @static
  7860. * @param {game.Iadventure_trial} message adventure_trial message or plain object to encode
  7861. * @param {$protobuf.Writer} [writer] Writer to encode to
  7862. * @returns {$protobuf.Writer} Writer
  7863. */
  7864. adventure_trial.encodeDelimited = function encodeDelimited(message, writer) {
  7865. return this.encode(message, writer).ldelim();
  7866. };
  7867. /**
  7868. * Decodes an adventure_trial message from the specified reader or buffer.
  7869. * @function decode
  7870. * @memberof game.adventure_trial
  7871. * @static
  7872. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  7873. * @param {number} [length] Message length if known beforehand
  7874. * @returns {game.adventure_trial} adventure_trial
  7875. * @throws {Error} If the payload is not a reader or valid buffer
  7876. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  7877. */
  7878. adventure_trial.decode = function decode(reader, length) {
  7879. if (!(reader instanceof $Reader))
  7880. reader = $Reader.create(reader);
  7881. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_trial();
  7882. while (reader.pos < end) {
  7883. let tag = reader.uint32();
  7884. switch (tag >>> 3) {
  7885. default:
  7886. reader.skipType(tag & 7);
  7887. break;
  7888. }
  7889. }
  7890. return message;
  7891. };
  7892. /**
  7893. * Decodes an adventure_trial message from the specified reader or buffer, length delimited.
  7894. * @function decodeDelimited
  7895. * @memberof game.adventure_trial
  7896. * @static
  7897. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  7898. * @returns {game.adventure_trial} adventure_trial
  7899. * @throws {Error} If the payload is not a reader or valid buffer
  7900. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  7901. */
  7902. adventure_trial.decodeDelimited = function decodeDelimited(reader) {
  7903. if (!(reader instanceof $Reader))
  7904. reader = new $Reader(reader);
  7905. return this.decode(reader, reader.uint32());
  7906. };
  7907. /**
  7908. * Verifies an adventure_trial message.
  7909. * @function verify
  7910. * @memberof game.adventure_trial
  7911. * @static
  7912. * @param {Object.<string,*>} message Plain object to verify
  7913. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  7914. */
  7915. adventure_trial.verify = function verify(message) {
  7916. if (typeof message !== "object" || message === null)
  7917. return "object expected";
  7918. return null;
  7919. };
  7920. /**
  7921. * Creates an adventure_trial message from a plain object. Also converts values to their respective internal types.
  7922. * @function fromObject
  7923. * @memberof game.adventure_trial
  7924. * @static
  7925. * @param {Object.<string,*>} object Plain object
  7926. * @returns {game.adventure_trial} adventure_trial
  7927. */
  7928. adventure_trial.fromObject = function fromObject(object) {
  7929. if (object instanceof $root.game.adventure_trial)
  7930. return object;
  7931. return new $root.game.adventure_trial();
  7932. };
  7933. /**
  7934. * Creates a plain object from an adventure_trial message. Also converts values to other types if specified.
  7935. * @function toObject
  7936. * @memberof game.adventure_trial
  7937. * @static
  7938. * @param {game.adventure_trial} message adventure_trial
  7939. * @param {$protobuf.IConversionOptions} [options] Conversion options
  7940. * @returns {Object.<string,*>} Plain object
  7941. */
  7942. adventure_trial.toObject = function toObject() {
  7943. return {};
  7944. };
  7945. /**
  7946. * Converts this adventure_trial to JSON.
  7947. * @function toJSON
  7948. * @memberof game.adventure_trial
  7949. * @instance
  7950. * @returns {Object.<string,*>} JSON object
  7951. */
  7952. adventure_trial.prototype.toJSON = function toJSON() {
  7953. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  7954. };
  7955. return adventure_trial;
  7956. })();
  7957. game.adventure_trial_rsp = (function() {
  7958. /**
  7959. * Properties of an adventure_trial_rsp.
  7960. * @memberof game
  7961. * @interface Iadventure_trial_rsp
  7962. * @property {number|Long|null} [errno] adventure_trial_rsp errno
  7963. */
  7964. /**
  7965. * Constructs a new adventure_trial_rsp.
  7966. * @memberof game
  7967. * @classdesc Represents an adventure_trial_rsp.
  7968. * @implements Iadventure_trial_rsp
  7969. * @constructor
  7970. * @param {game.Iadventure_trial_rsp=} [properties] Properties to set
  7971. */
  7972. function adventure_trial_rsp(properties) {
  7973. if (properties)
  7974. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  7975. if (properties[keys[i]] != null)
  7976. this[keys[i]] = properties[keys[i]];
  7977. }
  7978. /**
  7979. * adventure_trial_rsp errno.
  7980. * @member {number|Long} errno
  7981. * @memberof game.adventure_trial_rsp
  7982. * @instance
  7983. */
  7984. adventure_trial_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  7985. /**
  7986. * Creates a new adventure_trial_rsp instance using the specified properties.
  7987. * @function create
  7988. * @memberof game.adventure_trial_rsp
  7989. * @static
  7990. * @param {game.Iadventure_trial_rsp=} [properties] Properties to set
  7991. * @returns {game.adventure_trial_rsp} adventure_trial_rsp instance
  7992. */
  7993. adventure_trial_rsp.create = function create(properties) {
  7994. return new adventure_trial_rsp(properties);
  7995. };
  7996. /**
  7997. * Encodes the specified adventure_trial_rsp message. Does not implicitly {@link game.adventure_trial_rsp.verify|verify} messages.
  7998. * @function encode
  7999. * @memberof game.adventure_trial_rsp
  8000. * @static
  8001. * @param {game.Iadventure_trial_rsp} message adventure_trial_rsp message or plain object to encode
  8002. * @param {$protobuf.Writer} [writer] Writer to encode to
  8003. * @returns {$protobuf.Writer} Writer
  8004. */
  8005. adventure_trial_rsp.encode = function encode(message, writer) {
  8006. if (!writer)
  8007. writer = $Writer.create();
  8008. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  8009. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  8010. return writer;
  8011. };
  8012. /**
  8013. * Encodes the specified adventure_trial_rsp message, length delimited. Does not implicitly {@link game.adventure_trial_rsp.verify|verify} messages.
  8014. * @function encodeDelimited
  8015. * @memberof game.adventure_trial_rsp
  8016. * @static
  8017. * @param {game.Iadventure_trial_rsp} message adventure_trial_rsp message or plain object to encode
  8018. * @param {$protobuf.Writer} [writer] Writer to encode to
  8019. * @returns {$protobuf.Writer} Writer
  8020. */
  8021. adventure_trial_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  8022. return this.encode(message, writer).ldelim();
  8023. };
  8024. /**
  8025. * Decodes an adventure_trial_rsp message from the specified reader or buffer.
  8026. * @function decode
  8027. * @memberof game.adventure_trial_rsp
  8028. * @static
  8029. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  8030. * @param {number} [length] Message length if known beforehand
  8031. * @returns {game.adventure_trial_rsp} adventure_trial_rsp
  8032. * @throws {Error} If the payload is not a reader or valid buffer
  8033. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  8034. */
  8035. adventure_trial_rsp.decode = function decode(reader, length) {
  8036. if (!(reader instanceof $Reader))
  8037. reader = $Reader.create(reader);
  8038. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_trial_rsp();
  8039. while (reader.pos < end) {
  8040. let tag = reader.uint32();
  8041. switch (tag >>> 3) {
  8042. case 1:
  8043. message.errno = reader.int64();
  8044. break;
  8045. default:
  8046. reader.skipType(tag & 7);
  8047. break;
  8048. }
  8049. }
  8050. return message;
  8051. };
  8052. /**
  8053. * Decodes an adventure_trial_rsp message from the specified reader or buffer, length delimited.
  8054. * @function decodeDelimited
  8055. * @memberof game.adventure_trial_rsp
  8056. * @static
  8057. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  8058. * @returns {game.adventure_trial_rsp} adventure_trial_rsp
  8059. * @throws {Error} If the payload is not a reader or valid buffer
  8060. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  8061. */
  8062. adventure_trial_rsp.decodeDelimited = function decodeDelimited(reader) {
  8063. if (!(reader instanceof $Reader))
  8064. reader = new $Reader(reader);
  8065. return this.decode(reader, reader.uint32());
  8066. };
  8067. /**
  8068. * Verifies an adventure_trial_rsp message.
  8069. * @function verify
  8070. * @memberof game.adventure_trial_rsp
  8071. * @static
  8072. * @param {Object.<string,*>} message Plain object to verify
  8073. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  8074. */
  8075. adventure_trial_rsp.verify = function verify(message) {
  8076. if (typeof message !== "object" || message === null)
  8077. return "object expected";
  8078. if (message.errno != null && message.hasOwnProperty("errno"))
  8079. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  8080. return "errno: integer|Long expected";
  8081. return null;
  8082. };
  8083. /**
  8084. * Creates an adventure_trial_rsp message from a plain object. Also converts values to their respective internal types.
  8085. * @function fromObject
  8086. * @memberof game.adventure_trial_rsp
  8087. * @static
  8088. * @param {Object.<string,*>} object Plain object
  8089. * @returns {game.adventure_trial_rsp} adventure_trial_rsp
  8090. */
  8091. adventure_trial_rsp.fromObject = function fromObject(object) {
  8092. if (object instanceof $root.game.adventure_trial_rsp)
  8093. return object;
  8094. let message = new $root.game.adventure_trial_rsp();
  8095. if (object.errno != null)
  8096. if ($util.Long)
  8097. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  8098. else if (typeof object.errno === "string")
  8099. message.errno = parseInt(object.errno, 10);
  8100. else if (typeof object.errno === "number")
  8101. message.errno = object.errno;
  8102. else if (typeof object.errno === "object")
  8103. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  8104. return message;
  8105. };
  8106. /**
  8107. * Creates a plain object from an adventure_trial_rsp message. Also converts values to other types if specified.
  8108. * @function toObject
  8109. * @memberof game.adventure_trial_rsp
  8110. * @static
  8111. * @param {game.adventure_trial_rsp} message adventure_trial_rsp
  8112. * @param {$protobuf.IConversionOptions} [options] Conversion options
  8113. * @returns {Object.<string,*>} Plain object
  8114. */
  8115. adventure_trial_rsp.toObject = function toObject(message, options) {
  8116. if (!options)
  8117. options = {};
  8118. let object = {};
  8119. if (options.defaults)
  8120. if ($util.Long) {
  8121. let long = new $util.Long(0, 0, false);
  8122. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  8123. } else
  8124. object.errno = options.longs === String ? "0" : 0;
  8125. if (message.errno != null && message.hasOwnProperty("errno"))
  8126. if (typeof message.errno === "number")
  8127. object.errno = options.longs === String ? String(message.errno) : message.errno;
  8128. else
  8129. 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;
  8130. return object;
  8131. };
  8132. /**
  8133. * Converts this adventure_trial_rsp to JSON.
  8134. * @function toJSON
  8135. * @memberof game.adventure_trial_rsp
  8136. * @instance
  8137. * @returns {Object.<string,*>} JSON object
  8138. */
  8139. adventure_trial_rsp.prototype.toJSON = function toJSON() {
  8140. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  8141. };
  8142. return adventure_trial_rsp;
  8143. })();
  8144. game.get_mail = (function() {
  8145. /**
  8146. * Properties of a get_mail.
  8147. * @memberof game
  8148. * @interface Iget_mail
  8149. */
  8150. /**
  8151. * Constructs a new get_mail.
  8152. * @memberof game
  8153. * @classdesc Represents a get_mail.
  8154. * @implements Iget_mail
  8155. * @constructor
  8156. * @param {game.Iget_mail=} [properties] Properties to set
  8157. */
  8158. function get_mail(properties) {
  8159. if (properties)
  8160. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  8161. if (properties[keys[i]] != null)
  8162. this[keys[i]] = properties[keys[i]];
  8163. }
  8164. /**
  8165. * Creates a new get_mail instance using the specified properties.
  8166. * @function create
  8167. * @memberof game.get_mail
  8168. * @static
  8169. * @param {game.Iget_mail=} [properties] Properties to set
  8170. * @returns {game.get_mail} get_mail instance
  8171. */
  8172. get_mail.create = function create(properties) {
  8173. return new get_mail(properties);
  8174. };
  8175. /**
  8176. * Encodes the specified get_mail message. Does not implicitly {@link game.get_mail.verify|verify} messages.
  8177. * @function encode
  8178. * @memberof game.get_mail
  8179. * @static
  8180. * @param {game.Iget_mail} message get_mail message or plain object to encode
  8181. * @param {$protobuf.Writer} [writer] Writer to encode to
  8182. * @returns {$protobuf.Writer} Writer
  8183. */
  8184. get_mail.encode = function encode(message, writer) {
  8185. if (!writer)
  8186. writer = $Writer.create();
  8187. return writer;
  8188. };
  8189. /**
  8190. * Encodes the specified get_mail message, length delimited. Does not implicitly {@link game.get_mail.verify|verify} messages.
  8191. * @function encodeDelimited
  8192. * @memberof game.get_mail
  8193. * @static
  8194. * @param {game.Iget_mail} message get_mail message or plain object to encode
  8195. * @param {$protobuf.Writer} [writer] Writer to encode to
  8196. * @returns {$protobuf.Writer} Writer
  8197. */
  8198. get_mail.encodeDelimited = function encodeDelimited(message, writer) {
  8199. return this.encode(message, writer).ldelim();
  8200. };
  8201. /**
  8202. * Decodes a get_mail message from the specified reader or buffer.
  8203. * @function decode
  8204. * @memberof game.get_mail
  8205. * @static
  8206. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  8207. * @param {number} [length] Message length if known beforehand
  8208. * @returns {game.get_mail} get_mail
  8209. * @throws {Error} If the payload is not a reader or valid buffer
  8210. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  8211. */
  8212. get_mail.decode = function decode(reader, length) {
  8213. if (!(reader instanceof $Reader))
  8214. reader = $Reader.create(reader);
  8215. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.get_mail();
  8216. while (reader.pos < end) {
  8217. let tag = reader.uint32();
  8218. switch (tag >>> 3) {
  8219. default:
  8220. reader.skipType(tag & 7);
  8221. break;
  8222. }
  8223. }
  8224. return message;
  8225. };
  8226. /**
  8227. * Decodes a get_mail message from the specified reader or buffer, length delimited.
  8228. * @function decodeDelimited
  8229. * @memberof game.get_mail
  8230. * @static
  8231. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  8232. * @returns {game.get_mail} get_mail
  8233. * @throws {Error} If the payload is not a reader or valid buffer
  8234. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  8235. */
  8236. get_mail.decodeDelimited = function decodeDelimited(reader) {
  8237. if (!(reader instanceof $Reader))
  8238. reader = new $Reader(reader);
  8239. return this.decode(reader, reader.uint32());
  8240. };
  8241. /**
  8242. * Verifies a get_mail message.
  8243. * @function verify
  8244. * @memberof game.get_mail
  8245. * @static
  8246. * @param {Object.<string,*>} message Plain object to verify
  8247. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  8248. */
  8249. get_mail.verify = function verify(message) {
  8250. if (typeof message !== "object" || message === null)
  8251. return "object expected";
  8252. return null;
  8253. };
  8254. /**
  8255. * Creates a get_mail message from a plain object. Also converts values to their respective internal types.
  8256. * @function fromObject
  8257. * @memberof game.get_mail
  8258. * @static
  8259. * @param {Object.<string,*>} object Plain object
  8260. * @returns {game.get_mail} get_mail
  8261. */
  8262. get_mail.fromObject = function fromObject(object) {
  8263. if (object instanceof $root.game.get_mail)
  8264. return object;
  8265. return new $root.game.get_mail();
  8266. };
  8267. /**
  8268. * Creates a plain object from a get_mail message. Also converts values to other types if specified.
  8269. * @function toObject
  8270. * @memberof game.get_mail
  8271. * @static
  8272. * @param {game.get_mail} message get_mail
  8273. * @param {$protobuf.IConversionOptions} [options] Conversion options
  8274. * @returns {Object.<string,*>} Plain object
  8275. */
  8276. get_mail.toObject = function toObject() {
  8277. return {};
  8278. };
  8279. /**
  8280. * Converts this get_mail to JSON.
  8281. * @function toJSON
  8282. * @memberof game.get_mail
  8283. * @instance
  8284. * @returns {Object.<string,*>} JSON object
  8285. */
  8286. get_mail.prototype.toJSON = function toJSON() {
  8287. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  8288. };
  8289. return get_mail;
  8290. })();
  8291. game.get_mail_rsp = (function() {
  8292. /**
  8293. * Properties of a get_mail_rsp.
  8294. * @memberof game
  8295. * @interface Iget_mail_rsp
  8296. * @property {number|Long|null} [errno] get_mail_rsp errno
  8297. * @property {Array.<game.Imail>|null} [list] get_mail_rsp list
  8298. */
  8299. /**
  8300. * Constructs a new get_mail_rsp.
  8301. * @memberof game
  8302. * @classdesc Represents a get_mail_rsp.
  8303. * @implements Iget_mail_rsp
  8304. * @constructor
  8305. * @param {game.Iget_mail_rsp=} [properties] Properties to set
  8306. */
  8307. function get_mail_rsp(properties) {
  8308. this.list = [];
  8309. if (properties)
  8310. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  8311. if (properties[keys[i]] != null)
  8312. this[keys[i]] = properties[keys[i]];
  8313. }
  8314. /**
  8315. * get_mail_rsp errno.
  8316. * @member {number|Long} errno
  8317. * @memberof game.get_mail_rsp
  8318. * @instance
  8319. */
  8320. get_mail_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  8321. /**
  8322. * get_mail_rsp list.
  8323. * @member {Array.<game.Imail>} list
  8324. * @memberof game.get_mail_rsp
  8325. * @instance
  8326. */
  8327. get_mail_rsp.prototype.list = $util.emptyArray;
  8328. /**
  8329. * Creates a new get_mail_rsp instance using the specified properties.
  8330. * @function create
  8331. * @memberof game.get_mail_rsp
  8332. * @static
  8333. * @param {game.Iget_mail_rsp=} [properties] Properties to set
  8334. * @returns {game.get_mail_rsp} get_mail_rsp instance
  8335. */
  8336. get_mail_rsp.create = function create(properties) {
  8337. return new get_mail_rsp(properties);
  8338. };
  8339. /**
  8340. * Encodes the specified get_mail_rsp message. Does not implicitly {@link game.get_mail_rsp.verify|verify} messages.
  8341. * @function encode
  8342. * @memberof game.get_mail_rsp
  8343. * @static
  8344. * @param {game.Iget_mail_rsp} message get_mail_rsp message or plain object to encode
  8345. * @param {$protobuf.Writer} [writer] Writer to encode to
  8346. * @returns {$protobuf.Writer} Writer
  8347. */
  8348. get_mail_rsp.encode = function encode(message, writer) {
  8349. if (!writer)
  8350. writer = $Writer.create();
  8351. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  8352. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  8353. if (message.list != null && message.list.length)
  8354. for (let i = 0; i < message.list.length; ++i)
  8355. $root.game.mail.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  8356. return writer;
  8357. };
  8358. /**
  8359. * Encodes the specified get_mail_rsp message, length delimited. Does not implicitly {@link game.get_mail_rsp.verify|verify} messages.
  8360. * @function encodeDelimited
  8361. * @memberof game.get_mail_rsp
  8362. * @static
  8363. * @param {game.Iget_mail_rsp} message get_mail_rsp message or plain object to encode
  8364. * @param {$protobuf.Writer} [writer] Writer to encode to
  8365. * @returns {$protobuf.Writer} Writer
  8366. */
  8367. get_mail_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  8368. return this.encode(message, writer).ldelim();
  8369. };
  8370. /**
  8371. * Decodes a get_mail_rsp message from the specified reader or buffer.
  8372. * @function decode
  8373. * @memberof game.get_mail_rsp
  8374. * @static
  8375. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  8376. * @param {number} [length] Message length if known beforehand
  8377. * @returns {game.get_mail_rsp} get_mail_rsp
  8378. * @throws {Error} If the payload is not a reader or valid buffer
  8379. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  8380. */
  8381. get_mail_rsp.decode = function decode(reader, length) {
  8382. if (!(reader instanceof $Reader))
  8383. reader = $Reader.create(reader);
  8384. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.get_mail_rsp();
  8385. while (reader.pos < end) {
  8386. let tag = reader.uint32();
  8387. switch (tag >>> 3) {
  8388. case 1:
  8389. message.errno = reader.int64();
  8390. break;
  8391. case 2:
  8392. if (!(message.list && message.list.length))
  8393. message.list = [];
  8394. message.list.push($root.game.mail.decode(reader, reader.uint32()));
  8395. break;
  8396. default:
  8397. reader.skipType(tag & 7);
  8398. break;
  8399. }
  8400. }
  8401. return message;
  8402. };
  8403. /**
  8404. * Decodes a get_mail_rsp message from the specified reader or buffer, length delimited.
  8405. * @function decodeDelimited
  8406. * @memberof game.get_mail_rsp
  8407. * @static
  8408. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  8409. * @returns {game.get_mail_rsp} get_mail_rsp
  8410. * @throws {Error} If the payload is not a reader or valid buffer
  8411. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  8412. */
  8413. get_mail_rsp.decodeDelimited = function decodeDelimited(reader) {
  8414. if (!(reader instanceof $Reader))
  8415. reader = new $Reader(reader);
  8416. return this.decode(reader, reader.uint32());
  8417. };
  8418. /**
  8419. * Verifies a get_mail_rsp message.
  8420. * @function verify
  8421. * @memberof game.get_mail_rsp
  8422. * @static
  8423. * @param {Object.<string,*>} message Plain object to verify
  8424. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  8425. */
  8426. get_mail_rsp.verify = function verify(message) {
  8427. if (typeof message !== "object" || message === null)
  8428. return "object expected";
  8429. if (message.errno != null && message.hasOwnProperty("errno"))
  8430. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  8431. return "errno: integer|Long expected";
  8432. if (message.list != null && message.hasOwnProperty("list")) {
  8433. if (!Array.isArray(message.list))
  8434. return "list: array expected";
  8435. for (let i = 0; i < message.list.length; ++i) {
  8436. let error = $root.game.mail.verify(message.list[i]);
  8437. if (error)
  8438. return "list." + error;
  8439. }
  8440. }
  8441. return null;
  8442. };
  8443. /**
  8444. * Creates a get_mail_rsp message from a plain object. Also converts values to their respective internal types.
  8445. * @function fromObject
  8446. * @memberof game.get_mail_rsp
  8447. * @static
  8448. * @param {Object.<string,*>} object Plain object
  8449. * @returns {game.get_mail_rsp} get_mail_rsp
  8450. */
  8451. get_mail_rsp.fromObject = function fromObject(object) {
  8452. if (object instanceof $root.game.get_mail_rsp)
  8453. return object;
  8454. let message = new $root.game.get_mail_rsp();
  8455. if (object.errno != null)
  8456. if ($util.Long)
  8457. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  8458. else if (typeof object.errno === "string")
  8459. message.errno = parseInt(object.errno, 10);
  8460. else if (typeof object.errno === "number")
  8461. message.errno = object.errno;
  8462. else if (typeof object.errno === "object")
  8463. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  8464. if (object.list) {
  8465. if (!Array.isArray(object.list))
  8466. throw TypeError(".game.get_mail_rsp.list: array expected");
  8467. message.list = [];
  8468. for (let i = 0; i < object.list.length; ++i) {
  8469. if (typeof object.list[i] !== "object")
  8470. throw TypeError(".game.get_mail_rsp.list: object expected");
  8471. message.list[i] = $root.game.mail.fromObject(object.list[i]);
  8472. }
  8473. }
  8474. return message;
  8475. };
  8476. /**
  8477. * Creates a plain object from a get_mail_rsp message. Also converts values to other types if specified.
  8478. * @function toObject
  8479. * @memberof game.get_mail_rsp
  8480. * @static
  8481. * @param {game.get_mail_rsp} message get_mail_rsp
  8482. * @param {$protobuf.IConversionOptions} [options] Conversion options
  8483. * @returns {Object.<string,*>} Plain object
  8484. */
  8485. get_mail_rsp.toObject = function toObject(message, options) {
  8486. if (!options)
  8487. options = {};
  8488. let object = {};
  8489. if (options.arrays || options.defaults)
  8490. object.list = [];
  8491. if (options.defaults)
  8492. if ($util.Long) {
  8493. let long = new $util.Long(0, 0, false);
  8494. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  8495. } else
  8496. object.errno = options.longs === String ? "0" : 0;
  8497. if (message.errno != null && message.hasOwnProperty("errno"))
  8498. if (typeof message.errno === "number")
  8499. object.errno = options.longs === String ? String(message.errno) : message.errno;
  8500. else
  8501. 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;
  8502. if (message.list && message.list.length) {
  8503. object.list = [];
  8504. for (let j = 0; j < message.list.length; ++j)
  8505. object.list[j] = $root.game.mail.toObject(message.list[j], options);
  8506. }
  8507. return object;
  8508. };
  8509. /**
  8510. * Converts this get_mail_rsp to JSON.
  8511. * @function toJSON
  8512. * @memberof game.get_mail_rsp
  8513. * @instance
  8514. * @returns {Object.<string,*>} JSON object
  8515. */
  8516. get_mail_rsp.prototype.toJSON = function toJSON() {
  8517. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  8518. };
  8519. return get_mail_rsp;
  8520. })();
  8521. game.get_mail_goods = (function() {
  8522. /**
  8523. * Properties of a get_mail_goods.
  8524. * @memberof game
  8525. * @interface Iget_mail_goods
  8526. * @property {Array.<string>|null} [list] get_mail_goods list
  8527. * @property {boolean|null} [bonekey] get_mail_goods bonekey
  8528. */
  8529. /**
  8530. * Constructs a new get_mail_goods.
  8531. * @memberof game
  8532. * @classdesc Represents a get_mail_goods.
  8533. * @implements Iget_mail_goods
  8534. * @constructor
  8535. * @param {game.Iget_mail_goods=} [properties] Properties to set
  8536. */
  8537. function get_mail_goods(properties) {
  8538. this.list = [];
  8539. if (properties)
  8540. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  8541. if (properties[keys[i]] != null)
  8542. this[keys[i]] = properties[keys[i]];
  8543. }
  8544. /**
  8545. * get_mail_goods list.
  8546. * @member {Array.<string>} list
  8547. * @memberof game.get_mail_goods
  8548. * @instance
  8549. */
  8550. get_mail_goods.prototype.list = $util.emptyArray;
  8551. /**
  8552. * get_mail_goods bonekey.
  8553. * @member {boolean} bonekey
  8554. * @memberof game.get_mail_goods
  8555. * @instance
  8556. */
  8557. get_mail_goods.prototype.bonekey = false;
  8558. /**
  8559. * Creates a new get_mail_goods instance using the specified properties.
  8560. * @function create
  8561. * @memberof game.get_mail_goods
  8562. * @static
  8563. * @param {game.Iget_mail_goods=} [properties] Properties to set
  8564. * @returns {game.get_mail_goods} get_mail_goods instance
  8565. */
  8566. get_mail_goods.create = function create(properties) {
  8567. return new get_mail_goods(properties);
  8568. };
  8569. /**
  8570. * Encodes the specified get_mail_goods message. Does not implicitly {@link game.get_mail_goods.verify|verify} messages.
  8571. * @function encode
  8572. * @memberof game.get_mail_goods
  8573. * @static
  8574. * @param {game.Iget_mail_goods} message get_mail_goods message or plain object to encode
  8575. * @param {$protobuf.Writer} [writer] Writer to encode to
  8576. * @returns {$protobuf.Writer} Writer
  8577. */
  8578. get_mail_goods.encode = function encode(message, writer) {
  8579. if (!writer)
  8580. writer = $Writer.create();
  8581. if (message.list != null && message.list.length)
  8582. for (let i = 0; i < message.list.length; ++i)
  8583. writer.uint32(/* id 1, wireType 2 =*/10).string(message.list[i]);
  8584. if (message.bonekey != null && Object.hasOwnProperty.call(message, "bonekey"))
  8585. writer.uint32(/* id 2, wireType 0 =*/16).bool(message.bonekey);
  8586. return writer;
  8587. };
  8588. /**
  8589. * Encodes the specified get_mail_goods message, length delimited. Does not implicitly {@link game.get_mail_goods.verify|verify} messages.
  8590. * @function encodeDelimited
  8591. * @memberof game.get_mail_goods
  8592. * @static
  8593. * @param {game.Iget_mail_goods} message get_mail_goods message or plain object to encode
  8594. * @param {$protobuf.Writer} [writer] Writer to encode to
  8595. * @returns {$protobuf.Writer} Writer
  8596. */
  8597. get_mail_goods.encodeDelimited = function encodeDelimited(message, writer) {
  8598. return this.encode(message, writer).ldelim();
  8599. };
  8600. /**
  8601. * Decodes a get_mail_goods message from the specified reader or buffer.
  8602. * @function decode
  8603. * @memberof game.get_mail_goods
  8604. * @static
  8605. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  8606. * @param {number} [length] Message length if known beforehand
  8607. * @returns {game.get_mail_goods} get_mail_goods
  8608. * @throws {Error} If the payload is not a reader or valid buffer
  8609. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  8610. */
  8611. get_mail_goods.decode = function decode(reader, length) {
  8612. if (!(reader instanceof $Reader))
  8613. reader = $Reader.create(reader);
  8614. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.get_mail_goods();
  8615. while (reader.pos < end) {
  8616. let tag = reader.uint32();
  8617. switch (tag >>> 3) {
  8618. case 1:
  8619. if (!(message.list && message.list.length))
  8620. message.list = [];
  8621. message.list.push(reader.string());
  8622. break;
  8623. case 2:
  8624. message.bonekey = reader.bool();
  8625. break;
  8626. default:
  8627. reader.skipType(tag & 7);
  8628. break;
  8629. }
  8630. }
  8631. return message;
  8632. };
  8633. /**
  8634. * Decodes a get_mail_goods message from the specified reader or buffer, length delimited.
  8635. * @function decodeDelimited
  8636. * @memberof game.get_mail_goods
  8637. * @static
  8638. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  8639. * @returns {game.get_mail_goods} get_mail_goods
  8640. * @throws {Error} If the payload is not a reader or valid buffer
  8641. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  8642. */
  8643. get_mail_goods.decodeDelimited = function decodeDelimited(reader) {
  8644. if (!(reader instanceof $Reader))
  8645. reader = new $Reader(reader);
  8646. return this.decode(reader, reader.uint32());
  8647. };
  8648. /**
  8649. * Verifies a get_mail_goods message.
  8650. * @function verify
  8651. * @memberof game.get_mail_goods
  8652. * @static
  8653. * @param {Object.<string,*>} message Plain object to verify
  8654. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  8655. */
  8656. get_mail_goods.verify = function verify(message) {
  8657. if (typeof message !== "object" || message === null)
  8658. return "object expected";
  8659. if (message.list != null && message.hasOwnProperty("list")) {
  8660. if (!Array.isArray(message.list))
  8661. return "list: array expected";
  8662. for (let i = 0; i < message.list.length; ++i)
  8663. if (!$util.isString(message.list[i]))
  8664. return "list: string[] expected";
  8665. }
  8666. if (message.bonekey != null && message.hasOwnProperty("bonekey"))
  8667. if (typeof message.bonekey !== "boolean")
  8668. return "bonekey: boolean expected";
  8669. return null;
  8670. };
  8671. /**
  8672. * Creates a get_mail_goods message from a plain object. Also converts values to their respective internal types.
  8673. * @function fromObject
  8674. * @memberof game.get_mail_goods
  8675. * @static
  8676. * @param {Object.<string,*>} object Plain object
  8677. * @returns {game.get_mail_goods} get_mail_goods
  8678. */
  8679. get_mail_goods.fromObject = function fromObject(object) {
  8680. if (object instanceof $root.game.get_mail_goods)
  8681. return object;
  8682. let message = new $root.game.get_mail_goods();
  8683. if (object.list) {
  8684. if (!Array.isArray(object.list))
  8685. throw TypeError(".game.get_mail_goods.list: array expected");
  8686. message.list = [];
  8687. for (let i = 0; i < object.list.length; ++i)
  8688. message.list[i] = String(object.list[i]);
  8689. }
  8690. if (object.bonekey != null)
  8691. message.bonekey = Boolean(object.bonekey);
  8692. return message;
  8693. };
  8694. /**
  8695. * Creates a plain object from a get_mail_goods message. Also converts values to other types if specified.
  8696. * @function toObject
  8697. * @memberof game.get_mail_goods
  8698. * @static
  8699. * @param {game.get_mail_goods} message get_mail_goods
  8700. * @param {$protobuf.IConversionOptions} [options] Conversion options
  8701. * @returns {Object.<string,*>} Plain object
  8702. */
  8703. get_mail_goods.toObject = function toObject(message, options) {
  8704. if (!options)
  8705. options = {};
  8706. let object = {};
  8707. if (options.arrays || options.defaults)
  8708. object.list = [];
  8709. if (options.defaults)
  8710. object.bonekey = false;
  8711. if (message.list && message.list.length) {
  8712. object.list = [];
  8713. for (let j = 0; j < message.list.length; ++j)
  8714. object.list[j] = message.list[j];
  8715. }
  8716. if (message.bonekey != null && message.hasOwnProperty("bonekey"))
  8717. object.bonekey = message.bonekey;
  8718. return object;
  8719. };
  8720. /**
  8721. * Converts this get_mail_goods to JSON.
  8722. * @function toJSON
  8723. * @memberof game.get_mail_goods
  8724. * @instance
  8725. * @returns {Object.<string,*>} JSON object
  8726. */
  8727. get_mail_goods.prototype.toJSON = function toJSON() {
  8728. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  8729. };
  8730. return get_mail_goods;
  8731. })();
  8732. game.get_mail_goods_rsp = (function() {
  8733. /**
  8734. * Properties of a get_mail_goods_rsp.
  8735. * @memberof game
  8736. * @interface Iget_mail_goods_rsp
  8737. * @property {number|Long|null} [errno] get_mail_goods_rsp errno
  8738. * @property {Array.<string>|null} [list] get_mail_goods_rsp list
  8739. */
  8740. /**
  8741. * Constructs a new get_mail_goods_rsp.
  8742. * @memberof game
  8743. * @classdesc Represents a get_mail_goods_rsp.
  8744. * @implements Iget_mail_goods_rsp
  8745. * @constructor
  8746. * @param {game.Iget_mail_goods_rsp=} [properties] Properties to set
  8747. */
  8748. function get_mail_goods_rsp(properties) {
  8749. this.list = [];
  8750. if (properties)
  8751. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  8752. if (properties[keys[i]] != null)
  8753. this[keys[i]] = properties[keys[i]];
  8754. }
  8755. /**
  8756. * get_mail_goods_rsp errno.
  8757. * @member {number|Long} errno
  8758. * @memberof game.get_mail_goods_rsp
  8759. * @instance
  8760. */
  8761. get_mail_goods_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  8762. /**
  8763. * get_mail_goods_rsp list.
  8764. * @member {Array.<string>} list
  8765. * @memberof game.get_mail_goods_rsp
  8766. * @instance
  8767. */
  8768. get_mail_goods_rsp.prototype.list = $util.emptyArray;
  8769. /**
  8770. * Creates a new get_mail_goods_rsp instance using the specified properties.
  8771. * @function create
  8772. * @memberof game.get_mail_goods_rsp
  8773. * @static
  8774. * @param {game.Iget_mail_goods_rsp=} [properties] Properties to set
  8775. * @returns {game.get_mail_goods_rsp} get_mail_goods_rsp instance
  8776. */
  8777. get_mail_goods_rsp.create = function create(properties) {
  8778. return new get_mail_goods_rsp(properties);
  8779. };
  8780. /**
  8781. * Encodes the specified get_mail_goods_rsp message. Does not implicitly {@link game.get_mail_goods_rsp.verify|verify} messages.
  8782. * @function encode
  8783. * @memberof game.get_mail_goods_rsp
  8784. * @static
  8785. * @param {game.Iget_mail_goods_rsp} message get_mail_goods_rsp message or plain object to encode
  8786. * @param {$protobuf.Writer} [writer] Writer to encode to
  8787. * @returns {$protobuf.Writer} Writer
  8788. */
  8789. get_mail_goods_rsp.encode = function encode(message, writer) {
  8790. if (!writer)
  8791. writer = $Writer.create();
  8792. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  8793. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  8794. if (message.list != null && message.list.length)
  8795. for (let i = 0; i < message.list.length; ++i)
  8796. writer.uint32(/* id 2, wireType 2 =*/18).string(message.list[i]);
  8797. return writer;
  8798. };
  8799. /**
  8800. * Encodes the specified get_mail_goods_rsp message, length delimited. Does not implicitly {@link game.get_mail_goods_rsp.verify|verify} messages.
  8801. * @function encodeDelimited
  8802. * @memberof game.get_mail_goods_rsp
  8803. * @static
  8804. * @param {game.Iget_mail_goods_rsp} message get_mail_goods_rsp message or plain object to encode
  8805. * @param {$protobuf.Writer} [writer] Writer to encode to
  8806. * @returns {$protobuf.Writer} Writer
  8807. */
  8808. get_mail_goods_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  8809. return this.encode(message, writer).ldelim();
  8810. };
  8811. /**
  8812. * Decodes a get_mail_goods_rsp message from the specified reader or buffer.
  8813. * @function decode
  8814. * @memberof game.get_mail_goods_rsp
  8815. * @static
  8816. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  8817. * @param {number} [length] Message length if known beforehand
  8818. * @returns {game.get_mail_goods_rsp} get_mail_goods_rsp
  8819. * @throws {Error} If the payload is not a reader or valid buffer
  8820. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  8821. */
  8822. get_mail_goods_rsp.decode = function decode(reader, length) {
  8823. if (!(reader instanceof $Reader))
  8824. reader = $Reader.create(reader);
  8825. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.get_mail_goods_rsp();
  8826. while (reader.pos < end) {
  8827. let tag = reader.uint32();
  8828. switch (tag >>> 3) {
  8829. case 1:
  8830. message.errno = reader.int64();
  8831. break;
  8832. case 2:
  8833. if (!(message.list && message.list.length))
  8834. message.list = [];
  8835. message.list.push(reader.string());
  8836. break;
  8837. default:
  8838. reader.skipType(tag & 7);
  8839. break;
  8840. }
  8841. }
  8842. return message;
  8843. };
  8844. /**
  8845. * Decodes a get_mail_goods_rsp message from the specified reader or buffer, length delimited.
  8846. * @function decodeDelimited
  8847. * @memberof game.get_mail_goods_rsp
  8848. * @static
  8849. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  8850. * @returns {game.get_mail_goods_rsp} get_mail_goods_rsp
  8851. * @throws {Error} If the payload is not a reader or valid buffer
  8852. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  8853. */
  8854. get_mail_goods_rsp.decodeDelimited = function decodeDelimited(reader) {
  8855. if (!(reader instanceof $Reader))
  8856. reader = new $Reader(reader);
  8857. return this.decode(reader, reader.uint32());
  8858. };
  8859. /**
  8860. * Verifies a get_mail_goods_rsp message.
  8861. * @function verify
  8862. * @memberof game.get_mail_goods_rsp
  8863. * @static
  8864. * @param {Object.<string,*>} message Plain object to verify
  8865. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  8866. */
  8867. get_mail_goods_rsp.verify = function verify(message) {
  8868. if (typeof message !== "object" || message === null)
  8869. return "object expected";
  8870. if (message.errno != null && message.hasOwnProperty("errno"))
  8871. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  8872. return "errno: integer|Long expected";
  8873. if (message.list != null && message.hasOwnProperty("list")) {
  8874. if (!Array.isArray(message.list))
  8875. return "list: array expected";
  8876. for (let i = 0; i < message.list.length; ++i)
  8877. if (!$util.isString(message.list[i]))
  8878. return "list: string[] expected";
  8879. }
  8880. return null;
  8881. };
  8882. /**
  8883. * Creates a get_mail_goods_rsp message from a plain object. Also converts values to their respective internal types.
  8884. * @function fromObject
  8885. * @memberof game.get_mail_goods_rsp
  8886. * @static
  8887. * @param {Object.<string,*>} object Plain object
  8888. * @returns {game.get_mail_goods_rsp} get_mail_goods_rsp
  8889. */
  8890. get_mail_goods_rsp.fromObject = function fromObject(object) {
  8891. if (object instanceof $root.game.get_mail_goods_rsp)
  8892. return object;
  8893. let message = new $root.game.get_mail_goods_rsp();
  8894. if (object.errno != null)
  8895. if ($util.Long)
  8896. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  8897. else if (typeof object.errno === "string")
  8898. message.errno = parseInt(object.errno, 10);
  8899. else if (typeof object.errno === "number")
  8900. message.errno = object.errno;
  8901. else if (typeof object.errno === "object")
  8902. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  8903. if (object.list) {
  8904. if (!Array.isArray(object.list))
  8905. throw TypeError(".game.get_mail_goods_rsp.list: array expected");
  8906. message.list = [];
  8907. for (let i = 0; i < object.list.length; ++i)
  8908. message.list[i] = String(object.list[i]);
  8909. }
  8910. return message;
  8911. };
  8912. /**
  8913. * Creates a plain object from a get_mail_goods_rsp message. Also converts values to other types if specified.
  8914. * @function toObject
  8915. * @memberof game.get_mail_goods_rsp
  8916. * @static
  8917. * @param {game.get_mail_goods_rsp} message get_mail_goods_rsp
  8918. * @param {$protobuf.IConversionOptions} [options] Conversion options
  8919. * @returns {Object.<string,*>} Plain object
  8920. */
  8921. get_mail_goods_rsp.toObject = function toObject(message, options) {
  8922. if (!options)
  8923. options = {};
  8924. let object = {};
  8925. if (options.arrays || options.defaults)
  8926. object.list = [];
  8927. if (options.defaults)
  8928. if ($util.Long) {
  8929. let long = new $util.Long(0, 0, false);
  8930. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  8931. } else
  8932. object.errno = options.longs === String ? "0" : 0;
  8933. if (message.errno != null && message.hasOwnProperty("errno"))
  8934. if (typeof message.errno === "number")
  8935. object.errno = options.longs === String ? String(message.errno) : message.errno;
  8936. else
  8937. 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;
  8938. if (message.list && message.list.length) {
  8939. object.list = [];
  8940. for (let j = 0; j < message.list.length; ++j)
  8941. object.list[j] = message.list[j];
  8942. }
  8943. return object;
  8944. };
  8945. /**
  8946. * Converts this get_mail_goods_rsp to JSON.
  8947. * @function toJSON
  8948. * @memberof game.get_mail_goods_rsp
  8949. * @instance
  8950. * @returns {Object.<string,*>} JSON object
  8951. */
  8952. get_mail_goods_rsp.prototype.toJSON = function toJSON() {
  8953. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  8954. };
  8955. return get_mail_goods_rsp;
  8956. })();
  8957. game.del_mail = (function() {
  8958. /**
  8959. * Properties of a del_mail.
  8960. * @memberof game
  8961. * @interface Idel_mail
  8962. * @property {Array.<string>|null} [list] del_mail list
  8963. */
  8964. /**
  8965. * Constructs a new del_mail.
  8966. * @memberof game
  8967. * @classdesc Represents a del_mail.
  8968. * @implements Idel_mail
  8969. * @constructor
  8970. * @param {game.Idel_mail=} [properties] Properties to set
  8971. */
  8972. function del_mail(properties) {
  8973. this.list = [];
  8974. if (properties)
  8975. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  8976. if (properties[keys[i]] != null)
  8977. this[keys[i]] = properties[keys[i]];
  8978. }
  8979. /**
  8980. * del_mail list.
  8981. * @member {Array.<string>} list
  8982. * @memberof game.del_mail
  8983. * @instance
  8984. */
  8985. del_mail.prototype.list = $util.emptyArray;
  8986. /**
  8987. * Creates a new del_mail instance using the specified properties.
  8988. * @function create
  8989. * @memberof game.del_mail
  8990. * @static
  8991. * @param {game.Idel_mail=} [properties] Properties to set
  8992. * @returns {game.del_mail} del_mail instance
  8993. */
  8994. del_mail.create = function create(properties) {
  8995. return new del_mail(properties);
  8996. };
  8997. /**
  8998. * Encodes the specified del_mail message. Does not implicitly {@link game.del_mail.verify|verify} messages.
  8999. * @function encode
  9000. * @memberof game.del_mail
  9001. * @static
  9002. * @param {game.Idel_mail} message del_mail message or plain object to encode
  9003. * @param {$protobuf.Writer} [writer] Writer to encode to
  9004. * @returns {$protobuf.Writer} Writer
  9005. */
  9006. del_mail.encode = function encode(message, writer) {
  9007. if (!writer)
  9008. writer = $Writer.create();
  9009. if (message.list != null && message.list.length)
  9010. for (let i = 0; i < message.list.length; ++i)
  9011. writer.uint32(/* id 1, wireType 2 =*/10).string(message.list[i]);
  9012. return writer;
  9013. };
  9014. /**
  9015. * Encodes the specified del_mail message, length delimited. Does not implicitly {@link game.del_mail.verify|verify} messages.
  9016. * @function encodeDelimited
  9017. * @memberof game.del_mail
  9018. * @static
  9019. * @param {game.Idel_mail} message del_mail message or plain object to encode
  9020. * @param {$protobuf.Writer} [writer] Writer to encode to
  9021. * @returns {$protobuf.Writer} Writer
  9022. */
  9023. del_mail.encodeDelimited = function encodeDelimited(message, writer) {
  9024. return this.encode(message, writer).ldelim();
  9025. };
  9026. /**
  9027. * Decodes a del_mail message from the specified reader or buffer.
  9028. * @function decode
  9029. * @memberof game.del_mail
  9030. * @static
  9031. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  9032. * @param {number} [length] Message length if known beforehand
  9033. * @returns {game.del_mail} del_mail
  9034. * @throws {Error} If the payload is not a reader or valid buffer
  9035. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  9036. */
  9037. del_mail.decode = function decode(reader, length) {
  9038. if (!(reader instanceof $Reader))
  9039. reader = $Reader.create(reader);
  9040. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.del_mail();
  9041. while (reader.pos < end) {
  9042. let tag = reader.uint32();
  9043. switch (tag >>> 3) {
  9044. case 1:
  9045. if (!(message.list && message.list.length))
  9046. message.list = [];
  9047. message.list.push(reader.string());
  9048. break;
  9049. default:
  9050. reader.skipType(tag & 7);
  9051. break;
  9052. }
  9053. }
  9054. return message;
  9055. };
  9056. /**
  9057. * Decodes a del_mail message from the specified reader or buffer, length delimited.
  9058. * @function decodeDelimited
  9059. * @memberof game.del_mail
  9060. * @static
  9061. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  9062. * @returns {game.del_mail} del_mail
  9063. * @throws {Error} If the payload is not a reader or valid buffer
  9064. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  9065. */
  9066. del_mail.decodeDelimited = function decodeDelimited(reader) {
  9067. if (!(reader instanceof $Reader))
  9068. reader = new $Reader(reader);
  9069. return this.decode(reader, reader.uint32());
  9070. };
  9071. /**
  9072. * Verifies a del_mail message.
  9073. * @function verify
  9074. * @memberof game.del_mail
  9075. * @static
  9076. * @param {Object.<string,*>} message Plain object to verify
  9077. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  9078. */
  9079. del_mail.verify = function verify(message) {
  9080. if (typeof message !== "object" || message === null)
  9081. return "object expected";
  9082. if (message.list != null && message.hasOwnProperty("list")) {
  9083. if (!Array.isArray(message.list))
  9084. return "list: array expected";
  9085. for (let i = 0; i < message.list.length; ++i)
  9086. if (!$util.isString(message.list[i]))
  9087. return "list: string[] expected";
  9088. }
  9089. return null;
  9090. };
  9091. /**
  9092. * Creates a del_mail message from a plain object. Also converts values to their respective internal types.
  9093. * @function fromObject
  9094. * @memberof game.del_mail
  9095. * @static
  9096. * @param {Object.<string,*>} object Plain object
  9097. * @returns {game.del_mail} del_mail
  9098. */
  9099. del_mail.fromObject = function fromObject(object) {
  9100. if (object instanceof $root.game.del_mail)
  9101. return object;
  9102. let message = new $root.game.del_mail();
  9103. if (object.list) {
  9104. if (!Array.isArray(object.list))
  9105. throw TypeError(".game.del_mail.list: array expected");
  9106. message.list = [];
  9107. for (let i = 0; i < object.list.length; ++i)
  9108. message.list[i] = String(object.list[i]);
  9109. }
  9110. return message;
  9111. };
  9112. /**
  9113. * Creates a plain object from a del_mail message. Also converts values to other types if specified.
  9114. * @function toObject
  9115. * @memberof game.del_mail
  9116. * @static
  9117. * @param {game.del_mail} message del_mail
  9118. * @param {$protobuf.IConversionOptions} [options] Conversion options
  9119. * @returns {Object.<string,*>} Plain object
  9120. */
  9121. del_mail.toObject = function toObject(message, options) {
  9122. if (!options)
  9123. options = {};
  9124. let object = {};
  9125. if (options.arrays || options.defaults)
  9126. object.list = [];
  9127. if (message.list && message.list.length) {
  9128. object.list = [];
  9129. for (let j = 0; j < message.list.length; ++j)
  9130. object.list[j] = message.list[j];
  9131. }
  9132. return object;
  9133. };
  9134. /**
  9135. * Converts this del_mail to JSON.
  9136. * @function toJSON
  9137. * @memberof game.del_mail
  9138. * @instance
  9139. * @returns {Object.<string,*>} JSON object
  9140. */
  9141. del_mail.prototype.toJSON = function toJSON() {
  9142. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  9143. };
  9144. return del_mail;
  9145. })();
  9146. game.del_mail_rsp = (function() {
  9147. /**
  9148. * Properties of a del_mail_rsp.
  9149. * @memberof game
  9150. * @interface Idel_mail_rsp
  9151. * @property {number|Long|null} [errno] del_mail_rsp errno
  9152. * @property {Array.<string>|null} [list] del_mail_rsp list
  9153. */
  9154. /**
  9155. * Constructs a new del_mail_rsp.
  9156. * @memberof game
  9157. * @classdesc Represents a del_mail_rsp.
  9158. * @implements Idel_mail_rsp
  9159. * @constructor
  9160. * @param {game.Idel_mail_rsp=} [properties] Properties to set
  9161. */
  9162. function del_mail_rsp(properties) {
  9163. this.list = [];
  9164. if (properties)
  9165. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  9166. if (properties[keys[i]] != null)
  9167. this[keys[i]] = properties[keys[i]];
  9168. }
  9169. /**
  9170. * del_mail_rsp errno.
  9171. * @member {number|Long} errno
  9172. * @memberof game.del_mail_rsp
  9173. * @instance
  9174. */
  9175. del_mail_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  9176. /**
  9177. * del_mail_rsp list.
  9178. * @member {Array.<string>} list
  9179. * @memberof game.del_mail_rsp
  9180. * @instance
  9181. */
  9182. del_mail_rsp.prototype.list = $util.emptyArray;
  9183. /**
  9184. * Creates a new del_mail_rsp instance using the specified properties.
  9185. * @function create
  9186. * @memberof game.del_mail_rsp
  9187. * @static
  9188. * @param {game.Idel_mail_rsp=} [properties] Properties to set
  9189. * @returns {game.del_mail_rsp} del_mail_rsp instance
  9190. */
  9191. del_mail_rsp.create = function create(properties) {
  9192. return new del_mail_rsp(properties);
  9193. };
  9194. /**
  9195. * Encodes the specified del_mail_rsp message. Does not implicitly {@link game.del_mail_rsp.verify|verify} messages.
  9196. * @function encode
  9197. * @memberof game.del_mail_rsp
  9198. * @static
  9199. * @param {game.Idel_mail_rsp} message del_mail_rsp message or plain object to encode
  9200. * @param {$protobuf.Writer} [writer] Writer to encode to
  9201. * @returns {$protobuf.Writer} Writer
  9202. */
  9203. del_mail_rsp.encode = function encode(message, writer) {
  9204. if (!writer)
  9205. writer = $Writer.create();
  9206. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  9207. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  9208. if (message.list != null && message.list.length)
  9209. for (let i = 0; i < message.list.length; ++i)
  9210. writer.uint32(/* id 2, wireType 2 =*/18).string(message.list[i]);
  9211. return writer;
  9212. };
  9213. /**
  9214. * Encodes the specified del_mail_rsp message, length delimited. Does not implicitly {@link game.del_mail_rsp.verify|verify} messages.
  9215. * @function encodeDelimited
  9216. * @memberof game.del_mail_rsp
  9217. * @static
  9218. * @param {game.Idel_mail_rsp} message del_mail_rsp message or plain object to encode
  9219. * @param {$protobuf.Writer} [writer] Writer to encode to
  9220. * @returns {$protobuf.Writer} Writer
  9221. */
  9222. del_mail_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  9223. return this.encode(message, writer).ldelim();
  9224. };
  9225. /**
  9226. * Decodes a del_mail_rsp message from the specified reader or buffer.
  9227. * @function decode
  9228. * @memberof game.del_mail_rsp
  9229. * @static
  9230. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  9231. * @param {number} [length] Message length if known beforehand
  9232. * @returns {game.del_mail_rsp} del_mail_rsp
  9233. * @throws {Error} If the payload is not a reader or valid buffer
  9234. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  9235. */
  9236. del_mail_rsp.decode = function decode(reader, length) {
  9237. if (!(reader instanceof $Reader))
  9238. reader = $Reader.create(reader);
  9239. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.del_mail_rsp();
  9240. while (reader.pos < end) {
  9241. let tag = reader.uint32();
  9242. switch (tag >>> 3) {
  9243. case 1:
  9244. message.errno = reader.int64();
  9245. break;
  9246. case 2:
  9247. if (!(message.list && message.list.length))
  9248. message.list = [];
  9249. message.list.push(reader.string());
  9250. break;
  9251. default:
  9252. reader.skipType(tag & 7);
  9253. break;
  9254. }
  9255. }
  9256. return message;
  9257. };
  9258. /**
  9259. * Decodes a del_mail_rsp message from the specified reader or buffer, length delimited.
  9260. * @function decodeDelimited
  9261. * @memberof game.del_mail_rsp
  9262. * @static
  9263. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  9264. * @returns {game.del_mail_rsp} del_mail_rsp
  9265. * @throws {Error} If the payload is not a reader or valid buffer
  9266. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  9267. */
  9268. del_mail_rsp.decodeDelimited = function decodeDelimited(reader) {
  9269. if (!(reader instanceof $Reader))
  9270. reader = new $Reader(reader);
  9271. return this.decode(reader, reader.uint32());
  9272. };
  9273. /**
  9274. * Verifies a del_mail_rsp message.
  9275. * @function verify
  9276. * @memberof game.del_mail_rsp
  9277. * @static
  9278. * @param {Object.<string,*>} message Plain object to verify
  9279. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  9280. */
  9281. del_mail_rsp.verify = function verify(message) {
  9282. if (typeof message !== "object" || message === null)
  9283. return "object expected";
  9284. if (message.errno != null && message.hasOwnProperty("errno"))
  9285. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  9286. return "errno: integer|Long expected";
  9287. if (message.list != null && message.hasOwnProperty("list")) {
  9288. if (!Array.isArray(message.list))
  9289. return "list: array expected";
  9290. for (let i = 0; i < message.list.length; ++i)
  9291. if (!$util.isString(message.list[i]))
  9292. return "list: string[] expected";
  9293. }
  9294. return null;
  9295. };
  9296. /**
  9297. * Creates a del_mail_rsp message from a plain object. Also converts values to their respective internal types.
  9298. * @function fromObject
  9299. * @memberof game.del_mail_rsp
  9300. * @static
  9301. * @param {Object.<string,*>} object Plain object
  9302. * @returns {game.del_mail_rsp} del_mail_rsp
  9303. */
  9304. del_mail_rsp.fromObject = function fromObject(object) {
  9305. if (object instanceof $root.game.del_mail_rsp)
  9306. return object;
  9307. let message = new $root.game.del_mail_rsp();
  9308. if (object.errno != null)
  9309. if ($util.Long)
  9310. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  9311. else if (typeof object.errno === "string")
  9312. message.errno = parseInt(object.errno, 10);
  9313. else if (typeof object.errno === "number")
  9314. message.errno = object.errno;
  9315. else if (typeof object.errno === "object")
  9316. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  9317. if (object.list) {
  9318. if (!Array.isArray(object.list))
  9319. throw TypeError(".game.del_mail_rsp.list: array expected");
  9320. message.list = [];
  9321. for (let i = 0; i < object.list.length; ++i)
  9322. message.list[i] = String(object.list[i]);
  9323. }
  9324. return message;
  9325. };
  9326. /**
  9327. * Creates a plain object from a del_mail_rsp message. Also converts values to other types if specified.
  9328. * @function toObject
  9329. * @memberof game.del_mail_rsp
  9330. * @static
  9331. * @param {game.del_mail_rsp} message del_mail_rsp
  9332. * @param {$protobuf.IConversionOptions} [options] Conversion options
  9333. * @returns {Object.<string,*>} Plain object
  9334. */
  9335. del_mail_rsp.toObject = function toObject(message, options) {
  9336. if (!options)
  9337. options = {};
  9338. let object = {};
  9339. if (options.arrays || options.defaults)
  9340. object.list = [];
  9341. if (options.defaults)
  9342. if ($util.Long) {
  9343. let long = new $util.Long(0, 0, false);
  9344. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  9345. } else
  9346. object.errno = options.longs === String ? "0" : 0;
  9347. if (message.errno != null && message.hasOwnProperty("errno"))
  9348. if (typeof message.errno === "number")
  9349. object.errno = options.longs === String ? String(message.errno) : message.errno;
  9350. else
  9351. 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;
  9352. if (message.list && message.list.length) {
  9353. object.list = [];
  9354. for (let j = 0; j < message.list.length; ++j)
  9355. object.list[j] = message.list[j];
  9356. }
  9357. return object;
  9358. };
  9359. /**
  9360. * Converts this del_mail_rsp to JSON.
  9361. * @function toJSON
  9362. * @memberof game.del_mail_rsp
  9363. * @instance
  9364. * @returns {Object.<string,*>} JSON object
  9365. */
  9366. del_mail_rsp.prototype.toJSON = function toJSON() {
  9367. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  9368. };
  9369. return del_mail_rsp;
  9370. })();
  9371. game.flag_mail = (function() {
  9372. /**
  9373. * Properties of a flag_mail.
  9374. * @memberof game
  9375. * @interface Iflag_mail
  9376. * @property {Array.<string>|null} [list] flag_mail list
  9377. */
  9378. /**
  9379. * Constructs a new flag_mail.
  9380. * @memberof game
  9381. * @classdesc Represents a flag_mail.
  9382. * @implements Iflag_mail
  9383. * @constructor
  9384. * @param {game.Iflag_mail=} [properties] Properties to set
  9385. */
  9386. function flag_mail(properties) {
  9387. this.list = [];
  9388. if (properties)
  9389. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  9390. if (properties[keys[i]] != null)
  9391. this[keys[i]] = properties[keys[i]];
  9392. }
  9393. /**
  9394. * flag_mail list.
  9395. * @member {Array.<string>} list
  9396. * @memberof game.flag_mail
  9397. * @instance
  9398. */
  9399. flag_mail.prototype.list = $util.emptyArray;
  9400. /**
  9401. * Creates a new flag_mail instance using the specified properties.
  9402. * @function create
  9403. * @memberof game.flag_mail
  9404. * @static
  9405. * @param {game.Iflag_mail=} [properties] Properties to set
  9406. * @returns {game.flag_mail} flag_mail instance
  9407. */
  9408. flag_mail.create = function create(properties) {
  9409. return new flag_mail(properties);
  9410. };
  9411. /**
  9412. * Encodes the specified flag_mail message. Does not implicitly {@link game.flag_mail.verify|verify} messages.
  9413. * @function encode
  9414. * @memberof game.flag_mail
  9415. * @static
  9416. * @param {game.Iflag_mail} message flag_mail message or plain object to encode
  9417. * @param {$protobuf.Writer} [writer] Writer to encode to
  9418. * @returns {$protobuf.Writer} Writer
  9419. */
  9420. flag_mail.encode = function encode(message, writer) {
  9421. if (!writer)
  9422. writer = $Writer.create();
  9423. if (message.list != null && message.list.length)
  9424. for (let i = 0; i < message.list.length; ++i)
  9425. writer.uint32(/* id 1, wireType 2 =*/10).string(message.list[i]);
  9426. return writer;
  9427. };
  9428. /**
  9429. * Encodes the specified flag_mail message, length delimited. Does not implicitly {@link game.flag_mail.verify|verify} messages.
  9430. * @function encodeDelimited
  9431. * @memberof game.flag_mail
  9432. * @static
  9433. * @param {game.Iflag_mail} message flag_mail message or plain object to encode
  9434. * @param {$protobuf.Writer} [writer] Writer to encode to
  9435. * @returns {$protobuf.Writer} Writer
  9436. */
  9437. flag_mail.encodeDelimited = function encodeDelimited(message, writer) {
  9438. return this.encode(message, writer).ldelim();
  9439. };
  9440. /**
  9441. * Decodes a flag_mail message from the specified reader or buffer.
  9442. * @function decode
  9443. * @memberof game.flag_mail
  9444. * @static
  9445. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  9446. * @param {number} [length] Message length if known beforehand
  9447. * @returns {game.flag_mail} flag_mail
  9448. * @throws {Error} If the payload is not a reader or valid buffer
  9449. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  9450. */
  9451. flag_mail.decode = function decode(reader, length) {
  9452. if (!(reader instanceof $Reader))
  9453. reader = $Reader.create(reader);
  9454. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.flag_mail();
  9455. while (reader.pos < end) {
  9456. let tag = reader.uint32();
  9457. switch (tag >>> 3) {
  9458. case 1:
  9459. if (!(message.list && message.list.length))
  9460. message.list = [];
  9461. message.list.push(reader.string());
  9462. break;
  9463. default:
  9464. reader.skipType(tag & 7);
  9465. break;
  9466. }
  9467. }
  9468. return message;
  9469. };
  9470. /**
  9471. * Decodes a flag_mail message from the specified reader or buffer, length delimited.
  9472. * @function decodeDelimited
  9473. * @memberof game.flag_mail
  9474. * @static
  9475. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  9476. * @returns {game.flag_mail} flag_mail
  9477. * @throws {Error} If the payload is not a reader or valid buffer
  9478. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  9479. */
  9480. flag_mail.decodeDelimited = function decodeDelimited(reader) {
  9481. if (!(reader instanceof $Reader))
  9482. reader = new $Reader(reader);
  9483. return this.decode(reader, reader.uint32());
  9484. };
  9485. /**
  9486. * Verifies a flag_mail message.
  9487. * @function verify
  9488. * @memberof game.flag_mail
  9489. * @static
  9490. * @param {Object.<string,*>} message Plain object to verify
  9491. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  9492. */
  9493. flag_mail.verify = function verify(message) {
  9494. if (typeof message !== "object" || message === null)
  9495. return "object expected";
  9496. if (message.list != null && message.hasOwnProperty("list")) {
  9497. if (!Array.isArray(message.list))
  9498. return "list: array expected";
  9499. for (let i = 0; i < message.list.length; ++i)
  9500. if (!$util.isString(message.list[i]))
  9501. return "list: string[] expected";
  9502. }
  9503. return null;
  9504. };
  9505. /**
  9506. * Creates a flag_mail message from a plain object. Also converts values to their respective internal types.
  9507. * @function fromObject
  9508. * @memberof game.flag_mail
  9509. * @static
  9510. * @param {Object.<string,*>} object Plain object
  9511. * @returns {game.flag_mail} flag_mail
  9512. */
  9513. flag_mail.fromObject = function fromObject(object) {
  9514. if (object instanceof $root.game.flag_mail)
  9515. return object;
  9516. let message = new $root.game.flag_mail();
  9517. if (object.list) {
  9518. if (!Array.isArray(object.list))
  9519. throw TypeError(".game.flag_mail.list: array expected");
  9520. message.list = [];
  9521. for (let i = 0; i < object.list.length; ++i)
  9522. message.list[i] = String(object.list[i]);
  9523. }
  9524. return message;
  9525. };
  9526. /**
  9527. * Creates a plain object from a flag_mail message. Also converts values to other types if specified.
  9528. * @function toObject
  9529. * @memberof game.flag_mail
  9530. * @static
  9531. * @param {game.flag_mail} message flag_mail
  9532. * @param {$protobuf.IConversionOptions} [options] Conversion options
  9533. * @returns {Object.<string,*>} Plain object
  9534. */
  9535. flag_mail.toObject = function toObject(message, options) {
  9536. if (!options)
  9537. options = {};
  9538. let object = {};
  9539. if (options.arrays || options.defaults)
  9540. object.list = [];
  9541. if (message.list && message.list.length) {
  9542. object.list = [];
  9543. for (let j = 0; j < message.list.length; ++j)
  9544. object.list[j] = message.list[j];
  9545. }
  9546. return object;
  9547. };
  9548. /**
  9549. * Converts this flag_mail to JSON.
  9550. * @function toJSON
  9551. * @memberof game.flag_mail
  9552. * @instance
  9553. * @returns {Object.<string,*>} JSON object
  9554. */
  9555. flag_mail.prototype.toJSON = function toJSON() {
  9556. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  9557. };
  9558. return flag_mail;
  9559. })();
  9560. game.flag_mail_rsp = (function() {
  9561. /**
  9562. * Properties of a flag_mail_rsp.
  9563. * @memberof game
  9564. * @interface Iflag_mail_rsp
  9565. * @property {number|Long|null} [errno] flag_mail_rsp errno
  9566. */
  9567. /**
  9568. * Constructs a new flag_mail_rsp.
  9569. * @memberof game
  9570. * @classdesc Represents a flag_mail_rsp.
  9571. * @implements Iflag_mail_rsp
  9572. * @constructor
  9573. * @param {game.Iflag_mail_rsp=} [properties] Properties to set
  9574. */
  9575. function flag_mail_rsp(properties) {
  9576. if (properties)
  9577. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  9578. if (properties[keys[i]] != null)
  9579. this[keys[i]] = properties[keys[i]];
  9580. }
  9581. /**
  9582. * flag_mail_rsp errno.
  9583. * @member {number|Long} errno
  9584. * @memberof game.flag_mail_rsp
  9585. * @instance
  9586. */
  9587. flag_mail_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  9588. /**
  9589. * Creates a new flag_mail_rsp instance using the specified properties.
  9590. * @function create
  9591. * @memberof game.flag_mail_rsp
  9592. * @static
  9593. * @param {game.Iflag_mail_rsp=} [properties] Properties to set
  9594. * @returns {game.flag_mail_rsp} flag_mail_rsp instance
  9595. */
  9596. flag_mail_rsp.create = function create(properties) {
  9597. return new flag_mail_rsp(properties);
  9598. };
  9599. /**
  9600. * Encodes the specified flag_mail_rsp message. Does not implicitly {@link game.flag_mail_rsp.verify|verify} messages.
  9601. * @function encode
  9602. * @memberof game.flag_mail_rsp
  9603. * @static
  9604. * @param {game.Iflag_mail_rsp} message flag_mail_rsp message or plain object to encode
  9605. * @param {$protobuf.Writer} [writer] Writer to encode to
  9606. * @returns {$protobuf.Writer} Writer
  9607. */
  9608. flag_mail_rsp.encode = function encode(message, writer) {
  9609. if (!writer)
  9610. writer = $Writer.create();
  9611. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  9612. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  9613. return writer;
  9614. };
  9615. /**
  9616. * Encodes the specified flag_mail_rsp message, length delimited. Does not implicitly {@link game.flag_mail_rsp.verify|verify} messages.
  9617. * @function encodeDelimited
  9618. * @memberof game.flag_mail_rsp
  9619. * @static
  9620. * @param {game.Iflag_mail_rsp} message flag_mail_rsp message or plain object to encode
  9621. * @param {$protobuf.Writer} [writer] Writer to encode to
  9622. * @returns {$protobuf.Writer} Writer
  9623. */
  9624. flag_mail_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  9625. return this.encode(message, writer).ldelim();
  9626. };
  9627. /**
  9628. * Decodes a flag_mail_rsp message from the specified reader or buffer.
  9629. * @function decode
  9630. * @memberof game.flag_mail_rsp
  9631. * @static
  9632. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  9633. * @param {number} [length] Message length if known beforehand
  9634. * @returns {game.flag_mail_rsp} flag_mail_rsp
  9635. * @throws {Error} If the payload is not a reader or valid buffer
  9636. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  9637. */
  9638. flag_mail_rsp.decode = function decode(reader, length) {
  9639. if (!(reader instanceof $Reader))
  9640. reader = $Reader.create(reader);
  9641. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.flag_mail_rsp();
  9642. while (reader.pos < end) {
  9643. let tag = reader.uint32();
  9644. switch (tag >>> 3) {
  9645. case 1:
  9646. message.errno = reader.int64();
  9647. break;
  9648. default:
  9649. reader.skipType(tag & 7);
  9650. break;
  9651. }
  9652. }
  9653. return message;
  9654. };
  9655. /**
  9656. * Decodes a flag_mail_rsp message from the specified reader or buffer, length delimited.
  9657. * @function decodeDelimited
  9658. * @memberof game.flag_mail_rsp
  9659. * @static
  9660. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  9661. * @returns {game.flag_mail_rsp} flag_mail_rsp
  9662. * @throws {Error} If the payload is not a reader or valid buffer
  9663. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  9664. */
  9665. flag_mail_rsp.decodeDelimited = function decodeDelimited(reader) {
  9666. if (!(reader instanceof $Reader))
  9667. reader = new $Reader(reader);
  9668. return this.decode(reader, reader.uint32());
  9669. };
  9670. /**
  9671. * Verifies a flag_mail_rsp message.
  9672. * @function verify
  9673. * @memberof game.flag_mail_rsp
  9674. * @static
  9675. * @param {Object.<string,*>} message Plain object to verify
  9676. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  9677. */
  9678. flag_mail_rsp.verify = function verify(message) {
  9679. if (typeof message !== "object" || message === null)
  9680. return "object expected";
  9681. if (message.errno != null && message.hasOwnProperty("errno"))
  9682. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  9683. return "errno: integer|Long expected";
  9684. return null;
  9685. };
  9686. /**
  9687. * Creates a flag_mail_rsp message from a plain object. Also converts values to their respective internal types.
  9688. * @function fromObject
  9689. * @memberof game.flag_mail_rsp
  9690. * @static
  9691. * @param {Object.<string,*>} object Plain object
  9692. * @returns {game.flag_mail_rsp} flag_mail_rsp
  9693. */
  9694. flag_mail_rsp.fromObject = function fromObject(object) {
  9695. if (object instanceof $root.game.flag_mail_rsp)
  9696. return object;
  9697. let message = new $root.game.flag_mail_rsp();
  9698. if (object.errno != null)
  9699. if ($util.Long)
  9700. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  9701. else if (typeof object.errno === "string")
  9702. message.errno = parseInt(object.errno, 10);
  9703. else if (typeof object.errno === "number")
  9704. message.errno = object.errno;
  9705. else if (typeof object.errno === "object")
  9706. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  9707. return message;
  9708. };
  9709. /**
  9710. * Creates a plain object from a flag_mail_rsp message. Also converts values to other types if specified.
  9711. * @function toObject
  9712. * @memberof game.flag_mail_rsp
  9713. * @static
  9714. * @param {game.flag_mail_rsp} message flag_mail_rsp
  9715. * @param {$protobuf.IConversionOptions} [options] Conversion options
  9716. * @returns {Object.<string,*>} Plain object
  9717. */
  9718. flag_mail_rsp.toObject = function toObject(message, options) {
  9719. if (!options)
  9720. options = {};
  9721. let object = {};
  9722. if (options.defaults)
  9723. if ($util.Long) {
  9724. let long = new $util.Long(0, 0, false);
  9725. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  9726. } else
  9727. object.errno = options.longs === String ? "0" : 0;
  9728. if (message.errno != null && message.hasOwnProperty("errno"))
  9729. if (typeof message.errno === "number")
  9730. object.errno = options.longs === String ? String(message.errno) : message.errno;
  9731. else
  9732. 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;
  9733. return object;
  9734. };
  9735. /**
  9736. * Converts this flag_mail_rsp to JSON.
  9737. * @function toJSON
  9738. * @memberof game.flag_mail_rsp
  9739. * @instance
  9740. * @returns {Object.<string,*>} JSON object
  9741. */
  9742. flag_mail_rsp.prototype.toJSON = function toJSON() {
  9743. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  9744. };
  9745. return flag_mail_rsp;
  9746. })();
  9747. game.send_mail = (function() {
  9748. /**
  9749. * Properties of a send_mail.
  9750. * @memberof game
  9751. * @interface Isend_mail
  9752. * @property {Array.<game.Imail>|null} [list] send_mail list
  9753. */
  9754. /**
  9755. * Constructs a new send_mail.
  9756. * @memberof game
  9757. * @classdesc Represents a send_mail.
  9758. * @implements Isend_mail
  9759. * @constructor
  9760. * @param {game.Isend_mail=} [properties] Properties to set
  9761. */
  9762. function send_mail(properties) {
  9763. this.list = [];
  9764. if (properties)
  9765. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  9766. if (properties[keys[i]] != null)
  9767. this[keys[i]] = properties[keys[i]];
  9768. }
  9769. /**
  9770. * send_mail list.
  9771. * @member {Array.<game.Imail>} list
  9772. * @memberof game.send_mail
  9773. * @instance
  9774. */
  9775. send_mail.prototype.list = $util.emptyArray;
  9776. /**
  9777. * Creates a new send_mail instance using the specified properties.
  9778. * @function create
  9779. * @memberof game.send_mail
  9780. * @static
  9781. * @param {game.Isend_mail=} [properties] Properties to set
  9782. * @returns {game.send_mail} send_mail instance
  9783. */
  9784. send_mail.create = function create(properties) {
  9785. return new send_mail(properties);
  9786. };
  9787. /**
  9788. * Encodes the specified send_mail message. Does not implicitly {@link game.send_mail.verify|verify} messages.
  9789. * @function encode
  9790. * @memberof game.send_mail
  9791. * @static
  9792. * @param {game.Isend_mail} message send_mail message or plain object to encode
  9793. * @param {$protobuf.Writer} [writer] Writer to encode to
  9794. * @returns {$protobuf.Writer} Writer
  9795. */
  9796. send_mail.encode = function encode(message, writer) {
  9797. if (!writer)
  9798. writer = $Writer.create();
  9799. if (message.list != null && message.list.length)
  9800. for (let i = 0; i < message.list.length; ++i)
  9801. $root.game.mail.encode(message.list[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
  9802. return writer;
  9803. };
  9804. /**
  9805. * Encodes the specified send_mail message, length delimited. Does not implicitly {@link game.send_mail.verify|verify} messages.
  9806. * @function encodeDelimited
  9807. * @memberof game.send_mail
  9808. * @static
  9809. * @param {game.Isend_mail} message send_mail message or plain object to encode
  9810. * @param {$protobuf.Writer} [writer] Writer to encode to
  9811. * @returns {$protobuf.Writer} Writer
  9812. */
  9813. send_mail.encodeDelimited = function encodeDelimited(message, writer) {
  9814. return this.encode(message, writer).ldelim();
  9815. };
  9816. /**
  9817. * Decodes a send_mail message from the specified reader or buffer.
  9818. * @function decode
  9819. * @memberof game.send_mail
  9820. * @static
  9821. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  9822. * @param {number} [length] Message length if known beforehand
  9823. * @returns {game.send_mail} send_mail
  9824. * @throws {Error} If the payload is not a reader or valid buffer
  9825. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  9826. */
  9827. send_mail.decode = function decode(reader, length) {
  9828. if (!(reader instanceof $Reader))
  9829. reader = $Reader.create(reader);
  9830. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.send_mail();
  9831. while (reader.pos < end) {
  9832. let tag = reader.uint32();
  9833. switch (tag >>> 3) {
  9834. case 1:
  9835. if (!(message.list && message.list.length))
  9836. message.list = [];
  9837. message.list.push($root.game.mail.decode(reader, reader.uint32()));
  9838. break;
  9839. default:
  9840. reader.skipType(tag & 7);
  9841. break;
  9842. }
  9843. }
  9844. return message;
  9845. };
  9846. /**
  9847. * Decodes a send_mail message from the specified reader or buffer, length delimited.
  9848. * @function decodeDelimited
  9849. * @memberof game.send_mail
  9850. * @static
  9851. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  9852. * @returns {game.send_mail} send_mail
  9853. * @throws {Error} If the payload is not a reader or valid buffer
  9854. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  9855. */
  9856. send_mail.decodeDelimited = function decodeDelimited(reader) {
  9857. if (!(reader instanceof $Reader))
  9858. reader = new $Reader(reader);
  9859. return this.decode(reader, reader.uint32());
  9860. };
  9861. /**
  9862. * Verifies a send_mail message.
  9863. * @function verify
  9864. * @memberof game.send_mail
  9865. * @static
  9866. * @param {Object.<string,*>} message Plain object to verify
  9867. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  9868. */
  9869. send_mail.verify = function verify(message) {
  9870. if (typeof message !== "object" || message === null)
  9871. return "object expected";
  9872. if (message.list != null && message.hasOwnProperty("list")) {
  9873. if (!Array.isArray(message.list))
  9874. return "list: array expected";
  9875. for (let i = 0; i < message.list.length; ++i) {
  9876. let error = $root.game.mail.verify(message.list[i]);
  9877. if (error)
  9878. return "list." + error;
  9879. }
  9880. }
  9881. return null;
  9882. };
  9883. /**
  9884. * Creates a send_mail message from a plain object. Also converts values to their respective internal types.
  9885. * @function fromObject
  9886. * @memberof game.send_mail
  9887. * @static
  9888. * @param {Object.<string,*>} object Plain object
  9889. * @returns {game.send_mail} send_mail
  9890. */
  9891. send_mail.fromObject = function fromObject(object) {
  9892. if (object instanceof $root.game.send_mail)
  9893. return object;
  9894. let message = new $root.game.send_mail();
  9895. if (object.list) {
  9896. if (!Array.isArray(object.list))
  9897. throw TypeError(".game.send_mail.list: array expected");
  9898. message.list = [];
  9899. for (let i = 0; i < object.list.length; ++i) {
  9900. if (typeof object.list[i] !== "object")
  9901. throw TypeError(".game.send_mail.list: object expected");
  9902. message.list[i] = $root.game.mail.fromObject(object.list[i]);
  9903. }
  9904. }
  9905. return message;
  9906. };
  9907. /**
  9908. * Creates a plain object from a send_mail message. Also converts values to other types if specified.
  9909. * @function toObject
  9910. * @memberof game.send_mail
  9911. * @static
  9912. * @param {game.send_mail} message send_mail
  9913. * @param {$protobuf.IConversionOptions} [options] Conversion options
  9914. * @returns {Object.<string,*>} Plain object
  9915. */
  9916. send_mail.toObject = function toObject(message, options) {
  9917. if (!options)
  9918. options = {};
  9919. let object = {};
  9920. if (options.arrays || options.defaults)
  9921. object.list = [];
  9922. if (message.list && message.list.length) {
  9923. object.list = [];
  9924. for (let j = 0; j < message.list.length; ++j)
  9925. object.list[j] = $root.game.mail.toObject(message.list[j], options);
  9926. }
  9927. return object;
  9928. };
  9929. /**
  9930. * Converts this send_mail to JSON.
  9931. * @function toJSON
  9932. * @memberof game.send_mail
  9933. * @instance
  9934. * @returns {Object.<string,*>} JSON object
  9935. */
  9936. send_mail.prototype.toJSON = function toJSON() {
  9937. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  9938. };
  9939. return send_mail;
  9940. })();
  9941. game.simple_mail = (function() {
  9942. /**
  9943. * Properties of a simple_mail.
  9944. * @memberof game
  9945. * @interface Isimple_mail
  9946. * @property {number|Long|null} [num] simple_mail num
  9947. * @property {number|Long|null} [noread] simple_mail noread
  9948. * @property {number|Long|null} [needread] simple_mail needread
  9949. */
  9950. /**
  9951. * Constructs a new simple_mail.
  9952. * @memberof game
  9953. * @classdesc Represents a simple_mail.
  9954. * @implements Isimple_mail
  9955. * @constructor
  9956. * @param {game.Isimple_mail=} [properties] Properties to set
  9957. */
  9958. function simple_mail(properties) {
  9959. if (properties)
  9960. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  9961. if (properties[keys[i]] != null)
  9962. this[keys[i]] = properties[keys[i]];
  9963. }
  9964. /**
  9965. * simple_mail num.
  9966. * @member {number|Long} num
  9967. * @memberof game.simple_mail
  9968. * @instance
  9969. */
  9970. simple_mail.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  9971. /**
  9972. * simple_mail noread.
  9973. * @member {number|Long} noread
  9974. * @memberof game.simple_mail
  9975. * @instance
  9976. */
  9977. simple_mail.prototype.noread = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  9978. /**
  9979. * simple_mail needread.
  9980. * @member {number|Long} needread
  9981. * @memberof game.simple_mail
  9982. * @instance
  9983. */
  9984. simple_mail.prototype.needread = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  9985. /**
  9986. * Creates a new simple_mail instance using the specified properties.
  9987. * @function create
  9988. * @memberof game.simple_mail
  9989. * @static
  9990. * @param {game.Isimple_mail=} [properties] Properties to set
  9991. * @returns {game.simple_mail} simple_mail instance
  9992. */
  9993. simple_mail.create = function create(properties) {
  9994. return new simple_mail(properties);
  9995. };
  9996. /**
  9997. * Encodes the specified simple_mail message. Does not implicitly {@link game.simple_mail.verify|verify} messages.
  9998. * @function encode
  9999. * @memberof game.simple_mail
  10000. * @static
  10001. * @param {game.Isimple_mail} message simple_mail message or plain object to encode
  10002. * @param {$protobuf.Writer} [writer] Writer to encode to
  10003. * @returns {$protobuf.Writer} Writer
  10004. */
  10005. simple_mail.encode = function encode(message, writer) {
  10006. if (!writer)
  10007. writer = $Writer.create();
  10008. if (message.num != null && Object.hasOwnProperty.call(message, "num"))
  10009. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.num);
  10010. if (message.noread != null && Object.hasOwnProperty.call(message, "noread"))
  10011. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.noread);
  10012. if (message.needread != null && Object.hasOwnProperty.call(message, "needread"))
  10013. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.needread);
  10014. return writer;
  10015. };
  10016. /**
  10017. * Encodes the specified simple_mail message, length delimited. Does not implicitly {@link game.simple_mail.verify|verify} messages.
  10018. * @function encodeDelimited
  10019. * @memberof game.simple_mail
  10020. * @static
  10021. * @param {game.Isimple_mail} message simple_mail message or plain object to encode
  10022. * @param {$protobuf.Writer} [writer] Writer to encode to
  10023. * @returns {$protobuf.Writer} Writer
  10024. */
  10025. simple_mail.encodeDelimited = function encodeDelimited(message, writer) {
  10026. return this.encode(message, writer).ldelim();
  10027. };
  10028. /**
  10029. * Decodes a simple_mail message from the specified reader or buffer.
  10030. * @function decode
  10031. * @memberof game.simple_mail
  10032. * @static
  10033. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  10034. * @param {number} [length] Message length if known beforehand
  10035. * @returns {game.simple_mail} simple_mail
  10036. * @throws {Error} If the payload is not a reader or valid buffer
  10037. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  10038. */
  10039. simple_mail.decode = function decode(reader, length) {
  10040. if (!(reader instanceof $Reader))
  10041. reader = $Reader.create(reader);
  10042. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.simple_mail();
  10043. while (reader.pos < end) {
  10044. let tag = reader.uint32();
  10045. switch (tag >>> 3) {
  10046. case 1:
  10047. message.num = reader.int64();
  10048. break;
  10049. case 2:
  10050. message.noread = reader.int64();
  10051. break;
  10052. case 3:
  10053. message.needread = reader.int64();
  10054. break;
  10055. default:
  10056. reader.skipType(tag & 7);
  10057. break;
  10058. }
  10059. }
  10060. return message;
  10061. };
  10062. /**
  10063. * Decodes a simple_mail message from the specified reader or buffer, length delimited.
  10064. * @function decodeDelimited
  10065. * @memberof game.simple_mail
  10066. * @static
  10067. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  10068. * @returns {game.simple_mail} simple_mail
  10069. * @throws {Error} If the payload is not a reader or valid buffer
  10070. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  10071. */
  10072. simple_mail.decodeDelimited = function decodeDelimited(reader) {
  10073. if (!(reader instanceof $Reader))
  10074. reader = new $Reader(reader);
  10075. return this.decode(reader, reader.uint32());
  10076. };
  10077. /**
  10078. * Verifies a simple_mail message.
  10079. * @function verify
  10080. * @memberof game.simple_mail
  10081. * @static
  10082. * @param {Object.<string,*>} message Plain object to verify
  10083. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  10084. */
  10085. simple_mail.verify = function verify(message) {
  10086. if (typeof message !== "object" || message === null)
  10087. return "object expected";
  10088. if (message.num != null && message.hasOwnProperty("num"))
  10089. if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
  10090. return "num: integer|Long expected";
  10091. if (message.noread != null && message.hasOwnProperty("noread"))
  10092. if (!$util.isInteger(message.noread) && !(message.noread && $util.isInteger(message.noread.low) && $util.isInteger(message.noread.high)))
  10093. return "noread: integer|Long expected";
  10094. if (message.needread != null && message.hasOwnProperty("needread"))
  10095. if (!$util.isInteger(message.needread) && !(message.needread && $util.isInteger(message.needread.low) && $util.isInteger(message.needread.high)))
  10096. return "needread: integer|Long expected";
  10097. return null;
  10098. };
  10099. /**
  10100. * Creates a simple_mail message from a plain object. Also converts values to their respective internal types.
  10101. * @function fromObject
  10102. * @memberof game.simple_mail
  10103. * @static
  10104. * @param {Object.<string,*>} object Plain object
  10105. * @returns {game.simple_mail} simple_mail
  10106. */
  10107. simple_mail.fromObject = function fromObject(object) {
  10108. if (object instanceof $root.game.simple_mail)
  10109. return object;
  10110. let message = new $root.game.simple_mail();
  10111. if (object.num != null)
  10112. if ($util.Long)
  10113. (message.num = $util.Long.fromValue(object.num)).unsigned = false;
  10114. else if (typeof object.num === "string")
  10115. message.num = parseInt(object.num, 10);
  10116. else if (typeof object.num === "number")
  10117. message.num = object.num;
  10118. else if (typeof object.num === "object")
  10119. message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
  10120. if (object.noread != null)
  10121. if ($util.Long)
  10122. (message.noread = $util.Long.fromValue(object.noread)).unsigned = false;
  10123. else if (typeof object.noread === "string")
  10124. message.noread = parseInt(object.noread, 10);
  10125. else if (typeof object.noread === "number")
  10126. message.noread = object.noread;
  10127. else if (typeof object.noread === "object")
  10128. message.noread = new $util.LongBits(object.noread.low >>> 0, object.noread.high >>> 0).toNumber();
  10129. if (object.needread != null)
  10130. if ($util.Long)
  10131. (message.needread = $util.Long.fromValue(object.needread)).unsigned = false;
  10132. else if (typeof object.needread === "string")
  10133. message.needread = parseInt(object.needread, 10);
  10134. else if (typeof object.needread === "number")
  10135. message.needread = object.needread;
  10136. else if (typeof object.needread === "object")
  10137. message.needread = new $util.LongBits(object.needread.low >>> 0, object.needread.high >>> 0).toNumber();
  10138. return message;
  10139. };
  10140. /**
  10141. * Creates a plain object from a simple_mail message. Also converts values to other types if specified.
  10142. * @function toObject
  10143. * @memberof game.simple_mail
  10144. * @static
  10145. * @param {game.simple_mail} message simple_mail
  10146. * @param {$protobuf.IConversionOptions} [options] Conversion options
  10147. * @returns {Object.<string,*>} Plain object
  10148. */
  10149. simple_mail.toObject = function toObject(message, options) {
  10150. if (!options)
  10151. options = {};
  10152. let object = {};
  10153. if (options.defaults) {
  10154. if ($util.Long) {
  10155. let long = new $util.Long(0, 0, false);
  10156. object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  10157. } else
  10158. object.num = options.longs === String ? "0" : 0;
  10159. if ($util.Long) {
  10160. let long = new $util.Long(0, 0, false);
  10161. object.noread = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  10162. } else
  10163. object.noread = options.longs === String ? "0" : 0;
  10164. if ($util.Long) {
  10165. let long = new $util.Long(0, 0, false);
  10166. object.needread = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  10167. } else
  10168. object.needread = options.longs === String ? "0" : 0;
  10169. }
  10170. if (message.num != null && message.hasOwnProperty("num"))
  10171. if (typeof message.num === "number")
  10172. object.num = options.longs === String ? String(message.num) : message.num;
  10173. else
  10174. 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;
  10175. if (message.noread != null && message.hasOwnProperty("noread"))
  10176. if (typeof message.noread === "number")
  10177. object.noread = options.longs === String ? String(message.noread) : message.noread;
  10178. else
  10179. 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;
  10180. if (message.needread != null && message.hasOwnProperty("needread"))
  10181. if (typeof message.needread === "number")
  10182. object.needread = options.longs === String ? String(message.needread) : message.needread;
  10183. else
  10184. 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;
  10185. return object;
  10186. };
  10187. /**
  10188. * Converts this simple_mail to JSON.
  10189. * @function toJSON
  10190. * @memberof game.simple_mail
  10191. * @instance
  10192. * @returns {Object.<string,*>} JSON object
  10193. */
  10194. simple_mail.prototype.toJSON = function toJSON() {
  10195. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  10196. };
  10197. return simple_mail;
  10198. })();
  10199. game.embattle_get_data = (function() {
  10200. /**
  10201. * Properties of an embattle_get_data.
  10202. * @memberof game
  10203. * @interface Iembattle_get_data
  10204. */
  10205. /**
  10206. * Constructs a new embattle_get_data.
  10207. * @memberof game
  10208. * @classdesc Represents an embattle_get_data.
  10209. * @implements Iembattle_get_data
  10210. * @constructor
  10211. * @param {game.Iembattle_get_data=} [properties] Properties to set
  10212. */
  10213. function embattle_get_data(properties) {
  10214. if (properties)
  10215. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  10216. if (properties[keys[i]] != null)
  10217. this[keys[i]] = properties[keys[i]];
  10218. }
  10219. /**
  10220. * Creates a new embattle_get_data instance using the specified properties.
  10221. * @function create
  10222. * @memberof game.embattle_get_data
  10223. * @static
  10224. * @param {game.Iembattle_get_data=} [properties] Properties to set
  10225. * @returns {game.embattle_get_data} embattle_get_data instance
  10226. */
  10227. embattle_get_data.create = function create(properties) {
  10228. return new embattle_get_data(properties);
  10229. };
  10230. /**
  10231. * Encodes the specified embattle_get_data message. Does not implicitly {@link game.embattle_get_data.verify|verify} messages.
  10232. * @function encode
  10233. * @memberof game.embattle_get_data
  10234. * @static
  10235. * @param {game.Iembattle_get_data} message embattle_get_data message or plain object to encode
  10236. * @param {$protobuf.Writer} [writer] Writer to encode to
  10237. * @returns {$protobuf.Writer} Writer
  10238. */
  10239. embattle_get_data.encode = function encode(message, writer) {
  10240. if (!writer)
  10241. writer = $Writer.create();
  10242. return writer;
  10243. };
  10244. /**
  10245. * Encodes the specified embattle_get_data message, length delimited. Does not implicitly {@link game.embattle_get_data.verify|verify} messages.
  10246. * @function encodeDelimited
  10247. * @memberof game.embattle_get_data
  10248. * @static
  10249. * @param {game.Iembattle_get_data} message embattle_get_data message or plain object to encode
  10250. * @param {$protobuf.Writer} [writer] Writer to encode to
  10251. * @returns {$protobuf.Writer} Writer
  10252. */
  10253. embattle_get_data.encodeDelimited = function encodeDelimited(message, writer) {
  10254. return this.encode(message, writer).ldelim();
  10255. };
  10256. /**
  10257. * Decodes an embattle_get_data message from the specified reader or buffer.
  10258. * @function decode
  10259. * @memberof game.embattle_get_data
  10260. * @static
  10261. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  10262. * @param {number} [length] Message length if known beforehand
  10263. * @returns {game.embattle_get_data} embattle_get_data
  10264. * @throws {Error} If the payload is not a reader or valid buffer
  10265. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  10266. */
  10267. embattle_get_data.decode = function decode(reader, length) {
  10268. if (!(reader instanceof $Reader))
  10269. reader = $Reader.create(reader);
  10270. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.embattle_get_data();
  10271. while (reader.pos < end) {
  10272. let tag = reader.uint32();
  10273. switch (tag >>> 3) {
  10274. default:
  10275. reader.skipType(tag & 7);
  10276. break;
  10277. }
  10278. }
  10279. return message;
  10280. };
  10281. /**
  10282. * Decodes an embattle_get_data message from the specified reader or buffer, length delimited.
  10283. * @function decodeDelimited
  10284. * @memberof game.embattle_get_data
  10285. * @static
  10286. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  10287. * @returns {game.embattle_get_data} embattle_get_data
  10288. * @throws {Error} If the payload is not a reader or valid buffer
  10289. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  10290. */
  10291. embattle_get_data.decodeDelimited = function decodeDelimited(reader) {
  10292. if (!(reader instanceof $Reader))
  10293. reader = new $Reader(reader);
  10294. return this.decode(reader, reader.uint32());
  10295. };
  10296. /**
  10297. * Verifies an embattle_get_data message.
  10298. * @function verify
  10299. * @memberof game.embattle_get_data
  10300. * @static
  10301. * @param {Object.<string,*>} message Plain object to verify
  10302. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  10303. */
  10304. embattle_get_data.verify = function verify(message) {
  10305. if (typeof message !== "object" || message === null)
  10306. return "object expected";
  10307. return null;
  10308. };
  10309. /**
  10310. * Creates an embattle_get_data message from a plain object. Also converts values to their respective internal types.
  10311. * @function fromObject
  10312. * @memberof game.embattle_get_data
  10313. * @static
  10314. * @param {Object.<string,*>} object Plain object
  10315. * @returns {game.embattle_get_data} embattle_get_data
  10316. */
  10317. embattle_get_data.fromObject = function fromObject(object) {
  10318. if (object instanceof $root.game.embattle_get_data)
  10319. return object;
  10320. return new $root.game.embattle_get_data();
  10321. };
  10322. /**
  10323. * Creates a plain object from an embattle_get_data message. Also converts values to other types if specified.
  10324. * @function toObject
  10325. * @memberof game.embattle_get_data
  10326. * @static
  10327. * @param {game.embattle_get_data} message embattle_get_data
  10328. * @param {$protobuf.IConversionOptions} [options] Conversion options
  10329. * @returns {Object.<string,*>} Plain object
  10330. */
  10331. embattle_get_data.toObject = function toObject() {
  10332. return {};
  10333. };
  10334. /**
  10335. * Converts this embattle_get_data to JSON.
  10336. * @function toJSON
  10337. * @memberof game.embattle_get_data
  10338. * @instance
  10339. * @returns {Object.<string,*>} JSON object
  10340. */
  10341. embattle_get_data.prototype.toJSON = function toJSON() {
  10342. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  10343. };
  10344. return embattle_get_data;
  10345. })();
  10346. game.embattle_get_data_rsp = (function() {
  10347. /**
  10348. * Properties of an embattle_get_data_rsp.
  10349. * @memberof game
  10350. * @interface Iembattle_get_data_rsp
  10351. * @property {number|Long|null} [errno] embattle_get_data_rsp errno
  10352. * @property {Array.<game.Isid_pos>|null} [list] embattle_get_data_rsp list
  10353. * @property {Array.<game.Isid_pos>|null} [cardList] embattle_get_data_rsp cardList
  10354. */
  10355. /**
  10356. * Constructs a new embattle_get_data_rsp.
  10357. * @memberof game
  10358. * @classdesc Represents an embattle_get_data_rsp.
  10359. * @implements Iembattle_get_data_rsp
  10360. * @constructor
  10361. * @param {game.Iembattle_get_data_rsp=} [properties] Properties to set
  10362. */
  10363. function embattle_get_data_rsp(properties) {
  10364. this.list = [];
  10365. this.cardList = [];
  10366. if (properties)
  10367. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  10368. if (properties[keys[i]] != null)
  10369. this[keys[i]] = properties[keys[i]];
  10370. }
  10371. /**
  10372. * embattle_get_data_rsp errno.
  10373. * @member {number|Long} errno
  10374. * @memberof game.embattle_get_data_rsp
  10375. * @instance
  10376. */
  10377. embattle_get_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  10378. /**
  10379. * embattle_get_data_rsp list.
  10380. * @member {Array.<game.Isid_pos>} list
  10381. * @memberof game.embattle_get_data_rsp
  10382. * @instance
  10383. */
  10384. embattle_get_data_rsp.prototype.list = $util.emptyArray;
  10385. /**
  10386. * embattle_get_data_rsp cardList.
  10387. * @member {Array.<game.Isid_pos>} cardList
  10388. * @memberof game.embattle_get_data_rsp
  10389. * @instance
  10390. */
  10391. embattle_get_data_rsp.prototype.cardList = $util.emptyArray;
  10392. /**
  10393. * Creates a new embattle_get_data_rsp instance using the specified properties.
  10394. * @function create
  10395. * @memberof game.embattle_get_data_rsp
  10396. * @static
  10397. * @param {game.Iembattle_get_data_rsp=} [properties] Properties to set
  10398. * @returns {game.embattle_get_data_rsp} embattle_get_data_rsp instance
  10399. */
  10400. embattle_get_data_rsp.create = function create(properties) {
  10401. return new embattle_get_data_rsp(properties);
  10402. };
  10403. /**
  10404. * Encodes the specified embattle_get_data_rsp message. Does not implicitly {@link game.embattle_get_data_rsp.verify|verify} messages.
  10405. * @function encode
  10406. * @memberof game.embattle_get_data_rsp
  10407. * @static
  10408. * @param {game.Iembattle_get_data_rsp} message embattle_get_data_rsp message or plain object to encode
  10409. * @param {$protobuf.Writer} [writer] Writer to encode to
  10410. * @returns {$protobuf.Writer} Writer
  10411. */
  10412. embattle_get_data_rsp.encode = function encode(message, writer) {
  10413. if (!writer)
  10414. writer = $Writer.create();
  10415. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  10416. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  10417. if (message.list != null && message.list.length)
  10418. for (let i = 0; i < message.list.length; ++i)
  10419. $root.game.sid_pos.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  10420. if (message.cardList != null && message.cardList.length)
  10421. for (let i = 0; i < message.cardList.length; ++i)
  10422. $root.game.sid_pos.encode(message.cardList[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
  10423. return writer;
  10424. };
  10425. /**
  10426. * Encodes the specified embattle_get_data_rsp message, length delimited. Does not implicitly {@link game.embattle_get_data_rsp.verify|verify} messages.
  10427. * @function encodeDelimited
  10428. * @memberof game.embattle_get_data_rsp
  10429. * @static
  10430. * @param {game.Iembattle_get_data_rsp} message embattle_get_data_rsp message or plain object to encode
  10431. * @param {$protobuf.Writer} [writer] Writer to encode to
  10432. * @returns {$protobuf.Writer} Writer
  10433. */
  10434. embattle_get_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  10435. return this.encode(message, writer).ldelim();
  10436. };
  10437. /**
  10438. * Decodes an embattle_get_data_rsp message from the specified reader or buffer.
  10439. * @function decode
  10440. * @memberof game.embattle_get_data_rsp
  10441. * @static
  10442. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  10443. * @param {number} [length] Message length if known beforehand
  10444. * @returns {game.embattle_get_data_rsp} embattle_get_data_rsp
  10445. * @throws {Error} If the payload is not a reader or valid buffer
  10446. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  10447. */
  10448. embattle_get_data_rsp.decode = function decode(reader, length) {
  10449. if (!(reader instanceof $Reader))
  10450. reader = $Reader.create(reader);
  10451. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.embattle_get_data_rsp();
  10452. while (reader.pos < end) {
  10453. let tag = reader.uint32();
  10454. switch (tag >>> 3) {
  10455. case 1:
  10456. message.errno = reader.int64();
  10457. break;
  10458. case 2:
  10459. if (!(message.list && message.list.length))
  10460. message.list = [];
  10461. message.list.push($root.game.sid_pos.decode(reader, reader.uint32()));
  10462. break;
  10463. case 3:
  10464. if (!(message.cardList && message.cardList.length))
  10465. message.cardList = [];
  10466. message.cardList.push($root.game.sid_pos.decode(reader, reader.uint32()));
  10467. break;
  10468. default:
  10469. reader.skipType(tag & 7);
  10470. break;
  10471. }
  10472. }
  10473. return message;
  10474. };
  10475. /**
  10476. * Decodes an embattle_get_data_rsp message from the specified reader or buffer, length delimited.
  10477. * @function decodeDelimited
  10478. * @memberof game.embattle_get_data_rsp
  10479. * @static
  10480. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  10481. * @returns {game.embattle_get_data_rsp} embattle_get_data_rsp
  10482. * @throws {Error} If the payload is not a reader or valid buffer
  10483. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  10484. */
  10485. embattle_get_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  10486. if (!(reader instanceof $Reader))
  10487. reader = new $Reader(reader);
  10488. return this.decode(reader, reader.uint32());
  10489. };
  10490. /**
  10491. * Verifies an embattle_get_data_rsp message.
  10492. * @function verify
  10493. * @memberof game.embattle_get_data_rsp
  10494. * @static
  10495. * @param {Object.<string,*>} message Plain object to verify
  10496. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  10497. */
  10498. embattle_get_data_rsp.verify = function verify(message) {
  10499. if (typeof message !== "object" || message === null)
  10500. return "object expected";
  10501. if (message.errno != null && message.hasOwnProperty("errno"))
  10502. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  10503. return "errno: integer|Long expected";
  10504. if (message.list != null && message.hasOwnProperty("list")) {
  10505. if (!Array.isArray(message.list))
  10506. return "list: array expected";
  10507. for (let i = 0; i < message.list.length; ++i) {
  10508. let error = $root.game.sid_pos.verify(message.list[i]);
  10509. if (error)
  10510. return "list." + error;
  10511. }
  10512. }
  10513. if (message.cardList != null && message.hasOwnProperty("cardList")) {
  10514. if (!Array.isArray(message.cardList))
  10515. return "cardList: array expected";
  10516. for (let i = 0; i < message.cardList.length; ++i) {
  10517. let error = $root.game.sid_pos.verify(message.cardList[i]);
  10518. if (error)
  10519. return "cardList." + error;
  10520. }
  10521. }
  10522. return null;
  10523. };
  10524. /**
  10525. * Creates an embattle_get_data_rsp message from a plain object. Also converts values to their respective internal types.
  10526. * @function fromObject
  10527. * @memberof game.embattle_get_data_rsp
  10528. * @static
  10529. * @param {Object.<string,*>} object Plain object
  10530. * @returns {game.embattle_get_data_rsp} embattle_get_data_rsp
  10531. */
  10532. embattle_get_data_rsp.fromObject = function fromObject(object) {
  10533. if (object instanceof $root.game.embattle_get_data_rsp)
  10534. return object;
  10535. let message = new $root.game.embattle_get_data_rsp();
  10536. if (object.errno != null)
  10537. if ($util.Long)
  10538. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  10539. else if (typeof object.errno === "string")
  10540. message.errno = parseInt(object.errno, 10);
  10541. else if (typeof object.errno === "number")
  10542. message.errno = object.errno;
  10543. else if (typeof object.errno === "object")
  10544. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  10545. if (object.list) {
  10546. if (!Array.isArray(object.list))
  10547. throw TypeError(".game.embattle_get_data_rsp.list: array expected");
  10548. message.list = [];
  10549. for (let i = 0; i < object.list.length; ++i) {
  10550. if (typeof object.list[i] !== "object")
  10551. throw TypeError(".game.embattle_get_data_rsp.list: object expected");
  10552. message.list[i] = $root.game.sid_pos.fromObject(object.list[i]);
  10553. }
  10554. }
  10555. if (object.cardList) {
  10556. if (!Array.isArray(object.cardList))
  10557. throw TypeError(".game.embattle_get_data_rsp.cardList: array expected");
  10558. message.cardList = [];
  10559. for (let i = 0; i < object.cardList.length; ++i) {
  10560. if (typeof object.cardList[i] !== "object")
  10561. throw TypeError(".game.embattle_get_data_rsp.cardList: object expected");
  10562. message.cardList[i] = $root.game.sid_pos.fromObject(object.cardList[i]);
  10563. }
  10564. }
  10565. return message;
  10566. };
  10567. /**
  10568. * Creates a plain object from an embattle_get_data_rsp message. Also converts values to other types if specified.
  10569. * @function toObject
  10570. * @memberof game.embattle_get_data_rsp
  10571. * @static
  10572. * @param {game.embattle_get_data_rsp} message embattle_get_data_rsp
  10573. * @param {$protobuf.IConversionOptions} [options] Conversion options
  10574. * @returns {Object.<string,*>} Plain object
  10575. */
  10576. embattle_get_data_rsp.toObject = function toObject(message, options) {
  10577. if (!options)
  10578. options = {};
  10579. let object = {};
  10580. if (options.arrays || options.defaults) {
  10581. object.list = [];
  10582. object.cardList = [];
  10583. }
  10584. if (options.defaults)
  10585. if ($util.Long) {
  10586. let long = new $util.Long(0, 0, false);
  10587. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  10588. } else
  10589. object.errno = options.longs === String ? "0" : 0;
  10590. if (message.errno != null && message.hasOwnProperty("errno"))
  10591. if (typeof message.errno === "number")
  10592. object.errno = options.longs === String ? String(message.errno) : message.errno;
  10593. else
  10594. 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;
  10595. if (message.list && message.list.length) {
  10596. object.list = [];
  10597. for (let j = 0; j < message.list.length; ++j)
  10598. object.list[j] = $root.game.sid_pos.toObject(message.list[j], options);
  10599. }
  10600. if (message.cardList && message.cardList.length) {
  10601. object.cardList = [];
  10602. for (let j = 0; j < message.cardList.length; ++j)
  10603. object.cardList[j] = $root.game.sid_pos.toObject(message.cardList[j], options);
  10604. }
  10605. return object;
  10606. };
  10607. /**
  10608. * Converts this embattle_get_data_rsp to JSON.
  10609. * @function toJSON
  10610. * @memberof game.embattle_get_data_rsp
  10611. * @instance
  10612. * @returns {Object.<string,*>} JSON object
  10613. */
  10614. embattle_get_data_rsp.prototype.toJSON = function toJSON() {
  10615. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  10616. };
  10617. return embattle_get_data_rsp;
  10618. })();
  10619. game.embattle_battle = (function() {
  10620. /**
  10621. * Properties of an embattle_battle.
  10622. * @memberof game
  10623. * @interface Iembattle_battle
  10624. * @property {boolean|null} [skill] embattle_battle skill
  10625. * @property {string|null} [sid] embattle_battle sid
  10626. * @property {number|Long|null} [pos] embattle_battle pos
  10627. */
  10628. /**
  10629. * Constructs a new embattle_battle.
  10630. * @memberof game
  10631. * @classdesc Represents an embattle_battle.
  10632. * @implements Iembattle_battle
  10633. * @constructor
  10634. * @param {game.Iembattle_battle=} [properties] Properties to set
  10635. */
  10636. function embattle_battle(properties) {
  10637. if (properties)
  10638. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  10639. if (properties[keys[i]] != null)
  10640. this[keys[i]] = properties[keys[i]];
  10641. }
  10642. /**
  10643. * embattle_battle skill.
  10644. * @member {boolean} skill
  10645. * @memberof game.embattle_battle
  10646. * @instance
  10647. */
  10648. embattle_battle.prototype.skill = false;
  10649. /**
  10650. * embattle_battle sid.
  10651. * @member {string} sid
  10652. * @memberof game.embattle_battle
  10653. * @instance
  10654. */
  10655. embattle_battle.prototype.sid = "";
  10656. /**
  10657. * embattle_battle pos.
  10658. * @member {number|Long} pos
  10659. * @memberof game.embattle_battle
  10660. * @instance
  10661. */
  10662. embattle_battle.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  10663. /**
  10664. * Creates a new embattle_battle instance using the specified properties.
  10665. * @function create
  10666. * @memberof game.embattle_battle
  10667. * @static
  10668. * @param {game.Iembattle_battle=} [properties] Properties to set
  10669. * @returns {game.embattle_battle} embattle_battle instance
  10670. */
  10671. embattle_battle.create = function create(properties) {
  10672. return new embattle_battle(properties);
  10673. };
  10674. /**
  10675. * Encodes the specified embattle_battle message. Does not implicitly {@link game.embattle_battle.verify|verify} messages.
  10676. * @function encode
  10677. * @memberof game.embattle_battle
  10678. * @static
  10679. * @param {game.Iembattle_battle} message embattle_battle message or plain object to encode
  10680. * @param {$protobuf.Writer} [writer] Writer to encode to
  10681. * @returns {$protobuf.Writer} Writer
  10682. */
  10683. embattle_battle.encode = function encode(message, writer) {
  10684. if (!writer)
  10685. writer = $Writer.create();
  10686. if (message.skill != null && Object.hasOwnProperty.call(message, "skill"))
  10687. writer.uint32(/* id 1, wireType 0 =*/8).bool(message.skill);
  10688. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  10689. writer.uint32(/* id 2, wireType 2 =*/18).string(message.sid);
  10690. if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
  10691. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.pos);
  10692. return writer;
  10693. };
  10694. /**
  10695. * Encodes the specified embattle_battle message, length delimited. Does not implicitly {@link game.embattle_battle.verify|verify} messages.
  10696. * @function encodeDelimited
  10697. * @memberof game.embattle_battle
  10698. * @static
  10699. * @param {game.Iembattle_battle} message embattle_battle message or plain object to encode
  10700. * @param {$protobuf.Writer} [writer] Writer to encode to
  10701. * @returns {$protobuf.Writer} Writer
  10702. */
  10703. embattle_battle.encodeDelimited = function encodeDelimited(message, writer) {
  10704. return this.encode(message, writer).ldelim();
  10705. };
  10706. /**
  10707. * Decodes an embattle_battle message from the specified reader or buffer.
  10708. * @function decode
  10709. * @memberof game.embattle_battle
  10710. * @static
  10711. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  10712. * @param {number} [length] Message length if known beforehand
  10713. * @returns {game.embattle_battle} embattle_battle
  10714. * @throws {Error} If the payload is not a reader or valid buffer
  10715. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  10716. */
  10717. embattle_battle.decode = function decode(reader, length) {
  10718. if (!(reader instanceof $Reader))
  10719. reader = $Reader.create(reader);
  10720. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.embattle_battle();
  10721. while (reader.pos < end) {
  10722. let tag = reader.uint32();
  10723. switch (tag >>> 3) {
  10724. case 1:
  10725. message.skill = reader.bool();
  10726. break;
  10727. case 2:
  10728. message.sid = reader.string();
  10729. break;
  10730. case 3:
  10731. message.pos = reader.int64();
  10732. break;
  10733. default:
  10734. reader.skipType(tag & 7);
  10735. break;
  10736. }
  10737. }
  10738. return message;
  10739. };
  10740. /**
  10741. * Decodes an embattle_battle message from the specified reader or buffer, length delimited.
  10742. * @function decodeDelimited
  10743. * @memberof game.embattle_battle
  10744. * @static
  10745. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  10746. * @returns {game.embattle_battle} embattle_battle
  10747. * @throws {Error} If the payload is not a reader or valid buffer
  10748. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  10749. */
  10750. embattle_battle.decodeDelimited = function decodeDelimited(reader) {
  10751. if (!(reader instanceof $Reader))
  10752. reader = new $Reader(reader);
  10753. return this.decode(reader, reader.uint32());
  10754. };
  10755. /**
  10756. * Verifies an embattle_battle message.
  10757. * @function verify
  10758. * @memberof game.embattle_battle
  10759. * @static
  10760. * @param {Object.<string,*>} message Plain object to verify
  10761. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  10762. */
  10763. embattle_battle.verify = function verify(message) {
  10764. if (typeof message !== "object" || message === null)
  10765. return "object expected";
  10766. if (message.skill != null && message.hasOwnProperty("skill"))
  10767. if (typeof message.skill !== "boolean")
  10768. return "skill: boolean expected";
  10769. if (message.sid != null && message.hasOwnProperty("sid"))
  10770. if (!$util.isString(message.sid))
  10771. return "sid: string expected";
  10772. if (message.pos != null && message.hasOwnProperty("pos"))
  10773. if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
  10774. return "pos: integer|Long expected";
  10775. return null;
  10776. };
  10777. /**
  10778. * Creates an embattle_battle message from a plain object. Also converts values to their respective internal types.
  10779. * @function fromObject
  10780. * @memberof game.embattle_battle
  10781. * @static
  10782. * @param {Object.<string,*>} object Plain object
  10783. * @returns {game.embattle_battle} embattle_battle
  10784. */
  10785. embattle_battle.fromObject = function fromObject(object) {
  10786. if (object instanceof $root.game.embattle_battle)
  10787. return object;
  10788. let message = new $root.game.embattle_battle();
  10789. if (object.skill != null)
  10790. message.skill = Boolean(object.skill);
  10791. if (object.sid != null)
  10792. message.sid = String(object.sid);
  10793. if (object.pos != null)
  10794. if ($util.Long)
  10795. (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
  10796. else if (typeof object.pos === "string")
  10797. message.pos = parseInt(object.pos, 10);
  10798. else if (typeof object.pos === "number")
  10799. message.pos = object.pos;
  10800. else if (typeof object.pos === "object")
  10801. message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
  10802. return message;
  10803. };
  10804. /**
  10805. * Creates a plain object from an embattle_battle message. Also converts values to other types if specified.
  10806. * @function toObject
  10807. * @memberof game.embattle_battle
  10808. * @static
  10809. * @param {game.embattle_battle} message embattle_battle
  10810. * @param {$protobuf.IConversionOptions} [options] Conversion options
  10811. * @returns {Object.<string,*>} Plain object
  10812. */
  10813. embattle_battle.toObject = function toObject(message, options) {
  10814. if (!options)
  10815. options = {};
  10816. let object = {};
  10817. if (options.defaults) {
  10818. object.skill = false;
  10819. object.sid = "";
  10820. if ($util.Long) {
  10821. let long = new $util.Long(0, 0, false);
  10822. object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  10823. } else
  10824. object.pos = options.longs === String ? "0" : 0;
  10825. }
  10826. if (message.skill != null && message.hasOwnProperty("skill"))
  10827. object.skill = message.skill;
  10828. if (message.sid != null && message.hasOwnProperty("sid"))
  10829. object.sid = message.sid;
  10830. if (message.pos != null && message.hasOwnProperty("pos"))
  10831. if (typeof message.pos === "number")
  10832. object.pos = options.longs === String ? String(message.pos) : message.pos;
  10833. else
  10834. 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;
  10835. return object;
  10836. };
  10837. /**
  10838. * Converts this embattle_battle to JSON.
  10839. * @function toJSON
  10840. * @memberof game.embattle_battle
  10841. * @instance
  10842. * @returns {Object.<string,*>} JSON object
  10843. */
  10844. embattle_battle.prototype.toJSON = function toJSON() {
  10845. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  10846. };
  10847. return embattle_battle;
  10848. })();
  10849. game.embattle_battle_rsp = (function() {
  10850. /**
  10851. * Properties of an embattle_battle_rsp.
  10852. * @memberof game
  10853. * @interface Iembattle_battle_rsp
  10854. * @property {number|Long|null} [errno] embattle_battle_rsp errno
  10855. * @property {Array.<game.Isid_pos>|null} [list] embattle_battle_rsp list
  10856. * @property {Array.<game.Isid_pos>|null} [cardList] embattle_battle_rsp cardList
  10857. */
  10858. /**
  10859. * Constructs a new embattle_battle_rsp.
  10860. * @memberof game
  10861. * @classdesc Represents an embattle_battle_rsp.
  10862. * @implements Iembattle_battle_rsp
  10863. * @constructor
  10864. * @param {game.Iembattle_battle_rsp=} [properties] Properties to set
  10865. */
  10866. function embattle_battle_rsp(properties) {
  10867. this.list = [];
  10868. this.cardList = [];
  10869. if (properties)
  10870. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  10871. if (properties[keys[i]] != null)
  10872. this[keys[i]] = properties[keys[i]];
  10873. }
  10874. /**
  10875. * embattle_battle_rsp errno.
  10876. * @member {number|Long} errno
  10877. * @memberof game.embattle_battle_rsp
  10878. * @instance
  10879. */
  10880. embattle_battle_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  10881. /**
  10882. * embattle_battle_rsp list.
  10883. * @member {Array.<game.Isid_pos>} list
  10884. * @memberof game.embattle_battle_rsp
  10885. * @instance
  10886. */
  10887. embattle_battle_rsp.prototype.list = $util.emptyArray;
  10888. /**
  10889. * embattle_battle_rsp cardList.
  10890. * @member {Array.<game.Isid_pos>} cardList
  10891. * @memberof game.embattle_battle_rsp
  10892. * @instance
  10893. */
  10894. embattle_battle_rsp.prototype.cardList = $util.emptyArray;
  10895. /**
  10896. * Creates a new embattle_battle_rsp instance using the specified properties.
  10897. * @function create
  10898. * @memberof game.embattle_battle_rsp
  10899. * @static
  10900. * @param {game.Iembattle_battle_rsp=} [properties] Properties to set
  10901. * @returns {game.embattle_battle_rsp} embattle_battle_rsp instance
  10902. */
  10903. embattle_battle_rsp.create = function create(properties) {
  10904. return new embattle_battle_rsp(properties);
  10905. };
  10906. /**
  10907. * Encodes the specified embattle_battle_rsp message. Does not implicitly {@link game.embattle_battle_rsp.verify|verify} messages.
  10908. * @function encode
  10909. * @memberof game.embattle_battle_rsp
  10910. * @static
  10911. * @param {game.Iembattle_battle_rsp} message embattle_battle_rsp message or plain object to encode
  10912. * @param {$protobuf.Writer} [writer] Writer to encode to
  10913. * @returns {$protobuf.Writer} Writer
  10914. */
  10915. embattle_battle_rsp.encode = function encode(message, writer) {
  10916. if (!writer)
  10917. writer = $Writer.create();
  10918. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  10919. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  10920. if (message.list != null && message.list.length)
  10921. for (let i = 0; i < message.list.length; ++i)
  10922. $root.game.sid_pos.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  10923. if (message.cardList != null && message.cardList.length)
  10924. for (let i = 0; i < message.cardList.length; ++i)
  10925. $root.game.sid_pos.encode(message.cardList[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
  10926. return writer;
  10927. };
  10928. /**
  10929. * Encodes the specified embattle_battle_rsp message, length delimited. Does not implicitly {@link game.embattle_battle_rsp.verify|verify} messages.
  10930. * @function encodeDelimited
  10931. * @memberof game.embattle_battle_rsp
  10932. * @static
  10933. * @param {game.Iembattle_battle_rsp} message embattle_battle_rsp message or plain object to encode
  10934. * @param {$protobuf.Writer} [writer] Writer to encode to
  10935. * @returns {$protobuf.Writer} Writer
  10936. */
  10937. embattle_battle_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  10938. return this.encode(message, writer).ldelim();
  10939. };
  10940. /**
  10941. * Decodes an embattle_battle_rsp message from the specified reader or buffer.
  10942. * @function decode
  10943. * @memberof game.embattle_battle_rsp
  10944. * @static
  10945. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  10946. * @param {number} [length] Message length if known beforehand
  10947. * @returns {game.embattle_battle_rsp} embattle_battle_rsp
  10948. * @throws {Error} If the payload is not a reader or valid buffer
  10949. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  10950. */
  10951. embattle_battle_rsp.decode = function decode(reader, length) {
  10952. if (!(reader instanceof $Reader))
  10953. reader = $Reader.create(reader);
  10954. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.embattle_battle_rsp();
  10955. while (reader.pos < end) {
  10956. let tag = reader.uint32();
  10957. switch (tag >>> 3) {
  10958. case 1:
  10959. message.errno = reader.int64();
  10960. break;
  10961. case 2:
  10962. if (!(message.list && message.list.length))
  10963. message.list = [];
  10964. message.list.push($root.game.sid_pos.decode(reader, reader.uint32()));
  10965. break;
  10966. case 3:
  10967. if (!(message.cardList && message.cardList.length))
  10968. message.cardList = [];
  10969. message.cardList.push($root.game.sid_pos.decode(reader, reader.uint32()));
  10970. break;
  10971. default:
  10972. reader.skipType(tag & 7);
  10973. break;
  10974. }
  10975. }
  10976. return message;
  10977. };
  10978. /**
  10979. * Decodes an embattle_battle_rsp message from the specified reader or buffer, length delimited.
  10980. * @function decodeDelimited
  10981. * @memberof game.embattle_battle_rsp
  10982. * @static
  10983. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  10984. * @returns {game.embattle_battle_rsp} embattle_battle_rsp
  10985. * @throws {Error} If the payload is not a reader or valid buffer
  10986. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  10987. */
  10988. embattle_battle_rsp.decodeDelimited = function decodeDelimited(reader) {
  10989. if (!(reader instanceof $Reader))
  10990. reader = new $Reader(reader);
  10991. return this.decode(reader, reader.uint32());
  10992. };
  10993. /**
  10994. * Verifies an embattle_battle_rsp message.
  10995. * @function verify
  10996. * @memberof game.embattle_battle_rsp
  10997. * @static
  10998. * @param {Object.<string,*>} message Plain object to verify
  10999. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  11000. */
  11001. embattle_battle_rsp.verify = function verify(message) {
  11002. if (typeof message !== "object" || message === null)
  11003. return "object expected";
  11004. if (message.errno != null && message.hasOwnProperty("errno"))
  11005. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  11006. return "errno: integer|Long expected";
  11007. if (message.list != null && message.hasOwnProperty("list")) {
  11008. if (!Array.isArray(message.list))
  11009. return "list: array expected";
  11010. for (let i = 0; i < message.list.length; ++i) {
  11011. let error = $root.game.sid_pos.verify(message.list[i]);
  11012. if (error)
  11013. return "list." + error;
  11014. }
  11015. }
  11016. if (message.cardList != null && message.hasOwnProperty("cardList")) {
  11017. if (!Array.isArray(message.cardList))
  11018. return "cardList: array expected";
  11019. for (let i = 0; i < message.cardList.length; ++i) {
  11020. let error = $root.game.sid_pos.verify(message.cardList[i]);
  11021. if (error)
  11022. return "cardList." + error;
  11023. }
  11024. }
  11025. return null;
  11026. };
  11027. /**
  11028. * Creates an embattle_battle_rsp message from a plain object. Also converts values to their respective internal types.
  11029. * @function fromObject
  11030. * @memberof game.embattle_battle_rsp
  11031. * @static
  11032. * @param {Object.<string,*>} object Plain object
  11033. * @returns {game.embattle_battle_rsp} embattle_battle_rsp
  11034. */
  11035. embattle_battle_rsp.fromObject = function fromObject(object) {
  11036. if (object instanceof $root.game.embattle_battle_rsp)
  11037. return object;
  11038. let message = new $root.game.embattle_battle_rsp();
  11039. if (object.errno != null)
  11040. if ($util.Long)
  11041. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  11042. else if (typeof object.errno === "string")
  11043. message.errno = parseInt(object.errno, 10);
  11044. else if (typeof object.errno === "number")
  11045. message.errno = object.errno;
  11046. else if (typeof object.errno === "object")
  11047. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  11048. if (object.list) {
  11049. if (!Array.isArray(object.list))
  11050. throw TypeError(".game.embattle_battle_rsp.list: array expected");
  11051. message.list = [];
  11052. for (let i = 0; i < object.list.length; ++i) {
  11053. if (typeof object.list[i] !== "object")
  11054. throw TypeError(".game.embattle_battle_rsp.list: object expected");
  11055. message.list[i] = $root.game.sid_pos.fromObject(object.list[i]);
  11056. }
  11057. }
  11058. if (object.cardList) {
  11059. if (!Array.isArray(object.cardList))
  11060. throw TypeError(".game.embattle_battle_rsp.cardList: array expected");
  11061. message.cardList = [];
  11062. for (let i = 0; i < object.cardList.length; ++i) {
  11063. if (typeof object.cardList[i] !== "object")
  11064. throw TypeError(".game.embattle_battle_rsp.cardList: object expected");
  11065. message.cardList[i] = $root.game.sid_pos.fromObject(object.cardList[i]);
  11066. }
  11067. }
  11068. return message;
  11069. };
  11070. /**
  11071. * Creates a plain object from an embattle_battle_rsp message. Also converts values to other types if specified.
  11072. * @function toObject
  11073. * @memberof game.embattle_battle_rsp
  11074. * @static
  11075. * @param {game.embattle_battle_rsp} message embattle_battle_rsp
  11076. * @param {$protobuf.IConversionOptions} [options] Conversion options
  11077. * @returns {Object.<string,*>} Plain object
  11078. */
  11079. embattle_battle_rsp.toObject = function toObject(message, options) {
  11080. if (!options)
  11081. options = {};
  11082. let object = {};
  11083. if (options.arrays || options.defaults) {
  11084. object.list = [];
  11085. object.cardList = [];
  11086. }
  11087. if (options.defaults)
  11088. if ($util.Long) {
  11089. let long = new $util.Long(0, 0, false);
  11090. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  11091. } else
  11092. object.errno = options.longs === String ? "0" : 0;
  11093. if (message.errno != null && message.hasOwnProperty("errno"))
  11094. if (typeof message.errno === "number")
  11095. object.errno = options.longs === String ? String(message.errno) : message.errno;
  11096. else
  11097. 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;
  11098. if (message.list && message.list.length) {
  11099. object.list = [];
  11100. for (let j = 0; j < message.list.length; ++j)
  11101. object.list[j] = $root.game.sid_pos.toObject(message.list[j], options);
  11102. }
  11103. if (message.cardList && message.cardList.length) {
  11104. object.cardList = [];
  11105. for (let j = 0; j < message.cardList.length; ++j)
  11106. object.cardList[j] = $root.game.sid_pos.toObject(message.cardList[j], options);
  11107. }
  11108. return object;
  11109. };
  11110. /**
  11111. * Converts this embattle_battle_rsp to JSON.
  11112. * @function toJSON
  11113. * @memberof game.embattle_battle_rsp
  11114. * @instance
  11115. * @returns {Object.<string,*>} JSON object
  11116. */
  11117. embattle_battle_rsp.prototype.toJSON = function toJSON() {
  11118. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  11119. };
  11120. return embattle_battle_rsp;
  11121. })();
  11122. game.hero_get_data = (function() {
  11123. /**
  11124. * Properties of a hero_get_data.
  11125. * @memberof game
  11126. * @interface Ihero_get_data
  11127. */
  11128. /**
  11129. * Constructs a new hero_get_data.
  11130. * @memberof game
  11131. * @classdesc Represents a hero_get_data.
  11132. * @implements Ihero_get_data
  11133. * @constructor
  11134. * @param {game.Ihero_get_data=} [properties] Properties to set
  11135. */
  11136. function hero_get_data(properties) {
  11137. if (properties)
  11138. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  11139. if (properties[keys[i]] != null)
  11140. this[keys[i]] = properties[keys[i]];
  11141. }
  11142. /**
  11143. * Creates a new hero_get_data instance using the specified properties.
  11144. * @function create
  11145. * @memberof game.hero_get_data
  11146. * @static
  11147. * @param {game.Ihero_get_data=} [properties] Properties to set
  11148. * @returns {game.hero_get_data} hero_get_data instance
  11149. */
  11150. hero_get_data.create = function create(properties) {
  11151. return new hero_get_data(properties);
  11152. };
  11153. /**
  11154. * Encodes the specified hero_get_data message. Does not implicitly {@link game.hero_get_data.verify|verify} messages.
  11155. * @function encode
  11156. * @memberof game.hero_get_data
  11157. * @static
  11158. * @param {game.Ihero_get_data} message hero_get_data message or plain object to encode
  11159. * @param {$protobuf.Writer} [writer] Writer to encode to
  11160. * @returns {$protobuf.Writer} Writer
  11161. */
  11162. hero_get_data.encode = function encode(message, writer) {
  11163. if (!writer)
  11164. writer = $Writer.create();
  11165. return writer;
  11166. };
  11167. /**
  11168. * Encodes the specified hero_get_data message, length delimited. Does not implicitly {@link game.hero_get_data.verify|verify} messages.
  11169. * @function encodeDelimited
  11170. * @memberof game.hero_get_data
  11171. * @static
  11172. * @param {game.Ihero_get_data} message hero_get_data message or plain object to encode
  11173. * @param {$protobuf.Writer} [writer] Writer to encode to
  11174. * @returns {$protobuf.Writer} Writer
  11175. */
  11176. hero_get_data.encodeDelimited = function encodeDelimited(message, writer) {
  11177. return this.encode(message, writer).ldelim();
  11178. };
  11179. /**
  11180. * Decodes a hero_get_data message from the specified reader or buffer.
  11181. * @function decode
  11182. * @memberof game.hero_get_data
  11183. * @static
  11184. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  11185. * @param {number} [length] Message length if known beforehand
  11186. * @returns {game.hero_get_data} hero_get_data
  11187. * @throws {Error} If the payload is not a reader or valid buffer
  11188. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  11189. */
  11190. hero_get_data.decode = function decode(reader, length) {
  11191. if (!(reader instanceof $Reader))
  11192. reader = $Reader.create(reader);
  11193. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_get_data();
  11194. while (reader.pos < end) {
  11195. let tag = reader.uint32();
  11196. switch (tag >>> 3) {
  11197. default:
  11198. reader.skipType(tag & 7);
  11199. break;
  11200. }
  11201. }
  11202. return message;
  11203. };
  11204. /**
  11205. * Decodes a hero_get_data message from the specified reader or buffer, length delimited.
  11206. * @function decodeDelimited
  11207. * @memberof game.hero_get_data
  11208. * @static
  11209. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  11210. * @returns {game.hero_get_data} hero_get_data
  11211. * @throws {Error} If the payload is not a reader or valid buffer
  11212. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  11213. */
  11214. hero_get_data.decodeDelimited = function decodeDelimited(reader) {
  11215. if (!(reader instanceof $Reader))
  11216. reader = new $Reader(reader);
  11217. return this.decode(reader, reader.uint32());
  11218. };
  11219. /**
  11220. * Verifies a hero_get_data message.
  11221. * @function verify
  11222. * @memberof game.hero_get_data
  11223. * @static
  11224. * @param {Object.<string,*>} message Plain object to verify
  11225. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  11226. */
  11227. hero_get_data.verify = function verify(message) {
  11228. if (typeof message !== "object" || message === null)
  11229. return "object expected";
  11230. return null;
  11231. };
  11232. /**
  11233. * Creates a hero_get_data message from a plain object. Also converts values to their respective internal types.
  11234. * @function fromObject
  11235. * @memberof game.hero_get_data
  11236. * @static
  11237. * @param {Object.<string,*>} object Plain object
  11238. * @returns {game.hero_get_data} hero_get_data
  11239. */
  11240. hero_get_data.fromObject = function fromObject(object) {
  11241. if (object instanceof $root.game.hero_get_data)
  11242. return object;
  11243. return new $root.game.hero_get_data();
  11244. };
  11245. /**
  11246. * Creates a plain object from a hero_get_data message. Also converts values to other types if specified.
  11247. * @function toObject
  11248. * @memberof game.hero_get_data
  11249. * @static
  11250. * @param {game.hero_get_data} message hero_get_data
  11251. * @param {$protobuf.IConversionOptions} [options] Conversion options
  11252. * @returns {Object.<string,*>} Plain object
  11253. */
  11254. hero_get_data.toObject = function toObject() {
  11255. return {};
  11256. };
  11257. /**
  11258. * Converts this hero_get_data to JSON.
  11259. * @function toJSON
  11260. * @memberof game.hero_get_data
  11261. * @instance
  11262. * @returns {Object.<string,*>} JSON object
  11263. */
  11264. hero_get_data.prototype.toJSON = function toJSON() {
  11265. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  11266. };
  11267. return hero_get_data;
  11268. })();
  11269. game.hero_get_data_rsp = (function() {
  11270. /**
  11271. * Properties of a hero_get_data_rsp.
  11272. * @memberof game
  11273. * @interface Ihero_get_data_rsp
  11274. * @property {number|Long|null} [errno] hero_get_data_rsp errno
  11275. * @property {Array.<game.Ihero>|null} [list] hero_get_data_rsp list
  11276. */
  11277. /**
  11278. * Constructs a new hero_get_data_rsp.
  11279. * @memberof game
  11280. * @classdesc Represents a hero_get_data_rsp.
  11281. * @implements Ihero_get_data_rsp
  11282. * @constructor
  11283. * @param {game.Ihero_get_data_rsp=} [properties] Properties to set
  11284. */
  11285. function hero_get_data_rsp(properties) {
  11286. this.list = [];
  11287. if (properties)
  11288. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  11289. if (properties[keys[i]] != null)
  11290. this[keys[i]] = properties[keys[i]];
  11291. }
  11292. /**
  11293. * hero_get_data_rsp errno.
  11294. * @member {number|Long} errno
  11295. * @memberof game.hero_get_data_rsp
  11296. * @instance
  11297. */
  11298. hero_get_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  11299. /**
  11300. * hero_get_data_rsp list.
  11301. * @member {Array.<game.Ihero>} list
  11302. * @memberof game.hero_get_data_rsp
  11303. * @instance
  11304. */
  11305. hero_get_data_rsp.prototype.list = $util.emptyArray;
  11306. /**
  11307. * Creates a new hero_get_data_rsp instance using the specified properties.
  11308. * @function create
  11309. * @memberof game.hero_get_data_rsp
  11310. * @static
  11311. * @param {game.Ihero_get_data_rsp=} [properties] Properties to set
  11312. * @returns {game.hero_get_data_rsp} hero_get_data_rsp instance
  11313. */
  11314. hero_get_data_rsp.create = function create(properties) {
  11315. return new hero_get_data_rsp(properties);
  11316. };
  11317. /**
  11318. * Encodes the specified hero_get_data_rsp message. Does not implicitly {@link game.hero_get_data_rsp.verify|verify} messages.
  11319. * @function encode
  11320. * @memberof game.hero_get_data_rsp
  11321. * @static
  11322. * @param {game.Ihero_get_data_rsp} message hero_get_data_rsp message or plain object to encode
  11323. * @param {$protobuf.Writer} [writer] Writer to encode to
  11324. * @returns {$protobuf.Writer} Writer
  11325. */
  11326. hero_get_data_rsp.encode = function encode(message, writer) {
  11327. if (!writer)
  11328. writer = $Writer.create();
  11329. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  11330. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  11331. if (message.list != null && message.list.length)
  11332. for (let i = 0; i < message.list.length; ++i)
  11333. $root.game.hero.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  11334. return writer;
  11335. };
  11336. /**
  11337. * Encodes the specified hero_get_data_rsp message, length delimited. Does not implicitly {@link game.hero_get_data_rsp.verify|verify} messages.
  11338. * @function encodeDelimited
  11339. * @memberof game.hero_get_data_rsp
  11340. * @static
  11341. * @param {game.Ihero_get_data_rsp} message hero_get_data_rsp message or plain object to encode
  11342. * @param {$protobuf.Writer} [writer] Writer to encode to
  11343. * @returns {$protobuf.Writer} Writer
  11344. */
  11345. hero_get_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  11346. return this.encode(message, writer).ldelim();
  11347. };
  11348. /**
  11349. * Decodes a hero_get_data_rsp message from the specified reader or buffer.
  11350. * @function decode
  11351. * @memberof game.hero_get_data_rsp
  11352. * @static
  11353. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  11354. * @param {number} [length] Message length if known beforehand
  11355. * @returns {game.hero_get_data_rsp} hero_get_data_rsp
  11356. * @throws {Error} If the payload is not a reader or valid buffer
  11357. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  11358. */
  11359. hero_get_data_rsp.decode = function decode(reader, length) {
  11360. if (!(reader instanceof $Reader))
  11361. reader = $Reader.create(reader);
  11362. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_get_data_rsp();
  11363. while (reader.pos < end) {
  11364. let tag = reader.uint32();
  11365. switch (tag >>> 3) {
  11366. case 1:
  11367. message.errno = reader.int64();
  11368. break;
  11369. case 2:
  11370. if (!(message.list && message.list.length))
  11371. message.list = [];
  11372. message.list.push($root.game.hero.decode(reader, reader.uint32()));
  11373. break;
  11374. default:
  11375. reader.skipType(tag & 7);
  11376. break;
  11377. }
  11378. }
  11379. return message;
  11380. };
  11381. /**
  11382. * Decodes a hero_get_data_rsp message from the specified reader or buffer, length delimited.
  11383. * @function decodeDelimited
  11384. * @memberof game.hero_get_data_rsp
  11385. * @static
  11386. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  11387. * @returns {game.hero_get_data_rsp} hero_get_data_rsp
  11388. * @throws {Error} If the payload is not a reader or valid buffer
  11389. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  11390. */
  11391. hero_get_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  11392. if (!(reader instanceof $Reader))
  11393. reader = new $Reader(reader);
  11394. return this.decode(reader, reader.uint32());
  11395. };
  11396. /**
  11397. * Verifies a hero_get_data_rsp message.
  11398. * @function verify
  11399. * @memberof game.hero_get_data_rsp
  11400. * @static
  11401. * @param {Object.<string,*>} message Plain object to verify
  11402. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  11403. */
  11404. hero_get_data_rsp.verify = function verify(message) {
  11405. if (typeof message !== "object" || message === null)
  11406. return "object expected";
  11407. if (message.errno != null && message.hasOwnProperty("errno"))
  11408. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  11409. return "errno: integer|Long expected";
  11410. if (message.list != null && message.hasOwnProperty("list")) {
  11411. if (!Array.isArray(message.list))
  11412. return "list: array expected";
  11413. for (let i = 0; i < message.list.length; ++i) {
  11414. let error = $root.game.hero.verify(message.list[i]);
  11415. if (error)
  11416. return "list." + error;
  11417. }
  11418. }
  11419. return null;
  11420. };
  11421. /**
  11422. * Creates a hero_get_data_rsp message from a plain object. Also converts values to their respective internal types.
  11423. * @function fromObject
  11424. * @memberof game.hero_get_data_rsp
  11425. * @static
  11426. * @param {Object.<string,*>} object Plain object
  11427. * @returns {game.hero_get_data_rsp} hero_get_data_rsp
  11428. */
  11429. hero_get_data_rsp.fromObject = function fromObject(object) {
  11430. if (object instanceof $root.game.hero_get_data_rsp)
  11431. return object;
  11432. let message = new $root.game.hero_get_data_rsp();
  11433. if (object.errno != null)
  11434. if ($util.Long)
  11435. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  11436. else if (typeof object.errno === "string")
  11437. message.errno = parseInt(object.errno, 10);
  11438. else if (typeof object.errno === "number")
  11439. message.errno = object.errno;
  11440. else if (typeof object.errno === "object")
  11441. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  11442. if (object.list) {
  11443. if (!Array.isArray(object.list))
  11444. throw TypeError(".game.hero_get_data_rsp.list: array expected");
  11445. message.list = [];
  11446. for (let i = 0; i < object.list.length; ++i) {
  11447. if (typeof object.list[i] !== "object")
  11448. throw TypeError(".game.hero_get_data_rsp.list: object expected");
  11449. message.list[i] = $root.game.hero.fromObject(object.list[i]);
  11450. }
  11451. }
  11452. return message;
  11453. };
  11454. /**
  11455. * Creates a plain object from a hero_get_data_rsp message. Also converts values to other types if specified.
  11456. * @function toObject
  11457. * @memberof game.hero_get_data_rsp
  11458. * @static
  11459. * @param {game.hero_get_data_rsp} message hero_get_data_rsp
  11460. * @param {$protobuf.IConversionOptions} [options] Conversion options
  11461. * @returns {Object.<string,*>} Plain object
  11462. */
  11463. hero_get_data_rsp.toObject = function toObject(message, options) {
  11464. if (!options)
  11465. options = {};
  11466. let object = {};
  11467. if (options.arrays || options.defaults)
  11468. object.list = [];
  11469. if (options.defaults)
  11470. if ($util.Long) {
  11471. let long = new $util.Long(0, 0, false);
  11472. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  11473. } else
  11474. object.errno = options.longs === String ? "0" : 0;
  11475. if (message.errno != null && message.hasOwnProperty("errno"))
  11476. if (typeof message.errno === "number")
  11477. object.errno = options.longs === String ? String(message.errno) : message.errno;
  11478. else
  11479. 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;
  11480. if (message.list && message.list.length) {
  11481. object.list = [];
  11482. for (let j = 0; j < message.list.length; ++j)
  11483. object.list[j] = $root.game.hero.toObject(message.list[j], options);
  11484. }
  11485. return object;
  11486. };
  11487. /**
  11488. * Converts this hero_get_data_rsp to JSON.
  11489. * @function toJSON
  11490. * @memberof game.hero_get_data_rsp
  11491. * @instance
  11492. * @returns {Object.<string,*>} JSON object
  11493. */
  11494. hero_get_data_rsp.prototype.toJSON = function toJSON() {
  11495. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  11496. };
  11497. return hero_get_data_rsp;
  11498. })();
  11499. game.hero_upgrade = (function() {
  11500. /**
  11501. * Properties of a hero_upgrade.
  11502. * @memberof game
  11503. * @interface Ihero_upgrade
  11504. * @property {string|null} [sid] hero_upgrade sid
  11505. * @property {number|Long|null} [num] hero_upgrade num
  11506. */
  11507. /**
  11508. * Constructs a new hero_upgrade.
  11509. * @memberof game
  11510. * @classdesc Represents a hero_upgrade.
  11511. * @implements Ihero_upgrade
  11512. * @constructor
  11513. * @param {game.Ihero_upgrade=} [properties] Properties to set
  11514. */
  11515. function hero_upgrade(properties) {
  11516. if (properties)
  11517. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  11518. if (properties[keys[i]] != null)
  11519. this[keys[i]] = properties[keys[i]];
  11520. }
  11521. /**
  11522. * hero_upgrade sid.
  11523. * @member {string} sid
  11524. * @memberof game.hero_upgrade
  11525. * @instance
  11526. */
  11527. hero_upgrade.prototype.sid = "";
  11528. /**
  11529. * hero_upgrade num.
  11530. * @member {number|Long} num
  11531. * @memberof game.hero_upgrade
  11532. * @instance
  11533. */
  11534. hero_upgrade.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  11535. /**
  11536. * Creates a new hero_upgrade instance using the specified properties.
  11537. * @function create
  11538. * @memberof game.hero_upgrade
  11539. * @static
  11540. * @param {game.Ihero_upgrade=} [properties] Properties to set
  11541. * @returns {game.hero_upgrade} hero_upgrade instance
  11542. */
  11543. hero_upgrade.create = function create(properties) {
  11544. return new hero_upgrade(properties);
  11545. };
  11546. /**
  11547. * Encodes the specified hero_upgrade message. Does not implicitly {@link game.hero_upgrade.verify|verify} messages.
  11548. * @function encode
  11549. * @memberof game.hero_upgrade
  11550. * @static
  11551. * @param {game.Ihero_upgrade} message hero_upgrade message or plain object to encode
  11552. * @param {$protobuf.Writer} [writer] Writer to encode to
  11553. * @returns {$protobuf.Writer} Writer
  11554. */
  11555. hero_upgrade.encode = function encode(message, writer) {
  11556. if (!writer)
  11557. writer = $Writer.create();
  11558. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  11559. writer.uint32(/* id 1, wireType 2 =*/10).string(message.sid);
  11560. if (message.num != null && Object.hasOwnProperty.call(message, "num"))
  11561. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.num);
  11562. return writer;
  11563. };
  11564. /**
  11565. * Encodes the specified hero_upgrade message, length delimited. Does not implicitly {@link game.hero_upgrade.verify|verify} messages.
  11566. * @function encodeDelimited
  11567. * @memberof game.hero_upgrade
  11568. * @static
  11569. * @param {game.Ihero_upgrade} message hero_upgrade message or plain object to encode
  11570. * @param {$protobuf.Writer} [writer] Writer to encode to
  11571. * @returns {$protobuf.Writer} Writer
  11572. */
  11573. hero_upgrade.encodeDelimited = function encodeDelimited(message, writer) {
  11574. return this.encode(message, writer).ldelim();
  11575. };
  11576. /**
  11577. * Decodes a hero_upgrade message from the specified reader or buffer.
  11578. * @function decode
  11579. * @memberof game.hero_upgrade
  11580. * @static
  11581. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  11582. * @param {number} [length] Message length if known beforehand
  11583. * @returns {game.hero_upgrade} hero_upgrade
  11584. * @throws {Error} If the payload is not a reader or valid buffer
  11585. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  11586. */
  11587. hero_upgrade.decode = function decode(reader, length) {
  11588. if (!(reader instanceof $Reader))
  11589. reader = $Reader.create(reader);
  11590. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_upgrade();
  11591. while (reader.pos < end) {
  11592. let tag = reader.uint32();
  11593. switch (tag >>> 3) {
  11594. case 1:
  11595. message.sid = reader.string();
  11596. break;
  11597. case 2:
  11598. message.num = reader.int64();
  11599. break;
  11600. default:
  11601. reader.skipType(tag & 7);
  11602. break;
  11603. }
  11604. }
  11605. return message;
  11606. };
  11607. /**
  11608. * Decodes a hero_upgrade message from the specified reader or buffer, length delimited.
  11609. * @function decodeDelimited
  11610. * @memberof game.hero_upgrade
  11611. * @static
  11612. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  11613. * @returns {game.hero_upgrade} hero_upgrade
  11614. * @throws {Error} If the payload is not a reader or valid buffer
  11615. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  11616. */
  11617. hero_upgrade.decodeDelimited = function decodeDelimited(reader) {
  11618. if (!(reader instanceof $Reader))
  11619. reader = new $Reader(reader);
  11620. return this.decode(reader, reader.uint32());
  11621. };
  11622. /**
  11623. * Verifies a hero_upgrade message.
  11624. * @function verify
  11625. * @memberof game.hero_upgrade
  11626. * @static
  11627. * @param {Object.<string,*>} message Plain object to verify
  11628. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  11629. */
  11630. hero_upgrade.verify = function verify(message) {
  11631. if (typeof message !== "object" || message === null)
  11632. return "object expected";
  11633. if (message.sid != null && message.hasOwnProperty("sid"))
  11634. if (!$util.isString(message.sid))
  11635. return "sid: string expected";
  11636. if (message.num != null && message.hasOwnProperty("num"))
  11637. if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
  11638. return "num: integer|Long expected";
  11639. return null;
  11640. };
  11641. /**
  11642. * Creates a hero_upgrade message from a plain object. Also converts values to their respective internal types.
  11643. * @function fromObject
  11644. * @memberof game.hero_upgrade
  11645. * @static
  11646. * @param {Object.<string,*>} object Plain object
  11647. * @returns {game.hero_upgrade} hero_upgrade
  11648. */
  11649. hero_upgrade.fromObject = function fromObject(object) {
  11650. if (object instanceof $root.game.hero_upgrade)
  11651. return object;
  11652. let message = new $root.game.hero_upgrade();
  11653. if (object.sid != null)
  11654. message.sid = String(object.sid);
  11655. if (object.num != null)
  11656. if ($util.Long)
  11657. (message.num = $util.Long.fromValue(object.num)).unsigned = false;
  11658. else if (typeof object.num === "string")
  11659. message.num = parseInt(object.num, 10);
  11660. else if (typeof object.num === "number")
  11661. message.num = object.num;
  11662. else if (typeof object.num === "object")
  11663. message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
  11664. return message;
  11665. };
  11666. /**
  11667. * Creates a plain object from a hero_upgrade message. Also converts values to other types if specified.
  11668. * @function toObject
  11669. * @memberof game.hero_upgrade
  11670. * @static
  11671. * @param {game.hero_upgrade} message hero_upgrade
  11672. * @param {$protobuf.IConversionOptions} [options] Conversion options
  11673. * @returns {Object.<string,*>} Plain object
  11674. */
  11675. hero_upgrade.toObject = function toObject(message, options) {
  11676. if (!options)
  11677. options = {};
  11678. let object = {};
  11679. if (options.defaults) {
  11680. object.sid = "";
  11681. if ($util.Long) {
  11682. let long = new $util.Long(0, 0, false);
  11683. object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  11684. } else
  11685. object.num = options.longs === String ? "0" : 0;
  11686. }
  11687. if (message.sid != null && message.hasOwnProperty("sid"))
  11688. object.sid = message.sid;
  11689. if (message.num != null && message.hasOwnProperty("num"))
  11690. if (typeof message.num === "number")
  11691. object.num = options.longs === String ? String(message.num) : message.num;
  11692. else
  11693. 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;
  11694. return object;
  11695. };
  11696. /**
  11697. * Converts this hero_upgrade to JSON.
  11698. * @function toJSON
  11699. * @memberof game.hero_upgrade
  11700. * @instance
  11701. * @returns {Object.<string,*>} JSON object
  11702. */
  11703. hero_upgrade.prototype.toJSON = function toJSON() {
  11704. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  11705. };
  11706. return hero_upgrade;
  11707. })();
  11708. game.hero_upgrade_rsp = (function() {
  11709. /**
  11710. * Properties of a hero_upgrade_rsp.
  11711. * @memberof game
  11712. * @interface Ihero_upgrade_rsp
  11713. * @property {number|Long|null} [errno] hero_upgrade_rsp errno
  11714. * @property {game.Ihero|null} [data] hero_upgrade_rsp data
  11715. */
  11716. /**
  11717. * Constructs a new hero_upgrade_rsp.
  11718. * @memberof game
  11719. * @classdesc Represents a hero_upgrade_rsp.
  11720. * @implements Ihero_upgrade_rsp
  11721. * @constructor
  11722. * @param {game.Ihero_upgrade_rsp=} [properties] Properties to set
  11723. */
  11724. function hero_upgrade_rsp(properties) {
  11725. if (properties)
  11726. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  11727. if (properties[keys[i]] != null)
  11728. this[keys[i]] = properties[keys[i]];
  11729. }
  11730. /**
  11731. * hero_upgrade_rsp errno.
  11732. * @member {number|Long} errno
  11733. * @memberof game.hero_upgrade_rsp
  11734. * @instance
  11735. */
  11736. hero_upgrade_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  11737. /**
  11738. * hero_upgrade_rsp data.
  11739. * @member {game.Ihero|null|undefined} data
  11740. * @memberof game.hero_upgrade_rsp
  11741. * @instance
  11742. */
  11743. hero_upgrade_rsp.prototype.data = null;
  11744. /**
  11745. * Creates a new hero_upgrade_rsp instance using the specified properties.
  11746. * @function create
  11747. * @memberof game.hero_upgrade_rsp
  11748. * @static
  11749. * @param {game.Ihero_upgrade_rsp=} [properties] Properties to set
  11750. * @returns {game.hero_upgrade_rsp} hero_upgrade_rsp instance
  11751. */
  11752. hero_upgrade_rsp.create = function create(properties) {
  11753. return new hero_upgrade_rsp(properties);
  11754. };
  11755. /**
  11756. * Encodes the specified hero_upgrade_rsp message. Does not implicitly {@link game.hero_upgrade_rsp.verify|verify} messages.
  11757. * @function encode
  11758. * @memberof game.hero_upgrade_rsp
  11759. * @static
  11760. * @param {game.Ihero_upgrade_rsp} message hero_upgrade_rsp message or plain object to encode
  11761. * @param {$protobuf.Writer} [writer] Writer to encode to
  11762. * @returns {$protobuf.Writer} Writer
  11763. */
  11764. hero_upgrade_rsp.encode = function encode(message, writer) {
  11765. if (!writer)
  11766. writer = $Writer.create();
  11767. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  11768. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  11769. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  11770. $root.game.hero.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  11771. return writer;
  11772. };
  11773. /**
  11774. * Encodes the specified hero_upgrade_rsp message, length delimited. Does not implicitly {@link game.hero_upgrade_rsp.verify|verify} messages.
  11775. * @function encodeDelimited
  11776. * @memberof game.hero_upgrade_rsp
  11777. * @static
  11778. * @param {game.Ihero_upgrade_rsp} message hero_upgrade_rsp message or plain object to encode
  11779. * @param {$protobuf.Writer} [writer] Writer to encode to
  11780. * @returns {$protobuf.Writer} Writer
  11781. */
  11782. hero_upgrade_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  11783. return this.encode(message, writer).ldelim();
  11784. };
  11785. /**
  11786. * Decodes a hero_upgrade_rsp message from the specified reader or buffer.
  11787. * @function decode
  11788. * @memberof game.hero_upgrade_rsp
  11789. * @static
  11790. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  11791. * @param {number} [length] Message length if known beforehand
  11792. * @returns {game.hero_upgrade_rsp} hero_upgrade_rsp
  11793. * @throws {Error} If the payload is not a reader or valid buffer
  11794. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  11795. */
  11796. hero_upgrade_rsp.decode = function decode(reader, length) {
  11797. if (!(reader instanceof $Reader))
  11798. reader = $Reader.create(reader);
  11799. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_upgrade_rsp();
  11800. while (reader.pos < end) {
  11801. let tag = reader.uint32();
  11802. switch (tag >>> 3) {
  11803. case 1:
  11804. message.errno = reader.int64();
  11805. break;
  11806. case 2:
  11807. message.data = $root.game.hero.decode(reader, reader.uint32());
  11808. break;
  11809. default:
  11810. reader.skipType(tag & 7);
  11811. break;
  11812. }
  11813. }
  11814. return message;
  11815. };
  11816. /**
  11817. * Decodes a hero_upgrade_rsp message from the specified reader or buffer, length delimited.
  11818. * @function decodeDelimited
  11819. * @memberof game.hero_upgrade_rsp
  11820. * @static
  11821. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  11822. * @returns {game.hero_upgrade_rsp} hero_upgrade_rsp
  11823. * @throws {Error} If the payload is not a reader or valid buffer
  11824. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  11825. */
  11826. hero_upgrade_rsp.decodeDelimited = function decodeDelimited(reader) {
  11827. if (!(reader instanceof $Reader))
  11828. reader = new $Reader(reader);
  11829. return this.decode(reader, reader.uint32());
  11830. };
  11831. /**
  11832. * Verifies a hero_upgrade_rsp message.
  11833. * @function verify
  11834. * @memberof game.hero_upgrade_rsp
  11835. * @static
  11836. * @param {Object.<string,*>} message Plain object to verify
  11837. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  11838. */
  11839. hero_upgrade_rsp.verify = function verify(message) {
  11840. if (typeof message !== "object" || message === null)
  11841. return "object expected";
  11842. if (message.errno != null && message.hasOwnProperty("errno"))
  11843. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  11844. return "errno: integer|Long expected";
  11845. if (message.data != null && message.hasOwnProperty("data")) {
  11846. let error = $root.game.hero.verify(message.data);
  11847. if (error)
  11848. return "data." + error;
  11849. }
  11850. return null;
  11851. };
  11852. /**
  11853. * Creates a hero_upgrade_rsp message from a plain object. Also converts values to their respective internal types.
  11854. * @function fromObject
  11855. * @memberof game.hero_upgrade_rsp
  11856. * @static
  11857. * @param {Object.<string,*>} object Plain object
  11858. * @returns {game.hero_upgrade_rsp} hero_upgrade_rsp
  11859. */
  11860. hero_upgrade_rsp.fromObject = function fromObject(object) {
  11861. if (object instanceof $root.game.hero_upgrade_rsp)
  11862. return object;
  11863. let message = new $root.game.hero_upgrade_rsp();
  11864. if (object.errno != null)
  11865. if ($util.Long)
  11866. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  11867. else if (typeof object.errno === "string")
  11868. message.errno = parseInt(object.errno, 10);
  11869. else if (typeof object.errno === "number")
  11870. message.errno = object.errno;
  11871. else if (typeof object.errno === "object")
  11872. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  11873. if (object.data != null) {
  11874. if (typeof object.data !== "object")
  11875. throw TypeError(".game.hero_upgrade_rsp.data: object expected");
  11876. message.data = $root.game.hero.fromObject(object.data);
  11877. }
  11878. return message;
  11879. };
  11880. /**
  11881. * Creates a plain object from a hero_upgrade_rsp message. Also converts values to other types if specified.
  11882. * @function toObject
  11883. * @memberof game.hero_upgrade_rsp
  11884. * @static
  11885. * @param {game.hero_upgrade_rsp} message hero_upgrade_rsp
  11886. * @param {$protobuf.IConversionOptions} [options] Conversion options
  11887. * @returns {Object.<string,*>} Plain object
  11888. */
  11889. hero_upgrade_rsp.toObject = function toObject(message, options) {
  11890. if (!options)
  11891. options = {};
  11892. let object = {};
  11893. if (options.defaults) {
  11894. if ($util.Long) {
  11895. let long = new $util.Long(0, 0, false);
  11896. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  11897. } else
  11898. object.errno = options.longs === String ? "0" : 0;
  11899. object.data = null;
  11900. }
  11901. if (message.errno != null && message.hasOwnProperty("errno"))
  11902. if (typeof message.errno === "number")
  11903. object.errno = options.longs === String ? String(message.errno) : message.errno;
  11904. else
  11905. 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;
  11906. if (message.data != null && message.hasOwnProperty("data"))
  11907. object.data = $root.game.hero.toObject(message.data, options);
  11908. return object;
  11909. };
  11910. /**
  11911. * Converts this hero_upgrade_rsp to JSON.
  11912. * @function toJSON
  11913. * @memberof game.hero_upgrade_rsp
  11914. * @instance
  11915. * @returns {Object.<string,*>} JSON object
  11916. */
  11917. hero_upgrade_rsp.prototype.toJSON = function toJSON() {
  11918. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  11919. };
  11920. return hero_upgrade_rsp;
  11921. })();
  11922. game.hero_upgrade_star = (function() {
  11923. /**
  11924. * Properties of a hero_upgrade_star.
  11925. * @memberof game
  11926. * @interface Ihero_upgrade_star
  11927. * @property {string|null} [sid] hero_upgrade_star sid
  11928. * @property {Array.<string>|null} [same] hero_upgrade_star same
  11929. * @property {Array.<string>|null} [other] hero_upgrade_star other
  11930. * @property {game.Iid_num|null} [currency] hero_upgrade_star currency
  11931. */
  11932. /**
  11933. * Constructs a new hero_upgrade_star.
  11934. * @memberof game
  11935. * @classdesc Represents a hero_upgrade_star.
  11936. * @implements Ihero_upgrade_star
  11937. * @constructor
  11938. * @param {game.Ihero_upgrade_star=} [properties] Properties to set
  11939. */
  11940. function hero_upgrade_star(properties) {
  11941. this.same = [];
  11942. this.other = [];
  11943. if (properties)
  11944. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  11945. if (properties[keys[i]] != null)
  11946. this[keys[i]] = properties[keys[i]];
  11947. }
  11948. /**
  11949. * hero_upgrade_star sid.
  11950. * @member {string} sid
  11951. * @memberof game.hero_upgrade_star
  11952. * @instance
  11953. */
  11954. hero_upgrade_star.prototype.sid = "";
  11955. /**
  11956. * hero_upgrade_star same.
  11957. * @member {Array.<string>} same
  11958. * @memberof game.hero_upgrade_star
  11959. * @instance
  11960. */
  11961. hero_upgrade_star.prototype.same = $util.emptyArray;
  11962. /**
  11963. * hero_upgrade_star other.
  11964. * @member {Array.<string>} other
  11965. * @memberof game.hero_upgrade_star
  11966. * @instance
  11967. */
  11968. hero_upgrade_star.prototype.other = $util.emptyArray;
  11969. /**
  11970. * hero_upgrade_star currency.
  11971. * @member {game.Iid_num|null|undefined} currency
  11972. * @memberof game.hero_upgrade_star
  11973. * @instance
  11974. */
  11975. hero_upgrade_star.prototype.currency = null;
  11976. /**
  11977. * Creates a new hero_upgrade_star instance using the specified properties.
  11978. * @function create
  11979. * @memberof game.hero_upgrade_star
  11980. * @static
  11981. * @param {game.Ihero_upgrade_star=} [properties] Properties to set
  11982. * @returns {game.hero_upgrade_star} hero_upgrade_star instance
  11983. */
  11984. hero_upgrade_star.create = function create(properties) {
  11985. return new hero_upgrade_star(properties);
  11986. };
  11987. /**
  11988. * Encodes the specified hero_upgrade_star message. Does not implicitly {@link game.hero_upgrade_star.verify|verify} messages.
  11989. * @function encode
  11990. * @memberof game.hero_upgrade_star
  11991. * @static
  11992. * @param {game.Ihero_upgrade_star} message hero_upgrade_star message or plain object to encode
  11993. * @param {$protobuf.Writer} [writer] Writer to encode to
  11994. * @returns {$protobuf.Writer} Writer
  11995. */
  11996. hero_upgrade_star.encode = function encode(message, writer) {
  11997. if (!writer)
  11998. writer = $Writer.create();
  11999. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  12000. writer.uint32(/* id 1, wireType 2 =*/10).string(message.sid);
  12001. if (message.same != null && message.same.length)
  12002. for (let i = 0; i < message.same.length; ++i)
  12003. writer.uint32(/* id 2, wireType 2 =*/18).string(message.same[i]);
  12004. if (message.other != null && message.other.length)
  12005. for (let i = 0; i < message.other.length; ++i)
  12006. writer.uint32(/* id 3, wireType 2 =*/26).string(message.other[i]);
  12007. if (message.currency != null && Object.hasOwnProperty.call(message, "currency"))
  12008. $root.game.id_num.encode(message.currency, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
  12009. return writer;
  12010. };
  12011. /**
  12012. * Encodes the specified hero_upgrade_star message, length delimited. Does not implicitly {@link game.hero_upgrade_star.verify|verify} messages.
  12013. * @function encodeDelimited
  12014. * @memberof game.hero_upgrade_star
  12015. * @static
  12016. * @param {game.Ihero_upgrade_star} message hero_upgrade_star message or plain object to encode
  12017. * @param {$protobuf.Writer} [writer] Writer to encode to
  12018. * @returns {$protobuf.Writer} Writer
  12019. */
  12020. hero_upgrade_star.encodeDelimited = function encodeDelimited(message, writer) {
  12021. return this.encode(message, writer).ldelim();
  12022. };
  12023. /**
  12024. * Decodes a hero_upgrade_star message from the specified reader or buffer.
  12025. * @function decode
  12026. * @memberof game.hero_upgrade_star
  12027. * @static
  12028. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  12029. * @param {number} [length] Message length if known beforehand
  12030. * @returns {game.hero_upgrade_star} hero_upgrade_star
  12031. * @throws {Error} If the payload is not a reader or valid buffer
  12032. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  12033. */
  12034. hero_upgrade_star.decode = function decode(reader, length) {
  12035. if (!(reader instanceof $Reader))
  12036. reader = $Reader.create(reader);
  12037. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_upgrade_star();
  12038. while (reader.pos < end) {
  12039. let tag = reader.uint32();
  12040. switch (tag >>> 3) {
  12041. case 1:
  12042. message.sid = reader.string();
  12043. break;
  12044. case 2:
  12045. if (!(message.same && message.same.length))
  12046. message.same = [];
  12047. message.same.push(reader.string());
  12048. break;
  12049. case 3:
  12050. if (!(message.other && message.other.length))
  12051. message.other = [];
  12052. message.other.push(reader.string());
  12053. break;
  12054. case 4:
  12055. message.currency = $root.game.id_num.decode(reader, reader.uint32());
  12056. break;
  12057. default:
  12058. reader.skipType(tag & 7);
  12059. break;
  12060. }
  12061. }
  12062. return message;
  12063. };
  12064. /**
  12065. * Decodes a hero_upgrade_star message from the specified reader or buffer, length delimited.
  12066. * @function decodeDelimited
  12067. * @memberof game.hero_upgrade_star
  12068. * @static
  12069. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  12070. * @returns {game.hero_upgrade_star} hero_upgrade_star
  12071. * @throws {Error} If the payload is not a reader or valid buffer
  12072. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  12073. */
  12074. hero_upgrade_star.decodeDelimited = function decodeDelimited(reader) {
  12075. if (!(reader instanceof $Reader))
  12076. reader = new $Reader(reader);
  12077. return this.decode(reader, reader.uint32());
  12078. };
  12079. /**
  12080. * Verifies a hero_upgrade_star message.
  12081. * @function verify
  12082. * @memberof game.hero_upgrade_star
  12083. * @static
  12084. * @param {Object.<string,*>} message Plain object to verify
  12085. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  12086. */
  12087. hero_upgrade_star.verify = function verify(message) {
  12088. if (typeof message !== "object" || message === null)
  12089. return "object expected";
  12090. if (message.sid != null && message.hasOwnProperty("sid"))
  12091. if (!$util.isString(message.sid))
  12092. return "sid: string expected";
  12093. if (message.same != null && message.hasOwnProperty("same")) {
  12094. if (!Array.isArray(message.same))
  12095. return "same: array expected";
  12096. for (let i = 0; i < message.same.length; ++i)
  12097. if (!$util.isString(message.same[i]))
  12098. return "same: string[] expected";
  12099. }
  12100. if (message.other != null && message.hasOwnProperty("other")) {
  12101. if (!Array.isArray(message.other))
  12102. return "other: array expected";
  12103. for (let i = 0; i < message.other.length; ++i)
  12104. if (!$util.isString(message.other[i]))
  12105. return "other: string[] expected";
  12106. }
  12107. if (message.currency != null && message.hasOwnProperty("currency")) {
  12108. let error = $root.game.id_num.verify(message.currency);
  12109. if (error)
  12110. return "currency." + error;
  12111. }
  12112. return null;
  12113. };
  12114. /**
  12115. * Creates a hero_upgrade_star message from a plain object. Also converts values to their respective internal types.
  12116. * @function fromObject
  12117. * @memberof game.hero_upgrade_star
  12118. * @static
  12119. * @param {Object.<string,*>} object Plain object
  12120. * @returns {game.hero_upgrade_star} hero_upgrade_star
  12121. */
  12122. hero_upgrade_star.fromObject = function fromObject(object) {
  12123. if (object instanceof $root.game.hero_upgrade_star)
  12124. return object;
  12125. let message = new $root.game.hero_upgrade_star();
  12126. if (object.sid != null)
  12127. message.sid = String(object.sid);
  12128. if (object.same) {
  12129. if (!Array.isArray(object.same))
  12130. throw TypeError(".game.hero_upgrade_star.same: array expected");
  12131. message.same = [];
  12132. for (let i = 0; i < object.same.length; ++i)
  12133. message.same[i] = String(object.same[i]);
  12134. }
  12135. if (object.other) {
  12136. if (!Array.isArray(object.other))
  12137. throw TypeError(".game.hero_upgrade_star.other: array expected");
  12138. message.other = [];
  12139. for (let i = 0; i < object.other.length; ++i)
  12140. message.other[i] = String(object.other[i]);
  12141. }
  12142. if (object.currency != null) {
  12143. if (typeof object.currency !== "object")
  12144. throw TypeError(".game.hero_upgrade_star.currency: object expected");
  12145. message.currency = $root.game.id_num.fromObject(object.currency);
  12146. }
  12147. return message;
  12148. };
  12149. /**
  12150. * Creates a plain object from a hero_upgrade_star message. Also converts values to other types if specified.
  12151. * @function toObject
  12152. * @memberof game.hero_upgrade_star
  12153. * @static
  12154. * @param {game.hero_upgrade_star} message hero_upgrade_star
  12155. * @param {$protobuf.IConversionOptions} [options] Conversion options
  12156. * @returns {Object.<string,*>} Plain object
  12157. */
  12158. hero_upgrade_star.toObject = function toObject(message, options) {
  12159. if (!options)
  12160. options = {};
  12161. let object = {};
  12162. if (options.arrays || options.defaults) {
  12163. object.same = [];
  12164. object.other = [];
  12165. }
  12166. if (options.defaults) {
  12167. object.sid = "";
  12168. object.currency = null;
  12169. }
  12170. if (message.sid != null && message.hasOwnProperty("sid"))
  12171. object.sid = message.sid;
  12172. if (message.same && message.same.length) {
  12173. object.same = [];
  12174. for (let j = 0; j < message.same.length; ++j)
  12175. object.same[j] = message.same[j];
  12176. }
  12177. if (message.other && message.other.length) {
  12178. object.other = [];
  12179. for (let j = 0; j < message.other.length; ++j)
  12180. object.other[j] = message.other[j];
  12181. }
  12182. if (message.currency != null && message.hasOwnProperty("currency"))
  12183. object.currency = $root.game.id_num.toObject(message.currency, options);
  12184. return object;
  12185. };
  12186. /**
  12187. * Converts this hero_upgrade_star to JSON.
  12188. * @function toJSON
  12189. * @memberof game.hero_upgrade_star
  12190. * @instance
  12191. * @returns {Object.<string,*>} JSON object
  12192. */
  12193. hero_upgrade_star.prototype.toJSON = function toJSON() {
  12194. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  12195. };
  12196. return hero_upgrade_star;
  12197. })();
  12198. game.hero_upgrade_star_rsp = (function() {
  12199. /**
  12200. * Properties of a hero_upgrade_star_rsp.
  12201. * @memberof game
  12202. * @interface Ihero_upgrade_star_rsp
  12203. * @property {number|Long|null} [errno] hero_upgrade_star_rsp errno
  12204. * @property {game.Ihero|null} [data] hero_upgrade_star_rsp data
  12205. * @property {Array.<string>|null} [same] hero_upgrade_star_rsp same
  12206. * @property {Array.<string>|null} [other] hero_upgrade_star_rsp other
  12207. * @property {game.Iid_num|null} [currency] hero_upgrade_star_rsp currency
  12208. */
  12209. /**
  12210. * Constructs a new hero_upgrade_star_rsp.
  12211. * @memberof game
  12212. * @classdesc Represents a hero_upgrade_star_rsp.
  12213. * @implements Ihero_upgrade_star_rsp
  12214. * @constructor
  12215. * @param {game.Ihero_upgrade_star_rsp=} [properties] Properties to set
  12216. */
  12217. function hero_upgrade_star_rsp(properties) {
  12218. this.same = [];
  12219. this.other = [];
  12220. if (properties)
  12221. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  12222. if (properties[keys[i]] != null)
  12223. this[keys[i]] = properties[keys[i]];
  12224. }
  12225. /**
  12226. * hero_upgrade_star_rsp errno.
  12227. * @member {number|Long} errno
  12228. * @memberof game.hero_upgrade_star_rsp
  12229. * @instance
  12230. */
  12231. hero_upgrade_star_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  12232. /**
  12233. * hero_upgrade_star_rsp data.
  12234. * @member {game.Ihero|null|undefined} data
  12235. * @memberof game.hero_upgrade_star_rsp
  12236. * @instance
  12237. */
  12238. hero_upgrade_star_rsp.prototype.data = null;
  12239. /**
  12240. * hero_upgrade_star_rsp same.
  12241. * @member {Array.<string>} same
  12242. * @memberof game.hero_upgrade_star_rsp
  12243. * @instance
  12244. */
  12245. hero_upgrade_star_rsp.prototype.same = $util.emptyArray;
  12246. /**
  12247. * hero_upgrade_star_rsp other.
  12248. * @member {Array.<string>} other
  12249. * @memberof game.hero_upgrade_star_rsp
  12250. * @instance
  12251. */
  12252. hero_upgrade_star_rsp.prototype.other = $util.emptyArray;
  12253. /**
  12254. * hero_upgrade_star_rsp currency.
  12255. * @member {game.Iid_num|null|undefined} currency
  12256. * @memberof game.hero_upgrade_star_rsp
  12257. * @instance
  12258. */
  12259. hero_upgrade_star_rsp.prototype.currency = null;
  12260. /**
  12261. * Creates a new hero_upgrade_star_rsp instance using the specified properties.
  12262. * @function create
  12263. * @memberof game.hero_upgrade_star_rsp
  12264. * @static
  12265. * @param {game.Ihero_upgrade_star_rsp=} [properties] Properties to set
  12266. * @returns {game.hero_upgrade_star_rsp} hero_upgrade_star_rsp instance
  12267. */
  12268. hero_upgrade_star_rsp.create = function create(properties) {
  12269. return new hero_upgrade_star_rsp(properties);
  12270. };
  12271. /**
  12272. * Encodes the specified hero_upgrade_star_rsp message. Does not implicitly {@link game.hero_upgrade_star_rsp.verify|verify} messages.
  12273. * @function encode
  12274. * @memberof game.hero_upgrade_star_rsp
  12275. * @static
  12276. * @param {game.Ihero_upgrade_star_rsp} message hero_upgrade_star_rsp message or plain object to encode
  12277. * @param {$protobuf.Writer} [writer] Writer to encode to
  12278. * @returns {$protobuf.Writer} Writer
  12279. */
  12280. hero_upgrade_star_rsp.encode = function encode(message, writer) {
  12281. if (!writer)
  12282. writer = $Writer.create();
  12283. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  12284. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  12285. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  12286. $root.game.hero.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  12287. if (message.same != null && message.same.length)
  12288. for (let i = 0; i < message.same.length; ++i)
  12289. writer.uint32(/* id 3, wireType 2 =*/26).string(message.same[i]);
  12290. if (message.other != null && message.other.length)
  12291. for (let i = 0; i < message.other.length; ++i)
  12292. writer.uint32(/* id 4, wireType 2 =*/34).string(message.other[i]);
  12293. if (message.currency != null && Object.hasOwnProperty.call(message, "currency"))
  12294. $root.game.id_num.encode(message.currency, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
  12295. return writer;
  12296. };
  12297. /**
  12298. * Encodes the specified hero_upgrade_star_rsp message, length delimited. Does not implicitly {@link game.hero_upgrade_star_rsp.verify|verify} messages.
  12299. * @function encodeDelimited
  12300. * @memberof game.hero_upgrade_star_rsp
  12301. * @static
  12302. * @param {game.Ihero_upgrade_star_rsp} message hero_upgrade_star_rsp message or plain object to encode
  12303. * @param {$protobuf.Writer} [writer] Writer to encode to
  12304. * @returns {$protobuf.Writer} Writer
  12305. */
  12306. hero_upgrade_star_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  12307. return this.encode(message, writer).ldelim();
  12308. };
  12309. /**
  12310. * Decodes a hero_upgrade_star_rsp message from the specified reader or buffer.
  12311. * @function decode
  12312. * @memberof game.hero_upgrade_star_rsp
  12313. * @static
  12314. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  12315. * @param {number} [length] Message length if known beforehand
  12316. * @returns {game.hero_upgrade_star_rsp} hero_upgrade_star_rsp
  12317. * @throws {Error} If the payload is not a reader or valid buffer
  12318. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  12319. */
  12320. hero_upgrade_star_rsp.decode = function decode(reader, length) {
  12321. if (!(reader instanceof $Reader))
  12322. reader = $Reader.create(reader);
  12323. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_upgrade_star_rsp();
  12324. while (reader.pos < end) {
  12325. let tag = reader.uint32();
  12326. switch (tag >>> 3) {
  12327. case 1:
  12328. message.errno = reader.int64();
  12329. break;
  12330. case 2:
  12331. message.data = $root.game.hero.decode(reader, reader.uint32());
  12332. break;
  12333. case 3:
  12334. if (!(message.same && message.same.length))
  12335. message.same = [];
  12336. message.same.push(reader.string());
  12337. break;
  12338. case 4:
  12339. if (!(message.other && message.other.length))
  12340. message.other = [];
  12341. message.other.push(reader.string());
  12342. break;
  12343. case 5:
  12344. message.currency = $root.game.id_num.decode(reader, reader.uint32());
  12345. break;
  12346. default:
  12347. reader.skipType(tag & 7);
  12348. break;
  12349. }
  12350. }
  12351. return message;
  12352. };
  12353. /**
  12354. * Decodes a hero_upgrade_star_rsp message from the specified reader or buffer, length delimited.
  12355. * @function decodeDelimited
  12356. * @memberof game.hero_upgrade_star_rsp
  12357. * @static
  12358. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  12359. * @returns {game.hero_upgrade_star_rsp} hero_upgrade_star_rsp
  12360. * @throws {Error} If the payload is not a reader or valid buffer
  12361. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  12362. */
  12363. hero_upgrade_star_rsp.decodeDelimited = function decodeDelimited(reader) {
  12364. if (!(reader instanceof $Reader))
  12365. reader = new $Reader(reader);
  12366. return this.decode(reader, reader.uint32());
  12367. };
  12368. /**
  12369. * Verifies a hero_upgrade_star_rsp message.
  12370. * @function verify
  12371. * @memberof game.hero_upgrade_star_rsp
  12372. * @static
  12373. * @param {Object.<string,*>} message Plain object to verify
  12374. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  12375. */
  12376. hero_upgrade_star_rsp.verify = function verify(message) {
  12377. if (typeof message !== "object" || message === null)
  12378. return "object expected";
  12379. if (message.errno != null && message.hasOwnProperty("errno"))
  12380. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  12381. return "errno: integer|Long expected";
  12382. if (message.data != null && message.hasOwnProperty("data")) {
  12383. let error = $root.game.hero.verify(message.data);
  12384. if (error)
  12385. return "data." + error;
  12386. }
  12387. if (message.same != null && message.hasOwnProperty("same")) {
  12388. if (!Array.isArray(message.same))
  12389. return "same: array expected";
  12390. for (let i = 0; i < message.same.length; ++i)
  12391. if (!$util.isString(message.same[i]))
  12392. return "same: string[] expected";
  12393. }
  12394. if (message.other != null && message.hasOwnProperty("other")) {
  12395. if (!Array.isArray(message.other))
  12396. return "other: array expected";
  12397. for (let i = 0; i < message.other.length; ++i)
  12398. if (!$util.isString(message.other[i]))
  12399. return "other: string[] expected";
  12400. }
  12401. if (message.currency != null && message.hasOwnProperty("currency")) {
  12402. let error = $root.game.id_num.verify(message.currency);
  12403. if (error)
  12404. return "currency." + error;
  12405. }
  12406. return null;
  12407. };
  12408. /**
  12409. * Creates a hero_upgrade_star_rsp message from a plain object. Also converts values to their respective internal types.
  12410. * @function fromObject
  12411. * @memberof game.hero_upgrade_star_rsp
  12412. * @static
  12413. * @param {Object.<string,*>} object Plain object
  12414. * @returns {game.hero_upgrade_star_rsp} hero_upgrade_star_rsp
  12415. */
  12416. hero_upgrade_star_rsp.fromObject = function fromObject(object) {
  12417. if (object instanceof $root.game.hero_upgrade_star_rsp)
  12418. return object;
  12419. let message = new $root.game.hero_upgrade_star_rsp();
  12420. if (object.errno != null)
  12421. if ($util.Long)
  12422. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  12423. else if (typeof object.errno === "string")
  12424. message.errno = parseInt(object.errno, 10);
  12425. else if (typeof object.errno === "number")
  12426. message.errno = object.errno;
  12427. else if (typeof object.errno === "object")
  12428. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  12429. if (object.data != null) {
  12430. if (typeof object.data !== "object")
  12431. throw TypeError(".game.hero_upgrade_star_rsp.data: object expected");
  12432. message.data = $root.game.hero.fromObject(object.data);
  12433. }
  12434. if (object.same) {
  12435. if (!Array.isArray(object.same))
  12436. throw TypeError(".game.hero_upgrade_star_rsp.same: array expected");
  12437. message.same = [];
  12438. for (let i = 0; i < object.same.length; ++i)
  12439. message.same[i] = String(object.same[i]);
  12440. }
  12441. if (object.other) {
  12442. if (!Array.isArray(object.other))
  12443. throw TypeError(".game.hero_upgrade_star_rsp.other: array expected");
  12444. message.other = [];
  12445. for (let i = 0; i < object.other.length; ++i)
  12446. message.other[i] = String(object.other[i]);
  12447. }
  12448. if (object.currency != null) {
  12449. if (typeof object.currency !== "object")
  12450. throw TypeError(".game.hero_upgrade_star_rsp.currency: object expected");
  12451. message.currency = $root.game.id_num.fromObject(object.currency);
  12452. }
  12453. return message;
  12454. };
  12455. /**
  12456. * Creates a plain object from a hero_upgrade_star_rsp message. Also converts values to other types if specified.
  12457. * @function toObject
  12458. * @memberof game.hero_upgrade_star_rsp
  12459. * @static
  12460. * @param {game.hero_upgrade_star_rsp} message hero_upgrade_star_rsp
  12461. * @param {$protobuf.IConversionOptions} [options] Conversion options
  12462. * @returns {Object.<string,*>} Plain object
  12463. */
  12464. hero_upgrade_star_rsp.toObject = function toObject(message, options) {
  12465. if (!options)
  12466. options = {};
  12467. let object = {};
  12468. if (options.arrays || options.defaults) {
  12469. object.same = [];
  12470. object.other = [];
  12471. }
  12472. if (options.defaults) {
  12473. if ($util.Long) {
  12474. let long = new $util.Long(0, 0, false);
  12475. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  12476. } else
  12477. object.errno = options.longs === String ? "0" : 0;
  12478. object.data = null;
  12479. object.currency = null;
  12480. }
  12481. if (message.errno != null && message.hasOwnProperty("errno"))
  12482. if (typeof message.errno === "number")
  12483. object.errno = options.longs === String ? String(message.errno) : message.errno;
  12484. else
  12485. 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;
  12486. if (message.data != null && message.hasOwnProperty("data"))
  12487. object.data = $root.game.hero.toObject(message.data, options);
  12488. if (message.same && message.same.length) {
  12489. object.same = [];
  12490. for (let j = 0; j < message.same.length; ++j)
  12491. object.same[j] = message.same[j];
  12492. }
  12493. if (message.other && message.other.length) {
  12494. object.other = [];
  12495. for (let j = 0; j < message.other.length; ++j)
  12496. object.other[j] = message.other[j];
  12497. }
  12498. if (message.currency != null && message.hasOwnProperty("currency"))
  12499. object.currency = $root.game.id_num.toObject(message.currency, options);
  12500. return object;
  12501. };
  12502. /**
  12503. * Converts this hero_upgrade_star_rsp to JSON.
  12504. * @function toJSON
  12505. * @memberof game.hero_upgrade_star_rsp
  12506. * @instance
  12507. * @returns {Object.<string,*>} JSON object
  12508. */
  12509. hero_upgrade_star_rsp.prototype.toJSON = function toJSON() {
  12510. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  12511. };
  12512. return hero_upgrade_star_rsp;
  12513. })();
  12514. game.hero_onekey_upgrade_star = (function() {
  12515. /**
  12516. * Properties of a hero_onekey_upgrade_star.
  12517. * @memberof game
  12518. * @interface Ihero_onekey_upgrade_star
  12519. */
  12520. /**
  12521. * Constructs a new hero_onekey_upgrade_star.
  12522. * @memberof game
  12523. * @classdesc Represents a hero_onekey_upgrade_star.
  12524. * @implements Ihero_onekey_upgrade_star
  12525. * @constructor
  12526. * @param {game.Ihero_onekey_upgrade_star=} [properties] Properties to set
  12527. */
  12528. function hero_onekey_upgrade_star(properties) {
  12529. if (properties)
  12530. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  12531. if (properties[keys[i]] != null)
  12532. this[keys[i]] = properties[keys[i]];
  12533. }
  12534. /**
  12535. * Creates a new hero_onekey_upgrade_star instance using the specified properties.
  12536. * @function create
  12537. * @memberof game.hero_onekey_upgrade_star
  12538. * @static
  12539. * @param {game.Ihero_onekey_upgrade_star=} [properties] Properties to set
  12540. * @returns {game.hero_onekey_upgrade_star} hero_onekey_upgrade_star instance
  12541. */
  12542. hero_onekey_upgrade_star.create = function create(properties) {
  12543. return new hero_onekey_upgrade_star(properties);
  12544. };
  12545. /**
  12546. * Encodes the specified hero_onekey_upgrade_star message. Does not implicitly {@link game.hero_onekey_upgrade_star.verify|verify} messages.
  12547. * @function encode
  12548. * @memberof game.hero_onekey_upgrade_star
  12549. * @static
  12550. * @param {game.Ihero_onekey_upgrade_star} message hero_onekey_upgrade_star message or plain object to encode
  12551. * @param {$protobuf.Writer} [writer] Writer to encode to
  12552. * @returns {$protobuf.Writer} Writer
  12553. */
  12554. hero_onekey_upgrade_star.encode = function encode(message, writer) {
  12555. if (!writer)
  12556. writer = $Writer.create();
  12557. return writer;
  12558. };
  12559. /**
  12560. * Encodes the specified hero_onekey_upgrade_star message, length delimited. Does not implicitly {@link game.hero_onekey_upgrade_star.verify|verify} messages.
  12561. * @function encodeDelimited
  12562. * @memberof game.hero_onekey_upgrade_star
  12563. * @static
  12564. * @param {game.Ihero_onekey_upgrade_star} message hero_onekey_upgrade_star message or plain object to encode
  12565. * @param {$protobuf.Writer} [writer] Writer to encode to
  12566. * @returns {$protobuf.Writer} Writer
  12567. */
  12568. hero_onekey_upgrade_star.encodeDelimited = function encodeDelimited(message, writer) {
  12569. return this.encode(message, writer).ldelim();
  12570. };
  12571. /**
  12572. * Decodes a hero_onekey_upgrade_star message from the specified reader or buffer.
  12573. * @function decode
  12574. * @memberof game.hero_onekey_upgrade_star
  12575. * @static
  12576. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  12577. * @param {number} [length] Message length if known beforehand
  12578. * @returns {game.hero_onekey_upgrade_star} hero_onekey_upgrade_star
  12579. * @throws {Error} If the payload is not a reader or valid buffer
  12580. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  12581. */
  12582. hero_onekey_upgrade_star.decode = function decode(reader, length) {
  12583. if (!(reader instanceof $Reader))
  12584. reader = $Reader.create(reader);
  12585. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_onekey_upgrade_star();
  12586. while (reader.pos < end) {
  12587. let tag = reader.uint32();
  12588. switch (tag >>> 3) {
  12589. default:
  12590. reader.skipType(tag & 7);
  12591. break;
  12592. }
  12593. }
  12594. return message;
  12595. };
  12596. /**
  12597. * Decodes a hero_onekey_upgrade_star message from the specified reader or buffer, length delimited.
  12598. * @function decodeDelimited
  12599. * @memberof game.hero_onekey_upgrade_star
  12600. * @static
  12601. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  12602. * @returns {game.hero_onekey_upgrade_star} hero_onekey_upgrade_star
  12603. * @throws {Error} If the payload is not a reader or valid buffer
  12604. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  12605. */
  12606. hero_onekey_upgrade_star.decodeDelimited = function decodeDelimited(reader) {
  12607. if (!(reader instanceof $Reader))
  12608. reader = new $Reader(reader);
  12609. return this.decode(reader, reader.uint32());
  12610. };
  12611. /**
  12612. * Verifies a hero_onekey_upgrade_star message.
  12613. * @function verify
  12614. * @memberof game.hero_onekey_upgrade_star
  12615. * @static
  12616. * @param {Object.<string,*>} message Plain object to verify
  12617. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  12618. */
  12619. hero_onekey_upgrade_star.verify = function verify(message) {
  12620. if (typeof message !== "object" || message === null)
  12621. return "object expected";
  12622. return null;
  12623. };
  12624. /**
  12625. * Creates a hero_onekey_upgrade_star message from a plain object. Also converts values to their respective internal types.
  12626. * @function fromObject
  12627. * @memberof game.hero_onekey_upgrade_star
  12628. * @static
  12629. * @param {Object.<string,*>} object Plain object
  12630. * @returns {game.hero_onekey_upgrade_star} hero_onekey_upgrade_star
  12631. */
  12632. hero_onekey_upgrade_star.fromObject = function fromObject(object) {
  12633. if (object instanceof $root.game.hero_onekey_upgrade_star)
  12634. return object;
  12635. return new $root.game.hero_onekey_upgrade_star();
  12636. };
  12637. /**
  12638. * Creates a plain object from a hero_onekey_upgrade_star message. Also converts values to other types if specified.
  12639. * @function toObject
  12640. * @memberof game.hero_onekey_upgrade_star
  12641. * @static
  12642. * @param {game.hero_onekey_upgrade_star} message hero_onekey_upgrade_star
  12643. * @param {$protobuf.IConversionOptions} [options] Conversion options
  12644. * @returns {Object.<string,*>} Plain object
  12645. */
  12646. hero_onekey_upgrade_star.toObject = function toObject() {
  12647. return {};
  12648. };
  12649. /**
  12650. * Converts this hero_onekey_upgrade_star to JSON.
  12651. * @function toJSON
  12652. * @memberof game.hero_onekey_upgrade_star
  12653. * @instance
  12654. * @returns {Object.<string,*>} JSON object
  12655. */
  12656. hero_onekey_upgrade_star.prototype.toJSON = function toJSON() {
  12657. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  12658. };
  12659. return hero_onekey_upgrade_star;
  12660. })();
  12661. game.hero_onekey_upgrade_star_rsp = (function() {
  12662. /**
  12663. * Properties of a hero_onekey_upgrade_star_rsp.
  12664. * @memberof game
  12665. * @interface Ihero_onekey_upgrade_star_rsp
  12666. * @property {number|Long|null} [errno] hero_onekey_upgrade_star_rsp errno
  12667. * @property {Array.<string>|null} [delList] hero_onekey_upgrade_star_rsp delList
  12668. * @property {Array.<game.Ihero>|null} [changeList] hero_onekey_upgrade_star_rsp changeList
  12669. */
  12670. /**
  12671. * Constructs a new hero_onekey_upgrade_star_rsp.
  12672. * @memberof game
  12673. * @classdesc Represents a hero_onekey_upgrade_star_rsp.
  12674. * @implements Ihero_onekey_upgrade_star_rsp
  12675. * @constructor
  12676. * @param {game.Ihero_onekey_upgrade_star_rsp=} [properties] Properties to set
  12677. */
  12678. function hero_onekey_upgrade_star_rsp(properties) {
  12679. this.delList = [];
  12680. this.changeList = [];
  12681. if (properties)
  12682. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  12683. if (properties[keys[i]] != null)
  12684. this[keys[i]] = properties[keys[i]];
  12685. }
  12686. /**
  12687. * hero_onekey_upgrade_star_rsp errno.
  12688. * @member {number|Long} errno
  12689. * @memberof game.hero_onekey_upgrade_star_rsp
  12690. * @instance
  12691. */
  12692. hero_onekey_upgrade_star_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  12693. /**
  12694. * hero_onekey_upgrade_star_rsp delList.
  12695. * @member {Array.<string>} delList
  12696. * @memberof game.hero_onekey_upgrade_star_rsp
  12697. * @instance
  12698. */
  12699. hero_onekey_upgrade_star_rsp.prototype.delList = $util.emptyArray;
  12700. /**
  12701. * hero_onekey_upgrade_star_rsp changeList.
  12702. * @member {Array.<game.Ihero>} changeList
  12703. * @memberof game.hero_onekey_upgrade_star_rsp
  12704. * @instance
  12705. */
  12706. hero_onekey_upgrade_star_rsp.prototype.changeList = $util.emptyArray;
  12707. /**
  12708. * Creates a new hero_onekey_upgrade_star_rsp instance using the specified properties.
  12709. * @function create
  12710. * @memberof game.hero_onekey_upgrade_star_rsp
  12711. * @static
  12712. * @param {game.Ihero_onekey_upgrade_star_rsp=} [properties] Properties to set
  12713. * @returns {game.hero_onekey_upgrade_star_rsp} hero_onekey_upgrade_star_rsp instance
  12714. */
  12715. hero_onekey_upgrade_star_rsp.create = function create(properties) {
  12716. return new hero_onekey_upgrade_star_rsp(properties);
  12717. };
  12718. /**
  12719. * Encodes the specified hero_onekey_upgrade_star_rsp message. Does not implicitly {@link game.hero_onekey_upgrade_star_rsp.verify|verify} messages.
  12720. * @function encode
  12721. * @memberof game.hero_onekey_upgrade_star_rsp
  12722. * @static
  12723. * @param {game.Ihero_onekey_upgrade_star_rsp} message hero_onekey_upgrade_star_rsp message or plain object to encode
  12724. * @param {$protobuf.Writer} [writer] Writer to encode to
  12725. * @returns {$protobuf.Writer} Writer
  12726. */
  12727. hero_onekey_upgrade_star_rsp.encode = function encode(message, writer) {
  12728. if (!writer)
  12729. writer = $Writer.create();
  12730. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  12731. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  12732. if (message.delList != null && message.delList.length)
  12733. for (let i = 0; i < message.delList.length; ++i)
  12734. writer.uint32(/* id 2, wireType 2 =*/18).string(message.delList[i]);
  12735. if (message.changeList != null && message.changeList.length)
  12736. for (let i = 0; i < message.changeList.length; ++i)
  12737. $root.game.hero.encode(message.changeList[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
  12738. return writer;
  12739. };
  12740. /**
  12741. * Encodes the specified hero_onekey_upgrade_star_rsp message, length delimited. Does not implicitly {@link game.hero_onekey_upgrade_star_rsp.verify|verify} messages.
  12742. * @function encodeDelimited
  12743. * @memberof game.hero_onekey_upgrade_star_rsp
  12744. * @static
  12745. * @param {game.Ihero_onekey_upgrade_star_rsp} message hero_onekey_upgrade_star_rsp message or plain object to encode
  12746. * @param {$protobuf.Writer} [writer] Writer to encode to
  12747. * @returns {$protobuf.Writer} Writer
  12748. */
  12749. hero_onekey_upgrade_star_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  12750. return this.encode(message, writer).ldelim();
  12751. };
  12752. /**
  12753. * Decodes a hero_onekey_upgrade_star_rsp message from the specified reader or buffer.
  12754. * @function decode
  12755. * @memberof game.hero_onekey_upgrade_star_rsp
  12756. * @static
  12757. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  12758. * @param {number} [length] Message length if known beforehand
  12759. * @returns {game.hero_onekey_upgrade_star_rsp} hero_onekey_upgrade_star_rsp
  12760. * @throws {Error} If the payload is not a reader or valid buffer
  12761. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  12762. */
  12763. hero_onekey_upgrade_star_rsp.decode = function decode(reader, length) {
  12764. if (!(reader instanceof $Reader))
  12765. reader = $Reader.create(reader);
  12766. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_onekey_upgrade_star_rsp();
  12767. while (reader.pos < end) {
  12768. let tag = reader.uint32();
  12769. switch (tag >>> 3) {
  12770. case 1:
  12771. message.errno = reader.int64();
  12772. break;
  12773. case 2:
  12774. if (!(message.delList && message.delList.length))
  12775. message.delList = [];
  12776. message.delList.push(reader.string());
  12777. break;
  12778. case 3:
  12779. if (!(message.changeList && message.changeList.length))
  12780. message.changeList = [];
  12781. message.changeList.push($root.game.hero.decode(reader, reader.uint32()));
  12782. break;
  12783. default:
  12784. reader.skipType(tag & 7);
  12785. break;
  12786. }
  12787. }
  12788. return message;
  12789. };
  12790. /**
  12791. * Decodes a hero_onekey_upgrade_star_rsp message from the specified reader or buffer, length delimited.
  12792. * @function decodeDelimited
  12793. * @memberof game.hero_onekey_upgrade_star_rsp
  12794. * @static
  12795. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  12796. * @returns {game.hero_onekey_upgrade_star_rsp} hero_onekey_upgrade_star_rsp
  12797. * @throws {Error} If the payload is not a reader or valid buffer
  12798. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  12799. */
  12800. hero_onekey_upgrade_star_rsp.decodeDelimited = function decodeDelimited(reader) {
  12801. if (!(reader instanceof $Reader))
  12802. reader = new $Reader(reader);
  12803. return this.decode(reader, reader.uint32());
  12804. };
  12805. /**
  12806. * Verifies a hero_onekey_upgrade_star_rsp message.
  12807. * @function verify
  12808. * @memberof game.hero_onekey_upgrade_star_rsp
  12809. * @static
  12810. * @param {Object.<string,*>} message Plain object to verify
  12811. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  12812. */
  12813. hero_onekey_upgrade_star_rsp.verify = function verify(message) {
  12814. if (typeof message !== "object" || message === null)
  12815. return "object expected";
  12816. if (message.errno != null && message.hasOwnProperty("errno"))
  12817. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  12818. return "errno: integer|Long expected";
  12819. if (message.delList != null && message.hasOwnProperty("delList")) {
  12820. if (!Array.isArray(message.delList))
  12821. return "delList: array expected";
  12822. for (let i = 0; i < message.delList.length; ++i)
  12823. if (!$util.isString(message.delList[i]))
  12824. return "delList: string[] expected";
  12825. }
  12826. if (message.changeList != null && message.hasOwnProperty("changeList")) {
  12827. if (!Array.isArray(message.changeList))
  12828. return "changeList: array expected";
  12829. for (let i = 0; i < message.changeList.length; ++i) {
  12830. let error = $root.game.hero.verify(message.changeList[i]);
  12831. if (error)
  12832. return "changeList." + error;
  12833. }
  12834. }
  12835. return null;
  12836. };
  12837. /**
  12838. * Creates a hero_onekey_upgrade_star_rsp message from a plain object. Also converts values to their respective internal types.
  12839. * @function fromObject
  12840. * @memberof game.hero_onekey_upgrade_star_rsp
  12841. * @static
  12842. * @param {Object.<string,*>} object Plain object
  12843. * @returns {game.hero_onekey_upgrade_star_rsp} hero_onekey_upgrade_star_rsp
  12844. */
  12845. hero_onekey_upgrade_star_rsp.fromObject = function fromObject(object) {
  12846. if (object instanceof $root.game.hero_onekey_upgrade_star_rsp)
  12847. return object;
  12848. let message = new $root.game.hero_onekey_upgrade_star_rsp();
  12849. if (object.errno != null)
  12850. if ($util.Long)
  12851. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  12852. else if (typeof object.errno === "string")
  12853. message.errno = parseInt(object.errno, 10);
  12854. else if (typeof object.errno === "number")
  12855. message.errno = object.errno;
  12856. else if (typeof object.errno === "object")
  12857. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  12858. if (object.delList) {
  12859. if (!Array.isArray(object.delList))
  12860. throw TypeError(".game.hero_onekey_upgrade_star_rsp.delList: array expected");
  12861. message.delList = [];
  12862. for (let i = 0; i < object.delList.length; ++i)
  12863. message.delList[i] = String(object.delList[i]);
  12864. }
  12865. if (object.changeList) {
  12866. if (!Array.isArray(object.changeList))
  12867. throw TypeError(".game.hero_onekey_upgrade_star_rsp.changeList: array expected");
  12868. message.changeList = [];
  12869. for (let i = 0; i < object.changeList.length; ++i) {
  12870. if (typeof object.changeList[i] !== "object")
  12871. throw TypeError(".game.hero_onekey_upgrade_star_rsp.changeList: object expected");
  12872. message.changeList[i] = $root.game.hero.fromObject(object.changeList[i]);
  12873. }
  12874. }
  12875. return message;
  12876. };
  12877. /**
  12878. * Creates a plain object from a hero_onekey_upgrade_star_rsp message. Also converts values to other types if specified.
  12879. * @function toObject
  12880. * @memberof game.hero_onekey_upgrade_star_rsp
  12881. * @static
  12882. * @param {game.hero_onekey_upgrade_star_rsp} message hero_onekey_upgrade_star_rsp
  12883. * @param {$protobuf.IConversionOptions} [options] Conversion options
  12884. * @returns {Object.<string,*>} Plain object
  12885. */
  12886. hero_onekey_upgrade_star_rsp.toObject = function toObject(message, options) {
  12887. if (!options)
  12888. options = {};
  12889. let object = {};
  12890. if (options.arrays || options.defaults) {
  12891. object.delList = [];
  12892. object.changeList = [];
  12893. }
  12894. if (options.defaults)
  12895. if ($util.Long) {
  12896. let long = new $util.Long(0, 0, false);
  12897. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  12898. } else
  12899. object.errno = options.longs === String ? "0" : 0;
  12900. if (message.errno != null && message.hasOwnProperty("errno"))
  12901. if (typeof message.errno === "number")
  12902. object.errno = options.longs === String ? String(message.errno) : message.errno;
  12903. else
  12904. 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;
  12905. if (message.delList && message.delList.length) {
  12906. object.delList = [];
  12907. for (let j = 0; j < message.delList.length; ++j)
  12908. object.delList[j] = message.delList[j];
  12909. }
  12910. if (message.changeList && message.changeList.length) {
  12911. object.changeList = [];
  12912. for (let j = 0; j < message.changeList.length; ++j)
  12913. object.changeList[j] = $root.game.hero.toObject(message.changeList[j], options);
  12914. }
  12915. return object;
  12916. };
  12917. /**
  12918. * Converts this hero_onekey_upgrade_star_rsp to JSON.
  12919. * @function toJSON
  12920. * @memberof game.hero_onekey_upgrade_star_rsp
  12921. * @instance
  12922. * @returns {Object.<string,*>} JSON object
  12923. */
  12924. hero_onekey_upgrade_star_rsp.prototype.toJSON = function toJSON() {
  12925. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  12926. };
  12927. return hero_onekey_upgrade_star_rsp;
  12928. })();
  12929. game.hero_reset = (function() {
  12930. /**
  12931. * Properties of a hero_reset.
  12932. * @memberof game
  12933. * @interface Ihero_reset
  12934. * @property {boolean|null} [level] hero_reset level
  12935. * @property {string|null} [sid] hero_reset sid
  12936. */
  12937. /**
  12938. * Constructs a new hero_reset.
  12939. * @memberof game
  12940. * @classdesc Represents a hero_reset.
  12941. * @implements Ihero_reset
  12942. * @constructor
  12943. * @param {game.Ihero_reset=} [properties] Properties to set
  12944. */
  12945. function hero_reset(properties) {
  12946. if (properties)
  12947. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  12948. if (properties[keys[i]] != null)
  12949. this[keys[i]] = properties[keys[i]];
  12950. }
  12951. /**
  12952. * hero_reset level.
  12953. * @member {boolean} level
  12954. * @memberof game.hero_reset
  12955. * @instance
  12956. */
  12957. hero_reset.prototype.level = false;
  12958. /**
  12959. * hero_reset sid.
  12960. * @member {string} sid
  12961. * @memberof game.hero_reset
  12962. * @instance
  12963. */
  12964. hero_reset.prototype.sid = "";
  12965. /**
  12966. * Creates a new hero_reset instance using the specified properties.
  12967. * @function create
  12968. * @memberof game.hero_reset
  12969. * @static
  12970. * @param {game.Ihero_reset=} [properties] Properties to set
  12971. * @returns {game.hero_reset} hero_reset instance
  12972. */
  12973. hero_reset.create = function create(properties) {
  12974. return new hero_reset(properties);
  12975. };
  12976. /**
  12977. * Encodes the specified hero_reset message. Does not implicitly {@link game.hero_reset.verify|verify} messages.
  12978. * @function encode
  12979. * @memberof game.hero_reset
  12980. * @static
  12981. * @param {game.Ihero_reset} message hero_reset message or plain object to encode
  12982. * @param {$protobuf.Writer} [writer] Writer to encode to
  12983. * @returns {$protobuf.Writer} Writer
  12984. */
  12985. hero_reset.encode = function encode(message, writer) {
  12986. if (!writer)
  12987. writer = $Writer.create();
  12988. if (message.level != null && Object.hasOwnProperty.call(message, "level"))
  12989. writer.uint32(/* id 1, wireType 0 =*/8).bool(message.level);
  12990. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  12991. writer.uint32(/* id 2, wireType 2 =*/18).string(message.sid);
  12992. return writer;
  12993. };
  12994. /**
  12995. * Encodes the specified hero_reset message, length delimited. Does not implicitly {@link game.hero_reset.verify|verify} messages.
  12996. * @function encodeDelimited
  12997. * @memberof game.hero_reset
  12998. * @static
  12999. * @param {game.Ihero_reset} message hero_reset message or plain object to encode
  13000. * @param {$protobuf.Writer} [writer] Writer to encode to
  13001. * @returns {$protobuf.Writer} Writer
  13002. */
  13003. hero_reset.encodeDelimited = function encodeDelimited(message, writer) {
  13004. return this.encode(message, writer).ldelim();
  13005. };
  13006. /**
  13007. * Decodes a hero_reset message from the specified reader or buffer.
  13008. * @function decode
  13009. * @memberof game.hero_reset
  13010. * @static
  13011. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  13012. * @param {number} [length] Message length if known beforehand
  13013. * @returns {game.hero_reset} hero_reset
  13014. * @throws {Error} If the payload is not a reader or valid buffer
  13015. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  13016. */
  13017. hero_reset.decode = function decode(reader, length) {
  13018. if (!(reader instanceof $Reader))
  13019. reader = $Reader.create(reader);
  13020. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_reset();
  13021. while (reader.pos < end) {
  13022. let tag = reader.uint32();
  13023. switch (tag >>> 3) {
  13024. case 1:
  13025. message.level = reader.bool();
  13026. break;
  13027. case 2:
  13028. message.sid = reader.string();
  13029. break;
  13030. default:
  13031. reader.skipType(tag & 7);
  13032. break;
  13033. }
  13034. }
  13035. return message;
  13036. };
  13037. /**
  13038. * Decodes a hero_reset message from the specified reader or buffer, length delimited.
  13039. * @function decodeDelimited
  13040. * @memberof game.hero_reset
  13041. * @static
  13042. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  13043. * @returns {game.hero_reset} hero_reset
  13044. * @throws {Error} If the payload is not a reader or valid buffer
  13045. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  13046. */
  13047. hero_reset.decodeDelimited = function decodeDelimited(reader) {
  13048. if (!(reader instanceof $Reader))
  13049. reader = new $Reader(reader);
  13050. return this.decode(reader, reader.uint32());
  13051. };
  13052. /**
  13053. * Verifies a hero_reset message.
  13054. * @function verify
  13055. * @memberof game.hero_reset
  13056. * @static
  13057. * @param {Object.<string,*>} message Plain object to verify
  13058. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  13059. */
  13060. hero_reset.verify = function verify(message) {
  13061. if (typeof message !== "object" || message === null)
  13062. return "object expected";
  13063. if (message.level != null && message.hasOwnProperty("level"))
  13064. if (typeof message.level !== "boolean")
  13065. return "level: boolean expected";
  13066. if (message.sid != null && message.hasOwnProperty("sid"))
  13067. if (!$util.isString(message.sid))
  13068. return "sid: string expected";
  13069. return null;
  13070. };
  13071. /**
  13072. * Creates a hero_reset message from a plain object. Also converts values to their respective internal types.
  13073. * @function fromObject
  13074. * @memberof game.hero_reset
  13075. * @static
  13076. * @param {Object.<string,*>} object Plain object
  13077. * @returns {game.hero_reset} hero_reset
  13078. */
  13079. hero_reset.fromObject = function fromObject(object) {
  13080. if (object instanceof $root.game.hero_reset)
  13081. return object;
  13082. let message = new $root.game.hero_reset();
  13083. if (object.level != null)
  13084. message.level = Boolean(object.level);
  13085. if (object.sid != null)
  13086. message.sid = String(object.sid);
  13087. return message;
  13088. };
  13089. /**
  13090. * Creates a plain object from a hero_reset message. Also converts values to other types if specified.
  13091. * @function toObject
  13092. * @memberof game.hero_reset
  13093. * @static
  13094. * @param {game.hero_reset} message hero_reset
  13095. * @param {$protobuf.IConversionOptions} [options] Conversion options
  13096. * @returns {Object.<string,*>} Plain object
  13097. */
  13098. hero_reset.toObject = function toObject(message, options) {
  13099. if (!options)
  13100. options = {};
  13101. let object = {};
  13102. if (options.defaults) {
  13103. object.level = false;
  13104. object.sid = "";
  13105. }
  13106. if (message.level != null && message.hasOwnProperty("level"))
  13107. object.level = message.level;
  13108. if (message.sid != null && message.hasOwnProperty("sid"))
  13109. object.sid = message.sid;
  13110. return object;
  13111. };
  13112. /**
  13113. * Converts this hero_reset to JSON.
  13114. * @function toJSON
  13115. * @memberof game.hero_reset
  13116. * @instance
  13117. * @returns {Object.<string,*>} JSON object
  13118. */
  13119. hero_reset.prototype.toJSON = function toJSON() {
  13120. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  13121. };
  13122. return hero_reset;
  13123. })();
  13124. game.hero_reset_rsp = (function() {
  13125. /**
  13126. * Properties of a hero_reset_rsp.
  13127. * @memberof game
  13128. * @interface Ihero_reset_rsp
  13129. * @property {number|Long|null} [errno] hero_reset_rsp errno
  13130. * @property {game.Ihero|null} [data] hero_reset_rsp data
  13131. */
  13132. /**
  13133. * Constructs a new hero_reset_rsp.
  13134. * @memberof game
  13135. * @classdesc Represents a hero_reset_rsp.
  13136. * @implements Ihero_reset_rsp
  13137. * @constructor
  13138. * @param {game.Ihero_reset_rsp=} [properties] Properties to set
  13139. */
  13140. function hero_reset_rsp(properties) {
  13141. if (properties)
  13142. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  13143. if (properties[keys[i]] != null)
  13144. this[keys[i]] = properties[keys[i]];
  13145. }
  13146. /**
  13147. * hero_reset_rsp errno.
  13148. * @member {number|Long} errno
  13149. * @memberof game.hero_reset_rsp
  13150. * @instance
  13151. */
  13152. hero_reset_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  13153. /**
  13154. * hero_reset_rsp data.
  13155. * @member {game.Ihero|null|undefined} data
  13156. * @memberof game.hero_reset_rsp
  13157. * @instance
  13158. */
  13159. hero_reset_rsp.prototype.data = null;
  13160. /**
  13161. * Creates a new hero_reset_rsp instance using the specified properties.
  13162. * @function create
  13163. * @memberof game.hero_reset_rsp
  13164. * @static
  13165. * @param {game.Ihero_reset_rsp=} [properties] Properties to set
  13166. * @returns {game.hero_reset_rsp} hero_reset_rsp instance
  13167. */
  13168. hero_reset_rsp.create = function create(properties) {
  13169. return new hero_reset_rsp(properties);
  13170. };
  13171. /**
  13172. * Encodes the specified hero_reset_rsp message. Does not implicitly {@link game.hero_reset_rsp.verify|verify} messages.
  13173. * @function encode
  13174. * @memberof game.hero_reset_rsp
  13175. * @static
  13176. * @param {game.Ihero_reset_rsp} message hero_reset_rsp message or plain object to encode
  13177. * @param {$protobuf.Writer} [writer] Writer to encode to
  13178. * @returns {$protobuf.Writer} Writer
  13179. */
  13180. hero_reset_rsp.encode = function encode(message, writer) {
  13181. if (!writer)
  13182. writer = $Writer.create();
  13183. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  13184. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  13185. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  13186. $root.game.hero.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  13187. return writer;
  13188. };
  13189. /**
  13190. * Encodes the specified hero_reset_rsp message, length delimited. Does not implicitly {@link game.hero_reset_rsp.verify|verify} messages.
  13191. * @function encodeDelimited
  13192. * @memberof game.hero_reset_rsp
  13193. * @static
  13194. * @param {game.Ihero_reset_rsp} message hero_reset_rsp message or plain object to encode
  13195. * @param {$protobuf.Writer} [writer] Writer to encode to
  13196. * @returns {$protobuf.Writer} Writer
  13197. */
  13198. hero_reset_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  13199. return this.encode(message, writer).ldelim();
  13200. };
  13201. /**
  13202. * Decodes a hero_reset_rsp message from the specified reader or buffer.
  13203. * @function decode
  13204. * @memberof game.hero_reset_rsp
  13205. * @static
  13206. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  13207. * @param {number} [length] Message length if known beforehand
  13208. * @returns {game.hero_reset_rsp} hero_reset_rsp
  13209. * @throws {Error} If the payload is not a reader or valid buffer
  13210. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  13211. */
  13212. hero_reset_rsp.decode = function decode(reader, length) {
  13213. if (!(reader instanceof $Reader))
  13214. reader = $Reader.create(reader);
  13215. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_reset_rsp();
  13216. while (reader.pos < end) {
  13217. let tag = reader.uint32();
  13218. switch (tag >>> 3) {
  13219. case 1:
  13220. message.errno = reader.int64();
  13221. break;
  13222. case 2:
  13223. message.data = $root.game.hero.decode(reader, reader.uint32());
  13224. break;
  13225. default:
  13226. reader.skipType(tag & 7);
  13227. break;
  13228. }
  13229. }
  13230. return message;
  13231. };
  13232. /**
  13233. * Decodes a hero_reset_rsp message from the specified reader or buffer, length delimited.
  13234. * @function decodeDelimited
  13235. * @memberof game.hero_reset_rsp
  13236. * @static
  13237. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  13238. * @returns {game.hero_reset_rsp} hero_reset_rsp
  13239. * @throws {Error} If the payload is not a reader or valid buffer
  13240. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  13241. */
  13242. hero_reset_rsp.decodeDelimited = function decodeDelimited(reader) {
  13243. if (!(reader instanceof $Reader))
  13244. reader = new $Reader(reader);
  13245. return this.decode(reader, reader.uint32());
  13246. };
  13247. /**
  13248. * Verifies a hero_reset_rsp message.
  13249. * @function verify
  13250. * @memberof game.hero_reset_rsp
  13251. * @static
  13252. * @param {Object.<string,*>} message Plain object to verify
  13253. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  13254. */
  13255. hero_reset_rsp.verify = function verify(message) {
  13256. if (typeof message !== "object" || message === null)
  13257. return "object expected";
  13258. if (message.errno != null && message.hasOwnProperty("errno"))
  13259. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  13260. return "errno: integer|Long expected";
  13261. if (message.data != null && message.hasOwnProperty("data")) {
  13262. let error = $root.game.hero.verify(message.data);
  13263. if (error)
  13264. return "data." + error;
  13265. }
  13266. return null;
  13267. };
  13268. /**
  13269. * Creates a hero_reset_rsp message from a plain object. Also converts values to their respective internal types.
  13270. * @function fromObject
  13271. * @memberof game.hero_reset_rsp
  13272. * @static
  13273. * @param {Object.<string,*>} object Plain object
  13274. * @returns {game.hero_reset_rsp} hero_reset_rsp
  13275. */
  13276. hero_reset_rsp.fromObject = function fromObject(object) {
  13277. if (object instanceof $root.game.hero_reset_rsp)
  13278. return object;
  13279. let message = new $root.game.hero_reset_rsp();
  13280. if (object.errno != null)
  13281. if ($util.Long)
  13282. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  13283. else if (typeof object.errno === "string")
  13284. message.errno = parseInt(object.errno, 10);
  13285. else if (typeof object.errno === "number")
  13286. message.errno = object.errno;
  13287. else if (typeof object.errno === "object")
  13288. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  13289. if (object.data != null) {
  13290. if (typeof object.data !== "object")
  13291. throw TypeError(".game.hero_reset_rsp.data: object expected");
  13292. message.data = $root.game.hero.fromObject(object.data);
  13293. }
  13294. return message;
  13295. };
  13296. /**
  13297. * Creates a plain object from a hero_reset_rsp message. Also converts values to other types if specified.
  13298. * @function toObject
  13299. * @memberof game.hero_reset_rsp
  13300. * @static
  13301. * @param {game.hero_reset_rsp} message hero_reset_rsp
  13302. * @param {$protobuf.IConversionOptions} [options] Conversion options
  13303. * @returns {Object.<string,*>} Plain object
  13304. */
  13305. hero_reset_rsp.toObject = function toObject(message, options) {
  13306. if (!options)
  13307. options = {};
  13308. let object = {};
  13309. if (options.defaults) {
  13310. if ($util.Long) {
  13311. let long = new $util.Long(0, 0, false);
  13312. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  13313. } else
  13314. object.errno = options.longs === String ? "0" : 0;
  13315. object.data = null;
  13316. }
  13317. if (message.errno != null && message.hasOwnProperty("errno"))
  13318. if (typeof message.errno === "number")
  13319. object.errno = options.longs === String ? String(message.errno) : message.errno;
  13320. else
  13321. 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;
  13322. if (message.data != null && message.hasOwnProperty("data"))
  13323. object.data = $root.game.hero.toObject(message.data, options);
  13324. return object;
  13325. };
  13326. /**
  13327. * Converts this hero_reset_rsp to JSON.
  13328. * @function toJSON
  13329. * @memberof game.hero_reset_rsp
  13330. * @instance
  13331. * @returns {Object.<string,*>} JSON object
  13332. */
  13333. hero_reset_rsp.prototype.toJSON = function toJSON() {
  13334. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  13335. };
  13336. return hero_reset_rsp;
  13337. })();
  13338. game.hero_wear_equip = (function() {
  13339. /**
  13340. * Properties of a hero_wear_equip.
  13341. * @memberof game
  13342. * @interface Ihero_wear_equip
  13343. * @property {string|null} [sid] hero_wear_equip sid
  13344. * @property {Array.<string>|null} [list] hero_wear_equip list
  13345. */
  13346. /**
  13347. * Constructs a new hero_wear_equip.
  13348. * @memberof game
  13349. * @classdesc Represents a hero_wear_equip.
  13350. * @implements Ihero_wear_equip
  13351. * @constructor
  13352. * @param {game.Ihero_wear_equip=} [properties] Properties to set
  13353. */
  13354. function hero_wear_equip(properties) {
  13355. this.list = [];
  13356. if (properties)
  13357. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  13358. if (properties[keys[i]] != null)
  13359. this[keys[i]] = properties[keys[i]];
  13360. }
  13361. /**
  13362. * hero_wear_equip sid.
  13363. * @member {string} sid
  13364. * @memberof game.hero_wear_equip
  13365. * @instance
  13366. */
  13367. hero_wear_equip.prototype.sid = "";
  13368. /**
  13369. * hero_wear_equip list.
  13370. * @member {Array.<string>} list
  13371. * @memberof game.hero_wear_equip
  13372. * @instance
  13373. */
  13374. hero_wear_equip.prototype.list = $util.emptyArray;
  13375. /**
  13376. * Creates a new hero_wear_equip instance using the specified properties.
  13377. * @function create
  13378. * @memberof game.hero_wear_equip
  13379. * @static
  13380. * @param {game.Ihero_wear_equip=} [properties] Properties to set
  13381. * @returns {game.hero_wear_equip} hero_wear_equip instance
  13382. */
  13383. hero_wear_equip.create = function create(properties) {
  13384. return new hero_wear_equip(properties);
  13385. };
  13386. /**
  13387. * Encodes the specified hero_wear_equip message. Does not implicitly {@link game.hero_wear_equip.verify|verify} messages.
  13388. * @function encode
  13389. * @memberof game.hero_wear_equip
  13390. * @static
  13391. * @param {game.Ihero_wear_equip} message hero_wear_equip message or plain object to encode
  13392. * @param {$protobuf.Writer} [writer] Writer to encode to
  13393. * @returns {$protobuf.Writer} Writer
  13394. */
  13395. hero_wear_equip.encode = function encode(message, writer) {
  13396. if (!writer)
  13397. writer = $Writer.create();
  13398. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  13399. writer.uint32(/* id 1, wireType 2 =*/10).string(message.sid);
  13400. if (message.list != null && message.list.length)
  13401. for (let i = 0; i < message.list.length; ++i)
  13402. writer.uint32(/* id 2, wireType 2 =*/18).string(message.list[i]);
  13403. return writer;
  13404. };
  13405. /**
  13406. * Encodes the specified hero_wear_equip message, length delimited. Does not implicitly {@link game.hero_wear_equip.verify|verify} messages.
  13407. * @function encodeDelimited
  13408. * @memberof game.hero_wear_equip
  13409. * @static
  13410. * @param {game.Ihero_wear_equip} message hero_wear_equip message or plain object to encode
  13411. * @param {$protobuf.Writer} [writer] Writer to encode to
  13412. * @returns {$protobuf.Writer} Writer
  13413. */
  13414. hero_wear_equip.encodeDelimited = function encodeDelimited(message, writer) {
  13415. return this.encode(message, writer).ldelim();
  13416. };
  13417. /**
  13418. * Decodes a hero_wear_equip message from the specified reader or buffer.
  13419. * @function decode
  13420. * @memberof game.hero_wear_equip
  13421. * @static
  13422. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  13423. * @param {number} [length] Message length if known beforehand
  13424. * @returns {game.hero_wear_equip} hero_wear_equip
  13425. * @throws {Error} If the payload is not a reader or valid buffer
  13426. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  13427. */
  13428. hero_wear_equip.decode = function decode(reader, length) {
  13429. if (!(reader instanceof $Reader))
  13430. reader = $Reader.create(reader);
  13431. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_wear_equip();
  13432. while (reader.pos < end) {
  13433. let tag = reader.uint32();
  13434. switch (tag >>> 3) {
  13435. case 1:
  13436. message.sid = reader.string();
  13437. break;
  13438. case 2:
  13439. if (!(message.list && message.list.length))
  13440. message.list = [];
  13441. message.list.push(reader.string());
  13442. break;
  13443. default:
  13444. reader.skipType(tag & 7);
  13445. break;
  13446. }
  13447. }
  13448. return message;
  13449. };
  13450. /**
  13451. * Decodes a hero_wear_equip message from the specified reader or buffer, length delimited.
  13452. * @function decodeDelimited
  13453. * @memberof game.hero_wear_equip
  13454. * @static
  13455. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  13456. * @returns {game.hero_wear_equip} hero_wear_equip
  13457. * @throws {Error} If the payload is not a reader or valid buffer
  13458. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  13459. */
  13460. hero_wear_equip.decodeDelimited = function decodeDelimited(reader) {
  13461. if (!(reader instanceof $Reader))
  13462. reader = new $Reader(reader);
  13463. return this.decode(reader, reader.uint32());
  13464. };
  13465. /**
  13466. * Verifies a hero_wear_equip message.
  13467. * @function verify
  13468. * @memberof game.hero_wear_equip
  13469. * @static
  13470. * @param {Object.<string,*>} message Plain object to verify
  13471. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  13472. */
  13473. hero_wear_equip.verify = function verify(message) {
  13474. if (typeof message !== "object" || message === null)
  13475. return "object expected";
  13476. if (message.sid != null && message.hasOwnProperty("sid"))
  13477. if (!$util.isString(message.sid))
  13478. return "sid: string expected";
  13479. if (message.list != null && message.hasOwnProperty("list")) {
  13480. if (!Array.isArray(message.list))
  13481. return "list: array expected";
  13482. for (let i = 0; i < message.list.length; ++i)
  13483. if (!$util.isString(message.list[i]))
  13484. return "list: string[] expected";
  13485. }
  13486. return null;
  13487. };
  13488. /**
  13489. * Creates a hero_wear_equip message from a plain object. Also converts values to their respective internal types.
  13490. * @function fromObject
  13491. * @memberof game.hero_wear_equip
  13492. * @static
  13493. * @param {Object.<string,*>} object Plain object
  13494. * @returns {game.hero_wear_equip} hero_wear_equip
  13495. */
  13496. hero_wear_equip.fromObject = function fromObject(object) {
  13497. if (object instanceof $root.game.hero_wear_equip)
  13498. return object;
  13499. let message = new $root.game.hero_wear_equip();
  13500. if (object.sid != null)
  13501. message.sid = String(object.sid);
  13502. if (object.list) {
  13503. if (!Array.isArray(object.list))
  13504. throw TypeError(".game.hero_wear_equip.list: array expected");
  13505. message.list = [];
  13506. for (let i = 0; i < object.list.length; ++i)
  13507. message.list[i] = String(object.list[i]);
  13508. }
  13509. return message;
  13510. };
  13511. /**
  13512. * Creates a plain object from a hero_wear_equip message. Also converts values to other types if specified.
  13513. * @function toObject
  13514. * @memberof game.hero_wear_equip
  13515. * @static
  13516. * @param {game.hero_wear_equip} message hero_wear_equip
  13517. * @param {$protobuf.IConversionOptions} [options] Conversion options
  13518. * @returns {Object.<string,*>} Plain object
  13519. */
  13520. hero_wear_equip.toObject = function toObject(message, options) {
  13521. if (!options)
  13522. options = {};
  13523. let object = {};
  13524. if (options.arrays || options.defaults)
  13525. object.list = [];
  13526. if (options.defaults)
  13527. object.sid = "";
  13528. if (message.sid != null && message.hasOwnProperty("sid"))
  13529. object.sid = message.sid;
  13530. if (message.list && message.list.length) {
  13531. object.list = [];
  13532. for (let j = 0; j < message.list.length; ++j)
  13533. object.list[j] = message.list[j];
  13534. }
  13535. return object;
  13536. };
  13537. /**
  13538. * Converts this hero_wear_equip to JSON.
  13539. * @function toJSON
  13540. * @memberof game.hero_wear_equip
  13541. * @instance
  13542. * @returns {Object.<string,*>} JSON object
  13543. */
  13544. hero_wear_equip.prototype.toJSON = function toJSON() {
  13545. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  13546. };
  13547. return hero_wear_equip;
  13548. })();
  13549. game.hero_wear_equip_rsp = (function() {
  13550. /**
  13551. * Properties of a hero_wear_equip_rsp.
  13552. * @memberof game
  13553. * @interface Ihero_wear_equip_rsp
  13554. * @property {number|Long|null} [errno] hero_wear_equip_rsp errno
  13555. * @property {Array.<string>|null} [list] hero_wear_equip_rsp list
  13556. * @property {game.Ihero|null} [data] hero_wear_equip_rsp data
  13557. */
  13558. /**
  13559. * Constructs a new hero_wear_equip_rsp.
  13560. * @memberof game
  13561. * @classdesc Represents a hero_wear_equip_rsp.
  13562. * @implements Ihero_wear_equip_rsp
  13563. * @constructor
  13564. * @param {game.Ihero_wear_equip_rsp=} [properties] Properties to set
  13565. */
  13566. function hero_wear_equip_rsp(properties) {
  13567. this.list = [];
  13568. if (properties)
  13569. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  13570. if (properties[keys[i]] != null)
  13571. this[keys[i]] = properties[keys[i]];
  13572. }
  13573. /**
  13574. * hero_wear_equip_rsp errno.
  13575. * @member {number|Long} errno
  13576. * @memberof game.hero_wear_equip_rsp
  13577. * @instance
  13578. */
  13579. hero_wear_equip_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  13580. /**
  13581. * hero_wear_equip_rsp list.
  13582. * @member {Array.<string>} list
  13583. * @memberof game.hero_wear_equip_rsp
  13584. * @instance
  13585. */
  13586. hero_wear_equip_rsp.prototype.list = $util.emptyArray;
  13587. /**
  13588. * hero_wear_equip_rsp data.
  13589. * @member {game.Ihero|null|undefined} data
  13590. * @memberof game.hero_wear_equip_rsp
  13591. * @instance
  13592. */
  13593. hero_wear_equip_rsp.prototype.data = null;
  13594. /**
  13595. * Creates a new hero_wear_equip_rsp instance using the specified properties.
  13596. * @function create
  13597. * @memberof game.hero_wear_equip_rsp
  13598. * @static
  13599. * @param {game.Ihero_wear_equip_rsp=} [properties] Properties to set
  13600. * @returns {game.hero_wear_equip_rsp} hero_wear_equip_rsp instance
  13601. */
  13602. hero_wear_equip_rsp.create = function create(properties) {
  13603. return new hero_wear_equip_rsp(properties);
  13604. };
  13605. /**
  13606. * Encodes the specified hero_wear_equip_rsp message. Does not implicitly {@link game.hero_wear_equip_rsp.verify|verify} messages.
  13607. * @function encode
  13608. * @memberof game.hero_wear_equip_rsp
  13609. * @static
  13610. * @param {game.Ihero_wear_equip_rsp} message hero_wear_equip_rsp message or plain object to encode
  13611. * @param {$protobuf.Writer} [writer] Writer to encode to
  13612. * @returns {$protobuf.Writer} Writer
  13613. */
  13614. hero_wear_equip_rsp.encode = function encode(message, writer) {
  13615. if (!writer)
  13616. writer = $Writer.create();
  13617. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  13618. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  13619. if (message.list != null && message.list.length)
  13620. for (let i = 0; i < message.list.length; ++i)
  13621. writer.uint32(/* id 2, wireType 2 =*/18).string(message.list[i]);
  13622. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  13623. $root.game.hero.encode(message.data, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
  13624. return writer;
  13625. };
  13626. /**
  13627. * Encodes the specified hero_wear_equip_rsp message, length delimited. Does not implicitly {@link game.hero_wear_equip_rsp.verify|verify} messages.
  13628. * @function encodeDelimited
  13629. * @memberof game.hero_wear_equip_rsp
  13630. * @static
  13631. * @param {game.Ihero_wear_equip_rsp} message hero_wear_equip_rsp message or plain object to encode
  13632. * @param {$protobuf.Writer} [writer] Writer to encode to
  13633. * @returns {$protobuf.Writer} Writer
  13634. */
  13635. hero_wear_equip_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  13636. return this.encode(message, writer).ldelim();
  13637. };
  13638. /**
  13639. * Decodes a hero_wear_equip_rsp message from the specified reader or buffer.
  13640. * @function decode
  13641. * @memberof game.hero_wear_equip_rsp
  13642. * @static
  13643. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  13644. * @param {number} [length] Message length if known beforehand
  13645. * @returns {game.hero_wear_equip_rsp} hero_wear_equip_rsp
  13646. * @throws {Error} If the payload is not a reader or valid buffer
  13647. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  13648. */
  13649. hero_wear_equip_rsp.decode = function decode(reader, length) {
  13650. if (!(reader instanceof $Reader))
  13651. reader = $Reader.create(reader);
  13652. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_wear_equip_rsp();
  13653. while (reader.pos < end) {
  13654. let tag = reader.uint32();
  13655. switch (tag >>> 3) {
  13656. case 1:
  13657. message.errno = reader.int64();
  13658. break;
  13659. case 2:
  13660. if (!(message.list && message.list.length))
  13661. message.list = [];
  13662. message.list.push(reader.string());
  13663. break;
  13664. case 3:
  13665. message.data = $root.game.hero.decode(reader, reader.uint32());
  13666. break;
  13667. default:
  13668. reader.skipType(tag & 7);
  13669. break;
  13670. }
  13671. }
  13672. return message;
  13673. };
  13674. /**
  13675. * Decodes a hero_wear_equip_rsp message from the specified reader or buffer, length delimited.
  13676. * @function decodeDelimited
  13677. * @memberof game.hero_wear_equip_rsp
  13678. * @static
  13679. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  13680. * @returns {game.hero_wear_equip_rsp} hero_wear_equip_rsp
  13681. * @throws {Error} If the payload is not a reader or valid buffer
  13682. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  13683. */
  13684. hero_wear_equip_rsp.decodeDelimited = function decodeDelimited(reader) {
  13685. if (!(reader instanceof $Reader))
  13686. reader = new $Reader(reader);
  13687. return this.decode(reader, reader.uint32());
  13688. };
  13689. /**
  13690. * Verifies a hero_wear_equip_rsp message.
  13691. * @function verify
  13692. * @memberof game.hero_wear_equip_rsp
  13693. * @static
  13694. * @param {Object.<string,*>} message Plain object to verify
  13695. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  13696. */
  13697. hero_wear_equip_rsp.verify = function verify(message) {
  13698. if (typeof message !== "object" || message === null)
  13699. return "object expected";
  13700. if (message.errno != null && message.hasOwnProperty("errno"))
  13701. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  13702. return "errno: integer|Long expected";
  13703. if (message.list != null && message.hasOwnProperty("list")) {
  13704. if (!Array.isArray(message.list))
  13705. return "list: array expected";
  13706. for (let i = 0; i < message.list.length; ++i)
  13707. if (!$util.isString(message.list[i]))
  13708. return "list: string[] expected";
  13709. }
  13710. if (message.data != null && message.hasOwnProperty("data")) {
  13711. let error = $root.game.hero.verify(message.data);
  13712. if (error)
  13713. return "data." + error;
  13714. }
  13715. return null;
  13716. };
  13717. /**
  13718. * Creates a hero_wear_equip_rsp message from a plain object. Also converts values to their respective internal types.
  13719. * @function fromObject
  13720. * @memberof game.hero_wear_equip_rsp
  13721. * @static
  13722. * @param {Object.<string,*>} object Plain object
  13723. * @returns {game.hero_wear_equip_rsp} hero_wear_equip_rsp
  13724. */
  13725. hero_wear_equip_rsp.fromObject = function fromObject(object) {
  13726. if (object instanceof $root.game.hero_wear_equip_rsp)
  13727. return object;
  13728. let message = new $root.game.hero_wear_equip_rsp();
  13729. if (object.errno != null)
  13730. if ($util.Long)
  13731. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  13732. else if (typeof object.errno === "string")
  13733. message.errno = parseInt(object.errno, 10);
  13734. else if (typeof object.errno === "number")
  13735. message.errno = object.errno;
  13736. else if (typeof object.errno === "object")
  13737. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  13738. if (object.list) {
  13739. if (!Array.isArray(object.list))
  13740. throw TypeError(".game.hero_wear_equip_rsp.list: array expected");
  13741. message.list = [];
  13742. for (let i = 0; i < object.list.length; ++i)
  13743. message.list[i] = String(object.list[i]);
  13744. }
  13745. if (object.data != null) {
  13746. if (typeof object.data !== "object")
  13747. throw TypeError(".game.hero_wear_equip_rsp.data: object expected");
  13748. message.data = $root.game.hero.fromObject(object.data);
  13749. }
  13750. return message;
  13751. };
  13752. /**
  13753. * Creates a plain object from a hero_wear_equip_rsp message. Also converts values to other types if specified.
  13754. * @function toObject
  13755. * @memberof game.hero_wear_equip_rsp
  13756. * @static
  13757. * @param {game.hero_wear_equip_rsp} message hero_wear_equip_rsp
  13758. * @param {$protobuf.IConversionOptions} [options] Conversion options
  13759. * @returns {Object.<string,*>} Plain object
  13760. */
  13761. hero_wear_equip_rsp.toObject = function toObject(message, options) {
  13762. if (!options)
  13763. options = {};
  13764. let object = {};
  13765. if (options.arrays || options.defaults)
  13766. object.list = [];
  13767. if (options.defaults) {
  13768. if ($util.Long) {
  13769. let long = new $util.Long(0, 0, false);
  13770. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  13771. } else
  13772. object.errno = options.longs === String ? "0" : 0;
  13773. object.data = null;
  13774. }
  13775. if (message.errno != null && message.hasOwnProperty("errno"))
  13776. if (typeof message.errno === "number")
  13777. object.errno = options.longs === String ? String(message.errno) : message.errno;
  13778. else
  13779. 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;
  13780. if (message.list && message.list.length) {
  13781. object.list = [];
  13782. for (let j = 0; j < message.list.length; ++j)
  13783. object.list[j] = message.list[j];
  13784. }
  13785. if (message.data != null && message.hasOwnProperty("data"))
  13786. object.data = $root.game.hero.toObject(message.data, options);
  13787. return object;
  13788. };
  13789. /**
  13790. * Converts this hero_wear_equip_rsp to JSON.
  13791. * @function toJSON
  13792. * @memberof game.hero_wear_equip_rsp
  13793. * @instance
  13794. * @returns {Object.<string,*>} JSON object
  13795. */
  13796. hero_wear_equip_rsp.prototype.toJSON = function toJSON() {
  13797. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  13798. };
  13799. return hero_wear_equip_rsp;
  13800. })();
  13801. game.hero_change_nty = (function() {
  13802. /**
  13803. * Properties of a hero_change_nty.
  13804. * @memberof game
  13805. * @interface Ihero_change_nty
  13806. * @property {Array.<game.Ihero>|null} [list] hero_change_nty list
  13807. */
  13808. /**
  13809. * Constructs a new hero_change_nty.
  13810. * @memberof game
  13811. * @classdesc Represents a hero_change_nty.
  13812. * @implements Ihero_change_nty
  13813. * @constructor
  13814. * @param {game.Ihero_change_nty=} [properties] Properties to set
  13815. */
  13816. function hero_change_nty(properties) {
  13817. this.list = [];
  13818. if (properties)
  13819. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  13820. if (properties[keys[i]] != null)
  13821. this[keys[i]] = properties[keys[i]];
  13822. }
  13823. /**
  13824. * hero_change_nty list.
  13825. * @member {Array.<game.Ihero>} list
  13826. * @memberof game.hero_change_nty
  13827. * @instance
  13828. */
  13829. hero_change_nty.prototype.list = $util.emptyArray;
  13830. /**
  13831. * Creates a new hero_change_nty instance using the specified properties.
  13832. * @function create
  13833. * @memberof game.hero_change_nty
  13834. * @static
  13835. * @param {game.Ihero_change_nty=} [properties] Properties to set
  13836. * @returns {game.hero_change_nty} hero_change_nty instance
  13837. */
  13838. hero_change_nty.create = function create(properties) {
  13839. return new hero_change_nty(properties);
  13840. };
  13841. /**
  13842. * Encodes the specified hero_change_nty message. Does not implicitly {@link game.hero_change_nty.verify|verify} messages.
  13843. * @function encode
  13844. * @memberof game.hero_change_nty
  13845. * @static
  13846. * @param {game.Ihero_change_nty} message hero_change_nty message or plain object to encode
  13847. * @param {$protobuf.Writer} [writer] Writer to encode to
  13848. * @returns {$protobuf.Writer} Writer
  13849. */
  13850. hero_change_nty.encode = function encode(message, writer) {
  13851. if (!writer)
  13852. writer = $Writer.create();
  13853. if (message.list != null && message.list.length)
  13854. for (let i = 0; i < message.list.length; ++i)
  13855. $root.game.hero.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  13856. return writer;
  13857. };
  13858. /**
  13859. * Encodes the specified hero_change_nty message, length delimited. Does not implicitly {@link game.hero_change_nty.verify|verify} messages.
  13860. * @function encodeDelimited
  13861. * @memberof game.hero_change_nty
  13862. * @static
  13863. * @param {game.Ihero_change_nty} message hero_change_nty message or plain object to encode
  13864. * @param {$protobuf.Writer} [writer] Writer to encode to
  13865. * @returns {$protobuf.Writer} Writer
  13866. */
  13867. hero_change_nty.encodeDelimited = function encodeDelimited(message, writer) {
  13868. return this.encode(message, writer).ldelim();
  13869. };
  13870. /**
  13871. * Decodes a hero_change_nty message from the specified reader or buffer.
  13872. * @function decode
  13873. * @memberof game.hero_change_nty
  13874. * @static
  13875. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  13876. * @param {number} [length] Message length if known beforehand
  13877. * @returns {game.hero_change_nty} hero_change_nty
  13878. * @throws {Error} If the payload is not a reader or valid buffer
  13879. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  13880. */
  13881. hero_change_nty.decode = function decode(reader, length) {
  13882. if (!(reader instanceof $Reader))
  13883. reader = $Reader.create(reader);
  13884. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_change_nty();
  13885. while (reader.pos < end) {
  13886. let tag = reader.uint32();
  13887. switch (tag >>> 3) {
  13888. case 2:
  13889. if (!(message.list && message.list.length))
  13890. message.list = [];
  13891. message.list.push($root.game.hero.decode(reader, reader.uint32()));
  13892. break;
  13893. default:
  13894. reader.skipType(tag & 7);
  13895. break;
  13896. }
  13897. }
  13898. return message;
  13899. };
  13900. /**
  13901. * Decodes a hero_change_nty message from the specified reader or buffer, length delimited.
  13902. * @function decodeDelimited
  13903. * @memberof game.hero_change_nty
  13904. * @static
  13905. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  13906. * @returns {game.hero_change_nty} hero_change_nty
  13907. * @throws {Error} If the payload is not a reader or valid buffer
  13908. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  13909. */
  13910. hero_change_nty.decodeDelimited = function decodeDelimited(reader) {
  13911. if (!(reader instanceof $Reader))
  13912. reader = new $Reader(reader);
  13913. return this.decode(reader, reader.uint32());
  13914. };
  13915. /**
  13916. * Verifies a hero_change_nty message.
  13917. * @function verify
  13918. * @memberof game.hero_change_nty
  13919. * @static
  13920. * @param {Object.<string,*>} message Plain object to verify
  13921. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  13922. */
  13923. hero_change_nty.verify = function verify(message) {
  13924. if (typeof message !== "object" || message === null)
  13925. return "object expected";
  13926. if (message.list != null && message.hasOwnProperty("list")) {
  13927. if (!Array.isArray(message.list))
  13928. return "list: array expected";
  13929. for (let i = 0; i < message.list.length; ++i) {
  13930. let error = $root.game.hero.verify(message.list[i]);
  13931. if (error)
  13932. return "list." + error;
  13933. }
  13934. }
  13935. return null;
  13936. };
  13937. /**
  13938. * Creates a hero_change_nty message from a plain object. Also converts values to their respective internal types.
  13939. * @function fromObject
  13940. * @memberof game.hero_change_nty
  13941. * @static
  13942. * @param {Object.<string,*>} object Plain object
  13943. * @returns {game.hero_change_nty} hero_change_nty
  13944. */
  13945. hero_change_nty.fromObject = function fromObject(object) {
  13946. if (object instanceof $root.game.hero_change_nty)
  13947. return object;
  13948. let message = new $root.game.hero_change_nty();
  13949. if (object.list) {
  13950. if (!Array.isArray(object.list))
  13951. throw TypeError(".game.hero_change_nty.list: array expected");
  13952. message.list = [];
  13953. for (let i = 0; i < object.list.length; ++i) {
  13954. if (typeof object.list[i] !== "object")
  13955. throw TypeError(".game.hero_change_nty.list: object expected");
  13956. message.list[i] = $root.game.hero.fromObject(object.list[i]);
  13957. }
  13958. }
  13959. return message;
  13960. };
  13961. /**
  13962. * Creates a plain object from a hero_change_nty message. Also converts values to other types if specified.
  13963. * @function toObject
  13964. * @memberof game.hero_change_nty
  13965. * @static
  13966. * @param {game.hero_change_nty} message hero_change_nty
  13967. * @param {$protobuf.IConversionOptions} [options] Conversion options
  13968. * @returns {Object.<string,*>} Plain object
  13969. */
  13970. hero_change_nty.toObject = function toObject(message, options) {
  13971. if (!options)
  13972. options = {};
  13973. let object = {};
  13974. if (options.arrays || options.defaults)
  13975. object.list = [];
  13976. if (message.list && message.list.length) {
  13977. object.list = [];
  13978. for (let j = 0; j < message.list.length; ++j)
  13979. object.list[j] = $root.game.hero.toObject(message.list[j], options);
  13980. }
  13981. return object;
  13982. };
  13983. /**
  13984. * Converts this hero_change_nty to JSON.
  13985. * @function toJSON
  13986. * @memberof game.hero_change_nty
  13987. * @instance
  13988. * @returns {Object.<string,*>} JSON object
  13989. */
  13990. hero_change_nty.prototype.toJSON = function toJSON() {
  13991. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  13992. };
  13993. return hero_change_nty;
  13994. })();
  13995. game.skill_card_get_data = (function() {
  13996. /**
  13997. * Properties of a skill_card_get_data.
  13998. * @memberof game
  13999. * @interface Iskill_card_get_data
  14000. */
  14001. /**
  14002. * Constructs a new skill_card_get_data.
  14003. * @memberof game
  14004. * @classdesc Represents a skill_card_get_data.
  14005. * @implements Iskill_card_get_data
  14006. * @constructor
  14007. * @param {game.Iskill_card_get_data=} [properties] Properties to set
  14008. */
  14009. function skill_card_get_data(properties) {
  14010. if (properties)
  14011. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  14012. if (properties[keys[i]] != null)
  14013. this[keys[i]] = properties[keys[i]];
  14014. }
  14015. /**
  14016. * Creates a new skill_card_get_data instance using the specified properties.
  14017. * @function create
  14018. * @memberof game.skill_card_get_data
  14019. * @static
  14020. * @param {game.Iskill_card_get_data=} [properties] Properties to set
  14021. * @returns {game.skill_card_get_data} skill_card_get_data instance
  14022. */
  14023. skill_card_get_data.create = function create(properties) {
  14024. return new skill_card_get_data(properties);
  14025. };
  14026. /**
  14027. * Encodes the specified skill_card_get_data message. Does not implicitly {@link game.skill_card_get_data.verify|verify} messages.
  14028. * @function encode
  14029. * @memberof game.skill_card_get_data
  14030. * @static
  14031. * @param {game.Iskill_card_get_data} message skill_card_get_data message or plain object to encode
  14032. * @param {$protobuf.Writer} [writer] Writer to encode to
  14033. * @returns {$protobuf.Writer} Writer
  14034. */
  14035. skill_card_get_data.encode = function encode(message, writer) {
  14036. if (!writer)
  14037. writer = $Writer.create();
  14038. return writer;
  14039. };
  14040. /**
  14041. * Encodes the specified skill_card_get_data message, length delimited. Does not implicitly {@link game.skill_card_get_data.verify|verify} messages.
  14042. * @function encodeDelimited
  14043. * @memberof game.skill_card_get_data
  14044. * @static
  14045. * @param {game.Iskill_card_get_data} message skill_card_get_data message or plain object to encode
  14046. * @param {$protobuf.Writer} [writer] Writer to encode to
  14047. * @returns {$protobuf.Writer} Writer
  14048. */
  14049. skill_card_get_data.encodeDelimited = function encodeDelimited(message, writer) {
  14050. return this.encode(message, writer).ldelim();
  14051. };
  14052. /**
  14053. * Decodes a skill_card_get_data message from the specified reader or buffer.
  14054. * @function decode
  14055. * @memberof game.skill_card_get_data
  14056. * @static
  14057. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  14058. * @param {number} [length] Message length if known beforehand
  14059. * @returns {game.skill_card_get_data} skill_card_get_data
  14060. * @throws {Error} If the payload is not a reader or valid buffer
  14061. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  14062. */
  14063. skill_card_get_data.decode = function decode(reader, length) {
  14064. if (!(reader instanceof $Reader))
  14065. reader = $Reader.create(reader);
  14066. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.skill_card_get_data();
  14067. while (reader.pos < end) {
  14068. let tag = reader.uint32();
  14069. switch (tag >>> 3) {
  14070. default:
  14071. reader.skipType(tag & 7);
  14072. break;
  14073. }
  14074. }
  14075. return message;
  14076. };
  14077. /**
  14078. * Decodes a skill_card_get_data message from the specified reader or buffer, length delimited.
  14079. * @function decodeDelimited
  14080. * @memberof game.skill_card_get_data
  14081. * @static
  14082. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  14083. * @returns {game.skill_card_get_data} skill_card_get_data
  14084. * @throws {Error} If the payload is not a reader or valid buffer
  14085. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  14086. */
  14087. skill_card_get_data.decodeDelimited = function decodeDelimited(reader) {
  14088. if (!(reader instanceof $Reader))
  14089. reader = new $Reader(reader);
  14090. return this.decode(reader, reader.uint32());
  14091. };
  14092. /**
  14093. * Verifies a skill_card_get_data message.
  14094. * @function verify
  14095. * @memberof game.skill_card_get_data
  14096. * @static
  14097. * @param {Object.<string,*>} message Plain object to verify
  14098. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  14099. */
  14100. skill_card_get_data.verify = function verify(message) {
  14101. if (typeof message !== "object" || message === null)
  14102. return "object expected";
  14103. return null;
  14104. };
  14105. /**
  14106. * Creates a skill_card_get_data message from a plain object. Also converts values to their respective internal types.
  14107. * @function fromObject
  14108. * @memberof game.skill_card_get_data
  14109. * @static
  14110. * @param {Object.<string,*>} object Plain object
  14111. * @returns {game.skill_card_get_data} skill_card_get_data
  14112. */
  14113. skill_card_get_data.fromObject = function fromObject(object) {
  14114. if (object instanceof $root.game.skill_card_get_data)
  14115. return object;
  14116. return new $root.game.skill_card_get_data();
  14117. };
  14118. /**
  14119. * Creates a plain object from a skill_card_get_data message. Also converts values to other types if specified.
  14120. * @function toObject
  14121. * @memberof game.skill_card_get_data
  14122. * @static
  14123. * @param {game.skill_card_get_data} message skill_card_get_data
  14124. * @param {$protobuf.IConversionOptions} [options] Conversion options
  14125. * @returns {Object.<string,*>} Plain object
  14126. */
  14127. skill_card_get_data.toObject = function toObject() {
  14128. return {};
  14129. };
  14130. /**
  14131. * Converts this skill_card_get_data to JSON.
  14132. * @function toJSON
  14133. * @memberof game.skill_card_get_data
  14134. * @instance
  14135. * @returns {Object.<string,*>} JSON object
  14136. */
  14137. skill_card_get_data.prototype.toJSON = function toJSON() {
  14138. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  14139. };
  14140. return skill_card_get_data;
  14141. })();
  14142. game.skill_card_get_data_rsp = (function() {
  14143. /**
  14144. * Properties of a skill_card_get_data_rsp.
  14145. * @memberof game
  14146. * @interface Iskill_card_get_data_rsp
  14147. * @property {number|Long|null} [errno] skill_card_get_data_rsp errno
  14148. * @property {Array.<game.Icard>|null} [list] skill_card_get_data_rsp list
  14149. */
  14150. /**
  14151. * Constructs a new skill_card_get_data_rsp.
  14152. * @memberof game
  14153. * @classdesc Represents a skill_card_get_data_rsp.
  14154. * @implements Iskill_card_get_data_rsp
  14155. * @constructor
  14156. * @param {game.Iskill_card_get_data_rsp=} [properties] Properties to set
  14157. */
  14158. function skill_card_get_data_rsp(properties) {
  14159. this.list = [];
  14160. if (properties)
  14161. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  14162. if (properties[keys[i]] != null)
  14163. this[keys[i]] = properties[keys[i]];
  14164. }
  14165. /**
  14166. * skill_card_get_data_rsp errno.
  14167. * @member {number|Long} errno
  14168. * @memberof game.skill_card_get_data_rsp
  14169. * @instance
  14170. */
  14171. skill_card_get_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  14172. /**
  14173. * skill_card_get_data_rsp list.
  14174. * @member {Array.<game.Icard>} list
  14175. * @memberof game.skill_card_get_data_rsp
  14176. * @instance
  14177. */
  14178. skill_card_get_data_rsp.prototype.list = $util.emptyArray;
  14179. /**
  14180. * Creates a new skill_card_get_data_rsp instance using the specified properties.
  14181. * @function create
  14182. * @memberof game.skill_card_get_data_rsp
  14183. * @static
  14184. * @param {game.Iskill_card_get_data_rsp=} [properties] Properties to set
  14185. * @returns {game.skill_card_get_data_rsp} skill_card_get_data_rsp instance
  14186. */
  14187. skill_card_get_data_rsp.create = function create(properties) {
  14188. return new skill_card_get_data_rsp(properties);
  14189. };
  14190. /**
  14191. * Encodes the specified skill_card_get_data_rsp message. Does not implicitly {@link game.skill_card_get_data_rsp.verify|verify} messages.
  14192. * @function encode
  14193. * @memberof game.skill_card_get_data_rsp
  14194. * @static
  14195. * @param {game.Iskill_card_get_data_rsp} message skill_card_get_data_rsp message or plain object to encode
  14196. * @param {$protobuf.Writer} [writer] Writer to encode to
  14197. * @returns {$protobuf.Writer} Writer
  14198. */
  14199. skill_card_get_data_rsp.encode = function encode(message, writer) {
  14200. if (!writer)
  14201. writer = $Writer.create();
  14202. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  14203. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  14204. if (message.list != null && message.list.length)
  14205. for (let i = 0; i < message.list.length; ++i)
  14206. $root.game.card.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  14207. return writer;
  14208. };
  14209. /**
  14210. * Encodes the specified skill_card_get_data_rsp message, length delimited. Does not implicitly {@link game.skill_card_get_data_rsp.verify|verify} messages.
  14211. * @function encodeDelimited
  14212. * @memberof game.skill_card_get_data_rsp
  14213. * @static
  14214. * @param {game.Iskill_card_get_data_rsp} message skill_card_get_data_rsp message or plain object to encode
  14215. * @param {$protobuf.Writer} [writer] Writer to encode to
  14216. * @returns {$protobuf.Writer} Writer
  14217. */
  14218. skill_card_get_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  14219. return this.encode(message, writer).ldelim();
  14220. };
  14221. /**
  14222. * Decodes a skill_card_get_data_rsp message from the specified reader or buffer.
  14223. * @function decode
  14224. * @memberof game.skill_card_get_data_rsp
  14225. * @static
  14226. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  14227. * @param {number} [length] Message length if known beforehand
  14228. * @returns {game.skill_card_get_data_rsp} skill_card_get_data_rsp
  14229. * @throws {Error} If the payload is not a reader or valid buffer
  14230. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  14231. */
  14232. skill_card_get_data_rsp.decode = function decode(reader, length) {
  14233. if (!(reader instanceof $Reader))
  14234. reader = $Reader.create(reader);
  14235. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.skill_card_get_data_rsp();
  14236. while (reader.pos < end) {
  14237. let tag = reader.uint32();
  14238. switch (tag >>> 3) {
  14239. case 1:
  14240. message.errno = reader.int64();
  14241. break;
  14242. case 2:
  14243. if (!(message.list && message.list.length))
  14244. message.list = [];
  14245. message.list.push($root.game.card.decode(reader, reader.uint32()));
  14246. break;
  14247. default:
  14248. reader.skipType(tag & 7);
  14249. break;
  14250. }
  14251. }
  14252. return message;
  14253. };
  14254. /**
  14255. * Decodes a skill_card_get_data_rsp message from the specified reader or buffer, length delimited.
  14256. * @function decodeDelimited
  14257. * @memberof game.skill_card_get_data_rsp
  14258. * @static
  14259. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  14260. * @returns {game.skill_card_get_data_rsp} skill_card_get_data_rsp
  14261. * @throws {Error} If the payload is not a reader or valid buffer
  14262. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  14263. */
  14264. skill_card_get_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  14265. if (!(reader instanceof $Reader))
  14266. reader = new $Reader(reader);
  14267. return this.decode(reader, reader.uint32());
  14268. };
  14269. /**
  14270. * Verifies a skill_card_get_data_rsp message.
  14271. * @function verify
  14272. * @memberof game.skill_card_get_data_rsp
  14273. * @static
  14274. * @param {Object.<string,*>} message Plain object to verify
  14275. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  14276. */
  14277. skill_card_get_data_rsp.verify = function verify(message) {
  14278. if (typeof message !== "object" || message === null)
  14279. return "object expected";
  14280. if (message.errno != null && message.hasOwnProperty("errno"))
  14281. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  14282. return "errno: integer|Long expected";
  14283. if (message.list != null && message.hasOwnProperty("list")) {
  14284. if (!Array.isArray(message.list))
  14285. return "list: array expected";
  14286. for (let i = 0; i < message.list.length; ++i) {
  14287. let error = $root.game.card.verify(message.list[i]);
  14288. if (error)
  14289. return "list." + error;
  14290. }
  14291. }
  14292. return null;
  14293. };
  14294. /**
  14295. * Creates a skill_card_get_data_rsp message from a plain object. Also converts values to their respective internal types.
  14296. * @function fromObject
  14297. * @memberof game.skill_card_get_data_rsp
  14298. * @static
  14299. * @param {Object.<string,*>} object Plain object
  14300. * @returns {game.skill_card_get_data_rsp} skill_card_get_data_rsp
  14301. */
  14302. skill_card_get_data_rsp.fromObject = function fromObject(object) {
  14303. if (object instanceof $root.game.skill_card_get_data_rsp)
  14304. return object;
  14305. let message = new $root.game.skill_card_get_data_rsp();
  14306. if (object.errno != null)
  14307. if ($util.Long)
  14308. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  14309. else if (typeof object.errno === "string")
  14310. message.errno = parseInt(object.errno, 10);
  14311. else if (typeof object.errno === "number")
  14312. message.errno = object.errno;
  14313. else if (typeof object.errno === "object")
  14314. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  14315. if (object.list) {
  14316. if (!Array.isArray(object.list))
  14317. throw TypeError(".game.skill_card_get_data_rsp.list: array expected");
  14318. message.list = [];
  14319. for (let i = 0; i < object.list.length; ++i) {
  14320. if (typeof object.list[i] !== "object")
  14321. throw TypeError(".game.skill_card_get_data_rsp.list: object expected");
  14322. message.list[i] = $root.game.card.fromObject(object.list[i]);
  14323. }
  14324. }
  14325. return message;
  14326. };
  14327. /**
  14328. * Creates a plain object from a skill_card_get_data_rsp message. Also converts values to other types if specified.
  14329. * @function toObject
  14330. * @memberof game.skill_card_get_data_rsp
  14331. * @static
  14332. * @param {game.skill_card_get_data_rsp} message skill_card_get_data_rsp
  14333. * @param {$protobuf.IConversionOptions} [options] Conversion options
  14334. * @returns {Object.<string,*>} Plain object
  14335. */
  14336. skill_card_get_data_rsp.toObject = function toObject(message, options) {
  14337. if (!options)
  14338. options = {};
  14339. let object = {};
  14340. if (options.arrays || options.defaults)
  14341. object.list = [];
  14342. if (options.defaults)
  14343. if ($util.Long) {
  14344. let long = new $util.Long(0, 0, false);
  14345. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  14346. } else
  14347. object.errno = options.longs === String ? "0" : 0;
  14348. if (message.errno != null && message.hasOwnProperty("errno"))
  14349. if (typeof message.errno === "number")
  14350. object.errno = options.longs === String ? String(message.errno) : message.errno;
  14351. else
  14352. 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;
  14353. if (message.list && message.list.length) {
  14354. object.list = [];
  14355. for (let j = 0; j < message.list.length; ++j)
  14356. object.list[j] = $root.game.card.toObject(message.list[j], options);
  14357. }
  14358. return object;
  14359. };
  14360. /**
  14361. * Converts this skill_card_get_data_rsp to JSON.
  14362. * @function toJSON
  14363. * @memberof game.skill_card_get_data_rsp
  14364. * @instance
  14365. * @returns {Object.<string,*>} JSON object
  14366. */
  14367. skill_card_get_data_rsp.prototype.toJSON = function toJSON() {
  14368. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  14369. };
  14370. return skill_card_get_data_rsp;
  14371. })();
  14372. game.skill_card_upgrade = (function() {
  14373. /**
  14374. * Properties of a skill_card_upgrade.
  14375. * @memberof game
  14376. * @interface Iskill_card_upgrade
  14377. * @property {string|null} [sid] skill_card_upgrade sid
  14378. * @property {number|Long|null} [num] skill_card_upgrade num
  14379. */
  14380. /**
  14381. * Constructs a new skill_card_upgrade.
  14382. * @memberof game
  14383. * @classdesc Represents a skill_card_upgrade.
  14384. * @implements Iskill_card_upgrade
  14385. * @constructor
  14386. * @param {game.Iskill_card_upgrade=} [properties] Properties to set
  14387. */
  14388. function skill_card_upgrade(properties) {
  14389. if (properties)
  14390. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  14391. if (properties[keys[i]] != null)
  14392. this[keys[i]] = properties[keys[i]];
  14393. }
  14394. /**
  14395. * skill_card_upgrade sid.
  14396. * @member {string} sid
  14397. * @memberof game.skill_card_upgrade
  14398. * @instance
  14399. */
  14400. skill_card_upgrade.prototype.sid = "";
  14401. /**
  14402. * skill_card_upgrade num.
  14403. * @member {number|Long} num
  14404. * @memberof game.skill_card_upgrade
  14405. * @instance
  14406. */
  14407. skill_card_upgrade.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  14408. /**
  14409. * Creates a new skill_card_upgrade instance using the specified properties.
  14410. * @function create
  14411. * @memberof game.skill_card_upgrade
  14412. * @static
  14413. * @param {game.Iskill_card_upgrade=} [properties] Properties to set
  14414. * @returns {game.skill_card_upgrade} skill_card_upgrade instance
  14415. */
  14416. skill_card_upgrade.create = function create(properties) {
  14417. return new skill_card_upgrade(properties);
  14418. };
  14419. /**
  14420. * Encodes the specified skill_card_upgrade message. Does not implicitly {@link game.skill_card_upgrade.verify|verify} messages.
  14421. * @function encode
  14422. * @memberof game.skill_card_upgrade
  14423. * @static
  14424. * @param {game.Iskill_card_upgrade} message skill_card_upgrade message or plain object to encode
  14425. * @param {$protobuf.Writer} [writer] Writer to encode to
  14426. * @returns {$protobuf.Writer} Writer
  14427. */
  14428. skill_card_upgrade.encode = function encode(message, writer) {
  14429. if (!writer)
  14430. writer = $Writer.create();
  14431. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  14432. writer.uint32(/* id 1, wireType 2 =*/10).string(message.sid);
  14433. if (message.num != null && Object.hasOwnProperty.call(message, "num"))
  14434. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.num);
  14435. return writer;
  14436. };
  14437. /**
  14438. * Encodes the specified skill_card_upgrade message, length delimited. Does not implicitly {@link game.skill_card_upgrade.verify|verify} messages.
  14439. * @function encodeDelimited
  14440. * @memberof game.skill_card_upgrade
  14441. * @static
  14442. * @param {game.Iskill_card_upgrade} message skill_card_upgrade message or plain object to encode
  14443. * @param {$protobuf.Writer} [writer] Writer to encode to
  14444. * @returns {$protobuf.Writer} Writer
  14445. */
  14446. skill_card_upgrade.encodeDelimited = function encodeDelimited(message, writer) {
  14447. return this.encode(message, writer).ldelim();
  14448. };
  14449. /**
  14450. * Decodes a skill_card_upgrade message from the specified reader or buffer.
  14451. * @function decode
  14452. * @memberof game.skill_card_upgrade
  14453. * @static
  14454. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  14455. * @param {number} [length] Message length if known beforehand
  14456. * @returns {game.skill_card_upgrade} skill_card_upgrade
  14457. * @throws {Error} If the payload is not a reader or valid buffer
  14458. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  14459. */
  14460. skill_card_upgrade.decode = function decode(reader, length) {
  14461. if (!(reader instanceof $Reader))
  14462. reader = $Reader.create(reader);
  14463. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.skill_card_upgrade();
  14464. while (reader.pos < end) {
  14465. let tag = reader.uint32();
  14466. switch (tag >>> 3) {
  14467. case 1:
  14468. message.sid = reader.string();
  14469. break;
  14470. case 2:
  14471. message.num = reader.int64();
  14472. break;
  14473. default:
  14474. reader.skipType(tag & 7);
  14475. break;
  14476. }
  14477. }
  14478. return message;
  14479. };
  14480. /**
  14481. * Decodes a skill_card_upgrade message from the specified reader or buffer, length delimited.
  14482. * @function decodeDelimited
  14483. * @memberof game.skill_card_upgrade
  14484. * @static
  14485. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  14486. * @returns {game.skill_card_upgrade} skill_card_upgrade
  14487. * @throws {Error} If the payload is not a reader or valid buffer
  14488. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  14489. */
  14490. skill_card_upgrade.decodeDelimited = function decodeDelimited(reader) {
  14491. if (!(reader instanceof $Reader))
  14492. reader = new $Reader(reader);
  14493. return this.decode(reader, reader.uint32());
  14494. };
  14495. /**
  14496. * Verifies a skill_card_upgrade message.
  14497. * @function verify
  14498. * @memberof game.skill_card_upgrade
  14499. * @static
  14500. * @param {Object.<string,*>} message Plain object to verify
  14501. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  14502. */
  14503. skill_card_upgrade.verify = function verify(message) {
  14504. if (typeof message !== "object" || message === null)
  14505. return "object expected";
  14506. if (message.sid != null && message.hasOwnProperty("sid"))
  14507. if (!$util.isString(message.sid))
  14508. return "sid: string expected";
  14509. if (message.num != null && message.hasOwnProperty("num"))
  14510. if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
  14511. return "num: integer|Long expected";
  14512. return null;
  14513. };
  14514. /**
  14515. * Creates a skill_card_upgrade message from a plain object. Also converts values to their respective internal types.
  14516. * @function fromObject
  14517. * @memberof game.skill_card_upgrade
  14518. * @static
  14519. * @param {Object.<string,*>} object Plain object
  14520. * @returns {game.skill_card_upgrade} skill_card_upgrade
  14521. */
  14522. skill_card_upgrade.fromObject = function fromObject(object) {
  14523. if (object instanceof $root.game.skill_card_upgrade)
  14524. return object;
  14525. let message = new $root.game.skill_card_upgrade();
  14526. if (object.sid != null)
  14527. message.sid = String(object.sid);
  14528. if (object.num != null)
  14529. if ($util.Long)
  14530. (message.num = $util.Long.fromValue(object.num)).unsigned = false;
  14531. else if (typeof object.num === "string")
  14532. message.num = parseInt(object.num, 10);
  14533. else if (typeof object.num === "number")
  14534. message.num = object.num;
  14535. else if (typeof object.num === "object")
  14536. message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
  14537. return message;
  14538. };
  14539. /**
  14540. * Creates a plain object from a skill_card_upgrade message. Also converts values to other types if specified.
  14541. * @function toObject
  14542. * @memberof game.skill_card_upgrade
  14543. * @static
  14544. * @param {game.skill_card_upgrade} message skill_card_upgrade
  14545. * @param {$protobuf.IConversionOptions} [options] Conversion options
  14546. * @returns {Object.<string,*>} Plain object
  14547. */
  14548. skill_card_upgrade.toObject = function toObject(message, options) {
  14549. if (!options)
  14550. options = {};
  14551. let object = {};
  14552. if (options.defaults) {
  14553. object.sid = "";
  14554. if ($util.Long) {
  14555. let long = new $util.Long(0, 0, false);
  14556. object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  14557. } else
  14558. object.num = options.longs === String ? "0" : 0;
  14559. }
  14560. if (message.sid != null && message.hasOwnProperty("sid"))
  14561. object.sid = message.sid;
  14562. if (message.num != null && message.hasOwnProperty("num"))
  14563. if (typeof message.num === "number")
  14564. object.num = options.longs === String ? String(message.num) : message.num;
  14565. else
  14566. 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;
  14567. return object;
  14568. };
  14569. /**
  14570. * Converts this skill_card_upgrade to JSON.
  14571. * @function toJSON
  14572. * @memberof game.skill_card_upgrade
  14573. * @instance
  14574. * @returns {Object.<string,*>} JSON object
  14575. */
  14576. skill_card_upgrade.prototype.toJSON = function toJSON() {
  14577. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  14578. };
  14579. return skill_card_upgrade;
  14580. })();
  14581. game.skill_card_upgrade_rsp = (function() {
  14582. /**
  14583. * Properties of a skill_card_upgrade_rsp.
  14584. * @memberof game
  14585. * @interface Iskill_card_upgrade_rsp
  14586. * @property {number|Long|null} [errno] skill_card_upgrade_rsp errno
  14587. * @property {game.Icard|null} [data] skill_card_upgrade_rsp data
  14588. */
  14589. /**
  14590. * Constructs a new skill_card_upgrade_rsp.
  14591. * @memberof game
  14592. * @classdesc Represents a skill_card_upgrade_rsp.
  14593. * @implements Iskill_card_upgrade_rsp
  14594. * @constructor
  14595. * @param {game.Iskill_card_upgrade_rsp=} [properties] Properties to set
  14596. */
  14597. function skill_card_upgrade_rsp(properties) {
  14598. if (properties)
  14599. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  14600. if (properties[keys[i]] != null)
  14601. this[keys[i]] = properties[keys[i]];
  14602. }
  14603. /**
  14604. * skill_card_upgrade_rsp errno.
  14605. * @member {number|Long} errno
  14606. * @memberof game.skill_card_upgrade_rsp
  14607. * @instance
  14608. */
  14609. skill_card_upgrade_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  14610. /**
  14611. * skill_card_upgrade_rsp data.
  14612. * @member {game.Icard|null|undefined} data
  14613. * @memberof game.skill_card_upgrade_rsp
  14614. * @instance
  14615. */
  14616. skill_card_upgrade_rsp.prototype.data = null;
  14617. /**
  14618. * Creates a new skill_card_upgrade_rsp instance using the specified properties.
  14619. * @function create
  14620. * @memberof game.skill_card_upgrade_rsp
  14621. * @static
  14622. * @param {game.Iskill_card_upgrade_rsp=} [properties] Properties to set
  14623. * @returns {game.skill_card_upgrade_rsp} skill_card_upgrade_rsp instance
  14624. */
  14625. skill_card_upgrade_rsp.create = function create(properties) {
  14626. return new skill_card_upgrade_rsp(properties);
  14627. };
  14628. /**
  14629. * Encodes the specified skill_card_upgrade_rsp message. Does not implicitly {@link game.skill_card_upgrade_rsp.verify|verify} messages.
  14630. * @function encode
  14631. * @memberof game.skill_card_upgrade_rsp
  14632. * @static
  14633. * @param {game.Iskill_card_upgrade_rsp} message skill_card_upgrade_rsp message or plain object to encode
  14634. * @param {$protobuf.Writer} [writer] Writer to encode to
  14635. * @returns {$protobuf.Writer} Writer
  14636. */
  14637. skill_card_upgrade_rsp.encode = function encode(message, writer) {
  14638. if (!writer)
  14639. writer = $Writer.create();
  14640. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  14641. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  14642. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  14643. $root.game.card.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  14644. return writer;
  14645. };
  14646. /**
  14647. * Encodes the specified skill_card_upgrade_rsp message, length delimited. Does not implicitly {@link game.skill_card_upgrade_rsp.verify|verify} messages.
  14648. * @function encodeDelimited
  14649. * @memberof game.skill_card_upgrade_rsp
  14650. * @static
  14651. * @param {game.Iskill_card_upgrade_rsp} message skill_card_upgrade_rsp message or plain object to encode
  14652. * @param {$protobuf.Writer} [writer] Writer to encode to
  14653. * @returns {$protobuf.Writer} Writer
  14654. */
  14655. skill_card_upgrade_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  14656. return this.encode(message, writer).ldelim();
  14657. };
  14658. /**
  14659. * Decodes a skill_card_upgrade_rsp message from the specified reader or buffer.
  14660. * @function decode
  14661. * @memberof game.skill_card_upgrade_rsp
  14662. * @static
  14663. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  14664. * @param {number} [length] Message length if known beforehand
  14665. * @returns {game.skill_card_upgrade_rsp} skill_card_upgrade_rsp
  14666. * @throws {Error} If the payload is not a reader or valid buffer
  14667. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  14668. */
  14669. skill_card_upgrade_rsp.decode = function decode(reader, length) {
  14670. if (!(reader instanceof $Reader))
  14671. reader = $Reader.create(reader);
  14672. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.skill_card_upgrade_rsp();
  14673. while (reader.pos < end) {
  14674. let tag = reader.uint32();
  14675. switch (tag >>> 3) {
  14676. case 1:
  14677. message.errno = reader.int64();
  14678. break;
  14679. case 2:
  14680. message.data = $root.game.card.decode(reader, reader.uint32());
  14681. break;
  14682. default:
  14683. reader.skipType(tag & 7);
  14684. break;
  14685. }
  14686. }
  14687. return message;
  14688. };
  14689. /**
  14690. * Decodes a skill_card_upgrade_rsp message from the specified reader or buffer, length delimited.
  14691. * @function decodeDelimited
  14692. * @memberof game.skill_card_upgrade_rsp
  14693. * @static
  14694. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  14695. * @returns {game.skill_card_upgrade_rsp} skill_card_upgrade_rsp
  14696. * @throws {Error} If the payload is not a reader or valid buffer
  14697. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  14698. */
  14699. skill_card_upgrade_rsp.decodeDelimited = function decodeDelimited(reader) {
  14700. if (!(reader instanceof $Reader))
  14701. reader = new $Reader(reader);
  14702. return this.decode(reader, reader.uint32());
  14703. };
  14704. /**
  14705. * Verifies a skill_card_upgrade_rsp message.
  14706. * @function verify
  14707. * @memberof game.skill_card_upgrade_rsp
  14708. * @static
  14709. * @param {Object.<string,*>} message Plain object to verify
  14710. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  14711. */
  14712. skill_card_upgrade_rsp.verify = function verify(message) {
  14713. if (typeof message !== "object" || message === null)
  14714. return "object expected";
  14715. if (message.errno != null && message.hasOwnProperty("errno"))
  14716. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  14717. return "errno: integer|Long expected";
  14718. if (message.data != null && message.hasOwnProperty("data")) {
  14719. let error = $root.game.card.verify(message.data);
  14720. if (error)
  14721. return "data." + error;
  14722. }
  14723. return null;
  14724. };
  14725. /**
  14726. * Creates a skill_card_upgrade_rsp message from a plain object. Also converts values to their respective internal types.
  14727. * @function fromObject
  14728. * @memberof game.skill_card_upgrade_rsp
  14729. * @static
  14730. * @param {Object.<string,*>} object Plain object
  14731. * @returns {game.skill_card_upgrade_rsp} skill_card_upgrade_rsp
  14732. */
  14733. skill_card_upgrade_rsp.fromObject = function fromObject(object) {
  14734. if (object instanceof $root.game.skill_card_upgrade_rsp)
  14735. return object;
  14736. let message = new $root.game.skill_card_upgrade_rsp();
  14737. if (object.errno != null)
  14738. if ($util.Long)
  14739. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  14740. else if (typeof object.errno === "string")
  14741. message.errno = parseInt(object.errno, 10);
  14742. else if (typeof object.errno === "number")
  14743. message.errno = object.errno;
  14744. else if (typeof object.errno === "object")
  14745. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  14746. if (object.data != null) {
  14747. if (typeof object.data !== "object")
  14748. throw TypeError(".game.skill_card_upgrade_rsp.data: object expected");
  14749. message.data = $root.game.card.fromObject(object.data);
  14750. }
  14751. return message;
  14752. };
  14753. /**
  14754. * Creates a plain object from a skill_card_upgrade_rsp message. Also converts values to other types if specified.
  14755. * @function toObject
  14756. * @memberof game.skill_card_upgrade_rsp
  14757. * @static
  14758. * @param {game.skill_card_upgrade_rsp} message skill_card_upgrade_rsp
  14759. * @param {$protobuf.IConversionOptions} [options] Conversion options
  14760. * @returns {Object.<string,*>} Plain object
  14761. */
  14762. skill_card_upgrade_rsp.toObject = function toObject(message, options) {
  14763. if (!options)
  14764. options = {};
  14765. let object = {};
  14766. if (options.defaults) {
  14767. if ($util.Long) {
  14768. let long = new $util.Long(0, 0, false);
  14769. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  14770. } else
  14771. object.errno = options.longs === String ? "0" : 0;
  14772. object.data = null;
  14773. }
  14774. if (message.errno != null && message.hasOwnProperty("errno"))
  14775. if (typeof message.errno === "number")
  14776. object.errno = options.longs === String ? String(message.errno) : message.errno;
  14777. else
  14778. 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;
  14779. if (message.data != null && message.hasOwnProperty("data"))
  14780. object.data = $root.game.card.toObject(message.data, options);
  14781. return object;
  14782. };
  14783. /**
  14784. * Converts this skill_card_upgrade_rsp to JSON.
  14785. * @function toJSON
  14786. * @memberof game.skill_card_upgrade_rsp
  14787. * @instance
  14788. * @returns {Object.<string,*>} JSON object
  14789. */
  14790. skill_card_upgrade_rsp.prototype.toJSON = function toJSON() {
  14791. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  14792. };
  14793. return skill_card_upgrade_rsp;
  14794. })();
  14795. game.skill_card_upgrade_star = (function() {
  14796. /**
  14797. * Properties of a skill_card_upgrade_star.
  14798. * @memberof game
  14799. * @interface Iskill_card_upgrade_star
  14800. * @property {string|null} [sid] skill_card_upgrade_star sid
  14801. */
  14802. /**
  14803. * Constructs a new skill_card_upgrade_star.
  14804. * @memberof game
  14805. * @classdesc Represents a skill_card_upgrade_star.
  14806. * @implements Iskill_card_upgrade_star
  14807. * @constructor
  14808. * @param {game.Iskill_card_upgrade_star=} [properties] Properties to set
  14809. */
  14810. function skill_card_upgrade_star(properties) {
  14811. if (properties)
  14812. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  14813. if (properties[keys[i]] != null)
  14814. this[keys[i]] = properties[keys[i]];
  14815. }
  14816. /**
  14817. * skill_card_upgrade_star sid.
  14818. * @member {string} sid
  14819. * @memberof game.skill_card_upgrade_star
  14820. * @instance
  14821. */
  14822. skill_card_upgrade_star.prototype.sid = "";
  14823. /**
  14824. * Creates a new skill_card_upgrade_star instance using the specified properties.
  14825. * @function create
  14826. * @memberof game.skill_card_upgrade_star
  14827. * @static
  14828. * @param {game.Iskill_card_upgrade_star=} [properties] Properties to set
  14829. * @returns {game.skill_card_upgrade_star} skill_card_upgrade_star instance
  14830. */
  14831. skill_card_upgrade_star.create = function create(properties) {
  14832. return new skill_card_upgrade_star(properties);
  14833. };
  14834. /**
  14835. * Encodes the specified skill_card_upgrade_star message. Does not implicitly {@link game.skill_card_upgrade_star.verify|verify} messages.
  14836. * @function encode
  14837. * @memberof game.skill_card_upgrade_star
  14838. * @static
  14839. * @param {game.Iskill_card_upgrade_star} message skill_card_upgrade_star message or plain object to encode
  14840. * @param {$protobuf.Writer} [writer] Writer to encode to
  14841. * @returns {$protobuf.Writer} Writer
  14842. */
  14843. skill_card_upgrade_star.encode = function encode(message, writer) {
  14844. if (!writer)
  14845. writer = $Writer.create();
  14846. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  14847. writer.uint32(/* id 1, wireType 2 =*/10).string(message.sid);
  14848. return writer;
  14849. };
  14850. /**
  14851. * Encodes the specified skill_card_upgrade_star message, length delimited. Does not implicitly {@link game.skill_card_upgrade_star.verify|verify} messages.
  14852. * @function encodeDelimited
  14853. * @memberof game.skill_card_upgrade_star
  14854. * @static
  14855. * @param {game.Iskill_card_upgrade_star} message skill_card_upgrade_star message or plain object to encode
  14856. * @param {$protobuf.Writer} [writer] Writer to encode to
  14857. * @returns {$protobuf.Writer} Writer
  14858. */
  14859. skill_card_upgrade_star.encodeDelimited = function encodeDelimited(message, writer) {
  14860. return this.encode(message, writer).ldelim();
  14861. };
  14862. /**
  14863. * Decodes a skill_card_upgrade_star message from the specified reader or buffer.
  14864. * @function decode
  14865. * @memberof game.skill_card_upgrade_star
  14866. * @static
  14867. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  14868. * @param {number} [length] Message length if known beforehand
  14869. * @returns {game.skill_card_upgrade_star} skill_card_upgrade_star
  14870. * @throws {Error} If the payload is not a reader or valid buffer
  14871. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  14872. */
  14873. skill_card_upgrade_star.decode = function decode(reader, length) {
  14874. if (!(reader instanceof $Reader))
  14875. reader = $Reader.create(reader);
  14876. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.skill_card_upgrade_star();
  14877. while (reader.pos < end) {
  14878. let tag = reader.uint32();
  14879. switch (tag >>> 3) {
  14880. case 1:
  14881. message.sid = reader.string();
  14882. break;
  14883. default:
  14884. reader.skipType(tag & 7);
  14885. break;
  14886. }
  14887. }
  14888. return message;
  14889. };
  14890. /**
  14891. * Decodes a skill_card_upgrade_star message from the specified reader or buffer, length delimited.
  14892. * @function decodeDelimited
  14893. * @memberof game.skill_card_upgrade_star
  14894. * @static
  14895. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  14896. * @returns {game.skill_card_upgrade_star} skill_card_upgrade_star
  14897. * @throws {Error} If the payload is not a reader or valid buffer
  14898. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  14899. */
  14900. skill_card_upgrade_star.decodeDelimited = function decodeDelimited(reader) {
  14901. if (!(reader instanceof $Reader))
  14902. reader = new $Reader(reader);
  14903. return this.decode(reader, reader.uint32());
  14904. };
  14905. /**
  14906. * Verifies a skill_card_upgrade_star message.
  14907. * @function verify
  14908. * @memberof game.skill_card_upgrade_star
  14909. * @static
  14910. * @param {Object.<string,*>} message Plain object to verify
  14911. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  14912. */
  14913. skill_card_upgrade_star.verify = function verify(message) {
  14914. if (typeof message !== "object" || message === null)
  14915. return "object expected";
  14916. if (message.sid != null && message.hasOwnProperty("sid"))
  14917. if (!$util.isString(message.sid))
  14918. return "sid: string expected";
  14919. return null;
  14920. };
  14921. /**
  14922. * Creates a skill_card_upgrade_star message from a plain object. Also converts values to their respective internal types.
  14923. * @function fromObject
  14924. * @memberof game.skill_card_upgrade_star
  14925. * @static
  14926. * @param {Object.<string,*>} object Plain object
  14927. * @returns {game.skill_card_upgrade_star} skill_card_upgrade_star
  14928. */
  14929. skill_card_upgrade_star.fromObject = function fromObject(object) {
  14930. if (object instanceof $root.game.skill_card_upgrade_star)
  14931. return object;
  14932. let message = new $root.game.skill_card_upgrade_star();
  14933. if (object.sid != null)
  14934. message.sid = String(object.sid);
  14935. return message;
  14936. };
  14937. /**
  14938. * Creates a plain object from a skill_card_upgrade_star message. Also converts values to other types if specified.
  14939. * @function toObject
  14940. * @memberof game.skill_card_upgrade_star
  14941. * @static
  14942. * @param {game.skill_card_upgrade_star} message skill_card_upgrade_star
  14943. * @param {$protobuf.IConversionOptions} [options] Conversion options
  14944. * @returns {Object.<string,*>} Plain object
  14945. */
  14946. skill_card_upgrade_star.toObject = function toObject(message, options) {
  14947. if (!options)
  14948. options = {};
  14949. let object = {};
  14950. if (options.defaults)
  14951. object.sid = "";
  14952. if (message.sid != null && message.hasOwnProperty("sid"))
  14953. object.sid = message.sid;
  14954. return object;
  14955. };
  14956. /**
  14957. * Converts this skill_card_upgrade_star to JSON.
  14958. * @function toJSON
  14959. * @memberof game.skill_card_upgrade_star
  14960. * @instance
  14961. * @returns {Object.<string,*>} JSON object
  14962. */
  14963. skill_card_upgrade_star.prototype.toJSON = function toJSON() {
  14964. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  14965. };
  14966. return skill_card_upgrade_star;
  14967. })();
  14968. game.skill_card_upgrade_star_rsp = (function() {
  14969. /**
  14970. * Properties of a skill_card_upgrade_star_rsp.
  14971. * @memberof game
  14972. * @interface Iskill_card_upgrade_star_rsp
  14973. * @property {number|Long|null} [errno] skill_card_upgrade_star_rsp errno
  14974. * @property {game.Icard|null} [data] skill_card_upgrade_star_rsp data
  14975. */
  14976. /**
  14977. * Constructs a new skill_card_upgrade_star_rsp.
  14978. * @memberof game
  14979. * @classdesc Represents a skill_card_upgrade_star_rsp.
  14980. * @implements Iskill_card_upgrade_star_rsp
  14981. * @constructor
  14982. * @param {game.Iskill_card_upgrade_star_rsp=} [properties] Properties to set
  14983. */
  14984. function skill_card_upgrade_star_rsp(properties) {
  14985. if (properties)
  14986. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  14987. if (properties[keys[i]] != null)
  14988. this[keys[i]] = properties[keys[i]];
  14989. }
  14990. /**
  14991. * skill_card_upgrade_star_rsp errno.
  14992. * @member {number|Long} errno
  14993. * @memberof game.skill_card_upgrade_star_rsp
  14994. * @instance
  14995. */
  14996. skill_card_upgrade_star_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  14997. /**
  14998. * skill_card_upgrade_star_rsp data.
  14999. * @member {game.Icard|null|undefined} data
  15000. * @memberof game.skill_card_upgrade_star_rsp
  15001. * @instance
  15002. */
  15003. skill_card_upgrade_star_rsp.prototype.data = null;
  15004. /**
  15005. * Creates a new skill_card_upgrade_star_rsp instance using the specified properties.
  15006. * @function create
  15007. * @memberof game.skill_card_upgrade_star_rsp
  15008. * @static
  15009. * @param {game.Iskill_card_upgrade_star_rsp=} [properties] Properties to set
  15010. * @returns {game.skill_card_upgrade_star_rsp} skill_card_upgrade_star_rsp instance
  15011. */
  15012. skill_card_upgrade_star_rsp.create = function create(properties) {
  15013. return new skill_card_upgrade_star_rsp(properties);
  15014. };
  15015. /**
  15016. * Encodes the specified skill_card_upgrade_star_rsp message. Does not implicitly {@link game.skill_card_upgrade_star_rsp.verify|verify} messages.
  15017. * @function encode
  15018. * @memberof game.skill_card_upgrade_star_rsp
  15019. * @static
  15020. * @param {game.Iskill_card_upgrade_star_rsp} message skill_card_upgrade_star_rsp message or plain object to encode
  15021. * @param {$protobuf.Writer} [writer] Writer to encode to
  15022. * @returns {$protobuf.Writer} Writer
  15023. */
  15024. skill_card_upgrade_star_rsp.encode = function encode(message, writer) {
  15025. if (!writer)
  15026. writer = $Writer.create();
  15027. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  15028. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  15029. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  15030. $root.game.card.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  15031. return writer;
  15032. };
  15033. /**
  15034. * Encodes the specified skill_card_upgrade_star_rsp message, length delimited. Does not implicitly {@link game.skill_card_upgrade_star_rsp.verify|verify} messages.
  15035. * @function encodeDelimited
  15036. * @memberof game.skill_card_upgrade_star_rsp
  15037. * @static
  15038. * @param {game.Iskill_card_upgrade_star_rsp} message skill_card_upgrade_star_rsp message or plain object to encode
  15039. * @param {$protobuf.Writer} [writer] Writer to encode to
  15040. * @returns {$protobuf.Writer} Writer
  15041. */
  15042. skill_card_upgrade_star_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  15043. return this.encode(message, writer).ldelim();
  15044. };
  15045. /**
  15046. * Decodes a skill_card_upgrade_star_rsp message from the specified reader or buffer.
  15047. * @function decode
  15048. * @memberof game.skill_card_upgrade_star_rsp
  15049. * @static
  15050. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  15051. * @param {number} [length] Message length if known beforehand
  15052. * @returns {game.skill_card_upgrade_star_rsp} skill_card_upgrade_star_rsp
  15053. * @throws {Error} If the payload is not a reader or valid buffer
  15054. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  15055. */
  15056. skill_card_upgrade_star_rsp.decode = function decode(reader, length) {
  15057. if (!(reader instanceof $Reader))
  15058. reader = $Reader.create(reader);
  15059. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.skill_card_upgrade_star_rsp();
  15060. while (reader.pos < end) {
  15061. let tag = reader.uint32();
  15062. switch (tag >>> 3) {
  15063. case 1:
  15064. message.errno = reader.int64();
  15065. break;
  15066. case 2:
  15067. message.data = $root.game.card.decode(reader, reader.uint32());
  15068. break;
  15069. default:
  15070. reader.skipType(tag & 7);
  15071. break;
  15072. }
  15073. }
  15074. return message;
  15075. };
  15076. /**
  15077. * Decodes a skill_card_upgrade_star_rsp message from the specified reader or buffer, length delimited.
  15078. * @function decodeDelimited
  15079. * @memberof game.skill_card_upgrade_star_rsp
  15080. * @static
  15081. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  15082. * @returns {game.skill_card_upgrade_star_rsp} skill_card_upgrade_star_rsp
  15083. * @throws {Error} If the payload is not a reader or valid buffer
  15084. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  15085. */
  15086. skill_card_upgrade_star_rsp.decodeDelimited = function decodeDelimited(reader) {
  15087. if (!(reader instanceof $Reader))
  15088. reader = new $Reader(reader);
  15089. return this.decode(reader, reader.uint32());
  15090. };
  15091. /**
  15092. * Verifies a skill_card_upgrade_star_rsp message.
  15093. * @function verify
  15094. * @memberof game.skill_card_upgrade_star_rsp
  15095. * @static
  15096. * @param {Object.<string,*>} message Plain object to verify
  15097. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  15098. */
  15099. skill_card_upgrade_star_rsp.verify = function verify(message) {
  15100. if (typeof message !== "object" || message === null)
  15101. return "object expected";
  15102. if (message.errno != null && message.hasOwnProperty("errno"))
  15103. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  15104. return "errno: integer|Long expected";
  15105. if (message.data != null && message.hasOwnProperty("data")) {
  15106. let error = $root.game.card.verify(message.data);
  15107. if (error)
  15108. return "data." + error;
  15109. }
  15110. return null;
  15111. };
  15112. /**
  15113. * Creates a skill_card_upgrade_star_rsp message from a plain object. Also converts values to their respective internal types.
  15114. * @function fromObject
  15115. * @memberof game.skill_card_upgrade_star_rsp
  15116. * @static
  15117. * @param {Object.<string,*>} object Plain object
  15118. * @returns {game.skill_card_upgrade_star_rsp} skill_card_upgrade_star_rsp
  15119. */
  15120. skill_card_upgrade_star_rsp.fromObject = function fromObject(object) {
  15121. if (object instanceof $root.game.skill_card_upgrade_star_rsp)
  15122. return object;
  15123. let message = new $root.game.skill_card_upgrade_star_rsp();
  15124. if (object.errno != null)
  15125. if ($util.Long)
  15126. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  15127. else if (typeof object.errno === "string")
  15128. message.errno = parseInt(object.errno, 10);
  15129. else if (typeof object.errno === "number")
  15130. message.errno = object.errno;
  15131. else if (typeof object.errno === "object")
  15132. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  15133. if (object.data != null) {
  15134. if (typeof object.data !== "object")
  15135. throw TypeError(".game.skill_card_upgrade_star_rsp.data: object expected");
  15136. message.data = $root.game.card.fromObject(object.data);
  15137. }
  15138. return message;
  15139. };
  15140. /**
  15141. * Creates a plain object from a skill_card_upgrade_star_rsp message. Also converts values to other types if specified.
  15142. * @function toObject
  15143. * @memberof game.skill_card_upgrade_star_rsp
  15144. * @static
  15145. * @param {game.skill_card_upgrade_star_rsp} message skill_card_upgrade_star_rsp
  15146. * @param {$protobuf.IConversionOptions} [options] Conversion options
  15147. * @returns {Object.<string,*>} Plain object
  15148. */
  15149. skill_card_upgrade_star_rsp.toObject = function toObject(message, options) {
  15150. if (!options)
  15151. options = {};
  15152. let object = {};
  15153. if (options.defaults) {
  15154. if ($util.Long) {
  15155. let long = new $util.Long(0, 0, false);
  15156. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  15157. } else
  15158. object.errno = options.longs === String ? "0" : 0;
  15159. object.data = null;
  15160. }
  15161. if (message.errno != null && message.hasOwnProperty("errno"))
  15162. if (typeof message.errno === "number")
  15163. object.errno = options.longs === String ? String(message.errno) : message.errno;
  15164. else
  15165. 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;
  15166. if (message.data != null && message.hasOwnProperty("data"))
  15167. object.data = $root.game.card.toObject(message.data, options);
  15168. return object;
  15169. };
  15170. /**
  15171. * Converts this skill_card_upgrade_star_rsp to JSON.
  15172. * @function toJSON
  15173. * @memberof game.skill_card_upgrade_star_rsp
  15174. * @instance
  15175. * @returns {Object.<string,*>} JSON object
  15176. */
  15177. skill_card_upgrade_star_rsp.prototype.toJSON = function toJSON() {
  15178. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  15179. };
  15180. return skill_card_upgrade_star_rsp;
  15181. })();
  15182. game.role_get_data = (function() {
  15183. /**
  15184. * Properties of a role_get_data.
  15185. * @memberof game
  15186. * @interface Irole_get_data
  15187. */
  15188. /**
  15189. * Constructs a new role_get_data.
  15190. * @memberof game
  15191. * @classdesc Represents a role_get_data.
  15192. * @implements Irole_get_data
  15193. * @constructor
  15194. * @param {game.Irole_get_data=} [properties] Properties to set
  15195. */
  15196. function role_get_data(properties) {
  15197. if (properties)
  15198. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  15199. if (properties[keys[i]] != null)
  15200. this[keys[i]] = properties[keys[i]];
  15201. }
  15202. /**
  15203. * Creates a new role_get_data instance using the specified properties.
  15204. * @function create
  15205. * @memberof game.role_get_data
  15206. * @static
  15207. * @param {game.Irole_get_data=} [properties] Properties to set
  15208. * @returns {game.role_get_data} role_get_data instance
  15209. */
  15210. role_get_data.create = function create(properties) {
  15211. return new role_get_data(properties);
  15212. };
  15213. /**
  15214. * Encodes the specified role_get_data message. Does not implicitly {@link game.role_get_data.verify|verify} messages.
  15215. * @function encode
  15216. * @memberof game.role_get_data
  15217. * @static
  15218. * @param {game.Irole_get_data} message role_get_data message or plain object to encode
  15219. * @param {$protobuf.Writer} [writer] Writer to encode to
  15220. * @returns {$protobuf.Writer} Writer
  15221. */
  15222. role_get_data.encode = function encode(message, writer) {
  15223. if (!writer)
  15224. writer = $Writer.create();
  15225. return writer;
  15226. };
  15227. /**
  15228. * Encodes the specified role_get_data message, length delimited. Does not implicitly {@link game.role_get_data.verify|verify} messages.
  15229. * @function encodeDelimited
  15230. * @memberof game.role_get_data
  15231. * @static
  15232. * @param {game.Irole_get_data} message role_get_data message or plain object to encode
  15233. * @param {$protobuf.Writer} [writer] Writer to encode to
  15234. * @returns {$protobuf.Writer} Writer
  15235. */
  15236. role_get_data.encodeDelimited = function encodeDelimited(message, writer) {
  15237. return this.encode(message, writer).ldelim();
  15238. };
  15239. /**
  15240. * Decodes a role_get_data message from the specified reader or buffer.
  15241. * @function decode
  15242. * @memberof game.role_get_data
  15243. * @static
  15244. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  15245. * @param {number} [length] Message length if known beforehand
  15246. * @returns {game.role_get_data} role_get_data
  15247. * @throws {Error} If the payload is not a reader or valid buffer
  15248. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  15249. */
  15250. role_get_data.decode = function decode(reader, length) {
  15251. if (!(reader instanceof $Reader))
  15252. reader = $Reader.create(reader);
  15253. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.role_get_data();
  15254. while (reader.pos < end) {
  15255. let tag = reader.uint32();
  15256. switch (tag >>> 3) {
  15257. default:
  15258. reader.skipType(tag & 7);
  15259. break;
  15260. }
  15261. }
  15262. return message;
  15263. };
  15264. /**
  15265. * Decodes a role_get_data message from the specified reader or buffer, length delimited.
  15266. * @function decodeDelimited
  15267. * @memberof game.role_get_data
  15268. * @static
  15269. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  15270. * @returns {game.role_get_data} role_get_data
  15271. * @throws {Error} If the payload is not a reader or valid buffer
  15272. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  15273. */
  15274. role_get_data.decodeDelimited = function decodeDelimited(reader) {
  15275. if (!(reader instanceof $Reader))
  15276. reader = new $Reader(reader);
  15277. return this.decode(reader, reader.uint32());
  15278. };
  15279. /**
  15280. * Verifies a role_get_data message.
  15281. * @function verify
  15282. * @memberof game.role_get_data
  15283. * @static
  15284. * @param {Object.<string,*>} message Plain object to verify
  15285. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  15286. */
  15287. role_get_data.verify = function verify(message) {
  15288. if (typeof message !== "object" || message === null)
  15289. return "object expected";
  15290. return null;
  15291. };
  15292. /**
  15293. * Creates a role_get_data message from a plain object. Also converts values to their respective internal types.
  15294. * @function fromObject
  15295. * @memberof game.role_get_data
  15296. * @static
  15297. * @param {Object.<string,*>} object Plain object
  15298. * @returns {game.role_get_data} role_get_data
  15299. */
  15300. role_get_data.fromObject = function fromObject(object) {
  15301. if (object instanceof $root.game.role_get_data)
  15302. return object;
  15303. return new $root.game.role_get_data();
  15304. };
  15305. /**
  15306. * Creates a plain object from a role_get_data message. Also converts values to other types if specified.
  15307. * @function toObject
  15308. * @memberof game.role_get_data
  15309. * @static
  15310. * @param {game.role_get_data} message role_get_data
  15311. * @param {$protobuf.IConversionOptions} [options] Conversion options
  15312. * @returns {Object.<string,*>} Plain object
  15313. */
  15314. role_get_data.toObject = function toObject() {
  15315. return {};
  15316. };
  15317. /**
  15318. * Converts this role_get_data to JSON.
  15319. * @function toJSON
  15320. * @memberof game.role_get_data
  15321. * @instance
  15322. * @returns {Object.<string,*>} JSON object
  15323. */
  15324. role_get_data.prototype.toJSON = function toJSON() {
  15325. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  15326. };
  15327. return role_get_data;
  15328. })();
  15329. game.role_get_data_rsp = (function() {
  15330. /**
  15331. * Properties of a role_get_data_rsp.
  15332. * @memberof game
  15333. * @interface Irole_get_data_rsp
  15334. * @property {number|Long|null} [errno] role_get_data_rsp errno
  15335. * @property {number|Long|null} [level] role_get_data_rsp level
  15336. * @property {number|Long|null} [exp] role_get_data_rsp exp
  15337. */
  15338. /**
  15339. * Constructs a new role_get_data_rsp.
  15340. * @memberof game
  15341. * @classdesc Represents a role_get_data_rsp.
  15342. * @implements Irole_get_data_rsp
  15343. * @constructor
  15344. * @param {game.Irole_get_data_rsp=} [properties] Properties to set
  15345. */
  15346. function role_get_data_rsp(properties) {
  15347. if (properties)
  15348. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  15349. if (properties[keys[i]] != null)
  15350. this[keys[i]] = properties[keys[i]];
  15351. }
  15352. /**
  15353. * role_get_data_rsp errno.
  15354. * @member {number|Long} errno
  15355. * @memberof game.role_get_data_rsp
  15356. * @instance
  15357. */
  15358. role_get_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  15359. /**
  15360. * role_get_data_rsp level.
  15361. * @member {number|Long} level
  15362. * @memberof game.role_get_data_rsp
  15363. * @instance
  15364. */
  15365. role_get_data_rsp.prototype.level = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  15366. /**
  15367. * role_get_data_rsp exp.
  15368. * @member {number|Long} exp
  15369. * @memberof game.role_get_data_rsp
  15370. * @instance
  15371. */
  15372. role_get_data_rsp.prototype.exp = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  15373. /**
  15374. * Creates a new role_get_data_rsp instance using the specified properties.
  15375. * @function create
  15376. * @memberof game.role_get_data_rsp
  15377. * @static
  15378. * @param {game.Irole_get_data_rsp=} [properties] Properties to set
  15379. * @returns {game.role_get_data_rsp} role_get_data_rsp instance
  15380. */
  15381. role_get_data_rsp.create = function create(properties) {
  15382. return new role_get_data_rsp(properties);
  15383. };
  15384. /**
  15385. * Encodes the specified role_get_data_rsp message. Does not implicitly {@link game.role_get_data_rsp.verify|verify} messages.
  15386. * @function encode
  15387. * @memberof game.role_get_data_rsp
  15388. * @static
  15389. * @param {game.Irole_get_data_rsp} message role_get_data_rsp message or plain object to encode
  15390. * @param {$protobuf.Writer} [writer] Writer to encode to
  15391. * @returns {$protobuf.Writer} Writer
  15392. */
  15393. role_get_data_rsp.encode = function encode(message, writer) {
  15394. if (!writer)
  15395. writer = $Writer.create();
  15396. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  15397. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  15398. if (message.level != null && Object.hasOwnProperty.call(message, "level"))
  15399. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.level);
  15400. if (message.exp != null && Object.hasOwnProperty.call(message, "exp"))
  15401. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.exp);
  15402. return writer;
  15403. };
  15404. /**
  15405. * Encodes the specified role_get_data_rsp message, length delimited. Does not implicitly {@link game.role_get_data_rsp.verify|verify} messages.
  15406. * @function encodeDelimited
  15407. * @memberof game.role_get_data_rsp
  15408. * @static
  15409. * @param {game.Irole_get_data_rsp} message role_get_data_rsp message or plain object to encode
  15410. * @param {$protobuf.Writer} [writer] Writer to encode to
  15411. * @returns {$protobuf.Writer} Writer
  15412. */
  15413. role_get_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  15414. return this.encode(message, writer).ldelim();
  15415. };
  15416. /**
  15417. * Decodes a role_get_data_rsp message from the specified reader or buffer.
  15418. * @function decode
  15419. * @memberof game.role_get_data_rsp
  15420. * @static
  15421. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  15422. * @param {number} [length] Message length if known beforehand
  15423. * @returns {game.role_get_data_rsp} role_get_data_rsp
  15424. * @throws {Error} If the payload is not a reader or valid buffer
  15425. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  15426. */
  15427. role_get_data_rsp.decode = function decode(reader, length) {
  15428. if (!(reader instanceof $Reader))
  15429. reader = $Reader.create(reader);
  15430. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.role_get_data_rsp();
  15431. while (reader.pos < end) {
  15432. let tag = reader.uint32();
  15433. switch (tag >>> 3) {
  15434. case 1:
  15435. message.errno = reader.int64();
  15436. break;
  15437. case 2:
  15438. message.level = reader.int64();
  15439. break;
  15440. case 3:
  15441. message.exp = reader.int64();
  15442. break;
  15443. default:
  15444. reader.skipType(tag & 7);
  15445. break;
  15446. }
  15447. }
  15448. return message;
  15449. };
  15450. /**
  15451. * Decodes a role_get_data_rsp message from the specified reader or buffer, length delimited.
  15452. * @function decodeDelimited
  15453. * @memberof game.role_get_data_rsp
  15454. * @static
  15455. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  15456. * @returns {game.role_get_data_rsp} role_get_data_rsp
  15457. * @throws {Error} If the payload is not a reader or valid buffer
  15458. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  15459. */
  15460. role_get_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  15461. if (!(reader instanceof $Reader))
  15462. reader = new $Reader(reader);
  15463. return this.decode(reader, reader.uint32());
  15464. };
  15465. /**
  15466. * Verifies a role_get_data_rsp message.
  15467. * @function verify
  15468. * @memberof game.role_get_data_rsp
  15469. * @static
  15470. * @param {Object.<string,*>} message Plain object to verify
  15471. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  15472. */
  15473. role_get_data_rsp.verify = function verify(message) {
  15474. if (typeof message !== "object" || message === null)
  15475. return "object expected";
  15476. if (message.errno != null && message.hasOwnProperty("errno"))
  15477. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  15478. return "errno: integer|Long expected";
  15479. if (message.level != null && message.hasOwnProperty("level"))
  15480. if (!$util.isInteger(message.level) && !(message.level && $util.isInteger(message.level.low) && $util.isInteger(message.level.high)))
  15481. return "level: integer|Long expected";
  15482. if (message.exp != null && message.hasOwnProperty("exp"))
  15483. if (!$util.isInteger(message.exp) && !(message.exp && $util.isInteger(message.exp.low) && $util.isInteger(message.exp.high)))
  15484. return "exp: integer|Long expected";
  15485. return null;
  15486. };
  15487. /**
  15488. * Creates a role_get_data_rsp message from a plain object. Also converts values to their respective internal types.
  15489. * @function fromObject
  15490. * @memberof game.role_get_data_rsp
  15491. * @static
  15492. * @param {Object.<string,*>} object Plain object
  15493. * @returns {game.role_get_data_rsp} role_get_data_rsp
  15494. */
  15495. role_get_data_rsp.fromObject = function fromObject(object) {
  15496. if (object instanceof $root.game.role_get_data_rsp)
  15497. return object;
  15498. let message = new $root.game.role_get_data_rsp();
  15499. if (object.errno != null)
  15500. if ($util.Long)
  15501. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  15502. else if (typeof object.errno === "string")
  15503. message.errno = parseInt(object.errno, 10);
  15504. else if (typeof object.errno === "number")
  15505. message.errno = object.errno;
  15506. else if (typeof object.errno === "object")
  15507. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  15508. if (object.level != null)
  15509. if ($util.Long)
  15510. (message.level = $util.Long.fromValue(object.level)).unsigned = false;
  15511. else if (typeof object.level === "string")
  15512. message.level = parseInt(object.level, 10);
  15513. else if (typeof object.level === "number")
  15514. message.level = object.level;
  15515. else if (typeof object.level === "object")
  15516. message.level = new $util.LongBits(object.level.low >>> 0, object.level.high >>> 0).toNumber();
  15517. if (object.exp != null)
  15518. if ($util.Long)
  15519. (message.exp = $util.Long.fromValue(object.exp)).unsigned = false;
  15520. else if (typeof object.exp === "string")
  15521. message.exp = parseInt(object.exp, 10);
  15522. else if (typeof object.exp === "number")
  15523. message.exp = object.exp;
  15524. else if (typeof object.exp === "object")
  15525. message.exp = new $util.LongBits(object.exp.low >>> 0, object.exp.high >>> 0).toNumber();
  15526. return message;
  15527. };
  15528. /**
  15529. * Creates a plain object from a role_get_data_rsp message. Also converts values to other types if specified.
  15530. * @function toObject
  15531. * @memberof game.role_get_data_rsp
  15532. * @static
  15533. * @param {game.role_get_data_rsp} message role_get_data_rsp
  15534. * @param {$protobuf.IConversionOptions} [options] Conversion options
  15535. * @returns {Object.<string,*>} Plain object
  15536. */
  15537. role_get_data_rsp.toObject = function toObject(message, options) {
  15538. if (!options)
  15539. options = {};
  15540. let object = {};
  15541. if (options.defaults) {
  15542. if ($util.Long) {
  15543. let long = new $util.Long(0, 0, false);
  15544. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  15545. } else
  15546. object.errno = options.longs === String ? "0" : 0;
  15547. if ($util.Long) {
  15548. let long = new $util.Long(0, 0, false);
  15549. object.level = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  15550. } else
  15551. object.level = options.longs === String ? "0" : 0;
  15552. if ($util.Long) {
  15553. let long = new $util.Long(0, 0, false);
  15554. object.exp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  15555. } else
  15556. object.exp = options.longs === String ? "0" : 0;
  15557. }
  15558. if (message.errno != null && message.hasOwnProperty("errno"))
  15559. if (typeof message.errno === "number")
  15560. object.errno = options.longs === String ? String(message.errno) : message.errno;
  15561. else
  15562. 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;
  15563. if (message.level != null && message.hasOwnProperty("level"))
  15564. if (typeof message.level === "number")
  15565. object.level = options.longs === String ? String(message.level) : message.level;
  15566. else
  15567. 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;
  15568. if (message.exp != null && message.hasOwnProperty("exp"))
  15569. if (typeof message.exp === "number")
  15570. object.exp = options.longs === String ? String(message.exp) : message.exp;
  15571. else
  15572. 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;
  15573. return object;
  15574. };
  15575. /**
  15576. * Converts this role_get_data_rsp to JSON.
  15577. * @function toJSON
  15578. * @memberof game.role_get_data_rsp
  15579. * @instance
  15580. * @returns {Object.<string,*>} JSON object
  15581. */
  15582. role_get_data_rsp.prototype.toJSON = function toJSON() {
  15583. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  15584. };
  15585. return role_get_data_rsp;
  15586. })();
  15587. game.role_upgrade = (function() {
  15588. /**
  15589. * Properties of a role_upgrade.
  15590. * @memberof game
  15591. * @interface Irole_upgrade
  15592. */
  15593. /**
  15594. * Constructs a new role_upgrade.
  15595. * @memberof game
  15596. * @classdesc Represents a role_upgrade.
  15597. * @implements Irole_upgrade
  15598. * @constructor
  15599. * @param {game.Irole_upgrade=} [properties] Properties to set
  15600. */
  15601. function role_upgrade(properties) {
  15602. if (properties)
  15603. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  15604. if (properties[keys[i]] != null)
  15605. this[keys[i]] = properties[keys[i]];
  15606. }
  15607. /**
  15608. * Creates a new role_upgrade instance using the specified properties.
  15609. * @function create
  15610. * @memberof game.role_upgrade
  15611. * @static
  15612. * @param {game.Irole_upgrade=} [properties] Properties to set
  15613. * @returns {game.role_upgrade} role_upgrade instance
  15614. */
  15615. role_upgrade.create = function create(properties) {
  15616. return new role_upgrade(properties);
  15617. };
  15618. /**
  15619. * Encodes the specified role_upgrade message. Does not implicitly {@link game.role_upgrade.verify|verify} messages.
  15620. * @function encode
  15621. * @memberof game.role_upgrade
  15622. * @static
  15623. * @param {game.Irole_upgrade} message role_upgrade message or plain object to encode
  15624. * @param {$protobuf.Writer} [writer] Writer to encode to
  15625. * @returns {$protobuf.Writer} Writer
  15626. */
  15627. role_upgrade.encode = function encode(message, writer) {
  15628. if (!writer)
  15629. writer = $Writer.create();
  15630. return writer;
  15631. };
  15632. /**
  15633. * Encodes the specified role_upgrade message, length delimited. Does not implicitly {@link game.role_upgrade.verify|verify} messages.
  15634. * @function encodeDelimited
  15635. * @memberof game.role_upgrade
  15636. * @static
  15637. * @param {game.Irole_upgrade} message role_upgrade message or plain object to encode
  15638. * @param {$protobuf.Writer} [writer] Writer to encode to
  15639. * @returns {$protobuf.Writer} Writer
  15640. */
  15641. role_upgrade.encodeDelimited = function encodeDelimited(message, writer) {
  15642. return this.encode(message, writer).ldelim();
  15643. };
  15644. /**
  15645. * Decodes a role_upgrade message from the specified reader or buffer.
  15646. * @function decode
  15647. * @memberof game.role_upgrade
  15648. * @static
  15649. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  15650. * @param {number} [length] Message length if known beforehand
  15651. * @returns {game.role_upgrade} role_upgrade
  15652. * @throws {Error} If the payload is not a reader or valid buffer
  15653. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  15654. */
  15655. role_upgrade.decode = function decode(reader, length) {
  15656. if (!(reader instanceof $Reader))
  15657. reader = $Reader.create(reader);
  15658. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.role_upgrade();
  15659. while (reader.pos < end) {
  15660. let tag = reader.uint32();
  15661. switch (tag >>> 3) {
  15662. default:
  15663. reader.skipType(tag & 7);
  15664. break;
  15665. }
  15666. }
  15667. return message;
  15668. };
  15669. /**
  15670. * Decodes a role_upgrade message from the specified reader or buffer, length delimited.
  15671. * @function decodeDelimited
  15672. * @memberof game.role_upgrade
  15673. * @static
  15674. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  15675. * @returns {game.role_upgrade} role_upgrade
  15676. * @throws {Error} If the payload is not a reader or valid buffer
  15677. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  15678. */
  15679. role_upgrade.decodeDelimited = function decodeDelimited(reader) {
  15680. if (!(reader instanceof $Reader))
  15681. reader = new $Reader(reader);
  15682. return this.decode(reader, reader.uint32());
  15683. };
  15684. /**
  15685. * Verifies a role_upgrade message.
  15686. * @function verify
  15687. * @memberof game.role_upgrade
  15688. * @static
  15689. * @param {Object.<string,*>} message Plain object to verify
  15690. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  15691. */
  15692. role_upgrade.verify = function verify(message) {
  15693. if (typeof message !== "object" || message === null)
  15694. return "object expected";
  15695. return null;
  15696. };
  15697. /**
  15698. * Creates a role_upgrade message from a plain object. Also converts values to their respective internal types.
  15699. * @function fromObject
  15700. * @memberof game.role_upgrade
  15701. * @static
  15702. * @param {Object.<string,*>} object Plain object
  15703. * @returns {game.role_upgrade} role_upgrade
  15704. */
  15705. role_upgrade.fromObject = function fromObject(object) {
  15706. if (object instanceof $root.game.role_upgrade)
  15707. return object;
  15708. return new $root.game.role_upgrade();
  15709. };
  15710. /**
  15711. * Creates a plain object from a role_upgrade message. Also converts values to other types if specified.
  15712. * @function toObject
  15713. * @memberof game.role_upgrade
  15714. * @static
  15715. * @param {game.role_upgrade} message role_upgrade
  15716. * @param {$protobuf.IConversionOptions} [options] Conversion options
  15717. * @returns {Object.<string,*>} Plain object
  15718. */
  15719. role_upgrade.toObject = function toObject() {
  15720. return {};
  15721. };
  15722. /**
  15723. * Converts this role_upgrade to JSON.
  15724. * @function toJSON
  15725. * @memberof game.role_upgrade
  15726. * @instance
  15727. * @returns {Object.<string,*>} JSON object
  15728. */
  15729. role_upgrade.prototype.toJSON = function toJSON() {
  15730. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  15731. };
  15732. return role_upgrade;
  15733. })();
  15734. game.role_upgrade_rsp = (function() {
  15735. /**
  15736. * Properties of a role_upgrade_rsp.
  15737. * @memberof game
  15738. * @interface Irole_upgrade_rsp
  15739. * @property {number|Long|null} [errno] role_upgrade_rsp errno
  15740. * @property {number|Long|null} [level] role_upgrade_rsp level
  15741. * @property {number|Long|null} [exp] role_upgrade_rsp exp
  15742. */
  15743. /**
  15744. * Constructs a new role_upgrade_rsp.
  15745. * @memberof game
  15746. * @classdesc Represents a role_upgrade_rsp.
  15747. * @implements Irole_upgrade_rsp
  15748. * @constructor
  15749. * @param {game.Irole_upgrade_rsp=} [properties] Properties to set
  15750. */
  15751. function role_upgrade_rsp(properties) {
  15752. if (properties)
  15753. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  15754. if (properties[keys[i]] != null)
  15755. this[keys[i]] = properties[keys[i]];
  15756. }
  15757. /**
  15758. * role_upgrade_rsp errno.
  15759. * @member {number|Long} errno
  15760. * @memberof game.role_upgrade_rsp
  15761. * @instance
  15762. */
  15763. role_upgrade_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  15764. /**
  15765. * role_upgrade_rsp level.
  15766. * @member {number|Long} level
  15767. * @memberof game.role_upgrade_rsp
  15768. * @instance
  15769. */
  15770. role_upgrade_rsp.prototype.level = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  15771. /**
  15772. * role_upgrade_rsp exp.
  15773. * @member {number|Long} exp
  15774. * @memberof game.role_upgrade_rsp
  15775. * @instance
  15776. */
  15777. role_upgrade_rsp.prototype.exp = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  15778. /**
  15779. * Creates a new role_upgrade_rsp instance using the specified properties.
  15780. * @function create
  15781. * @memberof game.role_upgrade_rsp
  15782. * @static
  15783. * @param {game.Irole_upgrade_rsp=} [properties] Properties to set
  15784. * @returns {game.role_upgrade_rsp} role_upgrade_rsp instance
  15785. */
  15786. role_upgrade_rsp.create = function create(properties) {
  15787. return new role_upgrade_rsp(properties);
  15788. };
  15789. /**
  15790. * Encodes the specified role_upgrade_rsp message. Does not implicitly {@link game.role_upgrade_rsp.verify|verify} messages.
  15791. * @function encode
  15792. * @memberof game.role_upgrade_rsp
  15793. * @static
  15794. * @param {game.Irole_upgrade_rsp} message role_upgrade_rsp message or plain object to encode
  15795. * @param {$protobuf.Writer} [writer] Writer to encode to
  15796. * @returns {$protobuf.Writer} Writer
  15797. */
  15798. role_upgrade_rsp.encode = function encode(message, writer) {
  15799. if (!writer)
  15800. writer = $Writer.create();
  15801. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  15802. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  15803. if (message.level != null && Object.hasOwnProperty.call(message, "level"))
  15804. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.level);
  15805. if (message.exp != null && Object.hasOwnProperty.call(message, "exp"))
  15806. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.exp);
  15807. return writer;
  15808. };
  15809. /**
  15810. * Encodes the specified role_upgrade_rsp message, length delimited. Does not implicitly {@link game.role_upgrade_rsp.verify|verify} messages.
  15811. * @function encodeDelimited
  15812. * @memberof game.role_upgrade_rsp
  15813. * @static
  15814. * @param {game.Irole_upgrade_rsp} message role_upgrade_rsp message or plain object to encode
  15815. * @param {$protobuf.Writer} [writer] Writer to encode to
  15816. * @returns {$protobuf.Writer} Writer
  15817. */
  15818. role_upgrade_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  15819. return this.encode(message, writer).ldelim();
  15820. };
  15821. /**
  15822. * Decodes a role_upgrade_rsp message from the specified reader or buffer.
  15823. * @function decode
  15824. * @memberof game.role_upgrade_rsp
  15825. * @static
  15826. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  15827. * @param {number} [length] Message length if known beforehand
  15828. * @returns {game.role_upgrade_rsp} role_upgrade_rsp
  15829. * @throws {Error} If the payload is not a reader or valid buffer
  15830. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  15831. */
  15832. role_upgrade_rsp.decode = function decode(reader, length) {
  15833. if (!(reader instanceof $Reader))
  15834. reader = $Reader.create(reader);
  15835. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.role_upgrade_rsp();
  15836. while (reader.pos < end) {
  15837. let tag = reader.uint32();
  15838. switch (tag >>> 3) {
  15839. case 1:
  15840. message.errno = reader.int64();
  15841. break;
  15842. case 2:
  15843. message.level = reader.int64();
  15844. break;
  15845. case 3:
  15846. message.exp = reader.int64();
  15847. break;
  15848. default:
  15849. reader.skipType(tag & 7);
  15850. break;
  15851. }
  15852. }
  15853. return message;
  15854. };
  15855. /**
  15856. * Decodes a role_upgrade_rsp message from the specified reader or buffer, length delimited.
  15857. * @function decodeDelimited
  15858. * @memberof game.role_upgrade_rsp
  15859. * @static
  15860. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  15861. * @returns {game.role_upgrade_rsp} role_upgrade_rsp
  15862. * @throws {Error} If the payload is not a reader or valid buffer
  15863. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  15864. */
  15865. role_upgrade_rsp.decodeDelimited = function decodeDelimited(reader) {
  15866. if (!(reader instanceof $Reader))
  15867. reader = new $Reader(reader);
  15868. return this.decode(reader, reader.uint32());
  15869. };
  15870. /**
  15871. * Verifies a role_upgrade_rsp message.
  15872. * @function verify
  15873. * @memberof game.role_upgrade_rsp
  15874. * @static
  15875. * @param {Object.<string,*>} message Plain object to verify
  15876. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  15877. */
  15878. role_upgrade_rsp.verify = function verify(message) {
  15879. if (typeof message !== "object" || message === null)
  15880. return "object expected";
  15881. if (message.errno != null && message.hasOwnProperty("errno"))
  15882. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  15883. return "errno: integer|Long expected";
  15884. if (message.level != null && message.hasOwnProperty("level"))
  15885. if (!$util.isInteger(message.level) && !(message.level && $util.isInteger(message.level.low) && $util.isInteger(message.level.high)))
  15886. return "level: integer|Long expected";
  15887. if (message.exp != null && message.hasOwnProperty("exp"))
  15888. if (!$util.isInteger(message.exp) && !(message.exp && $util.isInteger(message.exp.low) && $util.isInteger(message.exp.high)))
  15889. return "exp: integer|Long expected";
  15890. return null;
  15891. };
  15892. /**
  15893. * Creates a role_upgrade_rsp message from a plain object. Also converts values to their respective internal types.
  15894. * @function fromObject
  15895. * @memberof game.role_upgrade_rsp
  15896. * @static
  15897. * @param {Object.<string,*>} object Plain object
  15898. * @returns {game.role_upgrade_rsp} role_upgrade_rsp
  15899. */
  15900. role_upgrade_rsp.fromObject = function fromObject(object) {
  15901. if (object instanceof $root.game.role_upgrade_rsp)
  15902. return object;
  15903. let message = new $root.game.role_upgrade_rsp();
  15904. if (object.errno != null)
  15905. if ($util.Long)
  15906. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  15907. else if (typeof object.errno === "string")
  15908. message.errno = parseInt(object.errno, 10);
  15909. else if (typeof object.errno === "number")
  15910. message.errno = object.errno;
  15911. else if (typeof object.errno === "object")
  15912. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  15913. if (object.level != null)
  15914. if ($util.Long)
  15915. (message.level = $util.Long.fromValue(object.level)).unsigned = false;
  15916. else if (typeof object.level === "string")
  15917. message.level = parseInt(object.level, 10);
  15918. else if (typeof object.level === "number")
  15919. message.level = object.level;
  15920. else if (typeof object.level === "object")
  15921. message.level = new $util.LongBits(object.level.low >>> 0, object.level.high >>> 0).toNumber();
  15922. if (object.exp != null)
  15923. if ($util.Long)
  15924. (message.exp = $util.Long.fromValue(object.exp)).unsigned = false;
  15925. else if (typeof object.exp === "string")
  15926. message.exp = parseInt(object.exp, 10);
  15927. else if (typeof object.exp === "number")
  15928. message.exp = object.exp;
  15929. else if (typeof object.exp === "object")
  15930. message.exp = new $util.LongBits(object.exp.low >>> 0, object.exp.high >>> 0).toNumber();
  15931. return message;
  15932. };
  15933. /**
  15934. * Creates a plain object from a role_upgrade_rsp message. Also converts values to other types if specified.
  15935. * @function toObject
  15936. * @memberof game.role_upgrade_rsp
  15937. * @static
  15938. * @param {game.role_upgrade_rsp} message role_upgrade_rsp
  15939. * @param {$protobuf.IConversionOptions} [options] Conversion options
  15940. * @returns {Object.<string,*>} Plain object
  15941. */
  15942. role_upgrade_rsp.toObject = function toObject(message, options) {
  15943. if (!options)
  15944. options = {};
  15945. let object = {};
  15946. if (options.defaults) {
  15947. if ($util.Long) {
  15948. let long = new $util.Long(0, 0, false);
  15949. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  15950. } else
  15951. object.errno = options.longs === String ? "0" : 0;
  15952. if ($util.Long) {
  15953. let long = new $util.Long(0, 0, false);
  15954. object.level = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  15955. } else
  15956. object.level = options.longs === String ? "0" : 0;
  15957. if ($util.Long) {
  15958. let long = new $util.Long(0, 0, false);
  15959. object.exp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  15960. } else
  15961. object.exp = options.longs === String ? "0" : 0;
  15962. }
  15963. if (message.errno != null && message.hasOwnProperty("errno"))
  15964. if (typeof message.errno === "number")
  15965. object.errno = options.longs === String ? String(message.errno) : message.errno;
  15966. else
  15967. 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;
  15968. if (message.level != null && message.hasOwnProperty("level"))
  15969. if (typeof message.level === "number")
  15970. object.level = options.longs === String ? String(message.level) : message.level;
  15971. else
  15972. 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;
  15973. if (message.exp != null && message.hasOwnProperty("exp"))
  15974. if (typeof message.exp === "number")
  15975. object.exp = options.longs === String ? String(message.exp) : message.exp;
  15976. else
  15977. 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;
  15978. return object;
  15979. };
  15980. /**
  15981. * Converts this role_upgrade_rsp to JSON.
  15982. * @function toJSON
  15983. * @memberof game.role_upgrade_rsp
  15984. * @instance
  15985. * @returns {Object.<string,*>} JSON object
  15986. */
  15987. role_upgrade_rsp.prototype.toJSON = function toJSON() {
  15988. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  15989. };
  15990. return role_upgrade_rsp;
  15991. })();
  15992. game.role_rename = (function() {
  15993. /**
  15994. * Properties of a role_rename.
  15995. * @memberof game
  15996. * @interface Irole_rename
  15997. * @property {string|null} [name] role_rename name
  15998. */
  15999. /**
  16000. * Constructs a new role_rename.
  16001. * @memberof game
  16002. * @classdesc Represents a role_rename.
  16003. * @implements Irole_rename
  16004. * @constructor
  16005. * @param {game.Irole_rename=} [properties] Properties to set
  16006. */
  16007. function role_rename(properties) {
  16008. if (properties)
  16009. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  16010. if (properties[keys[i]] != null)
  16011. this[keys[i]] = properties[keys[i]];
  16012. }
  16013. /**
  16014. * role_rename name.
  16015. * @member {string} name
  16016. * @memberof game.role_rename
  16017. * @instance
  16018. */
  16019. role_rename.prototype.name = "";
  16020. /**
  16021. * Creates a new role_rename instance using the specified properties.
  16022. * @function create
  16023. * @memberof game.role_rename
  16024. * @static
  16025. * @param {game.Irole_rename=} [properties] Properties to set
  16026. * @returns {game.role_rename} role_rename instance
  16027. */
  16028. role_rename.create = function create(properties) {
  16029. return new role_rename(properties);
  16030. };
  16031. /**
  16032. * Encodes the specified role_rename message. Does not implicitly {@link game.role_rename.verify|verify} messages.
  16033. * @function encode
  16034. * @memberof game.role_rename
  16035. * @static
  16036. * @param {game.Irole_rename} message role_rename message or plain object to encode
  16037. * @param {$protobuf.Writer} [writer] Writer to encode to
  16038. * @returns {$protobuf.Writer} Writer
  16039. */
  16040. role_rename.encode = function encode(message, writer) {
  16041. if (!writer)
  16042. writer = $Writer.create();
  16043. if (message.name != null && Object.hasOwnProperty.call(message, "name"))
  16044. writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
  16045. return writer;
  16046. };
  16047. /**
  16048. * Encodes the specified role_rename message, length delimited. Does not implicitly {@link game.role_rename.verify|verify} messages.
  16049. * @function encodeDelimited
  16050. * @memberof game.role_rename
  16051. * @static
  16052. * @param {game.Irole_rename} message role_rename message or plain object to encode
  16053. * @param {$protobuf.Writer} [writer] Writer to encode to
  16054. * @returns {$protobuf.Writer} Writer
  16055. */
  16056. role_rename.encodeDelimited = function encodeDelimited(message, writer) {
  16057. return this.encode(message, writer).ldelim();
  16058. };
  16059. /**
  16060. * Decodes a role_rename message from the specified reader or buffer.
  16061. * @function decode
  16062. * @memberof game.role_rename
  16063. * @static
  16064. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  16065. * @param {number} [length] Message length if known beforehand
  16066. * @returns {game.role_rename} role_rename
  16067. * @throws {Error} If the payload is not a reader or valid buffer
  16068. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  16069. */
  16070. role_rename.decode = function decode(reader, length) {
  16071. if (!(reader instanceof $Reader))
  16072. reader = $Reader.create(reader);
  16073. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.role_rename();
  16074. while (reader.pos < end) {
  16075. let tag = reader.uint32();
  16076. switch (tag >>> 3) {
  16077. case 1:
  16078. message.name = reader.string();
  16079. break;
  16080. default:
  16081. reader.skipType(tag & 7);
  16082. break;
  16083. }
  16084. }
  16085. return message;
  16086. };
  16087. /**
  16088. * Decodes a role_rename message from the specified reader or buffer, length delimited.
  16089. * @function decodeDelimited
  16090. * @memberof game.role_rename
  16091. * @static
  16092. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  16093. * @returns {game.role_rename} role_rename
  16094. * @throws {Error} If the payload is not a reader or valid buffer
  16095. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  16096. */
  16097. role_rename.decodeDelimited = function decodeDelimited(reader) {
  16098. if (!(reader instanceof $Reader))
  16099. reader = new $Reader(reader);
  16100. return this.decode(reader, reader.uint32());
  16101. };
  16102. /**
  16103. * Verifies a role_rename message.
  16104. * @function verify
  16105. * @memberof game.role_rename
  16106. * @static
  16107. * @param {Object.<string,*>} message Plain object to verify
  16108. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  16109. */
  16110. role_rename.verify = function verify(message) {
  16111. if (typeof message !== "object" || message === null)
  16112. return "object expected";
  16113. if (message.name != null && message.hasOwnProperty("name"))
  16114. if (!$util.isString(message.name))
  16115. return "name: string expected";
  16116. return null;
  16117. };
  16118. /**
  16119. * Creates a role_rename message from a plain object. Also converts values to their respective internal types.
  16120. * @function fromObject
  16121. * @memberof game.role_rename
  16122. * @static
  16123. * @param {Object.<string,*>} object Plain object
  16124. * @returns {game.role_rename} role_rename
  16125. */
  16126. role_rename.fromObject = function fromObject(object) {
  16127. if (object instanceof $root.game.role_rename)
  16128. return object;
  16129. let message = new $root.game.role_rename();
  16130. if (object.name != null)
  16131. message.name = String(object.name);
  16132. return message;
  16133. };
  16134. /**
  16135. * Creates a plain object from a role_rename message. Also converts values to other types if specified.
  16136. * @function toObject
  16137. * @memberof game.role_rename
  16138. * @static
  16139. * @param {game.role_rename} message role_rename
  16140. * @param {$protobuf.IConversionOptions} [options] Conversion options
  16141. * @returns {Object.<string,*>} Plain object
  16142. */
  16143. role_rename.toObject = function toObject(message, options) {
  16144. if (!options)
  16145. options = {};
  16146. let object = {};
  16147. if (options.defaults)
  16148. object.name = "";
  16149. if (message.name != null && message.hasOwnProperty("name"))
  16150. object.name = message.name;
  16151. return object;
  16152. };
  16153. /**
  16154. * Converts this role_rename to JSON.
  16155. * @function toJSON
  16156. * @memberof game.role_rename
  16157. * @instance
  16158. * @returns {Object.<string,*>} JSON object
  16159. */
  16160. role_rename.prototype.toJSON = function toJSON() {
  16161. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  16162. };
  16163. return role_rename;
  16164. })();
  16165. game.role_rename_rsp = (function() {
  16166. /**
  16167. * Properties of a role_rename_rsp.
  16168. * @memberof game
  16169. * @interface Irole_rename_rsp
  16170. * @property {number|Long|null} [errno] role_rename_rsp errno
  16171. * @property {string|null} [name] role_rename_rsp name
  16172. * @property {number|Long|null} [time] role_rename_rsp time
  16173. */
  16174. /**
  16175. * Constructs a new role_rename_rsp.
  16176. * @memberof game
  16177. * @classdesc Represents a role_rename_rsp.
  16178. * @implements Irole_rename_rsp
  16179. * @constructor
  16180. * @param {game.Irole_rename_rsp=} [properties] Properties to set
  16181. */
  16182. function role_rename_rsp(properties) {
  16183. if (properties)
  16184. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  16185. if (properties[keys[i]] != null)
  16186. this[keys[i]] = properties[keys[i]];
  16187. }
  16188. /**
  16189. * role_rename_rsp errno.
  16190. * @member {number|Long} errno
  16191. * @memberof game.role_rename_rsp
  16192. * @instance
  16193. */
  16194. role_rename_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  16195. /**
  16196. * role_rename_rsp name.
  16197. * @member {string} name
  16198. * @memberof game.role_rename_rsp
  16199. * @instance
  16200. */
  16201. role_rename_rsp.prototype.name = "";
  16202. /**
  16203. * role_rename_rsp time.
  16204. * @member {number|Long} time
  16205. * @memberof game.role_rename_rsp
  16206. * @instance
  16207. */
  16208. role_rename_rsp.prototype.time = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  16209. /**
  16210. * Creates a new role_rename_rsp instance using the specified properties.
  16211. * @function create
  16212. * @memberof game.role_rename_rsp
  16213. * @static
  16214. * @param {game.Irole_rename_rsp=} [properties] Properties to set
  16215. * @returns {game.role_rename_rsp} role_rename_rsp instance
  16216. */
  16217. role_rename_rsp.create = function create(properties) {
  16218. return new role_rename_rsp(properties);
  16219. };
  16220. /**
  16221. * Encodes the specified role_rename_rsp message. Does not implicitly {@link game.role_rename_rsp.verify|verify} messages.
  16222. * @function encode
  16223. * @memberof game.role_rename_rsp
  16224. * @static
  16225. * @param {game.Irole_rename_rsp} message role_rename_rsp message or plain object to encode
  16226. * @param {$protobuf.Writer} [writer] Writer to encode to
  16227. * @returns {$protobuf.Writer} Writer
  16228. */
  16229. role_rename_rsp.encode = function encode(message, writer) {
  16230. if (!writer)
  16231. writer = $Writer.create();
  16232. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  16233. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  16234. if (message.name != null && Object.hasOwnProperty.call(message, "name"))
  16235. writer.uint32(/* id 2, wireType 2 =*/18).string(message.name);
  16236. if (message.time != null && Object.hasOwnProperty.call(message, "time"))
  16237. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.time);
  16238. return writer;
  16239. };
  16240. /**
  16241. * Encodes the specified role_rename_rsp message, length delimited. Does not implicitly {@link game.role_rename_rsp.verify|verify} messages.
  16242. * @function encodeDelimited
  16243. * @memberof game.role_rename_rsp
  16244. * @static
  16245. * @param {game.Irole_rename_rsp} message role_rename_rsp message or plain object to encode
  16246. * @param {$protobuf.Writer} [writer] Writer to encode to
  16247. * @returns {$protobuf.Writer} Writer
  16248. */
  16249. role_rename_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  16250. return this.encode(message, writer).ldelim();
  16251. };
  16252. /**
  16253. * Decodes a role_rename_rsp message from the specified reader or buffer.
  16254. * @function decode
  16255. * @memberof game.role_rename_rsp
  16256. * @static
  16257. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  16258. * @param {number} [length] Message length if known beforehand
  16259. * @returns {game.role_rename_rsp} role_rename_rsp
  16260. * @throws {Error} If the payload is not a reader or valid buffer
  16261. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  16262. */
  16263. role_rename_rsp.decode = function decode(reader, length) {
  16264. if (!(reader instanceof $Reader))
  16265. reader = $Reader.create(reader);
  16266. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.role_rename_rsp();
  16267. while (reader.pos < end) {
  16268. let tag = reader.uint32();
  16269. switch (tag >>> 3) {
  16270. case 1:
  16271. message.errno = reader.int64();
  16272. break;
  16273. case 2:
  16274. message.name = reader.string();
  16275. break;
  16276. case 3:
  16277. message.time = reader.int64();
  16278. break;
  16279. default:
  16280. reader.skipType(tag & 7);
  16281. break;
  16282. }
  16283. }
  16284. return message;
  16285. };
  16286. /**
  16287. * Decodes a role_rename_rsp message from the specified reader or buffer, length delimited.
  16288. * @function decodeDelimited
  16289. * @memberof game.role_rename_rsp
  16290. * @static
  16291. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  16292. * @returns {game.role_rename_rsp} role_rename_rsp
  16293. * @throws {Error} If the payload is not a reader or valid buffer
  16294. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  16295. */
  16296. role_rename_rsp.decodeDelimited = function decodeDelimited(reader) {
  16297. if (!(reader instanceof $Reader))
  16298. reader = new $Reader(reader);
  16299. return this.decode(reader, reader.uint32());
  16300. };
  16301. /**
  16302. * Verifies a role_rename_rsp message.
  16303. * @function verify
  16304. * @memberof game.role_rename_rsp
  16305. * @static
  16306. * @param {Object.<string,*>} message Plain object to verify
  16307. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  16308. */
  16309. role_rename_rsp.verify = function verify(message) {
  16310. if (typeof message !== "object" || message === null)
  16311. return "object expected";
  16312. if (message.errno != null && message.hasOwnProperty("errno"))
  16313. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  16314. return "errno: integer|Long expected";
  16315. if (message.name != null && message.hasOwnProperty("name"))
  16316. if (!$util.isString(message.name))
  16317. return "name: string expected";
  16318. if (message.time != null && message.hasOwnProperty("time"))
  16319. if (!$util.isInteger(message.time) && !(message.time && $util.isInteger(message.time.low) && $util.isInteger(message.time.high)))
  16320. return "time: integer|Long expected";
  16321. return null;
  16322. };
  16323. /**
  16324. * Creates a role_rename_rsp message from a plain object. Also converts values to their respective internal types.
  16325. * @function fromObject
  16326. * @memberof game.role_rename_rsp
  16327. * @static
  16328. * @param {Object.<string,*>} object Plain object
  16329. * @returns {game.role_rename_rsp} role_rename_rsp
  16330. */
  16331. role_rename_rsp.fromObject = function fromObject(object) {
  16332. if (object instanceof $root.game.role_rename_rsp)
  16333. return object;
  16334. let message = new $root.game.role_rename_rsp();
  16335. if (object.errno != null)
  16336. if ($util.Long)
  16337. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  16338. else if (typeof object.errno === "string")
  16339. message.errno = parseInt(object.errno, 10);
  16340. else if (typeof object.errno === "number")
  16341. message.errno = object.errno;
  16342. else if (typeof object.errno === "object")
  16343. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  16344. if (object.name != null)
  16345. message.name = String(object.name);
  16346. if (object.time != null)
  16347. if ($util.Long)
  16348. (message.time = $util.Long.fromValue(object.time)).unsigned = false;
  16349. else if (typeof object.time === "string")
  16350. message.time = parseInt(object.time, 10);
  16351. else if (typeof object.time === "number")
  16352. message.time = object.time;
  16353. else if (typeof object.time === "object")
  16354. message.time = new $util.LongBits(object.time.low >>> 0, object.time.high >>> 0).toNumber();
  16355. return message;
  16356. };
  16357. /**
  16358. * Creates a plain object from a role_rename_rsp message. Also converts values to other types if specified.
  16359. * @function toObject
  16360. * @memberof game.role_rename_rsp
  16361. * @static
  16362. * @param {game.role_rename_rsp} message role_rename_rsp
  16363. * @param {$protobuf.IConversionOptions} [options] Conversion options
  16364. * @returns {Object.<string,*>} Plain object
  16365. */
  16366. role_rename_rsp.toObject = function toObject(message, options) {
  16367. if (!options)
  16368. options = {};
  16369. let object = {};
  16370. if (options.defaults) {
  16371. if ($util.Long) {
  16372. let long = new $util.Long(0, 0, false);
  16373. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  16374. } else
  16375. object.errno = options.longs === String ? "0" : 0;
  16376. object.name = "";
  16377. if ($util.Long) {
  16378. let long = new $util.Long(0, 0, false);
  16379. object.time = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  16380. } else
  16381. object.time = options.longs === String ? "0" : 0;
  16382. }
  16383. if (message.errno != null && message.hasOwnProperty("errno"))
  16384. if (typeof message.errno === "number")
  16385. object.errno = options.longs === String ? String(message.errno) : message.errno;
  16386. else
  16387. 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;
  16388. if (message.name != null && message.hasOwnProperty("name"))
  16389. object.name = message.name;
  16390. if (message.time != null && message.hasOwnProperty("time"))
  16391. if (typeof message.time === "number")
  16392. object.time = options.longs === String ? String(message.time) : message.time;
  16393. else
  16394. 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;
  16395. return object;
  16396. };
  16397. /**
  16398. * Converts this role_rename_rsp to JSON.
  16399. * @function toJSON
  16400. * @memberof game.role_rename_rsp
  16401. * @instance
  16402. * @returns {Object.<string,*>} JSON object
  16403. */
  16404. role_rename_rsp.prototype.toJSON = function toJSON() {
  16405. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  16406. };
  16407. return role_rename_rsp;
  16408. })();
  16409. game.debris_get_data = (function() {
  16410. /**
  16411. * Properties of a debris_get_data.
  16412. * @memberof game
  16413. * @interface Idebris_get_data
  16414. */
  16415. /**
  16416. * Constructs a new debris_get_data.
  16417. * @memberof game
  16418. * @classdesc Represents a debris_get_data.
  16419. * @implements Idebris_get_data
  16420. * @constructor
  16421. * @param {game.Idebris_get_data=} [properties] Properties to set
  16422. */
  16423. function debris_get_data(properties) {
  16424. if (properties)
  16425. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  16426. if (properties[keys[i]] != null)
  16427. this[keys[i]] = properties[keys[i]];
  16428. }
  16429. /**
  16430. * Creates a new debris_get_data instance using the specified properties.
  16431. * @function create
  16432. * @memberof game.debris_get_data
  16433. * @static
  16434. * @param {game.Idebris_get_data=} [properties] Properties to set
  16435. * @returns {game.debris_get_data} debris_get_data instance
  16436. */
  16437. debris_get_data.create = function create(properties) {
  16438. return new debris_get_data(properties);
  16439. };
  16440. /**
  16441. * Encodes the specified debris_get_data message. Does not implicitly {@link game.debris_get_data.verify|verify} messages.
  16442. * @function encode
  16443. * @memberof game.debris_get_data
  16444. * @static
  16445. * @param {game.Idebris_get_data} message debris_get_data message or plain object to encode
  16446. * @param {$protobuf.Writer} [writer] Writer to encode to
  16447. * @returns {$protobuf.Writer} Writer
  16448. */
  16449. debris_get_data.encode = function encode(message, writer) {
  16450. if (!writer)
  16451. writer = $Writer.create();
  16452. return writer;
  16453. };
  16454. /**
  16455. * Encodes the specified debris_get_data message, length delimited. Does not implicitly {@link game.debris_get_data.verify|verify} messages.
  16456. * @function encodeDelimited
  16457. * @memberof game.debris_get_data
  16458. * @static
  16459. * @param {game.Idebris_get_data} message debris_get_data message or plain object to encode
  16460. * @param {$protobuf.Writer} [writer] Writer to encode to
  16461. * @returns {$protobuf.Writer} Writer
  16462. */
  16463. debris_get_data.encodeDelimited = function encodeDelimited(message, writer) {
  16464. return this.encode(message, writer).ldelim();
  16465. };
  16466. /**
  16467. * Decodes a debris_get_data message from the specified reader or buffer.
  16468. * @function decode
  16469. * @memberof game.debris_get_data
  16470. * @static
  16471. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  16472. * @param {number} [length] Message length if known beforehand
  16473. * @returns {game.debris_get_data} debris_get_data
  16474. * @throws {Error} If the payload is not a reader or valid buffer
  16475. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  16476. */
  16477. debris_get_data.decode = function decode(reader, length) {
  16478. if (!(reader instanceof $Reader))
  16479. reader = $Reader.create(reader);
  16480. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.debris_get_data();
  16481. while (reader.pos < end) {
  16482. let tag = reader.uint32();
  16483. switch (tag >>> 3) {
  16484. default:
  16485. reader.skipType(tag & 7);
  16486. break;
  16487. }
  16488. }
  16489. return message;
  16490. };
  16491. /**
  16492. * Decodes a debris_get_data message from the specified reader or buffer, length delimited.
  16493. * @function decodeDelimited
  16494. * @memberof game.debris_get_data
  16495. * @static
  16496. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  16497. * @returns {game.debris_get_data} debris_get_data
  16498. * @throws {Error} If the payload is not a reader or valid buffer
  16499. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  16500. */
  16501. debris_get_data.decodeDelimited = function decodeDelimited(reader) {
  16502. if (!(reader instanceof $Reader))
  16503. reader = new $Reader(reader);
  16504. return this.decode(reader, reader.uint32());
  16505. };
  16506. /**
  16507. * Verifies a debris_get_data message.
  16508. * @function verify
  16509. * @memberof game.debris_get_data
  16510. * @static
  16511. * @param {Object.<string,*>} message Plain object to verify
  16512. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  16513. */
  16514. debris_get_data.verify = function verify(message) {
  16515. if (typeof message !== "object" || message === null)
  16516. return "object expected";
  16517. return null;
  16518. };
  16519. /**
  16520. * Creates a debris_get_data message from a plain object. Also converts values to their respective internal types.
  16521. * @function fromObject
  16522. * @memberof game.debris_get_data
  16523. * @static
  16524. * @param {Object.<string,*>} object Plain object
  16525. * @returns {game.debris_get_data} debris_get_data
  16526. */
  16527. debris_get_data.fromObject = function fromObject(object) {
  16528. if (object instanceof $root.game.debris_get_data)
  16529. return object;
  16530. return new $root.game.debris_get_data();
  16531. };
  16532. /**
  16533. * Creates a plain object from a debris_get_data message. Also converts values to other types if specified.
  16534. * @function toObject
  16535. * @memberof game.debris_get_data
  16536. * @static
  16537. * @param {game.debris_get_data} message debris_get_data
  16538. * @param {$protobuf.IConversionOptions} [options] Conversion options
  16539. * @returns {Object.<string,*>} Plain object
  16540. */
  16541. debris_get_data.toObject = function toObject() {
  16542. return {};
  16543. };
  16544. /**
  16545. * Converts this debris_get_data to JSON.
  16546. * @function toJSON
  16547. * @memberof game.debris_get_data
  16548. * @instance
  16549. * @returns {Object.<string,*>} JSON object
  16550. */
  16551. debris_get_data.prototype.toJSON = function toJSON() {
  16552. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  16553. };
  16554. return debris_get_data;
  16555. })();
  16556. game.debris_get_data_rsp = (function() {
  16557. /**
  16558. * Properties of a debris_get_data_rsp.
  16559. * @memberof game
  16560. * @interface Idebris_get_data_rsp
  16561. * @property {number|Long|null} [errno] debris_get_data_rsp errno
  16562. * @property {Array.<game.Iid_num>|null} [list] debris_get_data_rsp list
  16563. */
  16564. /**
  16565. * Constructs a new debris_get_data_rsp.
  16566. * @memberof game
  16567. * @classdesc Represents a debris_get_data_rsp.
  16568. * @implements Idebris_get_data_rsp
  16569. * @constructor
  16570. * @param {game.Idebris_get_data_rsp=} [properties] Properties to set
  16571. */
  16572. function debris_get_data_rsp(properties) {
  16573. this.list = [];
  16574. if (properties)
  16575. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  16576. if (properties[keys[i]] != null)
  16577. this[keys[i]] = properties[keys[i]];
  16578. }
  16579. /**
  16580. * debris_get_data_rsp errno.
  16581. * @member {number|Long} errno
  16582. * @memberof game.debris_get_data_rsp
  16583. * @instance
  16584. */
  16585. debris_get_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  16586. /**
  16587. * debris_get_data_rsp list.
  16588. * @member {Array.<game.Iid_num>} list
  16589. * @memberof game.debris_get_data_rsp
  16590. * @instance
  16591. */
  16592. debris_get_data_rsp.prototype.list = $util.emptyArray;
  16593. /**
  16594. * Creates a new debris_get_data_rsp instance using the specified properties.
  16595. * @function create
  16596. * @memberof game.debris_get_data_rsp
  16597. * @static
  16598. * @param {game.Idebris_get_data_rsp=} [properties] Properties to set
  16599. * @returns {game.debris_get_data_rsp} debris_get_data_rsp instance
  16600. */
  16601. debris_get_data_rsp.create = function create(properties) {
  16602. return new debris_get_data_rsp(properties);
  16603. };
  16604. /**
  16605. * Encodes the specified debris_get_data_rsp message. Does not implicitly {@link game.debris_get_data_rsp.verify|verify} messages.
  16606. * @function encode
  16607. * @memberof game.debris_get_data_rsp
  16608. * @static
  16609. * @param {game.Idebris_get_data_rsp} message debris_get_data_rsp message or plain object to encode
  16610. * @param {$protobuf.Writer} [writer] Writer to encode to
  16611. * @returns {$protobuf.Writer} Writer
  16612. */
  16613. debris_get_data_rsp.encode = function encode(message, writer) {
  16614. if (!writer)
  16615. writer = $Writer.create();
  16616. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  16617. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  16618. if (message.list != null && message.list.length)
  16619. for (let i = 0; i < message.list.length; ++i)
  16620. $root.game.id_num.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  16621. return writer;
  16622. };
  16623. /**
  16624. * Encodes the specified debris_get_data_rsp message, length delimited. Does not implicitly {@link game.debris_get_data_rsp.verify|verify} messages.
  16625. * @function encodeDelimited
  16626. * @memberof game.debris_get_data_rsp
  16627. * @static
  16628. * @param {game.Idebris_get_data_rsp} message debris_get_data_rsp message or plain object to encode
  16629. * @param {$protobuf.Writer} [writer] Writer to encode to
  16630. * @returns {$protobuf.Writer} Writer
  16631. */
  16632. debris_get_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  16633. return this.encode(message, writer).ldelim();
  16634. };
  16635. /**
  16636. * Decodes a debris_get_data_rsp message from the specified reader or buffer.
  16637. * @function decode
  16638. * @memberof game.debris_get_data_rsp
  16639. * @static
  16640. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  16641. * @param {number} [length] Message length if known beforehand
  16642. * @returns {game.debris_get_data_rsp} debris_get_data_rsp
  16643. * @throws {Error} If the payload is not a reader or valid buffer
  16644. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  16645. */
  16646. debris_get_data_rsp.decode = function decode(reader, length) {
  16647. if (!(reader instanceof $Reader))
  16648. reader = $Reader.create(reader);
  16649. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.debris_get_data_rsp();
  16650. while (reader.pos < end) {
  16651. let tag = reader.uint32();
  16652. switch (tag >>> 3) {
  16653. case 1:
  16654. message.errno = reader.int64();
  16655. break;
  16656. case 2:
  16657. if (!(message.list && message.list.length))
  16658. message.list = [];
  16659. message.list.push($root.game.id_num.decode(reader, reader.uint32()));
  16660. break;
  16661. default:
  16662. reader.skipType(tag & 7);
  16663. break;
  16664. }
  16665. }
  16666. return message;
  16667. };
  16668. /**
  16669. * Decodes a debris_get_data_rsp message from the specified reader or buffer, length delimited.
  16670. * @function decodeDelimited
  16671. * @memberof game.debris_get_data_rsp
  16672. * @static
  16673. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  16674. * @returns {game.debris_get_data_rsp} debris_get_data_rsp
  16675. * @throws {Error} If the payload is not a reader or valid buffer
  16676. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  16677. */
  16678. debris_get_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  16679. if (!(reader instanceof $Reader))
  16680. reader = new $Reader(reader);
  16681. return this.decode(reader, reader.uint32());
  16682. };
  16683. /**
  16684. * Verifies a debris_get_data_rsp message.
  16685. * @function verify
  16686. * @memberof game.debris_get_data_rsp
  16687. * @static
  16688. * @param {Object.<string,*>} message Plain object to verify
  16689. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  16690. */
  16691. debris_get_data_rsp.verify = function verify(message) {
  16692. if (typeof message !== "object" || message === null)
  16693. return "object expected";
  16694. if (message.errno != null && message.hasOwnProperty("errno"))
  16695. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  16696. return "errno: integer|Long expected";
  16697. if (message.list != null && message.hasOwnProperty("list")) {
  16698. if (!Array.isArray(message.list))
  16699. return "list: array expected";
  16700. for (let i = 0; i < message.list.length; ++i) {
  16701. let error = $root.game.id_num.verify(message.list[i]);
  16702. if (error)
  16703. return "list." + error;
  16704. }
  16705. }
  16706. return null;
  16707. };
  16708. /**
  16709. * Creates a debris_get_data_rsp message from a plain object. Also converts values to their respective internal types.
  16710. * @function fromObject
  16711. * @memberof game.debris_get_data_rsp
  16712. * @static
  16713. * @param {Object.<string,*>} object Plain object
  16714. * @returns {game.debris_get_data_rsp} debris_get_data_rsp
  16715. */
  16716. debris_get_data_rsp.fromObject = function fromObject(object) {
  16717. if (object instanceof $root.game.debris_get_data_rsp)
  16718. return object;
  16719. let message = new $root.game.debris_get_data_rsp();
  16720. if (object.errno != null)
  16721. if ($util.Long)
  16722. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  16723. else if (typeof object.errno === "string")
  16724. message.errno = parseInt(object.errno, 10);
  16725. else if (typeof object.errno === "number")
  16726. message.errno = object.errno;
  16727. else if (typeof object.errno === "object")
  16728. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  16729. if (object.list) {
  16730. if (!Array.isArray(object.list))
  16731. throw TypeError(".game.debris_get_data_rsp.list: array expected");
  16732. message.list = [];
  16733. for (let i = 0; i < object.list.length; ++i) {
  16734. if (typeof object.list[i] !== "object")
  16735. throw TypeError(".game.debris_get_data_rsp.list: object expected");
  16736. message.list[i] = $root.game.id_num.fromObject(object.list[i]);
  16737. }
  16738. }
  16739. return message;
  16740. };
  16741. /**
  16742. * Creates a plain object from a debris_get_data_rsp message. Also converts values to other types if specified.
  16743. * @function toObject
  16744. * @memberof game.debris_get_data_rsp
  16745. * @static
  16746. * @param {game.debris_get_data_rsp} message debris_get_data_rsp
  16747. * @param {$protobuf.IConversionOptions} [options] Conversion options
  16748. * @returns {Object.<string,*>} Plain object
  16749. */
  16750. debris_get_data_rsp.toObject = function toObject(message, options) {
  16751. if (!options)
  16752. options = {};
  16753. let object = {};
  16754. if (options.arrays || options.defaults)
  16755. object.list = [];
  16756. if (options.defaults)
  16757. if ($util.Long) {
  16758. let long = new $util.Long(0, 0, false);
  16759. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  16760. } else
  16761. object.errno = options.longs === String ? "0" : 0;
  16762. if (message.errno != null && message.hasOwnProperty("errno"))
  16763. if (typeof message.errno === "number")
  16764. object.errno = options.longs === String ? String(message.errno) : message.errno;
  16765. else
  16766. 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;
  16767. if (message.list && message.list.length) {
  16768. object.list = [];
  16769. for (let j = 0; j < message.list.length; ++j)
  16770. object.list[j] = $root.game.id_num.toObject(message.list[j], options);
  16771. }
  16772. return object;
  16773. };
  16774. /**
  16775. * Converts this debris_get_data_rsp to JSON.
  16776. * @function toJSON
  16777. * @memberof game.debris_get_data_rsp
  16778. * @instance
  16779. * @returns {Object.<string,*>} JSON object
  16780. */
  16781. debris_get_data_rsp.prototype.toJSON = function toJSON() {
  16782. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  16783. };
  16784. return debris_get_data_rsp;
  16785. })();
  16786. game.debris_merge = (function() {
  16787. /**
  16788. * Properties of a debris_merge.
  16789. * @memberof game
  16790. * @interface Idebris_merge
  16791. * @property {number|Long|null} [id] debris_merge id
  16792. */
  16793. /**
  16794. * Constructs a new debris_merge.
  16795. * @memberof game
  16796. * @classdesc Represents a debris_merge.
  16797. * @implements Idebris_merge
  16798. * @constructor
  16799. * @param {game.Idebris_merge=} [properties] Properties to set
  16800. */
  16801. function debris_merge(properties) {
  16802. if (properties)
  16803. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  16804. if (properties[keys[i]] != null)
  16805. this[keys[i]] = properties[keys[i]];
  16806. }
  16807. /**
  16808. * debris_merge id.
  16809. * @member {number|Long} id
  16810. * @memberof game.debris_merge
  16811. * @instance
  16812. */
  16813. debris_merge.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  16814. /**
  16815. * Creates a new debris_merge instance using the specified properties.
  16816. * @function create
  16817. * @memberof game.debris_merge
  16818. * @static
  16819. * @param {game.Idebris_merge=} [properties] Properties to set
  16820. * @returns {game.debris_merge} debris_merge instance
  16821. */
  16822. debris_merge.create = function create(properties) {
  16823. return new debris_merge(properties);
  16824. };
  16825. /**
  16826. * Encodes the specified debris_merge message. Does not implicitly {@link game.debris_merge.verify|verify} messages.
  16827. * @function encode
  16828. * @memberof game.debris_merge
  16829. * @static
  16830. * @param {game.Idebris_merge} message debris_merge message or plain object to encode
  16831. * @param {$protobuf.Writer} [writer] Writer to encode to
  16832. * @returns {$protobuf.Writer} Writer
  16833. */
  16834. debris_merge.encode = function encode(message, writer) {
  16835. if (!writer)
  16836. writer = $Writer.create();
  16837. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  16838. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  16839. return writer;
  16840. };
  16841. /**
  16842. * Encodes the specified debris_merge message, length delimited. Does not implicitly {@link game.debris_merge.verify|verify} messages.
  16843. * @function encodeDelimited
  16844. * @memberof game.debris_merge
  16845. * @static
  16846. * @param {game.Idebris_merge} message debris_merge message or plain object to encode
  16847. * @param {$protobuf.Writer} [writer] Writer to encode to
  16848. * @returns {$protobuf.Writer} Writer
  16849. */
  16850. debris_merge.encodeDelimited = function encodeDelimited(message, writer) {
  16851. return this.encode(message, writer).ldelim();
  16852. };
  16853. /**
  16854. * Decodes a debris_merge message from the specified reader or buffer.
  16855. * @function decode
  16856. * @memberof game.debris_merge
  16857. * @static
  16858. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  16859. * @param {number} [length] Message length if known beforehand
  16860. * @returns {game.debris_merge} debris_merge
  16861. * @throws {Error} If the payload is not a reader or valid buffer
  16862. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  16863. */
  16864. debris_merge.decode = function decode(reader, length) {
  16865. if (!(reader instanceof $Reader))
  16866. reader = $Reader.create(reader);
  16867. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.debris_merge();
  16868. while (reader.pos < end) {
  16869. let tag = reader.uint32();
  16870. switch (tag >>> 3) {
  16871. case 1:
  16872. message.id = reader.int64();
  16873. break;
  16874. default:
  16875. reader.skipType(tag & 7);
  16876. break;
  16877. }
  16878. }
  16879. return message;
  16880. };
  16881. /**
  16882. * Decodes a debris_merge message from the specified reader or buffer, length delimited.
  16883. * @function decodeDelimited
  16884. * @memberof game.debris_merge
  16885. * @static
  16886. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  16887. * @returns {game.debris_merge} debris_merge
  16888. * @throws {Error} If the payload is not a reader or valid buffer
  16889. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  16890. */
  16891. debris_merge.decodeDelimited = function decodeDelimited(reader) {
  16892. if (!(reader instanceof $Reader))
  16893. reader = new $Reader(reader);
  16894. return this.decode(reader, reader.uint32());
  16895. };
  16896. /**
  16897. * Verifies a debris_merge message.
  16898. * @function verify
  16899. * @memberof game.debris_merge
  16900. * @static
  16901. * @param {Object.<string,*>} message Plain object to verify
  16902. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  16903. */
  16904. debris_merge.verify = function verify(message) {
  16905. if (typeof message !== "object" || message === null)
  16906. return "object expected";
  16907. if (message.id != null && message.hasOwnProperty("id"))
  16908. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  16909. return "id: integer|Long expected";
  16910. return null;
  16911. };
  16912. /**
  16913. * Creates a debris_merge message from a plain object. Also converts values to their respective internal types.
  16914. * @function fromObject
  16915. * @memberof game.debris_merge
  16916. * @static
  16917. * @param {Object.<string,*>} object Plain object
  16918. * @returns {game.debris_merge} debris_merge
  16919. */
  16920. debris_merge.fromObject = function fromObject(object) {
  16921. if (object instanceof $root.game.debris_merge)
  16922. return object;
  16923. let message = new $root.game.debris_merge();
  16924. if (object.id != null)
  16925. if ($util.Long)
  16926. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  16927. else if (typeof object.id === "string")
  16928. message.id = parseInt(object.id, 10);
  16929. else if (typeof object.id === "number")
  16930. message.id = object.id;
  16931. else if (typeof object.id === "object")
  16932. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  16933. return message;
  16934. };
  16935. /**
  16936. * Creates a plain object from a debris_merge message. Also converts values to other types if specified.
  16937. * @function toObject
  16938. * @memberof game.debris_merge
  16939. * @static
  16940. * @param {game.debris_merge} message debris_merge
  16941. * @param {$protobuf.IConversionOptions} [options] Conversion options
  16942. * @returns {Object.<string,*>} Plain object
  16943. */
  16944. debris_merge.toObject = function toObject(message, options) {
  16945. if (!options)
  16946. options = {};
  16947. let object = {};
  16948. if (options.defaults)
  16949. if ($util.Long) {
  16950. let long = new $util.Long(0, 0, false);
  16951. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  16952. } else
  16953. object.id = options.longs === String ? "0" : 0;
  16954. if (message.id != null && message.hasOwnProperty("id"))
  16955. if (typeof message.id === "number")
  16956. object.id = options.longs === String ? String(message.id) : message.id;
  16957. else
  16958. 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;
  16959. return object;
  16960. };
  16961. /**
  16962. * Converts this debris_merge to JSON.
  16963. * @function toJSON
  16964. * @memberof game.debris_merge
  16965. * @instance
  16966. * @returns {Object.<string,*>} JSON object
  16967. */
  16968. debris_merge.prototype.toJSON = function toJSON() {
  16969. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  16970. };
  16971. return debris_merge;
  16972. })();
  16973. game.debris_merge_rsp = (function() {
  16974. /**
  16975. * Properties of a debris_merge_rsp.
  16976. * @memberof game
  16977. * @interface Idebris_merge_rsp
  16978. * @property {number|Long|null} [errno] debris_merge_rsp errno
  16979. */
  16980. /**
  16981. * Constructs a new debris_merge_rsp.
  16982. * @memberof game
  16983. * @classdesc Represents a debris_merge_rsp.
  16984. * @implements Idebris_merge_rsp
  16985. * @constructor
  16986. * @param {game.Idebris_merge_rsp=} [properties] Properties to set
  16987. */
  16988. function debris_merge_rsp(properties) {
  16989. if (properties)
  16990. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  16991. if (properties[keys[i]] != null)
  16992. this[keys[i]] = properties[keys[i]];
  16993. }
  16994. /**
  16995. * debris_merge_rsp errno.
  16996. * @member {number|Long} errno
  16997. * @memberof game.debris_merge_rsp
  16998. * @instance
  16999. */
  17000. debris_merge_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  17001. /**
  17002. * Creates a new debris_merge_rsp instance using the specified properties.
  17003. * @function create
  17004. * @memberof game.debris_merge_rsp
  17005. * @static
  17006. * @param {game.Idebris_merge_rsp=} [properties] Properties to set
  17007. * @returns {game.debris_merge_rsp} debris_merge_rsp instance
  17008. */
  17009. debris_merge_rsp.create = function create(properties) {
  17010. return new debris_merge_rsp(properties);
  17011. };
  17012. /**
  17013. * Encodes the specified debris_merge_rsp message. Does not implicitly {@link game.debris_merge_rsp.verify|verify} messages.
  17014. * @function encode
  17015. * @memberof game.debris_merge_rsp
  17016. * @static
  17017. * @param {game.Idebris_merge_rsp} message debris_merge_rsp message or plain object to encode
  17018. * @param {$protobuf.Writer} [writer] Writer to encode to
  17019. * @returns {$protobuf.Writer} Writer
  17020. */
  17021. debris_merge_rsp.encode = function encode(message, writer) {
  17022. if (!writer)
  17023. writer = $Writer.create();
  17024. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  17025. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  17026. return writer;
  17027. };
  17028. /**
  17029. * Encodes the specified debris_merge_rsp message, length delimited. Does not implicitly {@link game.debris_merge_rsp.verify|verify} messages.
  17030. * @function encodeDelimited
  17031. * @memberof game.debris_merge_rsp
  17032. * @static
  17033. * @param {game.Idebris_merge_rsp} message debris_merge_rsp message or plain object to encode
  17034. * @param {$protobuf.Writer} [writer] Writer to encode to
  17035. * @returns {$protobuf.Writer} Writer
  17036. */
  17037. debris_merge_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  17038. return this.encode(message, writer).ldelim();
  17039. };
  17040. /**
  17041. * Decodes a debris_merge_rsp message from the specified reader or buffer.
  17042. * @function decode
  17043. * @memberof game.debris_merge_rsp
  17044. * @static
  17045. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  17046. * @param {number} [length] Message length if known beforehand
  17047. * @returns {game.debris_merge_rsp} debris_merge_rsp
  17048. * @throws {Error} If the payload is not a reader or valid buffer
  17049. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  17050. */
  17051. debris_merge_rsp.decode = function decode(reader, length) {
  17052. if (!(reader instanceof $Reader))
  17053. reader = $Reader.create(reader);
  17054. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.debris_merge_rsp();
  17055. while (reader.pos < end) {
  17056. let tag = reader.uint32();
  17057. switch (tag >>> 3) {
  17058. case 1:
  17059. message.errno = reader.int64();
  17060. break;
  17061. default:
  17062. reader.skipType(tag & 7);
  17063. break;
  17064. }
  17065. }
  17066. return message;
  17067. };
  17068. /**
  17069. * Decodes a debris_merge_rsp message from the specified reader or buffer, length delimited.
  17070. * @function decodeDelimited
  17071. * @memberof game.debris_merge_rsp
  17072. * @static
  17073. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  17074. * @returns {game.debris_merge_rsp} debris_merge_rsp
  17075. * @throws {Error} If the payload is not a reader or valid buffer
  17076. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  17077. */
  17078. debris_merge_rsp.decodeDelimited = function decodeDelimited(reader) {
  17079. if (!(reader instanceof $Reader))
  17080. reader = new $Reader(reader);
  17081. return this.decode(reader, reader.uint32());
  17082. };
  17083. /**
  17084. * Verifies a debris_merge_rsp message.
  17085. * @function verify
  17086. * @memberof game.debris_merge_rsp
  17087. * @static
  17088. * @param {Object.<string,*>} message Plain object to verify
  17089. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  17090. */
  17091. debris_merge_rsp.verify = function verify(message) {
  17092. if (typeof message !== "object" || message === null)
  17093. return "object expected";
  17094. if (message.errno != null && message.hasOwnProperty("errno"))
  17095. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  17096. return "errno: integer|Long expected";
  17097. return null;
  17098. };
  17099. /**
  17100. * Creates a debris_merge_rsp message from a plain object. Also converts values to their respective internal types.
  17101. * @function fromObject
  17102. * @memberof game.debris_merge_rsp
  17103. * @static
  17104. * @param {Object.<string,*>} object Plain object
  17105. * @returns {game.debris_merge_rsp} debris_merge_rsp
  17106. */
  17107. debris_merge_rsp.fromObject = function fromObject(object) {
  17108. if (object instanceof $root.game.debris_merge_rsp)
  17109. return object;
  17110. let message = new $root.game.debris_merge_rsp();
  17111. if (object.errno != null)
  17112. if ($util.Long)
  17113. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  17114. else if (typeof object.errno === "string")
  17115. message.errno = parseInt(object.errno, 10);
  17116. else if (typeof object.errno === "number")
  17117. message.errno = object.errno;
  17118. else if (typeof object.errno === "object")
  17119. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  17120. return message;
  17121. };
  17122. /**
  17123. * Creates a plain object from a debris_merge_rsp message. Also converts values to other types if specified.
  17124. * @function toObject
  17125. * @memberof game.debris_merge_rsp
  17126. * @static
  17127. * @param {game.debris_merge_rsp} message debris_merge_rsp
  17128. * @param {$protobuf.IConversionOptions} [options] Conversion options
  17129. * @returns {Object.<string,*>} Plain object
  17130. */
  17131. debris_merge_rsp.toObject = function toObject(message, options) {
  17132. if (!options)
  17133. options = {};
  17134. let object = {};
  17135. if (options.defaults)
  17136. if ($util.Long) {
  17137. let long = new $util.Long(0, 0, false);
  17138. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  17139. } else
  17140. object.errno = options.longs === String ? "0" : 0;
  17141. if (message.errno != null && message.hasOwnProperty("errno"))
  17142. if (typeof message.errno === "number")
  17143. object.errno = options.longs === String ? String(message.errno) : message.errno;
  17144. else
  17145. 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;
  17146. return object;
  17147. };
  17148. /**
  17149. * Converts this debris_merge_rsp to JSON.
  17150. * @function toJSON
  17151. * @memberof game.debris_merge_rsp
  17152. * @instance
  17153. * @returns {Object.<string,*>} JSON object
  17154. */
  17155. debris_merge_rsp.prototype.toJSON = function toJSON() {
  17156. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  17157. };
  17158. return debris_merge_rsp;
  17159. })();
  17160. game.equip_get_data = (function() {
  17161. /**
  17162. * Properties of an equip_get_data.
  17163. * @memberof game
  17164. * @interface Iequip_get_data
  17165. */
  17166. /**
  17167. * Constructs a new equip_get_data.
  17168. * @memberof game
  17169. * @classdesc Represents an equip_get_data.
  17170. * @implements Iequip_get_data
  17171. * @constructor
  17172. * @param {game.Iequip_get_data=} [properties] Properties to set
  17173. */
  17174. function equip_get_data(properties) {
  17175. if (properties)
  17176. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  17177. if (properties[keys[i]] != null)
  17178. this[keys[i]] = properties[keys[i]];
  17179. }
  17180. /**
  17181. * Creates a new equip_get_data instance using the specified properties.
  17182. * @function create
  17183. * @memberof game.equip_get_data
  17184. * @static
  17185. * @param {game.Iequip_get_data=} [properties] Properties to set
  17186. * @returns {game.equip_get_data} equip_get_data instance
  17187. */
  17188. equip_get_data.create = function create(properties) {
  17189. return new equip_get_data(properties);
  17190. };
  17191. /**
  17192. * Encodes the specified equip_get_data message. Does not implicitly {@link game.equip_get_data.verify|verify} messages.
  17193. * @function encode
  17194. * @memberof game.equip_get_data
  17195. * @static
  17196. * @param {game.Iequip_get_data} message equip_get_data message or plain object to encode
  17197. * @param {$protobuf.Writer} [writer] Writer to encode to
  17198. * @returns {$protobuf.Writer} Writer
  17199. */
  17200. equip_get_data.encode = function encode(message, writer) {
  17201. if (!writer)
  17202. writer = $Writer.create();
  17203. return writer;
  17204. };
  17205. /**
  17206. * Encodes the specified equip_get_data message, length delimited. Does not implicitly {@link game.equip_get_data.verify|verify} messages.
  17207. * @function encodeDelimited
  17208. * @memberof game.equip_get_data
  17209. * @static
  17210. * @param {game.Iequip_get_data} message equip_get_data message or plain object to encode
  17211. * @param {$protobuf.Writer} [writer] Writer to encode to
  17212. * @returns {$protobuf.Writer} Writer
  17213. */
  17214. equip_get_data.encodeDelimited = function encodeDelimited(message, writer) {
  17215. return this.encode(message, writer).ldelim();
  17216. };
  17217. /**
  17218. * Decodes an equip_get_data message from the specified reader or buffer.
  17219. * @function decode
  17220. * @memberof game.equip_get_data
  17221. * @static
  17222. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  17223. * @param {number} [length] Message length if known beforehand
  17224. * @returns {game.equip_get_data} equip_get_data
  17225. * @throws {Error} If the payload is not a reader or valid buffer
  17226. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  17227. */
  17228. equip_get_data.decode = function decode(reader, length) {
  17229. if (!(reader instanceof $Reader))
  17230. reader = $Reader.create(reader);
  17231. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.equip_get_data();
  17232. while (reader.pos < end) {
  17233. let tag = reader.uint32();
  17234. switch (tag >>> 3) {
  17235. default:
  17236. reader.skipType(tag & 7);
  17237. break;
  17238. }
  17239. }
  17240. return message;
  17241. };
  17242. /**
  17243. * Decodes an equip_get_data message from the specified reader or buffer, length delimited.
  17244. * @function decodeDelimited
  17245. * @memberof game.equip_get_data
  17246. * @static
  17247. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  17248. * @returns {game.equip_get_data} equip_get_data
  17249. * @throws {Error} If the payload is not a reader or valid buffer
  17250. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  17251. */
  17252. equip_get_data.decodeDelimited = function decodeDelimited(reader) {
  17253. if (!(reader instanceof $Reader))
  17254. reader = new $Reader(reader);
  17255. return this.decode(reader, reader.uint32());
  17256. };
  17257. /**
  17258. * Verifies an equip_get_data message.
  17259. * @function verify
  17260. * @memberof game.equip_get_data
  17261. * @static
  17262. * @param {Object.<string,*>} message Plain object to verify
  17263. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  17264. */
  17265. equip_get_data.verify = function verify(message) {
  17266. if (typeof message !== "object" || message === null)
  17267. return "object expected";
  17268. return null;
  17269. };
  17270. /**
  17271. * Creates an equip_get_data message from a plain object. Also converts values to their respective internal types.
  17272. * @function fromObject
  17273. * @memberof game.equip_get_data
  17274. * @static
  17275. * @param {Object.<string,*>} object Plain object
  17276. * @returns {game.equip_get_data} equip_get_data
  17277. */
  17278. equip_get_data.fromObject = function fromObject(object) {
  17279. if (object instanceof $root.game.equip_get_data)
  17280. return object;
  17281. return new $root.game.equip_get_data();
  17282. };
  17283. /**
  17284. * Creates a plain object from an equip_get_data message. Also converts values to other types if specified.
  17285. * @function toObject
  17286. * @memberof game.equip_get_data
  17287. * @static
  17288. * @param {game.equip_get_data} message equip_get_data
  17289. * @param {$protobuf.IConversionOptions} [options] Conversion options
  17290. * @returns {Object.<string,*>} Plain object
  17291. */
  17292. equip_get_data.toObject = function toObject() {
  17293. return {};
  17294. };
  17295. /**
  17296. * Converts this equip_get_data to JSON.
  17297. * @function toJSON
  17298. * @memberof game.equip_get_data
  17299. * @instance
  17300. * @returns {Object.<string,*>} JSON object
  17301. */
  17302. equip_get_data.prototype.toJSON = function toJSON() {
  17303. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  17304. };
  17305. return equip_get_data;
  17306. })();
  17307. game.equip_get_data_rsp = (function() {
  17308. /**
  17309. * Properties of an equip_get_data_rsp.
  17310. * @memberof game
  17311. * @interface Iequip_get_data_rsp
  17312. * @property {number|Long|null} [errno] equip_get_data_rsp errno
  17313. * @property {Array.<game.Iequip>|null} [list] equip_get_data_rsp list
  17314. */
  17315. /**
  17316. * Constructs a new equip_get_data_rsp.
  17317. * @memberof game
  17318. * @classdesc Represents an equip_get_data_rsp.
  17319. * @implements Iequip_get_data_rsp
  17320. * @constructor
  17321. * @param {game.Iequip_get_data_rsp=} [properties] Properties to set
  17322. */
  17323. function equip_get_data_rsp(properties) {
  17324. this.list = [];
  17325. if (properties)
  17326. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  17327. if (properties[keys[i]] != null)
  17328. this[keys[i]] = properties[keys[i]];
  17329. }
  17330. /**
  17331. * equip_get_data_rsp errno.
  17332. * @member {number|Long} errno
  17333. * @memberof game.equip_get_data_rsp
  17334. * @instance
  17335. */
  17336. equip_get_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  17337. /**
  17338. * equip_get_data_rsp list.
  17339. * @member {Array.<game.Iequip>} list
  17340. * @memberof game.equip_get_data_rsp
  17341. * @instance
  17342. */
  17343. equip_get_data_rsp.prototype.list = $util.emptyArray;
  17344. /**
  17345. * Creates a new equip_get_data_rsp instance using the specified properties.
  17346. * @function create
  17347. * @memberof game.equip_get_data_rsp
  17348. * @static
  17349. * @param {game.Iequip_get_data_rsp=} [properties] Properties to set
  17350. * @returns {game.equip_get_data_rsp} equip_get_data_rsp instance
  17351. */
  17352. equip_get_data_rsp.create = function create(properties) {
  17353. return new equip_get_data_rsp(properties);
  17354. };
  17355. /**
  17356. * Encodes the specified equip_get_data_rsp message. Does not implicitly {@link game.equip_get_data_rsp.verify|verify} messages.
  17357. * @function encode
  17358. * @memberof game.equip_get_data_rsp
  17359. * @static
  17360. * @param {game.Iequip_get_data_rsp} message equip_get_data_rsp message or plain object to encode
  17361. * @param {$protobuf.Writer} [writer] Writer to encode to
  17362. * @returns {$protobuf.Writer} Writer
  17363. */
  17364. equip_get_data_rsp.encode = function encode(message, writer) {
  17365. if (!writer)
  17366. writer = $Writer.create();
  17367. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  17368. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  17369. if (message.list != null && message.list.length)
  17370. for (let i = 0; i < message.list.length; ++i)
  17371. $root.game.equip.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  17372. return writer;
  17373. };
  17374. /**
  17375. * Encodes the specified equip_get_data_rsp message, length delimited. Does not implicitly {@link game.equip_get_data_rsp.verify|verify} messages.
  17376. * @function encodeDelimited
  17377. * @memberof game.equip_get_data_rsp
  17378. * @static
  17379. * @param {game.Iequip_get_data_rsp} message equip_get_data_rsp message or plain object to encode
  17380. * @param {$protobuf.Writer} [writer] Writer to encode to
  17381. * @returns {$protobuf.Writer} Writer
  17382. */
  17383. equip_get_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  17384. return this.encode(message, writer).ldelim();
  17385. };
  17386. /**
  17387. * Decodes an equip_get_data_rsp message from the specified reader or buffer.
  17388. * @function decode
  17389. * @memberof game.equip_get_data_rsp
  17390. * @static
  17391. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  17392. * @param {number} [length] Message length if known beforehand
  17393. * @returns {game.equip_get_data_rsp} equip_get_data_rsp
  17394. * @throws {Error} If the payload is not a reader or valid buffer
  17395. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  17396. */
  17397. equip_get_data_rsp.decode = function decode(reader, length) {
  17398. if (!(reader instanceof $Reader))
  17399. reader = $Reader.create(reader);
  17400. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.equip_get_data_rsp();
  17401. while (reader.pos < end) {
  17402. let tag = reader.uint32();
  17403. switch (tag >>> 3) {
  17404. case 1:
  17405. message.errno = reader.int64();
  17406. break;
  17407. case 2:
  17408. if (!(message.list && message.list.length))
  17409. message.list = [];
  17410. message.list.push($root.game.equip.decode(reader, reader.uint32()));
  17411. break;
  17412. default:
  17413. reader.skipType(tag & 7);
  17414. break;
  17415. }
  17416. }
  17417. return message;
  17418. };
  17419. /**
  17420. * Decodes an equip_get_data_rsp message from the specified reader or buffer, length delimited.
  17421. * @function decodeDelimited
  17422. * @memberof game.equip_get_data_rsp
  17423. * @static
  17424. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  17425. * @returns {game.equip_get_data_rsp} equip_get_data_rsp
  17426. * @throws {Error} If the payload is not a reader or valid buffer
  17427. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  17428. */
  17429. equip_get_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  17430. if (!(reader instanceof $Reader))
  17431. reader = new $Reader(reader);
  17432. return this.decode(reader, reader.uint32());
  17433. };
  17434. /**
  17435. * Verifies an equip_get_data_rsp message.
  17436. * @function verify
  17437. * @memberof game.equip_get_data_rsp
  17438. * @static
  17439. * @param {Object.<string,*>} message Plain object to verify
  17440. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  17441. */
  17442. equip_get_data_rsp.verify = function verify(message) {
  17443. if (typeof message !== "object" || message === null)
  17444. return "object expected";
  17445. if (message.errno != null && message.hasOwnProperty("errno"))
  17446. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  17447. return "errno: integer|Long expected";
  17448. if (message.list != null && message.hasOwnProperty("list")) {
  17449. if (!Array.isArray(message.list))
  17450. return "list: array expected";
  17451. for (let i = 0; i < message.list.length; ++i) {
  17452. let error = $root.game.equip.verify(message.list[i]);
  17453. if (error)
  17454. return "list." + error;
  17455. }
  17456. }
  17457. return null;
  17458. };
  17459. /**
  17460. * Creates an equip_get_data_rsp message from a plain object. Also converts values to their respective internal types.
  17461. * @function fromObject
  17462. * @memberof game.equip_get_data_rsp
  17463. * @static
  17464. * @param {Object.<string,*>} object Plain object
  17465. * @returns {game.equip_get_data_rsp} equip_get_data_rsp
  17466. */
  17467. equip_get_data_rsp.fromObject = function fromObject(object) {
  17468. if (object instanceof $root.game.equip_get_data_rsp)
  17469. return object;
  17470. let message = new $root.game.equip_get_data_rsp();
  17471. if (object.errno != null)
  17472. if ($util.Long)
  17473. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  17474. else if (typeof object.errno === "string")
  17475. message.errno = parseInt(object.errno, 10);
  17476. else if (typeof object.errno === "number")
  17477. message.errno = object.errno;
  17478. else if (typeof object.errno === "object")
  17479. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  17480. if (object.list) {
  17481. if (!Array.isArray(object.list))
  17482. throw TypeError(".game.equip_get_data_rsp.list: array expected");
  17483. message.list = [];
  17484. for (let i = 0; i < object.list.length; ++i) {
  17485. if (typeof object.list[i] !== "object")
  17486. throw TypeError(".game.equip_get_data_rsp.list: object expected");
  17487. message.list[i] = $root.game.equip.fromObject(object.list[i]);
  17488. }
  17489. }
  17490. return message;
  17491. };
  17492. /**
  17493. * Creates a plain object from an equip_get_data_rsp message. Also converts values to other types if specified.
  17494. * @function toObject
  17495. * @memberof game.equip_get_data_rsp
  17496. * @static
  17497. * @param {game.equip_get_data_rsp} message equip_get_data_rsp
  17498. * @param {$protobuf.IConversionOptions} [options] Conversion options
  17499. * @returns {Object.<string,*>} Plain object
  17500. */
  17501. equip_get_data_rsp.toObject = function toObject(message, options) {
  17502. if (!options)
  17503. options = {};
  17504. let object = {};
  17505. if (options.arrays || options.defaults)
  17506. object.list = [];
  17507. if (options.defaults)
  17508. if ($util.Long) {
  17509. let long = new $util.Long(0, 0, false);
  17510. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  17511. } else
  17512. object.errno = options.longs === String ? "0" : 0;
  17513. if (message.errno != null && message.hasOwnProperty("errno"))
  17514. if (typeof message.errno === "number")
  17515. object.errno = options.longs === String ? String(message.errno) : message.errno;
  17516. else
  17517. 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;
  17518. if (message.list && message.list.length) {
  17519. object.list = [];
  17520. for (let j = 0; j < message.list.length; ++j)
  17521. object.list[j] = $root.game.equip.toObject(message.list[j], options);
  17522. }
  17523. return object;
  17524. };
  17525. /**
  17526. * Converts this equip_get_data_rsp to JSON.
  17527. * @function toJSON
  17528. * @memberof game.equip_get_data_rsp
  17529. * @instance
  17530. * @returns {Object.<string,*>} JSON object
  17531. */
  17532. equip_get_data_rsp.prototype.toJSON = function toJSON() {
  17533. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  17534. };
  17535. return equip_get_data_rsp;
  17536. })();
  17537. game.equip_upgrade = (function() {
  17538. /**
  17539. * Properties of an equip_upgrade.
  17540. * @memberof game
  17541. * @interface Iequip_upgrade
  17542. * @property {string|null} [sid] equip_upgrade sid
  17543. * @property {number|Long|null} [num] equip_upgrade num
  17544. */
  17545. /**
  17546. * Constructs a new equip_upgrade.
  17547. * @memberof game
  17548. * @classdesc Represents an equip_upgrade.
  17549. * @implements Iequip_upgrade
  17550. * @constructor
  17551. * @param {game.Iequip_upgrade=} [properties] Properties to set
  17552. */
  17553. function equip_upgrade(properties) {
  17554. if (properties)
  17555. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  17556. if (properties[keys[i]] != null)
  17557. this[keys[i]] = properties[keys[i]];
  17558. }
  17559. /**
  17560. * equip_upgrade sid.
  17561. * @member {string} sid
  17562. * @memberof game.equip_upgrade
  17563. * @instance
  17564. */
  17565. equip_upgrade.prototype.sid = "";
  17566. /**
  17567. * equip_upgrade num.
  17568. * @member {number|Long} num
  17569. * @memberof game.equip_upgrade
  17570. * @instance
  17571. */
  17572. equip_upgrade.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  17573. /**
  17574. * Creates a new equip_upgrade instance using the specified properties.
  17575. * @function create
  17576. * @memberof game.equip_upgrade
  17577. * @static
  17578. * @param {game.Iequip_upgrade=} [properties] Properties to set
  17579. * @returns {game.equip_upgrade} equip_upgrade instance
  17580. */
  17581. equip_upgrade.create = function create(properties) {
  17582. return new equip_upgrade(properties);
  17583. };
  17584. /**
  17585. * Encodes the specified equip_upgrade message. Does not implicitly {@link game.equip_upgrade.verify|verify} messages.
  17586. * @function encode
  17587. * @memberof game.equip_upgrade
  17588. * @static
  17589. * @param {game.Iequip_upgrade} message equip_upgrade message or plain object to encode
  17590. * @param {$protobuf.Writer} [writer] Writer to encode to
  17591. * @returns {$protobuf.Writer} Writer
  17592. */
  17593. equip_upgrade.encode = function encode(message, writer) {
  17594. if (!writer)
  17595. writer = $Writer.create();
  17596. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  17597. writer.uint32(/* id 1, wireType 2 =*/10).string(message.sid);
  17598. if (message.num != null && Object.hasOwnProperty.call(message, "num"))
  17599. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.num);
  17600. return writer;
  17601. };
  17602. /**
  17603. * Encodes the specified equip_upgrade message, length delimited. Does not implicitly {@link game.equip_upgrade.verify|verify} messages.
  17604. * @function encodeDelimited
  17605. * @memberof game.equip_upgrade
  17606. * @static
  17607. * @param {game.Iequip_upgrade} message equip_upgrade message or plain object to encode
  17608. * @param {$protobuf.Writer} [writer] Writer to encode to
  17609. * @returns {$protobuf.Writer} Writer
  17610. */
  17611. equip_upgrade.encodeDelimited = function encodeDelimited(message, writer) {
  17612. return this.encode(message, writer).ldelim();
  17613. };
  17614. /**
  17615. * Decodes an equip_upgrade message from the specified reader or buffer.
  17616. * @function decode
  17617. * @memberof game.equip_upgrade
  17618. * @static
  17619. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  17620. * @param {number} [length] Message length if known beforehand
  17621. * @returns {game.equip_upgrade} equip_upgrade
  17622. * @throws {Error} If the payload is not a reader or valid buffer
  17623. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  17624. */
  17625. equip_upgrade.decode = function decode(reader, length) {
  17626. if (!(reader instanceof $Reader))
  17627. reader = $Reader.create(reader);
  17628. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.equip_upgrade();
  17629. while (reader.pos < end) {
  17630. let tag = reader.uint32();
  17631. switch (tag >>> 3) {
  17632. case 1:
  17633. message.sid = reader.string();
  17634. break;
  17635. case 2:
  17636. message.num = reader.int64();
  17637. break;
  17638. default:
  17639. reader.skipType(tag & 7);
  17640. break;
  17641. }
  17642. }
  17643. return message;
  17644. };
  17645. /**
  17646. * Decodes an equip_upgrade message from the specified reader or buffer, length delimited.
  17647. * @function decodeDelimited
  17648. * @memberof game.equip_upgrade
  17649. * @static
  17650. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  17651. * @returns {game.equip_upgrade} equip_upgrade
  17652. * @throws {Error} If the payload is not a reader or valid buffer
  17653. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  17654. */
  17655. equip_upgrade.decodeDelimited = function decodeDelimited(reader) {
  17656. if (!(reader instanceof $Reader))
  17657. reader = new $Reader(reader);
  17658. return this.decode(reader, reader.uint32());
  17659. };
  17660. /**
  17661. * Verifies an equip_upgrade message.
  17662. * @function verify
  17663. * @memberof game.equip_upgrade
  17664. * @static
  17665. * @param {Object.<string,*>} message Plain object to verify
  17666. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  17667. */
  17668. equip_upgrade.verify = function verify(message) {
  17669. if (typeof message !== "object" || message === null)
  17670. return "object expected";
  17671. if (message.sid != null && message.hasOwnProperty("sid"))
  17672. if (!$util.isString(message.sid))
  17673. return "sid: string expected";
  17674. if (message.num != null && message.hasOwnProperty("num"))
  17675. if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
  17676. return "num: integer|Long expected";
  17677. return null;
  17678. };
  17679. /**
  17680. * Creates an equip_upgrade message from a plain object. Also converts values to their respective internal types.
  17681. * @function fromObject
  17682. * @memberof game.equip_upgrade
  17683. * @static
  17684. * @param {Object.<string,*>} object Plain object
  17685. * @returns {game.equip_upgrade} equip_upgrade
  17686. */
  17687. equip_upgrade.fromObject = function fromObject(object) {
  17688. if (object instanceof $root.game.equip_upgrade)
  17689. return object;
  17690. let message = new $root.game.equip_upgrade();
  17691. if (object.sid != null)
  17692. message.sid = String(object.sid);
  17693. if (object.num != null)
  17694. if ($util.Long)
  17695. (message.num = $util.Long.fromValue(object.num)).unsigned = false;
  17696. else if (typeof object.num === "string")
  17697. message.num = parseInt(object.num, 10);
  17698. else if (typeof object.num === "number")
  17699. message.num = object.num;
  17700. else if (typeof object.num === "object")
  17701. message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
  17702. return message;
  17703. };
  17704. /**
  17705. * Creates a plain object from an equip_upgrade message. Also converts values to other types if specified.
  17706. * @function toObject
  17707. * @memberof game.equip_upgrade
  17708. * @static
  17709. * @param {game.equip_upgrade} message equip_upgrade
  17710. * @param {$protobuf.IConversionOptions} [options] Conversion options
  17711. * @returns {Object.<string,*>} Plain object
  17712. */
  17713. equip_upgrade.toObject = function toObject(message, options) {
  17714. if (!options)
  17715. options = {};
  17716. let object = {};
  17717. if (options.defaults) {
  17718. object.sid = "";
  17719. if ($util.Long) {
  17720. let long = new $util.Long(0, 0, false);
  17721. object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  17722. } else
  17723. object.num = options.longs === String ? "0" : 0;
  17724. }
  17725. if (message.sid != null && message.hasOwnProperty("sid"))
  17726. object.sid = message.sid;
  17727. if (message.num != null && message.hasOwnProperty("num"))
  17728. if (typeof message.num === "number")
  17729. object.num = options.longs === String ? String(message.num) : message.num;
  17730. else
  17731. 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;
  17732. return object;
  17733. };
  17734. /**
  17735. * Converts this equip_upgrade to JSON.
  17736. * @function toJSON
  17737. * @memberof game.equip_upgrade
  17738. * @instance
  17739. * @returns {Object.<string,*>} JSON object
  17740. */
  17741. equip_upgrade.prototype.toJSON = function toJSON() {
  17742. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  17743. };
  17744. return equip_upgrade;
  17745. })();
  17746. game.equip_upgrade_rsp = (function() {
  17747. /**
  17748. * Properties of an equip_upgrade_rsp.
  17749. * @memberof game
  17750. * @interface Iequip_upgrade_rsp
  17751. * @property {number|Long|null} [errno] equip_upgrade_rsp errno
  17752. * @property {game.Iequip|null} [data] equip_upgrade_rsp data
  17753. */
  17754. /**
  17755. * Constructs a new equip_upgrade_rsp.
  17756. * @memberof game
  17757. * @classdesc Represents an equip_upgrade_rsp.
  17758. * @implements Iequip_upgrade_rsp
  17759. * @constructor
  17760. * @param {game.Iequip_upgrade_rsp=} [properties] Properties to set
  17761. */
  17762. function equip_upgrade_rsp(properties) {
  17763. if (properties)
  17764. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  17765. if (properties[keys[i]] != null)
  17766. this[keys[i]] = properties[keys[i]];
  17767. }
  17768. /**
  17769. * equip_upgrade_rsp errno.
  17770. * @member {number|Long} errno
  17771. * @memberof game.equip_upgrade_rsp
  17772. * @instance
  17773. */
  17774. equip_upgrade_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  17775. /**
  17776. * equip_upgrade_rsp data.
  17777. * @member {game.Iequip|null|undefined} data
  17778. * @memberof game.equip_upgrade_rsp
  17779. * @instance
  17780. */
  17781. equip_upgrade_rsp.prototype.data = null;
  17782. /**
  17783. * Creates a new equip_upgrade_rsp instance using the specified properties.
  17784. * @function create
  17785. * @memberof game.equip_upgrade_rsp
  17786. * @static
  17787. * @param {game.Iequip_upgrade_rsp=} [properties] Properties to set
  17788. * @returns {game.equip_upgrade_rsp} equip_upgrade_rsp instance
  17789. */
  17790. equip_upgrade_rsp.create = function create(properties) {
  17791. return new equip_upgrade_rsp(properties);
  17792. };
  17793. /**
  17794. * Encodes the specified equip_upgrade_rsp message. Does not implicitly {@link game.equip_upgrade_rsp.verify|verify} messages.
  17795. * @function encode
  17796. * @memberof game.equip_upgrade_rsp
  17797. * @static
  17798. * @param {game.Iequip_upgrade_rsp} message equip_upgrade_rsp message or plain object to encode
  17799. * @param {$protobuf.Writer} [writer] Writer to encode to
  17800. * @returns {$protobuf.Writer} Writer
  17801. */
  17802. equip_upgrade_rsp.encode = function encode(message, writer) {
  17803. if (!writer)
  17804. writer = $Writer.create();
  17805. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  17806. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  17807. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  17808. $root.game.equip.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  17809. return writer;
  17810. };
  17811. /**
  17812. * Encodes the specified equip_upgrade_rsp message, length delimited. Does not implicitly {@link game.equip_upgrade_rsp.verify|verify} messages.
  17813. * @function encodeDelimited
  17814. * @memberof game.equip_upgrade_rsp
  17815. * @static
  17816. * @param {game.Iequip_upgrade_rsp} message equip_upgrade_rsp message or plain object to encode
  17817. * @param {$protobuf.Writer} [writer] Writer to encode to
  17818. * @returns {$protobuf.Writer} Writer
  17819. */
  17820. equip_upgrade_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  17821. return this.encode(message, writer).ldelim();
  17822. };
  17823. /**
  17824. * Decodes an equip_upgrade_rsp message from the specified reader or buffer.
  17825. * @function decode
  17826. * @memberof game.equip_upgrade_rsp
  17827. * @static
  17828. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  17829. * @param {number} [length] Message length if known beforehand
  17830. * @returns {game.equip_upgrade_rsp} equip_upgrade_rsp
  17831. * @throws {Error} If the payload is not a reader or valid buffer
  17832. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  17833. */
  17834. equip_upgrade_rsp.decode = function decode(reader, length) {
  17835. if (!(reader instanceof $Reader))
  17836. reader = $Reader.create(reader);
  17837. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.equip_upgrade_rsp();
  17838. while (reader.pos < end) {
  17839. let tag = reader.uint32();
  17840. switch (tag >>> 3) {
  17841. case 1:
  17842. message.errno = reader.int64();
  17843. break;
  17844. case 2:
  17845. message.data = $root.game.equip.decode(reader, reader.uint32());
  17846. break;
  17847. default:
  17848. reader.skipType(tag & 7);
  17849. break;
  17850. }
  17851. }
  17852. return message;
  17853. };
  17854. /**
  17855. * Decodes an equip_upgrade_rsp message from the specified reader or buffer, length delimited.
  17856. * @function decodeDelimited
  17857. * @memberof game.equip_upgrade_rsp
  17858. * @static
  17859. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  17860. * @returns {game.equip_upgrade_rsp} equip_upgrade_rsp
  17861. * @throws {Error} If the payload is not a reader or valid buffer
  17862. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  17863. */
  17864. equip_upgrade_rsp.decodeDelimited = function decodeDelimited(reader) {
  17865. if (!(reader instanceof $Reader))
  17866. reader = new $Reader(reader);
  17867. return this.decode(reader, reader.uint32());
  17868. };
  17869. /**
  17870. * Verifies an equip_upgrade_rsp message.
  17871. * @function verify
  17872. * @memberof game.equip_upgrade_rsp
  17873. * @static
  17874. * @param {Object.<string,*>} message Plain object to verify
  17875. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  17876. */
  17877. equip_upgrade_rsp.verify = function verify(message) {
  17878. if (typeof message !== "object" || message === null)
  17879. return "object expected";
  17880. if (message.errno != null && message.hasOwnProperty("errno"))
  17881. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  17882. return "errno: integer|Long expected";
  17883. if (message.data != null && message.hasOwnProperty("data")) {
  17884. let error = $root.game.equip.verify(message.data);
  17885. if (error)
  17886. return "data." + error;
  17887. }
  17888. return null;
  17889. };
  17890. /**
  17891. * Creates an equip_upgrade_rsp message from a plain object. Also converts values to their respective internal types.
  17892. * @function fromObject
  17893. * @memberof game.equip_upgrade_rsp
  17894. * @static
  17895. * @param {Object.<string,*>} object Plain object
  17896. * @returns {game.equip_upgrade_rsp} equip_upgrade_rsp
  17897. */
  17898. equip_upgrade_rsp.fromObject = function fromObject(object) {
  17899. if (object instanceof $root.game.equip_upgrade_rsp)
  17900. return object;
  17901. let message = new $root.game.equip_upgrade_rsp();
  17902. if (object.errno != null)
  17903. if ($util.Long)
  17904. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  17905. else if (typeof object.errno === "string")
  17906. message.errno = parseInt(object.errno, 10);
  17907. else if (typeof object.errno === "number")
  17908. message.errno = object.errno;
  17909. else if (typeof object.errno === "object")
  17910. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  17911. if (object.data != null) {
  17912. if (typeof object.data !== "object")
  17913. throw TypeError(".game.equip_upgrade_rsp.data: object expected");
  17914. message.data = $root.game.equip.fromObject(object.data);
  17915. }
  17916. return message;
  17917. };
  17918. /**
  17919. * Creates a plain object from an equip_upgrade_rsp message. Also converts values to other types if specified.
  17920. * @function toObject
  17921. * @memberof game.equip_upgrade_rsp
  17922. * @static
  17923. * @param {game.equip_upgrade_rsp} message equip_upgrade_rsp
  17924. * @param {$protobuf.IConversionOptions} [options] Conversion options
  17925. * @returns {Object.<string,*>} Plain object
  17926. */
  17927. equip_upgrade_rsp.toObject = function toObject(message, options) {
  17928. if (!options)
  17929. options = {};
  17930. let object = {};
  17931. if (options.defaults) {
  17932. if ($util.Long) {
  17933. let long = new $util.Long(0, 0, false);
  17934. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  17935. } else
  17936. object.errno = options.longs === String ? "0" : 0;
  17937. object.data = null;
  17938. }
  17939. if (message.errno != null && message.hasOwnProperty("errno"))
  17940. if (typeof message.errno === "number")
  17941. object.errno = options.longs === String ? String(message.errno) : message.errno;
  17942. else
  17943. 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;
  17944. if (message.data != null && message.hasOwnProperty("data"))
  17945. object.data = $root.game.equip.toObject(message.data, options);
  17946. return object;
  17947. };
  17948. /**
  17949. * Converts this equip_upgrade_rsp to JSON.
  17950. * @function toJSON
  17951. * @memberof game.equip_upgrade_rsp
  17952. * @instance
  17953. * @returns {Object.<string,*>} JSON object
  17954. */
  17955. equip_upgrade_rsp.prototype.toJSON = function toJSON() {
  17956. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  17957. };
  17958. return equip_upgrade_rsp;
  17959. })();
  17960. game.equip_upgrade_star = (function() {
  17961. /**
  17962. * Properties of an equip_upgrade_star.
  17963. * @memberof game
  17964. * @interface Iequip_upgrade_star
  17965. * @property {string|null} [sid] equip_upgrade_star sid
  17966. * @property {Array.<string>|null} [same] equip_upgrade_star same
  17967. * @property {Array.<string>|null} [other] equip_upgrade_star other
  17968. * @property {game.Iid_num|null} [currency] equip_upgrade_star currency
  17969. */
  17970. /**
  17971. * Constructs a new equip_upgrade_star.
  17972. * @memberof game
  17973. * @classdesc Represents an equip_upgrade_star.
  17974. * @implements Iequip_upgrade_star
  17975. * @constructor
  17976. * @param {game.Iequip_upgrade_star=} [properties] Properties to set
  17977. */
  17978. function equip_upgrade_star(properties) {
  17979. this.same = [];
  17980. this.other = [];
  17981. if (properties)
  17982. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  17983. if (properties[keys[i]] != null)
  17984. this[keys[i]] = properties[keys[i]];
  17985. }
  17986. /**
  17987. * equip_upgrade_star sid.
  17988. * @member {string} sid
  17989. * @memberof game.equip_upgrade_star
  17990. * @instance
  17991. */
  17992. equip_upgrade_star.prototype.sid = "";
  17993. /**
  17994. * equip_upgrade_star same.
  17995. * @member {Array.<string>} same
  17996. * @memberof game.equip_upgrade_star
  17997. * @instance
  17998. */
  17999. equip_upgrade_star.prototype.same = $util.emptyArray;
  18000. /**
  18001. * equip_upgrade_star other.
  18002. * @member {Array.<string>} other
  18003. * @memberof game.equip_upgrade_star
  18004. * @instance
  18005. */
  18006. equip_upgrade_star.prototype.other = $util.emptyArray;
  18007. /**
  18008. * equip_upgrade_star currency.
  18009. * @member {game.Iid_num|null|undefined} currency
  18010. * @memberof game.equip_upgrade_star
  18011. * @instance
  18012. */
  18013. equip_upgrade_star.prototype.currency = null;
  18014. /**
  18015. * Creates a new equip_upgrade_star instance using the specified properties.
  18016. * @function create
  18017. * @memberof game.equip_upgrade_star
  18018. * @static
  18019. * @param {game.Iequip_upgrade_star=} [properties] Properties to set
  18020. * @returns {game.equip_upgrade_star} equip_upgrade_star instance
  18021. */
  18022. equip_upgrade_star.create = function create(properties) {
  18023. return new equip_upgrade_star(properties);
  18024. };
  18025. /**
  18026. * Encodes the specified equip_upgrade_star message. Does not implicitly {@link game.equip_upgrade_star.verify|verify} messages.
  18027. * @function encode
  18028. * @memberof game.equip_upgrade_star
  18029. * @static
  18030. * @param {game.Iequip_upgrade_star} message equip_upgrade_star message or plain object to encode
  18031. * @param {$protobuf.Writer} [writer] Writer to encode to
  18032. * @returns {$protobuf.Writer} Writer
  18033. */
  18034. equip_upgrade_star.encode = function encode(message, writer) {
  18035. if (!writer)
  18036. writer = $Writer.create();
  18037. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  18038. writer.uint32(/* id 1, wireType 2 =*/10).string(message.sid);
  18039. if (message.same != null && message.same.length)
  18040. for (let i = 0; i < message.same.length; ++i)
  18041. writer.uint32(/* id 2, wireType 2 =*/18).string(message.same[i]);
  18042. if (message.other != null && message.other.length)
  18043. for (let i = 0; i < message.other.length; ++i)
  18044. writer.uint32(/* id 3, wireType 2 =*/26).string(message.other[i]);
  18045. if (message.currency != null && Object.hasOwnProperty.call(message, "currency"))
  18046. $root.game.id_num.encode(message.currency, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
  18047. return writer;
  18048. };
  18049. /**
  18050. * Encodes the specified equip_upgrade_star message, length delimited. Does not implicitly {@link game.equip_upgrade_star.verify|verify} messages.
  18051. * @function encodeDelimited
  18052. * @memberof game.equip_upgrade_star
  18053. * @static
  18054. * @param {game.Iequip_upgrade_star} message equip_upgrade_star message or plain object to encode
  18055. * @param {$protobuf.Writer} [writer] Writer to encode to
  18056. * @returns {$protobuf.Writer} Writer
  18057. */
  18058. equip_upgrade_star.encodeDelimited = function encodeDelimited(message, writer) {
  18059. return this.encode(message, writer).ldelim();
  18060. };
  18061. /**
  18062. * Decodes an equip_upgrade_star message from the specified reader or buffer.
  18063. * @function decode
  18064. * @memberof game.equip_upgrade_star
  18065. * @static
  18066. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  18067. * @param {number} [length] Message length if known beforehand
  18068. * @returns {game.equip_upgrade_star} equip_upgrade_star
  18069. * @throws {Error} If the payload is not a reader or valid buffer
  18070. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  18071. */
  18072. equip_upgrade_star.decode = function decode(reader, length) {
  18073. if (!(reader instanceof $Reader))
  18074. reader = $Reader.create(reader);
  18075. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.equip_upgrade_star();
  18076. while (reader.pos < end) {
  18077. let tag = reader.uint32();
  18078. switch (tag >>> 3) {
  18079. case 1:
  18080. message.sid = reader.string();
  18081. break;
  18082. case 2:
  18083. if (!(message.same && message.same.length))
  18084. message.same = [];
  18085. message.same.push(reader.string());
  18086. break;
  18087. case 3:
  18088. if (!(message.other && message.other.length))
  18089. message.other = [];
  18090. message.other.push(reader.string());
  18091. break;
  18092. case 4:
  18093. message.currency = $root.game.id_num.decode(reader, reader.uint32());
  18094. break;
  18095. default:
  18096. reader.skipType(tag & 7);
  18097. break;
  18098. }
  18099. }
  18100. return message;
  18101. };
  18102. /**
  18103. * Decodes an equip_upgrade_star message from the specified reader or buffer, length delimited.
  18104. * @function decodeDelimited
  18105. * @memberof game.equip_upgrade_star
  18106. * @static
  18107. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  18108. * @returns {game.equip_upgrade_star} equip_upgrade_star
  18109. * @throws {Error} If the payload is not a reader or valid buffer
  18110. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  18111. */
  18112. equip_upgrade_star.decodeDelimited = function decodeDelimited(reader) {
  18113. if (!(reader instanceof $Reader))
  18114. reader = new $Reader(reader);
  18115. return this.decode(reader, reader.uint32());
  18116. };
  18117. /**
  18118. * Verifies an equip_upgrade_star message.
  18119. * @function verify
  18120. * @memberof game.equip_upgrade_star
  18121. * @static
  18122. * @param {Object.<string,*>} message Plain object to verify
  18123. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  18124. */
  18125. equip_upgrade_star.verify = function verify(message) {
  18126. if (typeof message !== "object" || message === null)
  18127. return "object expected";
  18128. if (message.sid != null && message.hasOwnProperty("sid"))
  18129. if (!$util.isString(message.sid))
  18130. return "sid: string expected";
  18131. if (message.same != null && message.hasOwnProperty("same")) {
  18132. if (!Array.isArray(message.same))
  18133. return "same: array expected";
  18134. for (let i = 0; i < message.same.length; ++i)
  18135. if (!$util.isString(message.same[i]))
  18136. return "same: string[] expected";
  18137. }
  18138. if (message.other != null && message.hasOwnProperty("other")) {
  18139. if (!Array.isArray(message.other))
  18140. return "other: array expected";
  18141. for (let i = 0; i < message.other.length; ++i)
  18142. if (!$util.isString(message.other[i]))
  18143. return "other: string[] expected";
  18144. }
  18145. if (message.currency != null && message.hasOwnProperty("currency")) {
  18146. let error = $root.game.id_num.verify(message.currency);
  18147. if (error)
  18148. return "currency." + error;
  18149. }
  18150. return null;
  18151. };
  18152. /**
  18153. * Creates an equip_upgrade_star message from a plain object. Also converts values to their respective internal types.
  18154. * @function fromObject
  18155. * @memberof game.equip_upgrade_star
  18156. * @static
  18157. * @param {Object.<string,*>} object Plain object
  18158. * @returns {game.equip_upgrade_star} equip_upgrade_star
  18159. */
  18160. equip_upgrade_star.fromObject = function fromObject(object) {
  18161. if (object instanceof $root.game.equip_upgrade_star)
  18162. return object;
  18163. let message = new $root.game.equip_upgrade_star();
  18164. if (object.sid != null)
  18165. message.sid = String(object.sid);
  18166. if (object.same) {
  18167. if (!Array.isArray(object.same))
  18168. throw TypeError(".game.equip_upgrade_star.same: array expected");
  18169. message.same = [];
  18170. for (let i = 0; i < object.same.length; ++i)
  18171. message.same[i] = String(object.same[i]);
  18172. }
  18173. if (object.other) {
  18174. if (!Array.isArray(object.other))
  18175. throw TypeError(".game.equip_upgrade_star.other: array expected");
  18176. message.other = [];
  18177. for (let i = 0; i < object.other.length; ++i)
  18178. message.other[i] = String(object.other[i]);
  18179. }
  18180. if (object.currency != null) {
  18181. if (typeof object.currency !== "object")
  18182. throw TypeError(".game.equip_upgrade_star.currency: object expected");
  18183. message.currency = $root.game.id_num.fromObject(object.currency);
  18184. }
  18185. return message;
  18186. };
  18187. /**
  18188. * Creates a plain object from an equip_upgrade_star message. Also converts values to other types if specified.
  18189. * @function toObject
  18190. * @memberof game.equip_upgrade_star
  18191. * @static
  18192. * @param {game.equip_upgrade_star} message equip_upgrade_star
  18193. * @param {$protobuf.IConversionOptions} [options] Conversion options
  18194. * @returns {Object.<string,*>} Plain object
  18195. */
  18196. equip_upgrade_star.toObject = function toObject(message, options) {
  18197. if (!options)
  18198. options = {};
  18199. let object = {};
  18200. if (options.arrays || options.defaults) {
  18201. object.same = [];
  18202. object.other = [];
  18203. }
  18204. if (options.defaults) {
  18205. object.sid = "";
  18206. object.currency = null;
  18207. }
  18208. if (message.sid != null && message.hasOwnProperty("sid"))
  18209. object.sid = message.sid;
  18210. if (message.same && message.same.length) {
  18211. object.same = [];
  18212. for (let j = 0; j < message.same.length; ++j)
  18213. object.same[j] = message.same[j];
  18214. }
  18215. if (message.other && message.other.length) {
  18216. object.other = [];
  18217. for (let j = 0; j < message.other.length; ++j)
  18218. object.other[j] = message.other[j];
  18219. }
  18220. if (message.currency != null && message.hasOwnProperty("currency"))
  18221. object.currency = $root.game.id_num.toObject(message.currency, options);
  18222. return object;
  18223. };
  18224. /**
  18225. * Converts this equip_upgrade_star to JSON.
  18226. * @function toJSON
  18227. * @memberof game.equip_upgrade_star
  18228. * @instance
  18229. * @returns {Object.<string,*>} JSON object
  18230. */
  18231. equip_upgrade_star.prototype.toJSON = function toJSON() {
  18232. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  18233. };
  18234. return equip_upgrade_star;
  18235. })();
  18236. game.equip_upgrade_star_rsp = (function() {
  18237. /**
  18238. * Properties of an equip_upgrade_star_rsp.
  18239. * @memberof game
  18240. * @interface Iequip_upgrade_star_rsp
  18241. * @property {number|Long|null} [errno] equip_upgrade_star_rsp errno
  18242. * @property {game.Iequip|null} [data] equip_upgrade_star_rsp data
  18243. * @property {Array.<string>|null} [same] equip_upgrade_star_rsp same
  18244. * @property {Array.<string>|null} [other] equip_upgrade_star_rsp other
  18245. * @property {game.Iid_num|null} [currency] equip_upgrade_star_rsp currency
  18246. */
  18247. /**
  18248. * Constructs a new equip_upgrade_star_rsp.
  18249. * @memberof game
  18250. * @classdesc Represents an equip_upgrade_star_rsp.
  18251. * @implements Iequip_upgrade_star_rsp
  18252. * @constructor
  18253. * @param {game.Iequip_upgrade_star_rsp=} [properties] Properties to set
  18254. */
  18255. function equip_upgrade_star_rsp(properties) {
  18256. this.same = [];
  18257. this.other = [];
  18258. if (properties)
  18259. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  18260. if (properties[keys[i]] != null)
  18261. this[keys[i]] = properties[keys[i]];
  18262. }
  18263. /**
  18264. * equip_upgrade_star_rsp errno.
  18265. * @member {number|Long} errno
  18266. * @memberof game.equip_upgrade_star_rsp
  18267. * @instance
  18268. */
  18269. equip_upgrade_star_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  18270. /**
  18271. * equip_upgrade_star_rsp data.
  18272. * @member {game.Iequip|null|undefined} data
  18273. * @memberof game.equip_upgrade_star_rsp
  18274. * @instance
  18275. */
  18276. equip_upgrade_star_rsp.prototype.data = null;
  18277. /**
  18278. * equip_upgrade_star_rsp same.
  18279. * @member {Array.<string>} same
  18280. * @memberof game.equip_upgrade_star_rsp
  18281. * @instance
  18282. */
  18283. equip_upgrade_star_rsp.prototype.same = $util.emptyArray;
  18284. /**
  18285. * equip_upgrade_star_rsp other.
  18286. * @member {Array.<string>} other
  18287. * @memberof game.equip_upgrade_star_rsp
  18288. * @instance
  18289. */
  18290. equip_upgrade_star_rsp.prototype.other = $util.emptyArray;
  18291. /**
  18292. * equip_upgrade_star_rsp currency.
  18293. * @member {game.Iid_num|null|undefined} currency
  18294. * @memberof game.equip_upgrade_star_rsp
  18295. * @instance
  18296. */
  18297. equip_upgrade_star_rsp.prototype.currency = null;
  18298. /**
  18299. * Creates a new equip_upgrade_star_rsp instance using the specified properties.
  18300. * @function create
  18301. * @memberof game.equip_upgrade_star_rsp
  18302. * @static
  18303. * @param {game.Iequip_upgrade_star_rsp=} [properties] Properties to set
  18304. * @returns {game.equip_upgrade_star_rsp} equip_upgrade_star_rsp instance
  18305. */
  18306. equip_upgrade_star_rsp.create = function create(properties) {
  18307. return new equip_upgrade_star_rsp(properties);
  18308. };
  18309. /**
  18310. * Encodes the specified equip_upgrade_star_rsp message. Does not implicitly {@link game.equip_upgrade_star_rsp.verify|verify} messages.
  18311. * @function encode
  18312. * @memberof game.equip_upgrade_star_rsp
  18313. * @static
  18314. * @param {game.Iequip_upgrade_star_rsp} message equip_upgrade_star_rsp message or plain object to encode
  18315. * @param {$protobuf.Writer} [writer] Writer to encode to
  18316. * @returns {$protobuf.Writer} Writer
  18317. */
  18318. equip_upgrade_star_rsp.encode = function encode(message, writer) {
  18319. if (!writer)
  18320. writer = $Writer.create();
  18321. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  18322. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  18323. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  18324. $root.game.equip.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  18325. if (message.same != null && message.same.length)
  18326. for (let i = 0; i < message.same.length; ++i)
  18327. writer.uint32(/* id 3, wireType 2 =*/26).string(message.same[i]);
  18328. if (message.other != null && message.other.length)
  18329. for (let i = 0; i < message.other.length; ++i)
  18330. writer.uint32(/* id 4, wireType 2 =*/34).string(message.other[i]);
  18331. if (message.currency != null && Object.hasOwnProperty.call(message, "currency"))
  18332. $root.game.id_num.encode(message.currency, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
  18333. return writer;
  18334. };
  18335. /**
  18336. * Encodes the specified equip_upgrade_star_rsp message, length delimited. Does not implicitly {@link game.equip_upgrade_star_rsp.verify|verify} messages.
  18337. * @function encodeDelimited
  18338. * @memberof game.equip_upgrade_star_rsp
  18339. * @static
  18340. * @param {game.Iequip_upgrade_star_rsp} message equip_upgrade_star_rsp message or plain object to encode
  18341. * @param {$protobuf.Writer} [writer] Writer to encode to
  18342. * @returns {$protobuf.Writer} Writer
  18343. */
  18344. equip_upgrade_star_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  18345. return this.encode(message, writer).ldelim();
  18346. };
  18347. /**
  18348. * Decodes an equip_upgrade_star_rsp message from the specified reader or buffer.
  18349. * @function decode
  18350. * @memberof game.equip_upgrade_star_rsp
  18351. * @static
  18352. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  18353. * @param {number} [length] Message length if known beforehand
  18354. * @returns {game.equip_upgrade_star_rsp} equip_upgrade_star_rsp
  18355. * @throws {Error} If the payload is not a reader or valid buffer
  18356. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  18357. */
  18358. equip_upgrade_star_rsp.decode = function decode(reader, length) {
  18359. if (!(reader instanceof $Reader))
  18360. reader = $Reader.create(reader);
  18361. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.equip_upgrade_star_rsp();
  18362. while (reader.pos < end) {
  18363. let tag = reader.uint32();
  18364. switch (tag >>> 3) {
  18365. case 1:
  18366. message.errno = reader.int64();
  18367. break;
  18368. case 2:
  18369. message.data = $root.game.equip.decode(reader, reader.uint32());
  18370. break;
  18371. case 3:
  18372. if (!(message.same && message.same.length))
  18373. message.same = [];
  18374. message.same.push(reader.string());
  18375. break;
  18376. case 4:
  18377. if (!(message.other && message.other.length))
  18378. message.other = [];
  18379. message.other.push(reader.string());
  18380. break;
  18381. case 5:
  18382. message.currency = $root.game.id_num.decode(reader, reader.uint32());
  18383. break;
  18384. default:
  18385. reader.skipType(tag & 7);
  18386. break;
  18387. }
  18388. }
  18389. return message;
  18390. };
  18391. /**
  18392. * Decodes an equip_upgrade_star_rsp message from the specified reader or buffer, length delimited.
  18393. * @function decodeDelimited
  18394. * @memberof game.equip_upgrade_star_rsp
  18395. * @static
  18396. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  18397. * @returns {game.equip_upgrade_star_rsp} equip_upgrade_star_rsp
  18398. * @throws {Error} If the payload is not a reader or valid buffer
  18399. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  18400. */
  18401. equip_upgrade_star_rsp.decodeDelimited = function decodeDelimited(reader) {
  18402. if (!(reader instanceof $Reader))
  18403. reader = new $Reader(reader);
  18404. return this.decode(reader, reader.uint32());
  18405. };
  18406. /**
  18407. * Verifies an equip_upgrade_star_rsp message.
  18408. * @function verify
  18409. * @memberof game.equip_upgrade_star_rsp
  18410. * @static
  18411. * @param {Object.<string,*>} message Plain object to verify
  18412. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  18413. */
  18414. equip_upgrade_star_rsp.verify = function verify(message) {
  18415. if (typeof message !== "object" || message === null)
  18416. return "object expected";
  18417. if (message.errno != null && message.hasOwnProperty("errno"))
  18418. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  18419. return "errno: integer|Long expected";
  18420. if (message.data != null && message.hasOwnProperty("data")) {
  18421. let error = $root.game.equip.verify(message.data);
  18422. if (error)
  18423. return "data." + error;
  18424. }
  18425. if (message.same != null && message.hasOwnProperty("same")) {
  18426. if (!Array.isArray(message.same))
  18427. return "same: array expected";
  18428. for (let i = 0; i < message.same.length; ++i)
  18429. if (!$util.isString(message.same[i]))
  18430. return "same: string[] expected";
  18431. }
  18432. if (message.other != null && message.hasOwnProperty("other")) {
  18433. if (!Array.isArray(message.other))
  18434. return "other: array expected";
  18435. for (let i = 0; i < message.other.length; ++i)
  18436. if (!$util.isString(message.other[i]))
  18437. return "other: string[] expected";
  18438. }
  18439. if (message.currency != null && message.hasOwnProperty("currency")) {
  18440. let error = $root.game.id_num.verify(message.currency);
  18441. if (error)
  18442. return "currency." + error;
  18443. }
  18444. return null;
  18445. };
  18446. /**
  18447. * Creates an equip_upgrade_star_rsp message from a plain object. Also converts values to their respective internal types.
  18448. * @function fromObject
  18449. * @memberof game.equip_upgrade_star_rsp
  18450. * @static
  18451. * @param {Object.<string,*>} object Plain object
  18452. * @returns {game.equip_upgrade_star_rsp} equip_upgrade_star_rsp
  18453. */
  18454. equip_upgrade_star_rsp.fromObject = function fromObject(object) {
  18455. if (object instanceof $root.game.equip_upgrade_star_rsp)
  18456. return object;
  18457. let message = new $root.game.equip_upgrade_star_rsp();
  18458. if (object.errno != null)
  18459. if ($util.Long)
  18460. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  18461. else if (typeof object.errno === "string")
  18462. message.errno = parseInt(object.errno, 10);
  18463. else if (typeof object.errno === "number")
  18464. message.errno = object.errno;
  18465. else if (typeof object.errno === "object")
  18466. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  18467. if (object.data != null) {
  18468. if (typeof object.data !== "object")
  18469. throw TypeError(".game.equip_upgrade_star_rsp.data: object expected");
  18470. message.data = $root.game.equip.fromObject(object.data);
  18471. }
  18472. if (object.same) {
  18473. if (!Array.isArray(object.same))
  18474. throw TypeError(".game.equip_upgrade_star_rsp.same: array expected");
  18475. message.same = [];
  18476. for (let i = 0; i < object.same.length; ++i)
  18477. message.same[i] = String(object.same[i]);
  18478. }
  18479. if (object.other) {
  18480. if (!Array.isArray(object.other))
  18481. throw TypeError(".game.equip_upgrade_star_rsp.other: array expected");
  18482. message.other = [];
  18483. for (let i = 0; i < object.other.length; ++i)
  18484. message.other[i] = String(object.other[i]);
  18485. }
  18486. if (object.currency != null) {
  18487. if (typeof object.currency !== "object")
  18488. throw TypeError(".game.equip_upgrade_star_rsp.currency: object expected");
  18489. message.currency = $root.game.id_num.fromObject(object.currency);
  18490. }
  18491. return message;
  18492. };
  18493. /**
  18494. * Creates a plain object from an equip_upgrade_star_rsp message. Also converts values to other types if specified.
  18495. * @function toObject
  18496. * @memberof game.equip_upgrade_star_rsp
  18497. * @static
  18498. * @param {game.equip_upgrade_star_rsp} message equip_upgrade_star_rsp
  18499. * @param {$protobuf.IConversionOptions} [options] Conversion options
  18500. * @returns {Object.<string,*>} Plain object
  18501. */
  18502. equip_upgrade_star_rsp.toObject = function toObject(message, options) {
  18503. if (!options)
  18504. options = {};
  18505. let object = {};
  18506. if (options.arrays || options.defaults) {
  18507. object.same = [];
  18508. object.other = [];
  18509. }
  18510. if (options.defaults) {
  18511. if ($util.Long) {
  18512. let long = new $util.Long(0, 0, false);
  18513. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  18514. } else
  18515. object.errno = options.longs === String ? "0" : 0;
  18516. object.data = null;
  18517. object.currency = null;
  18518. }
  18519. if (message.errno != null && message.hasOwnProperty("errno"))
  18520. if (typeof message.errno === "number")
  18521. object.errno = options.longs === String ? String(message.errno) : message.errno;
  18522. else
  18523. 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;
  18524. if (message.data != null && message.hasOwnProperty("data"))
  18525. object.data = $root.game.equip.toObject(message.data, options);
  18526. if (message.same && message.same.length) {
  18527. object.same = [];
  18528. for (let j = 0; j < message.same.length; ++j)
  18529. object.same[j] = message.same[j];
  18530. }
  18531. if (message.other && message.other.length) {
  18532. object.other = [];
  18533. for (let j = 0; j < message.other.length; ++j)
  18534. object.other[j] = message.other[j];
  18535. }
  18536. if (message.currency != null && message.hasOwnProperty("currency"))
  18537. object.currency = $root.game.id_num.toObject(message.currency, options);
  18538. return object;
  18539. };
  18540. /**
  18541. * Converts this equip_upgrade_star_rsp to JSON.
  18542. * @function toJSON
  18543. * @memberof game.equip_upgrade_star_rsp
  18544. * @instance
  18545. * @returns {Object.<string,*>} JSON object
  18546. */
  18547. equip_upgrade_star_rsp.prototype.toJSON = function toJSON() {
  18548. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  18549. };
  18550. return equip_upgrade_star_rsp;
  18551. })();
  18552. game.equip_onekey_upgrade_star = (function() {
  18553. /**
  18554. * Properties of an equip_onekey_upgrade_star.
  18555. * @memberof game
  18556. * @interface Iequip_onekey_upgrade_star
  18557. */
  18558. /**
  18559. * Constructs a new equip_onekey_upgrade_star.
  18560. * @memberof game
  18561. * @classdesc Represents an equip_onekey_upgrade_star.
  18562. * @implements Iequip_onekey_upgrade_star
  18563. * @constructor
  18564. * @param {game.Iequip_onekey_upgrade_star=} [properties] Properties to set
  18565. */
  18566. function equip_onekey_upgrade_star(properties) {
  18567. if (properties)
  18568. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  18569. if (properties[keys[i]] != null)
  18570. this[keys[i]] = properties[keys[i]];
  18571. }
  18572. /**
  18573. * Creates a new equip_onekey_upgrade_star instance using the specified properties.
  18574. * @function create
  18575. * @memberof game.equip_onekey_upgrade_star
  18576. * @static
  18577. * @param {game.Iequip_onekey_upgrade_star=} [properties] Properties to set
  18578. * @returns {game.equip_onekey_upgrade_star} equip_onekey_upgrade_star instance
  18579. */
  18580. equip_onekey_upgrade_star.create = function create(properties) {
  18581. return new equip_onekey_upgrade_star(properties);
  18582. };
  18583. /**
  18584. * Encodes the specified equip_onekey_upgrade_star message. Does not implicitly {@link game.equip_onekey_upgrade_star.verify|verify} messages.
  18585. * @function encode
  18586. * @memberof game.equip_onekey_upgrade_star
  18587. * @static
  18588. * @param {game.Iequip_onekey_upgrade_star} message equip_onekey_upgrade_star message or plain object to encode
  18589. * @param {$protobuf.Writer} [writer] Writer to encode to
  18590. * @returns {$protobuf.Writer} Writer
  18591. */
  18592. equip_onekey_upgrade_star.encode = function encode(message, writer) {
  18593. if (!writer)
  18594. writer = $Writer.create();
  18595. return writer;
  18596. };
  18597. /**
  18598. * Encodes the specified equip_onekey_upgrade_star message, length delimited. Does not implicitly {@link game.equip_onekey_upgrade_star.verify|verify} messages.
  18599. * @function encodeDelimited
  18600. * @memberof game.equip_onekey_upgrade_star
  18601. * @static
  18602. * @param {game.Iequip_onekey_upgrade_star} message equip_onekey_upgrade_star message or plain object to encode
  18603. * @param {$protobuf.Writer} [writer] Writer to encode to
  18604. * @returns {$protobuf.Writer} Writer
  18605. */
  18606. equip_onekey_upgrade_star.encodeDelimited = function encodeDelimited(message, writer) {
  18607. return this.encode(message, writer).ldelim();
  18608. };
  18609. /**
  18610. * Decodes an equip_onekey_upgrade_star message from the specified reader or buffer.
  18611. * @function decode
  18612. * @memberof game.equip_onekey_upgrade_star
  18613. * @static
  18614. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  18615. * @param {number} [length] Message length if known beforehand
  18616. * @returns {game.equip_onekey_upgrade_star} equip_onekey_upgrade_star
  18617. * @throws {Error} If the payload is not a reader or valid buffer
  18618. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  18619. */
  18620. equip_onekey_upgrade_star.decode = function decode(reader, length) {
  18621. if (!(reader instanceof $Reader))
  18622. reader = $Reader.create(reader);
  18623. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.equip_onekey_upgrade_star();
  18624. while (reader.pos < end) {
  18625. let tag = reader.uint32();
  18626. switch (tag >>> 3) {
  18627. default:
  18628. reader.skipType(tag & 7);
  18629. break;
  18630. }
  18631. }
  18632. return message;
  18633. };
  18634. /**
  18635. * Decodes an equip_onekey_upgrade_star message from the specified reader or buffer, length delimited.
  18636. * @function decodeDelimited
  18637. * @memberof game.equip_onekey_upgrade_star
  18638. * @static
  18639. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  18640. * @returns {game.equip_onekey_upgrade_star} equip_onekey_upgrade_star
  18641. * @throws {Error} If the payload is not a reader or valid buffer
  18642. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  18643. */
  18644. equip_onekey_upgrade_star.decodeDelimited = function decodeDelimited(reader) {
  18645. if (!(reader instanceof $Reader))
  18646. reader = new $Reader(reader);
  18647. return this.decode(reader, reader.uint32());
  18648. };
  18649. /**
  18650. * Verifies an equip_onekey_upgrade_star message.
  18651. * @function verify
  18652. * @memberof game.equip_onekey_upgrade_star
  18653. * @static
  18654. * @param {Object.<string,*>} message Plain object to verify
  18655. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  18656. */
  18657. equip_onekey_upgrade_star.verify = function verify(message) {
  18658. if (typeof message !== "object" || message === null)
  18659. return "object expected";
  18660. return null;
  18661. };
  18662. /**
  18663. * Creates an equip_onekey_upgrade_star message from a plain object. Also converts values to their respective internal types.
  18664. * @function fromObject
  18665. * @memberof game.equip_onekey_upgrade_star
  18666. * @static
  18667. * @param {Object.<string,*>} object Plain object
  18668. * @returns {game.equip_onekey_upgrade_star} equip_onekey_upgrade_star
  18669. */
  18670. equip_onekey_upgrade_star.fromObject = function fromObject(object) {
  18671. if (object instanceof $root.game.equip_onekey_upgrade_star)
  18672. return object;
  18673. return new $root.game.equip_onekey_upgrade_star();
  18674. };
  18675. /**
  18676. * Creates a plain object from an equip_onekey_upgrade_star message. Also converts values to other types if specified.
  18677. * @function toObject
  18678. * @memberof game.equip_onekey_upgrade_star
  18679. * @static
  18680. * @param {game.equip_onekey_upgrade_star} message equip_onekey_upgrade_star
  18681. * @param {$protobuf.IConversionOptions} [options] Conversion options
  18682. * @returns {Object.<string,*>} Plain object
  18683. */
  18684. equip_onekey_upgrade_star.toObject = function toObject() {
  18685. return {};
  18686. };
  18687. /**
  18688. * Converts this equip_onekey_upgrade_star to JSON.
  18689. * @function toJSON
  18690. * @memberof game.equip_onekey_upgrade_star
  18691. * @instance
  18692. * @returns {Object.<string,*>} JSON object
  18693. */
  18694. equip_onekey_upgrade_star.prototype.toJSON = function toJSON() {
  18695. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  18696. };
  18697. return equip_onekey_upgrade_star;
  18698. })();
  18699. game.equip_onekey_upgrade_star_rsp = (function() {
  18700. /**
  18701. * Properties of an equip_onekey_upgrade_star_rsp.
  18702. * @memberof game
  18703. * @interface Iequip_onekey_upgrade_star_rsp
  18704. * @property {number|Long|null} [errno] equip_onekey_upgrade_star_rsp errno
  18705. * @property {Array.<string>|null} [delList] equip_onekey_upgrade_star_rsp delList
  18706. * @property {Array.<game.Iequip>|null} [changeList] equip_onekey_upgrade_star_rsp changeList
  18707. */
  18708. /**
  18709. * Constructs a new equip_onekey_upgrade_star_rsp.
  18710. * @memberof game
  18711. * @classdesc Represents an equip_onekey_upgrade_star_rsp.
  18712. * @implements Iequip_onekey_upgrade_star_rsp
  18713. * @constructor
  18714. * @param {game.Iequip_onekey_upgrade_star_rsp=} [properties] Properties to set
  18715. */
  18716. function equip_onekey_upgrade_star_rsp(properties) {
  18717. this.delList = [];
  18718. this.changeList = [];
  18719. if (properties)
  18720. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  18721. if (properties[keys[i]] != null)
  18722. this[keys[i]] = properties[keys[i]];
  18723. }
  18724. /**
  18725. * equip_onekey_upgrade_star_rsp errno.
  18726. * @member {number|Long} errno
  18727. * @memberof game.equip_onekey_upgrade_star_rsp
  18728. * @instance
  18729. */
  18730. equip_onekey_upgrade_star_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  18731. /**
  18732. * equip_onekey_upgrade_star_rsp delList.
  18733. * @member {Array.<string>} delList
  18734. * @memberof game.equip_onekey_upgrade_star_rsp
  18735. * @instance
  18736. */
  18737. equip_onekey_upgrade_star_rsp.prototype.delList = $util.emptyArray;
  18738. /**
  18739. * equip_onekey_upgrade_star_rsp changeList.
  18740. * @member {Array.<game.Iequip>} changeList
  18741. * @memberof game.equip_onekey_upgrade_star_rsp
  18742. * @instance
  18743. */
  18744. equip_onekey_upgrade_star_rsp.prototype.changeList = $util.emptyArray;
  18745. /**
  18746. * Creates a new equip_onekey_upgrade_star_rsp instance using the specified properties.
  18747. * @function create
  18748. * @memberof game.equip_onekey_upgrade_star_rsp
  18749. * @static
  18750. * @param {game.Iequip_onekey_upgrade_star_rsp=} [properties] Properties to set
  18751. * @returns {game.equip_onekey_upgrade_star_rsp} equip_onekey_upgrade_star_rsp instance
  18752. */
  18753. equip_onekey_upgrade_star_rsp.create = function create(properties) {
  18754. return new equip_onekey_upgrade_star_rsp(properties);
  18755. };
  18756. /**
  18757. * Encodes the specified equip_onekey_upgrade_star_rsp message. Does not implicitly {@link game.equip_onekey_upgrade_star_rsp.verify|verify} messages.
  18758. * @function encode
  18759. * @memberof game.equip_onekey_upgrade_star_rsp
  18760. * @static
  18761. * @param {game.Iequip_onekey_upgrade_star_rsp} message equip_onekey_upgrade_star_rsp message or plain object to encode
  18762. * @param {$protobuf.Writer} [writer] Writer to encode to
  18763. * @returns {$protobuf.Writer} Writer
  18764. */
  18765. equip_onekey_upgrade_star_rsp.encode = function encode(message, writer) {
  18766. if (!writer)
  18767. writer = $Writer.create();
  18768. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  18769. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  18770. if (message.delList != null && message.delList.length)
  18771. for (let i = 0; i < message.delList.length; ++i)
  18772. writer.uint32(/* id 2, wireType 2 =*/18).string(message.delList[i]);
  18773. if (message.changeList != null && message.changeList.length)
  18774. for (let i = 0; i < message.changeList.length; ++i)
  18775. $root.game.equip.encode(message.changeList[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
  18776. return writer;
  18777. };
  18778. /**
  18779. * Encodes the specified equip_onekey_upgrade_star_rsp message, length delimited. Does not implicitly {@link game.equip_onekey_upgrade_star_rsp.verify|verify} messages.
  18780. * @function encodeDelimited
  18781. * @memberof game.equip_onekey_upgrade_star_rsp
  18782. * @static
  18783. * @param {game.Iequip_onekey_upgrade_star_rsp} message equip_onekey_upgrade_star_rsp message or plain object to encode
  18784. * @param {$protobuf.Writer} [writer] Writer to encode to
  18785. * @returns {$protobuf.Writer} Writer
  18786. */
  18787. equip_onekey_upgrade_star_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  18788. return this.encode(message, writer).ldelim();
  18789. };
  18790. /**
  18791. * Decodes an equip_onekey_upgrade_star_rsp message from the specified reader or buffer.
  18792. * @function decode
  18793. * @memberof game.equip_onekey_upgrade_star_rsp
  18794. * @static
  18795. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  18796. * @param {number} [length] Message length if known beforehand
  18797. * @returns {game.equip_onekey_upgrade_star_rsp} equip_onekey_upgrade_star_rsp
  18798. * @throws {Error} If the payload is not a reader or valid buffer
  18799. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  18800. */
  18801. equip_onekey_upgrade_star_rsp.decode = function decode(reader, length) {
  18802. if (!(reader instanceof $Reader))
  18803. reader = $Reader.create(reader);
  18804. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.equip_onekey_upgrade_star_rsp();
  18805. while (reader.pos < end) {
  18806. let tag = reader.uint32();
  18807. switch (tag >>> 3) {
  18808. case 1:
  18809. message.errno = reader.int64();
  18810. break;
  18811. case 2:
  18812. if (!(message.delList && message.delList.length))
  18813. message.delList = [];
  18814. message.delList.push(reader.string());
  18815. break;
  18816. case 3:
  18817. if (!(message.changeList && message.changeList.length))
  18818. message.changeList = [];
  18819. message.changeList.push($root.game.equip.decode(reader, reader.uint32()));
  18820. break;
  18821. default:
  18822. reader.skipType(tag & 7);
  18823. break;
  18824. }
  18825. }
  18826. return message;
  18827. };
  18828. /**
  18829. * Decodes an equip_onekey_upgrade_star_rsp message from the specified reader or buffer, length delimited.
  18830. * @function decodeDelimited
  18831. * @memberof game.equip_onekey_upgrade_star_rsp
  18832. * @static
  18833. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  18834. * @returns {game.equip_onekey_upgrade_star_rsp} equip_onekey_upgrade_star_rsp
  18835. * @throws {Error} If the payload is not a reader or valid buffer
  18836. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  18837. */
  18838. equip_onekey_upgrade_star_rsp.decodeDelimited = function decodeDelimited(reader) {
  18839. if (!(reader instanceof $Reader))
  18840. reader = new $Reader(reader);
  18841. return this.decode(reader, reader.uint32());
  18842. };
  18843. /**
  18844. * Verifies an equip_onekey_upgrade_star_rsp message.
  18845. * @function verify
  18846. * @memberof game.equip_onekey_upgrade_star_rsp
  18847. * @static
  18848. * @param {Object.<string,*>} message Plain object to verify
  18849. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  18850. */
  18851. equip_onekey_upgrade_star_rsp.verify = function verify(message) {
  18852. if (typeof message !== "object" || message === null)
  18853. return "object expected";
  18854. if (message.errno != null && message.hasOwnProperty("errno"))
  18855. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  18856. return "errno: integer|Long expected";
  18857. if (message.delList != null && message.hasOwnProperty("delList")) {
  18858. if (!Array.isArray(message.delList))
  18859. return "delList: array expected";
  18860. for (let i = 0; i < message.delList.length; ++i)
  18861. if (!$util.isString(message.delList[i]))
  18862. return "delList: string[] expected";
  18863. }
  18864. if (message.changeList != null && message.hasOwnProperty("changeList")) {
  18865. if (!Array.isArray(message.changeList))
  18866. return "changeList: array expected";
  18867. for (let i = 0; i < message.changeList.length; ++i) {
  18868. let error = $root.game.equip.verify(message.changeList[i]);
  18869. if (error)
  18870. return "changeList." + error;
  18871. }
  18872. }
  18873. return null;
  18874. };
  18875. /**
  18876. * Creates an equip_onekey_upgrade_star_rsp message from a plain object. Also converts values to their respective internal types.
  18877. * @function fromObject
  18878. * @memberof game.equip_onekey_upgrade_star_rsp
  18879. * @static
  18880. * @param {Object.<string,*>} object Plain object
  18881. * @returns {game.equip_onekey_upgrade_star_rsp} equip_onekey_upgrade_star_rsp
  18882. */
  18883. equip_onekey_upgrade_star_rsp.fromObject = function fromObject(object) {
  18884. if (object instanceof $root.game.equip_onekey_upgrade_star_rsp)
  18885. return object;
  18886. let message = new $root.game.equip_onekey_upgrade_star_rsp();
  18887. if (object.errno != null)
  18888. if ($util.Long)
  18889. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  18890. else if (typeof object.errno === "string")
  18891. message.errno = parseInt(object.errno, 10);
  18892. else if (typeof object.errno === "number")
  18893. message.errno = object.errno;
  18894. else if (typeof object.errno === "object")
  18895. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  18896. if (object.delList) {
  18897. if (!Array.isArray(object.delList))
  18898. throw TypeError(".game.equip_onekey_upgrade_star_rsp.delList: array expected");
  18899. message.delList = [];
  18900. for (let i = 0; i < object.delList.length; ++i)
  18901. message.delList[i] = String(object.delList[i]);
  18902. }
  18903. if (object.changeList) {
  18904. if (!Array.isArray(object.changeList))
  18905. throw TypeError(".game.equip_onekey_upgrade_star_rsp.changeList: array expected");
  18906. message.changeList = [];
  18907. for (let i = 0; i < object.changeList.length; ++i) {
  18908. if (typeof object.changeList[i] !== "object")
  18909. throw TypeError(".game.equip_onekey_upgrade_star_rsp.changeList: object expected");
  18910. message.changeList[i] = $root.game.equip.fromObject(object.changeList[i]);
  18911. }
  18912. }
  18913. return message;
  18914. };
  18915. /**
  18916. * Creates a plain object from an equip_onekey_upgrade_star_rsp message. Also converts values to other types if specified.
  18917. * @function toObject
  18918. * @memberof game.equip_onekey_upgrade_star_rsp
  18919. * @static
  18920. * @param {game.equip_onekey_upgrade_star_rsp} message equip_onekey_upgrade_star_rsp
  18921. * @param {$protobuf.IConversionOptions} [options] Conversion options
  18922. * @returns {Object.<string,*>} Plain object
  18923. */
  18924. equip_onekey_upgrade_star_rsp.toObject = function toObject(message, options) {
  18925. if (!options)
  18926. options = {};
  18927. let object = {};
  18928. if (options.arrays || options.defaults) {
  18929. object.delList = [];
  18930. object.changeList = [];
  18931. }
  18932. if (options.defaults)
  18933. if ($util.Long) {
  18934. let long = new $util.Long(0, 0, false);
  18935. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  18936. } else
  18937. object.errno = options.longs === String ? "0" : 0;
  18938. if (message.errno != null && message.hasOwnProperty("errno"))
  18939. if (typeof message.errno === "number")
  18940. object.errno = options.longs === String ? String(message.errno) : message.errno;
  18941. else
  18942. 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;
  18943. if (message.delList && message.delList.length) {
  18944. object.delList = [];
  18945. for (let j = 0; j < message.delList.length; ++j)
  18946. object.delList[j] = message.delList[j];
  18947. }
  18948. if (message.changeList && message.changeList.length) {
  18949. object.changeList = [];
  18950. for (let j = 0; j < message.changeList.length; ++j)
  18951. object.changeList[j] = $root.game.equip.toObject(message.changeList[j], options);
  18952. }
  18953. return object;
  18954. };
  18955. /**
  18956. * Converts this equip_onekey_upgrade_star_rsp to JSON.
  18957. * @function toJSON
  18958. * @memberof game.equip_onekey_upgrade_star_rsp
  18959. * @instance
  18960. * @returns {Object.<string,*>} JSON object
  18961. */
  18962. equip_onekey_upgrade_star_rsp.prototype.toJSON = function toJSON() {
  18963. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  18964. };
  18965. return equip_onekey_upgrade_star_rsp;
  18966. })();
  18967. game.equip_reset = (function() {
  18968. /**
  18969. * Properties of an equip_reset.
  18970. * @memberof game
  18971. * @interface Iequip_reset
  18972. * @property {boolean|null} [level] equip_reset level
  18973. * @property {string|null} [sid] equip_reset sid
  18974. */
  18975. /**
  18976. * Constructs a new equip_reset.
  18977. * @memberof game
  18978. * @classdesc Represents an equip_reset.
  18979. * @implements Iequip_reset
  18980. * @constructor
  18981. * @param {game.Iequip_reset=} [properties] Properties to set
  18982. */
  18983. function equip_reset(properties) {
  18984. if (properties)
  18985. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  18986. if (properties[keys[i]] != null)
  18987. this[keys[i]] = properties[keys[i]];
  18988. }
  18989. /**
  18990. * equip_reset level.
  18991. * @member {boolean} level
  18992. * @memberof game.equip_reset
  18993. * @instance
  18994. */
  18995. equip_reset.prototype.level = false;
  18996. /**
  18997. * equip_reset sid.
  18998. * @member {string} sid
  18999. * @memberof game.equip_reset
  19000. * @instance
  19001. */
  19002. equip_reset.prototype.sid = "";
  19003. /**
  19004. * Creates a new equip_reset instance using the specified properties.
  19005. * @function create
  19006. * @memberof game.equip_reset
  19007. * @static
  19008. * @param {game.Iequip_reset=} [properties] Properties to set
  19009. * @returns {game.equip_reset} equip_reset instance
  19010. */
  19011. equip_reset.create = function create(properties) {
  19012. return new equip_reset(properties);
  19013. };
  19014. /**
  19015. * Encodes the specified equip_reset message. Does not implicitly {@link game.equip_reset.verify|verify} messages.
  19016. * @function encode
  19017. * @memberof game.equip_reset
  19018. * @static
  19019. * @param {game.Iequip_reset} message equip_reset message or plain object to encode
  19020. * @param {$protobuf.Writer} [writer] Writer to encode to
  19021. * @returns {$protobuf.Writer} Writer
  19022. */
  19023. equip_reset.encode = function encode(message, writer) {
  19024. if (!writer)
  19025. writer = $Writer.create();
  19026. if (message.level != null && Object.hasOwnProperty.call(message, "level"))
  19027. writer.uint32(/* id 1, wireType 0 =*/8).bool(message.level);
  19028. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  19029. writer.uint32(/* id 2, wireType 2 =*/18).string(message.sid);
  19030. return writer;
  19031. };
  19032. /**
  19033. * Encodes the specified equip_reset message, length delimited. Does not implicitly {@link game.equip_reset.verify|verify} messages.
  19034. * @function encodeDelimited
  19035. * @memberof game.equip_reset
  19036. * @static
  19037. * @param {game.Iequip_reset} message equip_reset message or plain object to encode
  19038. * @param {$protobuf.Writer} [writer] Writer to encode to
  19039. * @returns {$protobuf.Writer} Writer
  19040. */
  19041. equip_reset.encodeDelimited = function encodeDelimited(message, writer) {
  19042. return this.encode(message, writer).ldelim();
  19043. };
  19044. /**
  19045. * Decodes an equip_reset message from the specified reader or buffer.
  19046. * @function decode
  19047. * @memberof game.equip_reset
  19048. * @static
  19049. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  19050. * @param {number} [length] Message length if known beforehand
  19051. * @returns {game.equip_reset} equip_reset
  19052. * @throws {Error} If the payload is not a reader or valid buffer
  19053. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  19054. */
  19055. equip_reset.decode = function decode(reader, length) {
  19056. if (!(reader instanceof $Reader))
  19057. reader = $Reader.create(reader);
  19058. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.equip_reset();
  19059. while (reader.pos < end) {
  19060. let tag = reader.uint32();
  19061. switch (tag >>> 3) {
  19062. case 1:
  19063. message.level = reader.bool();
  19064. break;
  19065. case 2:
  19066. message.sid = reader.string();
  19067. break;
  19068. default:
  19069. reader.skipType(tag & 7);
  19070. break;
  19071. }
  19072. }
  19073. return message;
  19074. };
  19075. /**
  19076. * Decodes an equip_reset message from the specified reader or buffer, length delimited.
  19077. * @function decodeDelimited
  19078. * @memberof game.equip_reset
  19079. * @static
  19080. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  19081. * @returns {game.equip_reset} equip_reset
  19082. * @throws {Error} If the payload is not a reader or valid buffer
  19083. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  19084. */
  19085. equip_reset.decodeDelimited = function decodeDelimited(reader) {
  19086. if (!(reader instanceof $Reader))
  19087. reader = new $Reader(reader);
  19088. return this.decode(reader, reader.uint32());
  19089. };
  19090. /**
  19091. * Verifies an equip_reset message.
  19092. * @function verify
  19093. * @memberof game.equip_reset
  19094. * @static
  19095. * @param {Object.<string,*>} message Plain object to verify
  19096. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  19097. */
  19098. equip_reset.verify = function verify(message) {
  19099. if (typeof message !== "object" || message === null)
  19100. return "object expected";
  19101. if (message.level != null && message.hasOwnProperty("level"))
  19102. if (typeof message.level !== "boolean")
  19103. return "level: boolean expected";
  19104. if (message.sid != null && message.hasOwnProperty("sid"))
  19105. if (!$util.isString(message.sid))
  19106. return "sid: string expected";
  19107. return null;
  19108. };
  19109. /**
  19110. * Creates an equip_reset message from a plain object. Also converts values to their respective internal types.
  19111. * @function fromObject
  19112. * @memberof game.equip_reset
  19113. * @static
  19114. * @param {Object.<string,*>} object Plain object
  19115. * @returns {game.equip_reset} equip_reset
  19116. */
  19117. equip_reset.fromObject = function fromObject(object) {
  19118. if (object instanceof $root.game.equip_reset)
  19119. return object;
  19120. let message = new $root.game.equip_reset();
  19121. if (object.level != null)
  19122. message.level = Boolean(object.level);
  19123. if (object.sid != null)
  19124. message.sid = String(object.sid);
  19125. return message;
  19126. };
  19127. /**
  19128. * Creates a plain object from an equip_reset message. Also converts values to other types if specified.
  19129. * @function toObject
  19130. * @memberof game.equip_reset
  19131. * @static
  19132. * @param {game.equip_reset} message equip_reset
  19133. * @param {$protobuf.IConversionOptions} [options] Conversion options
  19134. * @returns {Object.<string,*>} Plain object
  19135. */
  19136. equip_reset.toObject = function toObject(message, options) {
  19137. if (!options)
  19138. options = {};
  19139. let object = {};
  19140. if (options.defaults) {
  19141. object.level = false;
  19142. object.sid = "";
  19143. }
  19144. if (message.level != null && message.hasOwnProperty("level"))
  19145. object.level = message.level;
  19146. if (message.sid != null && message.hasOwnProperty("sid"))
  19147. object.sid = message.sid;
  19148. return object;
  19149. };
  19150. /**
  19151. * Converts this equip_reset to JSON.
  19152. * @function toJSON
  19153. * @memberof game.equip_reset
  19154. * @instance
  19155. * @returns {Object.<string,*>} JSON object
  19156. */
  19157. equip_reset.prototype.toJSON = function toJSON() {
  19158. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  19159. };
  19160. return equip_reset;
  19161. })();
  19162. game.equip_reset_rsp = (function() {
  19163. /**
  19164. * Properties of an equip_reset_rsp.
  19165. * @memberof game
  19166. * @interface Iequip_reset_rsp
  19167. * @property {number|Long|null} [errno] equip_reset_rsp errno
  19168. * @property {game.Iequip|null} [data] equip_reset_rsp data
  19169. */
  19170. /**
  19171. * Constructs a new equip_reset_rsp.
  19172. * @memberof game
  19173. * @classdesc Represents an equip_reset_rsp.
  19174. * @implements Iequip_reset_rsp
  19175. * @constructor
  19176. * @param {game.Iequip_reset_rsp=} [properties] Properties to set
  19177. */
  19178. function equip_reset_rsp(properties) {
  19179. if (properties)
  19180. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  19181. if (properties[keys[i]] != null)
  19182. this[keys[i]] = properties[keys[i]];
  19183. }
  19184. /**
  19185. * equip_reset_rsp errno.
  19186. * @member {number|Long} errno
  19187. * @memberof game.equip_reset_rsp
  19188. * @instance
  19189. */
  19190. equip_reset_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  19191. /**
  19192. * equip_reset_rsp data.
  19193. * @member {game.Iequip|null|undefined} data
  19194. * @memberof game.equip_reset_rsp
  19195. * @instance
  19196. */
  19197. equip_reset_rsp.prototype.data = null;
  19198. /**
  19199. * Creates a new equip_reset_rsp instance using the specified properties.
  19200. * @function create
  19201. * @memberof game.equip_reset_rsp
  19202. * @static
  19203. * @param {game.Iequip_reset_rsp=} [properties] Properties to set
  19204. * @returns {game.equip_reset_rsp} equip_reset_rsp instance
  19205. */
  19206. equip_reset_rsp.create = function create(properties) {
  19207. return new equip_reset_rsp(properties);
  19208. };
  19209. /**
  19210. * Encodes the specified equip_reset_rsp message. Does not implicitly {@link game.equip_reset_rsp.verify|verify} messages.
  19211. * @function encode
  19212. * @memberof game.equip_reset_rsp
  19213. * @static
  19214. * @param {game.Iequip_reset_rsp} message equip_reset_rsp message or plain object to encode
  19215. * @param {$protobuf.Writer} [writer] Writer to encode to
  19216. * @returns {$protobuf.Writer} Writer
  19217. */
  19218. equip_reset_rsp.encode = function encode(message, writer) {
  19219. if (!writer)
  19220. writer = $Writer.create();
  19221. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  19222. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  19223. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  19224. $root.game.equip.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  19225. return writer;
  19226. };
  19227. /**
  19228. * Encodes the specified equip_reset_rsp message, length delimited. Does not implicitly {@link game.equip_reset_rsp.verify|verify} messages.
  19229. * @function encodeDelimited
  19230. * @memberof game.equip_reset_rsp
  19231. * @static
  19232. * @param {game.Iequip_reset_rsp} message equip_reset_rsp message or plain object to encode
  19233. * @param {$protobuf.Writer} [writer] Writer to encode to
  19234. * @returns {$protobuf.Writer} Writer
  19235. */
  19236. equip_reset_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  19237. return this.encode(message, writer).ldelim();
  19238. };
  19239. /**
  19240. * Decodes an equip_reset_rsp message from the specified reader or buffer.
  19241. * @function decode
  19242. * @memberof game.equip_reset_rsp
  19243. * @static
  19244. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  19245. * @param {number} [length] Message length if known beforehand
  19246. * @returns {game.equip_reset_rsp} equip_reset_rsp
  19247. * @throws {Error} If the payload is not a reader or valid buffer
  19248. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  19249. */
  19250. equip_reset_rsp.decode = function decode(reader, length) {
  19251. if (!(reader instanceof $Reader))
  19252. reader = $Reader.create(reader);
  19253. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.equip_reset_rsp();
  19254. while (reader.pos < end) {
  19255. let tag = reader.uint32();
  19256. switch (tag >>> 3) {
  19257. case 1:
  19258. message.errno = reader.int64();
  19259. break;
  19260. case 2:
  19261. message.data = $root.game.equip.decode(reader, reader.uint32());
  19262. break;
  19263. default:
  19264. reader.skipType(tag & 7);
  19265. break;
  19266. }
  19267. }
  19268. return message;
  19269. };
  19270. /**
  19271. * Decodes an equip_reset_rsp message from the specified reader or buffer, length delimited.
  19272. * @function decodeDelimited
  19273. * @memberof game.equip_reset_rsp
  19274. * @static
  19275. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  19276. * @returns {game.equip_reset_rsp} equip_reset_rsp
  19277. * @throws {Error} If the payload is not a reader or valid buffer
  19278. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  19279. */
  19280. equip_reset_rsp.decodeDelimited = function decodeDelimited(reader) {
  19281. if (!(reader instanceof $Reader))
  19282. reader = new $Reader(reader);
  19283. return this.decode(reader, reader.uint32());
  19284. };
  19285. /**
  19286. * Verifies an equip_reset_rsp message.
  19287. * @function verify
  19288. * @memberof game.equip_reset_rsp
  19289. * @static
  19290. * @param {Object.<string,*>} message Plain object to verify
  19291. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  19292. */
  19293. equip_reset_rsp.verify = function verify(message) {
  19294. if (typeof message !== "object" || message === null)
  19295. return "object expected";
  19296. if (message.errno != null && message.hasOwnProperty("errno"))
  19297. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  19298. return "errno: integer|Long expected";
  19299. if (message.data != null && message.hasOwnProperty("data")) {
  19300. let error = $root.game.equip.verify(message.data);
  19301. if (error)
  19302. return "data." + error;
  19303. }
  19304. return null;
  19305. };
  19306. /**
  19307. * Creates an equip_reset_rsp message from a plain object. Also converts values to their respective internal types.
  19308. * @function fromObject
  19309. * @memberof game.equip_reset_rsp
  19310. * @static
  19311. * @param {Object.<string,*>} object Plain object
  19312. * @returns {game.equip_reset_rsp} equip_reset_rsp
  19313. */
  19314. equip_reset_rsp.fromObject = function fromObject(object) {
  19315. if (object instanceof $root.game.equip_reset_rsp)
  19316. return object;
  19317. let message = new $root.game.equip_reset_rsp();
  19318. if (object.errno != null)
  19319. if ($util.Long)
  19320. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  19321. else if (typeof object.errno === "string")
  19322. message.errno = parseInt(object.errno, 10);
  19323. else if (typeof object.errno === "number")
  19324. message.errno = object.errno;
  19325. else if (typeof object.errno === "object")
  19326. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  19327. if (object.data != null) {
  19328. if (typeof object.data !== "object")
  19329. throw TypeError(".game.equip_reset_rsp.data: object expected");
  19330. message.data = $root.game.equip.fromObject(object.data);
  19331. }
  19332. return message;
  19333. };
  19334. /**
  19335. * Creates a plain object from an equip_reset_rsp message. Also converts values to other types if specified.
  19336. * @function toObject
  19337. * @memberof game.equip_reset_rsp
  19338. * @static
  19339. * @param {game.equip_reset_rsp} message equip_reset_rsp
  19340. * @param {$protobuf.IConversionOptions} [options] Conversion options
  19341. * @returns {Object.<string,*>} Plain object
  19342. */
  19343. equip_reset_rsp.toObject = function toObject(message, options) {
  19344. if (!options)
  19345. options = {};
  19346. let object = {};
  19347. if (options.defaults) {
  19348. if ($util.Long) {
  19349. let long = new $util.Long(0, 0, false);
  19350. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  19351. } else
  19352. object.errno = options.longs === String ? "0" : 0;
  19353. object.data = null;
  19354. }
  19355. if (message.errno != null && message.hasOwnProperty("errno"))
  19356. if (typeof message.errno === "number")
  19357. object.errno = options.longs === String ? String(message.errno) : message.errno;
  19358. else
  19359. 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;
  19360. if (message.data != null && message.hasOwnProperty("data"))
  19361. object.data = $root.game.equip.toObject(message.data, options);
  19362. return object;
  19363. };
  19364. /**
  19365. * Converts this equip_reset_rsp to JSON.
  19366. * @function toJSON
  19367. * @memberof game.equip_reset_rsp
  19368. * @instance
  19369. * @returns {Object.<string,*>} JSON object
  19370. */
  19371. equip_reset_rsp.prototype.toJSON = function toJSON() {
  19372. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  19373. };
  19374. return equip_reset_rsp;
  19375. })();
  19376. game.equip_change_nty = (function() {
  19377. /**
  19378. * Properties of an equip_change_nty.
  19379. * @memberof game
  19380. * @interface Iequip_change_nty
  19381. * @property {Array.<game.Iequip>|null} [list] equip_change_nty list
  19382. */
  19383. /**
  19384. * Constructs a new equip_change_nty.
  19385. * @memberof game
  19386. * @classdesc Represents an equip_change_nty.
  19387. * @implements Iequip_change_nty
  19388. * @constructor
  19389. * @param {game.Iequip_change_nty=} [properties] Properties to set
  19390. */
  19391. function equip_change_nty(properties) {
  19392. this.list = [];
  19393. if (properties)
  19394. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  19395. if (properties[keys[i]] != null)
  19396. this[keys[i]] = properties[keys[i]];
  19397. }
  19398. /**
  19399. * equip_change_nty list.
  19400. * @member {Array.<game.Iequip>} list
  19401. * @memberof game.equip_change_nty
  19402. * @instance
  19403. */
  19404. equip_change_nty.prototype.list = $util.emptyArray;
  19405. /**
  19406. * Creates a new equip_change_nty instance using the specified properties.
  19407. * @function create
  19408. * @memberof game.equip_change_nty
  19409. * @static
  19410. * @param {game.Iequip_change_nty=} [properties] Properties to set
  19411. * @returns {game.equip_change_nty} equip_change_nty instance
  19412. */
  19413. equip_change_nty.create = function create(properties) {
  19414. return new equip_change_nty(properties);
  19415. };
  19416. /**
  19417. * Encodes the specified equip_change_nty message. Does not implicitly {@link game.equip_change_nty.verify|verify} messages.
  19418. * @function encode
  19419. * @memberof game.equip_change_nty
  19420. * @static
  19421. * @param {game.Iequip_change_nty} message equip_change_nty message or plain object to encode
  19422. * @param {$protobuf.Writer} [writer] Writer to encode to
  19423. * @returns {$protobuf.Writer} Writer
  19424. */
  19425. equip_change_nty.encode = function encode(message, writer) {
  19426. if (!writer)
  19427. writer = $Writer.create();
  19428. if (message.list != null && message.list.length)
  19429. for (let i = 0; i < message.list.length; ++i)
  19430. $root.game.equip.encode(message.list[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
  19431. return writer;
  19432. };
  19433. /**
  19434. * Encodes the specified equip_change_nty message, length delimited. Does not implicitly {@link game.equip_change_nty.verify|verify} messages.
  19435. * @function encodeDelimited
  19436. * @memberof game.equip_change_nty
  19437. * @static
  19438. * @param {game.Iequip_change_nty} message equip_change_nty message or plain object to encode
  19439. * @param {$protobuf.Writer} [writer] Writer to encode to
  19440. * @returns {$protobuf.Writer} Writer
  19441. */
  19442. equip_change_nty.encodeDelimited = function encodeDelimited(message, writer) {
  19443. return this.encode(message, writer).ldelim();
  19444. };
  19445. /**
  19446. * Decodes an equip_change_nty message from the specified reader or buffer.
  19447. * @function decode
  19448. * @memberof game.equip_change_nty
  19449. * @static
  19450. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  19451. * @param {number} [length] Message length if known beforehand
  19452. * @returns {game.equip_change_nty} equip_change_nty
  19453. * @throws {Error} If the payload is not a reader or valid buffer
  19454. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  19455. */
  19456. equip_change_nty.decode = function decode(reader, length) {
  19457. if (!(reader instanceof $Reader))
  19458. reader = $Reader.create(reader);
  19459. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.equip_change_nty();
  19460. while (reader.pos < end) {
  19461. let tag = reader.uint32();
  19462. switch (tag >>> 3) {
  19463. case 1:
  19464. if (!(message.list && message.list.length))
  19465. message.list = [];
  19466. message.list.push($root.game.equip.decode(reader, reader.uint32()));
  19467. break;
  19468. default:
  19469. reader.skipType(tag & 7);
  19470. break;
  19471. }
  19472. }
  19473. return message;
  19474. };
  19475. /**
  19476. * Decodes an equip_change_nty message from the specified reader or buffer, length delimited.
  19477. * @function decodeDelimited
  19478. * @memberof game.equip_change_nty
  19479. * @static
  19480. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  19481. * @returns {game.equip_change_nty} equip_change_nty
  19482. * @throws {Error} If the payload is not a reader or valid buffer
  19483. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  19484. */
  19485. equip_change_nty.decodeDelimited = function decodeDelimited(reader) {
  19486. if (!(reader instanceof $Reader))
  19487. reader = new $Reader(reader);
  19488. return this.decode(reader, reader.uint32());
  19489. };
  19490. /**
  19491. * Verifies an equip_change_nty message.
  19492. * @function verify
  19493. * @memberof game.equip_change_nty
  19494. * @static
  19495. * @param {Object.<string,*>} message Plain object to verify
  19496. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  19497. */
  19498. equip_change_nty.verify = function verify(message) {
  19499. if (typeof message !== "object" || message === null)
  19500. return "object expected";
  19501. if (message.list != null && message.hasOwnProperty("list")) {
  19502. if (!Array.isArray(message.list))
  19503. return "list: array expected";
  19504. for (let i = 0; i < message.list.length; ++i) {
  19505. let error = $root.game.equip.verify(message.list[i]);
  19506. if (error)
  19507. return "list." + error;
  19508. }
  19509. }
  19510. return null;
  19511. };
  19512. /**
  19513. * Creates an equip_change_nty message from a plain object. Also converts values to their respective internal types.
  19514. * @function fromObject
  19515. * @memberof game.equip_change_nty
  19516. * @static
  19517. * @param {Object.<string,*>} object Plain object
  19518. * @returns {game.equip_change_nty} equip_change_nty
  19519. */
  19520. equip_change_nty.fromObject = function fromObject(object) {
  19521. if (object instanceof $root.game.equip_change_nty)
  19522. return object;
  19523. let message = new $root.game.equip_change_nty();
  19524. if (object.list) {
  19525. if (!Array.isArray(object.list))
  19526. throw TypeError(".game.equip_change_nty.list: array expected");
  19527. message.list = [];
  19528. for (let i = 0; i < object.list.length; ++i) {
  19529. if (typeof object.list[i] !== "object")
  19530. throw TypeError(".game.equip_change_nty.list: object expected");
  19531. message.list[i] = $root.game.equip.fromObject(object.list[i]);
  19532. }
  19533. }
  19534. return message;
  19535. };
  19536. /**
  19537. * Creates a plain object from an equip_change_nty message. Also converts values to other types if specified.
  19538. * @function toObject
  19539. * @memberof game.equip_change_nty
  19540. * @static
  19541. * @param {game.equip_change_nty} message equip_change_nty
  19542. * @param {$protobuf.IConversionOptions} [options] Conversion options
  19543. * @returns {Object.<string,*>} Plain object
  19544. */
  19545. equip_change_nty.toObject = function toObject(message, options) {
  19546. if (!options)
  19547. options = {};
  19548. let object = {};
  19549. if (options.arrays || options.defaults)
  19550. object.list = [];
  19551. if (message.list && message.list.length) {
  19552. object.list = [];
  19553. for (let j = 0; j < message.list.length; ++j)
  19554. object.list[j] = $root.game.equip.toObject(message.list[j], options);
  19555. }
  19556. return object;
  19557. };
  19558. /**
  19559. * Converts this equip_change_nty to JSON.
  19560. * @function toJSON
  19561. * @memberof game.equip_change_nty
  19562. * @instance
  19563. * @returns {Object.<string,*>} JSON object
  19564. */
  19565. equip_change_nty.prototype.toJSON = function toJSON() {
  19566. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  19567. };
  19568. return equip_change_nty;
  19569. })();
  19570. game.talent_get_data = (function() {
  19571. /**
  19572. * Properties of a talent_get_data.
  19573. * @memberof game
  19574. * @interface Italent_get_data
  19575. */
  19576. /**
  19577. * Constructs a new talent_get_data.
  19578. * @memberof game
  19579. * @classdesc Represents a talent_get_data.
  19580. * @implements Italent_get_data
  19581. * @constructor
  19582. * @param {game.Italent_get_data=} [properties] Properties to set
  19583. */
  19584. function talent_get_data(properties) {
  19585. if (properties)
  19586. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  19587. if (properties[keys[i]] != null)
  19588. this[keys[i]] = properties[keys[i]];
  19589. }
  19590. /**
  19591. * Creates a new talent_get_data instance using the specified properties.
  19592. * @function create
  19593. * @memberof game.talent_get_data
  19594. * @static
  19595. * @param {game.Italent_get_data=} [properties] Properties to set
  19596. * @returns {game.talent_get_data} talent_get_data instance
  19597. */
  19598. talent_get_data.create = function create(properties) {
  19599. return new talent_get_data(properties);
  19600. };
  19601. /**
  19602. * Encodes the specified talent_get_data message. Does not implicitly {@link game.talent_get_data.verify|verify} messages.
  19603. * @function encode
  19604. * @memberof game.talent_get_data
  19605. * @static
  19606. * @param {game.Italent_get_data} message talent_get_data message or plain object to encode
  19607. * @param {$protobuf.Writer} [writer] Writer to encode to
  19608. * @returns {$protobuf.Writer} Writer
  19609. */
  19610. talent_get_data.encode = function encode(message, writer) {
  19611. if (!writer)
  19612. writer = $Writer.create();
  19613. return writer;
  19614. };
  19615. /**
  19616. * Encodes the specified talent_get_data message, length delimited. Does not implicitly {@link game.talent_get_data.verify|verify} messages.
  19617. * @function encodeDelimited
  19618. * @memberof game.talent_get_data
  19619. * @static
  19620. * @param {game.Italent_get_data} message talent_get_data message or plain object to encode
  19621. * @param {$protobuf.Writer} [writer] Writer to encode to
  19622. * @returns {$protobuf.Writer} Writer
  19623. */
  19624. talent_get_data.encodeDelimited = function encodeDelimited(message, writer) {
  19625. return this.encode(message, writer).ldelim();
  19626. };
  19627. /**
  19628. * Decodes a talent_get_data message from the specified reader or buffer.
  19629. * @function decode
  19630. * @memberof game.talent_get_data
  19631. * @static
  19632. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  19633. * @param {number} [length] Message length if known beforehand
  19634. * @returns {game.talent_get_data} talent_get_data
  19635. * @throws {Error} If the payload is not a reader or valid buffer
  19636. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  19637. */
  19638. talent_get_data.decode = function decode(reader, length) {
  19639. if (!(reader instanceof $Reader))
  19640. reader = $Reader.create(reader);
  19641. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.talent_get_data();
  19642. while (reader.pos < end) {
  19643. let tag = reader.uint32();
  19644. switch (tag >>> 3) {
  19645. default:
  19646. reader.skipType(tag & 7);
  19647. break;
  19648. }
  19649. }
  19650. return message;
  19651. };
  19652. /**
  19653. * Decodes a talent_get_data message from the specified reader or buffer, length delimited.
  19654. * @function decodeDelimited
  19655. * @memberof game.talent_get_data
  19656. * @static
  19657. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  19658. * @returns {game.talent_get_data} talent_get_data
  19659. * @throws {Error} If the payload is not a reader or valid buffer
  19660. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  19661. */
  19662. talent_get_data.decodeDelimited = function decodeDelimited(reader) {
  19663. if (!(reader instanceof $Reader))
  19664. reader = new $Reader(reader);
  19665. return this.decode(reader, reader.uint32());
  19666. };
  19667. /**
  19668. * Verifies a talent_get_data message.
  19669. * @function verify
  19670. * @memberof game.talent_get_data
  19671. * @static
  19672. * @param {Object.<string,*>} message Plain object to verify
  19673. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  19674. */
  19675. talent_get_data.verify = function verify(message) {
  19676. if (typeof message !== "object" || message === null)
  19677. return "object expected";
  19678. return null;
  19679. };
  19680. /**
  19681. * Creates a talent_get_data message from a plain object. Also converts values to their respective internal types.
  19682. * @function fromObject
  19683. * @memberof game.talent_get_data
  19684. * @static
  19685. * @param {Object.<string,*>} object Plain object
  19686. * @returns {game.talent_get_data} talent_get_data
  19687. */
  19688. talent_get_data.fromObject = function fromObject(object) {
  19689. if (object instanceof $root.game.talent_get_data)
  19690. return object;
  19691. return new $root.game.talent_get_data();
  19692. };
  19693. /**
  19694. * Creates a plain object from a talent_get_data message. Also converts values to other types if specified.
  19695. * @function toObject
  19696. * @memberof game.talent_get_data
  19697. * @static
  19698. * @param {game.talent_get_data} message talent_get_data
  19699. * @param {$protobuf.IConversionOptions} [options] Conversion options
  19700. * @returns {Object.<string,*>} Plain object
  19701. */
  19702. talent_get_data.toObject = function toObject() {
  19703. return {};
  19704. };
  19705. /**
  19706. * Converts this talent_get_data to JSON.
  19707. * @function toJSON
  19708. * @memberof game.talent_get_data
  19709. * @instance
  19710. * @returns {Object.<string,*>} JSON object
  19711. */
  19712. talent_get_data.prototype.toJSON = function toJSON() {
  19713. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  19714. };
  19715. return talent_get_data;
  19716. })();
  19717. game.talent_get_data_rsp = (function() {
  19718. /**
  19719. * Properties of a talent_get_data_rsp.
  19720. * @memberof game
  19721. * @interface Italent_get_data_rsp
  19722. * @property {number|Long|null} [errno] talent_get_data_rsp errno
  19723. * @property {number|Long|null} [id1] talent_get_data_rsp id1
  19724. * @property {number|Long|null} [id2] talent_get_data_rsp id2
  19725. */
  19726. /**
  19727. * Constructs a new talent_get_data_rsp.
  19728. * @memberof game
  19729. * @classdesc Represents a talent_get_data_rsp.
  19730. * @implements Italent_get_data_rsp
  19731. * @constructor
  19732. * @param {game.Italent_get_data_rsp=} [properties] Properties to set
  19733. */
  19734. function talent_get_data_rsp(properties) {
  19735. if (properties)
  19736. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  19737. if (properties[keys[i]] != null)
  19738. this[keys[i]] = properties[keys[i]];
  19739. }
  19740. /**
  19741. * talent_get_data_rsp errno.
  19742. * @member {number|Long} errno
  19743. * @memberof game.talent_get_data_rsp
  19744. * @instance
  19745. */
  19746. talent_get_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  19747. /**
  19748. * talent_get_data_rsp id1.
  19749. * @member {number|Long} id1
  19750. * @memberof game.talent_get_data_rsp
  19751. * @instance
  19752. */
  19753. talent_get_data_rsp.prototype.id1 = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  19754. /**
  19755. * talent_get_data_rsp id2.
  19756. * @member {number|Long} id2
  19757. * @memberof game.talent_get_data_rsp
  19758. * @instance
  19759. */
  19760. talent_get_data_rsp.prototype.id2 = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  19761. /**
  19762. * Creates a new talent_get_data_rsp instance using the specified properties.
  19763. * @function create
  19764. * @memberof game.talent_get_data_rsp
  19765. * @static
  19766. * @param {game.Italent_get_data_rsp=} [properties] Properties to set
  19767. * @returns {game.talent_get_data_rsp} talent_get_data_rsp instance
  19768. */
  19769. talent_get_data_rsp.create = function create(properties) {
  19770. return new talent_get_data_rsp(properties);
  19771. };
  19772. /**
  19773. * Encodes the specified talent_get_data_rsp message. Does not implicitly {@link game.talent_get_data_rsp.verify|verify} messages.
  19774. * @function encode
  19775. * @memberof game.talent_get_data_rsp
  19776. * @static
  19777. * @param {game.Italent_get_data_rsp} message talent_get_data_rsp message or plain object to encode
  19778. * @param {$protobuf.Writer} [writer] Writer to encode to
  19779. * @returns {$protobuf.Writer} Writer
  19780. */
  19781. talent_get_data_rsp.encode = function encode(message, writer) {
  19782. if (!writer)
  19783. writer = $Writer.create();
  19784. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  19785. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  19786. if (message.id1 != null && Object.hasOwnProperty.call(message, "id1"))
  19787. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id1);
  19788. if (message.id2 != null && Object.hasOwnProperty.call(message, "id2"))
  19789. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.id2);
  19790. return writer;
  19791. };
  19792. /**
  19793. * Encodes the specified talent_get_data_rsp message, length delimited. Does not implicitly {@link game.talent_get_data_rsp.verify|verify} messages.
  19794. * @function encodeDelimited
  19795. * @memberof game.talent_get_data_rsp
  19796. * @static
  19797. * @param {game.Italent_get_data_rsp} message talent_get_data_rsp message or plain object to encode
  19798. * @param {$protobuf.Writer} [writer] Writer to encode to
  19799. * @returns {$protobuf.Writer} Writer
  19800. */
  19801. talent_get_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  19802. return this.encode(message, writer).ldelim();
  19803. };
  19804. /**
  19805. * Decodes a talent_get_data_rsp message from the specified reader or buffer.
  19806. * @function decode
  19807. * @memberof game.talent_get_data_rsp
  19808. * @static
  19809. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  19810. * @param {number} [length] Message length if known beforehand
  19811. * @returns {game.talent_get_data_rsp} talent_get_data_rsp
  19812. * @throws {Error} If the payload is not a reader or valid buffer
  19813. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  19814. */
  19815. talent_get_data_rsp.decode = function decode(reader, length) {
  19816. if (!(reader instanceof $Reader))
  19817. reader = $Reader.create(reader);
  19818. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.talent_get_data_rsp();
  19819. while (reader.pos < end) {
  19820. let tag = reader.uint32();
  19821. switch (tag >>> 3) {
  19822. case 1:
  19823. message.errno = reader.int64();
  19824. break;
  19825. case 2:
  19826. message.id1 = reader.int64();
  19827. break;
  19828. case 3:
  19829. message.id2 = reader.int64();
  19830. break;
  19831. default:
  19832. reader.skipType(tag & 7);
  19833. break;
  19834. }
  19835. }
  19836. return message;
  19837. };
  19838. /**
  19839. * Decodes a talent_get_data_rsp message from the specified reader or buffer, length delimited.
  19840. * @function decodeDelimited
  19841. * @memberof game.talent_get_data_rsp
  19842. * @static
  19843. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  19844. * @returns {game.talent_get_data_rsp} talent_get_data_rsp
  19845. * @throws {Error} If the payload is not a reader or valid buffer
  19846. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  19847. */
  19848. talent_get_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  19849. if (!(reader instanceof $Reader))
  19850. reader = new $Reader(reader);
  19851. return this.decode(reader, reader.uint32());
  19852. };
  19853. /**
  19854. * Verifies a talent_get_data_rsp message.
  19855. * @function verify
  19856. * @memberof game.talent_get_data_rsp
  19857. * @static
  19858. * @param {Object.<string,*>} message Plain object to verify
  19859. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  19860. */
  19861. talent_get_data_rsp.verify = function verify(message) {
  19862. if (typeof message !== "object" || message === null)
  19863. return "object expected";
  19864. if (message.errno != null && message.hasOwnProperty("errno"))
  19865. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  19866. return "errno: integer|Long expected";
  19867. if (message.id1 != null && message.hasOwnProperty("id1"))
  19868. if (!$util.isInteger(message.id1) && !(message.id1 && $util.isInteger(message.id1.low) && $util.isInteger(message.id1.high)))
  19869. return "id1: integer|Long expected";
  19870. if (message.id2 != null && message.hasOwnProperty("id2"))
  19871. if (!$util.isInteger(message.id2) && !(message.id2 && $util.isInteger(message.id2.low) && $util.isInteger(message.id2.high)))
  19872. return "id2: integer|Long expected";
  19873. return null;
  19874. };
  19875. /**
  19876. * Creates a talent_get_data_rsp message from a plain object. Also converts values to their respective internal types.
  19877. * @function fromObject
  19878. * @memberof game.talent_get_data_rsp
  19879. * @static
  19880. * @param {Object.<string,*>} object Plain object
  19881. * @returns {game.talent_get_data_rsp} talent_get_data_rsp
  19882. */
  19883. talent_get_data_rsp.fromObject = function fromObject(object) {
  19884. if (object instanceof $root.game.talent_get_data_rsp)
  19885. return object;
  19886. let message = new $root.game.talent_get_data_rsp();
  19887. if (object.errno != null)
  19888. if ($util.Long)
  19889. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  19890. else if (typeof object.errno === "string")
  19891. message.errno = parseInt(object.errno, 10);
  19892. else if (typeof object.errno === "number")
  19893. message.errno = object.errno;
  19894. else if (typeof object.errno === "object")
  19895. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  19896. if (object.id1 != null)
  19897. if ($util.Long)
  19898. (message.id1 = $util.Long.fromValue(object.id1)).unsigned = false;
  19899. else if (typeof object.id1 === "string")
  19900. message.id1 = parseInt(object.id1, 10);
  19901. else if (typeof object.id1 === "number")
  19902. message.id1 = object.id1;
  19903. else if (typeof object.id1 === "object")
  19904. message.id1 = new $util.LongBits(object.id1.low >>> 0, object.id1.high >>> 0).toNumber();
  19905. if (object.id2 != null)
  19906. if ($util.Long)
  19907. (message.id2 = $util.Long.fromValue(object.id2)).unsigned = false;
  19908. else if (typeof object.id2 === "string")
  19909. message.id2 = parseInt(object.id2, 10);
  19910. else if (typeof object.id2 === "number")
  19911. message.id2 = object.id2;
  19912. else if (typeof object.id2 === "object")
  19913. message.id2 = new $util.LongBits(object.id2.low >>> 0, object.id2.high >>> 0).toNumber();
  19914. return message;
  19915. };
  19916. /**
  19917. * Creates a plain object from a talent_get_data_rsp message. Also converts values to other types if specified.
  19918. * @function toObject
  19919. * @memberof game.talent_get_data_rsp
  19920. * @static
  19921. * @param {game.talent_get_data_rsp} message talent_get_data_rsp
  19922. * @param {$protobuf.IConversionOptions} [options] Conversion options
  19923. * @returns {Object.<string,*>} Plain object
  19924. */
  19925. talent_get_data_rsp.toObject = function toObject(message, options) {
  19926. if (!options)
  19927. options = {};
  19928. let object = {};
  19929. if (options.defaults) {
  19930. if ($util.Long) {
  19931. let long = new $util.Long(0, 0, false);
  19932. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  19933. } else
  19934. object.errno = options.longs === String ? "0" : 0;
  19935. if ($util.Long) {
  19936. let long = new $util.Long(0, 0, false);
  19937. object.id1 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  19938. } else
  19939. object.id1 = options.longs === String ? "0" : 0;
  19940. if ($util.Long) {
  19941. let long = new $util.Long(0, 0, false);
  19942. object.id2 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  19943. } else
  19944. object.id2 = options.longs === String ? "0" : 0;
  19945. }
  19946. if (message.errno != null && message.hasOwnProperty("errno"))
  19947. if (typeof message.errno === "number")
  19948. object.errno = options.longs === String ? String(message.errno) : message.errno;
  19949. else
  19950. 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;
  19951. if (message.id1 != null && message.hasOwnProperty("id1"))
  19952. if (typeof message.id1 === "number")
  19953. object.id1 = options.longs === String ? String(message.id1) : message.id1;
  19954. else
  19955. 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;
  19956. if (message.id2 != null && message.hasOwnProperty("id2"))
  19957. if (typeof message.id2 === "number")
  19958. object.id2 = options.longs === String ? String(message.id2) : message.id2;
  19959. else
  19960. 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;
  19961. return object;
  19962. };
  19963. /**
  19964. * Converts this talent_get_data_rsp to JSON.
  19965. * @function toJSON
  19966. * @memberof game.talent_get_data_rsp
  19967. * @instance
  19968. * @returns {Object.<string,*>} JSON object
  19969. */
  19970. talent_get_data_rsp.prototype.toJSON = function toJSON() {
  19971. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  19972. };
  19973. return talent_get_data_rsp;
  19974. })();
  19975. game.talent_activate = (function() {
  19976. /**
  19977. * Properties of a talent_activate.
  19978. * @memberof game
  19979. * @interface Italent_activate
  19980. * @property {number|Long|null} [id] talent_activate id
  19981. */
  19982. /**
  19983. * Constructs a new talent_activate.
  19984. * @memberof game
  19985. * @classdesc Represents a talent_activate.
  19986. * @implements Italent_activate
  19987. * @constructor
  19988. * @param {game.Italent_activate=} [properties] Properties to set
  19989. */
  19990. function talent_activate(properties) {
  19991. if (properties)
  19992. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  19993. if (properties[keys[i]] != null)
  19994. this[keys[i]] = properties[keys[i]];
  19995. }
  19996. /**
  19997. * talent_activate id.
  19998. * @member {number|Long} id
  19999. * @memberof game.talent_activate
  20000. * @instance
  20001. */
  20002. talent_activate.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  20003. /**
  20004. * Creates a new talent_activate instance using the specified properties.
  20005. * @function create
  20006. * @memberof game.talent_activate
  20007. * @static
  20008. * @param {game.Italent_activate=} [properties] Properties to set
  20009. * @returns {game.talent_activate} talent_activate instance
  20010. */
  20011. talent_activate.create = function create(properties) {
  20012. return new talent_activate(properties);
  20013. };
  20014. /**
  20015. * Encodes the specified talent_activate message. Does not implicitly {@link game.talent_activate.verify|verify} messages.
  20016. * @function encode
  20017. * @memberof game.talent_activate
  20018. * @static
  20019. * @param {game.Italent_activate} message talent_activate message or plain object to encode
  20020. * @param {$protobuf.Writer} [writer] Writer to encode to
  20021. * @returns {$protobuf.Writer} Writer
  20022. */
  20023. talent_activate.encode = function encode(message, writer) {
  20024. if (!writer)
  20025. writer = $Writer.create();
  20026. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  20027. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  20028. return writer;
  20029. };
  20030. /**
  20031. * Encodes the specified talent_activate message, length delimited. Does not implicitly {@link game.talent_activate.verify|verify} messages.
  20032. * @function encodeDelimited
  20033. * @memberof game.talent_activate
  20034. * @static
  20035. * @param {game.Italent_activate} message talent_activate message or plain object to encode
  20036. * @param {$protobuf.Writer} [writer] Writer to encode to
  20037. * @returns {$protobuf.Writer} Writer
  20038. */
  20039. talent_activate.encodeDelimited = function encodeDelimited(message, writer) {
  20040. return this.encode(message, writer).ldelim();
  20041. };
  20042. /**
  20043. * Decodes a talent_activate message from the specified reader or buffer.
  20044. * @function decode
  20045. * @memberof game.talent_activate
  20046. * @static
  20047. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  20048. * @param {number} [length] Message length if known beforehand
  20049. * @returns {game.talent_activate} talent_activate
  20050. * @throws {Error} If the payload is not a reader or valid buffer
  20051. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  20052. */
  20053. talent_activate.decode = function decode(reader, length) {
  20054. if (!(reader instanceof $Reader))
  20055. reader = $Reader.create(reader);
  20056. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.talent_activate();
  20057. while (reader.pos < end) {
  20058. let tag = reader.uint32();
  20059. switch (tag >>> 3) {
  20060. case 1:
  20061. message.id = reader.int64();
  20062. break;
  20063. default:
  20064. reader.skipType(tag & 7);
  20065. break;
  20066. }
  20067. }
  20068. return message;
  20069. };
  20070. /**
  20071. * Decodes a talent_activate message from the specified reader or buffer, length delimited.
  20072. * @function decodeDelimited
  20073. * @memberof game.talent_activate
  20074. * @static
  20075. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  20076. * @returns {game.talent_activate} talent_activate
  20077. * @throws {Error} If the payload is not a reader or valid buffer
  20078. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  20079. */
  20080. talent_activate.decodeDelimited = function decodeDelimited(reader) {
  20081. if (!(reader instanceof $Reader))
  20082. reader = new $Reader(reader);
  20083. return this.decode(reader, reader.uint32());
  20084. };
  20085. /**
  20086. * Verifies a talent_activate message.
  20087. * @function verify
  20088. * @memberof game.talent_activate
  20089. * @static
  20090. * @param {Object.<string,*>} message Plain object to verify
  20091. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  20092. */
  20093. talent_activate.verify = function verify(message) {
  20094. if (typeof message !== "object" || message === null)
  20095. return "object expected";
  20096. if (message.id != null && message.hasOwnProperty("id"))
  20097. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  20098. return "id: integer|Long expected";
  20099. return null;
  20100. };
  20101. /**
  20102. * Creates a talent_activate message from a plain object. Also converts values to their respective internal types.
  20103. * @function fromObject
  20104. * @memberof game.talent_activate
  20105. * @static
  20106. * @param {Object.<string,*>} object Plain object
  20107. * @returns {game.talent_activate} talent_activate
  20108. */
  20109. talent_activate.fromObject = function fromObject(object) {
  20110. if (object instanceof $root.game.talent_activate)
  20111. return object;
  20112. let message = new $root.game.talent_activate();
  20113. if (object.id != null)
  20114. if ($util.Long)
  20115. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  20116. else if (typeof object.id === "string")
  20117. message.id = parseInt(object.id, 10);
  20118. else if (typeof object.id === "number")
  20119. message.id = object.id;
  20120. else if (typeof object.id === "object")
  20121. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  20122. return message;
  20123. };
  20124. /**
  20125. * Creates a plain object from a talent_activate message. Also converts values to other types if specified.
  20126. * @function toObject
  20127. * @memberof game.talent_activate
  20128. * @static
  20129. * @param {game.talent_activate} message talent_activate
  20130. * @param {$protobuf.IConversionOptions} [options] Conversion options
  20131. * @returns {Object.<string,*>} Plain object
  20132. */
  20133. talent_activate.toObject = function toObject(message, options) {
  20134. if (!options)
  20135. options = {};
  20136. let object = {};
  20137. if (options.defaults)
  20138. if ($util.Long) {
  20139. let long = new $util.Long(0, 0, false);
  20140. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  20141. } else
  20142. object.id = options.longs === String ? "0" : 0;
  20143. if (message.id != null && message.hasOwnProperty("id"))
  20144. if (typeof message.id === "number")
  20145. object.id = options.longs === String ? String(message.id) : message.id;
  20146. else
  20147. 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;
  20148. return object;
  20149. };
  20150. /**
  20151. * Converts this talent_activate to JSON.
  20152. * @function toJSON
  20153. * @memberof game.talent_activate
  20154. * @instance
  20155. * @returns {Object.<string,*>} JSON object
  20156. */
  20157. talent_activate.prototype.toJSON = function toJSON() {
  20158. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  20159. };
  20160. return talent_activate;
  20161. })();
  20162. game.talent_activate_rsp = (function() {
  20163. /**
  20164. * Properties of a talent_activate_rsp.
  20165. * @memberof game
  20166. * @interface Italent_activate_rsp
  20167. * @property {number|Long|null} [errno] talent_activate_rsp errno
  20168. * @property {number|Long|null} [id] talent_activate_rsp id
  20169. */
  20170. /**
  20171. * Constructs a new talent_activate_rsp.
  20172. * @memberof game
  20173. * @classdesc Represents a talent_activate_rsp.
  20174. * @implements Italent_activate_rsp
  20175. * @constructor
  20176. * @param {game.Italent_activate_rsp=} [properties] Properties to set
  20177. */
  20178. function talent_activate_rsp(properties) {
  20179. if (properties)
  20180. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  20181. if (properties[keys[i]] != null)
  20182. this[keys[i]] = properties[keys[i]];
  20183. }
  20184. /**
  20185. * talent_activate_rsp errno.
  20186. * @member {number|Long} errno
  20187. * @memberof game.talent_activate_rsp
  20188. * @instance
  20189. */
  20190. talent_activate_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  20191. /**
  20192. * talent_activate_rsp id.
  20193. * @member {number|Long} id
  20194. * @memberof game.talent_activate_rsp
  20195. * @instance
  20196. */
  20197. talent_activate_rsp.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  20198. /**
  20199. * Creates a new talent_activate_rsp instance using the specified properties.
  20200. * @function create
  20201. * @memberof game.talent_activate_rsp
  20202. * @static
  20203. * @param {game.Italent_activate_rsp=} [properties] Properties to set
  20204. * @returns {game.talent_activate_rsp} talent_activate_rsp instance
  20205. */
  20206. talent_activate_rsp.create = function create(properties) {
  20207. return new talent_activate_rsp(properties);
  20208. };
  20209. /**
  20210. * Encodes the specified talent_activate_rsp message. Does not implicitly {@link game.talent_activate_rsp.verify|verify} messages.
  20211. * @function encode
  20212. * @memberof game.talent_activate_rsp
  20213. * @static
  20214. * @param {game.Italent_activate_rsp} message talent_activate_rsp message or plain object to encode
  20215. * @param {$protobuf.Writer} [writer] Writer to encode to
  20216. * @returns {$protobuf.Writer} Writer
  20217. */
  20218. talent_activate_rsp.encode = function encode(message, writer) {
  20219. if (!writer)
  20220. writer = $Writer.create();
  20221. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  20222. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  20223. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  20224. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id);
  20225. return writer;
  20226. };
  20227. /**
  20228. * Encodes the specified talent_activate_rsp message, length delimited. Does not implicitly {@link game.talent_activate_rsp.verify|verify} messages.
  20229. * @function encodeDelimited
  20230. * @memberof game.talent_activate_rsp
  20231. * @static
  20232. * @param {game.Italent_activate_rsp} message talent_activate_rsp message or plain object to encode
  20233. * @param {$protobuf.Writer} [writer] Writer to encode to
  20234. * @returns {$protobuf.Writer} Writer
  20235. */
  20236. talent_activate_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  20237. return this.encode(message, writer).ldelim();
  20238. };
  20239. /**
  20240. * Decodes a talent_activate_rsp message from the specified reader or buffer.
  20241. * @function decode
  20242. * @memberof game.talent_activate_rsp
  20243. * @static
  20244. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  20245. * @param {number} [length] Message length if known beforehand
  20246. * @returns {game.talent_activate_rsp} talent_activate_rsp
  20247. * @throws {Error} If the payload is not a reader or valid buffer
  20248. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  20249. */
  20250. talent_activate_rsp.decode = function decode(reader, length) {
  20251. if (!(reader instanceof $Reader))
  20252. reader = $Reader.create(reader);
  20253. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.talent_activate_rsp();
  20254. while (reader.pos < end) {
  20255. let tag = reader.uint32();
  20256. switch (tag >>> 3) {
  20257. case 1:
  20258. message.errno = reader.int64();
  20259. break;
  20260. case 2:
  20261. message.id = reader.int64();
  20262. break;
  20263. default:
  20264. reader.skipType(tag & 7);
  20265. break;
  20266. }
  20267. }
  20268. return message;
  20269. };
  20270. /**
  20271. * Decodes a talent_activate_rsp message from the specified reader or buffer, length delimited.
  20272. * @function decodeDelimited
  20273. * @memberof game.talent_activate_rsp
  20274. * @static
  20275. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  20276. * @returns {game.talent_activate_rsp} talent_activate_rsp
  20277. * @throws {Error} If the payload is not a reader or valid buffer
  20278. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  20279. */
  20280. talent_activate_rsp.decodeDelimited = function decodeDelimited(reader) {
  20281. if (!(reader instanceof $Reader))
  20282. reader = new $Reader(reader);
  20283. return this.decode(reader, reader.uint32());
  20284. };
  20285. /**
  20286. * Verifies a talent_activate_rsp message.
  20287. * @function verify
  20288. * @memberof game.talent_activate_rsp
  20289. * @static
  20290. * @param {Object.<string,*>} message Plain object to verify
  20291. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  20292. */
  20293. talent_activate_rsp.verify = function verify(message) {
  20294. if (typeof message !== "object" || message === null)
  20295. return "object expected";
  20296. if (message.errno != null && message.hasOwnProperty("errno"))
  20297. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  20298. return "errno: integer|Long expected";
  20299. if (message.id != null && message.hasOwnProperty("id"))
  20300. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  20301. return "id: integer|Long expected";
  20302. return null;
  20303. };
  20304. /**
  20305. * Creates a talent_activate_rsp message from a plain object. Also converts values to their respective internal types.
  20306. * @function fromObject
  20307. * @memberof game.talent_activate_rsp
  20308. * @static
  20309. * @param {Object.<string,*>} object Plain object
  20310. * @returns {game.talent_activate_rsp} talent_activate_rsp
  20311. */
  20312. talent_activate_rsp.fromObject = function fromObject(object) {
  20313. if (object instanceof $root.game.talent_activate_rsp)
  20314. return object;
  20315. let message = new $root.game.talent_activate_rsp();
  20316. if (object.errno != null)
  20317. if ($util.Long)
  20318. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  20319. else if (typeof object.errno === "string")
  20320. message.errno = parseInt(object.errno, 10);
  20321. else if (typeof object.errno === "number")
  20322. message.errno = object.errno;
  20323. else if (typeof object.errno === "object")
  20324. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  20325. if (object.id != null)
  20326. if ($util.Long)
  20327. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  20328. else if (typeof object.id === "string")
  20329. message.id = parseInt(object.id, 10);
  20330. else if (typeof object.id === "number")
  20331. message.id = object.id;
  20332. else if (typeof object.id === "object")
  20333. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  20334. return message;
  20335. };
  20336. /**
  20337. * Creates a plain object from a talent_activate_rsp message. Also converts values to other types if specified.
  20338. * @function toObject
  20339. * @memberof game.talent_activate_rsp
  20340. * @static
  20341. * @param {game.talent_activate_rsp} message talent_activate_rsp
  20342. * @param {$protobuf.IConversionOptions} [options] Conversion options
  20343. * @returns {Object.<string,*>} Plain object
  20344. */
  20345. talent_activate_rsp.toObject = function toObject(message, options) {
  20346. if (!options)
  20347. options = {};
  20348. let object = {};
  20349. if (options.defaults) {
  20350. if ($util.Long) {
  20351. let long = new $util.Long(0, 0, false);
  20352. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  20353. } else
  20354. object.errno = options.longs === String ? "0" : 0;
  20355. if ($util.Long) {
  20356. let long = new $util.Long(0, 0, false);
  20357. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  20358. } else
  20359. object.id = options.longs === String ? "0" : 0;
  20360. }
  20361. if (message.errno != null && message.hasOwnProperty("errno"))
  20362. if (typeof message.errno === "number")
  20363. object.errno = options.longs === String ? String(message.errno) : message.errno;
  20364. else
  20365. 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;
  20366. if (message.id != null && message.hasOwnProperty("id"))
  20367. if (typeof message.id === "number")
  20368. object.id = options.longs === String ? String(message.id) : message.id;
  20369. else
  20370. 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;
  20371. return object;
  20372. };
  20373. /**
  20374. * Converts this talent_activate_rsp to JSON.
  20375. * @function toJSON
  20376. * @memberof game.talent_activate_rsp
  20377. * @instance
  20378. * @returns {Object.<string,*>} JSON object
  20379. */
  20380. talent_activate_rsp.prototype.toJSON = function toJSON() {
  20381. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  20382. };
  20383. return talent_activate_rsp;
  20384. })();
  20385. game.sign_in_get_data = (function() {
  20386. /**
  20387. * Properties of a sign_in_get_data.
  20388. * @memberof game
  20389. * @interface Isign_in_get_data
  20390. */
  20391. /**
  20392. * Constructs a new sign_in_get_data.
  20393. * @memberof game
  20394. * @classdesc Represents a sign_in_get_data.
  20395. * @implements Isign_in_get_data
  20396. * @constructor
  20397. * @param {game.Isign_in_get_data=} [properties] Properties to set
  20398. */
  20399. function sign_in_get_data(properties) {
  20400. if (properties)
  20401. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  20402. if (properties[keys[i]] != null)
  20403. this[keys[i]] = properties[keys[i]];
  20404. }
  20405. /**
  20406. * Creates a new sign_in_get_data instance using the specified properties.
  20407. * @function create
  20408. * @memberof game.sign_in_get_data
  20409. * @static
  20410. * @param {game.Isign_in_get_data=} [properties] Properties to set
  20411. * @returns {game.sign_in_get_data} sign_in_get_data instance
  20412. */
  20413. sign_in_get_data.create = function create(properties) {
  20414. return new sign_in_get_data(properties);
  20415. };
  20416. /**
  20417. * Encodes the specified sign_in_get_data message. Does not implicitly {@link game.sign_in_get_data.verify|verify} messages.
  20418. * @function encode
  20419. * @memberof game.sign_in_get_data
  20420. * @static
  20421. * @param {game.Isign_in_get_data} message sign_in_get_data message or plain object to encode
  20422. * @param {$protobuf.Writer} [writer] Writer to encode to
  20423. * @returns {$protobuf.Writer} Writer
  20424. */
  20425. sign_in_get_data.encode = function encode(message, writer) {
  20426. if (!writer)
  20427. writer = $Writer.create();
  20428. return writer;
  20429. };
  20430. /**
  20431. * Encodes the specified sign_in_get_data message, length delimited. Does not implicitly {@link game.sign_in_get_data.verify|verify} messages.
  20432. * @function encodeDelimited
  20433. * @memberof game.sign_in_get_data
  20434. * @static
  20435. * @param {game.Isign_in_get_data} message sign_in_get_data message or plain object to encode
  20436. * @param {$protobuf.Writer} [writer] Writer to encode to
  20437. * @returns {$protobuf.Writer} Writer
  20438. */
  20439. sign_in_get_data.encodeDelimited = function encodeDelimited(message, writer) {
  20440. return this.encode(message, writer).ldelim();
  20441. };
  20442. /**
  20443. * Decodes a sign_in_get_data message from the specified reader or buffer.
  20444. * @function decode
  20445. * @memberof game.sign_in_get_data
  20446. * @static
  20447. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  20448. * @param {number} [length] Message length if known beforehand
  20449. * @returns {game.sign_in_get_data} sign_in_get_data
  20450. * @throws {Error} If the payload is not a reader or valid buffer
  20451. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  20452. */
  20453. sign_in_get_data.decode = function decode(reader, length) {
  20454. if (!(reader instanceof $Reader))
  20455. reader = $Reader.create(reader);
  20456. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.sign_in_get_data();
  20457. while (reader.pos < end) {
  20458. let tag = reader.uint32();
  20459. switch (tag >>> 3) {
  20460. default:
  20461. reader.skipType(tag & 7);
  20462. break;
  20463. }
  20464. }
  20465. return message;
  20466. };
  20467. /**
  20468. * Decodes a sign_in_get_data message from the specified reader or buffer, length delimited.
  20469. * @function decodeDelimited
  20470. * @memberof game.sign_in_get_data
  20471. * @static
  20472. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  20473. * @returns {game.sign_in_get_data} sign_in_get_data
  20474. * @throws {Error} If the payload is not a reader or valid buffer
  20475. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  20476. */
  20477. sign_in_get_data.decodeDelimited = function decodeDelimited(reader) {
  20478. if (!(reader instanceof $Reader))
  20479. reader = new $Reader(reader);
  20480. return this.decode(reader, reader.uint32());
  20481. };
  20482. /**
  20483. * Verifies a sign_in_get_data message.
  20484. * @function verify
  20485. * @memberof game.sign_in_get_data
  20486. * @static
  20487. * @param {Object.<string,*>} message Plain object to verify
  20488. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  20489. */
  20490. sign_in_get_data.verify = function verify(message) {
  20491. if (typeof message !== "object" || message === null)
  20492. return "object expected";
  20493. return null;
  20494. };
  20495. /**
  20496. * Creates a sign_in_get_data message from a plain object. Also converts values to their respective internal types.
  20497. * @function fromObject
  20498. * @memberof game.sign_in_get_data
  20499. * @static
  20500. * @param {Object.<string,*>} object Plain object
  20501. * @returns {game.sign_in_get_data} sign_in_get_data
  20502. */
  20503. sign_in_get_data.fromObject = function fromObject(object) {
  20504. if (object instanceof $root.game.sign_in_get_data)
  20505. return object;
  20506. return new $root.game.sign_in_get_data();
  20507. };
  20508. /**
  20509. * Creates a plain object from a sign_in_get_data message. Also converts values to other types if specified.
  20510. * @function toObject
  20511. * @memberof game.sign_in_get_data
  20512. * @static
  20513. * @param {game.sign_in_get_data} message sign_in_get_data
  20514. * @param {$protobuf.IConversionOptions} [options] Conversion options
  20515. * @returns {Object.<string,*>} Plain object
  20516. */
  20517. sign_in_get_data.toObject = function toObject() {
  20518. return {};
  20519. };
  20520. /**
  20521. * Converts this sign_in_get_data to JSON.
  20522. * @function toJSON
  20523. * @memberof game.sign_in_get_data
  20524. * @instance
  20525. * @returns {Object.<string,*>} JSON object
  20526. */
  20527. sign_in_get_data.prototype.toJSON = function toJSON() {
  20528. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  20529. };
  20530. return sign_in_get_data;
  20531. })();
  20532. game.sign_in_get_data_rsp = (function() {
  20533. /**
  20534. * Properties of a sign_in_get_data_rsp.
  20535. * @memberof game
  20536. * @interface Isign_in_get_data_rsp
  20537. * @property {number|Long|null} [errno] sign_in_get_data_rsp errno
  20538. */
  20539. /**
  20540. * Constructs a new sign_in_get_data_rsp.
  20541. * @memberof game
  20542. * @classdesc Represents a sign_in_get_data_rsp.
  20543. * @implements Isign_in_get_data_rsp
  20544. * @constructor
  20545. * @param {game.Isign_in_get_data_rsp=} [properties] Properties to set
  20546. */
  20547. function sign_in_get_data_rsp(properties) {
  20548. if (properties)
  20549. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  20550. if (properties[keys[i]] != null)
  20551. this[keys[i]] = properties[keys[i]];
  20552. }
  20553. /**
  20554. * sign_in_get_data_rsp errno.
  20555. * @member {number|Long} errno
  20556. * @memberof game.sign_in_get_data_rsp
  20557. * @instance
  20558. */
  20559. sign_in_get_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  20560. /**
  20561. * Creates a new sign_in_get_data_rsp instance using the specified properties.
  20562. * @function create
  20563. * @memberof game.sign_in_get_data_rsp
  20564. * @static
  20565. * @param {game.Isign_in_get_data_rsp=} [properties] Properties to set
  20566. * @returns {game.sign_in_get_data_rsp} sign_in_get_data_rsp instance
  20567. */
  20568. sign_in_get_data_rsp.create = function create(properties) {
  20569. return new sign_in_get_data_rsp(properties);
  20570. };
  20571. /**
  20572. * Encodes the specified sign_in_get_data_rsp message. Does not implicitly {@link game.sign_in_get_data_rsp.verify|verify} messages.
  20573. * @function encode
  20574. * @memberof game.sign_in_get_data_rsp
  20575. * @static
  20576. * @param {game.Isign_in_get_data_rsp} message sign_in_get_data_rsp message or plain object to encode
  20577. * @param {$protobuf.Writer} [writer] Writer to encode to
  20578. * @returns {$protobuf.Writer} Writer
  20579. */
  20580. sign_in_get_data_rsp.encode = function encode(message, writer) {
  20581. if (!writer)
  20582. writer = $Writer.create();
  20583. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  20584. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  20585. return writer;
  20586. };
  20587. /**
  20588. * Encodes the specified sign_in_get_data_rsp message, length delimited. Does not implicitly {@link game.sign_in_get_data_rsp.verify|verify} messages.
  20589. * @function encodeDelimited
  20590. * @memberof game.sign_in_get_data_rsp
  20591. * @static
  20592. * @param {game.Isign_in_get_data_rsp} message sign_in_get_data_rsp message or plain object to encode
  20593. * @param {$protobuf.Writer} [writer] Writer to encode to
  20594. * @returns {$protobuf.Writer} Writer
  20595. */
  20596. sign_in_get_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  20597. return this.encode(message, writer).ldelim();
  20598. };
  20599. /**
  20600. * Decodes a sign_in_get_data_rsp message from the specified reader or buffer.
  20601. * @function decode
  20602. * @memberof game.sign_in_get_data_rsp
  20603. * @static
  20604. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  20605. * @param {number} [length] Message length if known beforehand
  20606. * @returns {game.sign_in_get_data_rsp} sign_in_get_data_rsp
  20607. * @throws {Error} If the payload is not a reader or valid buffer
  20608. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  20609. */
  20610. sign_in_get_data_rsp.decode = function decode(reader, length) {
  20611. if (!(reader instanceof $Reader))
  20612. reader = $Reader.create(reader);
  20613. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.sign_in_get_data_rsp();
  20614. while (reader.pos < end) {
  20615. let tag = reader.uint32();
  20616. switch (tag >>> 3) {
  20617. case 1:
  20618. message.errno = reader.int64();
  20619. break;
  20620. default:
  20621. reader.skipType(tag & 7);
  20622. break;
  20623. }
  20624. }
  20625. return message;
  20626. };
  20627. /**
  20628. * Decodes a sign_in_get_data_rsp message from the specified reader or buffer, length delimited.
  20629. * @function decodeDelimited
  20630. * @memberof game.sign_in_get_data_rsp
  20631. * @static
  20632. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  20633. * @returns {game.sign_in_get_data_rsp} sign_in_get_data_rsp
  20634. * @throws {Error} If the payload is not a reader or valid buffer
  20635. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  20636. */
  20637. sign_in_get_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  20638. if (!(reader instanceof $Reader))
  20639. reader = new $Reader(reader);
  20640. return this.decode(reader, reader.uint32());
  20641. };
  20642. /**
  20643. * Verifies a sign_in_get_data_rsp message.
  20644. * @function verify
  20645. * @memberof game.sign_in_get_data_rsp
  20646. * @static
  20647. * @param {Object.<string,*>} message Plain object to verify
  20648. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  20649. */
  20650. sign_in_get_data_rsp.verify = function verify(message) {
  20651. if (typeof message !== "object" || message === null)
  20652. return "object expected";
  20653. if (message.errno != null && message.hasOwnProperty("errno"))
  20654. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  20655. return "errno: integer|Long expected";
  20656. return null;
  20657. };
  20658. /**
  20659. * Creates a sign_in_get_data_rsp message from a plain object. Also converts values to their respective internal types.
  20660. * @function fromObject
  20661. * @memberof game.sign_in_get_data_rsp
  20662. * @static
  20663. * @param {Object.<string,*>} object Plain object
  20664. * @returns {game.sign_in_get_data_rsp} sign_in_get_data_rsp
  20665. */
  20666. sign_in_get_data_rsp.fromObject = function fromObject(object) {
  20667. if (object instanceof $root.game.sign_in_get_data_rsp)
  20668. return object;
  20669. let message = new $root.game.sign_in_get_data_rsp();
  20670. if (object.errno != null)
  20671. if ($util.Long)
  20672. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  20673. else if (typeof object.errno === "string")
  20674. message.errno = parseInt(object.errno, 10);
  20675. else if (typeof object.errno === "number")
  20676. message.errno = object.errno;
  20677. else if (typeof object.errno === "object")
  20678. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  20679. return message;
  20680. };
  20681. /**
  20682. * Creates a plain object from a sign_in_get_data_rsp message. Also converts values to other types if specified.
  20683. * @function toObject
  20684. * @memberof game.sign_in_get_data_rsp
  20685. * @static
  20686. * @param {game.sign_in_get_data_rsp} message sign_in_get_data_rsp
  20687. * @param {$protobuf.IConversionOptions} [options] Conversion options
  20688. * @returns {Object.<string,*>} Plain object
  20689. */
  20690. sign_in_get_data_rsp.toObject = function toObject(message, options) {
  20691. if (!options)
  20692. options = {};
  20693. let object = {};
  20694. if (options.defaults)
  20695. if ($util.Long) {
  20696. let long = new $util.Long(0, 0, false);
  20697. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  20698. } else
  20699. object.errno = options.longs === String ? "0" : 0;
  20700. if (message.errno != null && message.hasOwnProperty("errno"))
  20701. if (typeof message.errno === "number")
  20702. object.errno = options.longs === String ? String(message.errno) : message.errno;
  20703. else
  20704. 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;
  20705. return object;
  20706. };
  20707. /**
  20708. * Converts this sign_in_get_data_rsp to JSON.
  20709. * @function toJSON
  20710. * @memberof game.sign_in_get_data_rsp
  20711. * @instance
  20712. * @returns {Object.<string,*>} JSON object
  20713. */
  20714. sign_in_get_data_rsp.prototype.toJSON = function toJSON() {
  20715. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  20716. };
  20717. return sign_in_get_data_rsp;
  20718. })();
  20719. game.sign_in_award = (function() {
  20720. /**
  20721. * Properties of a sign_in_award.
  20722. * @memberof game
  20723. * @interface Isign_in_award
  20724. * @property {number|Long|null} [day] sign_in_award day
  20725. */
  20726. /**
  20727. * Constructs a new sign_in_award.
  20728. * @memberof game
  20729. * @classdesc Represents a sign_in_award.
  20730. * @implements Isign_in_award
  20731. * @constructor
  20732. * @param {game.Isign_in_award=} [properties] Properties to set
  20733. */
  20734. function sign_in_award(properties) {
  20735. if (properties)
  20736. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  20737. if (properties[keys[i]] != null)
  20738. this[keys[i]] = properties[keys[i]];
  20739. }
  20740. /**
  20741. * sign_in_award day.
  20742. * @member {number|Long} day
  20743. * @memberof game.sign_in_award
  20744. * @instance
  20745. */
  20746. sign_in_award.prototype.day = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  20747. /**
  20748. * Creates a new sign_in_award instance using the specified properties.
  20749. * @function create
  20750. * @memberof game.sign_in_award
  20751. * @static
  20752. * @param {game.Isign_in_award=} [properties] Properties to set
  20753. * @returns {game.sign_in_award} sign_in_award instance
  20754. */
  20755. sign_in_award.create = function create(properties) {
  20756. return new sign_in_award(properties);
  20757. };
  20758. /**
  20759. * Encodes the specified sign_in_award message. Does not implicitly {@link game.sign_in_award.verify|verify} messages.
  20760. * @function encode
  20761. * @memberof game.sign_in_award
  20762. * @static
  20763. * @param {game.Isign_in_award} message sign_in_award message or plain object to encode
  20764. * @param {$protobuf.Writer} [writer] Writer to encode to
  20765. * @returns {$protobuf.Writer} Writer
  20766. */
  20767. sign_in_award.encode = function encode(message, writer) {
  20768. if (!writer)
  20769. writer = $Writer.create();
  20770. if (message.day != null && Object.hasOwnProperty.call(message, "day"))
  20771. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.day);
  20772. return writer;
  20773. };
  20774. /**
  20775. * Encodes the specified sign_in_award message, length delimited. Does not implicitly {@link game.sign_in_award.verify|verify} messages.
  20776. * @function encodeDelimited
  20777. * @memberof game.sign_in_award
  20778. * @static
  20779. * @param {game.Isign_in_award} message sign_in_award message or plain object to encode
  20780. * @param {$protobuf.Writer} [writer] Writer to encode to
  20781. * @returns {$protobuf.Writer} Writer
  20782. */
  20783. sign_in_award.encodeDelimited = function encodeDelimited(message, writer) {
  20784. return this.encode(message, writer).ldelim();
  20785. };
  20786. /**
  20787. * Decodes a sign_in_award message from the specified reader or buffer.
  20788. * @function decode
  20789. * @memberof game.sign_in_award
  20790. * @static
  20791. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  20792. * @param {number} [length] Message length if known beforehand
  20793. * @returns {game.sign_in_award} sign_in_award
  20794. * @throws {Error} If the payload is not a reader or valid buffer
  20795. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  20796. */
  20797. sign_in_award.decode = function decode(reader, length) {
  20798. if (!(reader instanceof $Reader))
  20799. reader = $Reader.create(reader);
  20800. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.sign_in_award();
  20801. while (reader.pos < end) {
  20802. let tag = reader.uint32();
  20803. switch (tag >>> 3) {
  20804. case 1:
  20805. message.day = reader.int64();
  20806. break;
  20807. default:
  20808. reader.skipType(tag & 7);
  20809. break;
  20810. }
  20811. }
  20812. return message;
  20813. };
  20814. /**
  20815. * Decodes a sign_in_award message from the specified reader or buffer, length delimited.
  20816. * @function decodeDelimited
  20817. * @memberof game.sign_in_award
  20818. * @static
  20819. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  20820. * @returns {game.sign_in_award} sign_in_award
  20821. * @throws {Error} If the payload is not a reader or valid buffer
  20822. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  20823. */
  20824. sign_in_award.decodeDelimited = function decodeDelimited(reader) {
  20825. if (!(reader instanceof $Reader))
  20826. reader = new $Reader(reader);
  20827. return this.decode(reader, reader.uint32());
  20828. };
  20829. /**
  20830. * Verifies a sign_in_award message.
  20831. * @function verify
  20832. * @memberof game.sign_in_award
  20833. * @static
  20834. * @param {Object.<string,*>} message Plain object to verify
  20835. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  20836. */
  20837. sign_in_award.verify = function verify(message) {
  20838. if (typeof message !== "object" || message === null)
  20839. return "object expected";
  20840. if (message.day != null && message.hasOwnProperty("day"))
  20841. if (!$util.isInteger(message.day) && !(message.day && $util.isInteger(message.day.low) && $util.isInteger(message.day.high)))
  20842. return "day: integer|Long expected";
  20843. return null;
  20844. };
  20845. /**
  20846. * Creates a sign_in_award message from a plain object. Also converts values to their respective internal types.
  20847. * @function fromObject
  20848. * @memberof game.sign_in_award
  20849. * @static
  20850. * @param {Object.<string,*>} object Plain object
  20851. * @returns {game.sign_in_award} sign_in_award
  20852. */
  20853. sign_in_award.fromObject = function fromObject(object) {
  20854. if (object instanceof $root.game.sign_in_award)
  20855. return object;
  20856. let message = new $root.game.sign_in_award();
  20857. if (object.day != null)
  20858. if ($util.Long)
  20859. (message.day = $util.Long.fromValue(object.day)).unsigned = false;
  20860. else if (typeof object.day === "string")
  20861. message.day = parseInt(object.day, 10);
  20862. else if (typeof object.day === "number")
  20863. message.day = object.day;
  20864. else if (typeof object.day === "object")
  20865. message.day = new $util.LongBits(object.day.low >>> 0, object.day.high >>> 0).toNumber();
  20866. return message;
  20867. };
  20868. /**
  20869. * Creates a plain object from a sign_in_award message. Also converts values to other types if specified.
  20870. * @function toObject
  20871. * @memberof game.sign_in_award
  20872. * @static
  20873. * @param {game.sign_in_award} message sign_in_award
  20874. * @param {$protobuf.IConversionOptions} [options] Conversion options
  20875. * @returns {Object.<string,*>} Plain object
  20876. */
  20877. sign_in_award.toObject = function toObject(message, options) {
  20878. if (!options)
  20879. options = {};
  20880. let object = {};
  20881. if (options.defaults)
  20882. if ($util.Long) {
  20883. let long = new $util.Long(0, 0, false);
  20884. object.day = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  20885. } else
  20886. object.day = options.longs === String ? "0" : 0;
  20887. if (message.day != null && message.hasOwnProperty("day"))
  20888. if (typeof message.day === "number")
  20889. object.day = options.longs === String ? String(message.day) : message.day;
  20890. else
  20891. 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;
  20892. return object;
  20893. };
  20894. /**
  20895. * Converts this sign_in_award to JSON.
  20896. * @function toJSON
  20897. * @memberof game.sign_in_award
  20898. * @instance
  20899. * @returns {Object.<string,*>} JSON object
  20900. */
  20901. sign_in_award.prototype.toJSON = function toJSON() {
  20902. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  20903. };
  20904. return sign_in_award;
  20905. })();
  20906. game.sign_in_award_rsp = (function() {
  20907. /**
  20908. * Properties of a sign_in_award_rsp.
  20909. * @memberof game
  20910. * @interface Isign_in_award_rsp
  20911. * @property {number|Long|null} [errno] sign_in_award_rsp errno
  20912. * @property {number|Long|null} [day] sign_in_award_rsp day
  20913. * @property {number|Long|null} [award] sign_in_award_rsp award
  20914. */
  20915. /**
  20916. * Constructs a new sign_in_award_rsp.
  20917. * @memberof game
  20918. * @classdesc Represents a sign_in_award_rsp.
  20919. * @implements Isign_in_award_rsp
  20920. * @constructor
  20921. * @param {game.Isign_in_award_rsp=} [properties] Properties to set
  20922. */
  20923. function sign_in_award_rsp(properties) {
  20924. if (properties)
  20925. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  20926. if (properties[keys[i]] != null)
  20927. this[keys[i]] = properties[keys[i]];
  20928. }
  20929. /**
  20930. * sign_in_award_rsp errno.
  20931. * @member {number|Long} errno
  20932. * @memberof game.sign_in_award_rsp
  20933. * @instance
  20934. */
  20935. sign_in_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  20936. /**
  20937. * sign_in_award_rsp day.
  20938. * @member {number|Long} day
  20939. * @memberof game.sign_in_award_rsp
  20940. * @instance
  20941. */
  20942. sign_in_award_rsp.prototype.day = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  20943. /**
  20944. * sign_in_award_rsp award.
  20945. * @member {number|Long} award
  20946. * @memberof game.sign_in_award_rsp
  20947. * @instance
  20948. */
  20949. sign_in_award_rsp.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  20950. /**
  20951. * Creates a new sign_in_award_rsp instance using the specified properties.
  20952. * @function create
  20953. * @memberof game.sign_in_award_rsp
  20954. * @static
  20955. * @param {game.Isign_in_award_rsp=} [properties] Properties to set
  20956. * @returns {game.sign_in_award_rsp} sign_in_award_rsp instance
  20957. */
  20958. sign_in_award_rsp.create = function create(properties) {
  20959. return new sign_in_award_rsp(properties);
  20960. };
  20961. /**
  20962. * Encodes the specified sign_in_award_rsp message. Does not implicitly {@link game.sign_in_award_rsp.verify|verify} messages.
  20963. * @function encode
  20964. * @memberof game.sign_in_award_rsp
  20965. * @static
  20966. * @param {game.Isign_in_award_rsp} message sign_in_award_rsp message or plain object to encode
  20967. * @param {$protobuf.Writer} [writer] Writer to encode to
  20968. * @returns {$protobuf.Writer} Writer
  20969. */
  20970. sign_in_award_rsp.encode = function encode(message, writer) {
  20971. if (!writer)
  20972. writer = $Writer.create();
  20973. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  20974. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  20975. if (message.day != null && Object.hasOwnProperty.call(message, "day"))
  20976. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.day);
  20977. if (message.award != null && Object.hasOwnProperty.call(message, "award"))
  20978. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.award);
  20979. return writer;
  20980. };
  20981. /**
  20982. * Encodes the specified sign_in_award_rsp message, length delimited. Does not implicitly {@link game.sign_in_award_rsp.verify|verify} messages.
  20983. * @function encodeDelimited
  20984. * @memberof game.sign_in_award_rsp
  20985. * @static
  20986. * @param {game.Isign_in_award_rsp} message sign_in_award_rsp message or plain object to encode
  20987. * @param {$protobuf.Writer} [writer] Writer to encode to
  20988. * @returns {$protobuf.Writer} Writer
  20989. */
  20990. sign_in_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  20991. return this.encode(message, writer).ldelim();
  20992. };
  20993. /**
  20994. * Decodes a sign_in_award_rsp message from the specified reader or buffer.
  20995. * @function decode
  20996. * @memberof game.sign_in_award_rsp
  20997. * @static
  20998. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  20999. * @param {number} [length] Message length if known beforehand
  21000. * @returns {game.sign_in_award_rsp} sign_in_award_rsp
  21001. * @throws {Error} If the payload is not a reader or valid buffer
  21002. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  21003. */
  21004. sign_in_award_rsp.decode = function decode(reader, length) {
  21005. if (!(reader instanceof $Reader))
  21006. reader = $Reader.create(reader);
  21007. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.sign_in_award_rsp();
  21008. while (reader.pos < end) {
  21009. let tag = reader.uint32();
  21010. switch (tag >>> 3) {
  21011. case 1:
  21012. message.errno = reader.int64();
  21013. break;
  21014. case 2:
  21015. message.day = reader.int64();
  21016. break;
  21017. case 3:
  21018. message.award = reader.int64();
  21019. break;
  21020. default:
  21021. reader.skipType(tag & 7);
  21022. break;
  21023. }
  21024. }
  21025. return message;
  21026. };
  21027. /**
  21028. * Decodes a sign_in_award_rsp message from the specified reader or buffer, length delimited.
  21029. * @function decodeDelimited
  21030. * @memberof game.sign_in_award_rsp
  21031. * @static
  21032. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  21033. * @returns {game.sign_in_award_rsp} sign_in_award_rsp
  21034. * @throws {Error} If the payload is not a reader or valid buffer
  21035. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  21036. */
  21037. sign_in_award_rsp.decodeDelimited = function decodeDelimited(reader) {
  21038. if (!(reader instanceof $Reader))
  21039. reader = new $Reader(reader);
  21040. return this.decode(reader, reader.uint32());
  21041. };
  21042. /**
  21043. * Verifies a sign_in_award_rsp message.
  21044. * @function verify
  21045. * @memberof game.sign_in_award_rsp
  21046. * @static
  21047. * @param {Object.<string,*>} message Plain object to verify
  21048. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  21049. */
  21050. sign_in_award_rsp.verify = function verify(message) {
  21051. if (typeof message !== "object" || message === null)
  21052. return "object expected";
  21053. if (message.errno != null && message.hasOwnProperty("errno"))
  21054. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  21055. return "errno: integer|Long expected";
  21056. if (message.day != null && message.hasOwnProperty("day"))
  21057. if (!$util.isInteger(message.day) && !(message.day && $util.isInteger(message.day.low) && $util.isInteger(message.day.high)))
  21058. return "day: integer|Long expected";
  21059. if (message.award != null && message.hasOwnProperty("award"))
  21060. if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
  21061. return "award: integer|Long expected";
  21062. return null;
  21063. };
  21064. /**
  21065. * Creates a sign_in_award_rsp message from a plain object. Also converts values to their respective internal types.
  21066. * @function fromObject
  21067. * @memberof game.sign_in_award_rsp
  21068. * @static
  21069. * @param {Object.<string,*>} object Plain object
  21070. * @returns {game.sign_in_award_rsp} sign_in_award_rsp
  21071. */
  21072. sign_in_award_rsp.fromObject = function fromObject(object) {
  21073. if (object instanceof $root.game.sign_in_award_rsp)
  21074. return object;
  21075. let message = new $root.game.sign_in_award_rsp();
  21076. if (object.errno != null)
  21077. if ($util.Long)
  21078. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  21079. else if (typeof object.errno === "string")
  21080. message.errno = parseInt(object.errno, 10);
  21081. else if (typeof object.errno === "number")
  21082. message.errno = object.errno;
  21083. else if (typeof object.errno === "object")
  21084. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  21085. if (object.day != null)
  21086. if ($util.Long)
  21087. (message.day = $util.Long.fromValue(object.day)).unsigned = false;
  21088. else if (typeof object.day === "string")
  21089. message.day = parseInt(object.day, 10);
  21090. else if (typeof object.day === "number")
  21091. message.day = object.day;
  21092. else if (typeof object.day === "object")
  21093. message.day = new $util.LongBits(object.day.low >>> 0, object.day.high >>> 0).toNumber();
  21094. if (object.award != null)
  21095. if ($util.Long)
  21096. (message.award = $util.Long.fromValue(object.award)).unsigned = false;
  21097. else if (typeof object.award === "string")
  21098. message.award = parseInt(object.award, 10);
  21099. else if (typeof object.award === "number")
  21100. message.award = object.award;
  21101. else if (typeof object.award === "object")
  21102. message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
  21103. return message;
  21104. };
  21105. /**
  21106. * Creates a plain object from a sign_in_award_rsp message. Also converts values to other types if specified.
  21107. * @function toObject
  21108. * @memberof game.sign_in_award_rsp
  21109. * @static
  21110. * @param {game.sign_in_award_rsp} message sign_in_award_rsp
  21111. * @param {$protobuf.IConversionOptions} [options] Conversion options
  21112. * @returns {Object.<string,*>} Plain object
  21113. */
  21114. sign_in_award_rsp.toObject = function toObject(message, options) {
  21115. if (!options)
  21116. options = {};
  21117. let object = {};
  21118. if (options.defaults) {
  21119. if ($util.Long) {
  21120. let long = new $util.Long(0, 0, false);
  21121. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  21122. } else
  21123. object.errno = options.longs === String ? "0" : 0;
  21124. if ($util.Long) {
  21125. let long = new $util.Long(0, 0, false);
  21126. object.day = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  21127. } else
  21128. object.day = options.longs === String ? "0" : 0;
  21129. if ($util.Long) {
  21130. let long = new $util.Long(0, 0, false);
  21131. object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  21132. } else
  21133. object.award = options.longs === String ? "0" : 0;
  21134. }
  21135. if (message.errno != null && message.hasOwnProperty("errno"))
  21136. if (typeof message.errno === "number")
  21137. object.errno = options.longs === String ? String(message.errno) : message.errno;
  21138. else
  21139. 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;
  21140. if (message.day != null && message.hasOwnProperty("day"))
  21141. if (typeof message.day === "number")
  21142. object.day = options.longs === String ? String(message.day) : message.day;
  21143. else
  21144. 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;
  21145. if (message.award != null && message.hasOwnProperty("award"))
  21146. if (typeof message.award === "number")
  21147. object.award = options.longs === String ? String(message.award) : message.award;
  21148. else
  21149. 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;
  21150. return object;
  21151. };
  21152. /**
  21153. * Converts this sign_in_award_rsp to JSON.
  21154. * @function toJSON
  21155. * @memberof game.sign_in_award_rsp
  21156. * @instance
  21157. * @returns {Object.<string,*>} JSON object
  21158. */
  21159. sign_in_award_rsp.prototype.toJSON = function toJSON() {
  21160. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  21161. };
  21162. return sign_in_award_rsp;
  21163. })();
  21164. game.sign_in_nty = (function() {
  21165. /**
  21166. * Properties of a sign_in_nty.
  21167. * @memberof game
  21168. * @interface Isign_in_nty
  21169. * @property {boolean|null} [open] sign_in_nty open
  21170. * @property {number|Long|null} [day] sign_in_nty day
  21171. * @property {number|Long|null} [award] sign_in_nty award
  21172. * @property {number|Long|null} [round] sign_in_nty round
  21173. */
  21174. /**
  21175. * Constructs a new sign_in_nty.
  21176. * @memberof game
  21177. * @classdesc Represents a sign_in_nty.
  21178. * @implements Isign_in_nty
  21179. * @constructor
  21180. * @param {game.Isign_in_nty=} [properties] Properties to set
  21181. */
  21182. function sign_in_nty(properties) {
  21183. if (properties)
  21184. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  21185. if (properties[keys[i]] != null)
  21186. this[keys[i]] = properties[keys[i]];
  21187. }
  21188. /**
  21189. * sign_in_nty open.
  21190. * @member {boolean} open
  21191. * @memberof game.sign_in_nty
  21192. * @instance
  21193. */
  21194. sign_in_nty.prototype.open = false;
  21195. /**
  21196. * sign_in_nty day.
  21197. * @member {number|Long} day
  21198. * @memberof game.sign_in_nty
  21199. * @instance
  21200. */
  21201. sign_in_nty.prototype.day = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  21202. /**
  21203. * sign_in_nty award.
  21204. * @member {number|Long} award
  21205. * @memberof game.sign_in_nty
  21206. * @instance
  21207. */
  21208. sign_in_nty.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  21209. /**
  21210. * sign_in_nty round.
  21211. * @member {number|Long} round
  21212. * @memberof game.sign_in_nty
  21213. * @instance
  21214. */
  21215. sign_in_nty.prototype.round = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  21216. /**
  21217. * Creates a new sign_in_nty instance using the specified properties.
  21218. * @function create
  21219. * @memberof game.sign_in_nty
  21220. * @static
  21221. * @param {game.Isign_in_nty=} [properties] Properties to set
  21222. * @returns {game.sign_in_nty} sign_in_nty instance
  21223. */
  21224. sign_in_nty.create = function create(properties) {
  21225. return new sign_in_nty(properties);
  21226. };
  21227. /**
  21228. * Encodes the specified sign_in_nty message. Does not implicitly {@link game.sign_in_nty.verify|verify} messages.
  21229. * @function encode
  21230. * @memberof game.sign_in_nty
  21231. * @static
  21232. * @param {game.Isign_in_nty} message sign_in_nty message or plain object to encode
  21233. * @param {$protobuf.Writer} [writer] Writer to encode to
  21234. * @returns {$protobuf.Writer} Writer
  21235. */
  21236. sign_in_nty.encode = function encode(message, writer) {
  21237. if (!writer)
  21238. writer = $Writer.create();
  21239. if (message.open != null && Object.hasOwnProperty.call(message, "open"))
  21240. writer.uint32(/* id 1, wireType 0 =*/8).bool(message.open);
  21241. if (message.day != null && Object.hasOwnProperty.call(message, "day"))
  21242. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.day);
  21243. if (message.award != null && Object.hasOwnProperty.call(message, "award"))
  21244. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.award);
  21245. if (message.round != null && Object.hasOwnProperty.call(message, "round"))
  21246. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.round);
  21247. return writer;
  21248. };
  21249. /**
  21250. * Encodes the specified sign_in_nty message, length delimited. Does not implicitly {@link game.sign_in_nty.verify|verify} messages.
  21251. * @function encodeDelimited
  21252. * @memberof game.sign_in_nty
  21253. * @static
  21254. * @param {game.Isign_in_nty} message sign_in_nty message or plain object to encode
  21255. * @param {$protobuf.Writer} [writer] Writer to encode to
  21256. * @returns {$protobuf.Writer} Writer
  21257. */
  21258. sign_in_nty.encodeDelimited = function encodeDelimited(message, writer) {
  21259. return this.encode(message, writer).ldelim();
  21260. };
  21261. /**
  21262. * Decodes a sign_in_nty message from the specified reader or buffer.
  21263. * @function decode
  21264. * @memberof game.sign_in_nty
  21265. * @static
  21266. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  21267. * @param {number} [length] Message length if known beforehand
  21268. * @returns {game.sign_in_nty} sign_in_nty
  21269. * @throws {Error} If the payload is not a reader or valid buffer
  21270. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  21271. */
  21272. sign_in_nty.decode = function decode(reader, length) {
  21273. if (!(reader instanceof $Reader))
  21274. reader = $Reader.create(reader);
  21275. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.sign_in_nty();
  21276. while (reader.pos < end) {
  21277. let tag = reader.uint32();
  21278. switch (tag >>> 3) {
  21279. case 1:
  21280. message.open = reader.bool();
  21281. break;
  21282. case 2:
  21283. message.day = reader.int64();
  21284. break;
  21285. case 3:
  21286. message.award = reader.int64();
  21287. break;
  21288. case 4:
  21289. message.round = reader.int64();
  21290. break;
  21291. default:
  21292. reader.skipType(tag & 7);
  21293. break;
  21294. }
  21295. }
  21296. return message;
  21297. };
  21298. /**
  21299. * Decodes a sign_in_nty message from the specified reader or buffer, length delimited.
  21300. * @function decodeDelimited
  21301. * @memberof game.sign_in_nty
  21302. * @static
  21303. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  21304. * @returns {game.sign_in_nty} sign_in_nty
  21305. * @throws {Error} If the payload is not a reader or valid buffer
  21306. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  21307. */
  21308. sign_in_nty.decodeDelimited = function decodeDelimited(reader) {
  21309. if (!(reader instanceof $Reader))
  21310. reader = new $Reader(reader);
  21311. return this.decode(reader, reader.uint32());
  21312. };
  21313. /**
  21314. * Verifies a sign_in_nty message.
  21315. * @function verify
  21316. * @memberof game.sign_in_nty
  21317. * @static
  21318. * @param {Object.<string,*>} message Plain object to verify
  21319. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  21320. */
  21321. sign_in_nty.verify = function verify(message) {
  21322. if (typeof message !== "object" || message === null)
  21323. return "object expected";
  21324. if (message.open != null && message.hasOwnProperty("open"))
  21325. if (typeof message.open !== "boolean")
  21326. return "open: boolean expected";
  21327. if (message.day != null && message.hasOwnProperty("day"))
  21328. if (!$util.isInteger(message.day) && !(message.day && $util.isInteger(message.day.low) && $util.isInteger(message.day.high)))
  21329. return "day: integer|Long expected";
  21330. if (message.award != null && message.hasOwnProperty("award"))
  21331. if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
  21332. return "award: integer|Long expected";
  21333. if (message.round != null && message.hasOwnProperty("round"))
  21334. if (!$util.isInteger(message.round) && !(message.round && $util.isInteger(message.round.low) && $util.isInteger(message.round.high)))
  21335. return "round: integer|Long expected";
  21336. return null;
  21337. };
  21338. /**
  21339. * Creates a sign_in_nty message from a plain object. Also converts values to their respective internal types.
  21340. * @function fromObject
  21341. * @memberof game.sign_in_nty
  21342. * @static
  21343. * @param {Object.<string,*>} object Plain object
  21344. * @returns {game.sign_in_nty} sign_in_nty
  21345. */
  21346. sign_in_nty.fromObject = function fromObject(object) {
  21347. if (object instanceof $root.game.sign_in_nty)
  21348. return object;
  21349. let message = new $root.game.sign_in_nty();
  21350. if (object.open != null)
  21351. message.open = Boolean(object.open);
  21352. if (object.day != null)
  21353. if ($util.Long)
  21354. (message.day = $util.Long.fromValue(object.day)).unsigned = false;
  21355. else if (typeof object.day === "string")
  21356. message.day = parseInt(object.day, 10);
  21357. else if (typeof object.day === "number")
  21358. message.day = object.day;
  21359. else if (typeof object.day === "object")
  21360. message.day = new $util.LongBits(object.day.low >>> 0, object.day.high >>> 0).toNumber();
  21361. if (object.award != null)
  21362. if ($util.Long)
  21363. (message.award = $util.Long.fromValue(object.award)).unsigned = false;
  21364. else if (typeof object.award === "string")
  21365. message.award = parseInt(object.award, 10);
  21366. else if (typeof object.award === "number")
  21367. message.award = object.award;
  21368. else if (typeof object.award === "object")
  21369. message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
  21370. if (object.round != null)
  21371. if ($util.Long)
  21372. (message.round = $util.Long.fromValue(object.round)).unsigned = false;
  21373. else if (typeof object.round === "string")
  21374. message.round = parseInt(object.round, 10);
  21375. else if (typeof object.round === "number")
  21376. message.round = object.round;
  21377. else if (typeof object.round === "object")
  21378. message.round = new $util.LongBits(object.round.low >>> 0, object.round.high >>> 0).toNumber();
  21379. return message;
  21380. };
  21381. /**
  21382. * Creates a plain object from a sign_in_nty message. Also converts values to other types if specified.
  21383. * @function toObject
  21384. * @memberof game.sign_in_nty
  21385. * @static
  21386. * @param {game.sign_in_nty} message sign_in_nty
  21387. * @param {$protobuf.IConversionOptions} [options] Conversion options
  21388. * @returns {Object.<string,*>} Plain object
  21389. */
  21390. sign_in_nty.toObject = function toObject(message, options) {
  21391. if (!options)
  21392. options = {};
  21393. let object = {};
  21394. if (options.defaults) {
  21395. object.open = false;
  21396. if ($util.Long) {
  21397. let long = new $util.Long(0, 0, false);
  21398. object.day = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  21399. } else
  21400. object.day = options.longs === String ? "0" : 0;
  21401. if ($util.Long) {
  21402. let long = new $util.Long(0, 0, false);
  21403. object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  21404. } else
  21405. object.award = options.longs === String ? "0" : 0;
  21406. if ($util.Long) {
  21407. let long = new $util.Long(0, 0, false);
  21408. object.round = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  21409. } else
  21410. object.round = options.longs === String ? "0" : 0;
  21411. }
  21412. if (message.open != null && message.hasOwnProperty("open"))
  21413. object.open = message.open;
  21414. if (message.day != null && message.hasOwnProperty("day"))
  21415. if (typeof message.day === "number")
  21416. object.day = options.longs === String ? String(message.day) : message.day;
  21417. else
  21418. 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;
  21419. if (message.award != null && message.hasOwnProperty("award"))
  21420. if (typeof message.award === "number")
  21421. object.award = options.longs === String ? String(message.award) : message.award;
  21422. else
  21423. 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;
  21424. if (message.round != null && message.hasOwnProperty("round"))
  21425. if (typeof message.round === "number")
  21426. object.round = options.longs === String ? String(message.round) : message.round;
  21427. else
  21428. 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;
  21429. return object;
  21430. };
  21431. /**
  21432. * Converts this sign_in_nty to JSON.
  21433. * @function toJSON
  21434. * @memberof game.sign_in_nty
  21435. * @instance
  21436. * @returns {Object.<string,*>} JSON object
  21437. */
  21438. sign_in_nty.prototype.toJSON = function toJSON() {
  21439. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  21440. };
  21441. return sign_in_nty;
  21442. })();
  21443. game.quest_get_data = (function() {
  21444. /**
  21445. * Properties of a quest_get_data.
  21446. * @memberof game
  21447. * @interface Iquest_get_data
  21448. */
  21449. /**
  21450. * Constructs a new quest_get_data.
  21451. * @memberof game
  21452. * @classdesc Represents a quest_get_data.
  21453. * @implements Iquest_get_data
  21454. * @constructor
  21455. * @param {game.Iquest_get_data=} [properties] Properties to set
  21456. */
  21457. function quest_get_data(properties) {
  21458. if (properties)
  21459. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  21460. if (properties[keys[i]] != null)
  21461. this[keys[i]] = properties[keys[i]];
  21462. }
  21463. /**
  21464. * Creates a new quest_get_data instance using the specified properties.
  21465. * @function create
  21466. * @memberof game.quest_get_data
  21467. * @static
  21468. * @param {game.Iquest_get_data=} [properties] Properties to set
  21469. * @returns {game.quest_get_data} quest_get_data instance
  21470. */
  21471. quest_get_data.create = function create(properties) {
  21472. return new quest_get_data(properties);
  21473. };
  21474. /**
  21475. * Encodes the specified quest_get_data message. Does not implicitly {@link game.quest_get_data.verify|verify} messages.
  21476. * @function encode
  21477. * @memberof game.quest_get_data
  21478. * @static
  21479. * @param {game.Iquest_get_data} message quest_get_data message or plain object to encode
  21480. * @param {$protobuf.Writer} [writer] Writer to encode to
  21481. * @returns {$protobuf.Writer} Writer
  21482. */
  21483. quest_get_data.encode = function encode(message, writer) {
  21484. if (!writer)
  21485. writer = $Writer.create();
  21486. return writer;
  21487. };
  21488. /**
  21489. * Encodes the specified quest_get_data message, length delimited. Does not implicitly {@link game.quest_get_data.verify|verify} messages.
  21490. * @function encodeDelimited
  21491. * @memberof game.quest_get_data
  21492. * @static
  21493. * @param {game.Iquest_get_data} message quest_get_data message or plain object to encode
  21494. * @param {$protobuf.Writer} [writer] Writer to encode to
  21495. * @returns {$protobuf.Writer} Writer
  21496. */
  21497. quest_get_data.encodeDelimited = function encodeDelimited(message, writer) {
  21498. return this.encode(message, writer).ldelim();
  21499. };
  21500. /**
  21501. * Decodes a quest_get_data message from the specified reader or buffer.
  21502. * @function decode
  21503. * @memberof game.quest_get_data
  21504. * @static
  21505. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  21506. * @param {number} [length] Message length if known beforehand
  21507. * @returns {game.quest_get_data} quest_get_data
  21508. * @throws {Error} If the payload is not a reader or valid buffer
  21509. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  21510. */
  21511. quest_get_data.decode = function decode(reader, length) {
  21512. if (!(reader instanceof $Reader))
  21513. reader = $Reader.create(reader);
  21514. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.quest_get_data();
  21515. while (reader.pos < end) {
  21516. let tag = reader.uint32();
  21517. switch (tag >>> 3) {
  21518. default:
  21519. reader.skipType(tag & 7);
  21520. break;
  21521. }
  21522. }
  21523. return message;
  21524. };
  21525. /**
  21526. * Decodes a quest_get_data message from the specified reader or buffer, length delimited.
  21527. * @function decodeDelimited
  21528. * @memberof game.quest_get_data
  21529. * @static
  21530. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  21531. * @returns {game.quest_get_data} quest_get_data
  21532. * @throws {Error} If the payload is not a reader or valid buffer
  21533. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  21534. */
  21535. quest_get_data.decodeDelimited = function decodeDelimited(reader) {
  21536. if (!(reader instanceof $Reader))
  21537. reader = new $Reader(reader);
  21538. return this.decode(reader, reader.uint32());
  21539. };
  21540. /**
  21541. * Verifies a quest_get_data message.
  21542. * @function verify
  21543. * @memberof game.quest_get_data
  21544. * @static
  21545. * @param {Object.<string,*>} message Plain object to verify
  21546. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  21547. */
  21548. quest_get_data.verify = function verify(message) {
  21549. if (typeof message !== "object" || message === null)
  21550. return "object expected";
  21551. return null;
  21552. };
  21553. /**
  21554. * Creates a quest_get_data message from a plain object. Also converts values to their respective internal types.
  21555. * @function fromObject
  21556. * @memberof game.quest_get_data
  21557. * @static
  21558. * @param {Object.<string,*>} object Plain object
  21559. * @returns {game.quest_get_data} quest_get_data
  21560. */
  21561. quest_get_data.fromObject = function fromObject(object) {
  21562. if (object instanceof $root.game.quest_get_data)
  21563. return object;
  21564. return new $root.game.quest_get_data();
  21565. };
  21566. /**
  21567. * Creates a plain object from a quest_get_data message. Also converts values to other types if specified.
  21568. * @function toObject
  21569. * @memberof game.quest_get_data
  21570. * @static
  21571. * @param {game.quest_get_data} message quest_get_data
  21572. * @param {$protobuf.IConversionOptions} [options] Conversion options
  21573. * @returns {Object.<string,*>} Plain object
  21574. */
  21575. quest_get_data.toObject = function toObject() {
  21576. return {};
  21577. };
  21578. /**
  21579. * Converts this quest_get_data to JSON.
  21580. * @function toJSON
  21581. * @memberof game.quest_get_data
  21582. * @instance
  21583. * @returns {Object.<string,*>} JSON object
  21584. */
  21585. quest_get_data.prototype.toJSON = function toJSON() {
  21586. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  21587. };
  21588. return quest_get_data;
  21589. })();
  21590. game.quest_get_data_rsp = (function() {
  21591. /**
  21592. * Properties of a quest_get_data_rsp.
  21593. * @memberof game
  21594. * @interface Iquest_get_data_rsp
  21595. * @property {number|Long|null} [errno] quest_get_data_rsp errno
  21596. * @property {number|Long|null} [dlv] quest_get_data_rsp dlv
  21597. * @property {number|Long|null} [wlv] quest_get_data_rsp wlv
  21598. * @property {number|Long|null} [daward] quest_get_data_rsp daward
  21599. * @property {number|Long|null} [waward] quest_get_data_rsp waward
  21600. * @property {Array.<game.Iquest>|null} [daily] quest_get_data_rsp daily
  21601. * @property {Array.<game.Iquest>|null} [weekly] quest_get_data_rsp weekly
  21602. * @property {Array.<game.Iquest>|null} [achievement] quest_get_data_rsp achievement
  21603. * @property {game.Iquest|null} [mainQuest] quest_get_data_rsp mainQuest
  21604. */
  21605. /**
  21606. * Constructs a new quest_get_data_rsp.
  21607. * @memberof game
  21608. * @classdesc Represents a quest_get_data_rsp.
  21609. * @implements Iquest_get_data_rsp
  21610. * @constructor
  21611. * @param {game.Iquest_get_data_rsp=} [properties] Properties to set
  21612. */
  21613. function quest_get_data_rsp(properties) {
  21614. this.daily = [];
  21615. this.weekly = [];
  21616. this.achievement = [];
  21617. if (properties)
  21618. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  21619. if (properties[keys[i]] != null)
  21620. this[keys[i]] = properties[keys[i]];
  21621. }
  21622. /**
  21623. * quest_get_data_rsp errno.
  21624. * @member {number|Long} errno
  21625. * @memberof game.quest_get_data_rsp
  21626. * @instance
  21627. */
  21628. quest_get_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  21629. /**
  21630. * quest_get_data_rsp dlv.
  21631. * @member {number|Long} dlv
  21632. * @memberof game.quest_get_data_rsp
  21633. * @instance
  21634. */
  21635. quest_get_data_rsp.prototype.dlv = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  21636. /**
  21637. * quest_get_data_rsp wlv.
  21638. * @member {number|Long} wlv
  21639. * @memberof game.quest_get_data_rsp
  21640. * @instance
  21641. */
  21642. quest_get_data_rsp.prototype.wlv = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  21643. /**
  21644. * quest_get_data_rsp daward.
  21645. * @member {number|Long} daward
  21646. * @memberof game.quest_get_data_rsp
  21647. * @instance
  21648. */
  21649. quest_get_data_rsp.prototype.daward = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  21650. /**
  21651. * quest_get_data_rsp waward.
  21652. * @member {number|Long} waward
  21653. * @memberof game.quest_get_data_rsp
  21654. * @instance
  21655. */
  21656. quest_get_data_rsp.prototype.waward = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  21657. /**
  21658. * quest_get_data_rsp daily.
  21659. * @member {Array.<game.Iquest>} daily
  21660. * @memberof game.quest_get_data_rsp
  21661. * @instance
  21662. */
  21663. quest_get_data_rsp.prototype.daily = $util.emptyArray;
  21664. /**
  21665. * quest_get_data_rsp weekly.
  21666. * @member {Array.<game.Iquest>} weekly
  21667. * @memberof game.quest_get_data_rsp
  21668. * @instance
  21669. */
  21670. quest_get_data_rsp.prototype.weekly = $util.emptyArray;
  21671. /**
  21672. * quest_get_data_rsp achievement.
  21673. * @member {Array.<game.Iquest>} achievement
  21674. * @memberof game.quest_get_data_rsp
  21675. * @instance
  21676. */
  21677. quest_get_data_rsp.prototype.achievement = $util.emptyArray;
  21678. /**
  21679. * quest_get_data_rsp mainQuest.
  21680. * @member {game.Iquest|null|undefined} mainQuest
  21681. * @memberof game.quest_get_data_rsp
  21682. * @instance
  21683. */
  21684. quest_get_data_rsp.prototype.mainQuest = null;
  21685. /**
  21686. * Creates a new quest_get_data_rsp instance using the specified properties.
  21687. * @function create
  21688. * @memberof game.quest_get_data_rsp
  21689. * @static
  21690. * @param {game.Iquest_get_data_rsp=} [properties] Properties to set
  21691. * @returns {game.quest_get_data_rsp} quest_get_data_rsp instance
  21692. */
  21693. quest_get_data_rsp.create = function create(properties) {
  21694. return new quest_get_data_rsp(properties);
  21695. };
  21696. /**
  21697. * Encodes the specified quest_get_data_rsp message. Does not implicitly {@link game.quest_get_data_rsp.verify|verify} messages.
  21698. * @function encode
  21699. * @memberof game.quest_get_data_rsp
  21700. * @static
  21701. * @param {game.Iquest_get_data_rsp} message quest_get_data_rsp message or plain object to encode
  21702. * @param {$protobuf.Writer} [writer] Writer to encode to
  21703. * @returns {$protobuf.Writer} Writer
  21704. */
  21705. quest_get_data_rsp.encode = function encode(message, writer) {
  21706. if (!writer)
  21707. writer = $Writer.create();
  21708. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  21709. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  21710. if (message.dlv != null && Object.hasOwnProperty.call(message, "dlv"))
  21711. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.dlv);
  21712. if (message.wlv != null && Object.hasOwnProperty.call(message, "wlv"))
  21713. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.wlv);
  21714. if (message.daward != null && Object.hasOwnProperty.call(message, "daward"))
  21715. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.daward);
  21716. if (message.waward != null && Object.hasOwnProperty.call(message, "waward"))
  21717. writer.uint32(/* id 6, wireType 0 =*/48).int64(message.waward);
  21718. if (message.daily != null && message.daily.length)
  21719. for (let i = 0; i < message.daily.length; ++i)
  21720. $root.game.quest.encode(message.daily[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
  21721. if (message.weekly != null && message.weekly.length)
  21722. for (let i = 0; i < message.weekly.length; ++i)
  21723. $root.game.quest.encode(message.weekly[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
  21724. if (message.achievement != null && message.achievement.length)
  21725. for (let i = 0; i < message.achievement.length; ++i)
  21726. $root.game.quest.encode(message.achievement[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
  21727. if (message.mainQuest != null && Object.hasOwnProperty.call(message, "mainQuest"))
  21728. $root.game.quest.encode(message.mainQuest, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
  21729. return writer;
  21730. };
  21731. /**
  21732. * Encodes the specified quest_get_data_rsp message, length delimited. Does not implicitly {@link game.quest_get_data_rsp.verify|verify} messages.
  21733. * @function encodeDelimited
  21734. * @memberof game.quest_get_data_rsp
  21735. * @static
  21736. * @param {game.Iquest_get_data_rsp} message quest_get_data_rsp message or plain object to encode
  21737. * @param {$protobuf.Writer} [writer] Writer to encode to
  21738. * @returns {$protobuf.Writer} Writer
  21739. */
  21740. quest_get_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  21741. return this.encode(message, writer).ldelim();
  21742. };
  21743. /**
  21744. * Decodes a quest_get_data_rsp message from the specified reader or buffer.
  21745. * @function decode
  21746. * @memberof game.quest_get_data_rsp
  21747. * @static
  21748. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  21749. * @param {number} [length] Message length if known beforehand
  21750. * @returns {game.quest_get_data_rsp} quest_get_data_rsp
  21751. * @throws {Error} If the payload is not a reader or valid buffer
  21752. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  21753. */
  21754. quest_get_data_rsp.decode = function decode(reader, length) {
  21755. if (!(reader instanceof $Reader))
  21756. reader = $Reader.create(reader);
  21757. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.quest_get_data_rsp();
  21758. while (reader.pos < end) {
  21759. let tag = reader.uint32();
  21760. switch (tag >>> 3) {
  21761. case 1:
  21762. message.errno = reader.int64();
  21763. break;
  21764. case 2:
  21765. message.dlv = reader.int64();
  21766. break;
  21767. case 3:
  21768. message.wlv = reader.int64();
  21769. break;
  21770. case 4:
  21771. message.daward = reader.int64();
  21772. break;
  21773. case 6:
  21774. message.waward = reader.int64();
  21775. break;
  21776. case 7:
  21777. if (!(message.daily && message.daily.length))
  21778. message.daily = [];
  21779. message.daily.push($root.game.quest.decode(reader, reader.uint32()));
  21780. break;
  21781. case 8:
  21782. if (!(message.weekly && message.weekly.length))
  21783. message.weekly = [];
  21784. message.weekly.push($root.game.quest.decode(reader, reader.uint32()));
  21785. break;
  21786. case 9:
  21787. if (!(message.achievement && message.achievement.length))
  21788. message.achievement = [];
  21789. message.achievement.push($root.game.quest.decode(reader, reader.uint32()));
  21790. break;
  21791. case 10:
  21792. message.mainQuest = $root.game.quest.decode(reader, reader.uint32());
  21793. break;
  21794. default:
  21795. reader.skipType(tag & 7);
  21796. break;
  21797. }
  21798. }
  21799. return message;
  21800. };
  21801. /**
  21802. * Decodes a quest_get_data_rsp message from the specified reader or buffer, length delimited.
  21803. * @function decodeDelimited
  21804. * @memberof game.quest_get_data_rsp
  21805. * @static
  21806. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  21807. * @returns {game.quest_get_data_rsp} quest_get_data_rsp
  21808. * @throws {Error} If the payload is not a reader or valid buffer
  21809. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  21810. */
  21811. quest_get_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  21812. if (!(reader instanceof $Reader))
  21813. reader = new $Reader(reader);
  21814. return this.decode(reader, reader.uint32());
  21815. };
  21816. /**
  21817. * Verifies a quest_get_data_rsp message.
  21818. * @function verify
  21819. * @memberof game.quest_get_data_rsp
  21820. * @static
  21821. * @param {Object.<string,*>} message Plain object to verify
  21822. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  21823. */
  21824. quest_get_data_rsp.verify = function verify(message) {
  21825. if (typeof message !== "object" || message === null)
  21826. return "object expected";
  21827. if (message.errno != null && message.hasOwnProperty("errno"))
  21828. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  21829. return "errno: integer|Long expected";
  21830. if (message.dlv != null && message.hasOwnProperty("dlv"))
  21831. if (!$util.isInteger(message.dlv) && !(message.dlv && $util.isInteger(message.dlv.low) && $util.isInteger(message.dlv.high)))
  21832. return "dlv: integer|Long expected";
  21833. if (message.wlv != null && message.hasOwnProperty("wlv"))
  21834. if (!$util.isInteger(message.wlv) && !(message.wlv && $util.isInteger(message.wlv.low) && $util.isInteger(message.wlv.high)))
  21835. return "wlv: integer|Long expected";
  21836. if (message.daward != null && message.hasOwnProperty("daward"))
  21837. if (!$util.isInteger(message.daward) && !(message.daward && $util.isInteger(message.daward.low) && $util.isInteger(message.daward.high)))
  21838. return "daward: integer|Long expected";
  21839. if (message.waward != null && message.hasOwnProperty("waward"))
  21840. if (!$util.isInteger(message.waward) && !(message.waward && $util.isInteger(message.waward.low) && $util.isInteger(message.waward.high)))
  21841. return "waward: integer|Long expected";
  21842. if (message.daily != null && message.hasOwnProperty("daily")) {
  21843. if (!Array.isArray(message.daily))
  21844. return "daily: array expected";
  21845. for (let i = 0; i < message.daily.length; ++i) {
  21846. let error = $root.game.quest.verify(message.daily[i]);
  21847. if (error)
  21848. return "daily." + error;
  21849. }
  21850. }
  21851. if (message.weekly != null && message.hasOwnProperty("weekly")) {
  21852. if (!Array.isArray(message.weekly))
  21853. return "weekly: array expected";
  21854. for (let i = 0; i < message.weekly.length; ++i) {
  21855. let error = $root.game.quest.verify(message.weekly[i]);
  21856. if (error)
  21857. return "weekly." + error;
  21858. }
  21859. }
  21860. if (message.achievement != null && message.hasOwnProperty("achievement")) {
  21861. if (!Array.isArray(message.achievement))
  21862. return "achievement: array expected";
  21863. for (let i = 0; i < message.achievement.length; ++i) {
  21864. let error = $root.game.quest.verify(message.achievement[i]);
  21865. if (error)
  21866. return "achievement." + error;
  21867. }
  21868. }
  21869. if (message.mainQuest != null && message.hasOwnProperty("mainQuest")) {
  21870. let error = $root.game.quest.verify(message.mainQuest);
  21871. if (error)
  21872. return "mainQuest." + error;
  21873. }
  21874. return null;
  21875. };
  21876. /**
  21877. * Creates a quest_get_data_rsp message from a plain object. Also converts values to their respective internal types.
  21878. * @function fromObject
  21879. * @memberof game.quest_get_data_rsp
  21880. * @static
  21881. * @param {Object.<string,*>} object Plain object
  21882. * @returns {game.quest_get_data_rsp} quest_get_data_rsp
  21883. */
  21884. quest_get_data_rsp.fromObject = function fromObject(object) {
  21885. if (object instanceof $root.game.quest_get_data_rsp)
  21886. return object;
  21887. let message = new $root.game.quest_get_data_rsp();
  21888. if (object.errno != null)
  21889. if ($util.Long)
  21890. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  21891. else if (typeof object.errno === "string")
  21892. message.errno = parseInt(object.errno, 10);
  21893. else if (typeof object.errno === "number")
  21894. message.errno = object.errno;
  21895. else if (typeof object.errno === "object")
  21896. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  21897. if (object.dlv != null)
  21898. if ($util.Long)
  21899. (message.dlv = $util.Long.fromValue(object.dlv)).unsigned = false;
  21900. else if (typeof object.dlv === "string")
  21901. message.dlv = parseInt(object.dlv, 10);
  21902. else if (typeof object.dlv === "number")
  21903. message.dlv = object.dlv;
  21904. else if (typeof object.dlv === "object")
  21905. message.dlv = new $util.LongBits(object.dlv.low >>> 0, object.dlv.high >>> 0).toNumber();
  21906. if (object.wlv != null)
  21907. if ($util.Long)
  21908. (message.wlv = $util.Long.fromValue(object.wlv)).unsigned = false;
  21909. else if (typeof object.wlv === "string")
  21910. message.wlv = parseInt(object.wlv, 10);
  21911. else if (typeof object.wlv === "number")
  21912. message.wlv = object.wlv;
  21913. else if (typeof object.wlv === "object")
  21914. message.wlv = new $util.LongBits(object.wlv.low >>> 0, object.wlv.high >>> 0).toNumber();
  21915. if (object.daward != null)
  21916. if ($util.Long)
  21917. (message.daward = $util.Long.fromValue(object.daward)).unsigned = false;
  21918. else if (typeof object.daward === "string")
  21919. message.daward = parseInt(object.daward, 10);
  21920. else if (typeof object.daward === "number")
  21921. message.daward = object.daward;
  21922. else if (typeof object.daward === "object")
  21923. message.daward = new $util.LongBits(object.daward.low >>> 0, object.daward.high >>> 0).toNumber();
  21924. if (object.waward != null)
  21925. if ($util.Long)
  21926. (message.waward = $util.Long.fromValue(object.waward)).unsigned = false;
  21927. else if (typeof object.waward === "string")
  21928. message.waward = parseInt(object.waward, 10);
  21929. else if (typeof object.waward === "number")
  21930. message.waward = object.waward;
  21931. else if (typeof object.waward === "object")
  21932. message.waward = new $util.LongBits(object.waward.low >>> 0, object.waward.high >>> 0).toNumber();
  21933. if (object.daily) {
  21934. if (!Array.isArray(object.daily))
  21935. throw TypeError(".game.quest_get_data_rsp.daily: array expected");
  21936. message.daily = [];
  21937. for (let i = 0; i < object.daily.length; ++i) {
  21938. if (typeof object.daily[i] !== "object")
  21939. throw TypeError(".game.quest_get_data_rsp.daily: object expected");
  21940. message.daily[i] = $root.game.quest.fromObject(object.daily[i]);
  21941. }
  21942. }
  21943. if (object.weekly) {
  21944. if (!Array.isArray(object.weekly))
  21945. throw TypeError(".game.quest_get_data_rsp.weekly: array expected");
  21946. message.weekly = [];
  21947. for (let i = 0; i < object.weekly.length; ++i) {
  21948. if (typeof object.weekly[i] !== "object")
  21949. throw TypeError(".game.quest_get_data_rsp.weekly: object expected");
  21950. message.weekly[i] = $root.game.quest.fromObject(object.weekly[i]);
  21951. }
  21952. }
  21953. if (object.achievement) {
  21954. if (!Array.isArray(object.achievement))
  21955. throw TypeError(".game.quest_get_data_rsp.achievement: array expected");
  21956. message.achievement = [];
  21957. for (let i = 0; i < object.achievement.length; ++i) {
  21958. if (typeof object.achievement[i] !== "object")
  21959. throw TypeError(".game.quest_get_data_rsp.achievement: object expected");
  21960. message.achievement[i] = $root.game.quest.fromObject(object.achievement[i]);
  21961. }
  21962. }
  21963. if (object.mainQuest != null) {
  21964. if (typeof object.mainQuest !== "object")
  21965. throw TypeError(".game.quest_get_data_rsp.mainQuest: object expected");
  21966. message.mainQuest = $root.game.quest.fromObject(object.mainQuest);
  21967. }
  21968. return message;
  21969. };
  21970. /**
  21971. * Creates a plain object from a quest_get_data_rsp message. Also converts values to other types if specified.
  21972. * @function toObject
  21973. * @memberof game.quest_get_data_rsp
  21974. * @static
  21975. * @param {game.quest_get_data_rsp} message quest_get_data_rsp
  21976. * @param {$protobuf.IConversionOptions} [options] Conversion options
  21977. * @returns {Object.<string,*>} Plain object
  21978. */
  21979. quest_get_data_rsp.toObject = function toObject(message, options) {
  21980. if (!options)
  21981. options = {};
  21982. let object = {};
  21983. if (options.arrays || options.defaults) {
  21984. object.daily = [];
  21985. object.weekly = [];
  21986. object.achievement = [];
  21987. }
  21988. if (options.defaults) {
  21989. if ($util.Long) {
  21990. let long = new $util.Long(0, 0, false);
  21991. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  21992. } else
  21993. object.errno = options.longs === String ? "0" : 0;
  21994. if ($util.Long) {
  21995. let long = new $util.Long(0, 0, false);
  21996. object.dlv = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  21997. } else
  21998. object.dlv = options.longs === String ? "0" : 0;
  21999. if ($util.Long) {
  22000. let long = new $util.Long(0, 0, false);
  22001. object.wlv = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  22002. } else
  22003. object.wlv = options.longs === String ? "0" : 0;
  22004. if ($util.Long) {
  22005. let long = new $util.Long(0, 0, false);
  22006. object.daward = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  22007. } else
  22008. object.daward = options.longs === String ? "0" : 0;
  22009. if ($util.Long) {
  22010. let long = new $util.Long(0, 0, false);
  22011. object.waward = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  22012. } else
  22013. object.waward = options.longs === String ? "0" : 0;
  22014. object.mainQuest = null;
  22015. }
  22016. if (message.errno != null && message.hasOwnProperty("errno"))
  22017. if (typeof message.errno === "number")
  22018. object.errno = options.longs === String ? String(message.errno) : message.errno;
  22019. else
  22020. 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;
  22021. if (message.dlv != null && message.hasOwnProperty("dlv"))
  22022. if (typeof message.dlv === "number")
  22023. object.dlv = options.longs === String ? String(message.dlv) : message.dlv;
  22024. else
  22025. 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;
  22026. if (message.wlv != null && message.hasOwnProperty("wlv"))
  22027. if (typeof message.wlv === "number")
  22028. object.wlv = options.longs === String ? String(message.wlv) : message.wlv;
  22029. else
  22030. 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;
  22031. if (message.daward != null && message.hasOwnProperty("daward"))
  22032. if (typeof message.daward === "number")
  22033. object.daward = options.longs === String ? String(message.daward) : message.daward;
  22034. else
  22035. 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;
  22036. if (message.waward != null && message.hasOwnProperty("waward"))
  22037. if (typeof message.waward === "number")
  22038. object.waward = options.longs === String ? String(message.waward) : message.waward;
  22039. else
  22040. 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;
  22041. if (message.daily && message.daily.length) {
  22042. object.daily = [];
  22043. for (let j = 0; j < message.daily.length; ++j)
  22044. object.daily[j] = $root.game.quest.toObject(message.daily[j], options);
  22045. }
  22046. if (message.weekly && message.weekly.length) {
  22047. object.weekly = [];
  22048. for (let j = 0; j < message.weekly.length; ++j)
  22049. object.weekly[j] = $root.game.quest.toObject(message.weekly[j], options);
  22050. }
  22051. if (message.achievement && message.achievement.length) {
  22052. object.achievement = [];
  22053. for (let j = 0; j < message.achievement.length; ++j)
  22054. object.achievement[j] = $root.game.quest.toObject(message.achievement[j], options);
  22055. }
  22056. if (message.mainQuest != null && message.hasOwnProperty("mainQuest"))
  22057. object.mainQuest = $root.game.quest.toObject(message.mainQuest, options);
  22058. return object;
  22059. };
  22060. /**
  22061. * Converts this quest_get_data_rsp to JSON.
  22062. * @function toJSON
  22063. * @memberof game.quest_get_data_rsp
  22064. * @instance
  22065. * @returns {Object.<string,*>} JSON object
  22066. */
  22067. quest_get_data_rsp.prototype.toJSON = function toJSON() {
  22068. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  22069. };
  22070. return quest_get_data_rsp;
  22071. })();
  22072. game.quest_get_award = (function() {
  22073. /**
  22074. * Properties of a quest_get_award.
  22075. * @memberof game
  22076. * @interface Iquest_get_award
  22077. * @property {number|Long|null} [id] quest_get_award id
  22078. */
  22079. /**
  22080. * Constructs a new quest_get_award.
  22081. * @memberof game
  22082. * @classdesc Represents a quest_get_award.
  22083. * @implements Iquest_get_award
  22084. * @constructor
  22085. * @param {game.Iquest_get_award=} [properties] Properties to set
  22086. */
  22087. function quest_get_award(properties) {
  22088. if (properties)
  22089. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  22090. if (properties[keys[i]] != null)
  22091. this[keys[i]] = properties[keys[i]];
  22092. }
  22093. /**
  22094. * quest_get_award id.
  22095. * @member {number|Long} id
  22096. * @memberof game.quest_get_award
  22097. * @instance
  22098. */
  22099. quest_get_award.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  22100. /**
  22101. * Creates a new quest_get_award instance using the specified properties.
  22102. * @function create
  22103. * @memberof game.quest_get_award
  22104. * @static
  22105. * @param {game.Iquest_get_award=} [properties] Properties to set
  22106. * @returns {game.quest_get_award} quest_get_award instance
  22107. */
  22108. quest_get_award.create = function create(properties) {
  22109. return new quest_get_award(properties);
  22110. };
  22111. /**
  22112. * Encodes the specified quest_get_award message. Does not implicitly {@link game.quest_get_award.verify|verify} messages.
  22113. * @function encode
  22114. * @memberof game.quest_get_award
  22115. * @static
  22116. * @param {game.Iquest_get_award} message quest_get_award message or plain object to encode
  22117. * @param {$protobuf.Writer} [writer] Writer to encode to
  22118. * @returns {$protobuf.Writer} Writer
  22119. */
  22120. quest_get_award.encode = function encode(message, writer) {
  22121. if (!writer)
  22122. writer = $Writer.create();
  22123. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  22124. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  22125. return writer;
  22126. };
  22127. /**
  22128. * Encodes the specified quest_get_award message, length delimited. Does not implicitly {@link game.quest_get_award.verify|verify} messages.
  22129. * @function encodeDelimited
  22130. * @memberof game.quest_get_award
  22131. * @static
  22132. * @param {game.Iquest_get_award} message quest_get_award message or plain object to encode
  22133. * @param {$protobuf.Writer} [writer] Writer to encode to
  22134. * @returns {$protobuf.Writer} Writer
  22135. */
  22136. quest_get_award.encodeDelimited = function encodeDelimited(message, writer) {
  22137. return this.encode(message, writer).ldelim();
  22138. };
  22139. /**
  22140. * Decodes a quest_get_award message from the specified reader or buffer.
  22141. * @function decode
  22142. * @memberof game.quest_get_award
  22143. * @static
  22144. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  22145. * @param {number} [length] Message length if known beforehand
  22146. * @returns {game.quest_get_award} quest_get_award
  22147. * @throws {Error} If the payload is not a reader or valid buffer
  22148. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  22149. */
  22150. quest_get_award.decode = function decode(reader, length) {
  22151. if (!(reader instanceof $Reader))
  22152. reader = $Reader.create(reader);
  22153. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.quest_get_award();
  22154. while (reader.pos < end) {
  22155. let tag = reader.uint32();
  22156. switch (tag >>> 3) {
  22157. case 1:
  22158. message.id = reader.int64();
  22159. break;
  22160. default:
  22161. reader.skipType(tag & 7);
  22162. break;
  22163. }
  22164. }
  22165. return message;
  22166. };
  22167. /**
  22168. * Decodes a quest_get_award message from the specified reader or buffer, length delimited.
  22169. * @function decodeDelimited
  22170. * @memberof game.quest_get_award
  22171. * @static
  22172. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  22173. * @returns {game.quest_get_award} quest_get_award
  22174. * @throws {Error} If the payload is not a reader or valid buffer
  22175. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  22176. */
  22177. quest_get_award.decodeDelimited = function decodeDelimited(reader) {
  22178. if (!(reader instanceof $Reader))
  22179. reader = new $Reader(reader);
  22180. return this.decode(reader, reader.uint32());
  22181. };
  22182. /**
  22183. * Verifies a quest_get_award message.
  22184. * @function verify
  22185. * @memberof game.quest_get_award
  22186. * @static
  22187. * @param {Object.<string,*>} message Plain object to verify
  22188. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  22189. */
  22190. quest_get_award.verify = function verify(message) {
  22191. if (typeof message !== "object" || message === null)
  22192. return "object expected";
  22193. if (message.id != null && message.hasOwnProperty("id"))
  22194. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  22195. return "id: integer|Long expected";
  22196. return null;
  22197. };
  22198. /**
  22199. * Creates a quest_get_award message from a plain object. Also converts values to their respective internal types.
  22200. * @function fromObject
  22201. * @memberof game.quest_get_award
  22202. * @static
  22203. * @param {Object.<string,*>} object Plain object
  22204. * @returns {game.quest_get_award} quest_get_award
  22205. */
  22206. quest_get_award.fromObject = function fromObject(object) {
  22207. if (object instanceof $root.game.quest_get_award)
  22208. return object;
  22209. let message = new $root.game.quest_get_award();
  22210. if (object.id != null)
  22211. if ($util.Long)
  22212. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  22213. else if (typeof object.id === "string")
  22214. message.id = parseInt(object.id, 10);
  22215. else if (typeof object.id === "number")
  22216. message.id = object.id;
  22217. else if (typeof object.id === "object")
  22218. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  22219. return message;
  22220. };
  22221. /**
  22222. * Creates a plain object from a quest_get_award message. Also converts values to other types if specified.
  22223. * @function toObject
  22224. * @memberof game.quest_get_award
  22225. * @static
  22226. * @param {game.quest_get_award} message quest_get_award
  22227. * @param {$protobuf.IConversionOptions} [options] Conversion options
  22228. * @returns {Object.<string,*>} Plain object
  22229. */
  22230. quest_get_award.toObject = function toObject(message, options) {
  22231. if (!options)
  22232. options = {};
  22233. let object = {};
  22234. if (options.defaults)
  22235. if ($util.Long) {
  22236. let long = new $util.Long(0, 0, false);
  22237. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  22238. } else
  22239. object.id = options.longs === String ? "0" : 0;
  22240. if (message.id != null && message.hasOwnProperty("id"))
  22241. if (typeof message.id === "number")
  22242. object.id = options.longs === String ? String(message.id) : message.id;
  22243. else
  22244. 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;
  22245. return object;
  22246. };
  22247. /**
  22248. * Converts this quest_get_award to JSON.
  22249. * @function toJSON
  22250. * @memberof game.quest_get_award
  22251. * @instance
  22252. * @returns {Object.<string,*>} JSON object
  22253. */
  22254. quest_get_award.prototype.toJSON = function toJSON() {
  22255. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  22256. };
  22257. return quest_get_award;
  22258. })();
  22259. game.quest_get_award_rsp = (function() {
  22260. /**
  22261. * Properties of a quest_get_award_rsp.
  22262. * @memberof game
  22263. * @interface Iquest_get_award_rsp
  22264. * @property {number|Long|null} [errno] quest_get_award_rsp errno
  22265. * @property {number|Long|null} [id] quest_get_award_rsp id
  22266. * @property {game.Iquest|null} [data] quest_get_award_rsp data
  22267. */
  22268. /**
  22269. * Constructs a new quest_get_award_rsp.
  22270. * @memberof game
  22271. * @classdesc Represents a quest_get_award_rsp.
  22272. * @implements Iquest_get_award_rsp
  22273. * @constructor
  22274. * @param {game.Iquest_get_award_rsp=} [properties] Properties to set
  22275. */
  22276. function quest_get_award_rsp(properties) {
  22277. if (properties)
  22278. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  22279. if (properties[keys[i]] != null)
  22280. this[keys[i]] = properties[keys[i]];
  22281. }
  22282. /**
  22283. * quest_get_award_rsp errno.
  22284. * @member {number|Long} errno
  22285. * @memberof game.quest_get_award_rsp
  22286. * @instance
  22287. */
  22288. quest_get_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  22289. /**
  22290. * quest_get_award_rsp id.
  22291. * @member {number|Long} id
  22292. * @memberof game.quest_get_award_rsp
  22293. * @instance
  22294. */
  22295. quest_get_award_rsp.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  22296. /**
  22297. * quest_get_award_rsp data.
  22298. * @member {game.Iquest|null|undefined} data
  22299. * @memberof game.quest_get_award_rsp
  22300. * @instance
  22301. */
  22302. quest_get_award_rsp.prototype.data = null;
  22303. /**
  22304. * Creates a new quest_get_award_rsp instance using the specified properties.
  22305. * @function create
  22306. * @memberof game.quest_get_award_rsp
  22307. * @static
  22308. * @param {game.Iquest_get_award_rsp=} [properties] Properties to set
  22309. * @returns {game.quest_get_award_rsp} quest_get_award_rsp instance
  22310. */
  22311. quest_get_award_rsp.create = function create(properties) {
  22312. return new quest_get_award_rsp(properties);
  22313. };
  22314. /**
  22315. * Encodes the specified quest_get_award_rsp message. Does not implicitly {@link game.quest_get_award_rsp.verify|verify} messages.
  22316. * @function encode
  22317. * @memberof game.quest_get_award_rsp
  22318. * @static
  22319. * @param {game.Iquest_get_award_rsp} message quest_get_award_rsp message or plain object to encode
  22320. * @param {$protobuf.Writer} [writer] Writer to encode to
  22321. * @returns {$protobuf.Writer} Writer
  22322. */
  22323. quest_get_award_rsp.encode = function encode(message, writer) {
  22324. if (!writer)
  22325. writer = $Writer.create();
  22326. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  22327. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  22328. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  22329. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id);
  22330. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  22331. $root.game.quest.encode(message.data, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
  22332. return writer;
  22333. };
  22334. /**
  22335. * Encodes the specified quest_get_award_rsp message, length delimited. Does not implicitly {@link game.quest_get_award_rsp.verify|verify} messages.
  22336. * @function encodeDelimited
  22337. * @memberof game.quest_get_award_rsp
  22338. * @static
  22339. * @param {game.Iquest_get_award_rsp} message quest_get_award_rsp message or plain object to encode
  22340. * @param {$protobuf.Writer} [writer] Writer to encode to
  22341. * @returns {$protobuf.Writer} Writer
  22342. */
  22343. quest_get_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  22344. return this.encode(message, writer).ldelim();
  22345. };
  22346. /**
  22347. * Decodes a quest_get_award_rsp message from the specified reader or buffer.
  22348. * @function decode
  22349. * @memberof game.quest_get_award_rsp
  22350. * @static
  22351. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  22352. * @param {number} [length] Message length if known beforehand
  22353. * @returns {game.quest_get_award_rsp} quest_get_award_rsp
  22354. * @throws {Error} If the payload is not a reader or valid buffer
  22355. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  22356. */
  22357. quest_get_award_rsp.decode = function decode(reader, length) {
  22358. if (!(reader instanceof $Reader))
  22359. reader = $Reader.create(reader);
  22360. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.quest_get_award_rsp();
  22361. while (reader.pos < end) {
  22362. let tag = reader.uint32();
  22363. switch (tag >>> 3) {
  22364. case 1:
  22365. message.errno = reader.int64();
  22366. break;
  22367. case 2:
  22368. message.id = reader.int64();
  22369. break;
  22370. case 3:
  22371. message.data = $root.game.quest.decode(reader, reader.uint32());
  22372. break;
  22373. default:
  22374. reader.skipType(tag & 7);
  22375. break;
  22376. }
  22377. }
  22378. return message;
  22379. };
  22380. /**
  22381. * Decodes a quest_get_award_rsp message from the specified reader or buffer, length delimited.
  22382. * @function decodeDelimited
  22383. * @memberof game.quest_get_award_rsp
  22384. * @static
  22385. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  22386. * @returns {game.quest_get_award_rsp} quest_get_award_rsp
  22387. * @throws {Error} If the payload is not a reader or valid buffer
  22388. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  22389. */
  22390. quest_get_award_rsp.decodeDelimited = function decodeDelimited(reader) {
  22391. if (!(reader instanceof $Reader))
  22392. reader = new $Reader(reader);
  22393. return this.decode(reader, reader.uint32());
  22394. };
  22395. /**
  22396. * Verifies a quest_get_award_rsp message.
  22397. * @function verify
  22398. * @memberof game.quest_get_award_rsp
  22399. * @static
  22400. * @param {Object.<string,*>} message Plain object to verify
  22401. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  22402. */
  22403. quest_get_award_rsp.verify = function verify(message) {
  22404. if (typeof message !== "object" || message === null)
  22405. return "object expected";
  22406. if (message.errno != null && message.hasOwnProperty("errno"))
  22407. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  22408. return "errno: integer|Long expected";
  22409. if (message.id != null && message.hasOwnProperty("id"))
  22410. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  22411. return "id: integer|Long expected";
  22412. if (message.data != null && message.hasOwnProperty("data")) {
  22413. let error = $root.game.quest.verify(message.data);
  22414. if (error)
  22415. return "data." + error;
  22416. }
  22417. return null;
  22418. };
  22419. /**
  22420. * Creates a quest_get_award_rsp message from a plain object. Also converts values to their respective internal types.
  22421. * @function fromObject
  22422. * @memberof game.quest_get_award_rsp
  22423. * @static
  22424. * @param {Object.<string,*>} object Plain object
  22425. * @returns {game.quest_get_award_rsp} quest_get_award_rsp
  22426. */
  22427. quest_get_award_rsp.fromObject = function fromObject(object) {
  22428. if (object instanceof $root.game.quest_get_award_rsp)
  22429. return object;
  22430. let message = new $root.game.quest_get_award_rsp();
  22431. if (object.errno != null)
  22432. if ($util.Long)
  22433. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  22434. else if (typeof object.errno === "string")
  22435. message.errno = parseInt(object.errno, 10);
  22436. else if (typeof object.errno === "number")
  22437. message.errno = object.errno;
  22438. else if (typeof object.errno === "object")
  22439. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  22440. if (object.id != null)
  22441. if ($util.Long)
  22442. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  22443. else if (typeof object.id === "string")
  22444. message.id = parseInt(object.id, 10);
  22445. else if (typeof object.id === "number")
  22446. message.id = object.id;
  22447. else if (typeof object.id === "object")
  22448. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  22449. if (object.data != null) {
  22450. if (typeof object.data !== "object")
  22451. throw TypeError(".game.quest_get_award_rsp.data: object expected");
  22452. message.data = $root.game.quest.fromObject(object.data);
  22453. }
  22454. return message;
  22455. };
  22456. /**
  22457. * Creates a plain object from a quest_get_award_rsp message. Also converts values to other types if specified.
  22458. * @function toObject
  22459. * @memberof game.quest_get_award_rsp
  22460. * @static
  22461. * @param {game.quest_get_award_rsp} message quest_get_award_rsp
  22462. * @param {$protobuf.IConversionOptions} [options] Conversion options
  22463. * @returns {Object.<string,*>} Plain object
  22464. */
  22465. quest_get_award_rsp.toObject = function toObject(message, options) {
  22466. if (!options)
  22467. options = {};
  22468. let object = {};
  22469. if (options.defaults) {
  22470. if ($util.Long) {
  22471. let long = new $util.Long(0, 0, false);
  22472. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  22473. } else
  22474. object.errno = options.longs === String ? "0" : 0;
  22475. if ($util.Long) {
  22476. let long = new $util.Long(0, 0, false);
  22477. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  22478. } else
  22479. object.id = options.longs === String ? "0" : 0;
  22480. object.data = null;
  22481. }
  22482. if (message.errno != null && message.hasOwnProperty("errno"))
  22483. if (typeof message.errno === "number")
  22484. object.errno = options.longs === String ? String(message.errno) : message.errno;
  22485. else
  22486. 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;
  22487. if (message.id != null && message.hasOwnProperty("id"))
  22488. if (typeof message.id === "number")
  22489. object.id = options.longs === String ? String(message.id) : message.id;
  22490. else
  22491. 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;
  22492. if (message.data != null && message.hasOwnProperty("data"))
  22493. object.data = $root.game.quest.toObject(message.data, options);
  22494. return object;
  22495. };
  22496. /**
  22497. * Converts this quest_get_award_rsp to JSON.
  22498. * @function toJSON
  22499. * @memberof game.quest_get_award_rsp
  22500. * @instance
  22501. * @returns {Object.<string,*>} JSON object
  22502. */
  22503. quest_get_award_rsp.prototype.toJSON = function toJSON() {
  22504. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  22505. };
  22506. return quest_get_award_rsp;
  22507. })();
  22508. game.quest_active_award = (function() {
  22509. /**
  22510. * Properties of a quest_active_award.
  22511. * @memberof game
  22512. * @interface Iquest_active_award
  22513. * @property {number|Long|null} [type] quest_active_award type
  22514. */
  22515. /**
  22516. * Constructs a new quest_active_award.
  22517. * @memberof game
  22518. * @classdesc Represents a quest_active_award.
  22519. * @implements Iquest_active_award
  22520. * @constructor
  22521. * @param {game.Iquest_active_award=} [properties] Properties to set
  22522. */
  22523. function quest_active_award(properties) {
  22524. if (properties)
  22525. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  22526. if (properties[keys[i]] != null)
  22527. this[keys[i]] = properties[keys[i]];
  22528. }
  22529. /**
  22530. * quest_active_award type.
  22531. * @member {number|Long} type
  22532. * @memberof game.quest_active_award
  22533. * @instance
  22534. */
  22535. quest_active_award.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  22536. /**
  22537. * Creates a new quest_active_award instance using the specified properties.
  22538. * @function create
  22539. * @memberof game.quest_active_award
  22540. * @static
  22541. * @param {game.Iquest_active_award=} [properties] Properties to set
  22542. * @returns {game.quest_active_award} quest_active_award instance
  22543. */
  22544. quest_active_award.create = function create(properties) {
  22545. return new quest_active_award(properties);
  22546. };
  22547. /**
  22548. * Encodes the specified quest_active_award message. Does not implicitly {@link game.quest_active_award.verify|verify} messages.
  22549. * @function encode
  22550. * @memberof game.quest_active_award
  22551. * @static
  22552. * @param {game.Iquest_active_award} message quest_active_award message or plain object to encode
  22553. * @param {$protobuf.Writer} [writer] Writer to encode to
  22554. * @returns {$protobuf.Writer} Writer
  22555. */
  22556. quest_active_award.encode = function encode(message, writer) {
  22557. if (!writer)
  22558. writer = $Writer.create();
  22559. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  22560. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
  22561. return writer;
  22562. };
  22563. /**
  22564. * Encodes the specified quest_active_award message, length delimited. Does not implicitly {@link game.quest_active_award.verify|verify} messages.
  22565. * @function encodeDelimited
  22566. * @memberof game.quest_active_award
  22567. * @static
  22568. * @param {game.Iquest_active_award} message quest_active_award message or plain object to encode
  22569. * @param {$protobuf.Writer} [writer] Writer to encode to
  22570. * @returns {$protobuf.Writer} Writer
  22571. */
  22572. quest_active_award.encodeDelimited = function encodeDelimited(message, writer) {
  22573. return this.encode(message, writer).ldelim();
  22574. };
  22575. /**
  22576. * Decodes a quest_active_award message from the specified reader or buffer.
  22577. * @function decode
  22578. * @memberof game.quest_active_award
  22579. * @static
  22580. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  22581. * @param {number} [length] Message length if known beforehand
  22582. * @returns {game.quest_active_award} quest_active_award
  22583. * @throws {Error} If the payload is not a reader or valid buffer
  22584. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  22585. */
  22586. quest_active_award.decode = function decode(reader, length) {
  22587. if (!(reader instanceof $Reader))
  22588. reader = $Reader.create(reader);
  22589. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.quest_active_award();
  22590. while (reader.pos < end) {
  22591. let tag = reader.uint32();
  22592. switch (tag >>> 3) {
  22593. case 1:
  22594. message.type = reader.int64();
  22595. break;
  22596. default:
  22597. reader.skipType(tag & 7);
  22598. break;
  22599. }
  22600. }
  22601. return message;
  22602. };
  22603. /**
  22604. * Decodes a quest_active_award message from the specified reader or buffer, length delimited.
  22605. * @function decodeDelimited
  22606. * @memberof game.quest_active_award
  22607. * @static
  22608. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  22609. * @returns {game.quest_active_award} quest_active_award
  22610. * @throws {Error} If the payload is not a reader or valid buffer
  22611. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  22612. */
  22613. quest_active_award.decodeDelimited = function decodeDelimited(reader) {
  22614. if (!(reader instanceof $Reader))
  22615. reader = new $Reader(reader);
  22616. return this.decode(reader, reader.uint32());
  22617. };
  22618. /**
  22619. * Verifies a quest_active_award message.
  22620. * @function verify
  22621. * @memberof game.quest_active_award
  22622. * @static
  22623. * @param {Object.<string,*>} message Plain object to verify
  22624. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  22625. */
  22626. quest_active_award.verify = function verify(message) {
  22627. if (typeof message !== "object" || message === null)
  22628. return "object expected";
  22629. if (message.type != null && message.hasOwnProperty("type"))
  22630. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  22631. return "type: integer|Long expected";
  22632. return null;
  22633. };
  22634. /**
  22635. * Creates a quest_active_award message from a plain object. Also converts values to their respective internal types.
  22636. * @function fromObject
  22637. * @memberof game.quest_active_award
  22638. * @static
  22639. * @param {Object.<string,*>} object Plain object
  22640. * @returns {game.quest_active_award} quest_active_award
  22641. */
  22642. quest_active_award.fromObject = function fromObject(object) {
  22643. if (object instanceof $root.game.quest_active_award)
  22644. return object;
  22645. let message = new $root.game.quest_active_award();
  22646. if (object.type != null)
  22647. if ($util.Long)
  22648. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  22649. else if (typeof object.type === "string")
  22650. message.type = parseInt(object.type, 10);
  22651. else if (typeof object.type === "number")
  22652. message.type = object.type;
  22653. else if (typeof object.type === "object")
  22654. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  22655. return message;
  22656. };
  22657. /**
  22658. * Creates a plain object from a quest_active_award message. Also converts values to other types if specified.
  22659. * @function toObject
  22660. * @memberof game.quest_active_award
  22661. * @static
  22662. * @param {game.quest_active_award} message quest_active_award
  22663. * @param {$protobuf.IConversionOptions} [options] Conversion options
  22664. * @returns {Object.<string,*>} Plain object
  22665. */
  22666. quest_active_award.toObject = function toObject(message, options) {
  22667. if (!options)
  22668. options = {};
  22669. let object = {};
  22670. if (options.defaults)
  22671. if ($util.Long) {
  22672. let long = new $util.Long(0, 0, false);
  22673. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  22674. } else
  22675. object.type = options.longs === String ? "0" : 0;
  22676. if (message.type != null && message.hasOwnProperty("type"))
  22677. if (typeof message.type === "number")
  22678. object.type = options.longs === String ? String(message.type) : message.type;
  22679. else
  22680. 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;
  22681. return object;
  22682. };
  22683. /**
  22684. * Converts this quest_active_award to JSON.
  22685. * @function toJSON
  22686. * @memberof game.quest_active_award
  22687. * @instance
  22688. * @returns {Object.<string,*>} JSON object
  22689. */
  22690. quest_active_award.prototype.toJSON = function toJSON() {
  22691. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  22692. };
  22693. return quest_active_award;
  22694. })();
  22695. game.quest_active_award_rsp = (function() {
  22696. /**
  22697. * Properties of a quest_active_award_rsp.
  22698. * @memberof game
  22699. * @interface Iquest_active_award_rsp
  22700. * @property {number|Long|null} [errno] quest_active_award_rsp errno
  22701. * @property {number|Long|null} [type] quest_active_award_rsp type
  22702. * @property {number|Long|null} [award] quest_active_award_rsp award
  22703. */
  22704. /**
  22705. * Constructs a new quest_active_award_rsp.
  22706. * @memberof game
  22707. * @classdesc Represents a quest_active_award_rsp.
  22708. * @implements Iquest_active_award_rsp
  22709. * @constructor
  22710. * @param {game.Iquest_active_award_rsp=} [properties] Properties to set
  22711. */
  22712. function quest_active_award_rsp(properties) {
  22713. if (properties)
  22714. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  22715. if (properties[keys[i]] != null)
  22716. this[keys[i]] = properties[keys[i]];
  22717. }
  22718. /**
  22719. * quest_active_award_rsp errno.
  22720. * @member {number|Long} errno
  22721. * @memberof game.quest_active_award_rsp
  22722. * @instance
  22723. */
  22724. quest_active_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  22725. /**
  22726. * quest_active_award_rsp type.
  22727. * @member {number|Long} type
  22728. * @memberof game.quest_active_award_rsp
  22729. * @instance
  22730. */
  22731. quest_active_award_rsp.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  22732. /**
  22733. * quest_active_award_rsp award.
  22734. * @member {number|Long} award
  22735. * @memberof game.quest_active_award_rsp
  22736. * @instance
  22737. */
  22738. quest_active_award_rsp.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  22739. /**
  22740. * Creates a new quest_active_award_rsp instance using the specified properties.
  22741. * @function create
  22742. * @memberof game.quest_active_award_rsp
  22743. * @static
  22744. * @param {game.Iquest_active_award_rsp=} [properties] Properties to set
  22745. * @returns {game.quest_active_award_rsp} quest_active_award_rsp instance
  22746. */
  22747. quest_active_award_rsp.create = function create(properties) {
  22748. return new quest_active_award_rsp(properties);
  22749. };
  22750. /**
  22751. * Encodes the specified quest_active_award_rsp message. Does not implicitly {@link game.quest_active_award_rsp.verify|verify} messages.
  22752. * @function encode
  22753. * @memberof game.quest_active_award_rsp
  22754. * @static
  22755. * @param {game.Iquest_active_award_rsp} message quest_active_award_rsp message or plain object to encode
  22756. * @param {$protobuf.Writer} [writer] Writer to encode to
  22757. * @returns {$protobuf.Writer} Writer
  22758. */
  22759. quest_active_award_rsp.encode = function encode(message, writer) {
  22760. if (!writer)
  22761. writer = $Writer.create();
  22762. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  22763. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  22764. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  22765. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.type);
  22766. if (message.award != null && Object.hasOwnProperty.call(message, "award"))
  22767. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.award);
  22768. return writer;
  22769. };
  22770. /**
  22771. * Encodes the specified quest_active_award_rsp message, length delimited. Does not implicitly {@link game.quest_active_award_rsp.verify|verify} messages.
  22772. * @function encodeDelimited
  22773. * @memberof game.quest_active_award_rsp
  22774. * @static
  22775. * @param {game.Iquest_active_award_rsp} message quest_active_award_rsp message or plain object to encode
  22776. * @param {$protobuf.Writer} [writer] Writer to encode to
  22777. * @returns {$protobuf.Writer} Writer
  22778. */
  22779. quest_active_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  22780. return this.encode(message, writer).ldelim();
  22781. };
  22782. /**
  22783. * Decodes a quest_active_award_rsp message from the specified reader or buffer.
  22784. * @function decode
  22785. * @memberof game.quest_active_award_rsp
  22786. * @static
  22787. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  22788. * @param {number} [length] Message length if known beforehand
  22789. * @returns {game.quest_active_award_rsp} quest_active_award_rsp
  22790. * @throws {Error} If the payload is not a reader or valid buffer
  22791. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  22792. */
  22793. quest_active_award_rsp.decode = function decode(reader, length) {
  22794. if (!(reader instanceof $Reader))
  22795. reader = $Reader.create(reader);
  22796. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.quest_active_award_rsp();
  22797. while (reader.pos < end) {
  22798. let tag = reader.uint32();
  22799. switch (tag >>> 3) {
  22800. case 1:
  22801. message.errno = reader.int64();
  22802. break;
  22803. case 2:
  22804. message.type = reader.int64();
  22805. break;
  22806. case 3:
  22807. message.award = reader.int64();
  22808. break;
  22809. default:
  22810. reader.skipType(tag & 7);
  22811. break;
  22812. }
  22813. }
  22814. return message;
  22815. };
  22816. /**
  22817. * Decodes a quest_active_award_rsp message from the specified reader or buffer, length delimited.
  22818. * @function decodeDelimited
  22819. * @memberof game.quest_active_award_rsp
  22820. * @static
  22821. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  22822. * @returns {game.quest_active_award_rsp} quest_active_award_rsp
  22823. * @throws {Error} If the payload is not a reader or valid buffer
  22824. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  22825. */
  22826. quest_active_award_rsp.decodeDelimited = function decodeDelimited(reader) {
  22827. if (!(reader instanceof $Reader))
  22828. reader = new $Reader(reader);
  22829. return this.decode(reader, reader.uint32());
  22830. };
  22831. /**
  22832. * Verifies a quest_active_award_rsp message.
  22833. * @function verify
  22834. * @memberof game.quest_active_award_rsp
  22835. * @static
  22836. * @param {Object.<string,*>} message Plain object to verify
  22837. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  22838. */
  22839. quest_active_award_rsp.verify = function verify(message) {
  22840. if (typeof message !== "object" || message === null)
  22841. return "object expected";
  22842. if (message.errno != null && message.hasOwnProperty("errno"))
  22843. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  22844. return "errno: integer|Long expected";
  22845. if (message.type != null && message.hasOwnProperty("type"))
  22846. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  22847. return "type: integer|Long expected";
  22848. if (message.award != null && message.hasOwnProperty("award"))
  22849. if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
  22850. return "award: integer|Long expected";
  22851. return null;
  22852. };
  22853. /**
  22854. * Creates a quest_active_award_rsp message from a plain object. Also converts values to their respective internal types.
  22855. * @function fromObject
  22856. * @memberof game.quest_active_award_rsp
  22857. * @static
  22858. * @param {Object.<string,*>} object Plain object
  22859. * @returns {game.quest_active_award_rsp} quest_active_award_rsp
  22860. */
  22861. quest_active_award_rsp.fromObject = function fromObject(object) {
  22862. if (object instanceof $root.game.quest_active_award_rsp)
  22863. return object;
  22864. let message = new $root.game.quest_active_award_rsp();
  22865. if (object.errno != null)
  22866. if ($util.Long)
  22867. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  22868. else if (typeof object.errno === "string")
  22869. message.errno = parseInt(object.errno, 10);
  22870. else if (typeof object.errno === "number")
  22871. message.errno = object.errno;
  22872. else if (typeof object.errno === "object")
  22873. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  22874. if (object.type != null)
  22875. if ($util.Long)
  22876. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  22877. else if (typeof object.type === "string")
  22878. message.type = parseInt(object.type, 10);
  22879. else if (typeof object.type === "number")
  22880. message.type = object.type;
  22881. else if (typeof object.type === "object")
  22882. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  22883. if (object.award != null)
  22884. if ($util.Long)
  22885. (message.award = $util.Long.fromValue(object.award)).unsigned = false;
  22886. else if (typeof object.award === "string")
  22887. message.award = parseInt(object.award, 10);
  22888. else if (typeof object.award === "number")
  22889. message.award = object.award;
  22890. else if (typeof object.award === "object")
  22891. message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
  22892. return message;
  22893. };
  22894. /**
  22895. * Creates a plain object from a quest_active_award_rsp message. Also converts values to other types if specified.
  22896. * @function toObject
  22897. * @memberof game.quest_active_award_rsp
  22898. * @static
  22899. * @param {game.quest_active_award_rsp} message quest_active_award_rsp
  22900. * @param {$protobuf.IConversionOptions} [options] Conversion options
  22901. * @returns {Object.<string,*>} Plain object
  22902. */
  22903. quest_active_award_rsp.toObject = function toObject(message, options) {
  22904. if (!options)
  22905. options = {};
  22906. let object = {};
  22907. if (options.defaults) {
  22908. if ($util.Long) {
  22909. let long = new $util.Long(0, 0, false);
  22910. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  22911. } else
  22912. object.errno = options.longs === String ? "0" : 0;
  22913. if ($util.Long) {
  22914. let long = new $util.Long(0, 0, false);
  22915. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  22916. } else
  22917. object.type = options.longs === String ? "0" : 0;
  22918. if ($util.Long) {
  22919. let long = new $util.Long(0, 0, false);
  22920. object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  22921. } else
  22922. object.award = options.longs === String ? "0" : 0;
  22923. }
  22924. if (message.errno != null && message.hasOwnProperty("errno"))
  22925. if (typeof message.errno === "number")
  22926. object.errno = options.longs === String ? String(message.errno) : message.errno;
  22927. else
  22928. 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;
  22929. if (message.type != null && message.hasOwnProperty("type"))
  22930. if (typeof message.type === "number")
  22931. object.type = options.longs === String ? String(message.type) : message.type;
  22932. else
  22933. 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;
  22934. if (message.award != null && message.hasOwnProperty("award"))
  22935. if (typeof message.award === "number")
  22936. object.award = options.longs === String ? String(message.award) : message.award;
  22937. else
  22938. 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;
  22939. return object;
  22940. };
  22941. /**
  22942. * Converts this quest_active_award_rsp to JSON.
  22943. * @function toJSON
  22944. * @memberof game.quest_active_award_rsp
  22945. * @instance
  22946. * @returns {Object.<string,*>} JSON object
  22947. */
  22948. quest_active_award_rsp.prototype.toJSON = function toJSON() {
  22949. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  22950. };
  22951. return quest_active_award_rsp;
  22952. })();
  22953. game.quest_cmplate_notify = (function() {
  22954. /**
  22955. * Properties of a quest_cmplate_notify.
  22956. * @memberof game
  22957. * @interface Iquest_cmplate_notify
  22958. * @property {game.Iquest|null} [data] quest_cmplate_notify data
  22959. */
  22960. /**
  22961. * Constructs a new quest_cmplate_notify.
  22962. * @memberof game
  22963. * @classdesc Represents a quest_cmplate_notify.
  22964. * @implements Iquest_cmplate_notify
  22965. * @constructor
  22966. * @param {game.Iquest_cmplate_notify=} [properties] Properties to set
  22967. */
  22968. function quest_cmplate_notify(properties) {
  22969. if (properties)
  22970. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  22971. if (properties[keys[i]] != null)
  22972. this[keys[i]] = properties[keys[i]];
  22973. }
  22974. /**
  22975. * quest_cmplate_notify data.
  22976. * @member {game.Iquest|null|undefined} data
  22977. * @memberof game.quest_cmplate_notify
  22978. * @instance
  22979. */
  22980. quest_cmplate_notify.prototype.data = null;
  22981. /**
  22982. * Creates a new quest_cmplate_notify instance using the specified properties.
  22983. * @function create
  22984. * @memberof game.quest_cmplate_notify
  22985. * @static
  22986. * @param {game.Iquest_cmplate_notify=} [properties] Properties to set
  22987. * @returns {game.quest_cmplate_notify} quest_cmplate_notify instance
  22988. */
  22989. quest_cmplate_notify.create = function create(properties) {
  22990. return new quest_cmplate_notify(properties);
  22991. };
  22992. /**
  22993. * Encodes the specified quest_cmplate_notify message. Does not implicitly {@link game.quest_cmplate_notify.verify|verify} messages.
  22994. * @function encode
  22995. * @memberof game.quest_cmplate_notify
  22996. * @static
  22997. * @param {game.Iquest_cmplate_notify} message quest_cmplate_notify message or plain object to encode
  22998. * @param {$protobuf.Writer} [writer] Writer to encode to
  22999. * @returns {$protobuf.Writer} Writer
  23000. */
  23001. quest_cmplate_notify.encode = function encode(message, writer) {
  23002. if (!writer)
  23003. writer = $Writer.create();
  23004. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  23005. $root.game.quest.encode(message.data, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
  23006. return writer;
  23007. };
  23008. /**
  23009. * Encodes the specified quest_cmplate_notify message, length delimited. Does not implicitly {@link game.quest_cmplate_notify.verify|verify} messages.
  23010. * @function encodeDelimited
  23011. * @memberof game.quest_cmplate_notify
  23012. * @static
  23013. * @param {game.Iquest_cmplate_notify} message quest_cmplate_notify message or plain object to encode
  23014. * @param {$protobuf.Writer} [writer] Writer to encode to
  23015. * @returns {$protobuf.Writer} Writer
  23016. */
  23017. quest_cmplate_notify.encodeDelimited = function encodeDelimited(message, writer) {
  23018. return this.encode(message, writer).ldelim();
  23019. };
  23020. /**
  23021. * Decodes a quest_cmplate_notify message from the specified reader or buffer.
  23022. * @function decode
  23023. * @memberof game.quest_cmplate_notify
  23024. * @static
  23025. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  23026. * @param {number} [length] Message length if known beforehand
  23027. * @returns {game.quest_cmplate_notify} quest_cmplate_notify
  23028. * @throws {Error} If the payload is not a reader or valid buffer
  23029. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  23030. */
  23031. quest_cmplate_notify.decode = function decode(reader, length) {
  23032. if (!(reader instanceof $Reader))
  23033. reader = $Reader.create(reader);
  23034. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.quest_cmplate_notify();
  23035. while (reader.pos < end) {
  23036. let tag = reader.uint32();
  23037. switch (tag >>> 3) {
  23038. case 1:
  23039. message.data = $root.game.quest.decode(reader, reader.uint32());
  23040. break;
  23041. default:
  23042. reader.skipType(tag & 7);
  23043. break;
  23044. }
  23045. }
  23046. return message;
  23047. };
  23048. /**
  23049. * Decodes a quest_cmplate_notify message from the specified reader or buffer, length delimited.
  23050. * @function decodeDelimited
  23051. * @memberof game.quest_cmplate_notify
  23052. * @static
  23053. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  23054. * @returns {game.quest_cmplate_notify} quest_cmplate_notify
  23055. * @throws {Error} If the payload is not a reader or valid buffer
  23056. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  23057. */
  23058. quest_cmplate_notify.decodeDelimited = function decodeDelimited(reader) {
  23059. if (!(reader instanceof $Reader))
  23060. reader = new $Reader(reader);
  23061. return this.decode(reader, reader.uint32());
  23062. };
  23063. /**
  23064. * Verifies a quest_cmplate_notify message.
  23065. * @function verify
  23066. * @memberof game.quest_cmplate_notify
  23067. * @static
  23068. * @param {Object.<string,*>} message Plain object to verify
  23069. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  23070. */
  23071. quest_cmplate_notify.verify = function verify(message) {
  23072. if (typeof message !== "object" || message === null)
  23073. return "object expected";
  23074. if (message.data != null && message.hasOwnProperty("data")) {
  23075. let error = $root.game.quest.verify(message.data);
  23076. if (error)
  23077. return "data." + error;
  23078. }
  23079. return null;
  23080. };
  23081. /**
  23082. * Creates a quest_cmplate_notify message from a plain object. Also converts values to their respective internal types.
  23083. * @function fromObject
  23084. * @memberof game.quest_cmplate_notify
  23085. * @static
  23086. * @param {Object.<string,*>} object Plain object
  23087. * @returns {game.quest_cmplate_notify} quest_cmplate_notify
  23088. */
  23089. quest_cmplate_notify.fromObject = function fromObject(object) {
  23090. if (object instanceof $root.game.quest_cmplate_notify)
  23091. return object;
  23092. let message = new $root.game.quest_cmplate_notify();
  23093. if (object.data != null) {
  23094. if (typeof object.data !== "object")
  23095. throw TypeError(".game.quest_cmplate_notify.data: object expected");
  23096. message.data = $root.game.quest.fromObject(object.data);
  23097. }
  23098. return message;
  23099. };
  23100. /**
  23101. * Creates a plain object from a quest_cmplate_notify message. Also converts values to other types if specified.
  23102. * @function toObject
  23103. * @memberof game.quest_cmplate_notify
  23104. * @static
  23105. * @param {game.quest_cmplate_notify} message quest_cmplate_notify
  23106. * @param {$protobuf.IConversionOptions} [options] Conversion options
  23107. * @returns {Object.<string,*>} Plain object
  23108. */
  23109. quest_cmplate_notify.toObject = function toObject(message, options) {
  23110. if (!options)
  23111. options = {};
  23112. let object = {};
  23113. if (options.defaults)
  23114. object.data = null;
  23115. if (message.data != null && message.hasOwnProperty("data"))
  23116. object.data = $root.game.quest.toObject(message.data, options);
  23117. return object;
  23118. };
  23119. /**
  23120. * Converts this quest_cmplate_notify to JSON.
  23121. * @function toJSON
  23122. * @memberof game.quest_cmplate_notify
  23123. * @instance
  23124. * @returns {Object.<string,*>} JSON object
  23125. */
  23126. quest_cmplate_notify.prototype.toJSON = function toJSON() {
  23127. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  23128. };
  23129. return quest_cmplate_notify;
  23130. })();
  23131. game.manual_get_data = (function() {
  23132. /**
  23133. * Properties of a manual_get_data.
  23134. * @memberof game
  23135. * @interface Imanual_get_data
  23136. * @property {number|Long|null} [moduleid] manual_get_data moduleid
  23137. */
  23138. /**
  23139. * Constructs a new manual_get_data.
  23140. * @memberof game
  23141. * @classdesc Represents a manual_get_data.
  23142. * @implements Imanual_get_data
  23143. * @constructor
  23144. * @param {game.Imanual_get_data=} [properties] Properties to set
  23145. */
  23146. function manual_get_data(properties) {
  23147. if (properties)
  23148. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  23149. if (properties[keys[i]] != null)
  23150. this[keys[i]] = properties[keys[i]];
  23151. }
  23152. /**
  23153. * manual_get_data moduleid.
  23154. * @member {number|Long} moduleid
  23155. * @memberof game.manual_get_data
  23156. * @instance
  23157. */
  23158. manual_get_data.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  23159. /**
  23160. * Creates a new manual_get_data instance using the specified properties.
  23161. * @function create
  23162. * @memberof game.manual_get_data
  23163. * @static
  23164. * @param {game.Imanual_get_data=} [properties] Properties to set
  23165. * @returns {game.manual_get_data} manual_get_data instance
  23166. */
  23167. manual_get_data.create = function create(properties) {
  23168. return new manual_get_data(properties);
  23169. };
  23170. /**
  23171. * Encodes the specified manual_get_data message. Does not implicitly {@link game.manual_get_data.verify|verify} messages.
  23172. * @function encode
  23173. * @memberof game.manual_get_data
  23174. * @static
  23175. * @param {game.Imanual_get_data} message manual_get_data message or plain object to encode
  23176. * @param {$protobuf.Writer} [writer] Writer to encode to
  23177. * @returns {$protobuf.Writer} Writer
  23178. */
  23179. manual_get_data.encode = function encode(message, writer) {
  23180. if (!writer)
  23181. writer = $Writer.create();
  23182. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  23183. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.moduleid);
  23184. return writer;
  23185. };
  23186. /**
  23187. * Encodes the specified manual_get_data message, length delimited. Does not implicitly {@link game.manual_get_data.verify|verify} messages.
  23188. * @function encodeDelimited
  23189. * @memberof game.manual_get_data
  23190. * @static
  23191. * @param {game.Imanual_get_data} message manual_get_data message or plain object to encode
  23192. * @param {$protobuf.Writer} [writer] Writer to encode to
  23193. * @returns {$protobuf.Writer} Writer
  23194. */
  23195. manual_get_data.encodeDelimited = function encodeDelimited(message, writer) {
  23196. return this.encode(message, writer).ldelim();
  23197. };
  23198. /**
  23199. * Decodes a manual_get_data message from the specified reader or buffer.
  23200. * @function decode
  23201. * @memberof game.manual_get_data
  23202. * @static
  23203. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  23204. * @param {number} [length] Message length if known beforehand
  23205. * @returns {game.manual_get_data} manual_get_data
  23206. * @throws {Error} If the payload is not a reader or valid buffer
  23207. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  23208. */
  23209. manual_get_data.decode = function decode(reader, length) {
  23210. if (!(reader instanceof $Reader))
  23211. reader = $Reader.create(reader);
  23212. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.manual_get_data();
  23213. while (reader.pos < end) {
  23214. let tag = reader.uint32();
  23215. switch (tag >>> 3) {
  23216. case 1:
  23217. message.moduleid = reader.int64();
  23218. break;
  23219. default:
  23220. reader.skipType(tag & 7);
  23221. break;
  23222. }
  23223. }
  23224. return message;
  23225. };
  23226. /**
  23227. * Decodes a manual_get_data message from the specified reader or buffer, length delimited.
  23228. * @function decodeDelimited
  23229. * @memberof game.manual_get_data
  23230. * @static
  23231. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  23232. * @returns {game.manual_get_data} manual_get_data
  23233. * @throws {Error} If the payload is not a reader or valid buffer
  23234. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  23235. */
  23236. manual_get_data.decodeDelimited = function decodeDelimited(reader) {
  23237. if (!(reader instanceof $Reader))
  23238. reader = new $Reader(reader);
  23239. return this.decode(reader, reader.uint32());
  23240. };
  23241. /**
  23242. * Verifies a manual_get_data message.
  23243. * @function verify
  23244. * @memberof game.manual_get_data
  23245. * @static
  23246. * @param {Object.<string,*>} message Plain object to verify
  23247. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  23248. */
  23249. manual_get_data.verify = function verify(message) {
  23250. if (typeof message !== "object" || message === null)
  23251. return "object expected";
  23252. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  23253. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  23254. return "moduleid: integer|Long expected";
  23255. return null;
  23256. };
  23257. /**
  23258. * Creates a manual_get_data message from a plain object. Also converts values to their respective internal types.
  23259. * @function fromObject
  23260. * @memberof game.manual_get_data
  23261. * @static
  23262. * @param {Object.<string,*>} object Plain object
  23263. * @returns {game.manual_get_data} manual_get_data
  23264. */
  23265. manual_get_data.fromObject = function fromObject(object) {
  23266. if (object instanceof $root.game.manual_get_data)
  23267. return object;
  23268. let message = new $root.game.manual_get_data();
  23269. if (object.moduleid != null)
  23270. if ($util.Long)
  23271. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  23272. else if (typeof object.moduleid === "string")
  23273. message.moduleid = parseInt(object.moduleid, 10);
  23274. else if (typeof object.moduleid === "number")
  23275. message.moduleid = object.moduleid;
  23276. else if (typeof object.moduleid === "object")
  23277. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  23278. return message;
  23279. };
  23280. /**
  23281. * Creates a plain object from a manual_get_data message. Also converts values to other types if specified.
  23282. * @function toObject
  23283. * @memberof game.manual_get_data
  23284. * @static
  23285. * @param {game.manual_get_data} message manual_get_data
  23286. * @param {$protobuf.IConversionOptions} [options] Conversion options
  23287. * @returns {Object.<string,*>} Plain object
  23288. */
  23289. manual_get_data.toObject = function toObject(message, options) {
  23290. if (!options)
  23291. options = {};
  23292. let object = {};
  23293. if (options.defaults)
  23294. if ($util.Long) {
  23295. let long = new $util.Long(0, 0, false);
  23296. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  23297. } else
  23298. object.moduleid = options.longs === String ? "0" : 0;
  23299. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  23300. if (typeof message.moduleid === "number")
  23301. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  23302. else
  23303. 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;
  23304. return object;
  23305. };
  23306. /**
  23307. * Converts this manual_get_data to JSON.
  23308. * @function toJSON
  23309. * @memberof game.manual_get_data
  23310. * @instance
  23311. * @returns {Object.<string,*>} JSON object
  23312. */
  23313. manual_get_data.prototype.toJSON = function toJSON() {
  23314. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  23315. };
  23316. return manual_get_data;
  23317. })();
  23318. game.manual_get_data_rsp = (function() {
  23319. /**
  23320. * Properties of a manual_get_data_rsp.
  23321. * @memberof game
  23322. * @interface Imanual_get_data_rsp
  23323. * @property {number|Long|null} [errno] manual_get_data_rsp errno
  23324. * @property {boolean|null} [open] manual_get_data_rsp open
  23325. * @property {number|Long|null} [openTime] manual_get_data_rsp openTime
  23326. * @property {number|Long|null} [level] manual_get_data_rsp level
  23327. * @property {number|Long|null} [exp] manual_get_data_rsp exp
  23328. * @property {number|Long|null} [round] manual_get_data_rsp round
  23329. * @property {Array.<game.Imanual>|null} [list] manual_get_data_rsp list
  23330. * @property {number|Long|null} [moduleid] manual_get_data_rsp moduleid
  23331. */
  23332. /**
  23333. * Constructs a new manual_get_data_rsp.
  23334. * @memberof game
  23335. * @classdesc Represents a manual_get_data_rsp.
  23336. * @implements Imanual_get_data_rsp
  23337. * @constructor
  23338. * @param {game.Imanual_get_data_rsp=} [properties] Properties to set
  23339. */
  23340. function manual_get_data_rsp(properties) {
  23341. this.list = [];
  23342. if (properties)
  23343. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  23344. if (properties[keys[i]] != null)
  23345. this[keys[i]] = properties[keys[i]];
  23346. }
  23347. /**
  23348. * manual_get_data_rsp errno.
  23349. * @member {number|Long} errno
  23350. * @memberof game.manual_get_data_rsp
  23351. * @instance
  23352. */
  23353. manual_get_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  23354. /**
  23355. * manual_get_data_rsp open.
  23356. * @member {boolean} open
  23357. * @memberof game.manual_get_data_rsp
  23358. * @instance
  23359. */
  23360. manual_get_data_rsp.prototype.open = false;
  23361. /**
  23362. * manual_get_data_rsp openTime.
  23363. * @member {number|Long} openTime
  23364. * @memberof game.manual_get_data_rsp
  23365. * @instance
  23366. */
  23367. manual_get_data_rsp.prototype.openTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  23368. /**
  23369. * manual_get_data_rsp level.
  23370. * @member {number|Long} level
  23371. * @memberof game.manual_get_data_rsp
  23372. * @instance
  23373. */
  23374. manual_get_data_rsp.prototype.level = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  23375. /**
  23376. * manual_get_data_rsp exp.
  23377. * @member {number|Long} exp
  23378. * @memberof game.manual_get_data_rsp
  23379. * @instance
  23380. */
  23381. manual_get_data_rsp.prototype.exp = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  23382. /**
  23383. * manual_get_data_rsp round.
  23384. * @member {number|Long} round
  23385. * @memberof game.manual_get_data_rsp
  23386. * @instance
  23387. */
  23388. manual_get_data_rsp.prototype.round = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  23389. /**
  23390. * manual_get_data_rsp list.
  23391. * @member {Array.<game.Imanual>} list
  23392. * @memberof game.manual_get_data_rsp
  23393. * @instance
  23394. */
  23395. manual_get_data_rsp.prototype.list = $util.emptyArray;
  23396. /**
  23397. * manual_get_data_rsp moduleid.
  23398. * @member {number|Long} moduleid
  23399. * @memberof game.manual_get_data_rsp
  23400. * @instance
  23401. */
  23402. manual_get_data_rsp.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  23403. /**
  23404. * Creates a new manual_get_data_rsp instance using the specified properties.
  23405. * @function create
  23406. * @memberof game.manual_get_data_rsp
  23407. * @static
  23408. * @param {game.Imanual_get_data_rsp=} [properties] Properties to set
  23409. * @returns {game.manual_get_data_rsp} manual_get_data_rsp instance
  23410. */
  23411. manual_get_data_rsp.create = function create(properties) {
  23412. return new manual_get_data_rsp(properties);
  23413. };
  23414. /**
  23415. * Encodes the specified manual_get_data_rsp message. Does not implicitly {@link game.manual_get_data_rsp.verify|verify} messages.
  23416. * @function encode
  23417. * @memberof game.manual_get_data_rsp
  23418. * @static
  23419. * @param {game.Imanual_get_data_rsp} message manual_get_data_rsp message or plain object to encode
  23420. * @param {$protobuf.Writer} [writer] Writer to encode to
  23421. * @returns {$protobuf.Writer} Writer
  23422. */
  23423. manual_get_data_rsp.encode = function encode(message, writer) {
  23424. if (!writer)
  23425. writer = $Writer.create();
  23426. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  23427. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  23428. if (message.open != null && Object.hasOwnProperty.call(message, "open"))
  23429. writer.uint32(/* id 2, wireType 0 =*/16).bool(message.open);
  23430. if (message.openTime != null && Object.hasOwnProperty.call(message, "openTime"))
  23431. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.openTime);
  23432. if (message.level != null && Object.hasOwnProperty.call(message, "level"))
  23433. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.level);
  23434. if (message.exp != null && Object.hasOwnProperty.call(message, "exp"))
  23435. writer.uint32(/* id 5, wireType 0 =*/40).int64(message.exp);
  23436. if (message.round != null && Object.hasOwnProperty.call(message, "round"))
  23437. writer.uint32(/* id 6, wireType 0 =*/48).int64(message.round);
  23438. if (message.list != null && message.list.length)
  23439. for (let i = 0; i < message.list.length; ++i)
  23440. $root.game.manual.encode(message.list[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
  23441. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  23442. writer.uint32(/* id 8, wireType 0 =*/64).int64(message.moduleid);
  23443. return writer;
  23444. };
  23445. /**
  23446. * Encodes the specified manual_get_data_rsp message, length delimited. Does not implicitly {@link game.manual_get_data_rsp.verify|verify} messages.
  23447. * @function encodeDelimited
  23448. * @memberof game.manual_get_data_rsp
  23449. * @static
  23450. * @param {game.Imanual_get_data_rsp} message manual_get_data_rsp message or plain object to encode
  23451. * @param {$protobuf.Writer} [writer] Writer to encode to
  23452. * @returns {$protobuf.Writer} Writer
  23453. */
  23454. manual_get_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  23455. return this.encode(message, writer).ldelim();
  23456. };
  23457. /**
  23458. * Decodes a manual_get_data_rsp message from the specified reader or buffer.
  23459. * @function decode
  23460. * @memberof game.manual_get_data_rsp
  23461. * @static
  23462. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  23463. * @param {number} [length] Message length if known beforehand
  23464. * @returns {game.manual_get_data_rsp} manual_get_data_rsp
  23465. * @throws {Error} If the payload is not a reader or valid buffer
  23466. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  23467. */
  23468. manual_get_data_rsp.decode = function decode(reader, length) {
  23469. if (!(reader instanceof $Reader))
  23470. reader = $Reader.create(reader);
  23471. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.manual_get_data_rsp();
  23472. while (reader.pos < end) {
  23473. let tag = reader.uint32();
  23474. switch (tag >>> 3) {
  23475. case 1:
  23476. message.errno = reader.int64();
  23477. break;
  23478. case 2:
  23479. message.open = reader.bool();
  23480. break;
  23481. case 3:
  23482. message.openTime = reader.int64();
  23483. break;
  23484. case 4:
  23485. message.level = reader.int64();
  23486. break;
  23487. case 5:
  23488. message.exp = reader.int64();
  23489. break;
  23490. case 6:
  23491. message.round = reader.int64();
  23492. break;
  23493. case 7:
  23494. if (!(message.list && message.list.length))
  23495. message.list = [];
  23496. message.list.push($root.game.manual.decode(reader, reader.uint32()));
  23497. break;
  23498. case 8:
  23499. message.moduleid = reader.int64();
  23500. break;
  23501. default:
  23502. reader.skipType(tag & 7);
  23503. break;
  23504. }
  23505. }
  23506. return message;
  23507. };
  23508. /**
  23509. * Decodes a manual_get_data_rsp message from the specified reader or buffer, length delimited.
  23510. * @function decodeDelimited
  23511. * @memberof game.manual_get_data_rsp
  23512. * @static
  23513. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  23514. * @returns {game.manual_get_data_rsp} manual_get_data_rsp
  23515. * @throws {Error} If the payload is not a reader or valid buffer
  23516. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  23517. */
  23518. manual_get_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  23519. if (!(reader instanceof $Reader))
  23520. reader = new $Reader(reader);
  23521. return this.decode(reader, reader.uint32());
  23522. };
  23523. /**
  23524. * Verifies a manual_get_data_rsp message.
  23525. * @function verify
  23526. * @memberof game.manual_get_data_rsp
  23527. * @static
  23528. * @param {Object.<string,*>} message Plain object to verify
  23529. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  23530. */
  23531. manual_get_data_rsp.verify = function verify(message) {
  23532. if (typeof message !== "object" || message === null)
  23533. return "object expected";
  23534. if (message.errno != null && message.hasOwnProperty("errno"))
  23535. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  23536. return "errno: integer|Long expected";
  23537. if (message.open != null && message.hasOwnProperty("open"))
  23538. if (typeof message.open !== "boolean")
  23539. return "open: boolean expected";
  23540. if (message.openTime != null && message.hasOwnProperty("openTime"))
  23541. if (!$util.isInteger(message.openTime) && !(message.openTime && $util.isInteger(message.openTime.low) && $util.isInteger(message.openTime.high)))
  23542. return "openTime: integer|Long expected";
  23543. if (message.level != null && message.hasOwnProperty("level"))
  23544. if (!$util.isInteger(message.level) && !(message.level && $util.isInteger(message.level.low) && $util.isInteger(message.level.high)))
  23545. return "level: integer|Long expected";
  23546. if (message.exp != null && message.hasOwnProperty("exp"))
  23547. if (!$util.isInteger(message.exp) && !(message.exp && $util.isInteger(message.exp.low) && $util.isInteger(message.exp.high)))
  23548. return "exp: integer|Long expected";
  23549. if (message.round != null && message.hasOwnProperty("round"))
  23550. if (!$util.isInteger(message.round) && !(message.round && $util.isInteger(message.round.low) && $util.isInteger(message.round.high)))
  23551. return "round: integer|Long expected";
  23552. if (message.list != null && message.hasOwnProperty("list")) {
  23553. if (!Array.isArray(message.list))
  23554. return "list: array expected";
  23555. for (let i = 0; i < message.list.length; ++i) {
  23556. let error = $root.game.manual.verify(message.list[i]);
  23557. if (error)
  23558. return "list." + error;
  23559. }
  23560. }
  23561. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  23562. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  23563. return "moduleid: integer|Long expected";
  23564. return null;
  23565. };
  23566. /**
  23567. * Creates a manual_get_data_rsp message from a plain object. Also converts values to their respective internal types.
  23568. * @function fromObject
  23569. * @memberof game.manual_get_data_rsp
  23570. * @static
  23571. * @param {Object.<string,*>} object Plain object
  23572. * @returns {game.manual_get_data_rsp} manual_get_data_rsp
  23573. */
  23574. manual_get_data_rsp.fromObject = function fromObject(object) {
  23575. if (object instanceof $root.game.manual_get_data_rsp)
  23576. return object;
  23577. let message = new $root.game.manual_get_data_rsp();
  23578. if (object.errno != null)
  23579. if ($util.Long)
  23580. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  23581. else if (typeof object.errno === "string")
  23582. message.errno = parseInt(object.errno, 10);
  23583. else if (typeof object.errno === "number")
  23584. message.errno = object.errno;
  23585. else if (typeof object.errno === "object")
  23586. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  23587. if (object.open != null)
  23588. message.open = Boolean(object.open);
  23589. if (object.openTime != null)
  23590. if ($util.Long)
  23591. (message.openTime = $util.Long.fromValue(object.openTime)).unsigned = false;
  23592. else if (typeof object.openTime === "string")
  23593. message.openTime = parseInt(object.openTime, 10);
  23594. else if (typeof object.openTime === "number")
  23595. message.openTime = object.openTime;
  23596. else if (typeof object.openTime === "object")
  23597. message.openTime = new $util.LongBits(object.openTime.low >>> 0, object.openTime.high >>> 0).toNumber();
  23598. if (object.level != null)
  23599. if ($util.Long)
  23600. (message.level = $util.Long.fromValue(object.level)).unsigned = false;
  23601. else if (typeof object.level === "string")
  23602. message.level = parseInt(object.level, 10);
  23603. else if (typeof object.level === "number")
  23604. message.level = object.level;
  23605. else if (typeof object.level === "object")
  23606. message.level = new $util.LongBits(object.level.low >>> 0, object.level.high >>> 0).toNumber();
  23607. if (object.exp != null)
  23608. if ($util.Long)
  23609. (message.exp = $util.Long.fromValue(object.exp)).unsigned = false;
  23610. else if (typeof object.exp === "string")
  23611. message.exp = parseInt(object.exp, 10);
  23612. else if (typeof object.exp === "number")
  23613. message.exp = object.exp;
  23614. else if (typeof object.exp === "object")
  23615. message.exp = new $util.LongBits(object.exp.low >>> 0, object.exp.high >>> 0).toNumber();
  23616. if (object.round != null)
  23617. if ($util.Long)
  23618. (message.round = $util.Long.fromValue(object.round)).unsigned = false;
  23619. else if (typeof object.round === "string")
  23620. message.round = parseInt(object.round, 10);
  23621. else if (typeof object.round === "number")
  23622. message.round = object.round;
  23623. else if (typeof object.round === "object")
  23624. message.round = new $util.LongBits(object.round.low >>> 0, object.round.high >>> 0).toNumber();
  23625. if (object.list) {
  23626. if (!Array.isArray(object.list))
  23627. throw TypeError(".game.manual_get_data_rsp.list: array expected");
  23628. message.list = [];
  23629. for (let i = 0; i < object.list.length; ++i) {
  23630. if (typeof object.list[i] !== "object")
  23631. throw TypeError(".game.manual_get_data_rsp.list: object expected");
  23632. message.list[i] = $root.game.manual.fromObject(object.list[i]);
  23633. }
  23634. }
  23635. if (object.moduleid != null)
  23636. if ($util.Long)
  23637. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  23638. else if (typeof object.moduleid === "string")
  23639. message.moduleid = parseInt(object.moduleid, 10);
  23640. else if (typeof object.moduleid === "number")
  23641. message.moduleid = object.moduleid;
  23642. else if (typeof object.moduleid === "object")
  23643. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  23644. return message;
  23645. };
  23646. /**
  23647. * Creates a plain object from a manual_get_data_rsp message. Also converts values to other types if specified.
  23648. * @function toObject
  23649. * @memberof game.manual_get_data_rsp
  23650. * @static
  23651. * @param {game.manual_get_data_rsp} message manual_get_data_rsp
  23652. * @param {$protobuf.IConversionOptions} [options] Conversion options
  23653. * @returns {Object.<string,*>} Plain object
  23654. */
  23655. manual_get_data_rsp.toObject = function toObject(message, options) {
  23656. if (!options)
  23657. options = {};
  23658. let object = {};
  23659. if (options.arrays || options.defaults)
  23660. object.list = [];
  23661. if (options.defaults) {
  23662. if ($util.Long) {
  23663. let long = new $util.Long(0, 0, false);
  23664. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  23665. } else
  23666. object.errno = options.longs === String ? "0" : 0;
  23667. object.open = false;
  23668. if ($util.Long) {
  23669. let long = new $util.Long(0, 0, false);
  23670. object.openTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  23671. } else
  23672. object.openTime = options.longs === String ? "0" : 0;
  23673. if ($util.Long) {
  23674. let long = new $util.Long(0, 0, false);
  23675. object.level = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  23676. } else
  23677. object.level = options.longs === String ? "0" : 0;
  23678. if ($util.Long) {
  23679. let long = new $util.Long(0, 0, false);
  23680. object.exp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  23681. } else
  23682. object.exp = options.longs === String ? "0" : 0;
  23683. if ($util.Long) {
  23684. let long = new $util.Long(0, 0, false);
  23685. object.round = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  23686. } else
  23687. object.round = options.longs === String ? "0" : 0;
  23688. if ($util.Long) {
  23689. let long = new $util.Long(0, 0, false);
  23690. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  23691. } else
  23692. object.moduleid = options.longs === String ? "0" : 0;
  23693. }
  23694. if (message.errno != null && message.hasOwnProperty("errno"))
  23695. if (typeof message.errno === "number")
  23696. object.errno = options.longs === String ? String(message.errno) : message.errno;
  23697. else
  23698. 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;
  23699. if (message.open != null && message.hasOwnProperty("open"))
  23700. object.open = message.open;
  23701. if (message.openTime != null && message.hasOwnProperty("openTime"))
  23702. if (typeof message.openTime === "number")
  23703. object.openTime = options.longs === String ? String(message.openTime) : message.openTime;
  23704. else
  23705. 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;
  23706. if (message.level != null && message.hasOwnProperty("level"))
  23707. if (typeof message.level === "number")
  23708. object.level = options.longs === String ? String(message.level) : message.level;
  23709. else
  23710. 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;
  23711. if (message.exp != null && message.hasOwnProperty("exp"))
  23712. if (typeof message.exp === "number")
  23713. object.exp = options.longs === String ? String(message.exp) : message.exp;
  23714. else
  23715. 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;
  23716. if (message.round != null && message.hasOwnProperty("round"))
  23717. if (typeof message.round === "number")
  23718. object.round = options.longs === String ? String(message.round) : message.round;
  23719. else
  23720. 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;
  23721. if (message.list && message.list.length) {
  23722. object.list = [];
  23723. for (let j = 0; j < message.list.length; ++j)
  23724. object.list[j] = $root.game.manual.toObject(message.list[j], options);
  23725. }
  23726. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  23727. if (typeof message.moduleid === "number")
  23728. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  23729. else
  23730. 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;
  23731. return object;
  23732. };
  23733. /**
  23734. * Converts this manual_get_data_rsp to JSON.
  23735. * @function toJSON
  23736. * @memberof game.manual_get_data_rsp
  23737. * @instance
  23738. * @returns {Object.<string,*>} JSON object
  23739. */
  23740. manual_get_data_rsp.prototype.toJSON = function toJSON() {
  23741. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  23742. };
  23743. return manual_get_data_rsp;
  23744. })();
  23745. game.manual_buy_exp = (function() {
  23746. /**
  23747. * Properties of a manual_buy_exp.
  23748. * @memberof game
  23749. * @interface Imanual_buy_exp
  23750. * @property {number|Long|null} [moduleid] manual_buy_exp moduleid
  23751. */
  23752. /**
  23753. * Constructs a new manual_buy_exp.
  23754. * @memberof game
  23755. * @classdesc Represents a manual_buy_exp.
  23756. * @implements Imanual_buy_exp
  23757. * @constructor
  23758. * @param {game.Imanual_buy_exp=} [properties] Properties to set
  23759. */
  23760. function manual_buy_exp(properties) {
  23761. if (properties)
  23762. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  23763. if (properties[keys[i]] != null)
  23764. this[keys[i]] = properties[keys[i]];
  23765. }
  23766. /**
  23767. * manual_buy_exp moduleid.
  23768. * @member {number|Long} moduleid
  23769. * @memberof game.manual_buy_exp
  23770. * @instance
  23771. */
  23772. manual_buy_exp.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  23773. /**
  23774. * Creates a new manual_buy_exp instance using the specified properties.
  23775. * @function create
  23776. * @memberof game.manual_buy_exp
  23777. * @static
  23778. * @param {game.Imanual_buy_exp=} [properties] Properties to set
  23779. * @returns {game.manual_buy_exp} manual_buy_exp instance
  23780. */
  23781. manual_buy_exp.create = function create(properties) {
  23782. return new manual_buy_exp(properties);
  23783. };
  23784. /**
  23785. * Encodes the specified manual_buy_exp message. Does not implicitly {@link game.manual_buy_exp.verify|verify} messages.
  23786. * @function encode
  23787. * @memberof game.manual_buy_exp
  23788. * @static
  23789. * @param {game.Imanual_buy_exp} message manual_buy_exp message or plain object to encode
  23790. * @param {$protobuf.Writer} [writer] Writer to encode to
  23791. * @returns {$protobuf.Writer} Writer
  23792. */
  23793. manual_buy_exp.encode = function encode(message, writer) {
  23794. if (!writer)
  23795. writer = $Writer.create();
  23796. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  23797. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.moduleid);
  23798. return writer;
  23799. };
  23800. /**
  23801. * Encodes the specified manual_buy_exp message, length delimited. Does not implicitly {@link game.manual_buy_exp.verify|verify} messages.
  23802. * @function encodeDelimited
  23803. * @memberof game.manual_buy_exp
  23804. * @static
  23805. * @param {game.Imanual_buy_exp} message manual_buy_exp message or plain object to encode
  23806. * @param {$protobuf.Writer} [writer] Writer to encode to
  23807. * @returns {$protobuf.Writer} Writer
  23808. */
  23809. manual_buy_exp.encodeDelimited = function encodeDelimited(message, writer) {
  23810. return this.encode(message, writer).ldelim();
  23811. };
  23812. /**
  23813. * Decodes a manual_buy_exp message from the specified reader or buffer.
  23814. * @function decode
  23815. * @memberof game.manual_buy_exp
  23816. * @static
  23817. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  23818. * @param {number} [length] Message length if known beforehand
  23819. * @returns {game.manual_buy_exp} manual_buy_exp
  23820. * @throws {Error} If the payload is not a reader or valid buffer
  23821. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  23822. */
  23823. manual_buy_exp.decode = function decode(reader, length) {
  23824. if (!(reader instanceof $Reader))
  23825. reader = $Reader.create(reader);
  23826. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.manual_buy_exp();
  23827. while (reader.pos < end) {
  23828. let tag = reader.uint32();
  23829. switch (tag >>> 3) {
  23830. case 1:
  23831. message.moduleid = reader.int64();
  23832. break;
  23833. default:
  23834. reader.skipType(tag & 7);
  23835. break;
  23836. }
  23837. }
  23838. return message;
  23839. };
  23840. /**
  23841. * Decodes a manual_buy_exp message from the specified reader or buffer, length delimited.
  23842. * @function decodeDelimited
  23843. * @memberof game.manual_buy_exp
  23844. * @static
  23845. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  23846. * @returns {game.manual_buy_exp} manual_buy_exp
  23847. * @throws {Error} If the payload is not a reader or valid buffer
  23848. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  23849. */
  23850. manual_buy_exp.decodeDelimited = function decodeDelimited(reader) {
  23851. if (!(reader instanceof $Reader))
  23852. reader = new $Reader(reader);
  23853. return this.decode(reader, reader.uint32());
  23854. };
  23855. /**
  23856. * Verifies a manual_buy_exp message.
  23857. * @function verify
  23858. * @memberof game.manual_buy_exp
  23859. * @static
  23860. * @param {Object.<string,*>} message Plain object to verify
  23861. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  23862. */
  23863. manual_buy_exp.verify = function verify(message) {
  23864. if (typeof message !== "object" || message === null)
  23865. return "object expected";
  23866. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  23867. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  23868. return "moduleid: integer|Long expected";
  23869. return null;
  23870. };
  23871. /**
  23872. * Creates a manual_buy_exp message from a plain object. Also converts values to their respective internal types.
  23873. * @function fromObject
  23874. * @memberof game.manual_buy_exp
  23875. * @static
  23876. * @param {Object.<string,*>} object Plain object
  23877. * @returns {game.manual_buy_exp} manual_buy_exp
  23878. */
  23879. manual_buy_exp.fromObject = function fromObject(object) {
  23880. if (object instanceof $root.game.manual_buy_exp)
  23881. return object;
  23882. let message = new $root.game.manual_buy_exp();
  23883. if (object.moduleid != null)
  23884. if ($util.Long)
  23885. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  23886. else if (typeof object.moduleid === "string")
  23887. message.moduleid = parseInt(object.moduleid, 10);
  23888. else if (typeof object.moduleid === "number")
  23889. message.moduleid = object.moduleid;
  23890. else if (typeof object.moduleid === "object")
  23891. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  23892. return message;
  23893. };
  23894. /**
  23895. * Creates a plain object from a manual_buy_exp message. Also converts values to other types if specified.
  23896. * @function toObject
  23897. * @memberof game.manual_buy_exp
  23898. * @static
  23899. * @param {game.manual_buy_exp} message manual_buy_exp
  23900. * @param {$protobuf.IConversionOptions} [options] Conversion options
  23901. * @returns {Object.<string,*>} Plain object
  23902. */
  23903. manual_buy_exp.toObject = function toObject(message, options) {
  23904. if (!options)
  23905. options = {};
  23906. let object = {};
  23907. if (options.defaults)
  23908. if ($util.Long) {
  23909. let long = new $util.Long(0, 0, false);
  23910. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  23911. } else
  23912. object.moduleid = options.longs === String ? "0" : 0;
  23913. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  23914. if (typeof message.moduleid === "number")
  23915. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  23916. else
  23917. 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;
  23918. return object;
  23919. };
  23920. /**
  23921. * Converts this manual_buy_exp to JSON.
  23922. * @function toJSON
  23923. * @memberof game.manual_buy_exp
  23924. * @instance
  23925. * @returns {Object.<string,*>} JSON object
  23926. */
  23927. manual_buy_exp.prototype.toJSON = function toJSON() {
  23928. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  23929. };
  23930. return manual_buy_exp;
  23931. })();
  23932. game.manual_buy_exp_rsp = (function() {
  23933. /**
  23934. * Properties of a manual_buy_exp_rsp.
  23935. * @memberof game
  23936. * @interface Imanual_buy_exp_rsp
  23937. * @property {number|Long|null} [errno] manual_buy_exp_rsp errno
  23938. * @property {number|Long|null} [level] manual_buy_exp_rsp level
  23939. * @property {number|Long|null} [exp] manual_buy_exp_rsp exp
  23940. * @property {number|Long|null} [moduleid] manual_buy_exp_rsp moduleid
  23941. */
  23942. /**
  23943. * Constructs a new manual_buy_exp_rsp.
  23944. * @memberof game
  23945. * @classdesc Represents a manual_buy_exp_rsp.
  23946. * @implements Imanual_buy_exp_rsp
  23947. * @constructor
  23948. * @param {game.Imanual_buy_exp_rsp=} [properties] Properties to set
  23949. */
  23950. function manual_buy_exp_rsp(properties) {
  23951. if (properties)
  23952. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  23953. if (properties[keys[i]] != null)
  23954. this[keys[i]] = properties[keys[i]];
  23955. }
  23956. /**
  23957. * manual_buy_exp_rsp errno.
  23958. * @member {number|Long} errno
  23959. * @memberof game.manual_buy_exp_rsp
  23960. * @instance
  23961. */
  23962. manual_buy_exp_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  23963. /**
  23964. * manual_buy_exp_rsp level.
  23965. * @member {number|Long} level
  23966. * @memberof game.manual_buy_exp_rsp
  23967. * @instance
  23968. */
  23969. manual_buy_exp_rsp.prototype.level = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  23970. /**
  23971. * manual_buy_exp_rsp exp.
  23972. * @member {number|Long} exp
  23973. * @memberof game.manual_buy_exp_rsp
  23974. * @instance
  23975. */
  23976. manual_buy_exp_rsp.prototype.exp = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  23977. /**
  23978. * manual_buy_exp_rsp moduleid.
  23979. * @member {number|Long} moduleid
  23980. * @memberof game.manual_buy_exp_rsp
  23981. * @instance
  23982. */
  23983. manual_buy_exp_rsp.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  23984. /**
  23985. * Creates a new manual_buy_exp_rsp instance using the specified properties.
  23986. * @function create
  23987. * @memberof game.manual_buy_exp_rsp
  23988. * @static
  23989. * @param {game.Imanual_buy_exp_rsp=} [properties] Properties to set
  23990. * @returns {game.manual_buy_exp_rsp} manual_buy_exp_rsp instance
  23991. */
  23992. manual_buy_exp_rsp.create = function create(properties) {
  23993. return new manual_buy_exp_rsp(properties);
  23994. };
  23995. /**
  23996. * Encodes the specified manual_buy_exp_rsp message. Does not implicitly {@link game.manual_buy_exp_rsp.verify|verify} messages.
  23997. * @function encode
  23998. * @memberof game.manual_buy_exp_rsp
  23999. * @static
  24000. * @param {game.Imanual_buy_exp_rsp} message manual_buy_exp_rsp message or plain object to encode
  24001. * @param {$protobuf.Writer} [writer] Writer to encode to
  24002. * @returns {$protobuf.Writer} Writer
  24003. */
  24004. manual_buy_exp_rsp.encode = function encode(message, writer) {
  24005. if (!writer)
  24006. writer = $Writer.create();
  24007. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  24008. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  24009. if (message.level != null && Object.hasOwnProperty.call(message, "level"))
  24010. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.level);
  24011. if (message.exp != null && Object.hasOwnProperty.call(message, "exp"))
  24012. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.exp);
  24013. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  24014. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.moduleid);
  24015. return writer;
  24016. };
  24017. /**
  24018. * Encodes the specified manual_buy_exp_rsp message, length delimited. Does not implicitly {@link game.manual_buy_exp_rsp.verify|verify} messages.
  24019. * @function encodeDelimited
  24020. * @memberof game.manual_buy_exp_rsp
  24021. * @static
  24022. * @param {game.Imanual_buy_exp_rsp} message manual_buy_exp_rsp message or plain object to encode
  24023. * @param {$protobuf.Writer} [writer] Writer to encode to
  24024. * @returns {$protobuf.Writer} Writer
  24025. */
  24026. manual_buy_exp_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  24027. return this.encode(message, writer).ldelim();
  24028. };
  24029. /**
  24030. * Decodes a manual_buy_exp_rsp message from the specified reader or buffer.
  24031. * @function decode
  24032. * @memberof game.manual_buy_exp_rsp
  24033. * @static
  24034. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  24035. * @param {number} [length] Message length if known beforehand
  24036. * @returns {game.manual_buy_exp_rsp} manual_buy_exp_rsp
  24037. * @throws {Error} If the payload is not a reader or valid buffer
  24038. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  24039. */
  24040. manual_buy_exp_rsp.decode = function decode(reader, length) {
  24041. if (!(reader instanceof $Reader))
  24042. reader = $Reader.create(reader);
  24043. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.manual_buy_exp_rsp();
  24044. while (reader.pos < end) {
  24045. let tag = reader.uint32();
  24046. switch (tag >>> 3) {
  24047. case 1:
  24048. message.errno = reader.int64();
  24049. break;
  24050. case 2:
  24051. message.level = reader.int64();
  24052. break;
  24053. case 3:
  24054. message.exp = reader.int64();
  24055. break;
  24056. case 4:
  24057. message.moduleid = reader.int64();
  24058. break;
  24059. default:
  24060. reader.skipType(tag & 7);
  24061. break;
  24062. }
  24063. }
  24064. return message;
  24065. };
  24066. /**
  24067. * Decodes a manual_buy_exp_rsp message from the specified reader or buffer, length delimited.
  24068. * @function decodeDelimited
  24069. * @memberof game.manual_buy_exp_rsp
  24070. * @static
  24071. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  24072. * @returns {game.manual_buy_exp_rsp} manual_buy_exp_rsp
  24073. * @throws {Error} If the payload is not a reader or valid buffer
  24074. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  24075. */
  24076. manual_buy_exp_rsp.decodeDelimited = function decodeDelimited(reader) {
  24077. if (!(reader instanceof $Reader))
  24078. reader = new $Reader(reader);
  24079. return this.decode(reader, reader.uint32());
  24080. };
  24081. /**
  24082. * Verifies a manual_buy_exp_rsp message.
  24083. * @function verify
  24084. * @memberof game.manual_buy_exp_rsp
  24085. * @static
  24086. * @param {Object.<string,*>} message Plain object to verify
  24087. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  24088. */
  24089. manual_buy_exp_rsp.verify = function verify(message) {
  24090. if (typeof message !== "object" || message === null)
  24091. return "object expected";
  24092. if (message.errno != null && message.hasOwnProperty("errno"))
  24093. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  24094. return "errno: integer|Long expected";
  24095. if (message.level != null && message.hasOwnProperty("level"))
  24096. if (!$util.isInteger(message.level) && !(message.level && $util.isInteger(message.level.low) && $util.isInteger(message.level.high)))
  24097. return "level: integer|Long expected";
  24098. if (message.exp != null && message.hasOwnProperty("exp"))
  24099. if (!$util.isInteger(message.exp) && !(message.exp && $util.isInteger(message.exp.low) && $util.isInteger(message.exp.high)))
  24100. return "exp: integer|Long expected";
  24101. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  24102. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  24103. return "moduleid: integer|Long expected";
  24104. return null;
  24105. };
  24106. /**
  24107. * Creates a manual_buy_exp_rsp message from a plain object. Also converts values to their respective internal types.
  24108. * @function fromObject
  24109. * @memberof game.manual_buy_exp_rsp
  24110. * @static
  24111. * @param {Object.<string,*>} object Plain object
  24112. * @returns {game.manual_buy_exp_rsp} manual_buy_exp_rsp
  24113. */
  24114. manual_buy_exp_rsp.fromObject = function fromObject(object) {
  24115. if (object instanceof $root.game.manual_buy_exp_rsp)
  24116. return object;
  24117. let message = new $root.game.manual_buy_exp_rsp();
  24118. if (object.errno != null)
  24119. if ($util.Long)
  24120. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  24121. else if (typeof object.errno === "string")
  24122. message.errno = parseInt(object.errno, 10);
  24123. else if (typeof object.errno === "number")
  24124. message.errno = object.errno;
  24125. else if (typeof object.errno === "object")
  24126. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  24127. if (object.level != null)
  24128. if ($util.Long)
  24129. (message.level = $util.Long.fromValue(object.level)).unsigned = false;
  24130. else if (typeof object.level === "string")
  24131. message.level = parseInt(object.level, 10);
  24132. else if (typeof object.level === "number")
  24133. message.level = object.level;
  24134. else if (typeof object.level === "object")
  24135. message.level = new $util.LongBits(object.level.low >>> 0, object.level.high >>> 0).toNumber();
  24136. if (object.exp != null)
  24137. if ($util.Long)
  24138. (message.exp = $util.Long.fromValue(object.exp)).unsigned = false;
  24139. else if (typeof object.exp === "string")
  24140. message.exp = parseInt(object.exp, 10);
  24141. else if (typeof object.exp === "number")
  24142. message.exp = object.exp;
  24143. else if (typeof object.exp === "object")
  24144. message.exp = new $util.LongBits(object.exp.low >>> 0, object.exp.high >>> 0).toNumber();
  24145. if (object.moduleid != null)
  24146. if ($util.Long)
  24147. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  24148. else if (typeof object.moduleid === "string")
  24149. message.moduleid = parseInt(object.moduleid, 10);
  24150. else if (typeof object.moduleid === "number")
  24151. message.moduleid = object.moduleid;
  24152. else if (typeof object.moduleid === "object")
  24153. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  24154. return message;
  24155. };
  24156. /**
  24157. * Creates a plain object from a manual_buy_exp_rsp message. Also converts values to other types if specified.
  24158. * @function toObject
  24159. * @memberof game.manual_buy_exp_rsp
  24160. * @static
  24161. * @param {game.manual_buy_exp_rsp} message manual_buy_exp_rsp
  24162. * @param {$protobuf.IConversionOptions} [options] Conversion options
  24163. * @returns {Object.<string,*>} Plain object
  24164. */
  24165. manual_buy_exp_rsp.toObject = function toObject(message, options) {
  24166. if (!options)
  24167. options = {};
  24168. let object = {};
  24169. if (options.defaults) {
  24170. if ($util.Long) {
  24171. let long = new $util.Long(0, 0, false);
  24172. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  24173. } else
  24174. object.errno = options.longs === String ? "0" : 0;
  24175. if ($util.Long) {
  24176. let long = new $util.Long(0, 0, false);
  24177. object.level = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  24178. } else
  24179. object.level = options.longs === String ? "0" : 0;
  24180. if ($util.Long) {
  24181. let long = new $util.Long(0, 0, false);
  24182. object.exp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  24183. } else
  24184. object.exp = options.longs === String ? "0" : 0;
  24185. if ($util.Long) {
  24186. let long = new $util.Long(0, 0, false);
  24187. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  24188. } else
  24189. object.moduleid = options.longs === String ? "0" : 0;
  24190. }
  24191. if (message.errno != null && message.hasOwnProperty("errno"))
  24192. if (typeof message.errno === "number")
  24193. object.errno = options.longs === String ? String(message.errno) : message.errno;
  24194. else
  24195. 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;
  24196. if (message.level != null && message.hasOwnProperty("level"))
  24197. if (typeof message.level === "number")
  24198. object.level = options.longs === String ? String(message.level) : message.level;
  24199. else
  24200. 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;
  24201. if (message.exp != null && message.hasOwnProperty("exp"))
  24202. if (typeof message.exp === "number")
  24203. object.exp = options.longs === String ? String(message.exp) : message.exp;
  24204. else
  24205. 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;
  24206. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  24207. if (typeof message.moduleid === "number")
  24208. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  24209. else
  24210. 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;
  24211. return object;
  24212. };
  24213. /**
  24214. * Converts this manual_buy_exp_rsp to JSON.
  24215. * @function toJSON
  24216. * @memberof game.manual_buy_exp_rsp
  24217. * @instance
  24218. * @returns {Object.<string,*>} JSON object
  24219. */
  24220. manual_buy_exp_rsp.prototype.toJSON = function toJSON() {
  24221. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  24222. };
  24223. return manual_buy_exp_rsp;
  24224. })();
  24225. game.manual_get_award = (function() {
  24226. /**
  24227. * Properties of a manual_get_award.
  24228. * @memberof game
  24229. * @interface Imanual_get_award
  24230. * @property {number|Long|null} [moduleid] manual_get_award moduleid
  24231. */
  24232. /**
  24233. * Constructs a new manual_get_award.
  24234. * @memberof game
  24235. * @classdesc Represents a manual_get_award.
  24236. * @implements Imanual_get_award
  24237. * @constructor
  24238. * @param {game.Imanual_get_award=} [properties] Properties to set
  24239. */
  24240. function manual_get_award(properties) {
  24241. if (properties)
  24242. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  24243. if (properties[keys[i]] != null)
  24244. this[keys[i]] = properties[keys[i]];
  24245. }
  24246. /**
  24247. * manual_get_award moduleid.
  24248. * @member {number|Long} moduleid
  24249. * @memberof game.manual_get_award
  24250. * @instance
  24251. */
  24252. manual_get_award.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  24253. /**
  24254. * Creates a new manual_get_award instance using the specified properties.
  24255. * @function create
  24256. * @memberof game.manual_get_award
  24257. * @static
  24258. * @param {game.Imanual_get_award=} [properties] Properties to set
  24259. * @returns {game.manual_get_award} manual_get_award instance
  24260. */
  24261. manual_get_award.create = function create(properties) {
  24262. return new manual_get_award(properties);
  24263. };
  24264. /**
  24265. * Encodes the specified manual_get_award message. Does not implicitly {@link game.manual_get_award.verify|verify} messages.
  24266. * @function encode
  24267. * @memberof game.manual_get_award
  24268. * @static
  24269. * @param {game.Imanual_get_award} message manual_get_award message or plain object to encode
  24270. * @param {$protobuf.Writer} [writer] Writer to encode to
  24271. * @returns {$protobuf.Writer} Writer
  24272. */
  24273. manual_get_award.encode = function encode(message, writer) {
  24274. if (!writer)
  24275. writer = $Writer.create();
  24276. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  24277. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.moduleid);
  24278. return writer;
  24279. };
  24280. /**
  24281. * Encodes the specified manual_get_award message, length delimited. Does not implicitly {@link game.manual_get_award.verify|verify} messages.
  24282. * @function encodeDelimited
  24283. * @memberof game.manual_get_award
  24284. * @static
  24285. * @param {game.Imanual_get_award} message manual_get_award message or plain object to encode
  24286. * @param {$protobuf.Writer} [writer] Writer to encode to
  24287. * @returns {$protobuf.Writer} Writer
  24288. */
  24289. manual_get_award.encodeDelimited = function encodeDelimited(message, writer) {
  24290. return this.encode(message, writer).ldelim();
  24291. };
  24292. /**
  24293. * Decodes a manual_get_award message from the specified reader or buffer.
  24294. * @function decode
  24295. * @memberof game.manual_get_award
  24296. * @static
  24297. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  24298. * @param {number} [length] Message length if known beforehand
  24299. * @returns {game.manual_get_award} manual_get_award
  24300. * @throws {Error} If the payload is not a reader or valid buffer
  24301. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  24302. */
  24303. manual_get_award.decode = function decode(reader, length) {
  24304. if (!(reader instanceof $Reader))
  24305. reader = $Reader.create(reader);
  24306. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.manual_get_award();
  24307. while (reader.pos < end) {
  24308. let tag = reader.uint32();
  24309. switch (tag >>> 3) {
  24310. case 1:
  24311. message.moduleid = reader.int64();
  24312. break;
  24313. default:
  24314. reader.skipType(tag & 7);
  24315. break;
  24316. }
  24317. }
  24318. return message;
  24319. };
  24320. /**
  24321. * Decodes a manual_get_award message from the specified reader or buffer, length delimited.
  24322. * @function decodeDelimited
  24323. * @memberof game.manual_get_award
  24324. * @static
  24325. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  24326. * @returns {game.manual_get_award} manual_get_award
  24327. * @throws {Error} If the payload is not a reader or valid buffer
  24328. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  24329. */
  24330. manual_get_award.decodeDelimited = function decodeDelimited(reader) {
  24331. if (!(reader instanceof $Reader))
  24332. reader = new $Reader(reader);
  24333. return this.decode(reader, reader.uint32());
  24334. };
  24335. /**
  24336. * Verifies a manual_get_award message.
  24337. * @function verify
  24338. * @memberof game.manual_get_award
  24339. * @static
  24340. * @param {Object.<string,*>} message Plain object to verify
  24341. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  24342. */
  24343. manual_get_award.verify = function verify(message) {
  24344. if (typeof message !== "object" || message === null)
  24345. return "object expected";
  24346. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  24347. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  24348. return "moduleid: integer|Long expected";
  24349. return null;
  24350. };
  24351. /**
  24352. * Creates a manual_get_award message from a plain object. Also converts values to their respective internal types.
  24353. * @function fromObject
  24354. * @memberof game.manual_get_award
  24355. * @static
  24356. * @param {Object.<string,*>} object Plain object
  24357. * @returns {game.manual_get_award} manual_get_award
  24358. */
  24359. manual_get_award.fromObject = function fromObject(object) {
  24360. if (object instanceof $root.game.manual_get_award)
  24361. return object;
  24362. let message = new $root.game.manual_get_award();
  24363. if (object.moduleid != null)
  24364. if ($util.Long)
  24365. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  24366. else if (typeof object.moduleid === "string")
  24367. message.moduleid = parseInt(object.moduleid, 10);
  24368. else if (typeof object.moduleid === "number")
  24369. message.moduleid = object.moduleid;
  24370. else if (typeof object.moduleid === "object")
  24371. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  24372. return message;
  24373. };
  24374. /**
  24375. * Creates a plain object from a manual_get_award message. Also converts values to other types if specified.
  24376. * @function toObject
  24377. * @memberof game.manual_get_award
  24378. * @static
  24379. * @param {game.manual_get_award} message manual_get_award
  24380. * @param {$protobuf.IConversionOptions} [options] Conversion options
  24381. * @returns {Object.<string,*>} Plain object
  24382. */
  24383. manual_get_award.toObject = function toObject(message, options) {
  24384. if (!options)
  24385. options = {};
  24386. let object = {};
  24387. if (options.defaults)
  24388. if ($util.Long) {
  24389. let long = new $util.Long(0, 0, false);
  24390. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  24391. } else
  24392. object.moduleid = options.longs === String ? "0" : 0;
  24393. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  24394. if (typeof message.moduleid === "number")
  24395. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  24396. else
  24397. 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;
  24398. return object;
  24399. };
  24400. /**
  24401. * Converts this manual_get_award to JSON.
  24402. * @function toJSON
  24403. * @memberof game.manual_get_award
  24404. * @instance
  24405. * @returns {Object.<string,*>} JSON object
  24406. */
  24407. manual_get_award.prototype.toJSON = function toJSON() {
  24408. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  24409. };
  24410. return manual_get_award;
  24411. })();
  24412. game.manual_get_award_rsp = (function() {
  24413. /**
  24414. * Properties of a manual_get_award_rsp.
  24415. * @memberof game
  24416. * @interface Imanual_get_award_rsp
  24417. * @property {number|Long|null} [errno] manual_get_award_rsp errno
  24418. * @property {number|Long|null} [award] manual_get_award_rsp award
  24419. * @property {number|Long|null} [moduleid] manual_get_award_rsp moduleid
  24420. */
  24421. /**
  24422. * Constructs a new manual_get_award_rsp.
  24423. * @memberof game
  24424. * @classdesc Represents a manual_get_award_rsp.
  24425. * @implements Imanual_get_award_rsp
  24426. * @constructor
  24427. * @param {game.Imanual_get_award_rsp=} [properties] Properties to set
  24428. */
  24429. function manual_get_award_rsp(properties) {
  24430. if (properties)
  24431. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  24432. if (properties[keys[i]] != null)
  24433. this[keys[i]] = properties[keys[i]];
  24434. }
  24435. /**
  24436. * manual_get_award_rsp errno.
  24437. * @member {number|Long} errno
  24438. * @memberof game.manual_get_award_rsp
  24439. * @instance
  24440. */
  24441. manual_get_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  24442. /**
  24443. * manual_get_award_rsp award.
  24444. * @member {number|Long} award
  24445. * @memberof game.manual_get_award_rsp
  24446. * @instance
  24447. */
  24448. manual_get_award_rsp.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  24449. /**
  24450. * manual_get_award_rsp moduleid.
  24451. * @member {number|Long} moduleid
  24452. * @memberof game.manual_get_award_rsp
  24453. * @instance
  24454. */
  24455. manual_get_award_rsp.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  24456. /**
  24457. * Creates a new manual_get_award_rsp instance using the specified properties.
  24458. * @function create
  24459. * @memberof game.manual_get_award_rsp
  24460. * @static
  24461. * @param {game.Imanual_get_award_rsp=} [properties] Properties to set
  24462. * @returns {game.manual_get_award_rsp} manual_get_award_rsp instance
  24463. */
  24464. manual_get_award_rsp.create = function create(properties) {
  24465. return new manual_get_award_rsp(properties);
  24466. };
  24467. /**
  24468. * Encodes the specified manual_get_award_rsp message. Does not implicitly {@link game.manual_get_award_rsp.verify|verify} messages.
  24469. * @function encode
  24470. * @memberof game.manual_get_award_rsp
  24471. * @static
  24472. * @param {game.Imanual_get_award_rsp} message manual_get_award_rsp message or plain object to encode
  24473. * @param {$protobuf.Writer} [writer] Writer to encode to
  24474. * @returns {$protobuf.Writer} Writer
  24475. */
  24476. manual_get_award_rsp.encode = function encode(message, writer) {
  24477. if (!writer)
  24478. writer = $Writer.create();
  24479. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  24480. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  24481. if (message.award != null && Object.hasOwnProperty.call(message, "award"))
  24482. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.award);
  24483. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  24484. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.moduleid);
  24485. return writer;
  24486. };
  24487. /**
  24488. * Encodes the specified manual_get_award_rsp message, length delimited. Does not implicitly {@link game.manual_get_award_rsp.verify|verify} messages.
  24489. * @function encodeDelimited
  24490. * @memberof game.manual_get_award_rsp
  24491. * @static
  24492. * @param {game.Imanual_get_award_rsp} message manual_get_award_rsp message or plain object to encode
  24493. * @param {$protobuf.Writer} [writer] Writer to encode to
  24494. * @returns {$protobuf.Writer} Writer
  24495. */
  24496. manual_get_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  24497. return this.encode(message, writer).ldelim();
  24498. };
  24499. /**
  24500. * Decodes a manual_get_award_rsp message from the specified reader or buffer.
  24501. * @function decode
  24502. * @memberof game.manual_get_award_rsp
  24503. * @static
  24504. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  24505. * @param {number} [length] Message length if known beforehand
  24506. * @returns {game.manual_get_award_rsp} manual_get_award_rsp
  24507. * @throws {Error} If the payload is not a reader or valid buffer
  24508. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  24509. */
  24510. manual_get_award_rsp.decode = function decode(reader, length) {
  24511. if (!(reader instanceof $Reader))
  24512. reader = $Reader.create(reader);
  24513. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.manual_get_award_rsp();
  24514. while (reader.pos < end) {
  24515. let tag = reader.uint32();
  24516. switch (tag >>> 3) {
  24517. case 1:
  24518. message.errno = reader.int64();
  24519. break;
  24520. case 2:
  24521. message.award = reader.int64();
  24522. break;
  24523. case 3:
  24524. message.moduleid = reader.int64();
  24525. break;
  24526. default:
  24527. reader.skipType(tag & 7);
  24528. break;
  24529. }
  24530. }
  24531. return message;
  24532. };
  24533. /**
  24534. * Decodes a manual_get_award_rsp message from the specified reader or buffer, length delimited.
  24535. * @function decodeDelimited
  24536. * @memberof game.manual_get_award_rsp
  24537. * @static
  24538. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  24539. * @returns {game.manual_get_award_rsp} manual_get_award_rsp
  24540. * @throws {Error} If the payload is not a reader or valid buffer
  24541. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  24542. */
  24543. manual_get_award_rsp.decodeDelimited = function decodeDelimited(reader) {
  24544. if (!(reader instanceof $Reader))
  24545. reader = new $Reader(reader);
  24546. return this.decode(reader, reader.uint32());
  24547. };
  24548. /**
  24549. * Verifies a manual_get_award_rsp message.
  24550. * @function verify
  24551. * @memberof game.manual_get_award_rsp
  24552. * @static
  24553. * @param {Object.<string,*>} message Plain object to verify
  24554. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  24555. */
  24556. manual_get_award_rsp.verify = function verify(message) {
  24557. if (typeof message !== "object" || message === null)
  24558. return "object expected";
  24559. if (message.errno != null && message.hasOwnProperty("errno"))
  24560. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  24561. return "errno: integer|Long expected";
  24562. if (message.award != null && message.hasOwnProperty("award"))
  24563. if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
  24564. return "award: integer|Long expected";
  24565. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  24566. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  24567. return "moduleid: integer|Long expected";
  24568. return null;
  24569. };
  24570. /**
  24571. * Creates a manual_get_award_rsp message from a plain object. Also converts values to their respective internal types.
  24572. * @function fromObject
  24573. * @memberof game.manual_get_award_rsp
  24574. * @static
  24575. * @param {Object.<string,*>} object Plain object
  24576. * @returns {game.manual_get_award_rsp} manual_get_award_rsp
  24577. */
  24578. manual_get_award_rsp.fromObject = function fromObject(object) {
  24579. if (object instanceof $root.game.manual_get_award_rsp)
  24580. return object;
  24581. let message = new $root.game.manual_get_award_rsp();
  24582. if (object.errno != null)
  24583. if ($util.Long)
  24584. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  24585. else if (typeof object.errno === "string")
  24586. message.errno = parseInt(object.errno, 10);
  24587. else if (typeof object.errno === "number")
  24588. message.errno = object.errno;
  24589. else if (typeof object.errno === "object")
  24590. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  24591. if (object.award != null)
  24592. if ($util.Long)
  24593. (message.award = $util.Long.fromValue(object.award)).unsigned = false;
  24594. else if (typeof object.award === "string")
  24595. message.award = parseInt(object.award, 10);
  24596. else if (typeof object.award === "number")
  24597. message.award = object.award;
  24598. else if (typeof object.award === "object")
  24599. message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
  24600. if (object.moduleid != null)
  24601. if ($util.Long)
  24602. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  24603. else if (typeof object.moduleid === "string")
  24604. message.moduleid = parseInt(object.moduleid, 10);
  24605. else if (typeof object.moduleid === "number")
  24606. message.moduleid = object.moduleid;
  24607. else if (typeof object.moduleid === "object")
  24608. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  24609. return message;
  24610. };
  24611. /**
  24612. * Creates a plain object from a manual_get_award_rsp message. Also converts values to other types if specified.
  24613. * @function toObject
  24614. * @memberof game.manual_get_award_rsp
  24615. * @static
  24616. * @param {game.manual_get_award_rsp} message manual_get_award_rsp
  24617. * @param {$protobuf.IConversionOptions} [options] Conversion options
  24618. * @returns {Object.<string,*>} Plain object
  24619. */
  24620. manual_get_award_rsp.toObject = function toObject(message, options) {
  24621. if (!options)
  24622. options = {};
  24623. let object = {};
  24624. if (options.defaults) {
  24625. if ($util.Long) {
  24626. let long = new $util.Long(0, 0, false);
  24627. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  24628. } else
  24629. object.errno = options.longs === String ? "0" : 0;
  24630. if ($util.Long) {
  24631. let long = new $util.Long(0, 0, false);
  24632. object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  24633. } else
  24634. object.award = options.longs === String ? "0" : 0;
  24635. if ($util.Long) {
  24636. let long = new $util.Long(0, 0, false);
  24637. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  24638. } else
  24639. object.moduleid = options.longs === String ? "0" : 0;
  24640. }
  24641. if (message.errno != null && message.hasOwnProperty("errno"))
  24642. if (typeof message.errno === "number")
  24643. object.errno = options.longs === String ? String(message.errno) : message.errno;
  24644. else
  24645. 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;
  24646. if (message.award != null && message.hasOwnProperty("award"))
  24647. if (typeof message.award === "number")
  24648. object.award = options.longs === String ? String(message.award) : message.award;
  24649. else
  24650. 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;
  24651. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  24652. if (typeof message.moduleid === "number")
  24653. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  24654. else
  24655. 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;
  24656. return object;
  24657. };
  24658. /**
  24659. * Converts this manual_get_award_rsp to JSON.
  24660. * @function toJSON
  24661. * @memberof game.manual_get_award_rsp
  24662. * @instance
  24663. * @returns {Object.<string,*>} JSON object
  24664. */
  24665. manual_get_award_rsp.prototype.toJSON = function toJSON() {
  24666. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  24667. };
  24668. return manual_get_award_rsp;
  24669. })();
  24670. game.manual_notify = (function() {
  24671. /**
  24672. * Properties of a manual_notify.
  24673. * @memberof game
  24674. * @interface Imanual_notify
  24675. * @property {boolean|null} [open] manual_notify open
  24676. * @property {number|Long|null} [openTime] manual_notify openTime
  24677. * @property {number|Long|null} [level] manual_notify level
  24678. * @property {number|Long|null} [exp] manual_notify exp
  24679. * @property {number|Long|null} [round] manual_notify round
  24680. * @property {Array.<game.Imanual>|null} [list] manual_notify list
  24681. * @property {number|Long|null} [moduleid] manual_notify moduleid
  24682. */
  24683. /**
  24684. * Constructs a new manual_notify.
  24685. * @memberof game
  24686. * @classdesc Represents a manual_notify.
  24687. * @implements Imanual_notify
  24688. * @constructor
  24689. * @param {game.Imanual_notify=} [properties] Properties to set
  24690. */
  24691. function manual_notify(properties) {
  24692. this.list = [];
  24693. if (properties)
  24694. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  24695. if (properties[keys[i]] != null)
  24696. this[keys[i]] = properties[keys[i]];
  24697. }
  24698. /**
  24699. * manual_notify open.
  24700. * @member {boolean} open
  24701. * @memberof game.manual_notify
  24702. * @instance
  24703. */
  24704. manual_notify.prototype.open = false;
  24705. /**
  24706. * manual_notify openTime.
  24707. * @member {number|Long} openTime
  24708. * @memberof game.manual_notify
  24709. * @instance
  24710. */
  24711. manual_notify.prototype.openTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  24712. /**
  24713. * manual_notify level.
  24714. * @member {number|Long} level
  24715. * @memberof game.manual_notify
  24716. * @instance
  24717. */
  24718. manual_notify.prototype.level = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  24719. /**
  24720. * manual_notify exp.
  24721. * @member {number|Long} exp
  24722. * @memberof game.manual_notify
  24723. * @instance
  24724. */
  24725. manual_notify.prototype.exp = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  24726. /**
  24727. * manual_notify round.
  24728. * @member {number|Long} round
  24729. * @memberof game.manual_notify
  24730. * @instance
  24731. */
  24732. manual_notify.prototype.round = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  24733. /**
  24734. * manual_notify list.
  24735. * @member {Array.<game.Imanual>} list
  24736. * @memberof game.manual_notify
  24737. * @instance
  24738. */
  24739. manual_notify.prototype.list = $util.emptyArray;
  24740. /**
  24741. * manual_notify moduleid.
  24742. * @member {number|Long} moduleid
  24743. * @memberof game.manual_notify
  24744. * @instance
  24745. */
  24746. manual_notify.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  24747. /**
  24748. * Creates a new manual_notify instance using the specified properties.
  24749. * @function create
  24750. * @memberof game.manual_notify
  24751. * @static
  24752. * @param {game.Imanual_notify=} [properties] Properties to set
  24753. * @returns {game.manual_notify} manual_notify instance
  24754. */
  24755. manual_notify.create = function create(properties) {
  24756. return new manual_notify(properties);
  24757. };
  24758. /**
  24759. * Encodes the specified manual_notify message. Does not implicitly {@link game.manual_notify.verify|verify} messages.
  24760. * @function encode
  24761. * @memberof game.manual_notify
  24762. * @static
  24763. * @param {game.Imanual_notify} message manual_notify message or plain object to encode
  24764. * @param {$protobuf.Writer} [writer] Writer to encode to
  24765. * @returns {$protobuf.Writer} Writer
  24766. */
  24767. manual_notify.encode = function encode(message, writer) {
  24768. if (!writer)
  24769. writer = $Writer.create();
  24770. if (message.open != null && Object.hasOwnProperty.call(message, "open"))
  24771. writer.uint32(/* id 2, wireType 0 =*/16).bool(message.open);
  24772. if (message.openTime != null && Object.hasOwnProperty.call(message, "openTime"))
  24773. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.openTime);
  24774. if (message.level != null && Object.hasOwnProperty.call(message, "level"))
  24775. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.level);
  24776. if (message.exp != null && Object.hasOwnProperty.call(message, "exp"))
  24777. writer.uint32(/* id 5, wireType 0 =*/40).int64(message.exp);
  24778. if (message.round != null && Object.hasOwnProperty.call(message, "round"))
  24779. writer.uint32(/* id 6, wireType 0 =*/48).int64(message.round);
  24780. if (message.list != null && message.list.length)
  24781. for (let i = 0; i < message.list.length; ++i)
  24782. $root.game.manual.encode(message.list[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
  24783. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  24784. writer.uint32(/* id 8, wireType 0 =*/64).int64(message.moduleid);
  24785. return writer;
  24786. };
  24787. /**
  24788. * Encodes the specified manual_notify message, length delimited. Does not implicitly {@link game.manual_notify.verify|verify} messages.
  24789. * @function encodeDelimited
  24790. * @memberof game.manual_notify
  24791. * @static
  24792. * @param {game.Imanual_notify} message manual_notify message or plain object to encode
  24793. * @param {$protobuf.Writer} [writer] Writer to encode to
  24794. * @returns {$protobuf.Writer} Writer
  24795. */
  24796. manual_notify.encodeDelimited = function encodeDelimited(message, writer) {
  24797. return this.encode(message, writer).ldelim();
  24798. };
  24799. /**
  24800. * Decodes a manual_notify message from the specified reader or buffer.
  24801. * @function decode
  24802. * @memberof game.manual_notify
  24803. * @static
  24804. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  24805. * @param {number} [length] Message length if known beforehand
  24806. * @returns {game.manual_notify} manual_notify
  24807. * @throws {Error} If the payload is not a reader or valid buffer
  24808. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  24809. */
  24810. manual_notify.decode = function decode(reader, length) {
  24811. if (!(reader instanceof $Reader))
  24812. reader = $Reader.create(reader);
  24813. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.manual_notify();
  24814. while (reader.pos < end) {
  24815. let tag = reader.uint32();
  24816. switch (tag >>> 3) {
  24817. case 2:
  24818. message.open = reader.bool();
  24819. break;
  24820. case 3:
  24821. message.openTime = reader.int64();
  24822. break;
  24823. case 4:
  24824. message.level = reader.int64();
  24825. break;
  24826. case 5:
  24827. message.exp = reader.int64();
  24828. break;
  24829. case 6:
  24830. message.round = reader.int64();
  24831. break;
  24832. case 7:
  24833. if (!(message.list && message.list.length))
  24834. message.list = [];
  24835. message.list.push($root.game.manual.decode(reader, reader.uint32()));
  24836. break;
  24837. case 8:
  24838. message.moduleid = reader.int64();
  24839. break;
  24840. default:
  24841. reader.skipType(tag & 7);
  24842. break;
  24843. }
  24844. }
  24845. return message;
  24846. };
  24847. /**
  24848. * Decodes a manual_notify message from the specified reader or buffer, length delimited.
  24849. * @function decodeDelimited
  24850. * @memberof game.manual_notify
  24851. * @static
  24852. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  24853. * @returns {game.manual_notify} manual_notify
  24854. * @throws {Error} If the payload is not a reader or valid buffer
  24855. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  24856. */
  24857. manual_notify.decodeDelimited = function decodeDelimited(reader) {
  24858. if (!(reader instanceof $Reader))
  24859. reader = new $Reader(reader);
  24860. return this.decode(reader, reader.uint32());
  24861. };
  24862. /**
  24863. * Verifies a manual_notify message.
  24864. * @function verify
  24865. * @memberof game.manual_notify
  24866. * @static
  24867. * @param {Object.<string,*>} message Plain object to verify
  24868. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  24869. */
  24870. manual_notify.verify = function verify(message) {
  24871. if (typeof message !== "object" || message === null)
  24872. return "object expected";
  24873. if (message.open != null && message.hasOwnProperty("open"))
  24874. if (typeof message.open !== "boolean")
  24875. return "open: boolean expected";
  24876. if (message.openTime != null && message.hasOwnProperty("openTime"))
  24877. if (!$util.isInteger(message.openTime) && !(message.openTime && $util.isInteger(message.openTime.low) && $util.isInteger(message.openTime.high)))
  24878. return "openTime: integer|Long expected";
  24879. if (message.level != null && message.hasOwnProperty("level"))
  24880. if (!$util.isInteger(message.level) && !(message.level && $util.isInteger(message.level.low) && $util.isInteger(message.level.high)))
  24881. return "level: integer|Long expected";
  24882. if (message.exp != null && message.hasOwnProperty("exp"))
  24883. if (!$util.isInteger(message.exp) && !(message.exp && $util.isInteger(message.exp.low) && $util.isInteger(message.exp.high)))
  24884. return "exp: integer|Long expected";
  24885. if (message.round != null && message.hasOwnProperty("round"))
  24886. if (!$util.isInteger(message.round) && !(message.round && $util.isInteger(message.round.low) && $util.isInteger(message.round.high)))
  24887. return "round: integer|Long expected";
  24888. if (message.list != null && message.hasOwnProperty("list")) {
  24889. if (!Array.isArray(message.list))
  24890. return "list: array expected";
  24891. for (let i = 0; i < message.list.length; ++i) {
  24892. let error = $root.game.manual.verify(message.list[i]);
  24893. if (error)
  24894. return "list." + error;
  24895. }
  24896. }
  24897. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  24898. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  24899. return "moduleid: integer|Long expected";
  24900. return null;
  24901. };
  24902. /**
  24903. * Creates a manual_notify message from a plain object. Also converts values to their respective internal types.
  24904. * @function fromObject
  24905. * @memberof game.manual_notify
  24906. * @static
  24907. * @param {Object.<string,*>} object Plain object
  24908. * @returns {game.manual_notify} manual_notify
  24909. */
  24910. manual_notify.fromObject = function fromObject(object) {
  24911. if (object instanceof $root.game.manual_notify)
  24912. return object;
  24913. let message = new $root.game.manual_notify();
  24914. if (object.open != null)
  24915. message.open = Boolean(object.open);
  24916. if (object.openTime != null)
  24917. if ($util.Long)
  24918. (message.openTime = $util.Long.fromValue(object.openTime)).unsigned = false;
  24919. else if (typeof object.openTime === "string")
  24920. message.openTime = parseInt(object.openTime, 10);
  24921. else if (typeof object.openTime === "number")
  24922. message.openTime = object.openTime;
  24923. else if (typeof object.openTime === "object")
  24924. message.openTime = new $util.LongBits(object.openTime.low >>> 0, object.openTime.high >>> 0).toNumber();
  24925. if (object.level != null)
  24926. if ($util.Long)
  24927. (message.level = $util.Long.fromValue(object.level)).unsigned = false;
  24928. else if (typeof object.level === "string")
  24929. message.level = parseInt(object.level, 10);
  24930. else if (typeof object.level === "number")
  24931. message.level = object.level;
  24932. else if (typeof object.level === "object")
  24933. message.level = new $util.LongBits(object.level.low >>> 0, object.level.high >>> 0).toNumber();
  24934. if (object.exp != null)
  24935. if ($util.Long)
  24936. (message.exp = $util.Long.fromValue(object.exp)).unsigned = false;
  24937. else if (typeof object.exp === "string")
  24938. message.exp = parseInt(object.exp, 10);
  24939. else if (typeof object.exp === "number")
  24940. message.exp = object.exp;
  24941. else if (typeof object.exp === "object")
  24942. message.exp = new $util.LongBits(object.exp.low >>> 0, object.exp.high >>> 0).toNumber();
  24943. if (object.round != null)
  24944. if ($util.Long)
  24945. (message.round = $util.Long.fromValue(object.round)).unsigned = false;
  24946. else if (typeof object.round === "string")
  24947. message.round = parseInt(object.round, 10);
  24948. else if (typeof object.round === "number")
  24949. message.round = object.round;
  24950. else if (typeof object.round === "object")
  24951. message.round = new $util.LongBits(object.round.low >>> 0, object.round.high >>> 0).toNumber();
  24952. if (object.list) {
  24953. if (!Array.isArray(object.list))
  24954. throw TypeError(".game.manual_notify.list: array expected");
  24955. message.list = [];
  24956. for (let i = 0; i < object.list.length; ++i) {
  24957. if (typeof object.list[i] !== "object")
  24958. throw TypeError(".game.manual_notify.list: object expected");
  24959. message.list[i] = $root.game.manual.fromObject(object.list[i]);
  24960. }
  24961. }
  24962. if (object.moduleid != null)
  24963. if ($util.Long)
  24964. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  24965. else if (typeof object.moduleid === "string")
  24966. message.moduleid = parseInt(object.moduleid, 10);
  24967. else if (typeof object.moduleid === "number")
  24968. message.moduleid = object.moduleid;
  24969. else if (typeof object.moduleid === "object")
  24970. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  24971. return message;
  24972. };
  24973. /**
  24974. * Creates a plain object from a manual_notify message. Also converts values to other types if specified.
  24975. * @function toObject
  24976. * @memberof game.manual_notify
  24977. * @static
  24978. * @param {game.manual_notify} message manual_notify
  24979. * @param {$protobuf.IConversionOptions} [options] Conversion options
  24980. * @returns {Object.<string,*>} Plain object
  24981. */
  24982. manual_notify.toObject = function toObject(message, options) {
  24983. if (!options)
  24984. options = {};
  24985. let object = {};
  24986. if (options.arrays || options.defaults)
  24987. object.list = [];
  24988. if (options.defaults) {
  24989. object.open = false;
  24990. if ($util.Long) {
  24991. let long = new $util.Long(0, 0, false);
  24992. object.openTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  24993. } else
  24994. object.openTime = options.longs === String ? "0" : 0;
  24995. if ($util.Long) {
  24996. let long = new $util.Long(0, 0, false);
  24997. object.level = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  24998. } else
  24999. object.level = options.longs === String ? "0" : 0;
  25000. if ($util.Long) {
  25001. let long = new $util.Long(0, 0, false);
  25002. object.exp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  25003. } else
  25004. object.exp = options.longs === String ? "0" : 0;
  25005. if ($util.Long) {
  25006. let long = new $util.Long(0, 0, false);
  25007. object.round = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  25008. } else
  25009. object.round = options.longs === String ? "0" : 0;
  25010. if ($util.Long) {
  25011. let long = new $util.Long(0, 0, false);
  25012. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  25013. } else
  25014. object.moduleid = options.longs === String ? "0" : 0;
  25015. }
  25016. if (message.open != null && message.hasOwnProperty("open"))
  25017. object.open = message.open;
  25018. if (message.openTime != null && message.hasOwnProperty("openTime"))
  25019. if (typeof message.openTime === "number")
  25020. object.openTime = options.longs === String ? String(message.openTime) : message.openTime;
  25021. else
  25022. 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;
  25023. if (message.level != null && message.hasOwnProperty("level"))
  25024. if (typeof message.level === "number")
  25025. object.level = options.longs === String ? String(message.level) : message.level;
  25026. else
  25027. 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;
  25028. if (message.exp != null && message.hasOwnProperty("exp"))
  25029. if (typeof message.exp === "number")
  25030. object.exp = options.longs === String ? String(message.exp) : message.exp;
  25031. else
  25032. 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;
  25033. if (message.round != null && message.hasOwnProperty("round"))
  25034. if (typeof message.round === "number")
  25035. object.round = options.longs === String ? String(message.round) : message.round;
  25036. else
  25037. 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;
  25038. if (message.list && message.list.length) {
  25039. object.list = [];
  25040. for (let j = 0; j < message.list.length; ++j)
  25041. object.list[j] = $root.game.manual.toObject(message.list[j], options);
  25042. }
  25043. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  25044. if (typeof message.moduleid === "number")
  25045. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  25046. else
  25047. 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;
  25048. return object;
  25049. };
  25050. /**
  25051. * Converts this manual_notify to JSON.
  25052. * @function toJSON
  25053. * @memberof game.manual_notify
  25054. * @instance
  25055. * @returns {Object.<string,*>} JSON object
  25056. */
  25057. manual_notify.prototype.toJSON = function toJSON() {
  25058. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  25059. };
  25060. return manual_notify;
  25061. })();
  25062. game.manual_buy = (function() {
  25063. /**
  25064. * Properties of a manual_buy.
  25065. * @memberof game
  25066. * @interface Imanual_buy
  25067. * @property {number|Long|null} [giftid] manual_buy giftid
  25068. * @property {number|Long|null} [moduleid] manual_buy moduleid
  25069. */
  25070. /**
  25071. * Constructs a new manual_buy.
  25072. * @memberof game
  25073. * @classdesc Represents a manual_buy.
  25074. * @implements Imanual_buy
  25075. * @constructor
  25076. * @param {game.Imanual_buy=} [properties] Properties to set
  25077. */
  25078. function manual_buy(properties) {
  25079. if (properties)
  25080. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  25081. if (properties[keys[i]] != null)
  25082. this[keys[i]] = properties[keys[i]];
  25083. }
  25084. /**
  25085. * manual_buy giftid.
  25086. * @member {number|Long} giftid
  25087. * @memberof game.manual_buy
  25088. * @instance
  25089. */
  25090. manual_buy.prototype.giftid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  25091. /**
  25092. * manual_buy moduleid.
  25093. * @member {number|Long} moduleid
  25094. * @memberof game.manual_buy
  25095. * @instance
  25096. */
  25097. manual_buy.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  25098. /**
  25099. * Creates a new manual_buy instance using the specified properties.
  25100. * @function create
  25101. * @memberof game.manual_buy
  25102. * @static
  25103. * @param {game.Imanual_buy=} [properties] Properties to set
  25104. * @returns {game.manual_buy} manual_buy instance
  25105. */
  25106. manual_buy.create = function create(properties) {
  25107. return new manual_buy(properties);
  25108. };
  25109. /**
  25110. * Encodes the specified manual_buy message. Does not implicitly {@link game.manual_buy.verify|verify} messages.
  25111. * @function encode
  25112. * @memberof game.manual_buy
  25113. * @static
  25114. * @param {game.Imanual_buy} message manual_buy message or plain object to encode
  25115. * @param {$protobuf.Writer} [writer] Writer to encode to
  25116. * @returns {$protobuf.Writer} Writer
  25117. */
  25118. manual_buy.encode = function encode(message, writer) {
  25119. if (!writer)
  25120. writer = $Writer.create();
  25121. if (message.giftid != null && Object.hasOwnProperty.call(message, "giftid"))
  25122. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.giftid);
  25123. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  25124. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.moduleid);
  25125. return writer;
  25126. };
  25127. /**
  25128. * Encodes the specified manual_buy message, length delimited. Does not implicitly {@link game.manual_buy.verify|verify} messages.
  25129. * @function encodeDelimited
  25130. * @memberof game.manual_buy
  25131. * @static
  25132. * @param {game.Imanual_buy} message manual_buy message or plain object to encode
  25133. * @param {$protobuf.Writer} [writer] Writer to encode to
  25134. * @returns {$protobuf.Writer} Writer
  25135. */
  25136. manual_buy.encodeDelimited = function encodeDelimited(message, writer) {
  25137. return this.encode(message, writer).ldelim();
  25138. };
  25139. /**
  25140. * Decodes a manual_buy message from the specified reader or buffer.
  25141. * @function decode
  25142. * @memberof game.manual_buy
  25143. * @static
  25144. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  25145. * @param {number} [length] Message length if known beforehand
  25146. * @returns {game.manual_buy} manual_buy
  25147. * @throws {Error} If the payload is not a reader or valid buffer
  25148. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  25149. */
  25150. manual_buy.decode = function decode(reader, length) {
  25151. if (!(reader instanceof $Reader))
  25152. reader = $Reader.create(reader);
  25153. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.manual_buy();
  25154. while (reader.pos < end) {
  25155. let tag = reader.uint32();
  25156. switch (tag >>> 3) {
  25157. case 1:
  25158. message.giftid = reader.int64();
  25159. break;
  25160. case 2:
  25161. message.moduleid = reader.int64();
  25162. break;
  25163. default:
  25164. reader.skipType(tag & 7);
  25165. break;
  25166. }
  25167. }
  25168. return message;
  25169. };
  25170. /**
  25171. * Decodes a manual_buy message from the specified reader or buffer, length delimited.
  25172. * @function decodeDelimited
  25173. * @memberof game.manual_buy
  25174. * @static
  25175. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  25176. * @returns {game.manual_buy} manual_buy
  25177. * @throws {Error} If the payload is not a reader or valid buffer
  25178. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  25179. */
  25180. manual_buy.decodeDelimited = function decodeDelimited(reader) {
  25181. if (!(reader instanceof $Reader))
  25182. reader = new $Reader(reader);
  25183. return this.decode(reader, reader.uint32());
  25184. };
  25185. /**
  25186. * Verifies a manual_buy message.
  25187. * @function verify
  25188. * @memberof game.manual_buy
  25189. * @static
  25190. * @param {Object.<string,*>} message Plain object to verify
  25191. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  25192. */
  25193. manual_buy.verify = function verify(message) {
  25194. if (typeof message !== "object" || message === null)
  25195. return "object expected";
  25196. if (message.giftid != null && message.hasOwnProperty("giftid"))
  25197. if (!$util.isInteger(message.giftid) && !(message.giftid && $util.isInteger(message.giftid.low) && $util.isInteger(message.giftid.high)))
  25198. return "giftid: integer|Long expected";
  25199. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  25200. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  25201. return "moduleid: integer|Long expected";
  25202. return null;
  25203. };
  25204. /**
  25205. * Creates a manual_buy message from a plain object. Also converts values to their respective internal types.
  25206. * @function fromObject
  25207. * @memberof game.manual_buy
  25208. * @static
  25209. * @param {Object.<string,*>} object Plain object
  25210. * @returns {game.manual_buy} manual_buy
  25211. */
  25212. manual_buy.fromObject = function fromObject(object) {
  25213. if (object instanceof $root.game.manual_buy)
  25214. return object;
  25215. let message = new $root.game.manual_buy();
  25216. if (object.giftid != null)
  25217. if ($util.Long)
  25218. (message.giftid = $util.Long.fromValue(object.giftid)).unsigned = false;
  25219. else if (typeof object.giftid === "string")
  25220. message.giftid = parseInt(object.giftid, 10);
  25221. else if (typeof object.giftid === "number")
  25222. message.giftid = object.giftid;
  25223. else if (typeof object.giftid === "object")
  25224. message.giftid = new $util.LongBits(object.giftid.low >>> 0, object.giftid.high >>> 0).toNumber();
  25225. if (object.moduleid != null)
  25226. if ($util.Long)
  25227. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  25228. else if (typeof object.moduleid === "string")
  25229. message.moduleid = parseInt(object.moduleid, 10);
  25230. else if (typeof object.moduleid === "number")
  25231. message.moduleid = object.moduleid;
  25232. else if (typeof object.moduleid === "object")
  25233. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  25234. return message;
  25235. };
  25236. /**
  25237. * Creates a plain object from a manual_buy message. Also converts values to other types if specified.
  25238. * @function toObject
  25239. * @memberof game.manual_buy
  25240. * @static
  25241. * @param {game.manual_buy} message manual_buy
  25242. * @param {$protobuf.IConversionOptions} [options] Conversion options
  25243. * @returns {Object.<string,*>} Plain object
  25244. */
  25245. manual_buy.toObject = function toObject(message, options) {
  25246. if (!options)
  25247. options = {};
  25248. let object = {};
  25249. if (options.defaults) {
  25250. if ($util.Long) {
  25251. let long = new $util.Long(0, 0, false);
  25252. object.giftid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  25253. } else
  25254. object.giftid = options.longs === String ? "0" : 0;
  25255. if ($util.Long) {
  25256. let long = new $util.Long(0, 0, false);
  25257. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  25258. } else
  25259. object.moduleid = options.longs === String ? "0" : 0;
  25260. }
  25261. if (message.giftid != null && message.hasOwnProperty("giftid"))
  25262. if (typeof message.giftid === "number")
  25263. object.giftid = options.longs === String ? String(message.giftid) : message.giftid;
  25264. else
  25265. 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;
  25266. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  25267. if (typeof message.moduleid === "number")
  25268. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  25269. else
  25270. 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;
  25271. return object;
  25272. };
  25273. /**
  25274. * Converts this manual_buy to JSON.
  25275. * @function toJSON
  25276. * @memberof game.manual_buy
  25277. * @instance
  25278. * @returns {Object.<string,*>} JSON object
  25279. */
  25280. manual_buy.prototype.toJSON = function toJSON() {
  25281. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  25282. };
  25283. return manual_buy;
  25284. })();
  25285. game.manual_buy_rsp = (function() {
  25286. /**
  25287. * Properties of a manual_buy_rsp.
  25288. * @memberof game
  25289. * @interface Imanual_buy_rsp
  25290. * @property {number|Long|null} [errno] manual_buy_rsp errno
  25291. * @property {number|Long|null} [moduleid] manual_buy_rsp moduleid
  25292. */
  25293. /**
  25294. * Constructs a new manual_buy_rsp.
  25295. * @memberof game
  25296. * @classdesc Represents a manual_buy_rsp.
  25297. * @implements Imanual_buy_rsp
  25298. * @constructor
  25299. * @param {game.Imanual_buy_rsp=} [properties] Properties to set
  25300. */
  25301. function manual_buy_rsp(properties) {
  25302. if (properties)
  25303. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  25304. if (properties[keys[i]] != null)
  25305. this[keys[i]] = properties[keys[i]];
  25306. }
  25307. /**
  25308. * manual_buy_rsp errno.
  25309. * @member {number|Long} errno
  25310. * @memberof game.manual_buy_rsp
  25311. * @instance
  25312. */
  25313. manual_buy_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  25314. /**
  25315. * manual_buy_rsp moduleid.
  25316. * @member {number|Long} moduleid
  25317. * @memberof game.manual_buy_rsp
  25318. * @instance
  25319. */
  25320. manual_buy_rsp.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  25321. /**
  25322. * Creates a new manual_buy_rsp instance using the specified properties.
  25323. * @function create
  25324. * @memberof game.manual_buy_rsp
  25325. * @static
  25326. * @param {game.Imanual_buy_rsp=} [properties] Properties to set
  25327. * @returns {game.manual_buy_rsp} manual_buy_rsp instance
  25328. */
  25329. manual_buy_rsp.create = function create(properties) {
  25330. return new manual_buy_rsp(properties);
  25331. };
  25332. /**
  25333. * Encodes the specified manual_buy_rsp message. Does not implicitly {@link game.manual_buy_rsp.verify|verify} messages.
  25334. * @function encode
  25335. * @memberof game.manual_buy_rsp
  25336. * @static
  25337. * @param {game.Imanual_buy_rsp} message manual_buy_rsp message or plain object to encode
  25338. * @param {$protobuf.Writer} [writer] Writer to encode to
  25339. * @returns {$protobuf.Writer} Writer
  25340. */
  25341. manual_buy_rsp.encode = function encode(message, writer) {
  25342. if (!writer)
  25343. writer = $Writer.create();
  25344. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  25345. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  25346. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  25347. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.moduleid);
  25348. return writer;
  25349. };
  25350. /**
  25351. * Encodes the specified manual_buy_rsp message, length delimited. Does not implicitly {@link game.manual_buy_rsp.verify|verify} messages.
  25352. * @function encodeDelimited
  25353. * @memberof game.manual_buy_rsp
  25354. * @static
  25355. * @param {game.Imanual_buy_rsp} message manual_buy_rsp message or plain object to encode
  25356. * @param {$protobuf.Writer} [writer] Writer to encode to
  25357. * @returns {$protobuf.Writer} Writer
  25358. */
  25359. manual_buy_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  25360. return this.encode(message, writer).ldelim();
  25361. };
  25362. /**
  25363. * Decodes a manual_buy_rsp message from the specified reader or buffer.
  25364. * @function decode
  25365. * @memberof game.manual_buy_rsp
  25366. * @static
  25367. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  25368. * @param {number} [length] Message length if known beforehand
  25369. * @returns {game.manual_buy_rsp} manual_buy_rsp
  25370. * @throws {Error} If the payload is not a reader or valid buffer
  25371. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  25372. */
  25373. manual_buy_rsp.decode = function decode(reader, length) {
  25374. if (!(reader instanceof $Reader))
  25375. reader = $Reader.create(reader);
  25376. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.manual_buy_rsp();
  25377. while (reader.pos < end) {
  25378. let tag = reader.uint32();
  25379. switch (tag >>> 3) {
  25380. case 1:
  25381. message.errno = reader.int64();
  25382. break;
  25383. case 2:
  25384. message.moduleid = reader.int64();
  25385. break;
  25386. default:
  25387. reader.skipType(tag & 7);
  25388. break;
  25389. }
  25390. }
  25391. return message;
  25392. };
  25393. /**
  25394. * Decodes a manual_buy_rsp message from the specified reader or buffer, length delimited.
  25395. * @function decodeDelimited
  25396. * @memberof game.manual_buy_rsp
  25397. * @static
  25398. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  25399. * @returns {game.manual_buy_rsp} manual_buy_rsp
  25400. * @throws {Error} If the payload is not a reader or valid buffer
  25401. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  25402. */
  25403. manual_buy_rsp.decodeDelimited = function decodeDelimited(reader) {
  25404. if (!(reader instanceof $Reader))
  25405. reader = new $Reader(reader);
  25406. return this.decode(reader, reader.uint32());
  25407. };
  25408. /**
  25409. * Verifies a manual_buy_rsp message.
  25410. * @function verify
  25411. * @memberof game.manual_buy_rsp
  25412. * @static
  25413. * @param {Object.<string,*>} message Plain object to verify
  25414. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  25415. */
  25416. manual_buy_rsp.verify = function verify(message) {
  25417. if (typeof message !== "object" || message === null)
  25418. return "object expected";
  25419. if (message.errno != null && message.hasOwnProperty("errno"))
  25420. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  25421. return "errno: integer|Long expected";
  25422. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  25423. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  25424. return "moduleid: integer|Long expected";
  25425. return null;
  25426. };
  25427. /**
  25428. * Creates a manual_buy_rsp message from a plain object. Also converts values to their respective internal types.
  25429. * @function fromObject
  25430. * @memberof game.manual_buy_rsp
  25431. * @static
  25432. * @param {Object.<string,*>} object Plain object
  25433. * @returns {game.manual_buy_rsp} manual_buy_rsp
  25434. */
  25435. manual_buy_rsp.fromObject = function fromObject(object) {
  25436. if (object instanceof $root.game.manual_buy_rsp)
  25437. return object;
  25438. let message = new $root.game.manual_buy_rsp();
  25439. if (object.errno != null)
  25440. if ($util.Long)
  25441. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  25442. else if (typeof object.errno === "string")
  25443. message.errno = parseInt(object.errno, 10);
  25444. else if (typeof object.errno === "number")
  25445. message.errno = object.errno;
  25446. else if (typeof object.errno === "object")
  25447. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  25448. if (object.moduleid != null)
  25449. if ($util.Long)
  25450. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  25451. else if (typeof object.moduleid === "string")
  25452. message.moduleid = parseInt(object.moduleid, 10);
  25453. else if (typeof object.moduleid === "number")
  25454. message.moduleid = object.moduleid;
  25455. else if (typeof object.moduleid === "object")
  25456. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  25457. return message;
  25458. };
  25459. /**
  25460. * Creates a plain object from a manual_buy_rsp message. Also converts values to other types if specified.
  25461. * @function toObject
  25462. * @memberof game.manual_buy_rsp
  25463. * @static
  25464. * @param {game.manual_buy_rsp} message manual_buy_rsp
  25465. * @param {$protobuf.IConversionOptions} [options] Conversion options
  25466. * @returns {Object.<string,*>} Plain object
  25467. */
  25468. manual_buy_rsp.toObject = function toObject(message, options) {
  25469. if (!options)
  25470. options = {};
  25471. let object = {};
  25472. if (options.defaults) {
  25473. if ($util.Long) {
  25474. let long = new $util.Long(0, 0, false);
  25475. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  25476. } else
  25477. object.errno = options.longs === String ? "0" : 0;
  25478. if ($util.Long) {
  25479. let long = new $util.Long(0, 0, false);
  25480. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  25481. } else
  25482. object.moduleid = options.longs === String ? "0" : 0;
  25483. }
  25484. if (message.errno != null && message.hasOwnProperty("errno"))
  25485. if (typeof message.errno === "number")
  25486. object.errno = options.longs === String ? String(message.errno) : message.errno;
  25487. else
  25488. 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;
  25489. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  25490. if (typeof message.moduleid === "number")
  25491. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  25492. else
  25493. 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;
  25494. return object;
  25495. };
  25496. /**
  25497. * Converts this manual_buy_rsp to JSON.
  25498. * @function toJSON
  25499. * @memberof game.manual_buy_rsp
  25500. * @instance
  25501. * @returns {Object.<string,*>} JSON object
  25502. */
  25503. manual_buy_rsp.prototype.toJSON = function toJSON() {
  25504. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  25505. };
  25506. return manual_buy_rsp;
  25507. })();
  25508. game.draw = (function() {
  25509. /**
  25510. * Properties of a draw.
  25511. * @memberof game
  25512. * @interface Idraw
  25513. * @property {number|Long|null} [drawType] draw drawType
  25514. * @property {number|Long|null} [payType] draw payType
  25515. * @property {number|Long|null} [num] draw num
  25516. */
  25517. /**
  25518. * Constructs a new draw.
  25519. * @memberof game
  25520. * @classdesc Represents a draw.
  25521. * @implements Idraw
  25522. * @constructor
  25523. * @param {game.Idraw=} [properties] Properties to set
  25524. */
  25525. function draw(properties) {
  25526. if (properties)
  25527. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  25528. if (properties[keys[i]] != null)
  25529. this[keys[i]] = properties[keys[i]];
  25530. }
  25531. /**
  25532. * draw drawType.
  25533. * @member {number|Long} drawType
  25534. * @memberof game.draw
  25535. * @instance
  25536. */
  25537. draw.prototype.drawType = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  25538. /**
  25539. * draw payType.
  25540. * @member {number|Long} payType
  25541. * @memberof game.draw
  25542. * @instance
  25543. */
  25544. draw.prototype.payType = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  25545. /**
  25546. * draw num.
  25547. * @member {number|Long} num
  25548. * @memberof game.draw
  25549. * @instance
  25550. */
  25551. draw.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  25552. /**
  25553. * Creates a new draw instance using the specified properties.
  25554. * @function create
  25555. * @memberof game.draw
  25556. * @static
  25557. * @param {game.Idraw=} [properties] Properties to set
  25558. * @returns {game.draw} draw instance
  25559. */
  25560. draw.create = function create(properties) {
  25561. return new draw(properties);
  25562. };
  25563. /**
  25564. * Encodes the specified draw message. Does not implicitly {@link game.draw.verify|verify} messages.
  25565. * @function encode
  25566. * @memberof game.draw
  25567. * @static
  25568. * @param {game.Idraw} message draw message or plain object to encode
  25569. * @param {$protobuf.Writer} [writer] Writer to encode to
  25570. * @returns {$protobuf.Writer} Writer
  25571. */
  25572. draw.encode = function encode(message, writer) {
  25573. if (!writer)
  25574. writer = $Writer.create();
  25575. if (message.drawType != null && Object.hasOwnProperty.call(message, "drawType"))
  25576. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.drawType);
  25577. if (message.payType != null && Object.hasOwnProperty.call(message, "payType"))
  25578. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.payType);
  25579. if (message.num != null && Object.hasOwnProperty.call(message, "num"))
  25580. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.num);
  25581. return writer;
  25582. };
  25583. /**
  25584. * Encodes the specified draw message, length delimited. Does not implicitly {@link game.draw.verify|verify} messages.
  25585. * @function encodeDelimited
  25586. * @memberof game.draw
  25587. * @static
  25588. * @param {game.Idraw} message draw message or plain object to encode
  25589. * @param {$protobuf.Writer} [writer] Writer to encode to
  25590. * @returns {$protobuf.Writer} Writer
  25591. */
  25592. draw.encodeDelimited = function encodeDelimited(message, writer) {
  25593. return this.encode(message, writer).ldelim();
  25594. };
  25595. /**
  25596. * Decodes a draw message from the specified reader or buffer.
  25597. * @function decode
  25598. * @memberof game.draw
  25599. * @static
  25600. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  25601. * @param {number} [length] Message length if known beforehand
  25602. * @returns {game.draw} draw
  25603. * @throws {Error} If the payload is not a reader or valid buffer
  25604. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  25605. */
  25606. draw.decode = function decode(reader, length) {
  25607. if (!(reader instanceof $Reader))
  25608. reader = $Reader.create(reader);
  25609. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.draw();
  25610. while (reader.pos < end) {
  25611. let tag = reader.uint32();
  25612. switch (tag >>> 3) {
  25613. case 1:
  25614. message.drawType = reader.int64();
  25615. break;
  25616. case 2:
  25617. message.payType = reader.int64();
  25618. break;
  25619. case 3:
  25620. message.num = reader.int64();
  25621. break;
  25622. default:
  25623. reader.skipType(tag & 7);
  25624. break;
  25625. }
  25626. }
  25627. return message;
  25628. };
  25629. /**
  25630. * Decodes a draw message from the specified reader or buffer, length delimited.
  25631. * @function decodeDelimited
  25632. * @memberof game.draw
  25633. * @static
  25634. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  25635. * @returns {game.draw} draw
  25636. * @throws {Error} If the payload is not a reader or valid buffer
  25637. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  25638. */
  25639. draw.decodeDelimited = function decodeDelimited(reader) {
  25640. if (!(reader instanceof $Reader))
  25641. reader = new $Reader(reader);
  25642. return this.decode(reader, reader.uint32());
  25643. };
  25644. /**
  25645. * Verifies a draw message.
  25646. * @function verify
  25647. * @memberof game.draw
  25648. * @static
  25649. * @param {Object.<string,*>} message Plain object to verify
  25650. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  25651. */
  25652. draw.verify = function verify(message) {
  25653. if (typeof message !== "object" || message === null)
  25654. return "object expected";
  25655. if (message.drawType != null && message.hasOwnProperty("drawType"))
  25656. if (!$util.isInteger(message.drawType) && !(message.drawType && $util.isInteger(message.drawType.low) && $util.isInteger(message.drawType.high)))
  25657. return "drawType: integer|Long expected";
  25658. if (message.payType != null && message.hasOwnProperty("payType"))
  25659. if (!$util.isInteger(message.payType) && !(message.payType && $util.isInteger(message.payType.low) && $util.isInteger(message.payType.high)))
  25660. return "payType: integer|Long expected";
  25661. if (message.num != null && message.hasOwnProperty("num"))
  25662. if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
  25663. return "num: integer|Long expected";
  25664. return null;
  25665. };
  25666. /**
  25667. * Creates a draw message from a plain object. Also converts values to their respective internal types.
  25668. * @function fromObject
  25669. * @memberof game.draw
  25670. * @static
  25671. * @param {Object.<string,*>} object Plain object
  25672. * @returns {game.draw} draw
  25673. */
  25674. draw.fromObject = function fromObject(object) {
  25675. if (object instanceof $root.game.draw)
  25676. return object;
  25677. let message = new $root.game.draw();
  25678. if (object.drawType != null)
  25679. if ($util.Long)
  25680. (message.drawType = $util.Long.fromValue(object.drawType)).unsigned = false;
  25681. else if (typeof object.drawType === "string")
  25682. message.drawType = parseInt(object.drawType, 10);
  25683. else if (typeof object.drawType === "number")
  25684. message.drawType = object.drawType;
  25685. else if (typeof object.drawType === "object")
  25686. message.drawType = new $util.LongBits(object.drawType.low >>> 0, object.drawType.high >>> 0).toNumber();
  25687. if (object.payType != null)
  25688. if ($util.Long)
  25689. (message.payType = $util.Long.fromValue(object.payType)).unsigned = false;
  25690. else if (typeof object.payType === "string")
  25691. message.payType = parseInt(object.payType, 10);
  25692. else if (typeof object.payType === "number")
  25693. message.payType = object.payType;
  25694. else if (typeof object.payType === "object")
  25695. message.payType = new $util.LongBits(object.payType.low >>> 0, object.payType.high >>> 0).toNumber();
  25696. if (object.num != null)
  25697. if ($util.Long)
  25698. (message.num = $util.Long.fromValue(object.num)).unsigned = false;
  25699. else if (typeof object.num === "string")
  25700. message.num = parseInt(object.num, 10);
  25701. else if (typeof object.num === "number")
  25702. message.num = object.num;
  25703. else if (typeof object.num === "object")
  25704. message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
  25705. return message;
  25706. };
  25707. /**
  25708. * Creates a plain object from a draw message. Also converts values to other types if specified.
  25709. * @function toObject
  25710. * @memberof game.draw
  25711. * @static
  25712. * @param {game.draw} message draw
  25713. * @param {$protobuf.IConversionOptions} [options] Conversion options
  25714. * @returns {Object.<string,*>} Plain object
  25715. */
  25716. draw.toObject = function toObject(message, options) {
  25717. if (!options)
  25718. options = {};
  25719. let object = {};
  25720. if (options.defaults) {
  25721. if ($util.Long) {
  25722. let long = new $util.Long(0, 0, false);
  25723. object.drawType = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  25724. } else
  25725. object.drawType = options.longs === String ? "0" : 0;
  25726. if ($util.Long) {
  25727. let long = new $util.Long(0, 0, false);
  25728. object.payType = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  25729. } else
  25730. object.payType = options.longs === String ? "0" : 0;
  25731. if ($util.Long) {
  25732. let long = new $util.Long(0, 0, false);
  25733. object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  25734. } else
  25735. object.num = options.longs === String ? "0" : 0;
  25736. }
  25737. if (message.drawType != null && message.hasOwnProperty("drawType"))
  25738. if (typeof message.drawType === "number")
  25739. object.drawType = options.longs === String ? String(message.drawType) : message.drawType;
  25740. else
  25741. 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;
  25742. if (message.payType != null && message.hasOwnProperty("payType"))
  25743. if (typeof message.payType === "number")
  25744. object.payType = options.longs === String ? String(message.payType) : message.payType;
  25745. else
  25746. 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;
  25747. if (message.num != null && message.hasOwnProperty("num"))
  25748. if (typeof message.num === "number")
  25749. object.num = options.longs === String ? String(message.num) : message.num;
  25750. else
  25751. 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;
  25752. return object;
  25753. };
  25754. /**
  25755. * Converts this draw to JSON.
  25756. * @function toJSON
  25757. * @memberof game.draw
  25758. * @instance
  25759. * @returns {Object.<string,*>} JSON object
  25760. */
  25761. draw.prototype.toJSON = function toJSON() {
  25762. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  25763. };
  25764. return draw;
  25765. })();
  25766. game.draw_rsp = (function() {
  25767. /**
  25768. * Properties of a draw_rsp.
  25769. * @memberof game
  25770. * @interface Idraw_rsp
  25771. * @property {number|Long|null} [errno] draw_rsp errno
  25772. * @property {number|Long|null} [drawType] draw_rsp drawType
  25773. * @property {number|Long|null} [daily] draw_rsp daily
  25774. * @property {number|Long|null} [free] draw_rsp free
  25775. * @property {Array.<number|Long>|null} [list] draw_rsp list
  25776. * @property {Array.<game.Idraw_award_info>|null} [awardList] draw_rsp awardList
  25777. */
  25778. /**
  25779. * Constructs a new draw_rsp.
  25780. * @memberof game
  25781. * @classdesc Represents a draw_rsp.
  25782. * @implements Idraw_rsp
  25783. * @constructor
  25784. * @param {game.Idraw_rsp=} [properties] Properties to set
  25785. */
  25786. function draw_rsp(properties) {
  25787. this.list = [];
  25788. this.awardList = [];
  25789. if (properties)
  25790. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  25791. if (properties[keys[i]] != null)
  25792. this[keys[i]] = properties[keys[i]];
  25793. }
  25794. /**
  25795. * draw_rsp errno.
  25796. * @member {number|Long} errno
  25797. * @memberof game.draw_rsp
  25798. * @instance
  25799. */
  25800. draw_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  25801. /**
  25802. * draw_rsp drawType.
  25803. * @member {number|Long} drawType
  25804. * @memberof game.draw_rsp
  25805. * @instance
  25806. */
  25807. draw_rsp.prototype.drawType = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  25808. /**
  25809. * draw_rsp daily.
  25810. * @member {number|Long} daily
  25811. * @memberof game.draw_rsp
  25812. * @instance
  25813. */
  25814. draw_rsp.prototype.daily = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  25815. /**
  25816. * draw_rsp free.
  25817. * @member {number|Long} free
  25818. * @memberof game.draw_rsp
  25819. * @instance
  25820. */
  25821. draw_rsp.prototype.free = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  25822. /**
  25823. * draw_rsp list.
  25824. * @member {Array.<number|Long>} list
  25825. * @memberof game.draw_rsp
  25826. * @instance
  25827. */
  25828. draw_rsp.prototype.list = $util.emptyArray;
  25829. /**
  25830. * draw_rsp awardList.
  25831. * @member {Array.<game.Idraw_award_info>} awardList
  25832. * @memberof game.draw_rsp
  25833. * @instance
  25834. */
  25835. draw_rsp.prototype.awardList = $util.emptyArray;
  25836. /**
  25837. * Creates a new draw_rsp instance using the specified properties.
  25838. * @function create
  25839. * @memberof game.draw_rsp
  25840. * @static
  25841. * @param {game.Idraw_rsp=} [properties] Properties to set
  25842. * @returns {game.draw_rsp} draw_rsp instance
  25843. */
  25844. draw_rsp.create = function create(properties) {
  25845. return new draw_rsp(properties);
  25846. };
  25847. /**
  25848. * Encodes the specified draw_rsp message. Does not implicitly {@link game.draw_rsp.verify|verify} messages.
  25849. * @function encode
  25850. * @memberof game.draw_rsp
  25851. * @static
  25852. * @param {game.Idraw_rsp} message draw_rsp message or plain object to encode
  25853. * @param {$protobuf.Writer} [writer] Writer to encode to
  25854. * @returns {$protobuf.Writer} Writer
  25855. */
  25856. draw_rsp.encode = function encode(message, writer) {
  25857. if (!writer)
  25858. writer = $Writer.create();
  25859. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  25860. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  25861. if (message.drawType != null && Object.hasOwnProperty.call(message, "drawType"))
  25862. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.drawType);
  25863. if (message.daily != null && Object.hasOwnProperty.call(message, "daily"))
  25864. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.daily);
  25865. if (message.free != null && Object.hasOwnProperty.call(message, "free"))
  25866. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.free);
  25867. if (message.list != null && message.list.length) {
  25868. writer.uint32(/* id 5, wireType 2 =*/42).fork();
  25869. for (let i = 0; i < message.list.length; ++i)
  25870. writer.int64(message.list[i]);
  25871. writer.ldelim();
  25872. }
  25873. if (message.awardList != null && message.awardList.length)
  25874. for (let i = 0; i < message.awardList.length; ++i)
  25875. $root.game.draw_award_info.encode(message.awardList[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
  25876. return writer;
  25877. };
  25878. /**
  25879. * Encodes the specified draw_rsp message, length delimited. Does not implicitly {@link game.draw_rsp.verify|verify} messages.
  25880. * @function encodeDelimited
  25881. * @memberof game.draw_rsp
  25882. * @static
  25883. * @param {game.Idraw_rsp} message draw_rsp message or plain object to encode
  25884. * @param {$protobuf.Writer} [writer] Writer to encode to
  25885. * @returns {$protobuf.Writer} Writer
  25886. */
  25887. draw_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  25888. return this.encode(message, writer).ldelim();
  25889. };
  25890. /**
  25891. * Decodes a draw_rsp message from the specified reader or buffer.
  25892. * @function decode
  25893. * @memberof game.draw_rsp
  25894. * @static
  25895. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  25896. * @param {number} [length] Message length if known beforehand
  25897. * @returns {game.draw_rsp} draw_rsp
  25898. * @throws {Error} If the payload is not a reader or valid buffer
  25899. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  25900. */
  25901. draw_rsp.decode = function decode(reader, length) {
  25902. if (!(reader instanceof $Reader))
  25903. reader = $Reader.create(reader);
  25904. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.draw_rsp();
  25905. while (reader.pos < end) {
  25906. let tag = reader.uint32();
  25907. switch (tag >>> 3) {
  25908. case 1:
  25909. message.errno = reader.int64();
  25910. break;
  25911. case 2:
  25912. message.drawType = reader.int64();
  25913. break;
  25914. case 3:
  25915. message.daily = reader.int64();
  25916. break;
  25917. case 4:
  25918. message.free = reader.int64();
  25919. break;
  25920. case 5:
  25921. if (!(message.list && message.list.length))
  25922. message.list = [];
  25923. if ((tag & 7) === 2) {
  25924. let end2 = reader.uint32() + reader.pos;
  25925. while (reader.pos < end2)
  25926. message.list.push(reader.int64());
  25927. } else
  25928. message.list.push(reader.int64());
  25929. break;
  25930. case 6:
  25931. if (!(message.awardList && message.awardList.length))
  25932. message.awardList = [];
  25933. message.awardList.push($root.game.draw_award_info.decode(reader, reader.uint32()));
  25934. break;
  25935. default:
  25936. reader.skipType(tag & 7);
  25937. break;
  25938. }
  25939. }
  25940. return message;
  25941. };
  25942. /**
  25943. * Decodes a draw_rsp message from the specified reader or buffer, length delimited.
  25944. * @function decodeDelimited
  25945. * @memberof game.draw_rsp
  25946. * @static
  25947. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  25948. * @returns {game.draw_rsp} draw_rsp
  25949. * @throws {Error} If the payload is not a reader or valid buffer
  25950. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  25951. */
  25952. draw_rsp.decodeDelimited = function decodeDelimited(reader) {
  25953. if (!(reader instanceof $Reader))
  25954. reader = new $Reader(reader);
  25955. return this.decode(reader, reader.uint32());
  25956. };
  25957. /**
  25958. * Verifies a draw_rsp message.
  25959. * @function verify
  25960. * @memberof game.draw_rsp
  25961. * @static
  25962. * @param {Object.<string,*>} message Plain object to verify
  25963. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  25964. */
  25965. draw_rsp.verify = function verify(message) {
  25966. if (typeof message !== "object" || message === null)
  25967. return "object expected";
  25968. if (message.errno != null && message.hasOwnProperty("errno"))
  25969. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  25970. return "errno: integer|Long expected";
  25971. if (message.drawType != null && message.hasOwnProperty("drawType"))
  25972. if (!$util.isInteger(message.drawType) && !(message.drawType && $util.isInteger(message.drawType.low) && $util.isInteger(message.drawType.high)))
  25973. return "drawType: integer|Long expected";
  25974. if (message.daily != null && message.hasOwnProperty("daily"))
  25975. if (!$util.isInteger(message.daily) && !(message.daily && $util.isInteger(message.daily.low) && $util.isInteger(message.daily.high)))
  25976. return "daily: integer|Long expected";
  25977. if (message.free != null && message.hasOwnProperty("free"))
  25978. if (!$util.isInteger(message.free) && !(message.free && $util.isInteger(message.free.low) && $util.isInteger(message.free.high)))
  25979. return "free: integer|Long expected";
  25980. if (message.list != null && message.hasOwnProperty("list")) {
  25981. if (!Array.isArray(message.list))
  25982. return "list: array expected";
  25983. for (let i = 0; i < message.list.length; ++i)
  25984. if (!$util.isInteger(message.list[i]) && !(message.list[i] && $util.isInteger(message.list[i].low) && $util.isInteger(message.list[i].high)))
  25985. return "list: integer|Long[] expected";
  25986. }
  25987. if (message.awardList != null && message.hasOwnProperty("awardList")) {
  25988. if (!Array.isArray(message.awardList))
  25989. return "awardList: array expected";
  25990. for (let i = 0; i < message.awardList.length; ++i) {
  25991. let error = $root.game.draw_award_info.verify(message.awardList[i]);
  25992. if (error)
  25993. return "awardList." + error;
  25994. }
  25995. }
  25996. return null;
  25997. };
  25998. /**
  25999. * Creates a draw_rsp message from a plain object. Also converts values to their respective internal types.
  26000. * @function fromObject
  26001. * @memberof game.draw_rsp
  26002. * @static
  26003. * @param {Object.<string,*>} object Plain object
  26004. * @returns {game.draw_rsp} draw_rsp
  26005. */
  26006. draw_rsp.fromObject = function fromObject(object) {
  26007. if (object instanceof $root.game.draw_rsp)
  26008. return object;
  26009. let message = new $root.game.draw_rsp();
  26010. if (object.errno != null)
  26011. if ($util.Long)
  26012. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  26013. else if (typeof object.errno === "string")
  26014. message.errno = parseInt(object.errno, 10);
  26015. else if (typeof object.errno === "number")
  26016. message.errno = object.errno;
  26017. else if (typeof object.errno === "object")
  26018. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  26019. if (object.drawType != null)
  26020. if ($util.Long)
  26021. (message.drawType = $util.Long.fromValue(object.drawType)).unsigned = false;
  26022. else if (typeof object.drawType === "string")
  26023. message.drawType = parseInt(object.drawType, 10);
  26024. else if (typeof object.drawType === "number")
  26025. message.drawType = object.drawType;
  26026. else if (typeof object.drawType === "object")
  26027. message.drawType = new $util.LongBits(object.drawType.low >>> 0, object.drawType.high >>> 0).toNumber();
  26028. if (object.daily != null)
  26029. if ($util.Long)
  26030. (message.daily = $util.Long.fromValue(object.daily)).unsigned = false;
  26031. else if (typeof object.daily === "string")
  26032. message.daily = parseInt(object.daily, 10);
  26033. else if (typeof object.daily === "number")
  26034. message.daily = object.daily;
  26035. else if (typeof object.daily === "object")
  26036. message.daily = new $util.LongBits(object.daily.low >>> 0, object.daily.high >>> 0).toNumber();
  26037. if (object.free != null)
  26038. if ($util.Long)
  26039. (message.free = $util.Long.fromValue(object.free)).unsigned = false;
  26040. else if (typeof object.free === "string")
  26041. message.free = parseInt(object.free, 10);
  26042. else if (typeof object.free === "number")
  26043. message.free = object.free;
  26044. else if (typeof object.free === "object")
  26045. message.free = new $util.LongBits(object.free.low >>> 0, object.free.high >>> 0).toNumber();
  26046. if (object.list) {
  26047. if (!Array.isArray(object.list))
  26048. throw TypeError(".game.draw_rsp.list: array expected");
  26049. message.list = [];
  26050. for (let i = 0; i < object.list.length; ++i)
  26051. if ($util.Long)
  26052. (message.list[i] = $util.Long.fromValue(object.list[i])).unsigned = false;
  26053. else if (typeof object.list[i] === "string")
  26054. message.list[i] = parseInt(object.list[i], 10);
  26055. else if (typeof object.list[i] === "number")
  26056. message.list[i] = object.list[i];
  26057. else if (typeof object.list[i] === "object")
  26058. message.list[i] = new $util.LongBits(object.list[i].low >>> 0, object.list[i].high >>> 0).toNumber();
  26059. }
  26060. if (object.awardList) {
  26061. if (!Array.isArray(object.awardList))
  26062. throw TypeError(".game.draw_rsp.awardList: array expected");
  26063. message.awardList = [];
  26064. for (let i = 0; i < object.awardList.length; ++i) {
  26065. if (typeof object.awardList[i] !== "object")
  26066. throw TypeError(".game.draw_rsp.awardList: object expected");
  26067. message.awardList[i] = $root.game.draw_award_info.fromObject(object.awardList[i]);
  26068. }
  26069. }
  26070. return message;
  26071. };
  26072. /**
  26073. * Creates a plain object from a draw_rsp message. Also converts values to other types if specified.
  26074. * @function toObject
  26075. * @memberof game.draw_rsp
  26076. * @static
  26077. * @param {game.draw_rsp} message draw_rsp
  26078. * @param {$protobuf.IConversionOptions} [options] Conversion options
  26079. * @returns {Object.<string,*>} Plain object
  26080. */
  26081. draw_rsp.toObject = function toObject(message, options) {
  26082. if (!options)
  26083. options = {};
  26084. let object = {};
  26085. if (options.arrays || options.defaults) {
  26086. object.list = [];
  26087. object.awardList = [];
  26088. }
  26089. if (options.defaults) {
  26090. if ($util.Long) {
  26091. let long = new $util.Long(0, 0, false);
  26092. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  26093. } else
  26094. object.errno = options.longs === String ? "0" : 0;
  26095. if ($util.Long) {
  26096. let long = new $util.Long(0, 0, false);
  26097. object.drawType = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  26098. } else
  26099. object.drawType = options.longs === String ? "0" : 0;
  26100. if ($util.Long) {
  26101. let long = new $util.Long(0, 0, false);
  26102. object.daily = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  26103. } else
  26104. object.daily = options.longs === String ? "0" : 0;
  26105. if ($util.Long) {
  26106. let long = new $util.Long(0, 0, false);
  26107. object.free = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  26108. } else
  26109. object.free = options.longs === String ? "0" : 0;
  26110. }
  26111. if (message.errno != null && message.hasOwnProperty("errno"))
  26112. if (typeof message.errno === "number")
  26113. object.errno = options.longs === String ? String(message.errno) : message.errno;
  26114. else
  26115. 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;
  26116. if (message.drawType != null && message.hasOwnProperty("drawType"))
  26117. if (typeof message.drawType === "number")
  26118. object.drawType = options.longs === String ? String(message.drawType) : message.drawType;
  26119. else
  26120. 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;
  26121. if (message.daily != null && message.hasOwnProperty("daily"))
  26122. if (typeof message.daily === "number")
  26123. object.daily = options.longs === String ? String(message.daily) : message.daily;
  26124. else
  26125. 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;
  26126. if (message.free != null && message.hasOwnProperty("free"))
  26127. if (typeof message.free === "number")
  26128. object.free = options.longs === String ? String(message.free) : message.free;
  26129. else
  26130. 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;
  26131. if (message.list && message.list.length) {
  26132. object.list = [];
  26133. for (let j = 0; j < message.list.length; ++j)
  26134. if (typeof message.list[j] === "number")
  26135. object.list[j] = options.longs === String ? String(message.list[j]) : message.list[j];
  26136. else
  26137. 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];
  26138. }
  26139. if (message.awardList && message.awardList.length) {
  26140. object.awardList = [];
  26141. for (let j = 0; j < message.awardList.length; ++j)
  26142. object.awardList[j] = $root.game.draw_award_info.toObject(message.awardList[j], options);
  26143. }
  26144. return object;
  26145. };
  26146. /**
  26147. * Converts this draw_rsp to JSON.
  26148. * @function toJSON
  26149. * @memberof game.draw_rsp
  26150. * @instance
  26151. * @returns {Object.<string,*>} JSON object
  26152. */
  26153. draw_rsp.prototype.toJSON = function toJSON() {
  26154. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  26155. };
  26156. return draw_rsp;
  26157. })();
  26158. game.draw_get_data = (function() {
  26159. /**
  26160. * Properties of a draw_get_data.
  26161. * @memberof game
  26162. * @interface Idraw_get_data
  26163. */
  26164. /**
  26165. * Constructs a new draw_get_data.
  26166. * @memberof game
  26167. * @classdesc Represents a draw_get_data.
  26168. * @implements Idraw_get_data
  26169. * @constructor
  26170. * @param {game.Idraw_get_data=} [properties] Properties to set
  26171. */
  26172. function draw_get_data(properties) {
  26173. if (properties)
  26174. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  26175. if (properties[keys[i]] != null)
  26176. this[keys[i]] = properties[keys[i]];
  26177. }
  26178. /**
  26179. * Creates a new draw_get_data instance using the specified properties.
  26180. * @function create
  26181. * @memberof game.draw_get_data
  26182. * @static
  26183. * @param {game.Idraw_get_data=} [properties] Properties to set
  26184. * @returns {game.draw_get_data} draw_get_data instance
  26185. */
  26186. draw_get_data.create = function create(properties) {
  26187. return new draw_get_data(properties);
  26188. };
  26189. /**
  26190. * Encodes the specified draw_get_data message. Does not implicitly {@link game.draw_get_data.verify|verify} messages.
  26191. * @function encode
  26192. * @memberof game.draw_get_data
  26193. * @static
  26194. * @param {game.Idraw_get_data} message draw_get_data message or plain object to encode
  26195. * @param {$protobuf.Writer} [writer] Writer to encode to
  26196. * @returns {$protobuf.Writer} Writer
  26197. */
  26198. draw_get_data.encode = function encode(message, writer) {
  26199. if (!writer)
  26200. writer = $Writer.create();
  26201. return writer;
  26202. };
  26203. /**
  26204. * Encodes the specified draw_get_data message, length delimited. Does not implicitly {@link game.draw_get_data.verify|verify} messages.
  26205. * @function encodeDelimited
  26206. * @memberof game.draw_get_data
  26207. * @static
  26208. * @param {game.Idraw_get_data} message draw_get_data message or plain object to encode
  26209. * @param {$protobuf.Writer} [writer] Writer to encode to
  26210. * @returns {$protobuf.Writer} Writer
  26211. */
  26212. draw_get_data.encodeDelimited = function encodeDelimited(message, writer) {
  26213. return this.encode(message, writer).ldelim();
  26214. };
  26215. /**
  26216. * Decodes a draw_get_data message from the specified reader or buffer.
  26217. * @function decode
  26218. * @memberof game.draw_get_data
  26219. * @static
  26220. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  26221. * @param {number} [length] Message length if known beforehand
  26222. * @returns {game.draw_get_data} draw_get_data
  26223. * @throws {Error} If the payload is not a reader or valid buffer
  26224. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  26225. */
  26226. draw_get_data.decode = function decode(reader, length) {
  26227. if (!(reader instanceof $Reader))
  26228. reader = $Reader.create(reader);
  26229. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.draw_get_data();
  26230. while (reader.pos < end) {
  26231. let tag = reader.uint32();
  26232. switch (tag >>> 3) {
  26233. default:
  26234. reader.skipType(tag & 7);
  26235. break;
  26236. }
  26237. }
  26238. return message;
  26239. };
  26240. /**
  26241. * Decodes a draw_get_data message from the specified reader or buffer, length delimited.
  26242. * @function decodeDelimited
  26243. * @memberof game.draw_get_data
  26244. * @static
  26245. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  26246. * @returns {game.draw_get_data} draw_get_data
  26247. * @throws {Error} If the payload is not a reader or valid buffer
  26248. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  26249. */
  26250. draw_get_data.decodeDelimited = function decodeDelimited(reader) {
  26251. if (!(reader instanceof $Reader))
  26252. reader = new $Reader(reader);
  26253. return this.decode(reader, reader.uint32());
  26254. };
  26255. /**
  26256. * Verifies a draw_get_data message.
  26257. * @function verify
  26258. * @memberof game.draw_get_data
  26259. * @static
  26260. * @param {Object.<string,*>} message Plain object to verify
  26261. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  26262. */
  26263. draw_get_data.verify = function verify(message) {
  26264. if (typeof message !== "object" || message === null)
  26265. return "object expected";
  26266. return null;
  26267. };
  26268. /**
  26269. * Creates a draw_get_data message from a plain object. Also converts values to their respective internal types.
  26270. * @function fromObject
  26271. * @memberof game.draw_get_data
  26272. * @static
  26273. * @param {Object.<string,*>} object Plain object
  26274. * @returns {game.draw_get_data} draw_get_data
  26275. */
  26276. draw_get_data.fromObject = function fromObject(object) {
  26277. if (object instanceof $root.game.draw_get_data)
  26278. return object;
  26279. return new $root.game.draw_get_data();
  26280. };
  26281. /**
  26282. * Creates a plain object from a draw_get_data message. Also converts values to other types if specified.
  26283. * @function toObject
  26284. * @memberof game.draw_get_data
  26285. * @static
  26286. * @param {game.draw_get_data} message draw_get_data
  26287. * @param {$protobuf.IConversionOptions} [options] Conversion options
  26288. * @returns {Object.<string,*>} Plain object
  26289. */
  26290. draw_get_data.toObject = function toObject() {
  26291. return {};
  26292. };
  26293. /**
  26294. * Converts this draw_get_data to JSON.
  26295. * @function toJSON
  26296. * @memberof game.draw_get_data
  26297. * @instance
  26298. * @returns {Object.<string,*>} JSON object
  26299. */
  26300. draw_get_data.prototype.toJSON = function toJSON() {
  26301. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  26302. };
  26303. return draw_get_data;
  26304. })();
  26305. game.draw_get_data_rsp = (function() {
  26306. /**
  26307. * Properties of a draw_get_data_rsp.
  26308. * @memberof game
  26309. * @interface Idraw_get_data_rsp
  26310. * @property {number|Long|null} [errno] draw_get_data_rsp errno
  26311. * @property {game.Idraw_info|null} [hero] draw_get_data_rsp hero
  26312. * @property {game.Idraw_info|null} [hero2] draw_get_data_rsp hero2
  26313. * @property {game.Idraw_info|null} [equip] draw_get_data_rsp equip
  26314. */
  26315. /**
  26316. * Constructs a new draw_get_data_rsp.
  26317. * @memberof game
  26318. * @classdesc Represents a draw_get_data_rsp.
  26319. * @implements Idraw_get_data_rsp
  26320. * @constructor
  26321. * @param {game.Idraw_get_data_rsp=} [properties] Properties to set
  26322. */
  26323. function draw_get_data_rsp(properties) {
  26324. if (properties)
  26325. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  26326. if (properties[keys[i]] != null)
  26327. this[keys[i]] = properties[keys[i]];
  26328. }
  26329. /**
  26330. * draw_get_data_rsp errno.
  26331. * @member {number|Long} errno
  26332. * @memberof game.draw_get_data_rsp
  26333. * @instance
  26334. */
  26335. draw_get_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  26336. /**
  26337. * draw_get_data_rsp hero.
  26338. * @member {game.Idraw_info|null|undefined} hero
  26339. * @memberof game.draw_get_data_rsp
  26340. * @instance
  26341. */
  26342. draw_get_data_rsp.prototype.hero = null;
  26343. /**
  26344. * draw_get_data_rsp hero2.
  26345. * @member {game.Idraw_info|null|undefined} hero2
  26346. * @memberof game.draw_get_data_rsp
  26347. * @instance
  26348. */
  26349. draw_get_data_rsp.prototype.hero2 = null;
  26350. /**
  26351. * draw_get_data_rsp equip.
  26352. * @member {game.Idraw_info|null|undefined} equip
  26353. * @memberof game.draw_get_data_rsp
  26354. * @instance
  26355. */
  26356. draw_get_data_rsp.prototype.equip = null;
  26357. /**
  26358. * Creates a new draw_get_data_rsp instance using the specified properties.
  26359. * @function create
  26360. * @memberof game.draw_get_data_rsp
  26361. * @static
  26362. * @param {game.Idraw_get_data_rsp=} [properties] Properties to set
  26363. * @returns {game.draw_get_data_rsp} draw_get_data_rsp instance
  26364. */
  26365. draw_get_data_rsp.create = function create(properties) {
  26366. return new draw_get_data_rsp(properties);
  26367. };
  26368. /**
  26369. * Encodes the specified draw_get_data_rsp message. Does not implicitly {@link game.draw_get_data_rsp.verify|verify} messages.
  26370. * @function encode
  26371. * @memberof game.draw_get_data_rsp
  26372. * @static
  26373. * @param {game.Idraw_get_data_rsp} message draw_get_data_rsp message or plain object to encode
  26374. * @param {$protobuf.Writer} [writer] Writer to encode to
  26375. * @returns {$protobuf.Writer} Writer
  26376. */
  26377. draw_get_data_rsp.encode = function encode(message, writer) {
  26378. if (!writer)
  26379. writer = $Writer.create();
  26380. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  26381. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  26382. if (message.hero != null && Object.hasOwnProperty.call(message, "hero"))
  26383. $root.game.draw_info.encode(message.hero, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  26384. if (message.hero2 != null && Object.hasOwnProperty.call(message, "hero2"))
  26385. $root.game.draw_info.encode(message.hero2, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
  26386. if (message.equip != null && Object.hasOwnProperty.call(message, "equip"))
  26387. $root.game.draw_info.encode(message.equip, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
  26388. return writer;
  26389. };
  26390. /**
  26391. * Encodes the specified draw_get_data_rsp message, length delimited. Does not implicitly {@link game.draw_get_data_rsp.verify|verify} messages.
  26392. * @function encodeDelimited
  26393. * @memberof game.draw_get_data_rsp
  26394. * @static
  26395. * @param {game.Idraw_get_data_rsp} message draw_get_data_rsp message or plain object to encode
  26396. * @param {$protobuf.Writer} [writer] Writer to encode to
  26397. * @returns {$protobuf.Writer} Writer
  26398. */
  26399. draw_get_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  26400. return this.encode(message, writer).ldelim();
  26401. };
  26402. /**
  26403. * Decodes a draw_get_data_rsp message from the specified reader or buffer.
  26404. * @function decode
  26405. * @memberof game.draw_get_data_rsp
  26406. * @static
  26407. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  26408. * @param {number} [length] Message length if known beforehand
  26409. * @returns {game.draw_get_data_rsp} draw_get_data_rsp
  26410. * @throws {Error} If the payload is not a reader or valid buffer
  26411. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  26412. */
  26413. draw_get_data_rsp.decode = function decode(reader, length) {
  26414. if (!(reader instanceof $Reader))
  26415. reader = $Reader.create(reader);
  26416. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.draw_get_data_rsp();
  26417. while (reader.pos < end) {
  26418. let tag = reader.uint32();
  26419. switch (tag >>> 3) {
  26420. case 1:
  26421. message.errno = reader.int64();
  26422. break;
  26423. case 2:
  26424. message.hero = $root.game.draw_info.decode(reader, reader.uint32());
  26425. break;
  26426. case 3:
  26427. message.hero2 = $root.game.draw_info.decode(reader, reader.uint32());
  26428. break;
  26429. case 4:
  26430. message.equip = $root.game.draw_info.decode(reader, reader.uint32());
  26431. break;
  26432. default:
  26433. reader.skipType(tag & 7);
  26434. break;
  26435. }
  26436. }
  26437. return message;
  26438. };
  26439. /**
  26440. * Decodes a draw_get_data_rsp message from the specified reader or buffer, length delimited.
  26441. * @function decodeDelimited
  26442. * @memberof game.draw_get_data_rsp
  26443. * @static
  26444. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  26445. * @returns {game.draw_get_data_rsp} draw_get_data_rsp
  26446. * @throws {Error} If the payload is not a reader or valid buffer
  26447. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  26448. */
  26449. draw_get_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  26450. if (!(reader instanceof $Reader))
  26451. reader = new $Reader(reader);
  26452. return this.decode(reader, reader.uint32());
  26453. };
  26454. /**
  26455. * Verifies a draw_get_data_rsp message.
  26456. * @function verify
  26457. * @memberof game.draw_get_data_rsp
  26458. * @static
  26459. * @param {Object.<string,*>} message Plain object to verify
  26460. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  26461. */
  26462. draw_get_data_rsp.verify = function verify(message) {
  26463. if (typeof message !== "object" || message === null)
  26464. return "object expected";
  26465. if (message.errno != null && message.hasOwnProperty("errno"))
  26466. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  26467. return "errno: integer|Long expected";
  26468. if (message.hero != null && message.hasOwnProperty("hero")) {
  26469. let error = $root.game.draw_info.verify(message.hero);
  26470. if (error)
  26471. return "hero." + error;
  26472. }
  26473. if (message.hero2 != null && message.hasOwnProperty("hero2")) {
  26474. let error = $root.game.draw_info.verify(message.hero2);
  26475. if (error)
  26476. return "hero2." + error;
  26477. }
  26478. if (message.equip != null && message.hasOwnProperty("equip")) {
  26479. let error = $root.game.draw_info.verify(message.equip);
  26480. if (error)
  26481. return "equip." + error;
  26482. }
  26483. return null;
  26484. };
  26485. /**
  26486. * Creates a draw_get_data_rsp message from a plain object. Also converts values to their respective internal types.
  26487. * @function fromObject
  26488. * @memberof game.draw_get_data_rsp
  26489. * @static
  26490. * @param {Object.<string,*>} object Plain object
  26491. * @returns {game.draw_get_data_rsp} draw_get_data_rsp
  26492. */
  26493. draw_get_data_rsp.fromObject = function fromObject(object) {
  26494. if (object instanceof $root.game.draw_get_data_rsp)
  26495. return object;
  26496. let message = new $root.game.draw_get_data_rsp();
  26497. if (object.errno != null)
  26498. if ($util.Long)
  26499. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  26500. else if (typeof object.errno === "string")
  26501. message.errno = parseInt(object.errno, 10);
  26502. else if (typeof object.errno === "number")
  26503. message.errno = object.errno;
  26504. else if (typeof object.errno === "object")
  26505. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  26506. if (object.hero != null) {
  26507. if (typeof object.hero !== "object")
  26508. throw TypeError(".game.draw_get_data_rsp.hero: object expected");
  26509. message.hero = $root.game.draw_info.fromObject(object.hero);
  26510. }
  26511. if (object.hero2 != null) {
  26512. if (typeof object.hero2 !== "object")
  26513. throw TypeError(".game.draw_get_data_rsp.hero2: object expected");
  26514. message.hero2 = $root.game.draw_info.fromObject(object.hero2);
  26515. }
  26516. if (object.equip != null) {
  26517. if (typeof object.equip !== "object")
  26518. throw TypeError(".game.draw_get_data_rsp.equip: object expected");
  26519. message.equip = $root.game.draw_info.fromObject(object.equip);
  26520. }
  26521. return message;
  26522. };
  26523. /**
  26524. * Creates a plain object from a draw_get_data_rsp message. Also converts values to other types if specified.
  26525. * @function toObject
  26526. * @memberof game.draw_get_data_rsp
  26527. * @static
  26528. * @param {game.draw_get_data_rsp} message draw_get_data_rsp
  26529. * @param {$protobuf.IConversionOptions} [options] Conversion options
  26530. * @returns {Object.<string,*>} Plain object
  26531. */
  26532. draw_get_data_rsp.toObject = function toObject(message, options) {
  26533. if (!options)
  26534. options = {};
  26535. let object = {};
  26536. if (options.defaults) {
  26537. if ($util.Long) {
  26538. let long = new $util.Long(0, 0, false);
  26539. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  26540. } else
  26541. object.errno = options.longs === String ? "0" : 0;
  26542. object.hero = null;
  26543. object.hero2 = null;
  26544. object.equip = null;
  26545. }
  26546. if (message.errno != null && message.hasOwnProperty("errno"))
  26547. if (typeof message.errno === "number")
  26548. object.errno = options.longs === String ? String(message.errno) : message.errno;
  26549. else
  26550. 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;
  26551. if (message.hero != null && message.hasOwnProperty("hero"))
  26552. object.hero = $root.game.draw_info.toObject(message.hero, options);
  26553. if (message.hero2 != null && message.hasOwnProperty("hero2"))
  26554. object.hero2 = $root.game.draw_info.toObject(message.hero2, options);
  26555. if (message.equip != null && message.hasOwnProperty("equip"))
  26556. object.equip = $root.game.draw_info.toObject(message.equip, options);
  26557. return object;
  26558. };
  26559. /**
  26560. * Converts this draw_get_data_rsp to JSON.
  26561. * @function toJSON
  26562. * @memberof game.draw_get_data_rsp
  26563. * @instance
  26564. * @returns {Object.<string,*>} JSON object
  26565. */
  26566. draw_get_data_rsp.prototype.toJSON = function toJSON() {
  26567. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  26568. };
  26569. return draw_get_data_rsp;
  26570. })();
  26571. game.shop_data = (function() {
  26572. /**
  26573. * Properties of a shop_data.
  26574. * @memberof game
  26575. * @interface Ishop_data
  26576. */
  26577. /**
  26578. * Constructs a new shop_data.
  26579. * @memberof game
  26580. * @classdesc Represents a shop_data.
  26581. * @implements Ishop_data
  26582. * @constructor
  26583. * @param {game.Ishop_data=} [properties] Properties to set
  26584. */
  26585. function shop_data(properties) {
  26586. if (properties)
  26587. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  26588. if (properties[keys[i]] != null)
  26589. this[keys[i]] = properties[keys[i]];
  26590. }
  26591. /**
  26592. * Creates a new shop_data instance using the specified properties.
  26593. * @function create
  26594. * @memberof game.shop_data
  26595. * @static
  26596. * @param {game.Ishop_data=} [properties] Properties to set
  26597. * @returns {game.shop_data} shop_data instance
  26598. */
  26599. shop_data.create = function create(properties) {
  26600. return new shop_data(properties);
  26601. };
  26602. /**
  26603. * Encodes the specified shop_data message. Does not implicitly {@link game.shop_data.verify|verify} messages.
  26604. * @function encode
  26605. * @memberof game.shop_data
  26606. * @static
  26607. * @param {game.Ishop_data} message shop_data message or plain object to encode
  26608. * @param {$protobuf.Writer} [writer] Writer to encode to
  26609. * @returns {$protobuf.Writer} Writer
  26610. */
  26611. shop_data.encode = function encode(message, writer) {
  26612. if (!writer)
  26613. writer = $Writer.create();
  26614. return writer;
  26615. };
  26616. /**
  26617. * Encodes the specified shop_data message, length delimited. Does not implicitly {@link game.shop_data.verify|verify} messages.
  26618. * @function encodeDelimited
  26619. * @memberof game.shop_data
  26620. * @static
  26621. * @param {game.Ishop_data} message shop_data message or plain object to encode
  26622. * @param {$protobuf.Writer} [writer] Writer to encode to
  26623. * @returns {$protobuf.Writer} Writer
  26624. */
  26625. shop_data.encodeDelimited = function encodeDelimited(message, writer) {
  26626. return this.encode(message, writer).ldelim();
  26627. };
  26628. /**
  26629. * Decodes a shop_data message from the specified reader or buffer.
  26630. * @function decode
  26631. * @memberof game.shop_data
  26632. * @static
  26633. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  26634. * @param {number} [length] Message length if known beforehand
  26635. * @returns {game.shop_data} shop_data
  26636. * @throws {Error} If the payload is not a reader or valid buffer
  26637. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  26638. */
  26639. shop_data.decode = function decode(reader, length) {
  26640. if (!(reader instanceof $Reader))
  26641. reader = $Reader.create(reader);
  26642. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.shop_data();
  26643. while (reader.pos < end) {
  26644. let tag = reader.uint32();
  26645. switch (tag >>> 3) {
  26646. default:
  26647. reader.skipType(tag & 7);
  26648. break;
  26649. }
  26650. }
  26651. return message;
  26652. };
  26653. /**
  26654. * Decodes a shop_data message from the specified reader or buffer, length delimited.
  26655. * @function decodeDelimited
  26656. * @memberof game.shop_data
  26657. * @static
  26658. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  26659. * @returns {game.shop_data} shop_data
  26660. * @throws {Error} If the payload is not a reader or valid buffer
  26661. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  26662. */
  26663. shop_data.decodeDelimited = function decodeDelimited(reader) {
  26664. if (!(reader instanceof $Reader))
  26665. reader = new $Reader(reader);
  26666. return this.decode(reader, reader.uint32());
  26667. };
  26668. /**
  26669. * Verifies a shop_data message.
  26670. * @function verify
  26671. * @memberof game.shop_data
  26672. * @static
  26673. * @param {Object.<string,*>} message Plain object to verify
  26674. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  26675. */
  26676. shop_data.verify = function verify(message) {
  26677. if (typeof message !== "object" || message === null)
  26678. return "object expected";
  26679. return null;
  26680. };
  26681. /**
  26682. * Creates a shop_data message from a plain object. Also converts values to their respective internal types.
  26683. * @function fromObject
  26684. * @memberof game.shop_data
  26685. * @static
  26686. * @param {Object.<string,*>} object Plain object
  26687. * @returns {game.shop_data} shop_data
  26688. */
  26689. shop_data.fromObject = function fromObject(object) {
  26690. if (object instanceof $root.game.shop_data)
  26691. return object;
  26692. return new $root.game.shop_data();
  26693. };
  26694. /**
  26695. * Creates a plain object from a shop_data message. Also converts values to other types if specified.
  26696. * @function toObject
  26697. * @memberof game.shop_data
  26698. * @static
  26699. * @param {game.shop_data} message shop_data
  26700. * @param {$protobuf.IConversionOptions} [options] Conversion options
  26701. * @returns {Object.<string,*>} Plain object
  26702. */
  26703. shop_data.toObject = function toObject() {
  26704. return {};
  26705. };
  26706. /**
  26707. * Converts this shop_data to JSON.
  26708. * @function toJSON
  26709. * @memberof game.shop_data
  26710. * @instance
  26711. * @returns {Object.<string,*>} JSON object
  26712. */
  26713. shop_data.prototype.toJSON = function toJSON() {
  26714. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  26715. };
  26716. return shop_data;
  26717. })();
  26718. game.shop_data_rsp = (function() {
  26719. /**
  26720. * Properties of a shop_data_rsp.
  26721. * @memberof game
  26722. * @interface Ishop_data_rsp
  26723. * @property {number|Long|null} [errno] shop_data_rsp errno
  26724. * @property {Array.<game.Ishop_info>|null} [list] shop_data_rsp list
  26725. */
  26726. /**
  26727. * Constructs a new shop_data_rsp.
  26728. * @memberof game
  26729. * @classdesc Represents a shop_data_rsp.
  26730. * @implements Ishop_data_rsp
  26731. * @constructor
  26732. * @param {game.Ishop_data_rsp=} [properties] Properties to set
  26733. */
  26734. function shop_data_rsp(properties) {
  26735. this.list = [];
  26736. if (properties)
  26737. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  26738. if (properties[keys[i]] != null)
  26739. this[keys[i]] = properties[keys[i]];
  26740. }
  26741. /**
  26742. * shop_data_rsp errno.
  26743. * @member {number|Long} errno
  26744. * @memberof game.shop_data_rsp
  26745. * @instance
  26746. */
  26747. shop_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  26748. /**
  26749. * shop_data_rsp list.
  26750. * @member {Array.<game.Ishop_info>} list
  26751. * @memberof game.shop_data_rsp
  26752. * @instance
  26753. */
  26754. shop_data_rsp.prototype.list = $util.emptyArray;
  26755. /**
  26756. * Creates a new shop_data_rsp instance using the specified properties.
  26757. * @function create
  26758. * @memberof game.shop_data_rsp
  26759. * @static
  26760. * @param {game.Ishop_data_rsp=} [properties] Properties to set
  26761. * @returns {game.shop_data_rsp} shop_data_rsp instance
  26762. */
  26763. shop_data_rsp.create = function create(properties) {
  26764. return new shop_data_rsp(properties);
  26765. };
  26766. /**
  26767. * Encodes the specified shop_data_rsp message. Does not implicitly {@link game.shop_data_rsp.verify|verify} messages.
  26768. * @function encode
  26769. * @memberof game.shop_data_rsp
  26770. * @static
  26771. * @param {game.Ishop_data_rsp} message shop_data_rsp message or plain object to encode
  26772. * @param {$protobuf.Writer} [writer] Writer to encode to
  26773. * @returns {$protobuf.Writer} Writer
  26774. */
  26775. shop_data_rsp.encode = function encode(message, writer) {
  26776. if (!writer)
  26777. writer = $Writer.create();
  26778. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  26779. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  26780. if (message.list != null && message.list.length)
  26781. for (let i = 0; i < message.list.length; ++i)
  26782. $root.game.shop_info.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  26783. return writer;
  26784. };
  26785. /**
  26786. * Encodes the specified shop_data_rsp message, length delimited. Does not implicitly {@link game.shop_data_rsp.verify|verify} messages.
  26787. * @function encodeDelimited
  26788. * @memberof game.shop_data_rsp
  26789. * @static
  26790. * @param {game.Ishop_data_rsp} message shop_data_rsp message or plain object to encode
  26791. * @param {$protobuf.Writer} [writer] Writer to encode to
  26792. * @returns {$protobuf.Writer} Writer
  26793. */
  26794. shop_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  26795. return this.encode(message, writer).ldelim();
  26796. };
  26797. /**
  26798. * Decodes a shop_data_rsp message from the specified reader or buffer.
  26799. * @function decode
  26800. * @memberof game.shop_data_rsp
  26801. * @static
  26802. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  26803. * @param {number} [length] Message length if known beforehand
  26804. * @returns {game.shop_data_rsp} shop_data_rsp
  26805. * @throws {Error} If the payload is not a reader or valid buffer
  26806. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  26807. */
  26808. shop_data_rsp.decode = function decode(reader, length) {
  26809. if (!(reader instanceof $Reader))
  26810. reader = $Reader.create(reader);
  26811. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.shop_data_rsp();
  26812. while (reader.pos < end) {
  26813. let tag = reader.uint32();
  26814. switch (tag >>> 3) {
  26815. case 1:
  26816. message.errno = reader.int64();
  26817. break;
  26818. case 2:
  26819. if (!(message.list && message.list.length))
  26820. message.list = [];
  26821. message.list.push($root.game.shop_info.decode(reader, reader.uint32()));
  26822. break;
  26823. default:
  26824. reader.skipType(tag & 7);
  26825. break;
  26826. }
  26827. }
  26828. return message;
  26829. };
  26830. /**
  26831. * Decodes a shop_data_rsp message from the specified reader or buffer, length delimited.
  26832. * @function decodeDelimited
  26833. * @memberof game.shop_data_rsp
  26834. * @static
  26835. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  26836. * @returns {game.shop_data_rsp} shop_data_rsp
  26837. * @throws {Error} If the payload is not a reader or valid buffer
  26838. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  26839. */
  26840. shop_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  26841. if (!(reader instanceof $Reader))
  26842. reader = new $Reader(reader);
  26843. return this.decode(reader, reader.uint32());
  26844. };
  26845. /**
  26846. * Verifies a shop_data_rsp message.
  26847. * @function verify
  26848. * @memberof game.shop_data_rsp
  26849. * @static
  26850. * @param {Object.<string,*>} message Plain object to verify
  26851. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  26852. */
  26853. shop_data_rsp.verify = function verify(message) {
  26854. if (typeof message !== "object" || message === null)
  26855. return "object expected";
  26856. if (message.errno != null && message.hasOwnProperty("errno"))
  26857. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  26858. return "errno: integer|Long expected";
  26859. if (message.list != null && message.hasOwnProperty("list")) {
  26860. if (!Array.isArray(message.list))
  26861. return "list: array expected";
  26862. for (let i = 0; i < message.list.length; ++i) {
  26863. let error = $root.game.shop_info.verify(message.list[i]);
  26864. if (error)
  26865. return "list." + error;
  26866. }
  26867. }
  26868. return null;
  26869. };
  26870. /**
  26871. * Creates a shop_data_rsp message from a plain object. Also converts values to their respective internal types.
  26872. * @function fromObject
  26873. * @memberof game.shop_data_rsp
  26874. * @static
  26875. * @param {Object.<string,*>} object Plain object
  26876. * @returns {game.shop_data_rsp} shop_data_rsp
  26877. */
  26878. shop_data_rsp.fromObject = function fromObject(object) {
  26879. if (object instanceof $root.game.shop_data_rsp)
  26880. return object;
  26881. let message = new $root.game.shop_data_rsp();
  26882. if (object.errno != null)
  26883. if ($util.Long)
  26884. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  26885. else if (typeof object.errno === "string")
  26886. message.errno = parseInt(object.errno, 10);
  26887. else if (typeof object.errno === "number")
  26888. message.errno = object.errno;
  26889. else if (typeof object.errno === "object")
  26890. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  26891. if (object.list) {
  26892. if (!Array.isArray(object.list))
  26893. throw TypeError(".game.shop_data_rsp.list: array expected");
  26894. message.list = [];
  26895. for (let i = 0; i < object.list.length; ++i) {
  26896. if (typeof object.list[i] !== "object")
  26897. throw TypeError(".game.shop_data_rsp.list: object expected");
  26898. message.list[i] = $root.game.shop_info.fromObject(object.list[i]);
  26899. }
  26900. }
  26901. return message;
  26902. };
  26903. /**
  26904. * Creates a plain object from a shop_data_rsp message. Also converts values to other types if specified.
  26905. * @function toObject
  26906. * @memberof game.shop_data_rsp
  26907. * @static
  26908. * @param {game.shop_data_rsp} message shop_data_rsp
  26909. * @param {$protobuf.IConversionOptions} [options] Conversion options
  26910. * @returns {Object.<string,*>} Plain object
  26911. */
  26912. shop_data_rsp.toObject = function toObject(message, options) {
  26913. if (!options)
  26914. options = {};
  26915. let object = {};
  26916. if (options.arrays || options.defaults)
  26917. object.list = [];
  26918. if (options.defaults)
  26919. if ($util.Long) {
  26920. let long = new $util.Long(0, 0, false);
  26921. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  26922. } else
  26923. object.errno = options.longs === String ? "0" : 0;
  26924. if (message.errno != null && message.hasOwnProperty("errno"))
  26925. if (typeof message.errno === "number")
  26926. object.errno = options.longs === String ? String(message.errno) : message.errno;
  26927. else
  26928. 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;
  26929. if (message.list && message.list.length) {
  26930. object.list = [];
  26931. for (let j = 0; j < message.list.length; ++j)
  26932. object.list[j] = $root.game.shop_info.toObject(message.list[j], options);
  26933. }
  26934. return object;
  26935. };
  26936. /**
  26937. * Converts this shop_data_rsp to JSON.
  26938. * @function toJSON
  26939. * @memberof game.shop_data_rsp
  26940. * @instance
  26941. * @returns {Object.<string,*>} JSON object
  26942. */
  26943. shop_data_rsp.prototype.toJSON = function toJSON() {
  26944. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  26945. };
  26946. return shop_data_rsp;
  26947. })();
  26948. game.shop_buy = (function() {
  26949. /**
  26950. * Properties of a shop_buy.
  26951. * @memberof game
  26952. * @interface Ishop_buy
  26953. * @property {number|Long|null} [type] shop_buy type
  26954. * @property {number|Long|null} [id] shop_buy id
  26955. * @property {number|Long|null} [num] shop_buy num
  26956. */
  26957. /**
  26958. * Constructs a new shop_buy.
  26959. * @memberof game
  26960. * @classdesc Represents a shop_buy.
  26961. * @implements Ishop_buy
  26962. * @constructor
  26963. * @param {game.Ishop_buy=} [properties] Properties to set
  26964. */
  26965. function shop_buy(properties) {
  26966. if (properties)
  26967. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  26968. if (properties[keys[i]] != null)
  26969. this[keys[i]] = properties[keys[i]];
  26970. }
  26971. /**
  26972. * shop_buy type.
  26973. * @member {number|Long} type
  26974. * @memberof game.shop_buy
  26975. * @instance
  26976. */
  26977. shop_buy.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  26978. /**
  26979. * shop_buy id.
  26980. * @member {number|Long} id
  26981. * @memberof game.shop_buy
  26982. * @instance
  26983. */
  26984. shop_buy.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  26985. /**
  26986. * shop_buy num.
  26987. * @member {number|Long} num
  26988. * @memberof game.shop_buy
  26989. * @instance
  26990. */
  26991. shop_buy.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  26992. /**
  26993. * Creates a new shop_buy instance using the specified properties.
  26994. * @function create
  26995. * @memberof game.shop_buy
  26996. * @static
  26997. * @param {game.Ishop_buy=} [properties] Properties to set
  26998. * @returns {game.shop_buy} shop_buy instance
  26999. */
  27000. shop_buy.create = function create(properties) {
  27001. return new shop_buy(properties);
  27002. };
  27003. /**
  27004. * Encodes the specified shop_buy message. Does not implicitly {@link game.shop_buy.verify|verify} messages.
  27005. * @function encode
  27006. * @memberof game.shop_buy
  27007. * @static
  27008. * @param {game.Ishop_buy} message shop_buy message or plain object to encode
  27009. * @param {$protobuf.Writer} [writer] Writer to encode to
  27010. * @returns {$protobuf.Writer} Writer
  27011. */
  27012. shop_buy.encode = function encode(message, writer) {
  27013. if (!writer)
  27014. writer = $Writer.create();
  27015. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  27016. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
  27017. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  27018. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id);
  27019. if (message.num != null && Object.hasOwnProperty.call(message, "num"))
  27020. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.num);
  27021. return writer;
  27022. };
  27023. /**
  27024. * Encodes the specified shop_buy message, length delimited. Does not implicitly {@link game.shop_buy.verify|verify} messages.
  27025. * @function encodeDelimited
  27026. * @memberof game.shop_buy
  27027. * @static
  27028. * @param {game.Ishop_buy} message shop_buy message or plain object to encode
  27029. * @param {$protobuf.Writer} [writer] Writer to encode to
  27030. * @returns {$protobuf.Writer} Writer
  27031. */
  27032. shop_buy.encodeDelimited = function encodeDelimited(message, writer) {
  27033. return this.encode(message, writer).ldelim();
  27034. };
  27035. /**
  27036. * Decodes a shop_buy message from the specified reader or buffer.
  27037. * @function decode
  27038. * @memberof game.shop_buy
  27039. * @static
  27040. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  27041. * @param {number} [length] Message length if known beforehand
  27042. * @returns {game.shop_buy} shop_buy
  27043. * @throws {Error} If the payload is not a reader or valid buffer
  27044. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  27045. */
  27046. shop_buy.decode = function decode(reader, length) {
  27047. if (!(reader instanceof $Reader))
  27048. reader = $Reader.create(reader);
  27049. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.shop_buy();
  27050. while (reader.pos < end) {
  27051. let tag = reader.uint32();
  27052. switch (tag >>> 3) {
  27053. case 1:
  27054. message.type = reader.int64();
  27055. break;
  27056. case 2:
  27057. message.id = reader.int64();
  27058. break;
  27059. case 3:
  27060. message.num = reader.int64();
  27061. break;
  27062. default:
  27063. reader.skipType(tag & 7);
  27064. break;
  27065. }
  27066. }
  27067. return message;
  27068. };
  27069. /**
  27070. * Decodes a shop_buy message from the specified reader or buffer, length delimited.
  27071. * @function decodeDelimited
  27072. * @memberof game.shop_buy
  27073. * @static
  27074. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  27075. * @returns {game.shop_buy} shop_buy
  27076. * @throws {Error} If the payload is not a reader or valid buffer
  27077. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  27078. */
  27079. shop_buy.decodeDelimited = function decodeDelimited(reader) {
  27080. if (!(reader instanceof $Reader))
  27081. reader = new $Reader(reader);
  27082. return this.decode(reader, reader.uint32());
  27083. };
  27084. /**
  27085. * Verifies a shop_buy message.
  27086. * @function verify
  27087. * @memberof game.shop_buy
  27088. * @static
  27089. * @param {Object.<string,*>} message Plain object to verify
  27090. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  27091. */
  27092. shop_buy.verify = function verify(message) {
  27093. if (typeof message !== "object" || message === null)
  27094. return "object expected";
  27095. if (message.type != null && message.hasOwnProperty("type"))
  27096. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  27097. return "type: integer|Long expected";
  27098. if (message.id != null && message.hasOwnProperty("id"))
  27099. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  27100. return "id: integer|Long expected";
  27101. if (message.num != null && message.hasOwnProperty("num"))
  27102. if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
  27103. return "num: integer|Long expected";
  27104. return null;
  27105. };
  27106. /**
  27107. * Creates a shop_buy message from a plain object. Also converts values to their respective internal types.
  27108. * @function fromObject
  27109. * @memberof game.shop_buy
  27110. * @static
  27111. * @param {Object.<string,*>} object Plain object
  27112. * @returns {game.shop_buy} shop_buy
  27113. */
  27114. shop_buy.fromObject = function fromObject(object) {
  27115. if (object instanceof $root.game.shop_buy)
  27116. return object;
  27117. let message = new $root.game.shop_buy();
  27118. if (object.type != null)
  27119. if ($util.Long)
  27120. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  27121. else if (typeof object.type === "string")
  27122. message.type = parseInt(object.type, 10);
  27123. else if (typeof object.type === "number")
  27124. message.type = object.type;
  27125. else if (typeof object.type === "object")
  27126. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  27127. if (object.id != null)
  27128. if ($util.Long)
  27129. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  27130. else if (typeof object.id === "string")
  27131. message.id = parseInt(object.id, 10);
  27132. else if (typeof object.id === "number")
  27133. message.id = object.id;
  27134. else if (typeof object.id === "object")
  27135. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  27136. if (object.num != null)
  27137. if ($util.Long)
  27138. (message.num = $util.Long.fromValue(object.num)).unsigned = false;
  27139. else if (typeof object.num === "string")
  27140. message.num = parseInt(object.num, 10);
  27141. else if (typeof object.num === "number")
  27142. message.num = object.num;
  27143. else if (typeof object.num === "object")
  27144. message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
  27145. return message;
  27146. };
  27147. /**
  27148. * Creates a plain object from a shop_buy message. Also converts values to other types if specified.
  27149. * @function toObject
  27150. * @memberof game.shop_buy
  27151. * @static
  27152. * @param {game.shop_buy} message shop_buy
  27153. * @param {$protobuf.IConversionOptions} [options] Conversion options
  27154. * @returns {Object.<string,*>} Plain object
  27155. */
  27156. shop_buy.toObject = function toObject(message, options) {
  27157. if (!options)
  27158. options = {};
  27159. let object = {};
  27160. if (options.defaults) {
  27161. if ($util.Long) {
  27162. let long = new $util.Long(0, 0, false);
  27163. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  27164. } else
  27165. object.type = options.longs === String ? "0" : 0;
  27166. if ($util.Long) {
  27167. let long = new $util.Long(0, 0, false);
  27168. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  27169. } else
  27170. object.id = options.longs === String ? "0" : 0;
  27171. if ($util.Long) {
  27172. let long = new $util.Long(0, 0, false);
  27173. object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  27174. } else
  27175. object.num = options.longs === String ? "0" : 0;
  27176. }
  27177. if (message.type != null && message.hasOwnProperty("type"))
  27178. if (typeof message.type === "number")
  27179. object.type = options.longs === String ? String(message.type) : message.type;
  27180. else
  27181. 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;
  27182. if (message.id != null && message.hasOwnProperty("id"))
  27183. if (typeof message.id === "number")
  27184. object.id = options.longs === String ? String(message.id) : message.id;
  27185. else
  27186. 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;
  27187. if (message.num != null && message.hasOwnProperty("num"))
  27188. if (typeof message.num === "number")
  27189. object.num = options.longs === String ? String(message.num) : message.num;
  27190. else
  27191. 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;
  27192. return object;
  27193. };
  27194. /**
  27195. * Converts this shop_buy to JSON.
  27196. * @function toJSON
  27197. * @memberof game.shop_buy
  27198. * @instance
  27199. * @returns {Object.<string,*>} JSON object
  27200. */
  27201. shop_buy.prototype.toJSON = function toJSON() {
  27202. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  27203. };
  27204. return shop_buy;
  27205. })();
  27206. game.shop_buy_rsp = (function() {
  27207. /**
  27208. * Properties of a shop_buy_rsp.
  27209. * @memberof game
  27210. * @interface Ishop_buy_rsp
  27211. * @property {number|Long|null} [errno] shop_buy_rsp errno
  27212. */
  27213. /**
  27214. * Constructs a new shop_buy_rsp.
  27215. * @memberof game
  27216. * @classdesc Represents a shop_buy_rsp.
  27217. * @implements Ishop_buy_rsp
  27218. * @constructor
  27219. * @param {game.Ishop_buy_rsp=} [properties] Properties to set
  27220. */
  27221. function shop_buy_rsp(properties) {
  27222. if (properties)
  27223. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  27224. if (properties[keys[i]] != null)
  27225. this[keys[i]] = properties[keys[i]];
  27226. }
  27227. /**
  27228. * shop_buy_rsp errno.
  27229. * @member {number|Long} errno
  27230. * @memberof game.shop_buy_rsp
  27231. * @instance
  27232. */
  27233. shop_buy_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  27234. /**
  27235. * Creates a new shop_buy_rsp instance using the specified properties.
  27236. * @function create
  27237. * @memberof game.shop_buy_rsp
  27238. * @static
  27239. * @param {game.Ishop_buy_rsp=} [properties] Properties to set
  27240. * @returns {game.shop_buy_rsp} shop_buy_rsp instance
  27241. */
  27242. shop_buy_rsp.create = function create(properties) {
  27243. return new shop_buy_rsp(properties);
  27244. };
  27245. /**
  27246. * Encodes the specified shop_buy_rsp message. Does not implicitly {@link game.shop_buy_rsp.verify|verify} messages.
  27247. * @function encode
  27248. * @memberof game.shop_buy_rsp
  27249. * @static
  27250. * @param {game.Ishop_buy_rsp} message shop_buy_rsp message or plain object to encode
  27251. * @param {$protobuf.Writer} [writer] Writer to encode to
  27252. * @returns {$protobuf.Writer} Writer
  27253. */
  27254. shop_buy_rsp.encode = function encode(message, writer) {
  27255. if (!writer)
  27256. writer = $Writer.create();
  27257. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  27258. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  27259. return writer;
  27260. };
  27261. /**
  27262. * Encodes the specified shop_buy_rsp message, length delimited. Does not implicitly {@link game.shop_buy_rsp.verify|verify} messages.
  27263. * @function encodeDelimited
  27264. * @memberof game.shop_buy_rsp
  27265. * @static
  27266. * @param {game.Ishop_buy_rsp} message shop_buy_rsp message or plain object to encode
  27267. * @param {$protobuf.Writer} [writer] Writer to encode to
  27268. * @returns {$protobuf.Writer} Writer
  27269. */
  27270. shop_buy_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  27271. return this.encode(message, writer).ldelim();
  27272. };
  27273. /**
  27274. * Decodes a shop_buy_rsp message from the specified reader or buffer.
  27275. * @function decode
  27276. * @memberof game.shop_buy_rsp
  27277. * @static
  27278. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  27279. * @param {number} [length] Message length if known beforehand
  27280. * @returns {game.shop_buy_rsp} shop_buy_rsp
  27281. * @throws {Error} If the payload is not a reader or valid buffer
  27282. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  27283. */
  27284. shop_buy_rsp.decode = function decode(reader, length) {
  27285. if (!(reader instanceof $Reader))
  27286. reader = $Reader.create(reader);
  27287. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.shop_buy_rsp();
  27288. while (reader.pos < end) {
  27289. let tag = reader.uint32();
  27290. switch (tag >>> 3) {
  27291. case 1:
  27292. message.errno = reader.int64();
  27293. break;
  27294. default:
  27295. reader.skipType(tag & 7);
  27296. break;
  27297. }
  27298. }
  27299. return message;
  27300. };
  27301. /**
  27302. * Decodes a shop_buy_rsp message from the specified reader or buffer, length delimited.
  27303. * @function decodeDelimited
  27304. * @memberof game.shop_buy_rsp
  27305. * @static
  27306. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  27307. * @returns {game.shop_buy_rsp} shop_buy_rsp
  27308. * @throws {Error} If the payload is not a reader or valid buffer
  27309. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  27310. */
  27311. shop_buy_rsp.decodeDelimited = function decodeDelimited(reader) {
  27312. if (!(reader instanceof $Reader))
  27313. reader = new $Reader(reader);
  27314. return this.decode(reader, reader.uint32());
  27315. };
  27316. /**
  27317. * Verifies a shop_buy_rsp message.
  27318. * @function verify
  27319. * @memberof game.shop_buy_rsp
  27320. * @static
  27321. * @param {Object.<string,*>} message Plain object to verify
  27322. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  27323. */
  27324. shop_buy_rsp.verify = function verify(message) {
  27325. if (typeof message !== "object" || message === null)
  27326. return "object expected";
  27327. if (message.errno != null && message.hasOwnProperty("errno"))
  27328. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  27329. return "errno: integer|Long expected";
  27330. return null;
  27331. };
  27332. /**
  27333. * Creates a shop_buy_rsp message from a plain object. Also converts values to their respective internal types.
  27334. * @function fromObject
  27335. * @memberof game.shop_buy_rsp
  27336. * @static
  27337. * @param {Object.<string,*>} object Plain object
  27338. * @returns {game.shop_buy_rsp} shop_buy_rsp
  27339. */
  27340. shop_buy_rsp.fromObject = function fromObject(object) {
  27341. if (object instanceof $root.game.shop_buy_rsp)
  27342. return object;
  27343. let message = new $root.game.shop_buy_rsp();
  27344. if (object.errno != null)
  27345. if ($util.Long)
  27346. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  27347. else if (typeof object.errno === "string")
  27348. message.errno = parseInt(object.errno, 10);
  27349. else if (typeof object.errno === "number")
  27350. message.errno = object.errno;
  27351. else if (typeof object.errno === "object")
  27352. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  27353. return message;
  27354. };
  27355. /**
  27356. * Creates a plain object from a shop_buy_rsp message. Also converts values to other types if specified.
  27357. * @function toObject
  27358. * @memberof game.shop_buy_rsp
  27359. * @static
  27360. * @param {game.shop_buy_rsp} message shop_buy_rsp
  27361. * @param {$protobuf.IConversionOptions} [options] Conversion options
  27362. * @returns {Object.<string,*>} Plain object
  27363. */
  27364. shop_buy_rsp.toObject = function toObject(message, options) {
  27365. if (!options)
  27366. options = {};
  27367. let object = {};
  27368. if (options.defaults)
  27369. if ($util.Long) {
  27370. let long = new $util.Long(0, 0, false);
  27371. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  27372. } else
  27373. object.errno = options.longs === String ? "0" : 0;
  27374. if (message.errno != null && message.hasOwnProperty("errno"))
  27375. if (typeof message.errno === "number")
  27376. object.errno = options.longs === String ? String(message.errno) : message.errno;
  27377. else
  27378. 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;
  27379. return object;
  27380. };
  27381. /**
  27382. * Converts this shop_buy_rsp to JSON.
  27383. * @function toJSON
  27384. * @memberof game.shop_buy_rsp
  27385. * @instance
  27386. * @returns {Object.<string,*>} JSON object
  27387. */
  27388. shop_buy_rsp.prototype.toJSON = function toJSON() {
  27389. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  27390. };
  27391. return shop_buy_rsp;
  27392. })();
  27393. game.shop_notify = (function() {
  27394. /**
  27395. * Properties of a shop_notify.
  27396. * @memberof game
  27397. * @interface Ishop_notify
  27398. * @property {number|Long|null} [type] shop_notify type
  27399. * @property {number|Long|null} [id] shop_notify id
  27400. * @property {number|Long|null} [num] shop_notify num
  27401. */
  27402. /**
  27403. * Constructs a new shop_notify.
  27404. * @memberof game
  27405. * @classdesc Represents a shop_notify.
  27406. * @implements Ishop_notify
  27407. * @constructor
  27408. * @param {game.Ishop_notify=} [properties] Properties to set
  27409. */
  27410. function shop_notify(properties) {
  27411. if (properties)
  27412. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  27413. if (properties[keys[i]] != null)
  27414. this[keys[i]] = properties[keys[i]];
  27415. }
  27416. /**
  27417. * shop_notify type.
  27418. * @member {number|Long} type
  27419. * @memberof game.shop_notify
  27420. * @instance
  27421. */
  27422. shop_notify.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  27423. /**
  27424. * shop_notify id.
  27425. * @member {number|Long} id
  27426. * @memberof game.shop_notify
  27427. * @instance
  27428. */
  27429. shop_notify.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  27430. /**
  27431. * shop_notify num.
  27432. * @member {number|Long} num
  27433. * @memberof game.shop_notify
  27434. * @instance
  27435. */
  27436. shop_notify.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  27437. /**
  27438. * Creates a new shop_notify instance using the specified properties.
  27439. * @function create
  27440. * @memberof game.shop_notify
  27441. * @static
  27442. * @param {game.Ishop_notify=} [properties] Properties to set
  27443. * @returns {game.shop_notify} shop_notify instance
  27444. */
  27445. shop_notify.create = function create(properties) {
  27446. return new shop_notify(properties);
  27447. };
  27448. /**
  27449. * Encodes the specified shop_notify message. Does not implicitly {@link game.shop_notify.verify|verify} messages.
  27450. * @function encode
  27451. * @memberof game.shop_notify
  27452. * @static
  27453. * @param {game.Ishop_notify} message shop_notify message or plain object to encode
  27454. * @param {$protobuf.Writer} [writer] Writer to encode to
  27455. * @returns {$protobuf.Writer} Writer
  27456. */
  27457. shop_notify.encode = function encode(message, writer) {
  27458. if (!writer)
  27459. writer = $Writer.create();
  27460. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  27461. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.type);
  27462. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  27463. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.id);
  27464. if (message.num != null && Object.hasOwnProperty.call(message, "num"))
  27465. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.num);
  27466. return writer;
  27467. };
  27468. /**
  27469. * Encodes the specified shop_notify message, length delimited. Does not implicitly {@link game.shop_notify.verify|verify} messages.
  27470. * @function encodeDelimited
  27471. * @memberof game.shop_notify
  27472. * @static
  27473. * @param {game.Ishop_notify} message shop_notify message or plain object to encode
  27474. * @param {$protobuf.Writer} [writer] Writer to encode to
  27475. * @returns {$protobuf.Writer} Writer
  27476. */
  27477. shop_notify.encodeDelimited = function encodeDelimited(message, writer) {
  27478. return this.encode(message, writer).ldelim();
  27479. };
  27480. /**
  27481. * Decodes a shop_notify message from the specified reader or buffer.
  27482. * @function decode
  27483. * @memberof game.shop_notify
  27484. * @static
  27485. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  27486. * @param {number} [length] Message length if known beforehand
  27487. * @returns {game.shop_notify} shop_notify
  27488. * @throws {Error} If the payload is not a reader or valid buffer
  27489. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  27490. */
  27491. shop_notify.decode = function decode(reader, length) {
  27492. if (!(reader instanceof $Reader))
  27493. reader = $Reader.create(reader);
  27494. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.shop_notify();
  27495. while (reader.pos < end) {
  27496. let tag = reader.uint32();
  27497. switch (tag >>> 3) {
  27498. case 2:
  27499. message.type = reader.int64();
  27500. break;
  27501. case 3:
  27502. message.id = reader.int64();
  27503. break;
  27504. case 4:
  27505. message.num = reader.int64();
  27506. break;
  27507. default:
  27508. reader.skipType(tag & 7);
  27509. break;
  27510. }
  27511. }
  27512. return message;
  27513. };
  27514. /**
  27515. * Decodes a shop_notify message from the specified reader or buffer, length delimited.
  27516. * @function decodeDelimited
  27517. * @memberof game.shop_notify
  27518. * @static
  27519. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  27520. * @returns {game.shop_notify} shop_notify
  27521. * @throws {Error} If the payload is not a reader or valid buffer
  27522. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  27523. */
  27524. shop_notify.decodeDelimited = function decodeDelimited(reader) {
  27525. if (!(reader instanceof $Reader))
  27526. reader = new $Reader(reader);
  27527. return this.decode(reader, reader.uint32());
  27528. };
  27529. /**
  27530. * Verifies a shop_notify message.
  27531. * @function verify
  27532. * @memberof game.shop_notify
  27533. * @static
  27534. * @param {Object.<string,*>} message Plain object to verify
  27535. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  27536. */
  27537. shop_notify.verify = function verify(message) {
  27538. if (typeof message !== "object" || message === null)
  27539. return "object expected";
  27540. if (message.type != null && message.hasOwnProperty("type"))
  27541. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  27542. return "type: integer|Long expected";
  27543. if (message.id != null && message.hasOwnProperty("id"))
  27544. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  27545. return "id: integer|Long expected";
  27546. if (message.num != null && message.hasOwnProperty("num"))
  27547. if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
  27548. return "num: integer|Long expected";
  27549. return null;
  27550. };
  27551. /**
  27552. * Creates a shop_notify message from a plain object. Also converts values to their respective internal types.
  27553. * @function fromObject
  27554. * @memberof game.shop_notify
  27555. * @static
  27556. * @param {Object.<string,*>} object Plain object
  27557. * @returns {game.shop_notify} shop_notify
  27558. */
  27559. shop_notify.fromObject = function fromObject(object) {
  27560. if (object instanceof $root.game.shop_notify)
  27561. return object;
  27562. let message = new $root.game.shop_notify();
  27563. if (object.type != null)
  27564. if ($util.Long)
  27565. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  27566. else if (typeof object.type === "string")
  27567. message.type = parseInt(object.type, 10);
  27568. else if (typeof object.type === "number")
  27569. message.type = object.type;
  27570. else if (typeof object.type === "object")
  27571. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  27572. if (object.id != null)
  27573. if ($util.Long)
  27574. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  27575. else if (typeof object.id === "string")
  27576. message.id = parseInt(object.id, 10);
  27577. else if (typeof object.id === "number")
  27578. message.id = object.id;
  27579. else if (typeof object.id === "object")
  27580. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  27581. if (object.num != null)
  27582. if ($util.Long)
  27583. (message.num = $util.Long.fromValue(object.num)).unsigned = false;
  27584. else if (typeof object.num === "string")
  27585. message.num = parseInt(object.num, 10);
  27586. else if (typeof object.num === "number")
  27587. message.num = object.num;
  27588. else if (typeof object.num === "object")
  27589. message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
  27590. return message;
  27591. };
  27592. /**
  27593. * Creates a plain object from a shop_notify message. Also converts values to other types if specified.
  27594. * @function toObject
  27595. * @memberof game.shop_notify
  27596. * @static
  27597. * @param {game.shop_notify} message shop_notify
  27598. * @param {$protobuf.IConversionOptions} [options] Conversion options
  27599. * @returns {Object.<string,*>} Plain object
  27600. */
  27601. shop_notify.toObject = function toObject(message, options) {
  27602. if (!options)
  27603. options = {};
  27604. let object = {};
  27605. if (options.defaults) {
  27606. if ($util.Long) {
  27607. let long = new $util.Long(0, 0, false);
  27608. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  27609. } else
  27610. object.type = options.longs === String ? "0" : 0;
  27611. if ($util.Long) {
  27612. let long = new $util.Long(0, 0, false);
  27613. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  27614. } else
  27615. object.id = options.longs === String ? "0" : 0;
  27616. if ($util.Long) {
  27617. let long = new $util.Long(0, 0, false);
  27618. object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  27619. } else
  27620. object.num = options.longs === String ? "0" : 0;
  27621. }
  27622. if (message.type != null && message.hasOwnProperty("type"))
  27623. if (typeof message.type === "number")
  27624. object.type = options.longs === String ? String(message.type) : message.type;
  27625. else
  27626. 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;
  27627. if (message.id != null && message.hasOwnProperty("id"))
  27628. if (typeof message.id === "number")
  27629. object.id = options.longs === String ? String(message.id) : message.id;
  27630. else
  27631. 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;
  27632. if (message.num != null && message.hasOwnProperty("num"))
  27633. if (typeof message.num === "number")
  27634. object.num = options.longs === String ? String(message.num) : message.num;
  27635. else
  27636. 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;
  27637. return object;
  27638. };
  27639. /**
  27640. * Converts this shop_notify to JSON.
  27641. * @function toJSON
  27642. * @memberof game.shop_notify
  27643. * @instance
  27644. * @returns {Object.<string,*>} JSON object
  27645. */
  27646. shop_notify.prototype.toJSON = function toJSON() {
  27647. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  27648. };
  27649. return shop_notify;
  27650. })();
  27651. game.ranking_data = (function() {
  27652. /**
  27653. * Properties of a ranking_data.
  27654. * @memberof game
  27655. * @interface Iranking_data
  27656. * @property {number|Long|null} [type] ranking_data type
  27657. */
  27658. /**
  27659. * Constructs a new ranking_data.
  27660. * @memberof game
  27661. * @classdesc Represents a ranking_data.
  27662. * @implements Iranking_data
  27663. * @constructor
  27664. * @param {game.Iranking_data=} [properties] Properties to set
  27665. */
  27666. function ranking_data(properties) {
  27667. if (properties)
  27668. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  27669. if (properties[keys[i]] != null)
  27670. this[keys[i]] = properties[keys[i]];
  27671. }
  27672. /**
  27673. * ranking_data type.
  27674. * @member {number|Long} type
  27675. * @memberof game.ranking_data
  27676. * @instance
  27677. */
  27678. ranking_data.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  27679. /**
  27680. * Creates a new ranking_data instance using the specified properties.
  27681. * @function create
  27682. * @memberof game.ranking_data
  27683. * @static
  27684. * @param {game.Iranking_data=} [properties] Properties to set
  27685. * @returns {game.ranking_data} ranking_data instance
  27686. */
  27687. ranking_data.create = function create(properties) {
  27688. return new ranking_data(properties);
  27689. };
  27690. /**
  27691. * Encodes the specified ranking_data message. Does not implicitly {@link game.ranking_data.verify|verify} messages.
  27692. * @function encode
  27693. * @memberof game.ranking_data
  27694. * @static
  27695. * @param {game.Iranking_data} message ranking_data message or plain object to encode
  27696. * @param {$protobuf.Writer} [writer] Writer to encode to
  27697. * @returns {$protobuf.Writer} Writer
  27698. */
  27699. ranking_data.encode = function encode(message, writer) {
  27700. if (!writer)
  27701. writer = $Writer.create();
  27702. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  27703. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
  27704. return writer;
  27705. };
  27706. /**
  27707. * Encodes the specified ranking_data message, length delimited. Does not implicitly {@link game.ranking_data.verify|verify} messages.
  27708. * @function encodeDelimited
  27709. * @memberof game.ranking_data
  27710. * @static
  27711. * @param {game.Iranking_data} message ranking_data message or plain object to encode
  27712. * @param {$protobuf.Writer} [writer] Writer to encode to
  27713. * @returns {$protobuf.Writer} Writer
  27714. */
  27715. ranking_data.encodeDelimited = function encodeDelimited(message, writer) {
  27716. return this.encode(message, writer).ldelim();
  27717. };
  27718. /**
  27719. * Decodes a ranking_data message from the specified reader or buffer.
  27720. * @function decode
  27721. * @memberof game.ranking_data
  27722. * @static
  27723. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  27724. * @param {number} [length] Message length if known beforehand
  27725. * @returns {game.ranking_data} ranking_data
  27726. * @throws {Error} If the payload is not a reader or valid buffer
  27727. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  27728. */
  27729. ranking_data.decode = function decode(reader, length) {
  27730. if (!(reader instanceof $Reader))
  27731. reader = $Reader.create(reader);
  27732. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.ranking_data();
  27733. while (reader.pos < end) {
  27734. let tag = reader.uint32();
  27735. switch (tag >>> 3) {
  27736. case 1:
  27737. message.type = reader.int64();
  27738. break;
  27739. default:
  27740. reader.skipType(tag & 7);
  27741. break;
  27742. }
  27743. }
  27744. return message;
  27745. };
  27746. /**
  27747. * Decodes a ranking_data message from the specified reader or buffer, length delimited.
  27748. * @function decodeDelimited
  27749. * @memberof game.ranking_data
  27750. * @static
  27751. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  27752. * @returns {game.ranking_data} ranking_data
  27753. * @throws {Error} If the payload is not a reader or valid buffer
  27754. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  27755. */
  27756. ranking_data.decodeDelimited = function decodeDelimited(reader) {
  27757. if (!(reader instanceof $Reader))
  27758. reader = new $Reader(reader);
  27759. return this.decode(reader, reader.uint32());
  27760. };
  27761. /**
  27762. * Verifies a ranking_data message.
  27763. * @function verify
  27764. * @memberof game.ranking_data
  27765. * @static
  27766. * @param {Object.<string,*>} message Plain object to verify
  27767. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  27768. */
  27769. ranking_data.verify = function verify(message) {
  27770. if (typeof message !== "object" || message === null)
  27771. return "object expected";
  27772. if (message.type != null && message.hasOwnProperty("type"))
  27773. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  27774. return "type: integer|Long expected";
  27775. return null;
  27776. };
  27777. /**
  27778. * Creates a ranking_data message from a plain object. Also converts values to their respective internal types.
  27779. * @function fromObject
  27780. * @memberof game.ranking_data
  27781. * @static
  27782. * @param {Object.<string,*>} object Plain object
  27783. * @returns {game.ranking_data} ranking_data
  27784. */
  27785. ranking_data.fromObject = function fromObject(object) {
  27786. if (object instanceof $root.game.ranking_data)
  27787. return object;
  27788. let message = new $root.game.ranking_data();
  27789. if (object.type != null)
  27790. if ($util.Long)
  27791. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  27792. else if (typeof object.type === "string")
  27793. message.type = parseInt(object.type, 10);
  27794. else if (typeof object.type === "number")
  27795. message.type = object.type;
  27796. else if (typeof object.type === "object")
  27797. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  27798. return message;
  27799. };
  27800. /**
  27801. * Creates a plain object from a ranking_data message. Also converts values to other types if specified.
  27802. * @function toObject
  27803. * @memberof game.ranking_data
  27804. * @static
  27805. * @param {game.ranking_data} message ranking_data
  27806. * @param {$protobuf.IConversionOptions} [options] Conversion options
  27807. * @returns {Object.<string,*>} Plain object
  27808. */
  27809. ranking_data.toObject = function toObject(message, options) {
  27810. if (!options)
  27811. options = {};
  27812. let object = {};
  27813. if (options.defaults)
  27814. if ($util.Long) {
  27815. let long = new $util.Long(0, 0, false);
  27816. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  27817. } else
  27818. object.type = options.longs === String ? "0" : 0;
  27819. if (message.type != null && message.hasOwnProperty("type"))
  27820. if (typeof message.type === "number")
  27821. object.type = options.longs === String ? String(message.type) : message.type;
  27822. else
  27823. 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;
  27824. return object;
  27825. };
  27826. /**
  27827. * Converts this ranking_data to JSON.
  27828. * @function toJSON
  27829. * @memberof game.ranking_data
  27830. * @instance
  27831. * @returns {Object.<string,*>} JSON object
  27832. */
  27833. ranking_data.prototype.toJSON = function toJSON() {
  27834. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  27835. };
  27836. return ranking_data;
  27837. })();
  27838. game.ranking_data_rsp = (function() {
  27839. /**
  27840. * Properties of a ranking_data_rsp.
  27841. * @memberof game
  27842. * @interface Iranking_data_rsp
  27843. * @property {number|Long|null} [errno] ranking_data_rsp errno
  27844. * @property {number|Long|null} [type] ranking_data_rsp type
  27845. * @property {Array.<game.Iranking_info>|null} [list] ranking_data_rsp list
  27846. * @property {game.Iranking_info|null} [myslef] ranking_data_rsp myslef
  27847. */
  27848. /**
  27849. * Constructs a new ranking_data_rsp.
  27850. * @memberof game
  27851. * @classdesc Represents a ranking_data_rsp.
  27852. * @implements Iranking_data_rsp
  27853. * @constructor
  27854. * @param {game.Iranking_data_rsp=} [properties] Properties to set
  27855. */
  27856. function ranking_data_rsp(properties) {
  27857. this.list = [];
  27858. if (properties)
  27859. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  27860. if (properties[keys[i]] != null)
  27861. this[keys[i]] = properties[keys[i]];
  27862. }
  27863. /**
  27864. * ranking_data_rsp errno.
  27865. * @member {number|Long} errno
  27866. * @memberof game.ranking_data_rsp
  27867. * @instance
  27868. */
  27869. ranking_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  27870. /**
  27871. * ranking_data_rsp type.
  27872. * @member {number|Long} type
  27873. * @memberof game.ranking_data_rsp
  27874. * @instance
  27875. */
  27876. ranking_data_rsp.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  27877. /**
  27878. * ranking_data_rsp list.
  27879. * @member {Array.<game.Iranking_info>} list
  27880. * @memberof game.ranking_data_rsp
  27881. * @instance
  27882. */
  27883. ranking_data_rsp.prototype.list = $util.emptyArray;
  27884. /**
  27885. * ranking_data_rsp myslef.
  27886. * @member {game.Iranking_info|null|undefined} myslef
  27887. * @memberof game.ranking_data_rsp
  27888. * @instance
  27889. */
  27890. ranking_data_rsp.prototype.myslef = null;
  27891. /**
  27892. * Creates a new ranking_data_rsp instance using the specified properties.
  27893. * @function create
  27894. * @memberof game.ranking_data_rsp
  27895. * @static
  27896. * @param {game.Iranking_data_rsp=} [properties] Properties to set
  27897. * @returns {game.ranking_data_rsp} ranking_data_rsp instance
  27898. */
  27899. ranking_data_rsp.create = function create(properties) {
  27900. return new ranking_data_rsp(properties);
  27901. };
  27902. /**
  27903. * Encodes the specified ranking_data_rsp message. Does not implicitly {@link game.ranking_data_rsp.verify|verify} messages.
  27904. * @function encode
  27905. * @memberof game.ranking_data_rsp
  27906. * @static
  27907. * @param {game.Iranking_data_rsp} message ranking_data_rsp message or plain object to encode
  27908. * @param {$protobuf.Writer} [writer] Writer to encode to
  27909. * @returns {$protobuf.Writer} Writer
  27910. */
  27911. ranking_data_rsp.encode = function encode(message, writer) {
  27912. if (!writer)
  27913. writer = $Writer.create();
  27914. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  27915. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  27916. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  27917. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.type);
  27918. if (message.list != null && message.list.length)
  27919. for (let i = 0; i < message.list.length; ++i)
  27920. $root.game.ranking_info.encode(message.list[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
  27921. if (message.myslef != null && Object.hasOwnProperty.call(message, "myslef"))
  27922. $root.game.ranking_info.encode(message.myslef, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
  27923. return writer;
  27924. };
  27925. /**
  27926. * Encodes the specified ranking_data_rsp message, length delimited. Does not implicitly {@link game.ranking_data_rsp.verify|verify} messages.
  27927. * @function encodeDelimited
  27928. * @memberof game.ranking_data_rsp
  27929. * @static
  27930. * @param {game.Iranking_data_rsp} message ranking_data_rsp message or plain object to encode
  27931. * @param {$protobuf.Writer} [writer] Writer to encode to
  27932. * @returns {$protobuf.Writer} Writer
  27933. */
  27934. ranking_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  27935. return this.encode(message, writer).ldelim();
  27936. };
  27937. /**
  27938. * Decodes a ranking_data_rsp message from the specified reader or buffer.
  27939. * @function decode
  27940. * @memberof game.ranking_data_rsp
  27941. * @static
  27942. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  27943. * @param {number} [length] Message length if known beforehand
  27944. * @returns {game.ranking_data_rsp} ranking_data_rsp
  27945. * @throws {Error} If the payload is not a reader or valid buffer
  27946. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  27947. */
  27948. ranking_data_rsp.decode = function decode(reader, length) {
  27949. if (!(reader instanceof $Reader))
  27950. reader = $Reader.create(reader);
  27951. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.ranking_data_rsp();
  27952. while (reader.pos < end) {
  27953. let tag = reader.uint32();
  27954. switch (tag >>> 3) {
  27955. case 1:
  27956. message.errno = reader.int64();
  27957. break;
  27958. case 2:
  27959. message.type = reader.int64();
  27960. break;
  27961. case 3:
  27962. if (!(message.list && message.list.length))
  27963. message.list = [];
  27964. message.list.push($root.game.ranking_info.decode(reader, reader.uint32()));
  27965. break;
  27966. case 4:
  27967. message.myslef = $root.game.ranking_info.decode(reader, reader.uint32());
  27968. break;
  27969. default:
  27970. reader.skipType(tag & 7);
  27971. break;
  27972. }
  27973. }
  27974. return message;
  27975. };
  27976. /**
  27977. * Decodes a ranking_data_rsp message from the specified reader or buffer, length delimited.
  27978. * @function decodeDelimited
  27979. * @memberof game.ranking_data_rsp
  27980. * @static
  27981. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  27982. * @returns {game.ranking_data_rsp} ranking_data_rsp
  27983. * @throws {Error} If the payload is not a reader or valid buffer
  27984. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  27985. */
  27986. ranking_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  27987. if (!(reader instanceof $Reader))
  27988. reader = new $Reader(reader);
  27989. return this.decode(reader, reader.uint32());
  27990. };
  27991. /**
  27992. * Verifies a ranking_data_rsp message.
  27993. * @function verify
  27994. * @memberof game.ranking_data_rsp
  27995. * @static
  27996. * @param {Object.<string,*>} message Plain object to verify
  27997. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  27998. */
  27999. ranking_data_rsp.verify = function verify(message) {
  28000. if (typeof message !== "object" || message === null)
  28001. return "object expected";
  28002. if (message.errno != null && message.hasOwnProperty("errno"))
  28003. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  28004. return "errno: integer|Long expected";
  28005. if (message.type != null && message.hasOwnProperty("type"))
  28006. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  28007. return "type: integer|Long expected";
  28008. if (message.list != null && message.hasOwnProperty("list")) {
  28009. if (!Array.isArray(message.list))
  28010. return "list: array expected";
  28011. for (let i = 0; i < message.list.length; ++i) {
  28012. let error = $root.game.ranking_info.verify(message.list[i]);
  28013. if (error)
  28014. return "list." + error;
  28015. }
  28016. }
  28017. if (message.myslef != null && message.hasOwnProperty("myslef")) {
  28018. let error = $root.game.ranking_info.verify(message.myslef);
  28019. if (error)
  28020. return "myslef." + error;
  28021. }
  28022. return null;
  28023. };
  28024. /**
  28025. * Creates a ranking_data_rsp message from a plain object. Also converts values to their respective internal types.
  28026. * @function fromObject
  28027. * @memberof game.ranking_data_rsp
  28028. * @static
  28029. * @param {Object.<string,*>} object Plain object
  28030. * @returns {game.ranking_data_rsp} ranking_data_rsp
  28031. */
  28032. ranking_data_rsp.fromObject = function fromObject(object) {
  28033. if (object instanceof $root.game.ranking_data_rsp)
  28034. return object;
  28035. let message = new $root.game.ranking_data_rsp();
  28036. if (object.errno != null)
  28037. if ($util.Long)
  28038. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  28039. else if (typeof object.errno === "string")
  28040. message.errno = parseInt(object.errno, 10);
  28041. else if (typeof object.errno === "number")
  28042. message.errno = object.errno;
  28043. else if (typeof object.errno === "object")
  28044. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  28045. if (object.type != null)
  28046. if ($util.Long)
  28047. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  28048. else if (typeof object.type === "string")
  28049. message.type = parseInt(object.type, 10);
  28050. else if (typeof object.type === "number")
  28051. message.type = object.type;
  28052. else if (typeof object.type === "object")
  28053. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  28054. if (object.list) {
  28055. if (!Array.isArray(object.list))
  28056. throw TypeError(".game.ranking_data_rsp.list: array expected");
  28057. message.list = [];
  28058. for (let i = 0; i < object.list.length; ++i) {
  28059. if (typeof object.list[i] !== "object")
  28060. throw TypeError(".game.ranking_data_rsp.list: object expected");
  28061. message.list[i] = $root.game.ranking_info.fromObject(object.list[i]);
  28062. }
  28063. }
  28064. if (object.myslef != null) {
  28065. if (typeof object.myslef !== "object")
  28066. throw TypeError(".game.ranking_data_rsp.myslef: object expected");
  28067. message.myslef = $root.game.ranking_info.fromObject(object.myslef);
  28068. }
  28069. return message;
  28070. };
  28071. /**
  28072. * Creates a plain object from a ranking_data_rsp message. Also converts values to other types if specified.
  28073. * @function toObject
  28074. * @memberof game.ranking_data_rsp
  28075. * @static
  28076. * @param {game.ranking_data_rsp} message ranking_data_rsp
  28077. * @param {$protobuf.IConversionOptions} [options] Conversion options
  28078. * @returns {Object.<string,*>} Plain object
  28079. */
  28080. ranking_data_rsp.toObject = function toObject(message, options) {
  28081. if (!options)
  28082. options = {};
  28083. let object = {};
  28084. if (options.arrays || options.defaults)
  28085. object.list = [];
  28086. if (options.defaults) {
  28087. if ($util.Long) {
  28088. let long = new $util.Long(0, 0, false);
  28089. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  28090. } else
  28091. object.errno = options.longs === String ? "0" : 0;
  28092. if ($util.Long) {
  28093. let long = new $util.Long(0, 0, false);
  28094. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  28095. } else
  28096. object.type = options.longs === String ? "0" : 0;
  28097. object.myslef = null;
  28098. }
  28099. if (message.errno != null && message.hasOwnProperty("errno"))
  28100. if (typeof message.errno === "number")
  28101. object.errno = options.longs === String ? String(message.errno) : message.errno;
  28102. else
  28103. 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;
  28104. if (message.type != null && message.hasOwnProperty("type"))
  28105. if (typeof message.type === "number")
  28106. object.type = options.longs === String ? String(message.type) : message.type;
  28107. else
  28108. 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;
  28109. if (message.list && message.list.length) {
  28110. object.list = [];
  28111. for (let j = 0; j < message.list.length; ++j)
  28112. object.list[j] = $root.game.ranking_info.toObject(message.list[j], options);
  28113. }
  28114. if (message.myslef != null && message.hasOwnProperty("myslef"))
  28115. object.myslef = $root.game.ranking_info.toObject(message.myslef, options);
  28116. return object;
  28117. };
  28118. /**
  28119. * Converts this ranking_data_rsp to JSON.
  28120. * @function toJSON
  28121. * @memberof game.ranking_data_rsp
  28122. * @instance
  28123. * @returns {Object.<string,*>} JSON object
  28124. */
  28125. ranking_data_rsp.prototype.toJSON = function toJSON() {
  28126. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  28127. };
  28128. return ranking_data_rsp;
  28129. })();
  28130. game.grocery_data = (function() {
  28131. /**
  28132. * Properties of a grocery_data.
  28133. * @memberof game
  28134. * @interface Igrocery_data
  28135. * @property {number|Long|null} [type] grocery_data type
  28136. */
  28137. /**
  28138. * Constructs a new grocery_data.
  28139. * @memberof game
  28140. * @classdesc Represents a grocery_data.
  28141. * @implements Igrocery_data
  28142. * @constructor
  28143. * @param {game.Igrocery_data=} [properties] Properties to set
  28144. */
  28145. function grocery_data(properties) {
  28146. if (properties)
  28147. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  28148. if (properties[keys[i]] != null)
  28149. this[keys[i]] = properties[keys[i]];
  28150. }
  28151. /**
  28152. * grocery_data type.
  28153. * @member {number|Long} type
  28154. * @memberof game.grocery_data
  28155. * @instance
  28156. */
  28157. grocery_data.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  28158. /**
  28159. * Creates a new grocery_data instance using the specified properties.
  28160. * @function create
  28161. * @memberof game.grocery_data
  28162. * @static
  28163. * @param {game.Igrocery_data=} [properties] Properties to set
  28164. * @returns {game.grocery_data} grocery_data instance
  28165. */
  28166. grocery_data.create = function create(properties) {
  28167. return new grocery_data(properties);
  28168. };
  28169. /**
  28170. * Encodes the specified grocery_data message. Does not implicitly {@link game.grocery_data.verify|verify} messages.
  28171. * @function encode
  28172. * @memberof game.grocery_data
  28173. * @static
  28174. * @param {game.Igrocery_data} message grocery_data message or plain object to encode
  28175. * @param {$protobuf.Writer} [writer] Writer to encode to
  28176. * @returns {$protobuf.Writer} Writer
  28177. */
  28178. grocery_data.encode = function encode(message, writer) {
  28179. if (!writer)
  28180. writer = $Writer.create();
  28181. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  28182. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
  28183. return writer;
  28184. };
  28185. /**
  28186. * Encodes the specified grocery_data message, length delimited. Does not implicitly {@link game.grocery_data.verify|verify} messages.
  28187. * @function encodeDelimited
  28188. * @memberof game.grocery_data
  28189. * @static
  28190. * @param {game.Igrocery_data} message grocery_data message or plain object to encode
  28191. * @param {$protobuf.Writer} [writer] Writer to encode to
  28192. * @returns {$protobuf.Writer} Writer
  28193. */
  28194. grocery_data.encodeDelimited = function encodeDelimited(message, writer) {
  28195. return this.encode(message, writer).ldelim();
  28196. };
  28197. /**
  28198. * Decodes a grocery_data message from the specified reader or buffer.
  28199. * @function decode
  28200. * @memberof game.grocery_data
  28201. * @static
  28202. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  28203. * @param {number} [length] Message length if known beforehand
  28204. * @returns {game.grocery_data} grocery_data
  28205. * @throws {Error} If the payload is not a reader or valid buffer
  28206. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  28207. */
  28208. grocery_data.decode = function decode(reader, length) {
  28209. if (!(reader instanceof $Reader))
  28210. reader = $Reader.create(reader);
  28211. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.grocery_data();
  28212. while (reader.pos < end) {
  28213. let tag = reader.uint32();
  28214. switch (tag >>> 3) {
  28215. case 1:
  28216. message.type = reader.int64();
  28217. break;
  28218. default:
  28219. reader.skipType(tag & 7);
  28220. break;
  28221. }
  28222. }
  28223. return message;
  28224. };
  28225. /**
  28226. * Decodes a grocery_data message from the specified reader or buffer, length delimited.
  28227. * @function decodeDelimited
  28228. * @memberof game.grocery_data
  28229. * @static
  28230. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  28231. * @returns {game.grocery_data} grocery_data
  28232. * @throws {Error} If the payload is not a reader or valid buffer
  28233. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  28234. */
  28235. grocery_data.decodeDelimited = function decodeDelimited(reader) {
  28236. if (!(reader instanceof $Reader))
  28237. reader = new $Reader(reader);
  28238. return this.decode(reader, reader.uint32());
  28239. };
  28240. /**
  28241. * Verifies a grocery_data message.
  28242. * @function verify
  28243. * @memberof game.grocery_data
  28244. * @static
  28245. * @param {Object.<string,*>} message Plain object to verify
  28246. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  28247. */
  28248. grocery_data.verify = function verify(message) {
  28249. if (typeof message !== "object" || message === null)
  28250. return "object expected";
  28251. if (message.type != null && message.hasOwnProperty("type"))
  28252. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  28253. return "type: integer|Long expected";
  28254. return null;
  28255. };
  28256. /**
  28257. * Creates a grocery_data message from a plain object. Also converts values to their respective internal types.
  28258. * @function fromObject
  28259. * @memberof game.grocery_data
  28260. * @static
  28261. * @param {Object.<string,*>} object Plain object
  28262. * @returns {game.grocery_data} grocery_data
  28263. */
  28264. grocery_data.fromObject = function fromObject(object) {
  28265. if (object instanceof $root.game.grocery_data)
  28266. return object;
  28267. let message = new $root.game.grocery_data();
  28268. if (object.type != null)
  28269. if ($util.Long)
  28270. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  28271. else if (typeof object.type === "string")
  28272. message.type = parseInt(object.type, 10);
  28273. else if (typeof object.type === "number")
  28274. message.type = object.type;
  28275. else if (typeof object.type === "object")
  28276. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  28277. return message;
  28278. };
  28279. /**
  28280. * Creates a plain object from a grocery_data message. Also converts values to other types if specified.
  28281. * @function toObject
  28282. * @memberof game.grocery_data
  28283. * @static
  28284. * @param {game.grocery_data} message grocery_data
  28285. * @param {$protobuf.IConversionOptions} [options] Conversion options
  28286. * @returns {Object.<string,*>} Plain object
  28287. */
  28288. grocery_data.toObject = function toObject(message, options) {
  28289. if (!options)
  28290. options = {};
  28291. let object = {};
  28292. if (options.defaults)
  28293. if ($util.Long) {
  28294. let long = new $util.Long(0, 0, false);
  28295. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  28296. } else
  28297. object.type = options.longs === String ? "0" : 0;
  28298. if (message.type != null && message.hasOwnProperty("type"))
  28299. if (typeof message.type === "number")
  28300. object.type = options.longs === String ? String(message.type) : message.type;
  28301. else
  28302. 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;
  28303. return object;
  28304. };
  28305. /**
  28306. * Converts this grocery_data to JSON.
  28307. * @function toJSON
  28308. * @memberof game.grocery_data
  28309. * @instance
  28310. * @returns {Object.<string,*>} JSON object
  28311. */
  28312. grocery_data.prototype.toJSON = function toJSON() {
  28313. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  28314. };
  28315. return grocery_data;
  28316. })();
  28317. game.grocery_data_rsp = (function() {
  28318. /**
  28319. * Properties of a grocery_data_rsp.
  28320. * @memberof game
  28321. * @interface Igrocery_data_rsp
  28322. * @property {number|Long|null} [errno] grocery_data_rsp errno
  28323. * @property {game.Igrocery_info|null} [data] grocery_data_rsp data
  28324. */
  28325. /**
  28326. * Constructs a new grocery_data_rsp.
  28327. * @memberof game
  28328. * @classdesc Represents a grocery_data_rsp.
  28329. * @implements Igrocery_data_rsp
  28330. * @constructor
  28331. * @param {game.Igrocery_data_rsp=} [properties] Properties to set
  28332. */
  28333. function grocery_data_rsp(properties) {
  28334. if (properties)
  28335. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  28336. if (properties[keys[i]] != null)
  28337. this[keys[i]] = properties[keys[i]];
  28338. }
  28339. /**
  28340. * grocery_data_rsp errno.
  28341. * @member {number|Long} errno
  28342. * @memberof game.grocery_data_rsp
  28343. * @instance
  28344. */
  28345. grocery_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  28346. /**
  28347. * grocery_data_rsp data.
  28348. * @member {game.Igrocery_info|null|undefined} data
  28349. * @memberof game.grocery_data_rsp
  28350. * @instance
  28351. */
  28352. grocery_data_rsp.prototype.data = null;
  28353. /**
  28354. * Creates a new grocery_data_rsp instance using the specified properties.
  28355. * @function create
  28356. * @memberof game.grocery_data_rsp
  28357. * @static
  28358. * @param {game.Igrocery_data_rsp=} [properties] Properties to set
  28359. * @returns {game.grocery_data_rsp} grocery_data_rsp instance
  28360. */
  28361. grocery_data_rsp.create = function create(properties) {
  28362. return new grocery_data_rsp(properties);
  28363. };
  28364. /**
  28365. * Encodes the specified grocery_data_rsp message. Does not implicitly {@link game.grocery_data_rsp.verify|verify} messages.
  28366. * @function encode
  28367. * @memberof game.grocery_data_rsp
  28368. * @static
  28369. * @param {game.Igrocery_data_rsp} message grocery_data_rsp message or plain object to encode
  28370. * @param {$protobuf.Writer} [writer] Writer to encode to
  28371. * @returns {$protobuf.Writer} Writer
  28372. */
  28373. grocery_data_rsp.encode = function encode(message, writer) {
  28374. if (!writer)
  28375. writer = $Writer.create();
  28376. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  28377. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  28378. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  28379. $root.game.grocery_info.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  28380. return writer;
  28381. };
  28382. /**
  28383. * Encodes the specified grocery_data_rsp message, length delimited. Does not implicitly {@link game.grocery_data_rsp.verify|verify} messages.
  28384. * @function encodeDelimited
  28385. * @memberof game.grocery_data_rsp
  28386. * @static
  28387. * @param {game.Igrocery_data_rsp} message grocery_data_rsp message or plain object to encode
  28388. * @param {$protobuf.Writer} [writer] Writer to encode to
  28389. * @returns {$protobuf.Writer} Writer
  28390. */
  28391. grocery_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  28392. return this.encode(message, writer).ldelim();
  28393. };
  28394. /**
  28395. * Decodes a grocery_data_rsp message from the specified reader or buffer.
  28396. * @function decode
  28397. * @memberof game.grocery_data_rsp
  28398. * @static
  28399. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  28400. * @param {number} [length] Message length if known beforehand
  28401. * @returns {game.grocery_data_rsp} grocery_data_rsp
  28402. * @throws {Error} If the payload is not a reader or valid buffer
  28403. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  28404. */
  28405. grocery_data_rsp.decode = function decode(reader, length) {
  28406. if (!(reader instanceof $Reader))
  28407. reader = $Reader.create(reader);
  28408. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.grocery_data_rsp();
  28409. while (reader.pos < end) {
  28410. let tag = reader.uint32();
  28411. switch (tag >>> 3) {
  28412. case 1:
  28413. message.errno = reader.int64();
  28414. break;
  28415. case 2:
  28416. message.data = $root.game.grocery_info.decode(reader, reader.uint32());
  28417. break;
  28418. default:
  28419. reader.skipType(tag & 7);
  28420. break;
  28421. }
  28422. }
  28423. return message;
  28424. };
  28425. /**
  28426. * Decodes a grocery_data_rsp message from the specified reader or buffer, length delimited.
  28427. * @function decodeDelimited
  28428. * @memberof game.grocery_data_rsp
  28429. * @static
  28430. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  28431. * @returns {game.grocery_data_rsp} grocery_data_rsp
  28432. * @throws {Error} If the payload is not a reader or valid buffer
  28433. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  28434. */
  28435. grocery_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  28436. if (!(reader instanceof $Reader))
  28437. reader = new $Reader(reader);
  28438. return this.decode(reader, reader.uint32());
  28439. };
  28440. /**
  28441. * Verifies a grocery_data_rsp message.
  28442. * @function verify
  28443. * @memberof game.grocery_data_rsp
  28444. * @static
  28445. * @param {Object.<string,*>} message Plain object to verify
  28446. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  28447. */
  28448. grocery_data_rsp.verify = function verify(message) {
  28449. if (typeof message !== "object" || message === null)
  28450. return "object expected";
  28451. if (message.errno != null && message.hasOwnProperty("errno"))
  28452. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  28453. return "errno: integer|Long expected";
  28454. if (message.data != null && message.hasOwnProperty("data")) {
  28455. let error = $root.game.grocery_info.verify(message.data);
  28456. if (error)
  28457. return "data." + error;
  28458. }
  28459. return null;
  28460. };
  28461. /**
  28462. * Creates a grocery_data_rsp message from a plain object. Also converts values to their respective internal types.
  28463. * @function fromObject
  28464. * @memberof game.grocery_data_rsp
  28465. * @static
  28466. * @param {Object.<string,*>} object Plain object
  28467. * @returns {game.grocery_data_rsp} grocery_data_rsp
  28468. */
  28469. grocery_data_rsp.fromObject = function fromObject(object) {
  28470. if (object instanceof $root.game.grocery_data_rsp)
  28471. return object;
  28472. let message = new $root.game.grocery_data_rsp();
  28473. if (object.errno != null)
  28474. if ($util.Long)
  28475. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  28476. else if (typeof object.errno === "string")
  28477. message.errno = parseInt(object.errno, 10);
  28478. else if (typeof object.errno === "number")
  28479. message.errno = object.errno;
  28480. else if (typeof object.errno === "object")
  28481. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  28482. if (object.data != null) {
  28483. if (typeof object.data !== "object")
  28484. throw TypeError(".game.grocery_data_rsp.data: object expected");
  28485. message.data = $root.game.grocery_info.fromObject(object.data);
  28486. }
  28487. return message;
  28488. };
  28489. /**
  28490. * Creates a plain object from a grocery_data_rsp message. Also converts values to other types if specified.
  28491. * @function toObject
  28492. * @memberof game.grocery_data_rsp
  28493. * @static
  28494. * @param {game.grocery_data_rsp} message grocery_data_rsp
  28495. * @param {$protobuf.IConversionOptions} [options] Conversion options
  28496. * @returns {Object.<string,*>} Plain object
  28497. */
  28498. grocery_data_rsp.toObject = function toObject(message, options) {
  28499. if (!options)
  28500. options = {};
  28501. let object = {};
  28502. if (options.defaults) {
  28503. if ($util.Long) {
  28504. let long = new $util.Long(0, 0, false);
  28505. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  28506. } else
  28507. object.errno = options.longs === String ? "0" : 0;
  28508. object.data = null;
  28509. }
  28510. if (message.errno != null && message.hasOwnProperty("errno"))
  28511. if (typeof message.errno === "number")
  28512. object.errno = options.longs === String ? String(message.errno) : message.errno;
  28513. else
  28514. 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;
  28515. if (message.data != null && message.hasOwnProperty("data"))
  28516. object.data = $root.game.grocery_info.toObject(message.data, options);
  28517. return object;
  28518. };
  28519. /**
  28520. * Converts this grocery_data_rsp to JSON.
  28521. * @function toJSON
  28522. * @memberof game.grocery_data_rsp
  28523. * @instance
  28524. * @returns {Object.<string,*>} JSON object
  28525. */
  28526. grocery_data_rsp.prototype.toJSON = function toJSON() {
  28527. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  28528. };
  28529. return grocery_data_rsp;
  28530. })();
  28531. game.grocery_buy = (function() {
  28532. /**
  28533. * Properties of a grocery_buy.
  28534. * @memberof game
  28535. * @interface Igrocery_buy
  28536. * @property {number|Long|null} [type] grocery_buy type
  28537. * @property {boolean|null} [free] grocery_buy free
  28538. */
  28539. /**
  28540. * Constructs a new grocery_buy.
  28541. * @memberof game
  28542. * @classdesc Represents a grocery_buy.
  28543. * @implements Igrocery_buy
  28544. * @constructor
  28545. * @param {game.Igrocery_buy=} [properties] Properties to set
  28546. */
  28547. function grocery_buy(properties) {
  28548. if (properties)
  28549. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  28550. if (properties[keys[i]] != null)
  28551. this[keys[i]] = properties[keys[i]];
  28552. }
  28553. /**
  28554. * grocery_buy type.
  28555. * @member {number|Long} type
  28556. * @memberof game.grocery_buy
  28557. * @instance
  28558. */
  28559. grocery_buy.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  28560. /**
  28561. * grocery_buy free.
  28562. * @member {boolean} free
  28563. * @memberof game.grocery_buy
  28564. * @instance
  28565. */
  28566. grocery_buy.prototype.free = false;
  28567. /**
  28568. * Creates a new grocery_buy instance using the specified properties.
  28569. * @function create
  28570. * @memberof game.grocery_buy
  28571. * @static
  28572. * @param {game.Igrocery_buy=} [properties] Properties to set
  28573. * @returns {game.grocery_buy} grocery_buy instance
  28574. */
  28575. grocery_buy.create = function create(properties) {
  28576. return new grocery_buy(properties);
  28577. };
  28578. /**
  28579. * Encodes the specified grocery_buy message. Does not implicitly {@link game.grocery_buy.verify|verify} messages.
  28580. * @function encode
  28581. * @memberof game.grocery_buy
  28582. * @static
  28583. * @param {game.Igrocery_buy} message grocery_buy message or plain object to encode
  28584. * @param {$protobuf.Writer} [writer] Writer to encode to
  28585. * @returns {$protobuf.Writer} Writer
  28586. */
  28587. grocery_buy.encode = function encode(message, writer) {
  28588. if (!writer)
  28589. writer = $Writer.create();
  28590. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  28591. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
  28592. if (message.free != null && Object.hasOwnProperty.call(message, "free"))
  28593. writer.uint32(/* id 2, wireType 0 =*/16).bool(message.free);
  28594. return writer;
  28595. };
  28596. /**
  28597. * Encodes the specified grocery_buy message, length delimited. Does not implicitly {@link game.grocery_buy.verify|verify} messages.
  28598. * @function encodeDelimited
  28599. * @memberof game.grocery_buy
  28600. * @static
  28601. * @param {game.Igrocery_buy} message grocery_buy message or plain object to encode
  28602. * @param {$protobuf.Writer} [writer] Writer to encode to
  28603. * @returns {$protobuf.Writer} Writer
  28604. */
  28605. grocery_buy.encodeDelimited = function encodeDelimited(message, writer) {
  28606. return this.encode(message, writer).ldelim();
  28607. };
  28608. /**
  28609. * Decodes a grocery_buy message from the specified reader or buffer.
  28610. * @function decode
  28611. * @memberof game.grocery_buy
  28612. * @static
  28613. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  28614. * @param {number} [length] Message length if known beforehand
  28615. * @returns {game.grocery_buy} grocery_buy
  28616. * @throws {Error} If the payload is not a reader or valid buffer
  28617. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  28618. */
  28619. grocery_buy.decode = function decode(reader, length) {
  28620. if (!(reader instanceof $Reader))
  28621. reader = $Reader.create(reader);
  28622. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.grocery_buy();
  28623. while (reader.pos < end) {
  28624. let tag = reader.uint32();
  28625. switch (tag >>> 3) {
  28626. case 1:
  28627. message.type = reader.int64();
  28628. break;
  28629. case 2:
  28630. message.free = reader.bool();
  28631. break;
  28632. default:
  28633. reader.skipType(tag & 7);
  28634. break;
  28635. }
  28636. }
  28637. return message;
  28638. };
  28639. /**
  28640. * Decodes a grocery_buy message from the specified reader or buffer, length delimited.
  28641. * @function decodeDelimited
  28642. * @memberof game.grocery_buy
  28643. * @static
  28644. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  28645. * @returns {game.grocery_buy} grocery_buy
  28646. * @throws {Error} If the payload is not a reader or valid buffer
  28647. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  28648. */
  28649. grocery_buy.decodeDelimited = function decodeDelimited(reader) {
  28650. if (!(reader instanceof $Reader))
  28651. reader = new $Reader(reader);
  28652. return this.decode(reader, reader.uint32());
  28653. };
  28654. /**
  28655. * Verifies a grocery_buy message.
  28656. * @function verify
  28657. * @memberof game.grocery_buy
  28658. * @static
  28659. * @param {Object.<string,*>} message Plain object to verify
  28660. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  28661. */
  28662. grocery_buy.verify = function verify(message) {
  28663. if (typeof message !== "object" || message === null)
  28664. return "object expected";
  28665. if (message.type != null && message.hasOwnProperty("type"))
  28666. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  28667. return "type: integer|Long expected";
  28668. if (message.free != null && message.hasOwnProperty("free"))
  28669. if (typeof message.free !== "boolean")
  28670. return "free: boolean expected";
  28671. return null;
  28672. };
  28673. /**
  28674. * Creates a grocery_buy message from a plain object. Also converts values to their respective internal types.
  28675. * @function fromObject
  28676. * @memberof game.grocery_buy
  28677. * @static
  28678. * @param {Object.<string,*>} object Plain object
  28679. * @returns {game.grocery_buy} grocery_buy
  28680. */
  28681. grocery_buy.fromObject = function fromObject(object) {
  28682. if (object instanceof $root.game.grocery_buy)
  28683. return object;
  28684. let message = new $root.game.grocery_buy();
  28685. if (object.type != null)
  28686. if ($util.Long)
  28687. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  28688. else if (typeof object.type === "string")
  28689. message.type = parseInt(object.type, 10);
  28690. else if (typeof object.type === "number")
  28691. message.type = object.type;
  28692. else if (typeof object.type === "object")
  28693. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  28694. if (object.free != null)
  28695. message.free = Boolean(object.free);
  28696. return message;
  28697. };
  28698. /**
  28699. * Creates a plain object from a grocery_buy message. Also converts values to other types if specified.
  28700. * @function toObject
  28701. * @memberof game.grocery_buy
  28702. * @static
  28703. * @param {game.grocery_buy} message grocery_buy
  28704. * @param {$protobuf.IConversionOptions} [options] Conversion options
  28705. * @returns {Object.<string,*>} Plain object
  28706. */
  28707. grocery_buy.toObject = function toObject(message, options) {
  28708. if (!options)
  28709. options = {};
  28710. let object = {};
  28711. if (options.defaults) {
  28712. if ($util.Long) {
  28713. let long = new $util.Long(0, 0, false);
  28714. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  28715. } else
  28716. object.type = options.longs === String ? "0" : 0;
  28717. object.free = false;
  28718. }
  28719. if (message.type != null && message.hasOwnProperty("type"))
  28720. if (typeof message.type === "number")
  28721. object.type = options.longs === String ? String(message.type) : message.type;
  28722. else
  28723. 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;
  28724. if (message.free != null && message.hasOwnProperty("free"))
  28725. object.free = message.free;
  28726. return object;
  28727. };
  28728. /**
  28729. * Converts this grocery_buy to JSON.
  28730. * @function toJSON
  28731. * @memberof game.grocery_buy
  28732. * @instance
  28733. * @returns {Object.<string,*>} JSON object
  28734. */
  28735. grocery_buy.prototype.toJSON = function toJSON() {
  28736. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  28737. };
  28738. return grocery_buy;
  28739. })();
  28740. game.grocery_buy_rsp = (function() {
  28741. /**
  28742. * Properties of a grocery_buy_rsp.
  28743. * @memberof game
  28744. * @interface Igrocery_buy_rsp
  28745. * @property {number|Long|null} [errno] grocery_buy_rsp errno
  28746. * @property {game.Igrocery_info|null} [data] grocery_buy_rsp data
  28747. */
  28748. /**
  28749. * Constructs a new grocery_buy_rsp.
  28750. * @memberof game
  28751. * @classdesc Represents a grocery_buy_rsp.
  28752. * @implements Igrocery_buy_rsp
  28753. * @constructor
  28754. * @param {game.Igrocery_buy_rsp=} [properties] Properties to set
  28755. */
  28756. function grocery_buy_rsp(properties) {
  28757. if (properties)
  28758. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  28759. if (properties[keys[i]] != null)
  28760. this[keys[i]] = properties[keys[i]];
  28761. }
  28762. /**
  28763. * grocery_buy_rsp errno.
  28764. * @member {number|Long} errno
  28765. * @memberof game.grocery_buy_rsp
  28766. * @instance
  28767. */
  28768. grocery_buy_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  28769. /**
  28770. * grocery_buy_rsp data.
  28771. * @member {game.Igrocery_info|null|undefined} data
  28772. * @memberof game.grocery_buy_rsp
  28773. * @instance
  28774. */
  28775. grocery_buy_rsp.prototype.data = null;
  28776. /**
  28777. * Creates a new grocery_buy_rsp instance using the specified properties.
  28778. * @function create
  28779. * @memberof game.grocery_buy_rsp
  28780. * @static
  28781. * @param {game.Igrocery_buy_rsp=} [properties] Properties to set
  28782. * @returns {game.grocery_buy_rsp} grocery_buy_rsp instance
  28783. */
  28784. grocery_buy_rsp.create = function create(properties) {
  28785. return new grocery_buy_rsp(properties);
  28786. };
  28787. /**
  28788. * Encodes the specified grocery_buy_rsp message. Does not implicitly {@link game.grocery_buy_rsp.verify|verify} messages.
  28789. * @function encode
  28790. * @memberof game.grocery_buy_rsp
  28791. * @static
  28792. * @param {game.Igrocery_buy_rsp} message grocery_buy_rsp message or plain object to encode
  28793. * @param {$protobuf.Writer} [writer] Writer to encode to
  28794. * @returns {$protobuf.Writer} Writer
  28795. */
  28796. grocery_buy_rsp.encode = function encode(message, writer) {
  28797. if (!writer)
  28798. writer = $Writer.create();
  28799. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  28800. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  28801. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  28802. $root.game.grocery_info.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  28803. return writer;
  28804. };
  28805. /**
  28806. * Encodes the specified grocery_buy_rsp message, length delimited. Does not implicitly {@link game.grocery_buy_rsp.verify|verify} messages.
  28807. * @function encodeDelimited
  28808. * @memberof game.grocery_buy_rsp
  28809. * @static
  28810. * @param {game.Igrocery_buy_rsp} message grocery_buy_rsp message or plain object to encode
  28811. * @param {$protobuf.Writer} [writer] Writer to encode to
  28812. * @returns {$protobuf.Writer} Writer
  28813. */
  28814. grocery_buy_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  28815. return this.encode(message, writer).ldelim();
  28816. };
  28817. /**
  28818. * Decodes a grocery_buy_rsp message from the specified reader or buffer.
  28819. * @function decode
  28820. * @memberof game.grocery_buy_rsp
  28821. * @static
  28822. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  28823. * @param {number} [length] Message length if known beforehand
  28824. * @returns {game.grocery_buy_rsp} grocery_buy_rsp
  28825. * @throws {Error} If the payload is not a reader or valid buffer
  28826. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  28827. */
  28828. grocery_buy_rsp.decode = function decode(reader, length) {
  28829. if (!(reader instanceof $Reader))
  28830. reader = $Reader.create(reader);
  28831. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.grocery_buy_rsp();
  28832. while (reader.pos < end) {
  28833. let tag = reader.uint32();
  28834. switch (tag >>> 3) {
  28835. case 1:
  28836. message.errno = reader.int64();
  28837. break;
  28838. case 2:
  28839. message.data = $root.game.grocery_info.decode(reader, reader.uint32());
  28840. break;
  28841. default:
  28842. reader.skipType(tag & 7);
  28843. break;
  28844. }
  28845. }
  28846. return message;
  28847. };
  28848. /**
  28849. * Decodes a grocery_buy_rsp message from the specified reader or buffer, length delimited.
  28850. * @function decodeDelimited
  28851. * @memberof game.grocery_buy_rsp
  28852. * @static
  28853. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  28854. * @returns {game.grocery_buy_rsp} grocery_buy_rsp
  28855. * @throws {Error} If the payload is not a reader or valid buffer
  28856. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  28857. */
  28858. grocery_buy_rsp.decodeDelimited = function decodeDelimited(reader) {
  28859. if (!(reader instanceof $Reader))
  28860. reader = new $Reader(reader);
  28861. return this.decode(reader, reader.uint32());
  28862. };
  28863. /**
  28864. * Verifies a grocery_buy_rsp message.
  28865. * @function verify
  28866. * @memberof game.grocery_buy_rsp
  28867. * @static
  28868. * @param {Object.<string,*>} message Plain object to verify
  28869. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  28870. */
  28871. grocery_buy_rsp.verify = function verify(message) {
  28872. if (typeof message !== "object" || message === null)
  28873. return "object expected";
  28874. if (message.errno != null && message.hasOwnProperty("errno"))
  28875. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  28876. return "errno: integer|Long expected";
  28877. if (message.data != null && message.hasOwnProperty("data")) {
  28878. let error = $root.game.grocery_info.verify(message.data);
  28879. if (error)
  28880. return "data." + error;
  28881. }
  28882. return null;
  28883. };
  28884. /**
  28885. * Creates a grocery_buy_rsp message from a plain object. Also converts values to their respective internal types.
  28886. * @function fromObject
  28887. * @memberof game.grocery_buy_rsp
  28888. * @static
  28889. * @param {Object.<string,*>} object Plain object
  28890. * @returns {game.grocery_buy_rsp} grocery_buy_rsp
  28891. */
  28892. grocery_buy_rsp.fromObject = function fromObject(object) {
  28893. if (object instanceof $root.game.grocery_buy_rsp)
  28894. return object;
  28895. let message = new $root.game.grocery_buy_rsp();
  28896. if (object.errno != null)
  28897. if ($util.Long)
  28898. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  28899. else if (typeof object.errno === "string")
  28900. message.errno = parseInt(object.errno, 10);
  28901. else if (typeof object.errno === "number")
  28902. message.errno = object.errno;
  28903. else if (typeof object.errno === "object")
  28904. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  28905. if (object.data != null) {
  28906. if (typeof object.data !== "object")
  28907. throw TypeError(".game.grocery_buy_rsp.data: object expected");
  28908. message.data = $root.game.grocery_info.fromObject(object.data);
  28909. }
  28910. return message;
  28911. };
  28912. /**
  28913. * Creates a plain object from a grocery_buy_rsp message. Also converts values to other types if specified.
  28914. * @function toObject
  28915. * @memberof game.grocery_buy_rsp
  28916. * @static
  28917. * @param {game.grocery_buy_rsp} message grocery_buy_rsp
  28918. * @param {$protobuf.IConversionOptions} [options] Conversion options
  28919. * @returns {Object.<string,*>} Plain object
  28920. */
  28921. grocery_buy_rsp.toObject = function toObject(message, options) {
  28922. if (!options)
  28923. options = {};
  28924. let object = {};
  28925. if (options.defaults) {
  28926. if ($util.Long) {
  28927. let long = new $util.Long(0, 0, false);
  28928. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  28929. } else
  28930. object.errno = options.longs === String ? "0" : 0;
  28931. object.data = null;
  28932. }
  28933. if (message.errno != null && message.hasOwnProperty("errno"))
  28934. if (typeof message.errno === "number")
  28935. object.errno = options.longs === String ? String(message.errno) : message.errno;
  28936. else
  28937. 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;
  28938. if (message.data != null && message.hasOwnProperty("data"))
  28939. object.data = $root.game.grocery_info.toObject(message.data, options);
  28940. return object;
  28941. };
  28942. /**
  28943. * Converts this grocery_buy_rsp to JSON.
  28944. * @function toJSON
  28945. * @memberof game.grocery_buy_rsp
  28946. * @instance
  28947. * @returns {Object.<string,*>} JSON object
  28948. */
  28949. grocery_buy_rsp.prototype.toJSON = function toJSON() {
  28950. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  28951. };
  28952. return grocery_buy_rsp;
  28953. })();
  28954. game.altar_data = (function() {
  28955. /**
  28956. * Properties of an altar_data.
  28957. * @memberof game
  28958. * @interface Ialtar_data
  28959. */
  28960. /**
  28961. * Constructs a new altar_data.
  28962. * @memberof game
  28963. * @classdesc Represents an altar_data.
  28964. * @implements Ialtar_data
  28965. * @constructor
  28966. * @param {game.Ialtar_data=} [properties] Properties to set
  28967. */
  28968. function altar_data(properties) {
  28969. if (properties)
  28970. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  28971. if (properties[keys[i]] != null)
  28972. this[keys[i]] = properties[keys[i]];
  28973. }
  28974. /**
  28975. * Creates a new altar_data instance using the specified properties.
  28976. * @function create
  28977. * @memberof game.altar_data
  28978. * @static
  28979. * @param {game.Ialtar_data=} [properties] Properties to set
  28980. * @returns {game.altar_data} altar_data instance
  28981. */
  28982. altar_data.create = function create(properties) {
  28983. return new altar_data(properties);
  28984. };
  28985. /**
  28986. * Encodes the specified altar_data message. Does not implicitly {@link game.altar_data.verify|verify} messages.
  28987. * @function encode
  28988. * @memberof game.altar_data
  28989. * @static
  28990. * @param {game.Ialtar_data} message altar_data message or plain object to encode
  28991. * @param {$protobuf.Writer} [writer] Writer to encode to
  28992. * @returns {$protobuf.Writer} Writer
  28993. */
  28994. altar_data.encode = function encode(message, writer) {
  28995. if (!writer)
  28996. writer = $Writer.create();
  28997. return writer;
  28998. };
  28999. /**
  29000. * Encodes the specified altar_data message, length delimited. Does not implicitly {@link game.altar_data.verify|verify} messages.
  29001. * @function encodeDelimited
  29002. * @memberof game.altar_data
  29003. * @static
  29004. * @param {game.Ialtar_data} message altar_data message or plain object to encode
  29005. * @param {$protobuf.Writer} [writer] Writer to encode to
  29006. * @returns {$protobuf.Writer} Writer
  29007. */
  29008. altar_data.encodeDelimited = function encodeDelimited(message, writer) {
  29009. return this.encode(message, writer).ldelim();
  29010. };
  29011. /**
  29012. * Decodes an altar_data message from the specified reader or buffer.
  29013. * @function decode
  29014. * @memberof game.altar_data
  29015. * @static
  29016. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  29017. * @param {number} [length] Message length if known beforehand
  29018. * @returns {game.altar_data} altar_data
  29019. * @throws {Error} If the payload is not a reader or valid buffer
  29020. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  29021. */
  29022. altar_data.decode = function decode(reader, length) {
  29023. if (!(reader instanceof $Reader))
  29024. reader = $Reader.create(reader);
  29025. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.altar_data();
  29026. while (reader.pos < end) {
  29027. let tag = reader.uint32();
  29028. switch (tag >>> 3) {
  29029. default:
  29030. reader.skipType(tag & 7);
  29031. break;
  29032. }
  29033. }
  29034. return message;
  29035. };
  29036. /**
  29037. * Decodes an altar_data message from the specified reader or buffer, length delimited.
  29038. * @function decodeDelimited
  29039. * @memberof game.altar_data
  29040. * @static
  29041. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  29042. * @returns {game.altar_data} altar_data
  29043. * @throws {Error} If the payload is not a reader or valid buffer
  29044. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  29045. */
  29046. altar_data.decodeDelimited = function decodeDelimited(reader) {
  29047. if (!(reader instanceof $Reader))
  29048. reader = new $Reader(reader);
  29049. return this.decode(reader, reader.uint32());
  29050. };
  29051. /**
  29052. * Verifies an altar_data message.
  29053. * @function verify
  29054. * @memberof game.altar_data
  29055. * @static
  29056. * @param {Object.<string,*>} message Plain object to verify
  29057. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  29058. */
  29059. altar_data.verify = function verify(message) {
  29060. if (typeof message !== "object" || message === null)
  29061. return "object expected";
  29062. return null;
  29063. };
  29064. /**
  29065. * Creates an altar_data message from a plain object. Also converts values to their respective internal types.
  29066. * @function fromObject
  29067. * @memberof game.altar_data
  29068. * @static
  29069. * @param {Object.<string,*>} object Plain object
  29070. * @returns {game.altar_data} altar_data
  29071. */
  29072. altar_data.fromObject = function fromObject(object) {
  29073. if (object instanceof $root.game.altar_data)
  29074. return object;
  29075. return new $root.game.altar_data();
  29076. };
  29077. /**
  29078. * Creates a plain object from an altar_data message. Also converts values to other types if specified.
  29079. * @function toObject
  29080. * @memberof game.altar_data
  29081. * @static
  29082. * @param {game.altar_data} message altar_data
  29083. * @param {$protobuf.IConversionOptions} [options] Conversion options
  29084. * @returns {Object.<string,*>} Plain object
  29085. */
  29086. altar_data.toObject = function toObject() {
  29087. return {};
  29088. };
  29089. /**
  29090. * Converts this altar_data to JSON.
  29091. * @function toJSON
  29092. * @memberof game.altar_data
  29093. * @instance
  29094. * @returns {Object.<string,*>} JSON object
  29095. */
  29096. altar_data.prototype.toJSON = function toJSON() {
  29097. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  29098. };
  29099. return altar_data;
  29100. })();
  29101. game.altar_data_rsp = (function() {
  29102. /**
  29103. * Properties of an altar_data_rsp.
  29104. * @memberof game
  29105. * @interface Ialtar_data_rsp
  29106. * @property {number|Long|null} [errno] altar_data_rsp errno
  29107. * @property {Array.<string>|null} [baseList] altar_data_rsp baseList
  29108. * @property {Array.<game.Ialtar_info>|null} [list] altar_data_rsp list
  29109. * @property {number|Long|null} [buyNum] altar_data_rsp buyNum
  29110. * @property {number|Long|null} [equipFree] altar_data_rsp equipFree
  29111. * @property {number|Long|null} [heroFree] altar_data_rsp heroFree
  29112. */
  29113. /**
  29114. * Constructs a new altar_data_rsp.
  29115. * @memberof game
  29116. * @classdesc Represents an altar_data_rsp.
  29117. * @implements Ialtar_data_rsp
  29118. * @constructor
  29119. * @param {game.Ialtar_data_rsp=} [properties] Properties to set
  29120. */
  29121. function altar_data_rsp(properties) {
  29122. this.baseList = [];
  29123. this.list = [];
  29124. if (properties)
  29125. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  29126. if (properties[keys[i]] != null)
  29127. this[keys[i]] = properties[keys[i]];
  29128. }
  29129. /**
  29130. * altar_data_rsp errno.
  29131. * @member {number|Long} errno
  29132. * @memberof game.altar_data_rsp
  29133. * @instance
  29134. */
  29135. altar_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  29136. /**
  29137. * altar_data_rsp baseList.
  29138. * @member {Array.<string>} baseList
  29139. * @memberof game.altar_data_rsp
  29140. * @instance
  29141. */
  29142. altar_data_rsp.prototype.baseList = $util.emptyArray;
  29143. /**
  29144. * altar_data_rsp list.
  29145. * @member {Array.<game.Ialtar_info>} list
  29146. * @memberof game.altar_data_rsp
  29147. * @instance
  29148. */
  29149. altar_data_rsp.prototype.list = $util.emptyArray;
  29150. /**
  29151. * altar_data_rsp buyNum.
  29152. * @member {number|Long} buyNum
  29153. * @memberof game.altar_data_rsp
  29154. * @instance
  29155. */
  29156. altar_data_rsp.prototype.buyNum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  29157. /**
  29158. * altar_data_rsp equipFree.
  29159. * @member {number|Long} equipFree
  29160. * @memberof game.altar_data_rsp
  29161. * @instance
  29162. */
  29163. altar_data_rsp.prototype.equipFree = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  29164. /**
  29165. * altar_data_rsp heroFree.
  29166. * @member {number|Long} heroFree
  29167. * @memberof game.altar_data_rsp
  29168. * @instance
  29169. */
  29170. altar_data_rsp.prototype.heroFree = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  29171. /**
  29172. * Creates a new altar_data_rsp instance using the specified properties.
  29173. * @function create
  29174. * @memberof game.altar_data_rsp
  29175. * @static
  29176. * @param {game.Ialtar_data_rsp=} [properties] Properties to set
  29177. * @returns {game.altar_data_rsp} altar_data_rsp instance
  29178. */
  29179. altar_data_rsp.create = function create(properties) {
  29180. return new altar_data_rsp(properties);
  29181. };
  29182. /**
  29183. * Encodes the specified altar_data_rsp message. Does not implicitly {@link game.altar_data_rsp.verify|verify} messages.
  29184. * @function encode
  29185. * @memberof game.altar_data_rsp
  29186. * @static
  29187. * @param {game.Ialtar_data_rsp} message altar_data_rsp message or plain object to encode
  29188. * @param {$protobuf.Writer} [writer] Writer to encode to
  29189. * @returns {$protobuf.Writer} Writer
  29190. */
  29191. altar_data_rsp.encode = function encode(message, writer) {
  29192. if (!writer)
  29193. writer = $Writer.create();
  29194. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  29195. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  29196. if (message.baseList != null && message.baseList.length)
  29197. for (let i = 0; i < message.baseList.length; ++i)
  29198. writer.uint32(/* id 2, wireType 2 =*/18).string(message.baseList[i]);
  29199. if (message.list != null && message.list.length)
  29200. for (let i = 0; i < message.list.length; ++i)
  29201. $root.game.altar_info.encode(message.list[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
  29202. if (message.buyNum != null && Object.hasOwnProperty.call(message, "buyNum"))
  29203. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.buyNum);
  29204. if (message.equipFree != null && Object.hasOwnProperty.call(message, "equipFree"))
  29205. writer.uint32(/* id 5, wireType 0 =*/40).int64(message.equipFree);
  29206. if (message.heroFree != null && Object.hasOwnProperty.call(message, "heroFree"))
  29207. writer.uint32(/* id 6, wireType 0 =*/48).int64(message.heroFree);
  29208. return writer;
  29209. };
  29210. /**
  29211. * Encodes the specified altar_data_rsp message, length delimited. Does not implicitly {@link game.altar_data_rsp.verify|verify} messages.
  29212. * @function encodeDelimited
  29213. * @memberof game.altar_data_rsp
  29214. * @static
  29215. * @param {game.Ialtar_data_rsp} message altar_data_rsp message or plain object to encode
  29216. * @param {$protobuf.Writer} [writer] Writer to encode to
  29217. * @returns {$protobuf.Writer} Writer
  29218. */
  29219. altar_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  29220. return this.encode(message, writer).ldelim();
  29221. };
  29222. /**
  29223. * Decodes an altar_data_rsp message from the specified reader or buffer.
  29224. * @function decode
  29225. * @memberof game.altar_data_rsp
  29226. * @static
  29227. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  29228. * @param {number} [length] Message length if known beforehand
  29229. * @returns {game.altar_data_rsp} altar_data_rsp
  29230. * @throws {Error} If the payload is not a reader or valid buffer
  29231. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  29232. */
  29233. altar_data_rsp.decode = function decode(reader, length) {
  29234. if (!(reader instanceof $Reader))
  29235. reader = $Reader.create(reader);
  29236. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.altar_data_rsp();
  29237. while (reader.pos < end) {
  29238. let tag = reader.uint32();
  29239. switch (tag >>> 3) {
  29240. case 1:
  29241. message.errno = reader.int64();
  29242. break;
  29243. case 2:
  29244. if (!(message.baseList && message.baseList.length))
  29245. message.baseList = [];
  29246. message.baseList.push(reader.string());
  29247. break;
  29248. case 3:
  29249. if (!(message.list && message.list.length))
  29250. message.list = [];
  29251. message.list.push($root.game.altar_info.decode(reader, reader.uint32()));
  29252. break;
  29253. case 4:
  29254. message.buyNum = reader.int64();
  29255. break;
  29256. case 5:
  29257. message.equipFree = reader.int64();
  29258. break;
  29259. case 6:
  29260. message.heroFree = reader.int64();
  29261. break;
  29262. default:
  29263. reader.skipType(tag & 7);
  29264. break;
  29265. }
  29266. }
  29267. return message;
  29268. };
  29269. /**
  29270. * Decodes an altar_data_rsp message from the specified reader or buffer, length delimited.
  29271. * @function decodeDelimited
  29272. * @memberof game.altar_data_rsp
  29273. * @static
  29274. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  29275. * @returns {game.altar_data_rsp} altar_data_rsp
  29276. * @throws {Error} If the payload is not a reader or valid buffer
  29277. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  29278. */
  29279. altar_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  29280. if (!(reader instanceof $Reader))
  29281. reader = new $Reader(reader);
  29282. return this.decode(reader, reader.uint32());
  29283. };
  29284. /**
  29285. * Verifies an altar_data_rsp message.
  29286. * @function verify
  29287. * @memberof game.altar_data_rsp
  29288. * @static
  29289. * @param {Object.<string,*>} message Plain object to verify
  29290. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  29291. */
  29292. altar_data_rsp.verify = function verify(message) {
  29293. if (typeof message !== "object" || message === null)
  29294. return "object expected";
  29295. if (message.errno != null && message.hasOwnProperty("errno"))
  29296. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  29297. return "errno: integer|Long expected";
  29298. if (message.baseList != null && message.hasOwnProperty("baseList")) {
  29299. if (!Array.isArray(message.baseList))
  29300. return "baseList: array expected";
  29301. for (let i = 0; i < message.baseList.length; ++i)
  29302. if (!$util.isString(message.baseList[i]))
  29303. return "baseList: string[] expected";
  29304. }
  29305. if (message.list != null && message.hasOwnProperty("list")) {
  29306. if (!Array.isArray(message.list))
  29307. return "list: array expected";
  29308. for (let i = 0; i < message.list.length; ++i) {
  29309. let error = $root.game.altar_info.verify(message.list[i]);
  29310. if (error)
  29311. return "list." + error;
  29312. }
  29313. }
  29314. if (message.buyNum != null && message.hasOwnProperty("buyNum"))
  29315. if (!$util.isInteger(message.buyNum) && !(message.buyNum && $util.isInteger(message.buyNum.low) && $util.isInteger(message.buyNum.high)))
  29316. return "buyNum: integer|Long expected";
  29317. if (message.equipFree != null && message.hasOwnProperty("equipFree"))
  29318. if (!$util.isInteger(message.equipFree) && !(message.equipFree && $util.isInteger(message.equipFree.low) && $util.isInteger(message.equipFree.high)))
  29319. return "equipFree: integer|Long expected";
  29320. if (message.heroFree != null && message.hasOwnProperty("heroFree"))
  29321. if (!$util.isInteger(message.heroFree) && !(message.heroFree && $util.isInteger(message.heroFree.low) && $util.isInteger(message.heroFree.high)))
  29322. return "heroFree: integer|Long expected";
  29323. return null;
  29324. };
  29325. /**
  29326. * Creates an altar_data_rsp message from a plain object. Also converts values to their respective internal types.
  29327. * @function fromObject
  29328. * @memberof game.altar_data_rsp
  29329. * @static
  29330. * @param {Object.<string,*>} object Plain object
  29331. * @returns {game.altar_data_rsp} altar_data_rsp
  29332. */
  29333. altar_data_rsp.fromObject = function fromObject(object) {
  29334. if (object instanceof $root.game.altar_data_rsp)
  29335. return object;
  29336. let message = new $root.game.altar_data_rsp();
  29337. if (object.errno != null)
  29338. if ($util.Long)
  29339. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  29340. else if (typeof object.errno === "string")
  29341. message.errno = parseInt(object.errno, 10);
  29342. else if (typeof object.errno === "number")
  29343. message.errno = object.errno;
  29344. else if (typeof object.errno === "object")
  29345. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  29346. if (object.baseList) {
  29347. if (!Array.isArray(object.baseList))
  29348. throw TypeError(".game.altar_data_rsp.baseList: array expected");
  29349. message.baseList = [];
  29350. for (let i = 0; i < object.baseList.length; ++i)
  29351. message.baseList[i] = String(object.baseList[i]);
  29352. }
  29353. if (object.list) {
  29354. if (!Array.isArray(object.list))
  29355. throw TypeError(".game.altar_data_rsp.list: array expected");
  29356. message.list = [];
  29357. for (let i = 0; i < object.list.length; ++i) {
  29358. if (typeof object.list[i] !== "object")
  29359. throw TypeError(".game.altar_data_rsp.list: object expected");
  29360. message.list[i] = $root.game.altar_info.fromObject(object.list[i]);
  29361. }
  29362. }
  29363. if (object.buyNum != null)
  29364. if ($util.Long)
  29365. (message.buyNum = $util.Long.fromValue(object.buyNum)).unsigned = false;
  29366. else if (typeof object.buyNum === "string")
  29367. message.buyNum = parseInt(object.buyNum, 10);
  29368. else if (typeof object.buyNum === "number")
  29369. message.buyNum = object.buyNum;
  29370. else if (typeof object.buyNum === "object")
  29371. message.buyNum = new $util.LongBits(object.buyNum.low >>> 0, object.buyNum.high >>> 0).toNumber();
  29372. if (object.equipFree != null)
  29373. if ($util.Long)
  29374. (message.equipFree = $util.Long.fromValue(object.equipFree)).unsigned = false;
  29375. else if (typeof object.equipFree === "string")
  29376. message.equipFree = parseInt(object.equipFree, 10);
  29377. else if (typeof object.equipFree === "number")
  29378. message.equipFree = object.equipFree;
  29379. else if (typeof object.equipFree === "object")
  29380. message.equipFree = new $util.LongBits(object.equipFree.low >>> 0, object.equipFree.high >>> 0).toNumber();
  29381. if (object.heroFree != null)
  29382. if ($util.Long)
  29383. (message.heroFree = $util.Long.fromValue(object.heroFree)).unsigned = false;
  29384. else if (typeof object.heroFree === "string")
  29385. message.heroFree = parseInt(object.heroFree, 10);
  29386. else if (typeof object.heroFree === "number")
  29387. message.heroFree = object.heroFree;
  29388. else if (typeof object.heroFree === "object")
  29389. message.heroFree = new $util.LongBits(object.heroFree.low >>> 0, object.heroFree.high >>> 0).toNumber();
  29390. return message;
  29391. };
  29392. /**
  29393. * Creates a plain object from an altar_data_rsp message. Also converts values to other types if specified.
  29394. * @function toObject
  29395. * @memberof game.altar_data_rsp
  29396. * @static
  29397. * @param {game.altar_data_rsp} message altar_data_rsp
  29398. * @param {$protobuf.IConversionOptions} [options] Conversion options
  29399. * @returns {Object.<string,*>} Plain object
  29400. */
  29401. altar_data_rsp.toObject = function toObject(message, options) {
  29402. if (!options)
  29403. options = {};
  29404. let object = {};
  29405. if (options.arrays || options.defaults) {
  29406. object.baseList = [];
  29407. object.list = [];
  29408. }
  29409. if (options.defaults) {
  29410. if ($util.Long) {
  29411. let long = new $util.Long(0, 0, false);
  29412. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  29413. } else
  29414. object.errno = options.longs === String ? "0" : 0;
  29415. if ($util.Long) {
  29416. let long = new $util.Long(0, 0, false);
  29417. object.buyNum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  29418. } else
  29419. object.buyNum = options.longs === String ? "0" : 0;
  29420. if ($util.Long) {
  29421. let long = new $util.Long(0, 0, false);
  29422. object.equipFree = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  29423. } else
  29424. object.equipFree = options.longs === String ? "0" : 0;
  29425. if ($util.Long) {
  29426. let long = new $util.Long(0, 0, false);
  29427. object.heroFree = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  29428. } else
  29429. object.heroFree = options.longs === String ? "0" : 0;
  29430. }
  29431. if (message.errno != null && message.hasOwnProperty("errno"))
  29432. if (typeof message.errno === "number")
  29433. object.errno = options.longs === String ? String(message.errno) : message.errno;
  29434. else
  29435. 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;
  29436. if (message.baseList && message.baseList.length) {
  29437. object.baseList = [];
  29438. for (let j = 0; j < message.baseList.length; ++j)
  29439. object.baseList[j] = message.baseList[j];
  29440. }
  29441. if (message.list && message.list.length) {
  29442. object.list = [];
  29443. for (let j = 0; j < message.list.length; ++j)
  29444. object.list[j] = $root.game.altar_info.toObject(message.list[j], options);
  29445. }
  29446. if (message.buyNum != null && message.hasOwnProperty("buyNum"))
  29447. if (typeof message.buyNum === "number")
  29448. object.buyNum = options.longs === String ? String(message.buyNum) : message.buyNum;
  29449. else
  29450. 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;
  29451. if (message.equipFree != null && message.hasOwnProperty("equipFree"))
  29452. if (typeof message.equipFree === "number")
  29453. object.equipFree = options.longs === String ? String(message.equipFree) : message.equipFree;
  29454. else
  29455. 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;
  29456. if (message.heroFree != null && message.hasOwnProperty("heroFree"))
  29457. if (typeof message.heroFree === "number")
  29458. object.heroFree = options.longs === String ? String(message.heroFree) : message.heroFree;
  29459. else
  29460. 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;
  29461. return object;
  29462. };
  29463. /**
  29464. * Converts this altar_data_rsp to JSON.
  29465. * @function toJSON
  29466. * @memberof game.altar_data_rsp
  29467. * @instance
  29468. * @returns {Object.<string,*>} JSON object
  29469. */
  29470. altar_data_rsp.prototype.toJSON = function toJSON() {
  29471. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  29472. };
  29473. return altar_data_rsp;
  29474. })();
  29475. game.altar_battle = (function() {
  29476. /**
  29477. * Properties of an altar_battle.
  29478. * @memberof game
  29479. * @interface Ialtar_battle
  29480. * @property {number|Long|null} [pos] altar_battle pos
  29481. * @property {string|null} [sid] altar_battle sid
  29482. */
  29483. /**
  29484. * Constructs a new altar_battle.
  29485. * @memberof game
  29486. * @classdesc Represents an altar_battle.
  29487. * @implements Ialtar_battle
  29488. * @constructor
  29489. * @param {game.Ialtar_battle=} [properties] Properties to set
  29490. */
  29491. function altar_battle(properties) {
  29492. if (properties)
  29493. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  29494. if (properties[keys[i]] != null)
  29495. this[keys[i]] = properties[keys[i]];
  29496. }
  29497. /**
  29498. * altar_battle pos.
  29499. * @member {number|Long} pos
  29500. * @memberof game.altar_battle
  29501. * @instance
  29502. */
  29503. altar_battle.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  29504. /**
  29505. * altar_battle sid.
  29506. * @member {string} sid
  29507. * @memberof game.altar_battle
  29508. * @instance
  29509. */
  29510. altar_battle.prototype.sid = "";
  29511. /**
  29512. * Creates a new altar_battle instance using the specified properties.
  29513. * @function create
  29514. * @memberof game.altar_battle
  29515. * @static
  29516. * @param {game.Ialtar_battle=} [properties] Properties to set
  29517. * @returns {game.altar_battle} altar_battle instance
  29518. */
  29519. altar_battle.create = function create(properties) {
  29520. return new altar_battle(properties);
  29521. };
  29522. /**
  29523. * Encodes the specified altar_battle message. Does not implicitly {@link game.altar_battle.verify|verify} messages.
  29524. * @function encode
  29525. * @memberof game.altar_battle
  29526. * @static
  29527. * @param {game.Ialtar_battle} message altar_battle message or plain object to encode
  29528. * @param {$protobuf.Writer} [writer] Writer to encode to
  29529. * @returns {$protobuf.Writer} Writer
  29530. */
  29531. altar_battle.encode = function encode(message, writer) {
  29532. if (!writer)
  29533. writer = $Writer.create();
  29534. if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
  29535. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.pos);
  29536. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  29537. writer.uint32(/* id 2, wireType 2 =*/18).string(message.sid);
  29538. return writer;
  29539. };
  29540. /**
  29541. * Encodes the specified altar_battle message, length delimited. Does not implicitly {@link game.altar_battle.verify|verify} messages.
  29542. * @function encodeDelimited
  29543. * @memberof game.altar_battle
  29544. * @static
  29545. * @param {game.Ialtar_battle} message altar_battle message or plain object to encode
  29546. * @param {$protobuf.Writer} [writer] Writer to encode to
  29547. * @returns {$protobuf.Writer} Writer
  29548. */
  29549. altar_battle.encodeDelimited = function encodeDelimited(message, writer) {
  29550. return this.encode(message, writer).ldelim();
  29551. };
  29552. /**
  29553. * Decodes an altar_battle message from the specified reader or buffer.
  29554. * @function decode
  29555. * @memberof game.altar_battle
  29556. * @static
  29557. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  29558. * @param {number} [length] Message length if known beforehand
  29559. * @returns {game.altar_battle} altar_battle
  29560. * @throws {Error} If the payload is not a reader or valid buffer
  29561. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  29562. */
  29563. altar_battle.decode = function decode(reader, length) {
  29564. if (!(reader instanceof $Reader))
  29565. reader = $Reader.create(reader);
  29566. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.altar_battle();
  29567. while (reader.pos < end) {
  29568. let tag = reader.uint32();
  29569. switch (tag >>> 3) {
  29570. case 1:
  29571. message.pos = reader.int64();
  29572. break;
  29573. case 2:
  29574. message.sid = reader.string();
  29575. break;
  29576. default:
  29577. reader.skipType(tag & 7);
  29578. break;
  29579. }
  29580. }
  29581. return message;
  29582. };
  29583. /**
  29584. * Decodes an altar_battle message from the specified reader or buffer, length delimited.
  29585. * @function decodeDelimited
  29586. * @memberof game.altar_battle
  29587. * @static
  29588. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  29589. * @returns {game.altar_battle} altar_battle
  29590. * @throws {Error} If the payload is not a reader or valid buffer
  29591. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  29592. */
  29593. altar_battle.decodeDelimited = function decodeDelimited(reader) {
  29594. if (!(reader instanceof $Reader))
  29595. reader = new $Reader(reader);
  29596. return this.decode(reader, reader.uint32());
  29597. };
  29598. /**
  29599. * Verifies an altar_battle message.
  29600. * @function verify
  29601. * @memberof game.altar_battle
  29602. * @static
  29603. * @param {Object.<string,*>} message Plain object to verify
  29604. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  29605. */
  29606. altar_battle.verify = function verify(message) {
  29607. if (typeof message !== "object" || message === null)
  29608. return "object expected";
  29609. if (message.pos != null && message.hasOwnProperty("pos"))
  29610. if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
  29611. return "pos: integer|Long expected";
  29612. if (message.sid != null && message.hasOwnProperty("sid"))
  29613. if (!$util.isString(message.sid))
  29614. return "sid: string expected";
  29615. return null;
  29616. };
  29617. /**
  29618. * Creates an altar_battle message from a plain object. Also converts values to their respective internal types.
  29619. * @function fromObject
  29620. * @memberof game.altar_battle
  29621. * @static
  29622. * @param {Object.<string,*>} object Plain object
  29623. * @returns {game.altar_battle} altar_battle
  29624. */
  29625. altar_battle.fromObject = function fromObject(object) {
  29626. if (object instanceof $root.game.altar_battle)
  29627. return object;
  29628. let message = new $root.game.altar_battle();
  29629. if (object.pos != null)
  29630. if ($util.Long)
  29631. (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
  29632. else if (typeof object.pos === "string")
  29633. message.pos = parseInt(object.pos, 10);
  29634. else if (typeof object.pos === "number")
  29635. message.pos = object.pos;
  29636. else if (typeof object.pos === "object")
  29637. message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
  29638. if (object.sid != null)
  29639. message.sid = String(object.sid);
  29640. return message;
  29641. };
  29642. /**
  29643. * Creates a plain object from an altar_battle message. Also converts values to other types if specified.
  29644. * @function toObject
  29645. * @memberof game.altar_battle
  29646. * @static
  29647. * @param {game.altar_battle} message altar_battle
  29648. * @param {$protobuf.IConversionOptions} [options] Conversion options
  29649. * @returns {Object.<string,*>} Plain object
  29650. */
  29651. altar_battle.toObject = function toObject(message, options) {
  29652. if (!options)
  29653. options = {};
  29654. let object = {};
  29655. if (options.defaults) {
  29656. if ($util.Long) {
  29657. let long = new $util.Long(0, 0, false);
  29658. object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  29659. } else
  29660. object.pos = options.longs === String ? "0" : 0;
  29661. object.sid = "";
  29662. }
  29663. if (message.pos != null && message.hasOwnProperty("pos"))
  29664. if (typeof message.pos === "number")
  29665. object.pos = options.longs === String ? String(message.pos) : message.pos;
  29666. else
  29667. 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;
  29668. if (message.sid != null && message.hasOwnProperty("sid"))
  29669. object.sid = message.sid;
  29670. return object;
  29671. };
  29672. /**
  29673. * Converts this altar_battle to JSON.
  29674. * @function toJSON
  29675. * @memberof game.altar_battle
  29676. * @instance
  29677. * @returns {Object.<string,*>} JSON object
  29678. */
  29679. altar_battle.prototype.toJSON = function toJSON() {
  29680. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  29681. };
  29682. return altar_battle;
  29683. })();
  29684. game.altar_battle_rsp = (function() {
  29685. /**
  29686. * Properties of an altar_battle_rsp.
  29687. * @memberof game
  29688. * @interface Ialtar_battle_rsp
  29689. * @property {number|Long|null} [errno] altar_battle_rsp errno
  29690. * @property {number|Long|null} [pos] altar_battle_rsp pos
  29691. * @property {game.Ialtar_info|null} [data] altar_battle_rsp data
  29692. */
  29693. /**
  29694. * Constructs a new altar_battle_rsp.
  29695. * @memberof game
  29696. * @classdesc Represents an altar_battle_rsp.
  29697. * @implements Ialtar_battle_rsp
  29698. * @constructor
  29699. * @param {game.Ialtar_battle_rsp=} [properties] Properties to set
  29700. */
  29701. function altar_battle_rsp(properties) {
  29702. if (properties)
  29703. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  29704. if (properties[keys[i]] != null)
  29705. this[keys[i]] = properties[keys[i]];
  29706. }
  29707. /**
  29708. * altar_battle_rsp errno.
  29709. * @member {number|Long} errno
  29710. * @memberof game.altar_battle_rsp
  29711. * @instance
  29712. */
  29713. altar_battle_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  29714. /**
  29715. * altar_battle_rsp pos.
  29716. * @member {number|Long} pos
  29717. * @memberof game.altar_battle_rsp
  29718. * @instance
  29719. */
  29720. altar_battle_rsp.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  29721. /**
  29722. * altar_battle_rsp data.
  29723. * @member {game.Ialtar_info|null|undefined} data
  29724. * @memberof game.altar_battle_rsp
  29725. * @instance
  29726. */
  29727. altar_battle_rsp.prototype.data = null;
  29728. /**
  29729. * Creates a new altar_battle_rsp instance using the specified properties.
  29730. * @function create
  29731. * @memberof game.altar_battle_rsp
  29732. * @static
  29733. * @param {game.Ialtar_battle_rsp=} [properties] Properties to set
  29734. * @returns {game.altar_battle_rsp} altar_battle_rsp instance
  29735. */
  29736. altar_battle_rsp.create = function create(properties) {
  29737. return new altar_battle_rsp(properties);
  29738. };
  29739. /**
  29740. * Encodes the specified altar_battle_rsp message. Does not implicitly {@link game.altar_battle_rsp.verify|verify} messages.
  29741. * @function encode
  29742. * @memberof game.altar_battle_rsp
  29743. * @static
  29744. * @param {game.Ialtar_battle_rsp} message altar_battle_rsp message or plain object to encode
  29745. * @param {$protobuf.Writer} [writer] Writer to encode to
  29746. * @returns {$protobuf.Writer} Writer
  29747. */
  29748. altar_battle_rsp.encode = function encode(message, writer) {
  29749. if (!writer)
  29750. writer = $Writer.create();
  29751. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  29752. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  29753. if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
  29754. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.pos);
  29755. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  29756. $root.game.altar_info.encode(message.data, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
  29757. return writer;
  29758. };
  29759. /**
  29760. * Encodes the specified altar_battle_rsp message, length delimited. Does not implicitly {@link game.altar_battle_rsp.verify|verify} messages.
  29761. * @function encodeDelimited
  29762. * @memberof game.altar_battle_rsp
  29763. * @static
  29764. * @param {game.Ialtar_battle_rsp} message altar_battle_rsp message or plain object to encode
  29765. * @param {$protobuf.Writer} [writer] Writer to encode to
  29766. * @returns {$protobuf.Writer} Writer
  29767. */
  29768. altar_battle_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  29769. return this.encode(message, writer).ldelim();
  29770. };
  29771. /**
  29772. * Decodes an altar_battle_rsp message from the specified reader or buffer.
  29773. * @function decode
  29774. * @memberof game.altar_battle_rsp
  29775. * @static
  29776. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  29777. * @param {number} [length] Message length if known beforehand
  29778. * @returns {game.altar_battle_rsp} altar_battle_rsp
  29779. * @throws {Error} If the payload is not a reader or valid buffer
  29780. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  29781. */
  29782. altar_battle_rsp.decode = function decode(reader, length) {
  29783. if (!(reader instanceof $Reader))
  29784. reader = $Reader.create(reader);
  29785. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.altar_battle_rsp();
  29786. while (reader.pos < end) {
  29787. let tag = reader.uint32();
  29788. switch (tag >>> 3) {
  29789. case 1:
  29790. message.errno = reader.int64();
  29791. break;
  29792. case 2:
  29793. message.pos = reader.int64();
  29794. break;
  29795. case 3:
  29796. message.data = $root.game.altar_info.decode(reader, reader.uint32());
  29797. break;
  29798. default:
  29799. reader.skipType(tag & 7);
  29800. break;
  29801. }
  29802. }
  29803. return message;
  29804. };
  29805. /**
  29806. * Decodes an altar_battle_rsp message from the specified reader or buffer, length delimited.
  29807. * @function decodeDelimited
  29808. * @memberof game.altar_battle_rsp
  29809. * @static
  29810. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  29811. * @returns {game.altar_battle_rsp} altar_battle_rsp
  29812. * @throws {Error} If the payload is not a reader or valid buffer
  29813. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  29814. */
  29815. altar_battle_rsp.decodeDelimited = function decodeDelimited(reader) {
  29816. if (!(reader instanceof $Reader))
  29817. reader = new $Reader(reader);
  29818. return this.decode(reader, reader.uint32());
  29819. };
  29820. /**
  29821. * Verifies an altar_battle_rsp message.
  29822. * @function verify
  29823. * @memberof game.altar_battle_rsp
  29824. * @static
  29825. * @param {Object.<string,*>} message Plain object to verify
  29826. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  29827. */
  29828. altar_battle_rsp.verify = function verify(message) {
  29829. if (typeof message !== "object" || message === null)
  29830. return "object expected";
  29831. if (message.errno != null && message.hasOwnProperty("errno"))
  29832. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  29833. return "errno: integer|Long expected";
  29834. if (message.pos != null && message.hasOwnProperty("pos"))
  29835. if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
  29836. return "pos: integer|Long expected";
  29837. if (message.data != null && message.hasOwnProperty("data")) {
  29838. let error = $root.game.altar_info.verify(message.data);
  29839. if (error)
  29840. return "data." + error;
  29841. }
  29842. return null;
  29843. };
  29844. /**
  29845. * Creates an altar_battle_rsp message from a plain object. Also converts values to their respective internal types.
  29846. * @function fromObject
  29847. * @memberof game.altar_battle_rsp
  29848. * @static
  29849. * @param {Object.<string,*>} object Plain object
  29850. * @returns {game.altar_battle_rsp} altar_battle_rsp
  29851. */
  29852. altar_battle_rsp.fromObject = function fromObject(object) {
  29853. if (object instanceof $root.game.altar_battle_rsp)
  29854. return object;
  29855. let message = new $root.game.altar_battle_rsp();
  29856. if (object.errno != null)
  29857. if ($util.Long)
  29858. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  29859. else if (typeof object.errno === "string")
  29860. message.errno = parseInt(object.errno, 10);
  29861. else if (typeof object.errno === "number")
  29862. message.errno = object.errno;
  29863. else if (typeof object.errno === "object")
  29864. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  29865. if (object.pos != null)
  29866. if ($util.Long)
  29867. (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
  29868. else if (typeof object.pos === "string")
  29869. message.pos = parseInt(object.pos, 10);
  29870. else if (typeof object.pos === "number")
  29871. message.pos = object.pos;
  29872. else if (typeof object.pos === "object")
  29873. message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
  29874. if (object.data != null) {
  29875. if (typeof object.data !== "object")
  29876. throw TypeError(".game.altar_battle_rsp.data: object expected");
  29877. message.data = $root.game.altar_info.fromObject(object.data);
  29878. }
  29879. return message;
  29880. };
  29881. /**
  29882. * Creates a plain object from an altar_battle_rsp message. Also converts values to other types if specified.
  29883. * @function toObject
  29884. * @memberof game.altar_battle_rsp
  29885. * @static
  29886. * @param {game.altar_battle_rsp} message altar_battle_rsp
  29887. * @param {$protobuf.IConversionOptions} [options] Conversion options
  29888. * @returns {Object.<string,*>} Plain object
  29889. */
  29890. altar_battle_rsp.toObject = function toObject(message, options) {
  29891. if (!options)
  29892. options = {};
  29893. let object = {};
  29894. if (options.defaults) {
  29895. if ($util.Long) {
  29896. let long = new $util.Long(0, 0, false);
  29897. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  29898. } else
  29899. object.errno = options.longs === String ? "0" : 0;
  29900. if ($util.Long) {
  29901. let long = new $util.Long(0, 0, false);
  29902. object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  29903. } else
  29904. object.pos = options.longs === String ? "0" : 0;
  29905. object.data = null;
  29906. }
  29907. if (message.errno != null && message.hasOwnProperty("errno"))
  29908. if (typeof message.errno === "number")
  29909. object.errno = options.longs === String ? String(message.errno) : message.errno;
  29910. else
  29911. 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;
  29912. if (message.pos != null && message.hasOwnProperty("pos"))
  29913. if (typeof message.pos === "number")
  29914. object.pos = options.longs === String ? String(message.pos) : message.pos;
  29915. else
  29916. 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;
  29917. if (message.data != null && message.hasOwnProperty("data"))
  29918. object.data = $root.game.altar_info.toObject(message.data, options);
  29919. return object;
  29920. };
  29921. /**
  29922. * Converts this altar_battle_rsp to JSON.
  29923. * @function toJSON
  29924. * @memberof game.altar_battle_rsp
  29925. * @instance
  29926. * @returns {Object.<string,*>} JSON object
  29927. */
  29928. altar_battle_rsp.prototype.toJSON = function toJSON() {
  29929. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  29930. };
  29931. return altar_battle_rsp;
  29932. })();
  29933. game.altar_exchange = (function() {
  29934. /**
  29935. * Properties of an altar_exchange.
  29936. * @memberof game
  29937. * @interface Ialtar_exchange
  29938. * @property {number|Long|null} [type] altar_exchange type
  29939. * @property {string|null} [sid] altar_exchange sid
  29940. */
  29941. /**
  29942. * Constructs a new altar_exchange.
  29943. * @memberof game
  29944. * @classdesc Represents an altar_exchange.
  29945. * @implements Ialtar_exchange
  29946. * @constructor
  29947. * @param {game.Ialtar_exchange=} [properties] Properties to set
  29948. */
  29949. function altar_exchange(properties) {
  29950. if (properties)
  29951. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  29952. if (properties[keys[i]] != null)
  29953. this[keys[i]] = properties[keys[i]];
  29954. }
  29955. /**
  29956. * altar_exchange type.
  29957. * @member {number|Long} type
  29958. * @memberof game.altar_exchange
  29959. * @instance
  29960. */
  29961. altar_exchange.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  29962. /**
  29963. * altar_exchange sid.
  29964. * @member {string} sid
  29965. * @memberof game.altar_exchange
  29966. * @instance
  29967. */
  29968. altar_exchange.prototype.sid = "";
  29969. /**
  29970. * Creates a new altar_exchange instance using the specified properties.
  29971. * @function create
  29972. * @memberof game.altar_exchange
  29973. * @static
  29974. * @param {game.Ialtar_exchange=} [properties] Properties to set
  29975. * @returns {game.altar_exchange} altar_exchange instance
  29976. */
  29977. altar_exchange.create = function create(properties) {
  29978. return new altar_exchange(properties);
  29979. };
  29980. /**
  29981. * Encodes the specified altar_exchange message. Does not implicitly {@link game.altar_exchange.verify|verify} messages.
  29982. * @function encode
  29983. * @memberof game.altar_exchange
  29984. * @static
  29985. * @param {game.Ialtar_exchange} message altar_exchange message or plain object to encode
  29986. * @param {$protobuf.Writer} [writer] Writer to encode to
  29987. * @returns {$protobuf.Writer} Writer
  29988. */
  29989. altar_exchange.encode = function encode(message, writer) {
  29990. if (!writer)
  29991. writer = $Writer.create();
  29992. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  29993. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
  29994. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  29995. writer.uint32(/* id 2, wireType 2 =*/18).string(message.sid);
  29996. return writer;
  29997. };
  29998. /**
  29999. * Encodes the specified altar_exchange message, length delimited. Does not implicitly {@link game.altar_exchange.verify|verify} messages.
  30000. * @function encodeDelimited
  30001. * @memberof game.altar_exchange
  30002. * @static
  30003. * @param {game.Ialtar_exchange} message altar_exchange message or plain object to encode
  30004. * @param {$protobuf.Writer} [writer] Writer to encode to
  30005. * @returns {$protobuf.Writer} Writer
  30006. */
  30007. altar_exchange.encodeDelimited = function encodeDelimited(message, writer) {
  30008. return this.encode(message, writer).ldelim();
  30009. };
  30010. /**
  30011. * Decodes an altar_exchange message from the specified reader or buffer.
  30012. * @function decode
  30013. * @memberof game.altar_exchange
  30014. * @static
  30015. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  30016. * @param {number} [length] Message length if known beforehand
  30017. * @returns {game.altar_exchange} altar_exchange
  30018. * @throws {Error} If the payload is not a reader or valid buffer
  30019. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  30020. */
  30021. altar_exchange.decode = function decode(reader, length) {
  30022. if (!(reader instanceof $Reader))
  30023. reader = $Reader.create(reader);
  30024. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.altar_exchange();
  30025. while (reader.pos < end) {
  30026. let tag = reader.uint32();
  30027. switch (tag >>> 3) {
  30028. case 1:
  30029. message.type = reader.int64();
  30030. break;
  30031. case 2:
  30032. message.sid = reader.string();
  30033. break;
  30034. default:
  30035. reader.skipType(tag & 7);
  30036. break;
  30037. }
  30038. }
  30039. return message;
  30040. };
  30041. /**
  30042. * Decodes an altar_exchange message from the specified reader or buffer, length delimited.
  30043. * @function decodeDelimited
  30044. * @memberof game.altar_exchange
  30045. * @static
  30046. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  30047. * @returns {game.altar_exchange} altar_exchange
  30048. * @throws {Error} If the payload is not a reader or valid buffer
  30049. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  30050. */
  30051. altar_exchange.decodeDelimited = function decodeDelimited(reader) {
  30052. if (!(reader instanceof $Reader))
  30053. reader = new $Reader(reader);
  30054. return this.decode(reader, reader.uint32());
  30055. };
  30056. /**
  30057. * Verifies an altar_exchange message.
  30058. * @function verify
  30059. * @memberof game.altar_exchange
  30060. * @static
  30061. * @param {Object.<string,*>} message Plain object to verify
  30062. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  30063. */
  30064. altar_exchange.verify = function verify(message) {
  30065. if (typeof message !== "object" || message === null)
  30066. return "object expected";
  30067. if (message.type != null && message.hasOwnProperty("type"))
  30068. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  30069. return "type: integer|Long expected";
  30070. if (message.sid != null && message.hasOwnProperty("sid"))
  30071. if (!$util.isString(message.sid))
  30072. return "sid: string expected";
  30073. return null;
  30074. };
  30075. /**
  30076. * Creates an altar_exchange message from a plain object. Also converts values to their respective internal types.
  30077. * @function fromObject
  30078. * @memberof game.altar_exchange
  30079. * @static
  30080. * @param {Object.<string,*>} object Plain object
  30081. * @returns {game.altar_exchange} altar_exchange
  30082. */
  30083. altar_exchange.fromObject = function fromObject(object) {
  30084. if (object instanceof $root.game.altar_exchange)
  30085. return object;
  30086. let message = new $root.game.altar_exchange();
  30087. if (object.type != null)
  30088. if ($util.Long)
  30089. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  30090. else if (typeof object.type === "string")
  30091. message.type = parseInt(object.type, 10);
  30092. else if (typeof object.type === "number")
  30093. message.type = object.type;
  30094. else if (typeof object.type === "object")
  30095. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  30096. if (object.sid != null)
  30097. message.sid = String(object.sid);
  30098. return message;
  30099. };
  30100. /**
  30101. * Creates a plain object from an altar_exchange message. Also converts values to other types if specified.
  30102. * @function toObject
  30103. * @memberof game.altar_exchange
  30104. * @static
  30105. * @param {game.altar_exchange} message altar_exchange
  30106. * @param {$protobuf.IConversionOptions} [options] Conversion options
  30107. * @returns {Object.<string,*>} Plain object
  30108. */
  30109. altar_exchange.toObject = function toObject(message, options) {
  30110. if (!options)
  30111. options = {};
  30112. let object = {};
  30113. if (options.defaults) {
  30114. if ($util.Long) {
  30115. let long = new $util.Long(0, 0, false);
  30116. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  30117. } else
  30118. object.type = options.longs === String ? "0" : 0;
  30119. object.sid = "";
  30120. }
  30121. if (message.type != null && message.hasOwnProperty("type"))
  30122. if (typeof message.type === "number")
  30123. object.type = options.longs === String ? String(message.type) : message.type;
  30124. else
  30125. 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;
  30126. if (message.sid != null && message.hasOwnProperty("sid"))
  30127. object.sid = message.sid;
  30128. return object;
  30129. };
  30130. /**
  30131. * Converts this altar_exchange to JSON.
  30132. * @function toJSON
  30133. * @memberof game.altar_exchange
  30134. * @instance
  30135. * @returns {Object.<string,*>} JSON object
  30136. */
  30137. altar_exchange.prototype.toJSON = function toJSON() {
  30138. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  30139. };
  30140. return altar_exchange;
  30141. })();
  30142. game.altar_exchange_rsp = (function() {
  30143. /**
  30144. * Properties of an altar_exchange_rsp.
  30145. * @memberof game
  30146. * @interface Ialtar_exchange_rsp
  30147. * @property {number|Long|null} [errno] altar_exchange_rsp errno
  30148. * @property {number|Long|null} [type] altar_exchange_rsp type
  30149. * @property {string|null} [sid] altar_exchange_rsp sid
  30150. * @property {number|Long|null} [id] altar_exchange_rsp id
  30151. */
  30152. /**
  30153. * Constructs a new altar_exchange_rsp.
  30154. * @memberof game
  30155. * @classdesc Represents an altar_exchange_rsp.
  30156. * @implements Ialtar_exchange_rsp
  30157. * @constructor
  30158. * @param {game.Ialtar_exchange_rsp=} [properties] Properties to set
  30159. */
  30160. function altar_exchange_rsp(properties) {
  30161. if (properties)
  30162. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  30163. if (properties[keys[i]] != null)
  30164. this[keys[i]] = properties[keys[i]];
  30165. }
  30166. /**
  30167. * altar_exchange_rsp errno.
  30168. * @member {number|Long} errno
  30169. * @memberof game.altar_exchange_rsp
  30170. * @instance
  30171. */
  30172. altar_exchange_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  30173. /**
  30174. * altar_exchange_rsp type.
  30175. * @member {number|Long} type
  30176. * @memberof game.altar_exchange_rsp
  30177. * @instance
  30178. */
  30179. altar_exchange_rsp.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  30180. /**
  30181. * altar_exchange_rsp sid.
  30182. * @member {string} sid
  30183. * @memberof game.altar_exchange_rsp
  30184. * @instance
  30185. */
  30186. altar_exchange_rsp.prototype.sid = "";
  30187. /**
  30188. * altar_exchange_rsp id.
  30189. * @member {number|Long} id
  30190. * @memberof game.altar_exchange_rsp
  30191. * @instance
  30192. */
  30193. altar_exchange_rsp.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  30194. /**
  30195. * Creates a new altar_exchange_rsp instance using the specified properties.
  30196. * @function create
  30197. * @memberof game.altar_exchange_rsp
  30198. * @static
  30199. * @param {game.Ialtar_exchange_rsp=} [properties] Properties to set
  30200. * @returns {game.altar_exchange_rsp} altar_exchange_rsp instance
  30201. */
  30202. altar_exchange_rsp.create = function create(properties) {
  30203. return new altar_exchange_rsp(properties);
  30204. };
  30205. /**
  30206. * Encodes the specified altar_exchange_rsp message. Does not implicitly {@link game.altar_exchange_rsp.verify|verify} messages.
  30207. * @function encode
  30208. * @memberof game.altar_exchange_rsp
  30209. * @static
  30210. * @param {game.Ialtar_exchange_rsp} message altar_exchange_rsp message or plain object to encode
  30211. * @param {$protobuf.Writer} [writer] Writer to encode to
  30212. * @returns {$protobuf.Writer} Writer
  30213. */
  30214. altar_exchange_rsp.encode = function encode(message, writer) {
  30215. if (!writer)
  30216. writer = $Writer.create();
  30217. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  30218. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  30219. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  30220. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.type);
  30221. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  30222. writer.uint32(/* id 3, wireType 2 =*/26).string(message.sid);
  30223. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  30224. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.id);
  30225. return writer;
  30226. };
  30227. /**
  30228. * Encodes the specified altar_exchange_rsp message, length delimited. Does not implicitly {@link game.altar_exchange_rsp.verify|verify} messages.
  30229. * @function encodeDelimited
  30230. * @memberof game.altar_exchange_rsp
  30231. * @static
  30232. * @param {game.Ialtar_exchange_rsp} message altar_exchange_rsp message or plain object to encode
  30233. * @param {$protobuf.Writer} [writer] Writer to encode to
  30234. * @returns {$protobuf.Writer} Writer
  30235. */
  30236. altar_exchange_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  30237. return this.encode(message, writer).ldelim();
  30238. };
  30239. /**
  30240. * Decodes an altar_exchange_rsp message from the specified reader or buffer.
  30241. * @function decode
  30242. * @memberof game.altar_exchange_rsp
  30243. * @static
  30244. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  30245. * @param {number} [length] Message length if known beforehand
  30246. * @returns {game.altar_exchange_rsp} altar_exchange_rsp
  30247. * @throws {Error} If the payload is not a reader or valid buffer
  30248. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  30249. */
  30250. altar_exchange_rsp.decode = function decode(reader, length) {
  30251. if (!(reader instanceof $Reader))
  30252. reader = $Reader.create(reader);
  30253. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.altar_exchange_rsp();
  30254. while (reader.pos < end) {
  30255. let tag = reader.uint32();
  30256. switch (tag >>> 3) {
  30257. case 1:
  30258. message.errno = reader.int64();
  30259. break;
  30260. case 2:
  30261. message.type = reader.int64();
  30262. break;
  30263. case 3:
  30264. message.sid = reader.string();
  30265. break;
  30266. case 4:
  30267. message.id = reader.int64();
  30268. break;
  30269. default:
  30270. reader.skipType(tag & 7);
  30271. break;
  30272. }
  30273. }
  30274. return message;
  30275. };
  30276. /**
  30277. * Decodes an altar_exchange_rsp message from the specified reader or buffer, length delimited.
  30278. * @function decodeDelimited
  30279. * @memberof game.altar_exchange_rsp
  30280. * @static
  30281. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  30282. * @returns {game.altar_exchange_rsp} altar_exchange_rsp
  30283. * @throws {Error} If the payload is not a reader or valid buffer
  30284. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  30285. */
  30286. altar_exchange_rsp.decodeDelimited = function decodeDelimited(reader) {
  30287. if (!(reader instanceof $Reader))
  30288. reader = new $Reader(reader);
  30289. return this.decode(reader, reader.uint32());
  30290. };
  30291. /**
  30292. * Verifies an altar_exchange_rsp message.
  30293. * @function verify
  30294. * @memberof game.altar_exchange_rsp
  30295. * @static
  30296. * @param {Object.<string,*>} message Plain object to verify
  30297. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  30298. */
  30299. altar_exchange_rsp.verify = function verify(message) {
  30300. if (typeof message !== "object" || message === null)
  30301. return "object expected";
  30302. if (message.errno != null && message.hasOwnProperty("errno"))
  30303. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  30304. return "errno: integer|Long expected";
  30305. if (message.type != null && message.hasOwnProperty("type"))
  30306. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  30307. return "type: integer|Long expected";
  30308. if (message.sid != null && message.hasOwnProperty("sid"))
  30309. if (!$util.isString(message.sid))
  30310. return "sid: string expected";
  30311. if (message.id != null && message.hasOwnProperty("id"))
  30312. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  30313. return "id: integer|Long expected";
  30314. return null;
  30315. };
  30316. /**
  30317. * Creates an altar_exchange_rsp message from a plain object. Also converts values to their respective internal types.
  30318. * @function fromObject
  30319. * @memberof game.altar_exchange_rsp
  30320. * @static
  30321. * @param {Object.<string,*>} object Plain object
  30322. * @returns {game.altar_exchange_rsp} altar_exchange_rsp
  30323. */
  30324. altar_exchange_rsp.fromObject = function fromObject(object) {
  30325. if (object instanceof $root.game.altar_exchange_rsp)
  30326. return object;
  30327. let message = new $root.game.altar_exchange_rsp();
  30328. if (object.errno != null)
  30329. if ($util.Long)
  30330. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  30331. else if (typeof object.errno === "string")
  30332. message.errno = parseInt(object.errno, 10);
  30333. else if (typeof object.errno === "number")
  30334. message.errno = object.errno;
  30335. else if (typeof object.errno === "object")
  30336. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  30337. if (object.type != null)
  30338. if ($util.Long)
  30339. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  30340. else if (typeof object.type === "string")
  30341. message.type = parseInt(object.type, 10);
  30342. else if (typeof object.type === "number")
  30343. message.type = object.type;
  30344. else if (typeof object.type === "object")
  30345. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  30346. if (object.sid != null)
  30347. message.sid = String(object.sid);
  30348. if (object.id != null)
  30349. if ($util.Long)
  30350. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  30351. else if (typeof object.id === "string")
  30352. message.id = parseInt(object.id, 10);
  30353. else if (typeof object.id === "number")
  30354. message.id = object.id;
  30355. else if (typeof object.id === "object")
  30356. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  30357. return message;
  30358. };
  30359. /**
  30360. * Creates a plain object from an altar_exchange_rsp message. Also converts values to other types if specified.
  30361. * @function toObject
  30362. * @memberof game.altar_exchange_rsp
  30363. * @static
  30364. * @param {game.altar_exchange_rsp} message altar_exchange_rsp
  30365. * @param {$protobuf.IConversionOptions} [options] Conversion options
  30366. * @returns {Object.<string,*>} Plain object
  30367. */
  30368. altar_exchange_rsp.toObject = function toObject(message, options) {
  30369. if (!options)
  30370. options = {};
  30371. let object = {};
  30372. if (options.defaults) {
  30373. if ($util.Long) {
  30374. let long = new $util.Long(0, 0, false);
  30375. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  30376. } else
  30377. object.errno = options.longs === String ? "0" : 0;
  30378. if ($util.Long) {
  30379. let long = new $util.Long(0, 0, false);
  30380. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  30381. } else
  30382. object.type = options.longs === String ? "0" : 0;
  30383. object.sid = "";
  30384. if ($util.Long) {
  30385. let long = new $util.Long(0, 0, false);
  30386. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  30387. } else
  30388. object.id = options.longs === String ? "0" : 0;
  30389. }
  30390. if (message.errno != null && message.hasOwnProperty("errno"))
  30391. if (typeof message.errno === "number")
  30392. object.errno = options.longs === String ? String(message.errno) : message.errno;
  30393. else
  30394. 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;
  30395. if (message.type != null && message.hasOwnProperty("type"))
  30396. if (typeof message.type === "number")
  30397. object.type = options.longs === String ? String(message.type) : message.type;
  30398. else
  30399. 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;
  30400. if (message.sid != null && message.hasOwnProperty("sid"))
  30401. object.sid = message.sid;
  30402. if (message.id != null && message.hasOwnProperty("id"))
  30403. if (typeof message.id === "number")
  30404. object.id = options.longs === String ? String(message.id) : message.id;
  30405. else
  30406. 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;
  30407. return object;
  30408. };
  30409. /**
  30410. * Converts this altar_exchange_rsp to JSON.
  30411. * @function toJSON
  30412. * @memberof game.altar_exchange_rsp
  30413. * @instance
  30414. * @returns {Object.<string,*>} JSON object
  30415. */
  30416. altar_exchange_rsp.prototype.toJSON = function toJSON() {
  30417. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  30418. };
  30419. return altar_exchange_rsp;
  30420. })();
  30421. game.altar_exchange_confirm = (function() {
  30422. /**
  30423. * Properties of an altar_exchange_confirm.
  30424. * @memberof game
  30425. * @interface Ialtar_exchange_confirm
  30426. * @property {number|Long|null} [type] altar_exchange_confirm type
  30427. * @property {string|null} [sid] altar_exchange_confirm sid
  30428. * @property {boolean|null} [change] altar_exchange_confirm change
  30429. */
  30430. /**
  30431. * Constructs a new altar_exchange_confirm.
  30432. * @memberof game
  30433. * @classdesc Represents an altar_exchange_confirm.
  30434. * @implements Ialtar_exchange_confirm
  30435. * @constructor
  30436. * @param {game.Ialtar_exchange_confirm=} [properties] Properties to set
  30437. */
  30438. function altar_exchange_confirm(properties) {
  30439. if (properties)
  30440. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  30441. if (properties[keys[i]] != null)
  30442. this[keys[i]] = properties[keys[i]];
  30443. }
  30444. /**
  30445. * altar_exchange_confirm type.
  30446. * @member {number|Long} type
  30447. * @memberof game.altar_exchange_confirm
  30448. * @instance
  30449. */
  30450. altar_exchange_confirm.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  30451. /**
  30452. * altar_exchange_confirm sid.
  30453. * @member {string} sid
  30454. * @memberof game.altar_exchange_confirm
  30455. * @instance
  30456. */
  30457. altar_exchange_confirm.prototype.sid = "";
  30458. /**
  30459. * altar_exchange_confirm change.
  30460. * @member {boolean} change
  30461. * @memberof game.altar_exchange_confirm
  30462. * @instance
  30463. */
  30464. altar_exchange_confirm.prototype.change = false;
  30465. /**
  30466. * Creates a new altar_exchange_confirm instance using the specified properties.
  30467. * @function create
  30468. * @memberof game.altar_exchange_confirm
  30469. * @static
  30470. * @param {game.Ialtar_exchange_confirm=} [properties] Properties to set
  30471. * @returns {game.altar_exchange_confirm} altar_exchange_confirm instance
  30472. */
  30473. altar_exchange_confirm.create = function create(properties) {
  30474. return new altar_exchange_confirm(properties);
  30475. };
  30476. /**
  30477. * Encodes the specified altar_exchange_confirm message. Does not implicitly {@link game.altar_exchange_confirm.verify|verify} messages.
  30478. * @function encode
  30479. * @memberof game.altar_exchange_confirm
  30480. * @static
  30481. * @param {game.Ialtar_exchange_confirm} message altar_exchange_confirm message or plain object to encode
  30482. * @param {$protobuf.Writer} [writer] Writer to encode to
  30483. * @returns {$protobuf.Writer} Writer
  30484. */
  30485. altar_exchange_confirm.encode = function encode(message, writer) {
  30486. if (!writer)
  30487. writer = $Writer.create();
  30488. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  30489. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
  30490. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  30491. writer.uint32(/* id 2, wireType 2 =*/18).string(message.sid);
  30492. if (message.change != null && Object.hasOwnProperty.call(message, "change"))
  30493. writer.uint32(/* id 3, wireType 0 =*/24).bool(message.change);
  30494. return writer;
  30495. };
  30496. /**
  30497. * Encodes the specified altar_exchange_confirm message, length delimited. Does not implicitly {@link game.altar_exchange_confirm.verify|verify} messages.
  30498. * @function encodeDelimited
  30499. * @memberof game.altar_exchange_confirm
  30500. * @static
  30501. * @param {game.Ialtar_exchange_confirm} message altar_exchange_confirm message or plain object to encode
  30502. * @param {$protobuf.Writer} [writer] Writer to encode to
  30503. * @returns {$protobuf.Writer} Writer
  30504. */
  30505. altar_exchange_confirm.encodeDelimited = function encodeDelimited(message, writer) {
  30506. return this.encode(message, writer).ldelim();
  30507. };
  30508. /**
  30509. * Decodes an altar_exchange_confirm message from the specified reader or buffer.
  30510. * @function decode
  30511. * @memberof game.altar_exchange_confirm
  30512. * @static
  30513. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  30514. * @param {number} [length] Message length if known beforehand
  30515. * @returns {game.altar_exchange_confirm} altar_exchange_confirm
  30516. * @throws {Error} If the payload is not a reader or valid buffer
  30517. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  30518. */
  30519. altar_exchange_confirm.decode = function decode(reader, length) {
  30520. if (!(reader instanceof $Reader))
  30521. reader = $Reader.create(reader);
  30522. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.altar_exchange_confirm();
  30523. while (reader.pos < end) {
  30524. let tag = reader.uint32();
  30525. switch (tag >>> 3) {
  30526. case 1:
  30527. message.type = reader.int64();
  30528. break;
  30529. case 2:
  30530. message.sid = reader.string();
  30531. break;
  30532. case 3:
  30533. message.change = reader.bool();
  30534. break;
  30535. default:
  30536. reader.skipType(tag & 7);
  30537. break;
  30538. }
  30539. }
  30540. return message;
  30541. };
  30542. /**
  30543. * Decodes an altar_exchange_confirm message from the specified reader or buffer, length delimited.
  30544. * @function decodeDelimited
  30545. * @memberof game.altar_exchange_confirm
  30546. * @static
  30547. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  30548. * @returns {game.altar_exchange_confirm} altar_exchange_confirm
  30549. * @throws {Error} If the payload is not a reader or valid buffer
  30550. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  30551. */
  30552. altar_exchange_confirm.decodeDelimited = function decodeDelimited(reader) {
  30553. if (!(reader instanceof $Reader))
  30554. reader = new $Reader(reader);
  30555. return this.decode(reader, reader.uint32());
  30556. };
  30557. /**
  30558. * Verifies an altar_exchange_confirm message.
  30559. * @function verify
  30560. * @memberof game.altar_exchange_confirm
  30561. * @static
  30562. * @param {Object.<string,*>} message Plain object to verify
  30563. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  30564. */
  30565. altar_exchange_confirm.verify = function verify(message) {
  30566. if (typeof message !== "object" || message === null)
  30567. return "object expected";
  30568. if (message.type != null && message.hasOwnProperty("type"))
  30569. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  30570. return "type: integer|Long expected";
  30571. if (message.sid != null && message.hasOwnProperty("sid"))
  30572. if (!$util.isString(message.sid))
  30573. return "sid: string expected";
  30574. if (message.change != null && message.hasOwnProperty("change"))
  30575. if (typeof message.change !== "boolean")
  30576. return "change: boolean expected";
  30577. return null;
  30578. };
  30579. /**
  30580. * Creates an altar_exchange_confirm message from a plain object. Also converts values to their respective internal types.
  30581. * @function fromObject
  30582. * @memberof game.altar_exchange_confirm
  30583. * @static
  30584. * @param {Object.<string,*>} object Plain object
  30585. * @returns {game.altar_exchange_confirm} altar_exchange_confirm
  30586. */
  30587. altar_exchange_confirm.fromObject = function fromObject(object) {
  30588. if (object instanceof $root.game.altar_exchange_confirm)
  30589. return object;
  30590. let message = new $root.game.altar_exchange_confirm();
  30591. if (object.type != null)
  30592. if ($util.Long)
  30593. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  30594. else if (typeof object.type === "string")
  30595. message.type = parseInt(object.type, 10);
  30596. else if (typeof object.type === "number")
  30597. message.type = object.type;
  30598. else if (typeof object.type === "object")
  30599. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  30600. if (object.sid != null)
  30601. message.sid = String(object.sid);
  30602. if (object.change != null)
  30603. message.change = Boolean(object.change);
  30604. return message;
  30605. };
  30606. /**
  30607. * Creates a plain object from an altar_exchange_confirm message. Also converts values to other types if specified.
  30608. * @function toObject
  30609. * @memberof game.altar_exchange_confirm
  30610. * @static
  30611. * @param {game.altar_exchange_confirm} message altar_exchange_confirm
  30612. * @param {$protobuf.IConversionOptions} [options] Conversion options
  30613. * @returns {Object.<string,*>} Plain object
  30614. */
  30615. altar_exchange_confirm.toObject = function toObject(message, options) {
  30616. if (!options)
  30617. options = {};
  30618. let object = {};
  30619. if (options.defaults) {
  30620. if ($util.Long) {
  30621. let long = new $util.Long(0, 0, false);
  30622. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  30623. } else
  30624. object.type = options.longs === String ? "0" : 0;
  30625. object.sid = "";
  30626. object.change = false;
  30627. }
  30628. if (message.type != null && message.hasOwnProperty("type"))
  30629. if (typeof message.type === "number")
  30630. object.type = options.longs === String ? String(message.type) : message.type;
  30631. else
  30632. 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;
  30633. if (message.sid != null && message.hasOwnProperty("sid"))
  30634. object.sid = message.sid;
  30635. if (message.change != null && message.hasOwnProperty("change"))
  30636. object.change = message.change;
  30637. return object;
  30638. };
  30639. /**
  30640. * Converts this altar_exchange_confirm to JSON.
  30641. * @function toJSON
  30642. * @memberof game.altar_exchange_confirm
  30643. * @instance
  30644. * @returns {Object.<string,*>} JSON object
  30645. */
  30646. altar_exchange_confirm.prototype.toJSON = function toJSON() {
  30647. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  30648. };
  30649. return altar_exchange_confirm;
  30650. })();
  30651. game.altar_exchange_confirm_rsp = (function() {
  30652. /**
  30653. * Properties of an altar_exchange_confirm_rsp.
  30654. * @memberof game
  30655. * @interface Ialtar_exchange_confirm_rsp
  30656. * @property {number|Long|null} [errno] altar_exchange_confirm_rsp errno
  30657. */
  30658. /**
  30659. * Constructs a new altar_exchange_confirm_rsp.
  30660. * @memberof game
  30661. * @classdesc Represents an altar_exchange_confirm_rsp.
  30662. * @implements Ialtar_exchange_confirm_rsp
  30663. * @constructor
  30664. * @param {game.Ialtar_exchange_confirm_rsp=} [properties] Properties to set
  30665. */
  30666. function altar_exchange_confirm_rsp(properties) {
  30667. if (properties)
  30668. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  30669. if (properties[keys[i]] != null)
  30670. this[keys[i]] = properties[keys[i]];
  30671. }
  30672. /**
  30673. * altar_exchange_confirm_rsp errno.
  30674. * @member {number|Long} errno
  30675. * @memberof game.altar_exchange_confirm_rsp
  30676. * @instance
  30677. */
  30678. altar_exchange_confirm_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  30679. /**
  30680. * Creates a new altar_exchange_confirm_rsp instance using the specified properties.
  30681. * @function create
  30682. * @memberof game.altar_exchange_confirm_rsp
  30683. * @static
  30684. * @param {game.Ialtar_exchange_confirm_rsp=} [properties] Properties to set
  30685. * @returns {game.altar_exchange_confirm_rsp} altar_exchange_confirm_rsp instance
  30686. */
  30687. altar_exchange_confirm_rsp.create = function create(properties) {
  30688. return new altar_exchange_confirm_rsp(properties);
  30689. };
  30690. /**
  30691. * Encodes the specified altar_exchange_confirm_rsp message. Does not implicitly {@link game.altar_exchange_confirm_rsp.verify|verify} messages.
  30692. * @function encode
  30693. * @memberof game.altar_exchange_confirm_rsp
  30694. * @static
  30695. * @param {game.Ialtar_exchange_confirm_rsp} message altar_exchange_confirm_rsp message or plain object to encode
  30696. * @param {$protobuf.Writer} [writer] Writer to encode to
  30697. * @returns {$protobuf.Writer} Writer
  30698. */
  30699. altar_exchange_confirm_rsp.encode = function encode(message, writer) {
  30700. if (!writer)
  30701. writer = $Writer.create();
  30702. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  30703. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  30704. return writer;
  30705. };
  30706. /**
  30707. * Encodes the specified altar_exchange_confirm_rsp message, length delimited. Does not implicitly {@link game.altar_exchange_confirm_rsp.verify|verify} messages.
  30708. * @function encodeDelimited
  30709. * @memberof game.altar_exchange_confirm_rsp
  30710. * @static
  30711. * @param {game.Ialtar_exchange_confirm_rsp} message altar_exchange_confirm_rsp message or plain object to encode
  30712. * @param {$protobuf.Writer} [writer] Writer to encode to
  30713. * @returns {$protobuf.Writer} Writer
  30714. */
  30715. altar_exchange_confirm_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  30716. return this.encode(message, writer).ldelim();
  30717. };
  30718. /**
  30719. * Decodes an altar_exchange_confirm_rsp message from the specified reader or buffer.
  30720. * @function decode
  30721. * @memberof game.altar_exchange_confirm_rsp
  30722. * @static
  30723. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  30724. * @param {number} [length] Message length if known beforehand
  30725. * @returns {game.altar_exchange_confirm_rsp} altar_exchange_confirm_rsp
  30726. * @throws {Error} If the payload is not a reader or valid buffer
  30727. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  30728. */
  30729. altar_exchange_confirm_rsp.decode = function decode(reader, length) {
  30730. if (!(reader instanceof $Reader))
  30731. reader = $Reader.create(reader);
  30732. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.altar_exchange_confirm_rsp();
  30733. while (reader.pos < end) {
  30734. let tag = reader.uint32();
  30735. switch (tag >>> 3) {
  30736. case 1:
  30737. message.errno = reader.int64();
  30738. break;
  30739. default:
  30740. reader.skipType(tag & 7);
  30741. break;
  30742. }
  30743. }
  30744. return message;
  30745. };
  30746. /**
  30747. * Decodes an altar_exchange_confirm_rsp message from the specified reader or buffer, length delimited.
  30748. * @function decodeDelimited
  30749. * @memberof game.altar_exchange_confirm_rsp
  30750. * @static
  30751. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  30752. * @returns {game.altar_exchange_confirm_rsp} altar_exchange_confirm_rsp
  30753. * @throws {Error} If the payload is not a reader or valid buffer
  30754. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  30755. */
  30756. altar_exchange_confirm_rsp.decodeDelimited = function decodeDelimited(reader) {
  30757. if (!(reader instanceof $Reader))
  30758. reader = new $Reader(reader);
  30759. return this.decode(reader, reader.uint32());
  30760. };
  30761. /**
  30762. * Verifies an altar_exchange_confirm_rsp message.
  30763. * @function verify
  30764. * @memberof game.altar_exchange_confirm_rsp
  30765. * @static
  30766. * @param {Object.<string,*>} message Plain object to verify
  30767. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  30768. */
  30769. altar_exchange_confirm_rsp.verify = function verify(message) {
  30770. if (typeof message !== "object" || message === null)
  30771. return "object expected";
  30772. if (message.errno != null && message.hasOwnProperty("errno"))
  30773. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  30774. return "errno: integer|Long expected";
  30775. return null;
  30776. };
  30777. /**
  30778. * Creates an altar_exchange_confirm_rsp message from a plain object. Also converts values to their respective internal types.
  30779. * @function fromObject
  30780. * @memberof game.altar_exchange_confirm_rsp
  30781. * @static
  30782. * @param {Object.<string,*>} object Plain object
  30783. * @returns {game.altar_exchange_confirm_rsp} altar_exchange_confirm_rsp
  30784. */
  30785. altar_exchange_confirm_rsp.fromObject = function fromObject(object) {
  30786. if (object instanceof $root.game.altar_exchange_confirm_rsp)
  30787. return object;
  30788. let message = new $root.game.altar_exchange_confirm_rsp();
  30789. if (object.errno != null)
  30790. if ($util.Long)
  30791. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  30792. else if (typeof object.errno === "string")
  30793. message.errno = parseInt(object.errno, 10);
  30794. else if (typeof object.errno === "number")
  30795. message.errno = object.errno;
  30796. else if (typeof object.errno === "object")
  30797. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  30798. return message;
  30799. };
  30800. /**
  30801. * Creates a plain object from an altar_exchange_confirm_rsp message. Also converts values to other types if specified.
  30802. * @function toObject
  30803. * @memberof game.altar_exchange_confirm_rsp
  30804. * @static
  30805. * @param {game.altar_exchange_confirm_rsp} message altar_exchange_confirm_rsp
  30806. * @param {$protobuf.IConversionOptions} [options] Conversion options
  30807. * @returns {Object.<string,*>} Plain object
  30808. */
  30809. altar_exchange_confirm_rsp.toObject = function toObject(message, options) {
  30810. if (!options)
  30811. options = {};
  30812. let object = {};
  30813. if (options.defaults)
  30814. if ($util.Long) {
  30815. let long = new $util.Long(0, 0, false);
  30816. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  30817. } else
  30818. object.errno = options.longs === String ? "0" : 0;
  30819. if (message.errno != null && message.hasOwnProperty("errno"))
  30820. if (typeof message.errno === "number")
  30821. object.errno = options.longs === String ? String(message.errno) : message.errno;
  30822. else
  30823. 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;
  30824. return object;
  30825. };
  30826. /**
  30827. * Converts this altar_exchange_confirm_rsp to JSON.
  30828. * @function toJSON
  30829. * @memberof game.altar_exchange_confirm_rsp
  30830. * @instance
  30831. * @returns {Object.<string,*>} JSON object
  30832. */
  30833. altar_exchange_confirm_rsp.prototype.toJSON = function toJSON() {
  30834. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  30835. };
  30836. return altar_exchange_confirm_rsp;
  30837. })();
  30838. game.altar_buy_battle_space = (function() {
  30839. /**
  30840. * Properties of an altar_buy_battle_space.
  30841. * @memberof game
  30842. * @interface Ialtar_buy_battle_space
  30843. */
  30844. /**
  30845. * Constructs a new altar_buy_battle_space.
  30846. * @memberof game
  30847. * @classdesc Represents an altar_buy_battle_space.
  30848. * @implements Ialtar_buy_battle_space
  30849. * @constructor
  30850. * @param {game.Ialtar_buy_battle_space=} [properties] Properties to set
  30851. */
  30852. function altar_buy_battle_space(properties) {
  30853. if (properties)
  30854. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  30855. if (properties[keys[i]] != null)
  30856. this[keys[i]] = properties[keys[i]];
  30857. }
  30858. /**
  30859. * Creates a new altar_buy_battle_space instance using the specified properties.
  30860. * @function create
  30861. * @memberof game.altar_buy_battle_space
  30862. * @static
  30863. * @param {game.Ialtar_buy_battle_space=} [properties] Properties to set
  30864. * @returns {game.altar_buy_battle_space} altar_buy_battle_space instance
  30865. */
  30866. altar_buy_battle_space.create = function create(properties) {
  30867. return new altar_buy_battle_space(properties);
  30868. };
  30869. /**
  30870. * Encodes the specified altar_buy_battle_space message. Does not implicitly {@link game.altar_buy_battle_space.verify|verify} messages.
  30871. * @function encode
  30872. * @memberof game.altar_buy_battle_space
  30873. * @static
  30874. * @param {game.Ialtar_buy_battle_space} message altar_buy_battle_space message or plain object to encode
  30875. * @param {$protobuf.Writer} [writer] Writer to encode to
  30876. * @returns {$protobuf.Writer} Writer
  30877. */
  30878. altar_buy_battle_space.encode = function encode(message, writer) {
  30879. if (!writer)
  30880. writer = $Writer.create();
  30881. return writer;
  30882. };
  30883. /**
  30884. * Encodes the specified altar_buy_battle_space message, length delimited. Does not implicitly {@link game.altar_buy_battle_space.verify|verify} messages.
  30885. * @function encodeDelimited
  30886. * @memberof game.altar_buy_battle_space
  30887. * @static
  30888. * @param {game.Ialtar_buy_battle_space} message altar_buy_battle_space message or plain object to encode
  30889. * @param {$protobuf.Writer} [writer] Writer to encode to
  30890. * @returns {$protobuf.Writer} Writer
  30891. */
  30892. altar_buy_battle_space.encodeDelimited = function encodeDelimited(message, writer) {
  30893. return this.encode(message, writer).ldelim();
  30894. };
  30895. /**
  30896. * Decodes an altar_buy_battle_space message from the specified reader or buffer.
  30897. * @function decode
  30898. * @memberof game.altar_buy_battle_space
  30899. * @static
  30900. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  30901. * @param {number} [length] Message length if known beforehand
  30902. * @returns {game.altar_buy_battle_space} altar_buy_battle_space
  30903. * @throws {Error} If the payload is not a reader or valid buffer
  30904. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  30905. */
  30906. altar_buy_battle_space.decode = function decode(reader, length) {
  30907. if (!(reader instanceof $Reader))
  30908. reader = $Reader.create(reader);
  30909. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.altar_buy_battle_space();
  30910. while (reader.pos < end) {
  30911. let tag = reader.uint32();
  30912. switch (tag >>> 3) {
  30913. default:
  30914. reader.skipType(tag & 7);
  30915. break;
  30916. }
  30917. }
  30918. return message;
  30919. };
  30920. /**
  30921. * Decodes an altar_buy_battle_space message from the specified reader or buffer, length delimited.
  30922. * @function decodeDelimited
  30923. * @memberof game.altar_buy_battle_space
  30924. * @static
  30925. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  30926. * @returns {game.altar_buy_battle_space} altar_buy_battle_space
  30927. * @throws {Error} If the payload is not a reader or valid buffer
  30928. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  30929. */
  30930. altar_buy_battle_space.decodeDelimited = function decodeDelimited(reader) {
  30931. if (!(reader instanceof $Reader))
  30932. reader = new $Reader(reader);
  30933. return this.decode(reader, reader.uint32());
  30934. };
  30935. /**
  30936. * Verifies an altar_buy_battle_space message.
  30937. * @function verify
  30938. * @memberof game.altar_buy_battle_space
  30939. * @static
  30940. * @param {Object.<string,*>} message Plain object to verify
  30941. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  30942. */
  30943. altar_buy_battle_space.verify = function verify(message) {
  30944. if (typeof message !== "object" || message === null)
  30945. return "object expected";
  30946. return null;
  30947. };
  30948. /**
  30949. * Creates an altar_buy_battle_space message from a plain object. Also converts values to their respective internal types.
  30950. * @function fromObject
  30951. * @memberof game.altar_buy_battle_space
  30952. * @static
  30953. * @param {Object.<string,*>} object Plain object
  30954. * @returns {game.altar_buy_battle_space} altar_buy_battle_space
  30955. */
  30956. altar_buy_battle_space.fromObject = function fromObject(object) {
  30957. if (object instanceof $root.game.altar_buy_battle_space)
  30958. return object;
  30959. return new $root.game.altar_buy_battle_space();
  30960. };
  30961. /**
  30962. * Creates a plain object from an altar_buy_battle_space message. Also converts values to other types if specified.
  30963. * @function toObject
  30964. * @memberof game.altar_buy_battle_space
  30965. * @static
  30966. * @param {game.altar_buy_battle_space} message altar_buy_battle_space
  30967. * @param {$protobuf.IConversionOptions} [options] Conversion options
  30968. * @returns {Object.<string,*>} Plain object
  30969. */
  30970. altar_buy_battle_space.toObject = function toObject() {
  30971. return {};
  30972. };
  30973. /**
  30974. * Converts this altar_buy_battle_space to JSON.
  30975. * @function toJSON
  30976. * @memberof game.altar_buy_battle_space
  30977. * @instance
  30978. * @returns {Object.<string,*>} JSON object
  30979. */
  30980. altar_buy_battle_space.prototype.toJSON = function toJSON() {
  30981. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  30982. };
  30983. return altar_buy_battle_space;
  30984. })();
  30985. game.altar_buy_battle_space_rsp = (function() {
  30986. /**
  30987. * Properties of an altar_buy_battle_space_rsp.
  30988. * @memberof game
  30989. * @interface Ialtar_buy_battle_space_rsp
  30990. * @property {number|Long|null} [errno] altar_buy_battle_space_rsp errno
  30991. * @property {number|Long|null} [pos] altar_buy_battle_space_rsp pos
  30992. * @property {game.Ialtar_info|null} [data] altar_buy_battle_space_rsp data
  30993. */
  30994. /**
  30995. * Constructs a new altar_buy_battle_space_rsp.
  30996. * @memberof game
  30997. * @classdesc Represents an altar_buy_battle_space_rsp.
  30998. * @implements Ialtar_buy_battle_space_rsp
  30999. * @constructor
  31000. * @param {game.Ialtar_buy_battle_space_rsp=} [properties] Properties to set
  31001. */
  31002. function altar_buy_battle_space_rsp(properties) {
  31003. if (properties)
  31004. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  31005. if (properties[keys[i]] != null)
  31006. this[keys[i]] = properties[keys[i]];
  31007. }
  31008. /**
  31009. * altar_buy_battle_space_rsp errno.
  31010. * @member {number|Long} errno
  31011. * @memberof game.altar_buy_battle_space_rsp
  31012. * @instance
  31013. */
  31014. altar_buy_battle_space_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  31015. /**
  31016. * altar_buy_battle_space_rsp pos.
  31017. * @member {number|Long} pos
  31018. * @memberof game.altar_buy_battle_space_rsp
  31019. * @instance
  31020. */
  31021. altar_buy_battle_space_rsp.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  31022. /**
  31023. * altar_buy_battle_space_rsp data.
  31024. * @member {game.Ialtar_info|null|undefined} data
  31025. * @memberof game.altar_buy_battle_space_rsp
  31026. * @instance
  31027. */
  31028. altar_buy_battle_space_rsp.prototype.data = null;
  31029. /**
  31030. * Creates a new altar_buy_battle_space_rsp instance using the specified properties.
  31031. * @function create
  31032. * @memberof game.altar_buy_battle_space_rsp
  31033. * @static
  31034. * @param {game.Ialtar_buy_battle_space_rsp=} [properties] Properties to set
  31035. * @returns {game.altar_buy_battle_space_rsp} altar_buy_battle_space_rsp instance
  31036. */
  31037. altar_buy_battle_space_rsp.create = function create(properties) {
  31038. return new altar_buy_battle_space_rsp(properties);
  31039. };
  31040. /**
  31041. * Encodes the specified altar_buy_battle_space_rsp message. Does not implicitly {@link game.altar_buy_battle_space_rsp.verify|verify} messages.
  31042. * @function encode
  31043. * @memberof game.altar_buy_battle_space_rsp
  31044. * @static
  31045. * @param {game.Ialtar_buy_battle_space_rsp} message altar_buy_battle_space_rsp message or plain object to encode
  31046. * @param {$protobuf.Writer} [writer] Writer to encode to
  31047. * @returns {$protobuf.Writer} Writer
  31048. */
  31049. altar_buy_battle_space_rsp.encode = function encode(message, writer) {
  31050. if (!writer)
  31051. writer = $Writer.create();
  31052. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  31053. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  31054. if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
  31055. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.pos);
  31056. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  31057. $root.game.altar_info.encode(message.data, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
  31058. return writer;
  31059. };
  31060. /**
  31061. * Encodes the specified altar_buy_battle_space_rsp message, length delimited. Does not implicitly {@link game.altar_buy_battle_space_rsp.verify|verify} messages.
  31062. * @function encodeDelimited
  31063. * @memberof game.altar_buy_battle_space_rsp
  31064. * @static
  31065. * @param {game.Ialtar_buy_battle_space_rsp} message altar_buy_battle_space_rsp message or plain object to encode
  31066. * @param {$protobuf.Writer} [writer] Writer to encode to
  31067. * @returns {$protobuf.Writer} Writer
  31068. */
  31069. altar_buy_battle_space_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  31070. return this.encode(message, writer).ldelim();
  31071. };
  31072. /**
  31073. * Decodes an altar_buy_battle_space_rsp message from the specified reader or buffer.
  31074. * @function decode
  31075. * @memberof game.altar_buy_battle_space_rsp
  31076. * @static
  31077. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  31078. * @param {number} [length] Message length if known beforehand
  31079. * @returns {game.altar_buy_battle_space_rsp} altar_buy_battle_space_rsp
  31080. * @throws {Error} If the payload is not a reader or valid buffer
  31081. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  31082. */
  31083. altar_buy_battle_space_rsp.decode = function decode(reader, length) {
  31084. if (!(reader instanceof $Reader))
  31085. reader = $Reader.create(reader);
  31086. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.altar_buy_battle_space_rsp();
  31087. while (reader.pos < end) {
  31088. let tag = reader.uint32();
  31089. switch (tag >>> 3) {
  31090. case 1:
  31091. message.errno = reader.int64();
  31092. break;
  31093. case 2:
  31094. message.pos = reader.int64();
  31095. break;
  31096. case 3:
  31097. message.data = $root.game.altar_info.decode(reader, reader.uint32());
  31098. break;
  31099. default:
  31100. reader.skipType(tag & 7);
  31101. break;
  31102. }
  31103. }
  31104. return message;
  31105. };
  31106. /**
  31107. * Decodes an altar_buy_battle_space_rsp message from the specified reader or buffer, length delimited.
  31108. * @function decodeDelimited
  31109. * @memberof game.altar_buy_battle_space_rsp
  31110. * @static
  31111. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  31112. * @returns {game.altar_buy_battle_space_rsp} altar_buy_battle_space_rsp
  31113. * @throws {Error} If the payload is not a reader or valid buffer
  31114. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  31115. */
  31116. altar_buy_battle_space_rsp.decodeDelimited = function decodeDelimited(reader) {
  31117. if (!(reader instanceof $Reader))
  31118. reader = new $Reader(reader);
  31119. return this.decode(reader, reader.uint32());
  31120. };
  31121. /**
  31122. * Verifies an altar_buy_battle_space_rsp message.
  31123. * @function verify
  31124. * @memberof game.altar_buy_battle_space_rsp
  31125. * @static
  31126. * @param {Object.<string,*>} message Plain object to verify
  31127. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  31128. */
  31129. altar_buy_battle_space_rsp.verify = function verify(message) {
  31130. if (typeof message !== "object" || message === null)
  31131. return "object expected";
  31132. if (message.errno != null && message.hasOwnProperty("errno"))
  31133. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  31134. return "errno: integer|Long expected";
  31135. if (message.pos != null && message.hasOwnProperty("pos"))
  31136. if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
  31137. return "pos: integer|Long expected";
  31138. if (message.data != null && message.hasOwnProperty("data")) {
  31139. let error = $root.game.altar_info.verify(message.data);
  31140. if (error)
  31141. return "data." + error;
  31142. }
  31143. return null;
  31144. };
  31145. /**
  31146. * Creates an altar_buy_battle_space_rsp message from a plain object. Also converts values to their respective internal types.
  31147. * @function fromObject
  31148. * @memberof game.altar_buy_battle_space_rsp
  31149. * @static
  31150. * @param {Object.<string,*>} object Plain object
  31151. * @returns {game.altar_buy_battle_space_rsp} altar_buy_battle_space_rsp
  31152. */
  31153. altar_buy_battle_space_rsp.fromObject = function fromObject(object) {
  31154. if (object instanceof $root.game.altar_buy_battle_space_rsp)
  31155. return object;
  31156. let message = new $root.game.altar_buy_battle_space_rsp();
  31157. if (object.errno != null)
  31158. if ($util.Long)
  31159. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  31160. else if (typeof object.errno === "string")
  31161. message.errno = parseInt(object.errno, 10);
  31162. else if (typeof object.errno === "number")
  31163. message.errno = object.errno;
  31164. else if (typeof object.errno === "object")
  31165. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  31166. if (object.pos != null)
  31167. if ($util.Long)
  31168. (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
  31169. else if (typeof object.pos === "string")
  31170. message.pos = parseInt(object.pos, 10);
  31171. else if (typeof object.pos === "number")
  31172. message.pos = object.pos;
  31173. else if (typeof object.pos === "object")
  31174. message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
  31175. if (object.data != null) {
  31176. if (typeof object.data !== "object")
  31177. throw TypeError(".game.altar_buy_battle_space_rsp.data: object expected");
  31178. message.data = $root.game.altar_info.fromObject(object.data);
  31179. }
  31180. return message;
  31181. };
  31182. /**
  31183. * Creates a plain object from an altar_buy_battle_space_rsp message. Also converts values to other types if specified.
  31184. * @function toObject
  31185. * @memberof game.altar_buy_battle_space_rsp
  31186. * @static
  31187. * @param {game.altar_buy_battle_space_rsp} message altar_buy_battle_space_rsp
  31188. * @param {$protobuf.IConversionOptions} [options] Conversion options
  31189. * @returns {Object.<string,*>} Plain object
  31190. */
  31191. altar_buy_battle_space_rsp.toObject = function toObject(message, options) {
  31192. if (!options)
  31193. options = {};
  31194. let object = {};
  31195. if (options.defaults) {
  31196. if ($util.Long) {
  31197. let long = new $util.Long(0, 0, false);
  31198. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  31199. } else
  31200. object.errno = options.longs === String ? "0" : 0;
  31201. if ($util.Long) {
  31202. let long = new $util.Long(0, 0, false);
  31203. object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  31204. } else
  31205. object.pos = options.longs === String ? "0" : 0;
  31206. object.data = null;
  31207. }
  31208. if (message.errno != null && message.hasOwnProperty("errno"))
  31209. if (typeof message.errno === "number")
  31210. object.errno = options.longs === String ? String(message.errno) : message.errno;
  31211. else
  31212. 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;
  31213. if (message.pos != null && message.hasOwnProperty("pos"))
  31214. if (typeof message.pos === "number")
  31215. object.pos = options.longs === String ? String(message.pos) : message.pos;
  31216. else
  31217. 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;
  31218. if (message.data != null && message.hasOwnProperty("data"))
  31219. object.data = $root.game.altar_info.toObject(message.data, options);
  31220. return object;
  31221. };
  31222. /**
  31223. * Converts this altar_buy_battle_space_rsp to JSON.
  31224. * @function toJSON
  31225. * @memberof game.altar_buy_battle_space_rsp
  31226. * @instance
  31227. * @returns {Object.<string,*>} JSON object
  31228. */
  31229. altar_buy_battle_space_rsp.prototype.toJSON = function toJSON() {
  31230. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  31231. };
  31232. return altar_buy_battle_space_rsp;
  31233. })();
  31234. game.altar_reset_cd = (function() {
  31235. /**
  31236. * Properties of an altar_reset_cd.
  31237. * @memberof game
  31238. * @interface Ialtar_reset_cd
  31239. * @property {number|Long|null} [pos] altar_reset_cd pos
  31240. */
  31241. /**
  31242. * Constructs a new altar_reset_cd.
  31243. * @memberof game
  31244. * @classdesc Represents an altar_reset_cd.
  31245. * @implements Ialtar_reset_cd
  31246. * @constructor
  31247. * @param {game.Ialtar_reset_cd=} [properties] Properties to set
  31248. */
  31249. function altar_reset_cd(properties) {
  31250. if (properties)
  31251. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  31252. if (properties[keys[i]] != null)
  31253. this[keys[i]] = properties[keys[i]];
  31254. }
  31255. /**
  31256. * altar_reset_cd pos.
  31257. * @member {number|Long} pos
  31258. * @memberof game.altar_reset_cd
  31259. * @instance
  31260. */
  31261. altar_reset_cd.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  31262. /**
  31263. * Creates a new altar_reset_cd instance using the specified properties.
  31264. * @function create
  31265. * @memberof game.altar_reset_cd
  31266. * @static
  31267. * @param {game.Ialtar_reset_cd=} [properties] Properties to set
  31268. * @returns {game.altar_reset_cd} altar_reset_cd instance
  31269. */
  31270. altar_reset_cd.create = function create(properties) {
  31271. return new altar_reset_cd(properties);
  31272. };
  31273. /**
  31274. * Encodes the specified altar_reset_cd message. Does not implicitly {@link game.altar_reset_cd.verify|verify} messages.
  31275. * @function encode
  31276. * @memberof game.altar_reset_cd
  31277. * @static
  31278. * @param {game.Ialtar_reset_cd} message altar_reset_cd message or plain object to encode
  31279. * @param {$protobuf.Writer} [writer] Writer to encode to
  31280. * @returns {$protobuf.Writer} Writer
  31281. */
  31282. altar_reset_cd.encode = function encode(message, writer) {
  31283. if (!writer)
  31284. writer = $Writer.create();
  31285. if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
  31286. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.pos);
  31287. return writer;
  31288. };
  31289. /**
  31290. * Encodes the specified altar_reset_cd message, length delimited. Does not implicitly {@link game.altar_reset_cd.verify|verify} messages.
  31291. * @function encodeDelimited
  31292. * @memberof game.altar_reset_cd
  31293. * @static
  31294. * @param {game.Ialtar_reset_cd} message altar_reset_cd message or plain object to encode
  31295. * @param {$protobuf.Writer} [writer] Writer to encode to
  31296. * @returns {$protobuf.Writer} Writer
  31297. */
  31298. altar_reset_cd.encodeDelimited = function encodeDelimited(message, writer) {
  31299. return this.encode(message, writer).ldelim();
  31300. };
  31301. /**
  31302. * Decodes an altar_reset_cd message from the specified reader or buffer.
  31303. * @function decode
  31304. * @memberof game.altar_reset_cd
  31305. * @static
  31306. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  31307. * @param {number} [length] Message length if known beforehand
  31308. * @returns {game.altar_reset_cd} altar_reset_cd
  31309. * @throws {Error} If the payload is not a reader or valid buffer
  31310. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  31311. */
  31312. altar_reset_cd.decode = function decode(reader, length) {
  31313. if (!(reader instanceof $Reader))
  31314. reader = $Reader.create(reader);
  31315. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.altar_reset_cd();
  31316. while (reader.pos < end) {
  31317. let tag = reader.uint32();
  31318. switch (tag >>> 3) {
  31319. case 1:
  31320. message.pos = reader.int64();
  31321. break;
  31322. default:
  31323. reader.skipType(tag & 7);
  31324. break;
  31325. }
  31326. }
  31327. return message;
  31328. };
  31329. /**
  31330. * Decodes an altar_reset_cd message from the specified reader or buffer, length delimited.
  31331. * @function decodeDelimited
  31332. * @memberof game.altar_reset_cd
  31333. * @static
  31334. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  31335. * @returns {game.altar_reset_cd} altar_reset_cd
  31336. * @throws {Error} If the payload is not a reader or valid buffer
  31337. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  31338. */
  31339. altar_reset_cd.decodeDelimited = function decodeDelimited(reader) {
  31340. if (!(reader instanceof $Reader))
  31341. reader = new $Reader(reader);
  31342. return this.decode(reader, reader.uint32());
  31343. };
  31344. /**
  31345. * Verifies an altar_reset_cd message.
  31346. * @function verify
  31347. * @memberof game.altar_reset_cd
  31348. * @static
  31349. * @param {Object.<string,*>} message Plain object to verify
  31350. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  31351. */
  31352. altar_reset_cd.verify = function verify(message) {
  31353. if (typeof message !== "object" || message === null)
  31354. return "object expected";
  31355. if (message.pos != null && message.hasOwnProperty("pos"))
  31356. if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
  31357. return "pos: integer|Long expected";
  31358. return null;
  31359. };
  31360. /**
  31361. * Creates an altar_reset_cd message from a plain object. Also converts values to their respective internal types.
  31362. * @function fromObject
  31363. * @memberof game.altar_reset_cd
  31364. * @static
  31365. * @param {Object.<string,*>} object Plain object
  31366. * @returns {game.altar_reset_cd} altar_reset_cd
  31367. */
  31368. altar_reset_cd.fromObject = function fromObject(object) {
  31369. if (object instanceof $root.game.altar_reset_cd)
  31370. return object;
  31371. let message = new $root.game.altar_reset_cd();
  31372. if (object.pos != null)
  31373. if ($util.Long)
  31374. (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
  31375. else if (typeof object.pos === "string")
  31376. message.pos = parseInt(object.pos, 10);
  31377. else if (typeof object.pos === "number")
  31378. message.pos = object.pos;
  31379. else if (typeof object.pos === "object")
  31380. message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
  31381. return message;
  31382. };
  31383. /**
  31384. * Creates a plain object from an altar_reset_cd message. Also converts values to other types if specified.
  31385. * @function toObject
  31386. * @memberof game.altar_reset_cd
  31387. * @static
  31388. * @param {game.altar_reset_cd} message altar_reset_cd
  31389. * @param {$protobuf.IConversionOptions} [options] Conversion options
  31390. * @returns {Object.<string,*>} Plain object
  31391. */
  31392. altar_reset_cd.toObject = function toObject(message, options) {
  31393. if (!options)
  31394. options = {};
  31395. let object = {};
  31396. if (options.defaults)
  31397. if ($util.Long) {
  31398. let long = new $util.Long(0, 0, false);
  31399. object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  31400. } else
  31401. object.pos = options.longs === String ? "0" : 0;
  31402. if (message.pos != null && message.hasOwnProperty("pos"))
  31403. if (typeof message.pos === "number")
  31404. object.pos = options.longs === String ? String(message.pos) : message.pos;
  31405. else
  31406. 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;
  31407. return object;
  31408. };
  31409. /**
  31410. * Converts this altar_reset_cd to JSON.
  31411. * @function toJSON
  31412. * @memberof game.altar_reset_cd
  31413. * @instance
  31414. * @returns {Object.<string,*>} JSON object
  31415. */
  31416. altar_reset_cd.prototype.toJSON = function toJSON() {
  31417. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  31418. };
  31419. return altar_reset_cd;
  31420. })();
  31421. game.altar_reset_cd_rsp = (function() {
  31422. /**
  31423. * Properties of an altar_reset_cd_rsp.
  31424. * @memberof game
  31425. * @interface Ialtar_reset_cd_rsp
  31426. * @property {number|Long|null} [errno] altar_reset_cd_rsp errno
  31427. * @property {number|Long|null} [pos] altar_reset_cd_rsp pos
  31428. * @property {game.Ialtar_info|null} [data] altar_reset_cd_rsp data
  31429. */
  31430. /**
  31431. * Constructs a new altar_reset_cd_rsp.
  31432. * @memberof game
  31433. * @classdesc Represents an altar_reset_cd_rsp.
  31434. * @implements Ialtar_reset_cd_rsp
  31435. * @constructor
  31436. * @param {game.Ialtar_reset_cd_rsp=} [properties] Properties to set
  31437. */
  31438. function altar_reset_cd_rsp(properties) {
  31439. if (properties)
  31440. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  31441. if (properties[keys[i]] != null)
  31442. this[keys[i]] = properties[keys[i]];
  31443. }
  31444. /**
  31445. * altar_reset_cd_rsp errno.
  31446. * @member {number|Long} errno
  31447. * @memberof game.altar_reset_cd_rsp
  31448. * @instance
  31449. */
  31450. altar_reset_cd_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  31451. /**
  31452. * altar_reset_cd_rsp pos.
  31453. * @member {number|Long} pos
  31454. * @memberof game.altar_reset_cd_rsp
  31455. * @instance
  31456. */
  31457. altar_reset_cd_rsp.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  31458. /**
  31459. * altar_reset_cd_rsp data.
  31460. * @member {game.Ialtar_info|null|undefined} data
  31461. * @memberof game.altar_reset_cd_rsp
  31462. * @instance
  31463. */
  31464. altar_reset_cd_rsp.prototype.data = null;
  31465. /**
  31466. * Creates a new altar_reset_cd_rsp instance using the specified properties.
  31467. * @function create
  31468. * @memberof game.altar_reset_cd_rsp
  31469. * @static
  31470. * @param {game.Ialtar_reset_cd_rsp=} [properties] Properties to set
  31471. * @returns {game.altar_reset_cd_rsp} altar_reset_cd_rsp instance
  31472. */
  31473. altar_reset_cd_rsp.create = function create(properties) {
  31474. return new altar_reset_cd_rsp(properties);
  31475. };
  31476. /**
  31477. * Encodes the specified altar_reset_cd_rsp message. Does not implicitly {@link game.altar_reset_cd_rsp.verify|verify} messages.
  31478. * @function encode
  31479. * @memberof game.altar_reset_cd_rsp
  31480. * @static
  31481. * @param {game.Ialtar_reset_cd_rsp} message altar_reset_cd_rsp message or plain object to encode
  31482. * @param {$protobuf.Writer} [writer] Writer to encode to
  31483. * @returns {$protobuf.Writer} Writer
  31484. */
  31485. altar_reset_cd_rsp.encode = function encode(message, writer) {
  31486. if (!writer)
  31487. writer = $Writer.create();
  31488. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  31489. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  31490. if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
  31491. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.pos);
  31492. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  31493. $root.game.altar_info.encode(message.data, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
  31494. return writer;
  31495. };
  31496. /**
  31497. * Encodes the specified altar_reset_cd_rsp message, length delimited. Does not implicitly {@link game.altar_reset_cd_rsp.verify|verify} messages.
  31498. * @function encodeDelimited
  31499. * @memberof game.altar_reset_cd_rsp
  31500. * @static
  31501. * @param {game.Ialtar_reset_cd_rsp} message altar_reset_cd_rsp message or plain object to encode
  31502. * @param {$protobuf.Writer} [writer] Writer to encode to
  31503. * @returns {$protobuf.Writer} Writer
  31504. */
  31505. altar_reset_cd_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  31506. return this.encode(message, writer).ldelim();
  31507. };
  31508. /**
  31509. * Decodes an altar_reset_cd_rsp message from the specified reader or buffer.
  31510. * @function decode
  31511. * @memberof game.altar_reset_cd_rsp
  31512. * @static
  31513. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  31514. * @param {number} [length] Message length if known beforehand
  31515. * @returns {game.altar_reset_cd_rsp} altar_reset_cd_rsp
  31516. * @throws {Error} If the payload is not a reader or valid buffer
  31517. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  31518. */
  31519. altar_reset_cd_rsp.decode = function decode(reader, length) {
  31520. if (!(reader instanceof $Reader))
  31521. reader = $Reader.create(reader);
  31522. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.altar_reset_cd_rsp();
  31523. while (reader.pos < end) {
  31524. let tag = reader.uint32();
  31525. switch (tag >>> 3) {
  31526. case 1:
  31527. message.errno = reader.int64();
  31528. break;
  31529. case 2:
  31530. message.pos = reader.int64();
  31531. break;
  31532. case 3:
  31533. message.data = $root.game.altar_info.decode(reader, reader.uint32());
  31534. break;
  31535. default:
  31536. reader.skipType(tag & 7);
  31537. break;
  31538. }
  31539. }
  31540. return message;
  31541. };
  31542. /**
  31543. * Decodes an altar_reset_cd_rsp message from the specified reader or buffer, length delimited.
  31544. * @function decodeDelimited
  31545. * @memberof game.altar_reset_cd_rsp
  31546. * @static
  31547. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  31548. * @returns {game.altar_reset_cd_rsp} altar_reset_cd_rsp
  31549. * @throws {Error} If the payload is not a reader or valid buffer
  31550. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  31551. */
  31552. altar_reset_cd_rsp.decodeDelimited = function decodeDelimited(reader) {
  31553. if (!(reader instanceof $Reader))
  31554. reader = new $Reader(reader);
  31555. return this.decode(reader, reader.uint32());
  31556. };
  31557. /**
  31558. * Verifies an altar_reset_cd_rsp message.
  31559. * @function verify
  31560. * @memberof game.altar_reset_cd_rsp
  31561. * @static
  31562. * @param {Object.<string,*>} message Plain object to verify
  31563. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  31564. */
  31565. altar_reset_cd_rsp.verify = function verify(message) {
  31566. if (typeof message !== "object" || message === null)
  31567. return "object expected";
  31568. if (message.errno != null && message.hasOwnProperty("errno"))
  31569. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  31570. return "errno: integer|Long expected";
  31571. if (message.pos != null && message.hasOwnProperty("pos"))
  31572. if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
  31573. return "pos: integer|Long expected";
  31574. if (message.data != null && message.hasOwnProperty("data")) {
  31575. let error = $root.game.altar_info.verify(message.data);
  31576. if (error)
  31577. return "data." + error;
  31578. }
  31579. return null;
  31580. };
  31581. /**
  31582. * Creates an altar_reset_cd_rsp message from a plain object. Also converts values to their respective internal types.
  31583. * @function fromObject
  31584. * @memberof game.altar_reset_cd_rsp
  31585. * @static
  31586. * @param {Object.<string,*>} object Plain object
  31587. * @returns {game.altar_reset_cd_rsp} altar_reset_cd_rsp
  31588. */
  31589. altar_reset_cd_rsp.fromObject = function fromObject(object) {
  31590. if (object instanceof $root.game.altar_reset_cd_rsp)
  31591. return object;
  31592. let message = new $root.game.altar_reset_cd_rsp();
  31593. if (object.errno != null)
  31594. if ($util.Long)
  31595. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  31596. else if (typeof object.errno === "string")
  31597. message.errno = parseInt(object.errno, 10);
  31598. else if (typeof object.errno === "number")
  31599. message.errno = object.errno;
  31600. else if (typeof object.errno === "object")
  31601. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  31602. if (object.pos != null)
  31603. if ($util.Long)
  31604. (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
  31605. else if (typeof object.pos === "string")
  31606. message.pos = parseInt(object.pos, 10);
  31607. else if (typeof object.pos === "number")
  31608. message.pos = object.pos;
  31609. else if (typeof object.pos === "object")
  31610. message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
  31611. if (object.data != null) {
  31612. if (typeof object.data !== "object")
  31613. throw TypeError(".game.altar_reset_cd_rsp.data: object expected");
  31614. message.data = $root.game.altar_info.fromObject(object.data);
  31615. }
  31616. return message;
  31617. };
  31618. /**
  31619. * Creates a plain object from an altar_reset_cd_rsp message. Also converts values to other types if specified.
  31620. * @function toObject
  31621. * @memberof game.altar_reset_cd_rsp
  31622. * @static
  31623. * @param {game.altar_reset_cd_rsp} message altar_reset_cd_rsp
  31624. * @param {$protobuf.IConversionOptions} [options] Conversion options
  31625. * @returns {Object.<string,*>} Plain object
  31626. */
  31627. altar_reset_cd_rsp.toObject = function toObject(message, options) {
  31628. if (!options)
  31629. options = {};
  31630. let object = {};
  31631. if (options.defaults) {
  31632. if ($util.Long) {
  31633. let long = new $util.Long(0, 0, false);
  31634. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  31635. } else
  31636. object.errno = options.longs === String ? "0" : 0;
  31637. if ($util.Long) {
  31638. let long = new $util.Long(0, 0, false);
  31639. object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  31640. } else
  31641. object.pos = options.longs === String ? "0" : 0;
  31642. object.data = null;
  31643. }
  31644. if (message.errno != null && message.hasOwnProperty("errno"))
  31645. if (typeof message.errno === "number")
  31646. object.errno = options.longs === String ? String(message.errno) : message.errno;
  31647. else
  31648. 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;
  31649. if (message.pos != null && message.hasOwnProperty("pos"))
  31650. if (typeof message.pos === "number")
  31651. object.pos = options.longs === String ? String(message.pos) : message.pos;
  31652. else
  31653. 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;
  31654. if (message.data != null && message.hasOwnProperty("data"))
  31655. object.data = $root.game.altar_info.toObject(message.data, options);
  31656. return object;
  31657. };
  31658. /**
  31659. * Converts this altar_reset_cd_rsp to JSON.
  31660. * @function toJSON
  31661. * @memberof game.altar_reset_cd_rsp
  31662. * @instance
  31663. * @returns {Object.<string,*>} JSON object
  31664. */
  31665. altar_reset_cd_rsp.prototype.toJSON = function toJSON() {
  31666. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  31667. };
  31668. return altar_reset_cd_rsp;
  31669. })();
  31670. game.relic_data = (function() {
  31671. /**
  31672. * Properties of a relic_data.
  31673. * @memberof game
  31674. * @interface Irelic_data
  31675. */
  31676. /**
  31677. * Constructs a new relic_data.
  31678. * @memberof game
  31679. * @classdesc Represents a relic_data.
  31680. * @implements Irelic_data
  31681. * @constructor
  31682. * @param {game.Irelic_data=} [properties] Properties to set
  31683. */
  31684. function relic_data(properties) {
  31685. if (properties)
  31686. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  31687. if (properties[keys[i]] != null)
  31688. this[keys[i]] = properties[keys[i]];
  31689. }
  31690. /**
  31691. * Creates a new relic_data instance using the specified properties.
  31692. * @function create
  31693. * @memberof game.relic_data
  31694. * @static
  31695. * @param {game.Irelic_data=} [properties] Properties to set
  31696. * @returns {game.relic_data} relic_data instance
  31697. */
  31698. relic_data.create = function create(properties) {
  31699. return new relic_data(properties);
  31700. };
  31701. /**
  31702. * Encodes the specified relic_data message. Does not implicitly {@link game.relic_data.verify|verify} messages.
  31703. * @function encode
  31704. * @memberof game.relic_data
  31705. * @static
  31706. * @param {game.Irelic_data} message relic_data message or plain object to encode
  31707. * @param {$protobuf.Writer} [writer] Writer to encode to
  31708. * @returns {$protobuf.Writer} Writer
  31709. */
  31710. relic_data.encode = function encode(message, writer) {
  31711. if (!writer)
  31712. writer = $Writer.create();
  31713. return writer;
  31714. };
  31715. /**
  31716. * Encodes the specified relic_data message, length delimited. Does not implicitly {@link game.relic_data.verify|verify} messages.
  31717. * @function encodeDelimited
  31718. * @memberof game.relic_data
  31719. * @static
  31720. * @param {game.Irelic_data} message relic_data message or plain object to encode
  31721. * @param {$protobuf.Writer} [writer] Writer to encode to
  31722. * @returns {$protobuf.Writer} Writer
  31723. */
  31724. relic_data.encodeDelimited = function encodeDelimited(message, writer) {
  31725. return this.encode(message, writer).ldelim();
  31726. };
  31727. /**
  31728. * Decodes a relic_data message from the specified reader or buffer.
  31729. * @function decode
  31730. * @memberof game.relic_data
  31731. * @static
  31732. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  31733. * @param {number} [length] Message length if known beforehand
  31734. * @returns {game.relic_data} relic_data
  31735. * @throws {Error} If the payload is not a reader or valid buffer
  31736. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  31737. */
  31738. relic_data.decode = function decode(reader, length) {
  31739. if (!(reader instanceof $Reader))
  31740. reader = $Reader.create(reader);
  31741. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_data();
  31742. while (reader.pos < end) {
  31743. let tag = reader.uint32();
  31744. switch (tag >>> 3) {
  31745. default:
  31746. reader.skipType(tag & 7);
  31747. break;
  31748. }
  31749. }
  31750. return message;
  31751. };
  31752. /**
  31753. * Decodes a relic_data message from the specified reader or buffer, length delimited.
  31754. * @function decodeDelimited
  31755. * @memberof game.relic_data
  31756. * @static
  31757. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  31758. * @returns {game.relic_data} relic_data
  31759. * @throws {Error} If the payload is not a reader or valid buffer
  31760. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  31761. */
  31762. relic_data.decodeDelimited = function decodeDelimited(reader) {
  31763. if (!(reader instanceof $Reader))
  31764. reader = new $Reader(reader);
  31765. return this.decode(reader, reader.uint32());
  31766. };
  31767. /**
  31768. * Verifies a relic_data message.
  31769. * @function verify
  31770. * @memberof game.relic_data
  31771. * @static
  31772. * @param {Object.<string,*>} message Plain object to verify
  31773. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  31774. */
  31775. relic_data.verify = function verify(message) {
  31776. if (typeof message !== "object" || message === null)
  31777. return "object expected";
  31778. return null;
  31779. };
  31780. /**
  31781. * Creates a relic_data message from a plain object. Also converts values to their respective internal types.
  31782. * @function fromObject
  31783. * @memberof game.relic_data
  31784. * @static
  31785. * @param {Object.<string,*>} object Plain object
  31786. * @returns {game.relic_data} relic_data
  31787. */
  31788. relic_data.fromObject = function fromObject(object) {
  31789. if (object instanceof $root.game.relic_data)
  31790. return object;
  31791. return new $root.game.relic_data();
  31792. };
  31793. /**
  31794. * Creates a plain object from a relic_data message. Also converts values to other types if specified.
  31795. * @function toObject
  31796. * @memberof game.relic_data
  31797. * @static
  31798. * @param {game.relic_data} message relic_data
  31799. * @param {$protobuf.IConversionOptions} [options] Conversion options
  31800. * @returns {Object.<string,*>} Plain object
  31801. */
  31802. relic_data.toObject = function toObject() {
  31803. return {};
  31804. };
  31805. /**
  31806. * Converts this relic_data to JSON.
  31807. * @function toJSON
  31808. * @memberof game.relic_data
  31809. * @instance
  31810. * @returns {Object.<string,*>} JSON object
  31811. */
  31812. relic_data.prototype.toJSON = function toJSON() {
  31813. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  31814. };
  31815. return relic_data;
  31816. })();
  31817. game.relic_data_rsp = (function() {
  31818. /**
  31819. * Properties of a relic_data_rsp.
  31820. * @memberof game
  31821. * @interface Irelic_data_rsp
  31822. * @property {number|Long|null} [errno] relic_data_rsp errno
  31823. */
  31824. /**
  31825. * Constructs a new relic_data_rsp.
  31826. * @memberof game
  31827. * @classdesc Represents a relic_data_rsp.
  31828. * @implements Irelic_data_rsp
  31829. * @constructor
  31830. * @param {game.Irelic_data_rsp=} [properties] Properties to set
  31831. */
  31832. function relic_data_rsp(properties) {
  31833. if (properties)
  31834. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  31835. if (properties[keys[i]] != null)
  31836. this[keys[i]] = properties[keys[i]];
  31837. }
  31838. /**
  31839. * relic_data_rsp errno.
  31840. * @member {number|Long} errno
  31841. * @memberof game.relic_data_rsp
  31842. * @instance
  31843. */
  31844. relic_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  31845. /**
  31846. * Creates a new relic_data_rsp instance using the specified properties.
  31847. * @function create
  31848. * @memberof game.relic_data_rsp
  31849. * @static
  31850. * @param {game.Irelic_data_rsp=} [properties] Properties to set
  31851. * @returns {game.relic_data_rsp} relic_data_rsp instance
  31852. */
  31853. relic_data_rsp.create = function create(properties) {
  31854. return new relic_data_rsp(properties);
  31855. };
  31856. /**
  31857. * Encodes the specified relic_data_rsp message. Does not implicitly {@link game.relic_data_rsp.verify|verify} messages.
  31858. * @function encode
  31859. * @memberof game.relic_data_rsp
  31860. * @static
  31861. * @param {game.Irelic_data_rsp} message relic_data_rsp message or plain object to encode
  31862. * @param {$protobuf.Writer} [writer] Writer to encode to
  31863. * @returns {$protobuf.Writer} Writer
  31864. */
  31865. relic_data_rsp.encode = function encode(message, writer) {
  31866. if (!writer)
  31867. writer = $Writer.create();
  31868. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  31869. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  31870. return writer;
  31871. };
  31872. /**
  31873. * Encodes the specified relic_data_rsp message, length delimited. Does not implicitly {@link game.relic_data_rsp.verify|verify} messages.
  31874. * @function encodeDelimited
  31875. * @memberof game.relic_data_rsp
  31876. * @static
  31877. * @param {game.Irelic_data_rsp} message relic_data_rsp message or plain object to encode
  31878. * @param {$protobuf.Writer} [writer] Writer to encode to
  31879. * @returns {$protobuf.Writer} Writer
  31880. */
  31881. relic_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  31882. return this.encode(message, writer).ldelim();
  31883. };
  31884. /**
  31885. * Decodes a relic_data_rsp message from the specified reader or buffer.
  31886. * @function decode
  31887. * @memberof game.relic_data_rsp
  31888. * @static
  31889. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  31890. * @param {number} [length] Message length if known beforehand
  31891. * @returns {game.relic_data_rsp} relic_data_rsp
  31892. * @throws {Error} If the payload is not a reader or valid buffer
  31893. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  31894. */
  31895. relic_data_rsp.decode = function decode(reader, length) {
  31896. if (!(reader instanceof $Reader))
  31897. reader = $Reader.create(reader);
  31898. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_data_rsp();
  31899. while (reader.pos < end) {
  31900. let tag = reader.uint32();
  31901. switch (tag >>> 3) {
  31902. case 1:
  31903. message.errno = reader.int64();
  31904. break;
  31905. default:
  31906. reader.skipType(tag & 7);
  31907. break;
  31908. }
  31909. }
  31910. return message;
  31911. };
  31912. /**
  31913. * Decodes a relic_data_rsp message from the specified reader or buffer, length delimited.
  31914. * @function decodeDelimited
  31915. * @memberof game.relic_data_rsp
  31916. * @static
  31917. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  31918. * @returns {game.relic_data_rsp} relic_data_rsp
  31919. * @throws {Error} If the payload is not a reader or valid buffer
  31920. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  31921. */
  31922. relic_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  31923. if (!(reader instanceof $Reader))
  31924. reader = new $Reader(reader);
  31925. return this.decode(reader, reader.uint32());
  31926. };
  31927. /**
  31928. * Verifies a relic_data_rsp message.
  31929. * @function verify
  31930. * @memberof game.relic_data_rsp
  31931. * @static
  31932. * @param {Object.<string,*>} message Plain object to verify
  31933. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  31934. */
  31935. relic_data_rsp.verify = function verify(message) {
  31936. if (typeof message !== "object" || message === null)
  31937. return "object expected";
  31938. if (message.errno != null && message.hasOwnProperty("errno"))
  31939. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  31940. return "errno: integer|Long expected";
  31941. return null;
  31942. };
  31943. /**
  31944. * Creates a relic_data_rsp message from a plain object. Also converts values to their respective internal types.
  31945. * @function fromObject
  31946. * @memberof game.relic_data_rsp
  31947. * @static
  31948. * @param {Object.<string,*>} object Plain object
  31949. * @returns {game.relic_data_rsp} relic_data_rsp
  31950. */
  31951. relic_data_rsp.fromObject = function fromObject(object) {
  31952. if (object instanceof $root.game.relic_data_rsp)
  31953. return object;
  31954. let message = new $root.game.relic_data_rsp();
  31955. if (object.errno != null)
  31956. if ($util.Long)
  31957. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  31958. else if (typeof object.errno === "string")
  31959. message.errno = parseInt(object.errno, 10);
  31960. else if (typeof object.errno === "number")
  31961. message.errno = object.errno;
  31962. else if (typeof object.errno === "object")
  31963. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  31964. return message;
  31965. };
  31966. /**
  31967. * Creates a plain object from a relic_data_rsp message. Also converts values to other types if specified.
  31968. * @function toObject
  31969. * @memberof game.relic_data_rsp
  31970. * @static
  31971. * @param {game.relic_data_rsp} message relic_data_rsp
  31972. * @param {$protobuf.IConversionOptions} [options] Conversion options
  31973. * @returns {Object.<string,*>} Plain object
  31974. */
  31975. relic_data_rsp.toObject = function toObject(message, options) {
  31976. if (!options)
  31977. options = {};
  31978. let object = {};
  31979. if (options.defaults)
  31980. if ($util.Long) {
  31981. let long = new $util.Long(0, 0, false);
  31982. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  31983. } else
  31984. object.errno = options.longs === String ? "0" : 0;
  31985. if (message.errno != null && message.hasOwnProperty("errno"))
  31986. if (typeof message.errno === "number")
  31987. object.errno = options.longs === String ? String(message.errno) : message.errno;
  31988. else
  31989. 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;
  31990. return object;
  31991. };
  31992. /**
  31993. * Converts this relic_data_rsp to JSON.
  31994. * @function toJSON
  31995. * @memberof game.relic_data_rsp
  31996. * @instance
  31997. * @returns {Object.<string,*>} JSON object
  31998. */
  31999. relic_data_rsp.prototype.toJSON = function toJSON() {
  32000. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  32001. };
  32002. return relic_data_rsp;
  32003. })();
  32004. game.relic_next_pos = (function() {
  32005. /**
  32006. * Properties of a relic_next_pos.
  32007. * @memberof game
  32008. * @interface Irelic_next_pos
  32009. * @property {number|Long|null} [pos] relic_next_pos pos
  32010. */
  32011. /**
  32012. * Constructs a new relic_next_pos.
  32013. * @memberof game
  32014. * @classdesc Represents a relic_next_pos.
  32015. * @implements Irelic_next_pos
  32016. * @constructor
  32017. * @param {game.Irelic_next_pos=} [properties] Properties to set
  32018. */
  32019. function relic_next_pos(properties) {
  32020. if (properties)
  32021. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  32022. if (properties[keys[i]] != null)
  32023. this[keys[i]] = properties[keys[i]];
  32024. }
  32025. /**
  32026. * relic_next_pos pos.
  32027. * @member {number|Long} pos
  32028. * @memberof game.relic_next_pos
  32029. * @instance
  32030. */
  32031. relic_next_pos.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  32032. /**
  32033. * Creates a new relic_next_pos instance using the specified properties.
  32034. * @function create
  32035. * @memberof game.relic_next_pos
  32036. * @static
  32037. * @param {game.Irelic_next_pos=} [properties] Properties to set
  32038. * @returns {game.relic_next_pos} relic_next_pos instance
  32039. */
  32040. relic_next_pos.create = function create(properties) {
  32041. return new relic_next_pos(properties);
  32042. };
  32043. /**
  32044. * Encodes the specified relic_next_pos message. Does not implicitly {@link game.relic_next_pos.verify|verify} messages.
  32045. * @function encode
  32046. * @memberof game.relic_next_pos
  32047. * @static
  32048. * @param {game.Irelic_next_pos} message relic_next_pos message or plain object to encode
  32049. * @param {$protobuf.Writer} [writer] Writer to encode to
  32050. * @returns {$protobuf.Writer} Writer
  32051. */
  32052. relic_next_pos.encode = function encode(message, writer) {
  32053. if (!writer)
  32054. writer = $Writer.create();
  32055. if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
  32056. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.pos);
  32057. return writer;
  32058. };
  32059. /**
  32060. * Encodes the specified relic_next_pos message, length delimited. Does not implicitly {@link game.relic_next_pos.verify|verify} messages.
  32061. * @function encodeDelimited
  32062. * @memberof game.relic_next_pos
  32063. * @static
  32064. * @param {game.Irelic_next_pos} message relic_next_pos message or plain object to encode
  32065. * @param {$protobuf.Writer} [writer] Writer to encode to
  32066. * @returns {$protobuf.Writer} Writer
  32067. */
  32068. relic_next_pos.encodeDelimited = function encodeDelimited(message, writer) {
  32069. return this.encode(message, writer).ldelim();
  32070. };
  32071. /**
  32072. * Decodes a relic_next_pos message from the specified reader or buffer.
  32073. * @function decode
  32074. * @memberof game.relic_next_pos
  32075. * @static
  32076. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  32077. * @param {number} [length] Message length if known beforehand
  32078. * @returns {game.relic_next_pos} relic_next_pos
  32079. * @throws {Error} If the payload is not a reader or valid buffer
  32080. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  32081. */
  32082. relic_next_pos.decode = function decode(reader, length) {
  32083. if (!(reader instanceof $Reader))
  32084. reader = $Reader.create(reader);
  32085. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_next_pos();
  32086. while (reader.pos < end) {
  32087. let tag = reader.uint32();
  32088. switch (tag >>> 3) {
  32089. case 1:
  32090. message.pos = reader.int64();
  32091. break;
  32092. default:
  32093. reader.skipType(tag & 7);
  32094. break;
  32095. }
  32096. }
  32097. return message;
  32098. };
  32099. /**
  32100. * Decodes a relic_next_pos message from the specified reader or buffer, length delimited.
  32101. * @function decodeDelimited
  32102. * @memberof game.relic_next_pos
  32103. * @static
  32104. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  32105. * @returns {game.relic_next_pos} relic_next_pos
  32106. * @throws {Error} If the payload is not a reader or valid buffer
  32107. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  32108. */
  32109. relic_next_pos.decodeDelimited = function decodeDelimited(reader) {
  32110. if (!(reader instanceof $Reader))
  32111. reader = new $Reader(reader);
  32112. return this.decode(reader, reader.uint32());
  32113. };
  32114. /**
  32115. * Verifies a relic_next_pos message.
  32116. * @function verify
  32117. * @memberof game.relic_next_pos
  32118. * @static
  32119. * @param {Object.<string,*>} message Plain object to verify
  32120. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  32121. */
  32122. relic_next_pos.verify = function verify(message) {
  32123. if (typeof message !== "object" || message === null)
  32124. return "object expected";
  32125. if (message.pos != null && message.hasOwnProperty("pos"))
  32126. if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
  32127. return "pos: integer|Long expected";
  32128. return null;
  32129. };
  32130. /**
  32131. * Creates a relic_next_pos message from a plain object. Also converts values to their respective internal types.
  32132. * @function fromObject
  32133. * @memberof game.relic_next_pos
  32134. * @static
  32135. * @param {Object.<string,*>} object Plain object
  32136. * @returns {game.relic_next_pos} relic_next_pos
  32137. */
  32138. relic_next_pos.fromObject = function fromObject(object) {
  32139. if (object instanceof $root.game.relic_next_pos)
  32140. return object;
  32141. let message = new $root.game.relic_next_pos();
  32142. if (object.pos != null)
  32143. if ($util.Long)
  32144. (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
  32145. else if (typeof object.pos === "string")
  32146. message.pos = parseInt(object.pos, 10);
  32147. else if (typeof object.pos === "number")
  32148. message.pos = object.pos;
  32149. else if (typeof object.pos === "object")
  32150. message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
  32151. return message;
  32152. };
  32153. /**
  32154. * Creates a plain object from a relic_next_pos message. Also converts values to other types if specified.
  32155. * @function toObject
  32156. * @memberof game.relic_next_pos
  32157. * @static
  32158. * @param {game.relic_next_pos} message relic_next_pos
  32159. * @param {$protobuf.IConversionOptions} [options] Conversion options
  32160. * @returns {Object.<string,*>} Plain object
  32161. */
  32162. relic_next_pos.toObject = function toObject(message, options) {
  32163. if (!options)
  32164. options = {};
  32165. let object = {};
  32166. if (options.defaults)
  32167. if ($util.Long) {
  32168. let long = new $util.Long(0, 0, false);
  32169. object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  32170. } else
  32171. object.pos = options.longs === String ? "0" : 0;
  32172. if (message.pos != null && message.hasOwnProperty("pos"))
  32173. if (typeof message.pos === "number")
  32174. object.pos = options.longs === String ? String(message.pos) : message.pos;
  32175. else
  32176. 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;
  32177. return object;
  32178. };
  32179. /**
  32180. * Converts this relic_next_pos to JSON.
  32181. * @function toJSON
  32182. * @memberof game.relic_next_pos
  32183. * @instance
  32184. * @returns {Object.<string,*>} JSON object
  32185. */
  32186. relic_next_pos.prototype.toJSON = function toJSON() {
  32187. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  32188. };
  32189. return relic_next_pos;
  32190. })();
  32191. game.relic_next_pos_rsp = (function() {
  32192. /**
  32193. * Properties of a relic_next_pos_rsp.
  32194. * @memberof game
  32195. * @interface Irelic_next_pos_rsp
  32196. * @property {number|Long|null} [errno] relic_next_pos_rsp errno
  32197. */
  32198. /**
  32199. * Constructs a new relic_next_pos_rsp.
  32200. * @memberof game
  32201. * @classdesc Represents a relic_next_pos_rsp.
  32202. * @implements Irelic_next_pos_rsp
  32203. * @constructor
  32204. * @param {game.Irelic_next_pos_rsp=} [properties] Properties to set
  32205. */
  32206. function relic_next_pos_rsp(properties) {
  32207. if (properties)
  32208. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  32209. if (properties[keys[i]] != null)
  32210. this[keys[i]] = properties[keys[i]];
  32211. }
  32212. /**
  32213. * relic_next_pos_rsp errno.
  32214. * @member {number|Long} errno
  32215. * @memberof game.relic_next_pos_rsp
  32216. * @instance
  32217. */
  32218. relic_next_pos_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  32219. /**
  32220. * Creates a new relic_next_pos_rsp instance using the specified properties.
  32221. * @function create
  32222. * @memberof game.relic_next_pos_rsp
  32223. * @static
  32224. * @param {game.Irelic_next_pos_rsp=} [properties] Properties to set
  32225. * @returns {game.relic_next_pos_rsp} relic_next_pos_rsp instance
  32226. */
  32227. relic_next_pos_rsp.create = function create(properties) {
  32228. return new relic_next_pos_rsp(properties);
  32229. };
  32230. /**
  32231. * Encodes the specified relic_next_pos_rsp message. Does not implicitly {@link game.relic_next_pos_rsp.verify|verify} messages.
  32232. * @function encode
  32233. * @memberof game.relic_next_pos_rsp
  32234. * @static
  32235. * @param {game.Irelic_next_pos_rsp} message relic_next_pos_rsp message or plain object to encode
  32236. * @param {$protobuf.Writer} [writer] Writer to encode to
  32237. * @returns {$protobuf.Writer} Writer
  32238. */
  32239. relic_next_pos_rsp.encode = function encode(message, writer) {
  32240. if (!writer)
  32241. writer = $Writer.create();
  32242. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  32243. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  32244. return writer;
  32245. };
  32246. /**
  32247. * Encodes the specified relic_next_pos_rsp message, length delimited. Does not implicitly {@link game.relic_next_pos_rsp.verify|verify} messages.
  32248. * @function encodeDelimited
  32249. * @memberof game.relic_next_pos_rsp
  32250. * @static
  32251. * @param {game.Irelic_next_pos_rsp} message relic_next_pos_rsp message or plain object to encode
  32252. * @param {$protobuf.Writer} [writer] Writer to encode to
  32253. * @returns {$protobuf.Writer} Writer
  32254. */
  32255. relic_next_pos_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  32256. return this.encode(message, writer).ldelim();
  32257. };
  32258. /**
  32259. * Decodes a relic_next_pos_rsp message from the specified reader or buffer.
  32260. * @function decode
  32261. * @memberof game.relic_next_pos_rsp
  32262. * @static
  32263. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  32264. * @param {number} [length] Message length if known beforehand
  32265. * @returns {game.relic_next_pos_rsp} relic_next_pos_rsp
  32266. * @throws {Error} If the payload is not a reader or valid buffer
  32267. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  32268. */
  32269. relic_next_pos_rsp.decode = function decode(reader, length) {
  32270. if (!(reader instanceof $Reader))
  32271. reader = $Reader.create(reader);
  32272. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_next_pos_rsp();
  32273. while (reader.pos < end) {
  32274. let tag = reader.uint32();
  32275. switch (tag >>> 3) {
  32276. case 1:
  32277. message.errno = reader.int64();
  32278. break;
  32279. default:
  32280. reader.skipType(tag & 7);
  32281. break;
  32282. }
  32283. }
  32284. return message;
  32285. };
  32286. /**
  32287. * Decodes a relic_next_pos_rsp message from the specified reader or buffer, length delimited.
  32288. * @function decodeDelimited
  32289. * @memberof game.relic_next_pos_rsp
  32290. * @static
  32291. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  32292. * @returns {game.relic_next_pos_rsp} relic_next_pos_rsp
  32293. * @throws {Error} If the payload is not a reader or valid buffer
  32294. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  32295. */
  32296. relic_next_pos_rsp.decodeDelimited = function decodeDelimited(reader) {
  32297. if (!(reader instanceof $Reader))
  32298. reader = new $Reader(reader);
  32299. return this.decode(reader, reader.uint32());
  32300. };
  32301. /**
  32302. * Verifies a relic_next_pos_rsp message.
  32303. * @function verify
  32304. * @memberof game.relic_next_pos_rsp
  32305. * @static
  32306. * @param {Object.<string,*>} message Plain object to verify
  32307. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  32308. */
  32309. relic_next_pos_rsp.verify = function verify(message) {
  32310. if (typeof message !== "object" || message === null)
  32311. return "object expected";
  32312. if (message.errno != null && message.hasOwnProperty("errno"))
  32313. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  32314. return "errno: integer|Long expected";
  32315. return null;
  32316. };
  32317. /**
  32318. * Creates a relic_next_pos_rsp message from a plain object. Also converts values to their respective internal types.
  32319. * @function fromObject
  32320. * @memberof game.relic_next_pos_rsp
  32321. * @static
  32322. * @param {Object.<string,*>} object Plain object
  32323. * @returns {game.relic_next_pos_rsp} relic_next_pos_rsp
  32324. */
  32325. relic_next_pos_rsp.fromObject = function fromObject(object) {
  32326. if (object instanceof $root.game.relic_next_pos_rsp)
  32327. return object;
  32328. let message = new $root.game.relic_next_pos_rsp();
  32329. if (object.errno != null)
  32330. if ($util.Long)
  32331. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  32332. else if (typeof object.errno === "string")
  32333. message.errno = parseInt(object.errno, 10);
  32334. else if (typeof object.errno === "number")
  32335. message.errno = object.errno;
  32336. else if (typeof object.errno === "object")
  32337. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  32338. return message;
  32339. };
  32340. /**
  32341. * Creates a plain object from a relic_next_pos_rsp message. Also converts values to other types if specified.
  32342. * @function toObject
  32343. * @memberof game.relic_next_pos_rsp
  32344. * @static
  32345. * @param {game.relic_next_pos_rsp} message relic_next_pos_rsp
  32346. * @param {$protobuf.IConversionOptions} [options] Conversion options
  32347. * @returns {Object.<string,*>} Plain object
  32348. */
  32349. relic_next_pos_rsp.toObject = function toObject(message, options) {
  32350. if (!options)
  32351. options = {};
  32352. let object = {};
  32353. if (options.defaults)
  32354. if ($util.Long) {
  32355. let long = new $util.Long(0, 0, false);
  32356. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  32357. } else
  32358. object.errno = options.longs === String ? "0" : 0;
  32359. if (message.errno != null && message.hasOwnProperty("errno"))
  32360. if (typeof message.errno === "number")
  32361. object.errno = options.longs === String ? String(message.errno) : message.errno;
  32362. else
  32363. 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;
  32364. return object;
  32365. };
  32366. /**
  32367. * Converts this relic_next_pos_rsp to JSON.
  32368. * @function toJSON
  32369. * @memberof game.relic_next_pos_rsp
  32370. * @instance
  32371. * @returns {Object.<string,*>} JSON object
  32372. */
  32373. relic_next_pos_rsp.prototype.toJSON = function toJSON() {
  32374. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  32375. };
  32376. return relic_next_pos_rsp;
  32377. })();
  32378. game.relic_next_layer = (function() {
  32379. /**
  32380. * Properties of a relic_next_layer.
  32381. * @memberof game
  32382. * @interface Irelic_next_layer
  32383. */
  32384. /**
  32385. * Constructs a new relic_next_layer.
  32386. * @memberof game
  32387. * @classdesc Represents a relic_next_layer.
  32388. * @implements Irelic_next_layer
  32389. * @constructor
  32390. * @param {game.Irelic_next_layer=} [properties] Properties to set
  32391. */
  32392. function relic_next_layer(properties) {
  32393. if (properties)
  32394. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  32395. if (properties[keys[i]] != null)
  32396. this[keys[i]] = properties[keys[i]];
  32397. }
  32398. /**
  32399. * Creates a new relic_next_layer instance using the specified properties.
  32400. * @function create
  32401. * @memberof game.relic_next_layer
  32402. * @static
  32403. * @param {game.Irelic_next_layer=} [properties] Properties to set
  32404. * @returns {game.relic_next_layer} relic_next_layer instance
  32405. */
  32406. relic_next_layer.create = function create(properties) {
  32407. return new relic_next_layer(properties);
  32408. };
  32409. /**
  32410. * Encodes the specified relic_next_layer message. Does not implicitly {@link game.relic_next_layer.verify|verify} messages.
  32411. * @function encode
  32412. * @memberof game.relic_next_layer
  32413. * @static
  32414. * @param {game.Irelic_next_layer} message relic_next_layer message or plain object to encode
  32415. * @param {$protobuf.Writer} [writer] Writer to encode to
  32416. * @returns {$protobuf.Writer} Writer
  32417. */
  32418. relic_next_layer.encode = function encode(message, writer) {
  32419. if (!writer)
  32420. writer = $Writer.create();
  32421. return writer;
  32422. };
  32423. /**
  32424. * Encodes the specified relic_next_layer message, length delimited. Does not implicitly {@link game.relic_next_layer.verify|verify} messages.
  32425. * @function encodeDelimited
  32426. * @memberof game.relic_next_layer
  32427. * @static
  32428. * @param {game.Irelic_next_layer} message relic_next_layer message or plain object to encode
  32429. * @param {$protobuf.Writer} [writer] Writer to encode to
  32430. * @returns {$protobuf.Writer} Writer
  32431. */
  32432. relic_next_layer.encodeDelimited = function encodeDelimited(message, writer) {
  32433. return this.encode(message, writer).ldelim();
  32434. };
  32435. /**
  32436. * Decodes a relic_next_layer message from the specified reader or buffer.
  32437. * @function decode
  32438. * @memberof game.relic_next_layer
  32439. * @static
  32440. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  32441. * @param {number} [length] Message length if known beforehand
  32442. * @returns {game.relic_next_layer} relic_next_layer
  32443. * @throws {Error} If the payload is not a reader or valid buffer
  32444. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  32445. */
  32446. relic_next_layer.decode = function decode(reader, length) {
  32447. if (!(reader instanceof $Reader))
  32448. reader = $Reader.create(reader);
  32449. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_next_layer();
  32450. while (reader.pos < end) {
  32451. let tag = reader.uint32();
  32452. switch (tag >>> 3) {
  32453. default:
  32454. reader.skipType(tag & 7);
  32455. break;
  32456. }
  32457. }
  32458. return message;
  32459. };
  32460. /**
  32461. * Decodes a relic_next_layer message from the specified reader or buffer, length delimited.
  32462. * @function decodeDelimited
  32463. * @memberof game.relic_next_layer
  32464. * @static
  32465. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  32466. * @returns {game.relic_next_layer} relic_next_layer
  32467. * @throws {Error} If the payload is not a reader or valid buffer
  32468. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  32469. */
  32470. relic_next_layer.decodeDelimited = function decodeDelimited(reader) {
  32471. if (!(reader instanceof $Reader))
  32472. reader = new $Reader(reader);
  32473. return this.decode(reader, reader.uint32());
  32474. };
  32475. /**
  32476. * Verifies a relic_next_layer message.
  32477. * @function verify
  32478. * @memberof game.relic_next_layer
  32479. * @static
  32480. * @param {Object.<string,*>} message Plain object to verify
  32481. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  32482. */
  32483. relic_next_layer.verify = function verify(message) {
  32484. if (typeof message !== "object" || message === null)
  32485. return "object expected";
  32486. return null;
  32487. };
  32488. /**
  32489. * Creates a relic_next_layer message from a plain object. Also converts values to their respective internal types.
  32490. * @function fromObject
  32491. * @memberof game.relic_next_layer
  32492. * @static
  32493. * @param {Object.<string,*>} object Plain object
  32494. * @returns {game.relic_next_layer} relic_next_layer
  32495. */
  32496. relic_next_layer.fromObject = function fromObject(object) {
  32497. if (object instanceof $root.game.relic_next_layer)
  32498. return object;
  32499. return new $root.game.relic_next_layer();
  32500. };
  32501. /**
  32502. * Creates a plain object from a relic_next_layer message. Also converts values to other types if specified.
  32503. * @function toObject
  32504. * @memberof game.relic_next_layer
  32505. * @static
  32506. * @param {game.relic_next_layer} message relic_next_layer
  32507. * @param {$protobuf.IConversionOptions} [options] Conversion options
  32508. * @returns {Object.<string,*>} Plain object
  32509. */
  32510. relic_next_layer.toObject = function toObject() {
  32511. return {};
  32512. };
  32513. /**
  32514. * Converts this relic_next_layer to JSON.
  32515. * @function toJSON
  32516. * @memberof game.relic_next_layer
  32517. * @instance
  32518. * @returns {Object.<string,*>} JSON object
  32519. */
  32520. relic_next_layer.prototype.toJSON = function toJSON() {
  32521. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  32522. };
  32523. return relic_next_layer;
  32524. })();
  32525. game.relic_next_layer_rsp = (function() {
  32526. /**
  32527. * Properties of a relic_next_layer_rsp.
  32528. * @memberof game
  32529. * @interface Irelic_next_layer_rsp
  32530. * @property {number|Long|null} [errno] relic_next_layer_rsp errno
  32531. */
  32532. /**
  32533. * Constructs a new relic_next_layer_rsp.
  32534. * @memberof game
  32535. * @classdesc Represents a relic_next_layer_rsp.
  32536. * @implements Irelic_next_layer_rsp
  32537. * @constructor
  32538. * @param {game.Irelic_next_layer_rsp=} [properties] Properties to set
  32539. */
  32540. function relic_next_layer_rsp(properties) {
  32541. if (properties)
  32542. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  32543. if (properties[keys[i]] != null)
  32544. this[keys[i]] = properties[keys[i]];
  32545. }
  32546. /**
  32547. * relic_next_layer_rsp errno.
  32548. * @member {number|Long} errno
  32549. * @memberof game.relic_next_layer_rsp
  32550. * @instance
  32551. */
  32552. relic_next_layer_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  32553. /**
  32554. * Creates a new relic_next_layer_rsp instance using the specified properties.
  32555. * @function create
  32556. * @memberof game.relic_next_layer_rsp
  32557. * @static
  32558. * @param {game.Irelic_next_layer_rsp=} [properties] Properties to set
  32559. * @returns {game.relic_next_layer_rsp} relic_next_layer_rsp instance
  32560. */
  32561. relic_next_layer_rsp.create = function create(properties) {
  32562. return new relic_next_layer_rsp(properties);
  32563. };
  32564. /**
  32565. * Encodes the specified relic_next_layer_rsp message. Does not implicitly {@link game.relic_next_layer_rsp.verify|verify} messages.
  32566. * @function encode
  32567. * @memberof game.relic_next_layer_rsp
  32568. * @static
  32569. * @param {game.Irelic_next_layer_rsp} message relic_next_layer_rsp message or plain object to encode
  32570. * @param {$protobuf.Writer} [writer] Writer to encode to
  32571. * @returns {$protobuf.Writer} Writer
  32572. */
  32573. relic_next_layer_rsp.encode = function encode(message, writer) {
  32574. if (!writer)
  32575. writer = $Writer.create();
  32576. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  32577. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  32578. return writer;
  32579. };
  32580. /**
  32581. * Encodes the specified relic_next_layer_rsp message, length delimited. Does not implicitly {@link game.relic_next_layer_rsp.verify|verify} messages.
  32582. * @function encodeDelimited
  32583. * @memberof game.relic_next_layer_rsp
  32584. * @static
  32585. * @param {game.Irelic_next_layer_rsp} message relic_next_layer_rsp message or plain object to encode
  32586. * @param {$protobuf.Writer} [writer] Writer to encode to
  32587. * @returns {$protobuf.Writer} Writer
  32588. */
  32589. relic_next_layer_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  32590. return this.encode(message, writer).ldelim();
  32591. };
  32592. /**
  32593. * Decodes a relic_next_layer_rsp message from the specified reader or buffer.
  32594. * @function decode
  32595. * @memberof game.relic_next_layer_rsp
  32596. * @static
  32597. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  32598. * @param {number} [length] Message length if known beforehand
  32599. * @returns {game.relic_next_layer_rsp} relic_next_layer_rsp
  32600. * @throws {Error} If the payload is not a reader or valid buffer
  32601. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  32602. */
  32603. relic_next_layer_rsp.decode = function decode(reader, length) {
  32604. if (!(reader instanceof $Reader))
  32605. reader = $Reader.create(reader);
  32606. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_next_layer_rsp();
  32607. while (reader.pos < end) {
  32608. let tag = reader.uint32();
  32609. switch (tag >>> 3) {
  32610. case 1:
  32611. message.errno = reader.int64();
  32612. break;
  32613. default:
  32614. reader.skipType(tag & 7);
  32615. break;
  32616. }
  32617. }
  32618. return message;
  32619. };
  32620. /**
  32621. * Decodes a relic_next_layer_rsp message from the specified reader or buffer, length delimited.
  32622. * @function decodeDelimited
  32623. * @memberof game.relic_next_layer_rsp
  32624. * @static
  32625. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  32626. * @returns {game.relic_next_layer_rsp} relic_next_layer_rsp
  32627. * @throws {Error} If the payload is not a reader or valid buffer
  32628. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  32629. */
  32630. relic_next_layer_rsp.decodeDelimited = function decodeDelimited(reader) {
  32631. if (!(reader instanceof $Reader))
  32632. reader = new $Reader(reader);
  32633. return this.decode(reader, reader.uint32());
  32634. };
  32635. /**
  32636. * Verifies a relic_next_layer_rsp message.
  32637. * @function verify
  32638. * @memberof game.relic_next_layer_rsp
  32639. * @static
  32640. * @param {Object.<string,*>} message Plain object to verify
  32641. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  32642. */
  32643. relic_next_layer_rsp.verify = function verify(message) {
  32644. if (typeof message !== "object" || message === null)
  32645. return "object expected";
  32646. if (message.errno != null && message.hasOwnProperty("errno"))
  32647. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  32648. return "errno: integer|Long expected";
  32649. return null;
  32650. };
  32651. /**
  32652. * Creates a relic_next_layer_rsp message from a plain object. Also converts values to their respective internal types.
  32653. * @function fromObject
  32654. * @memberof game.relic_next_layer_rsp
  32655. * @static
  32656. * @param {Object.<string,*>} object Plain object
  32657. * @returns {game.relic_next_layer_rsp} relic_next_layer_rsp
  32658. */
  32659. relic_next_layer_rsp.fromObject = function fromObject(object) {
  32660. if (object instanceof $root.game.relic_next_layer_rsp)
  32661. return object;
  32662. let message = new $root.game.relic_next_layer_rsp();
  32663. if (object.errno != null)
  32664. if ($util.Long)
  32665. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  32666. else if (typeof object.errno === "string")
  32667. message.errno = parseInt(object.errno, 10);
  32668. else if (typeof object.errno === "number")
  32669. message.errno = object.errno;
  32670. else if (typeof object.errno === "object")
  32671. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  32672. return message;
  32673. };
  32674. /**
  32675. * Creates a plain object from a relic_next_layer_rsp message. Also converts values to other types if specified.
  32676. * @function toObject
  32677. * @memberof game.relic_next_layer_rsp
  32678. * @static
  32679. * @param {game.relic_next_layer_rsp} message relic_next_layer_rsp
  32680. * @param {$protobuf.IConversionOptions} [options] Conversion options
  32681. * @returns {Object.<string,*>} Plain object
  32682. */
  32683. relic_next_layer_rsp.toObject = function toObject(message, options) {
  32684. if (!options)
  32685. options = {};
  32686. let object = {};
  32687. if (options.defaults)
  32688. if ($util.Long) {
  32689. let long = new $util.Long(0, 0, false);
  32690. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  32691. } else
  32692. object.errno = options.longs === String ? "0" : 0;
  32693. if (message.errno != null && message.hasOwnProperty("errno"))
  32694. if (typeof message.errno === "number")
  32695. object.errno = options.longs === String ? String(message.errno) : message.errno;
  32696. else
  32697. 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;
  32698. return object;
  32699. };
  32700. /**
  32701. * Converts this relic_next_layer_rsp to JSON.
  32702. * @function toJSON
  32703. * @memberof game.relic_next_layer_rsp
  32704. * @instance
  32705. * @returns {Object.<string,*>} JSON object
  32706. */
  32707. relic_next_layer_rsp.prototype.toJSON = function toJSON() {
  32708. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  32709. };
  32710. return relic_next_layer_rsp;
  32711. })();
  32712. game.relic_select_buff = (function() {
  32713. /**
  32714. * Properties of a relic_select_buff.
  32715. * @memberof game
  32716. * @interface Irelic_select_buff
  32717. */
  32718. /**
  32719. * Constructs a new relic_select_buff.
  32720. * @memberof game
  32721. * @classdesc Represents a relic_select_buff.
  32722. * @implements Irelic_select_buff
  32723. * @constructor
  32724. * @param {game.Irelic_select_buff=} [properties] Properties to set
  32725. */
  32726. function relic_select_buff(properties) {
  32727. if (properties)
  32728. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  32729. if (properties[keys[i]] != null)
  32730. this[keys[i]] = properties[keys[i]];
  32731. }
  32732. /**
  32733. * Creates a new relic_select_buff instance using the specified properties.
  32734. * @function create
  32735. * @memberof game.relic_select_buff
  32736. * @static
  32737. * @param {game.Irelic_select_buff=} [properties] Properties to set
  32738. * @returns {game.relic_select_buff} relic_select_buff instance
  32739. */
  32740. relic_select_buff.create = function create(properties) {
  32741. return new relic_select_buff(properties);
  32742. };
  32743. /**
  32744. * Encodes the specified relic_select_buff message. Does not implicitly {@link game.relic_select_buff.verify|verify} messages.
  32745. * @function encode
  32746. * @memberof game.relic_select_buff
  32747. * @static
  32748. * @param {game.Irelic_select_buff} message relic_select_buff message or plain object to encode
  32749. * @param {$protobuf.Writer} [writer] Writer to encode to
  32750. * @returns {$protobuf.Writer} Writer
  32751. */
  32752. relic_select_buff.encode = function encode(message, writer) {
  32753. if (!writer)
  32754. writer = $Writer.create();
  32755. return writer;
  32756. };
  32757. /**
  32758. * Encodes the specified relic_select_buff message, length delimited. Does not implicitly {@link game.relic_select_buff.verify|verify} messages.
  32759. * @function encodeDelimited
  32760. * @memberof game.relic_select_buff
  32761. * @static
  32762. * @param {game.Irelic_select_buff} message relic_select_buff message or plain object to encode
  32763. * @param {$protobuf.Writer} [writer] Writer to encode to
  32764. * @returns {$protobuf.Writer} Writer
  32765. */
  32766. relic_select_buff.encodeDelimited = function encodeDelimited(message, writer) {
  32767. return this.encode(message, writer).ldelim();
  32768. };
  32769. /**
  32770. * Decodes a relic_select_buff message from the specified reader or buffer.
  32771. * @function decode
  32772. * @memberof game.relic_select_buff
  32773. * @static
  32774. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  32775. * @param {number} [length] Message length if known beforehand
  32776. * @returns {game.relic_select_buff} relic_select_buff
  32777. * @throws {Error} If the payload is not a reader or valid buffer
  32778. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  32779. */
  32780. relic_select_buff.decode = function decode(reader, length) {
  32781. if (!(reader instanceof $Reader))
  32782. reader = $Reader.create(reader);
  32783. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_select_buff();
  32784. while (reader.pos < end) {
  32785. let tag = reader.uint32();
  32786. switch (tag >>> 3) {
  32787. default:
  32788. reader.skipType(tag & 7);
  32789. break;
  32790. }
  32791. }
  32792. return message;
  32793. };
  32794. /**
  32795. * Decodes a relic_select_buff message from the specified reader or buffer, length delimited.
  32796. * @function decodeDelimited
  32797. * @memberof game.relic_select_buff
  32798. * @static
  32799. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  32800. * @returns {game.relic_select_buff} relic_select_buff
  32801. * @throws {Error} If the payload is not a reader or valid buffer
  32802. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  32803. */
  32804. relic_select_buff.decodeDelimited = function decodeDelimited(reader) {
  32805. if (!(reader instanceof $Reader))
  32806. reader = new $Reader(reader);
  32807. return this.decode(reader, reader.uint32());
  32808. };
  32809. /**
  32810. * Verifies a relic_select_buff message.
  32811. * @function verify
  32812. * @memberof game.relic_select_buff
  32813. * @static
  32814. * @param {Object.<string,*>} message Plain object to verify
  32815. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  32816. */
  32817. relic_select_buff.verify = function verify(message) {
  32818. if (typeof message !== "object" || message === null)
  32819. return "object expected";
  32820. return null;
  32821. };
  32822. /**
  32823. * Creates a relic_select_buff message from a plain object. Also converts values to their respective internal types.
  32824. * @function fromObject
  32825. * @memberof game.relic_select_buff
  32826. * @static
  32827. * @param {Object.<string,*>} object Plain object
  32828. * @returns {game.relic_select_buff} relic_select_buff
  32829. */
  32830. relic_select_buff.fromObject = function fromObject(object) {
  32831. if (object instanceof $root.game.relic_select_buff)
  32832. return object;
  32833. return new $root.game.relic_select_buff();
  32834. };
  32835. /**
  32836. * Creates a plain object from a relic_select_buff message. Also converts values to other types if specified.
  32837. * @function toObject
  32838. * @memberof game.relic_select_buff
  32839. * @static
  32840. * @param {game.relic_select_buff} message relic_select_buff
  32841. * @param {$protobuf.IConversionOptions} [options] Conversion options
  32842. * @returns {Object.<string,*>} Plain object
  32843. */
  32844. relic_select_buff.toObject = function toObject() {
  32845. return {};
  32846. };
  32847. /**
  32848. * Converts this relic_select_buff to JSON.
  32849. * @function toJSON
  32850. * @memberof game.relic_select_buff
  32851. * @instance
  32852. * @returns {Object.<string,*>} JSON object
  32853. */
  32854. relic_select_buff.prototype.toJSON = function toJSON() {
  32855. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  32856. };
  32857. return relic_select_buff;
  32858. })();
  32859. game.relic_select_buff_rsp = (function() {
  32860. /**
  32861. * Properties of a relic_select_buff_rsp.
  32862. * @memberof game
  32863. * @interface Irelic_select_buff_rsp
  32864. * @property {number|Long|null} [errno] relic_select_buff_rsp errno
  32865. */
  32866. /**
  32867. * Constructs a new relic_select_buff_rsp.
  32868. * @memberof game
  32869. * @classdesc Represents a relic_select_buff_rsp.
  32870. * @implements Irelic_select_buff_rsp
  32871. * @constructor
  32872. * @param {game.Irelic_select_buff_rsp=} [properties] Properties to set
  32873. */
  32874. function relic_select_buff_rsp(properties) {
  32875. if (properties)
  32876. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  32877. if (properties[keys[i]] != null)
  32878. this[keys[i]] = properties[keys[i]];
  32879. }
  32880. /**
  32881. * relic_select_buff_rsp errno.
  32882. * @member {number|Long} errno
  32883. * @memberof game.relic_select_buff_rsp
  32884. * @instance
  32885. */
  32886. relic_select_buff_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  32887. /**
  32888. * Creates a new relic_select_buff_rsp instance using the specified properties.
  32889. * @function create
  32890. * @memberof game.relic_select_buff_rsp
  32891. * @static
  32892. * @param {game.Irelic_select_buff_rsp=} [properties] Properties to set
  32893. * @returns {game.relic_select_buff_rsp} relic_select_buff_rsp instance
  32894. */
  32895. relic_select_buff_rsp.create = function create(properties) {
  32896. return new relic_select_buff_rsp(properties);
  32897. };
  32898. /**
  32899. * Encodes the specified relic_select_buff_rsp message. Does not implicitly {@link game.relic_select_buff_rsp.verify|verify} messages.
  32900. * @function encode
  32901. * @memberof game.relic_select_buff_rsp
  32902. * @static
  32903. * @param {game.Irelic_select_buff_rsp} message relic_select_buff_rsp message or plain object to encode
  32904. * @param {$protobuf.Writer} [writer] Writer to encode to
  32905. * @returns {$protobuf.Writer} Writer
  32906. */
  32907. relic_select_buff_rsp.encode = function encode(message, writer) {
  32908. if (!writer)
  32909. writer = $Writer.create();
  32910. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  32911. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  32912. return writer;
  32913. };
  32914. /**
  32915. * Encodes the specified relic_select_buff_rsp message, length delimited. Does not implicitly {@link game.relic_select_buff_rsp.verify|verify} messages.
  32916. * @function encodeDelimited
  32917. * @memberof game.relic_select_buff_rsp
  32918. * @static
  32919. * @param {game.Irelic_select_buff_rsp} message relic_select_buff_rsp message or plain object to encode
  32920. * @param {$protobuf.Writer} [writer] Writer to encode to
  32921. * @returns {$protobuf.Writer} Writer
  32922. */
  32923. relic_select_buff_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  32924. return this.encode(message, writer).ldelim();
  32925. };
  32926. /**
  32927. * Decodes a relic_select_buff_rsp message from the specified reader or buffer.
  32928. * @function decode
  32929. * @memberof game.relic_select_buff_rsp
  32930. * @static
  32931. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  32932. * @param {number} [length] Message length if known beforehand
  32933. * @returns {game.relic_select_buff_rsp} relic_select_buff_rsp
  32934. * @throws {Error} If the payload is not a reader or valid buffer
  32935. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  32936. */
  32937. relic_select_buff_rsp.decode = function decode(reader, length) {
  32938. if (!(reader instanceof $Reader))
  32939. reader = $Reader.create(reader);
  32940. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_select_buff_rsp();
  32941. while (reader.pos < end) {
  32942. let tag = reader.uint32();
  32943. switch (tag >>> 3) {
  32944. case 1:
  32945. message.errno = reader.int64();
  32946. break;
  32947. default:
  32948. reader.skipType(tag & 7);
  32949. break;
  32950. }
  32951. }
  32952. return message;
  32953. };
  32954. /**
  32955. * Decodes a relic_select_buff_rsp message from the specified reader or buffer, length delimited.
  32956. * @function decodeDelimited
  32957. * @memberof game.relic_select_buff_rsp
  32958. * @static
  32959. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  32960. * @returns {game.relic_select_buff_rsp} relic_select_buff_rsp
  32961. * @throws {Error} If the payload is not a reader or valid buffer
  32962. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  32963. */
  32964. relic_select_buff_rsp.decodeDelimited = function decodeDelimited(reader) {
  32965. if (!(reader instanceof $Reader))
  32966. reader = new $Reader(reader);
  32967. return this.decode(reader, reader.uint32());
  32968. };
  32969. /**
  32970. * Verifies a relic_select_buff_rsp message.
  32971. * @function verify
  32972. * @memberof game.relic_select_buff_rsp
  32973. * @static
  32974. * @param {Object.<string,*>} message Plain object to verify
  32975. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  32976. */
  32977. relic_select_buff_rsp.verify = function verify(message) {
  32978. if (typeof message !== "object" || message === null)
  32979. return "object expected";
  32980. if (message.errno != null && message.hasOwnProperty("errno"))
  32981. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  32982. return "errno: integer|Long expected";
  32983. return null;
  32984. };
  32985. /**
  32986. * Creates a relic_select_buff_rsp message from a plain object. Also converts values to their respective internal types.
  32987. * @function fromObject
  32988. * @memberof game.relic_select_buff_rsp
  32989. * @static
  32990. * @param {Object.<string,*>} object Plain object
  32991. * @returns {game.relic_select_buff_rsp} relic_select_buff_rsp
  32992. */
  32993. relic_select_buff_rsp.fromObject = function fromObject(object) {
  32994. if (object instanceof $root.game.relic_select_buff_rsp)
  32995. return object;
  32996. let message = new $root.game.relic_select_buff_rsp();
  32997. if (object.errno != null)
  32998. if ($util.Long)
  32999. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  33000. else if (typeof object.errno === "string")
  33001. message.errno = parseInt(object.errno, 10);
  33002. else if (typeof object.errno === "number")
  33003. message.errno = object.errno;
  33004. else if (typeof object.errno === "object")
  33005. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  33006. return message;
  33007. };
  33008. /**
  33009. * Creates a plain object from a relic_select_buff_rsp message. Also converts values to other types if specified.
  33010. * @function toObject
  33011. * @memberof game.relic_select_buff_rsp
  33012. * @static
  33013. * @param {game.relic_select_buff_rsp} message relic_select_buff_rsp
  33014. * @param {$protobuf.IConversionOptions} [options] Conversion options
  33015. * @returns {Object.<string,*>} Plain object
  33016. */
  33017. relic_select_buff_rsp.toObject = function toObject(message, options) {
  33018. if (!options)
  33019. options = {};
  33020. let object = {};
  33021. if (options.defaults)
  33022. if ($util.Long) {
  33023. let long = new $util.Long(0, 0, false);
  33024. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  33025. } else
  33026. object.errno = options.longs === String ? "0" : 0;
  33027. if (message.errno != null && message.hasOwnProperty("errno"))
  33028. if (typeof message.errno === "number")
  33029. object.errno = options.longs === String ? String(message.errno) : message.errno;
  33030. else
  33031. 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;
  33032. return object;
  33033. };
  33034. /**
  33035. * Converts this relic_select_buff_rsp to JSON.
  33036. * @function toJSON
  33037. * @memberof game.relic_select_buff_rsp
  33038. * @instance
  33039. * @returns {Object.<string,*>} JSON object
  33040. */
  33041. relic_select_buff_rsp.prototype.toJSON = function toJSON() {
  33042. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  33043. };
  33044. return relic_select_buff_rsp;
  33045. })();
  33046. game.relic_reset = (function() {
  33047. /**
  33048. * Properties of a relic_reset.
  33049. * @memberof game
  33050. * @interface Irelic_reset
  33051. * @property {number|Long|null} [difficulty] relic_reset difficulty
  33052. */
  33053. /**
  33054. * Constructs a new relic_reset.
  33055. * @memberof game
  33056. * @classdesc Represents a relic_reset.
  33057. * @implements Irelic_reset
  33058. * @constructor
  33059. * @param {game.Irelic_reset=} [properties] Properties to set
  33060. */
  33061. function relic_reset(properties) {
  33062. if (properties)
  33063. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  33064. if (properties[keys[i]] != null)
  33065. this[keys[i]] = properties[keys[i]];
  33066. }
  33067. /**
  33068. * relic_reset difficulty.
  33069. * @member {number|Long} difficulty
  33070. * @memberof game.relic_reset
  33071. * @instance
  33072. */
  33073. relic_reset.prototype.difficulty = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  33074. /**
  33075. * Creates a new relic_reset instance using the specified properties.
  33076. * @function create
  33077. * @memberof game.relic_reset
  33078. * @static
  33079. * @param {game.Irelic_reset=} [properties] Properties to set
  33080. * @returns {game.relic_reset} relic_reset instance
  33081. */
  33082. relic_reset.create = function create(properties) {
  33083. return new relic_reset(properties);
  33084. };
  33085. /**
  33086. * Encodes the specified relic_reset message. Does not implicitly {@link game.relic_reset.verify|verify} messages.
  33087. * @function encode
  33088. * @memberof game.relic_reset
  33089. * @static
  33090. * @param {game.Irelic_reset} message relic_reset message or plain object to encode
  33091. * @param {$protobuf.Writer} [writer] Writer to encode to
  33092. * @returns {$protobuf.Writer} Writer
  33093. */
  33094. relic_reset.encode = function encode(message, writer) {
  33095. if (!writer)
  33096. writer = $Writer.create();
  33097. if (message.difficulty != null && Object.hasOwnProperty.call(message, "difficulty"))
  33098. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.difficulty);
  33099. return writer;
  33100. };
  33101. /**
  33102. * Encodes the specified relic_reset message, length delimited. Does not implicitly {@link game.relic_reset.verify|verify} messages.
  33103. * @function encodeDelimited
  33104. * @memberof game.relic_reset
  33105. * @static
  33106. * @param {game.Irelic_reset} message relic_reset message or plain object to encode
  33107. * @param {$protobuf.Writer} [writer] Writer to encode to
  33108. * @returns {$protobuf.Writer} Writer
  33109. */
  33110. relic_reset.encodeDelimited = function encodeDelimited(message, writer) {
  33111. return this.encode(message, writer).ldelim();
  33112. };
  33113. /**
  33114. * Decodes a relic_reset message from the specified reader or buffer.
  33115. * @function decode
  33116. * @memberof game.relic_reset
  33117. * @static
  33118. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  33119. * @param {number} [length] Message length if known beforehand
  33120. * @returns {game.relic_reset} relic_reset
  33121. * @throws {Error} If the payload is not a reader or valid buffer
  33122. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  33123. */
  33124. relic_reset.decode = function decode(reader, length) {
  33125. if (!(reader instanceof $Reader))
  33126. reader = $Reader.create(reader);
  33127. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_reset();
  33128. while (reader.pos < end) {
  33129. let tag = reader.uint32();
  33130. switch (tag >>> 3) {
  33131. case 1:
  33132. message.difficulty = reader.int64();
  33133. break;
  33134. default:
  33135. reader.skipType(tag & 7);
  33136. break;
  33137. }
  33138. }
  33139. return message;
  33140. };
  33141. /**
  33142. * Decodes a relic_reset message from the specified reader or buffer, length delimited.
  33143. * @function decodeDelimited
  33144. * @memberof game.relic_reset
  33145. * @static
  33146. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  33147. * @returns {game.relic_reset} relic_reset
  33148. * @throws {Error} If the payload is not a reader or valid buffer
  33149. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  33150. */
  33151. relic_reset.decodeDelimited = function decodeDelimited(reader) {
  33152. if (!(reader instanceof $Reader))
  33153. reader = new $Reader(reader);
  33154. return this.decode(reader, reader.uint32());
  33155. };
  33156. /**
  33157. * Verifies a relic_reset message.
  33158. * @function verify
  33159. * @memberof game.relic_reset
  33160. * @static
  33161. * @param {Object.<string,*>} message Plain object to verify
  33162. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  33163. */
  33164. relic_reset.verify = function verify(message) {
  33165. if (typeof message !== "object" || message === null)
  33166. return "object expected";
  33167. if (message.difficulty != null && message.hasOwnProperty("difficulty"))
  33168. if (!$util.isInteger(message.difficulty) && !(message.difficulty && $util.isInteger(message.difficulty.low) && $util.isInteger(message.difficulty.high)))
  33169. return "difficulty: integer|Long expected";
  33170. return null;
  33171. };
  33172. /**
  33173. * Creates a relic_reset message from a plain object. Also converts values to their respective internal types.
  33174. * @function fromObject
  33175. * @memberof game.relic_reset
  33176. * @static
  33177. * @param {Object.<string,*>} object Plain object
  33178. * @returns {game.relic_reset} relic_reset
  33179. */
  33180. relic_reset.fromObject = function fromObject(object) {
  33181. if (object instanceof $root.game.relic_reset)
  33182. return object;
  33183. let message = new $root.game.relic_reset();
  33184. if (object.difficulty != null)
  33185. if ($util.Long)
  33186. (message.difficulty = $util.Long.fromValue(object.difficulty)).unsigned = false;
  33187. else if (typeof object.difficulty === "string")
  33188. message.difficulty = parseInt(object.difficulty, 10);
  33189. else if (typeof object.difficulty === "number")
  33190. message.difficulty = object.difficulty;
  33191. else if (typeof object.difficulty === "object")
  33192. message.difficulty = new $util.LongBits(object.difficulty.low >>> 0, object.difficulty.high >>> 0).toNumber();
  33193. return message;
  33194. };
  33195. /**
  33196. * Creates a plain object from a relic_reset message. Also converts values to other types if specified.
  33197. * @function toObject
  33198. * @memberof game.relic_reset
  33199. * @static
  33200. * @param {game.relic_reset} message relic_reset
  33201. * @param {$protobuf.IConversionOptions} [options] Conversion options
  33202. * @returns {Object.<string,*>} Plain object
  33203. */
  33204. relic_reset.toObject = function toObject(message, options) {
  33205. if (!options)
  33206. options = {};
  33207. let object = {};
  33208. if (options.defaults)
  33209. if ($util.Long) {
  33210. let long = new $util.Long(0, 0, false);
  33211. object.difficulty = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  33212. } else
  33213. object.difficulty = options.longs === String ? "0" : 0;
  33214. if (message.difficulty != null && message.hasOwnProperty("difficulty"))
  33215. if (typeof message.difficulty === "number")
  33216. object.difficulty = options.longs === String ? String(message.difficulty) : message.difficulty;
  33217. else
  33218. 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;
  33219. return object;
  33220. };
  33221. /**
  33222. * Converts this relic_reset to JSON.
  33223. * @function toJSON
  33224. * @memberof game.relic_reset
  33225. * @instance
  33226. * @returns {Object.<string,*>} JSON object
  33227. */
  33228. relic_reset.prototype.toJSON = function toJSON() {
  33229. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  33230. };
  33231. return relic_reset;
  33232. })();
  33233. game.relic_reset_rsp = (function() {
  33234. /**
  33235. * Properties of a relic_reset_rsp.
  33236. * @memberof game
  33237. * @interface Irelic_reset_rsp
  33238. * @property {number|Long|null} [errno] relic_reset_rsp errno
  33239. */
  33240. /**
  33241. * Constructs a new relic_reset_rsp.
  33242. * @memberof game
  33243. * @classdesc Represents a relic_reset_rsp.
  33244. * @implements Irelic_reset_rsp
  33245. * @constructor
  33246. * @param {game.Irelic_reset_rsp=} [properties] Properties to set
  33247. */
  33248. function relic_reset_rsp(properties) {
  33249. if (properties)
  33250. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  33251. if (properties[keys[i]] != null)
  33252. this[keys[i]] = properties[keys[i]];
  33253. }
  33254. /**
  33255. * relic_reset_rsp errno.
  33256. * @member {number|Long} errno
  33257. * @memberof game.relic_reset_rsp
  33258. * @instance
  33259. */
  33260. relic_reset_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  33261. /**
  33262. * Creates a new relic_reset_rsp instance using the specified properties.
  33263. * @function create
  33264. * @memberof game.relic_reset_rsp
  33265. * @static
  33266. * @param {game.Irelic_reset_rsp=} [properties] Properties to set
  33267. * @returns {game.relic_reset_rsp} relic_reset_rsp instance
  33268. */
  33269. relic_reset_rsp.create = function create(properties) {
  33270. return new relic_reset_rsp(properties);
  33271. };
  33272. /**
  33273. * Encodes the specified relic_reset_rsp message. Does not implicitly {@link game.relic_reset_rsp.verify|verify} messages.
  33274. * @function encode
  33275. * @memberof game.relic_reset_rsp
  33276. * @static
  33277. * @param {game.Irelic_reset_rsp} message relic_reset_rsp message or plain object to encode
  33278. * @param {$protobuf.Writer} [writer] Writer to encode to
  33279. * @returns {$protobuf.Writer} Writer
  33280. */
  33281. relic_reset_rsp.encode = function encode(message, writer) {
  33282. if (!writer)
  33283. writer = $Writer.create();
  33284. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  33285. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  33286. return writer;
  33287. };
  33288. /**
  33289. * Encodes the specified relic_reset_rsp message, length delimited. Does not implicitly {@link game.relic_reset_rsp.verify|verify} messages.
  33290. * @function encodeDelimited
  33291. * @memberof game.relic_reset_rsp
  33292. * @static
  33293. * @param {game.Irelic_reset_rsp} message relic_reset_rsp message or plain object to encode
  33294. * @param {$protobuf.Writer} [writer] Writer to encode to
  33295. * @returns {$protobuf.Writer} Writer
  33296. */
  33297. relic_reset_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  33298. return this.encode(message, writer).ldelim();
  33299. };
  33300. /**
  33301. * Decodes a relic_reset_rsp message from the specified reader or buffer.
  33302. * @function decode
  33303. * @memberof game.relic_reset_rsp
  33304. * @static
  33305. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  33306. * @param {number} [length] Message length if known beforehand
  33307. * @returns {game.relic_reset_rsp} relic_reset_rsp
  33308. * @throws {Error} If the payload is not a reader or valid buffer
  33309. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  33310. */
  33311. relic_reset_rsp.decode = function decode(reader, length) {
  33312. if (!(reader instanceof $Reader))
  33313. reader = $Reader.create(reader);
  33314. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_reset_rsp();
  33315. while (reader.pos < end) {
  33316. let tag = reader.uint32();
  33317. switch (tag >>> 3) {
  33318. case 1:
  33319. message.errno = reader.int64();
  33320. break;
  33321. default:
  33322. reader.skipType(tag & 7);
  33323. break;
  33324. }
  33325. }
  33326. return message;
  33327. };
  33328. /**
  33329. * Decodes a relic_reset_rsp message from the specified reader or buffer, length delimited.
  33330. * @function decodeDelimited
  33331. * @memberof game.relic_reset_rsp
  33332. * @static
  33333. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  33334. * @returns {game.relic_reset_rsp} relic_reset_rsp
  33335. * @throws {Error} If the payload is not a reader or valid buffer
  33336. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  33337. */
  33338. relic_reset_rsp.decodeDelimited = function decodeDelimited(reader) {
  33339. if (!(reader instanceof $Reader))
  33340. reader = new $Reader(reader);
  33341. return this.decode(reader, reader.uint32());
  33342. };
  33343. /**
  33344. * Verifies a relic_reset_rsp message.
  33345. * @function verify
  33346. * @memberof game.relic_reset_rsp
  33347. * @static
  33348. * @param {Object.<string,*>} message Plain object to verify
  33349. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  33350. */
  33351. relic_reset_rsp.verify = function verify(message) {
  33352. if (typeof message !== "object" || message === null)
  33353. return "object expected";
  33354. if (message.errno != null && message.hasOwnProperty("errno"))
  33355. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  33356. return "errno: integer|Long expected";
  33357. return null;
  33358. };
  33359. /**
  33360. * Creates a relic_reset_rsp message from a plain object. Also converts values to their respective internal types.
  33361. * @function fromObject
  33362. * @memberof game.relic_reset_rsp
  33363. * @static
  33364. * @param {Object.<string,*>} object Plain object
  33365. * @returns {game.relic_reset_rsp} relic_reset_rsp
  33366. */
  33367. relic_reset_rsp.fromObject = function fromObject(object) {
  33368. if (object instanceof $root.game.relic_reset_rsp)
  33369. return object;
  33370. let message = new $root.game.relic_reset_rsp();
  33371. if (object.errno != null)
  33372. if ($util.Long)
  33373. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  33374. else if (typeof object.errno === "string")
  33375. message.errno = parseInt(object.errno, 10);
  33376. else if (typeof object.errno === "number")
  33377. message.errno = object.errno;
  33378. else if (typeof object.errno === "object")
  33379. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  33380. return message;
  33381. };
  33382. /**
  33383. * Creates a plain object from a relic_reset_rsp message. Also converts values to other types if specified.
  33384. * @function toObject
  33385. * @memberof game.relic_reset_rsp
  33386. * @static
  33387. * @param {game.relic_reset_rsp} message relic_reset_rsp
  33388. * @param {$protobuf.IConversionOptions} [options] Conversion options
  33389. * @returns {Object.<string,*>} Plain object
  33390. */
  33391. relic_reset_rsp.toObject = function toObject(message, options) {
  33392. if (!options)
  33393. options = {};
  33394. let object = {};
  33395. if (options.defaults)
  33396. if ($util.Long) {
  33397. let long = new $util.Long(0, 0, false);
  33398. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  33399. } else
  33400. object.errno = options.longs === String ? "0" : 0;
  33401. if (message.errno != null && message.hasOwnProperty("errno"))
  33402. if (typeof message.errno === "number")
  33403. object.errno = options.longs === String ? String(message.errno) : message.errno;
  33404. else
  33405. 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;
  33406. return object;
  33407. };
  33408. /**
  33409. * Converts this relic_reset_rsp to JSON.
  33410. * @function toJSON
  33411. * @memberof game.relic_reset_rsp
  33412. * @instance
  33413. * @returns {Object.<string,*>} JSON object
  33414. */
  33415. relic_reset_rsp.prototype.toJSON = function toJSON() {
  33416. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  33417. };
  33418. return relic_reset_rsp;
  33419. })();
  33420. game.relic_event_select = (function() {
  33421. /**
  33422. * Properties of a relic_event_select.
  33423. * @memberof game
  33424. * @interface Irelic_event_select
  33425. * @property {number|Long|null} [type] relic_event_select type
  33426. * @property {boolean|null} [win] relic_event_select win
  33427. * @property {number|Long|null} [cost] relic_event_select cost
  33428. * @property {number|Long|null} [select] relic_event_select select
  33429. */
  33430. /**
  33431. * Constructs a new relic_event_select.
  33432. * @memberof game
  33433. * @classdesc Represents a relic_event_select.
  33434. * @implements Irelic_event_select
  33435. * @constructor
  33436. * @param {game.Irelic_event_select=} [properties] Properties to set
  33437. */
  33438. function relic_event_select(properties) {
  33439. if (properties)
  33440. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  33441. if (properties[keys[i]] != null)
  33442. this[keys[i]] = properties[keys[i]];
  33443. }
  33444. /**
  33445. * relic_event_select type.
  33446. * @member {number|Long} type
  33447. * @memberof game.relic_event_select
  33448. * @instance
  33449. */
  33450. relic_event_select.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  33451. /**
  33452. * relic_event_select win.
  33453. * @member {boolean} win
  33454. * @memberof game.relic_event_select
  33455. * @instance
  33456. */
  33457. relic_event_select.prototype.win = false;
  33458. /**
  33459. * relic_event_select cost.
  33460. * @member {number|Long} cost
  33461. * @memberof game.relic_event_select
  33462. * @instance
  33463. */
  33464. relic_event_select.prototype.cost = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  33465. /**
  33466. * relic_event_select select.
  33467. * @member {number|Long} select
  33468. * @memberof game.relic_event_select
  33469. * @instance
  33470. */
  33471. relic_event_select.prototype.select = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  33472. /**
  33473. * Creates a new relic_event_select instance using the specified properties.
  33474. * @function create
  33475. * @memberof game.relic_event_select
  33476. * @static
  33477. * @param {game.Irelic_event_select=} [properties] Properties to set
  33478. * @returns {game.relic_event_select} relic_event_select instance
  33479. */
  33480. relic_event_select.create = function create(properties) {
  33481. return new relic_event_select(properties);
  33482. };
  33483. /**
  33484. * Encodes the specified relic_event_select message. Does not implicitly {@link game.relic_event_select.verify|verify} messages.
  33485. * @function encode
  33486. * @memberof game.relic_event_select
  33487. * @static
  33488. * @param {game.Irelic_event_select} message relic_event_select message or plain object to encode
  33489. * @param {$protobuf.Writer} [writer] Writer to encode to
  33490. * @returns {$protobuf.Writer} Writer
  33491. */
  33492. relic_event_select.encode = function encode(message, writer) {
  33493. if (!writer)
  33494. writer = $Writer.create();
  33495. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  33496. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
  33497. if (message.win != null && Object.hasOwnProperty.call(message, "win"))
  33498. writer.uint32(/* id 2, wireType 0 =*/16).bool(message.win);
  33499. if (message.cost != null && Object.hasOwnProperty.call(message, "cost"))
  33500. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.cost);
  33501. if (message.select != null && Object.hasOwnProperty.call(message, "select"))
  33502. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.select);
  33503. return writer;
  33504. };
  33505. /**
  33506. * Encodes the specified relic_event_select message, length delimited. Does not implicitly {@link game.relic_event_select.verify|verify} messages.
  33507. * @function encodeDelimited
  33508. * @memberof game.relic_event_select
  33509. * @static
  33510. * @param {game.Irelic_event_select} message relic_event_select message or plain object to encode
  33511. * @param {$protobuf.Writer} [writer] Writer to encode to
  33512. * @returns {$protobuf.Writer} Writer
  33513. */
  33514. relic_event_select.encodeDelimited = function encodeDelimited(message, writer) {
  33515. return this.encode(message, writer).ldelim();
  33516. };
  33517. /**
  33518. * Decodes a relic_event_select message from the specified reader or buffer.
  33519. * @function decode
  33520. * @memberof game.relic_event_select
  33521. * @static
  33522. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  33523. * @param {number} [length] Message length if known beforehand
  33524. * @returns {game.relic_event_select} relic_event_select
  33525. * @throws {Error} If the payload is not a reader or valid buffer
  33526. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  33527. */
  33528. relic_event_select.decode = function decode(reader, length) {
  33529. if (!(reader instanceof $Reader))
  33530. reader = $Reader.create(reader);
  33531. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_event_select();
  33532. while (reader.pos < end) {
  33533. let tag = reader.uint32();
  33534. switch (tag >>> 3) {
  33535. case 1:
  33536. message.type = reader.int64();
  33537. break;
  33538. case 2:
  33539. message.win = reader.bool();
  33540. break;
  33541. case 3:
  33542. message.cost = reader.int64();
  33543. break;
  33544. case 4:
  33545. message.select = reader.int64();
  33546. break;
  33547. default:
  33548. reader.skipType(tag & 7);
  33549. break;
  33550. }
  33551. }
  33552. return message;
  33553. };
  33554. /**
  33555. * Decodes a relic_event_select message from the specified reader or buffer, length delimited.
  33556. * @function decodeDelimited
  33557. * @memberof game.relic_event_select
  33558. * @static
  33559. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  33560. * @returns {game.relic_event_select} relic_event_select
  33561. * @throws {Error} If the payload is not a reader or valid buffer
  33562. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  33563. */
  33564. relic_event_select.decodeDelimited = function decodeDelimited(reader) {
  33565. if (!(reader instanceof $Reader))
  33566. reader = new $Reader(reader);
  33567. return this.decode(reader, reader.uint32());
  33568. };
  33569. /**
  33570. * Verifies a relic_event_select message.
  33571. * @function verify
  33572. * @memberof game.relic_event_select
  33573. * @static
  33574. * @param {Object.<string,*>} message Plain object to verify
  33575. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  33576. */
  33577. relic_event_select.verify = function verify(message) {
  33578. if (typeof message !== "object" || message === null)
  33579. return "object expected";
  33580. if (message.type != null && message.hasOwnProperty("type"))
  33581. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  33582. return "type: integer|Long expected";
  33583. if (message.win != null && message.hasOwnProperty("win"))
  33584. if (typeof message.win !== "boolean")
  33585. return "win: boolean expected";
  33586. if (message.cost != null && message.hasOwnProperty("cost"))
  33587. if (!$util.isInteger(message.cost) && !(message.cost && $util.isInteger(message.cost.low) && $util.isInteger(message.cost.high)))
  33588. return "cost: integer|Long expected";
  33589. if (message.select != null && message.hasOwnProperty("select"))
  33590. if (!$util.isInteger(message.select) && !(message.select && $util.isInteger(message.select.low) && $util.isInteger(message.select.high)))
  33591. return "select: integer|Long expected";
  33592. return null;
  33593. };
  33594. /**
  33595. * Creates a relic_event_select message from a plain object. Also converts values to their respective internal types.
  33596. * @function fromObject
  33597. * @memberof game.relic_event_select
  33598. * @static
  33599. * @param {Object.<string,*>} object Plain object
  33600. * @returns {game.relic_event_select} relic_event_select
  33601. */
  33602. relic_event_select.fromObject = function fromObject(object) {
  33603. if (object instanceof $root.game.relic_event_select)
  33604. return object;
  33605. let message = new $root.game.relic_event_select();
  33606. if (object.type != null)
  33607. if ($util.Long)
  33608. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  33609. else if (typeof object.type === "string")
  33610. message.type = parseInt(object.type, 10);
  33611. else if (typeof object.type === "number")
  33612. message.type = object.type;
  33613. else if (typeof object.type === "object")
  33614. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  33615. if (object.win != null)
  33616. message.win = Boolean(object.win);
  33617. if (object.cost != null)
  33618. if ($util.Long)
  33619. (message.cost = $util.Long.fromValue(object.cost)).unsigned = false;
  33620. else if (typeof object.cost === "string")
  33621. message.cost = parseInt(object.cost, 10);
  33622. else if (typeof object.cost === "number")
  33623. message.cost = object.cost;
  33624. else if (typeof object.cost === "object")
  33625. message.cost = new $util.LongBits(object.cost.low >>> 0, object.cost.high >>> 0).toNumber();
  33626. if (object.select != null)
  33627. if ($util.Long)
  33628. (message.select = $util.Long.fromValue(object.select)).unsigned = false;
  33629. else if (typeof object.select === "string")
  33630. message.select = parseInt(object.select, 10);
  33631. else if (typeof object.select === "number")
  33632. message.select = object.select;
  33633. else if (typeof object.select === "object")
  33634. message.select = new $util.LongBits(object.select.low >>> 0, object.select.high >>> 0).toNumber();
  33635. return message;
  33636. };
  33637. /**
  33638. * Creates a plain object from a relic_event_select message. Also converts values to other types if specified.
  33639. * @function toObject
  33640. * @memberof game.relic_event_select
  33641. * @static
  33642. * @param {game.relic_event_select} message relic_event_select
  33643. * @param {$protobuf.IConversionOptions} [options] Conversion options
  33644. * @returns {Object.<string,*>} Plain object
  33645. */
  33646. relic_event_select.toObject = function toObject(message, options) {
  33647. if (!options)
  33648. options = {};
  33649. let object = {};
  33650. if (options.defaults) {
  33651. if ($util.Long) {
  33652. let long = new $util.Long(0, 0, false);
  33653. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  33654. } else
  33655. object.type = options.longs === String ? "0" : 0;
  33656. object.win = false;
  33657. if ($util.Long) {
  33658. let long = new $util.Long(0, 0, false);
  33659. object.cost = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  33660. } else
  33661. object.cost = options.longs === String ? "0" : 0;
  33662. if ($util.Long) {
  33663. let long = new $util.Long(0, 0, false);
  33664. object.select = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  33665. } else
  33666. object.select = options.longs === String ? "0" : 0;
  33667. }
  33668. if (message.type != null && message.hasOwnProperty("type"))
  33669. if (typeof message.type === "number")
  33670. object.type = options.longs === String ? String(message.type) : message.type;
  33671. else
  33672. 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;
  33673. if (message.win != null && message.hasOwnProperty("win"))
  33674. object.win = message.win;
  33675. if (message.cost != null && message.hasOwnProperty("cost"))
  33676. if (typeof message.cost === "number")
  33677. object.cost = options.longs === String ? String(message.cost) : message.cost;
  33678. else
  33679. 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;
  33680. if (message.select != null && message.hasOwnProperty("select"))
  33681. if (typeof message.select === "number")
  33682. object.select = options.longs === String ? String(message.select) : message.select;
  33683. else
  33684. 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;
  33685. return object;
  33686. };
  33687. /**
  33688. * Converts this relic_event_select to JSON.
  33689. * @function toJSON
  33690. * @memberof game.relic_event_select
  33691. * @instance
  33692. * @returns {Object.<string,*>} JSON object
  33693. */
  33694. relic_event_select.prototype.toJSON = function toJSON() {
  33695. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  33696. };
  33697. return relic_event_select;
  33698. })();
  33699. game.relic_event_select_rsp = (function() {
  33700. /**
  33701. * Properties of a relic_event_select_rsp.
  33702. * @memberof game
  33703. * @interface Irelic_event_select_rsp
  33704. * @property {number|Long|null} [errno] relic_event_select_rsp errno
  33705. */
  33706. /**
  33707. * Constructs a new relic_event_select_rsp.
  33708. * @memberof game
  33709. * @classdesc Represents a relic_event_select_rsp.
  33710. * @implements Irelic_event_select_rsp
  33711. * @constructor
  33712. * @param {game.Irelic_event_select_rsp=} [properties] Properties to set
  33713. */
  33714. function relic_event_select_rsp(properties) {
  33715. if (properties)
  33716. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  33717. if (properties[keys[i]] != null)
  33718. this[keys[i]] = properties[keys[i]];
  33719. }
  33720. /**
  33721. * relic_event_select_rsp errno.
  33722. * @member {number|Long} errno
  33723. * @memberof game.relic_event_select_rsp
  33724. * @instance
  33725. */
  33726. relic_event_select_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  33727. /**
  33728. * Creates a new relic_event_select_rsp instance using the specified properties.
  33729. * @function create
  33730. * @memberof game.relic_event_select_rsp
  33731. * @static
  33732. * @param {game.Irelic_event_select_rsp=} [properties] Properties to set
  33733. * @returns {game.relic_event_select_rsp} relic_event_select_rsp instance
  33734. */
  33735. relic_event_select_rsp.create = function create(properties) {
  33736. return new relic_event_select_rsp(properties);
  33737. };
  33738. /**
  33739. * Encodes the specified relic_event_select_rsp message. Does not implicitly {@link game.relic_event_select_rsp.verify|verify} messages.
  33740. * @function encode
  33741. * @memberof game.relic_event_select_rsp
  33742. * @static
  33743. * @param {game.Irelic_event_select_rsp} message relic_event_select_rsp message or plain object to encode
  33744. * @param {$protobuf.Writer} [writer] Writer to encode to
  33745. * @returns {$protobuf.Writer} Writer
  33746. */
  33747. relic_event_select_rsp.encode = function encode(message, writer) {
  33748. if (!writer)
  33749. writer = $Writer.create();
  33750. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  33751. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  33752. return writer;
  33753. };
  33754. /**
  33755. * Encodes the specified relic_event_select_rsp message, length delimited. Does not implicitly {@link game.relic_event_select_rsp.verify|verify} messages.
  33756. * @function encodeDelimited
  33757. * @memberof game.relic_event_select_rsp
  33758. * @static
  33759. * @param {game.Irelic_event_select_rsp} message relic_event_select_rsp message or plain object to encode
  33760. * @param {$protobuf.Writer} [writer] Writer to encode to
  33761. * @returns {$protobuf.Writer} Writer
  33762. */
  33763. relic_event_select_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  33764. return this.encode(message, writer).ldelim();
  33765. };
  33766. /**
  33767. * Decodes a relic_event_select_rsp message from the specified reader or buffer.
  33768. * @function decode
  33769. * @memberof game.relic_event_select_rsp
  33770. * @static
  33771. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  33772. * @param {number} [length] Message length if known beforehand
  33773. * @returns {game.relic_event_select_rsp} relic_event_select_rsp
  33774. * @throws {Error} If the payload is not a reader or valid buffer
  33775. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  33776. */
  33777. relic_event_select_rsp.decode = function decode(reader, length) {
  33778. if (!(reader instanceof $Reader))
  33779. reader = $Reader.create(reader);
  33780. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_event_select_rsp();
  33781. while (reader.pos < end) {
  33782. let tag = reader.uint32();
  33783. switch (tag >>> 3) {
  33784. case 1:
  33785. message.errno = reader.int64();
  33786. break;
  33787. default:
  33788. reader.skipType(tag & 7);
  33789. break;
  33790. }
  33791. }
  33792. return message;
  33793. };
  33794. /**
  33795. * Decodes a relic_event_select_rsp message from the specified reader or buffer, length delimited.
  33796. * @function decodeDelimited
  33797. * @memberof game.relic_event_select_rsp
  33798. * @static
  33799. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  33800. * @returns {game.relic_event_select_rsp} relic_event_select_rsp
  33801. * @throws {Error} If the payload is not a reader or valid buffer
  33802. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  33803. */
  33804. relic_event_select_rsp.decodeDelimited = function decodeDelimited(reader) {
  33805. if (!(reader instanceof $Reader))
  33806. reader = new $Reader(reader);
  33807. return this.decode(reader, reader.uint32());
  33808. };
  33809. /**
  33810. * Verifies a relic_event_select_rsp message.
  33811. * @function verify
  33812. * @memberof game.relic_event_select_rsp
  33813. * @static
  33814. * @param {Object.<string,*>} message Plain object to verify
  33815. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  33816. */
  33817. relic_event_select_rsp.verify = function verify(message) {
  33818. if (typeof message !== "object" || message === null)
  33819. return "object expected";
  33820. if (message.errno != null && message.hasOwnProperty("errno"))
  33821. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  33822. return "errno: integer|Long expected";
  33823. return null;
  33824. };
  33825. /**
  33826. * Creates a relic_event_select_rsp message from a plain object. Also converts values to their respective internal types.
  33827. * @function fromObject
  33828. * @memberof game.relic_event_select_rsp
  33829. * @static
  33830. * @param {Object.<string,*>} object Plain object
  33831. * @returns {game.relic_event_select_rsp} relic_event_select_rsp
  33832. */
  33833. relic_event_select_rsp.fromObject = function fromObject(object) {
  33834. if (object instanceof $root.game.relic_event_select_rsp)
  33835. return object;
  33836. let message = new $root.game.relic_event_select_rsp();
  33837. if (object.errno != null)
  33838. if ($util.Long)
  33839. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  33840. else if (typeof object.errno === "string")
  33841. message.errno = parseInt(object.errno, 10);
  33842. else if (typeof object.errno === "number")
  33843. message.errno = object.errno;
  33844. else if (typeof object.errno === "object")
  33845. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  33846. return message;
  33847. };
  33848. /**
  33849. * Creates a plain object from a relic_event_select_rsp message. Also converts values to other types if specified.
  33850. * @function toObject
  33851. * @memberof game.relic_event_select_rsp
  33852. * @static
  33853. * @param {game.relic_event_select_rsp} message relic_event_select_rsp
  33854. * @param {$protobuf.IConversionOptions} [options] Conversion options
  33855. * @returns {Object.<string,*>} Plain object
  33856. */
  33857. relic_event_select_rsp.toObject = function toObject(message, options) {
  33858. if (!options)
  33859. options = {};
  33860. let object = {};
  33861. if (options.defaults)
  33862. if ($util.Long) {
  33863. let long = new $util.Long(0, 0, false);
  33864. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  33865. } else
  33866. object.errno = options.longs === String ? "0" : 0;
  33867. if (message.errno != null && message.hasOwnProperty("errno"))
  33868. if (typeof message.errno === "number")
  33869. object.errno = options.longs === String ? String(message.errno) : message.errno;
  33870. else
  33871. 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;
  33872. return object;
  33873. };
  33874. /**
  33875. * Converts this relic_event_select_rsp to JSON.
  33876. * @function toJSON
  33877. * @memberof game.relic_event_select_rsp
  33878. * @instance
  33879. * @returns {Object.<string,*>} JSON object
  33880. */
  33881. relic_event_select_rsp.prototype.toJSON = function toJSON() {
  33882. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  33883. };
  33884. return relic_event_select_rsp;
  33885. })();
  33886. game.relic_data_nty = (function() {
  33887. /**
  33888. * Properties of a relic_data_nty.
  33889. * @memberof game
  33890. * @interface Irelic_data_nty
  33891. * @property {number|Long|null} [maxDiff] relic_data_nty maxDiff
  33892. * @property {number|Long|null} [curDiff] relic_data_nty curDiff
  33893. * @property {Array.<number|Long>|null} [buffList] relic_data_nty buffList
  33894. * @property {number|Long|null} [layer] relic_data_nty layer
  33895. * @property {number|Long|null} [pos] relic_data_nty pos
  33896. * @property {number|Long|null} [cost] relic_data_nty cost
  33897. * @property {number|Long|null} [state] relic_data_nty state
  33898. * @property {number|Long|null} [resetTime] relic_data_nty resetTime
  33899. * @property {Array.<number|Long>|null} [posList] relic_data_nty posList
  33900. * @property {Array.<number|Long>|null} [battleInfo] relic_data_nty battleInfo
  33901. * @property {number|Long|null} [addCost] relic_data_nty addCost
  33902. */
  33903. /**
  33904. * Constructs a new relic_data_nty.
  33905. * @memberof game
  33906. * @classdesc Represents a relic_data_nty.
  33907. * @implements Irelic_data_nty
  33908. * @constructor
  33909. * @param {game.Irelic_data_nty=} [properties] Properties to set
  33910. */
  33911. function relic_data_nty(properties) {
  33912. this.buffList = [];
  33913. this.posList = [];
  33914. this.battleInfo = [];
  33915. if (properties)
  33916. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  33917. if (properties[keys[i]] != null)
  33918. this[keys[i]] = properties[keys[i]];
  33919. }
  33920. /**
  33921. * relic_data_nty maxDiff.
  33922. * @member {number|Long} maxDiff
  33923. * @memberof game.relic_data_nty
  33924. * @instance
  33925. */
  33926. relic_data_nty.prototype.maxDiff = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  33927. /**
  33928. * relic_data_nty curDiff.
  33929. * @member {number|Long} curDiff
  33930. * @memberof game.relic_data_nty
  33931. * @instance
  33932. */
  33933. relic_data_nty.prototype.curDiff = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  33934. /**
  33935. * relic_data_nty buffList.
  33936. * @member {Array.<number|Long>} buffList
  33937. * @memberof game.relic_data_nty
  33938. * @instance
  33939. */
  33940. relic_data_nty.prototype.buffList = $util.emptyArray;
  33941. /**
  33942. * relic_data_nty layer.
  33943. * @member {number|Long} layer
  33944. * @memberof game.relic_data_nty
  33945. * @instance
  33946. */
  33947. relic_data_nty.prototype.layer = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  33948. /**
  33949. * relic_data_nty pos.
  33950. * @member {number|Long} pos
  33951. * @memberof game.relic_data_nty
  33952. * @instance
  33953. */
  33954. relic_data_nty.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  33955. /**
  33956. * relic_data_nty cost.
  33957. * @member {number|Long} cost
  33958. * @memberof game.relic_data_nty
  33959. * @instance
  33960. */
  33961. relic_data_nty.prototype.cost = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  33962. /**
  33963. * relic_data_nty state.
  33964. * @member {number|Long} state
  33965. * @memberof game.relic_data_nty
  33966. * @instance
  33967. */
  33968. relic_data_nty.prototype.state = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  33969. /**
  33970. * relic_data_nty resetTime.
  33971. * @member {number|Long} resetTime
  33972. * @memberof game.relic_data_nty
  33973. * @instance
  33974. */
  33975. relic_data_nty.prototype.resetTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  33976. /**
  33977. * relic_data_nty posList.
  33978. * @member {Array.<number|Long>} posList
  33979. * @memberof game.relic_data_nty
  33980. * @instance
  33981. */
  33982. relic_data_nty.prototype.posList = $util.emptyArray;
  33983. /**
  33984. * relic_data_nty battleInfo.
  33985. * @member {Array.<number|Long>} battleInfo
  33986. * @memberof game.relic_data_nty
  33987. * @instance
  33988. */
  33989. relic_data_nty.prototype.battleInfo = $util.emptyArray;
  33990. /**
  33991. * relic_data_nty addCost.
  33992. * @member {number|Long} addCost
  33993. * @memberof game.relic_data_nty
  33994. * @instance
  33995. */
  33996. relic_data_nty.prototype.addCost = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  33997. /**
  33998. * Creates a new relic_data_nty instance using the specified properties.
  33999. * @function create
  34000. * @memberof game.relic_data_nty
  34001. * @static
  34002. * @param {game.Irelic_data_nty=} [properties] Properties to set
  34003. * @returns {game.relic_data_nty} relic_data_nty instance
  34004. */
  34005. relic_data_nty.create = function create(properties) {
  34006. return new relic_data_nty(properties);
  34007. };
  34008. /**
  34009. * Encodes the specified relic_data_nty message. Does not implicitly {@link game.relic_data_nty.verify|verify} messages.
  34010. * @function encode
  34011. * @memberof game.relic_data_nty
  34012. * @static
  34013. * @param {game.Irelic_data_nty} message relic_data_nty message or plain object to encode
  34014. * @param {$protobuf.Writer} [writer] Writer to encode to
  34015. * @returns {$protobuf.Writer} Writer
  34016. */
  34017. relic_data_nty.encode = function encode(message, writer) {
  34018. if (!writer)
  34019. writer = $Writer.create();
  34020. if (message.maxDiff != null && Object.hasOwnProperty.call(message, "maxDiff"))
  34021. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.maxDiff);
  34022. if (message.curDiff != null && Object.hasOwnProperty.call(message, "curDiff"))
  34023. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.curDiff);
  34024. if (message.buffList != null && message.buffList.length) {
  34025. writer.uint32(/* id 4, wireType 2 =*/34).fork();
  34026. for (let i = 0; i < message.buffList.length; ++i)
  34027. writer.int64(message.buffList[i]);
  34028. writer.ldelim();
  34029. }
  34030. if (message.layer != null && Object.hasOwnProperty.call(message, "layer"))
  34031. writer.uint32(/* id 5, wireType 0 =*/40).int64(message.layer);
  34032. if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
  34033. writer.uint32(/* id 6, wireType 0 =*/48).int64(message.pos);
  34034. if (message.cost != null && Object.hasOwnProperty.call(message, "cost"))
  34035. writer.uint32(/* id 7, wireType 0 =*/56).int64(message.cost);
  34036. if (message.state != null && Object.hasOwnProperty.call(message, "state"))
  34037. writer.uint32(/* id 8, wireType 0 =*/64).int64(message.state);
  34038. if (message.resetTime != null && Object.hasOwnProperty.call(message, "resetTime"))
  34039. writer.uint32(/* id 9, wireType 0 =*/72).int64(message.resetTime);
  34040. if (message.posList != null && message.posList.length) {
  34041. writer.uint32(/* id 10, wireType 2 =*/82).fork();
  34042. for (let i = 0; i < message.posList.length; ++i)
  34043. writer.int64(message.posList[i]);
  34044. writer.ldelim();
  34045. }
  34046. if (message.battleInfo != null && message.battleInfo.length) {
  34047. writer.uint32(/* id 11, wireType 2 =*/90).fork();
  34048. for (let i = 0; i < message.battleInfo.length; ++i)
  34049. writer.int64(message.battleInfo[i]);
  34050. writer.ldelim();
  34051. }
  34052. if (message.addCost != null && Object.hasOwnProperty.call(message, "addCost"))
  34053. writer.uint32(/* id 12, wireType 0 =*/96).int64(message.addCost);
  34054. return writer;
  34055. };
  34056. /**
  34057. * Encodes the specified relic_data_nty message, length delimited. Does not implicitly {@link game.relic_data_nty.verify|verify} messages.
  34058. * @function encodeDelimited
  34059. * @memberof game.relic_data_nty
  34060. * @static
  34061. * @param {game.Irelic_data_nty} message relic_data_nty message or plain object to encode
  34062. * @param {$protobuf.Writer} [writer] Writer to encode to
  34063. * @returns {$protobuf.Writer} Writer
  34064. */
  34065. relic_data_nty.encodeDelimited = function encodeDelimited(message, writer) {
  34066. return this.encode(message, writer).ldelim();
  34067. };
  34068. /**
  34069. * Decodes a relic_data_nty message from the specified reader or buffer.
  34070. * @function decode
  34071. * @memberof game.relic_data_nty
  34072. * @static
  34073. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  34074. * @param {number} [length] Message length if known beforehand
  34075. * @returns {game.relic_data_nty} relic_data_nty
  34076. * @throws {Error} If the payload is not a reader or valid buffer
  34077. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  34078. */
  34079. relic_data_nty.decode = function decode(reader, length) {
  34080. if (!(reader instanceof $Reader))
  34081. reader = $Reader.create(reader);
  34082. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_data_nty();
  34083. while (reader.pos < end) {
  34084. let tag = reader.uint32();
  34085. switch (tag >>> 3) {
  34086. case 2:
  34087. message.maxDiff = reader.int64();
  34088. break;
  34089. case 3:
  34090. message.curDiff = reader.int64();
  34091. break;
  34092. case 4:
  34093. if (!(message.buffList && message.buffList.length))
  34094. message.buffList = [];
  34095. if ((tag & 7) === 2) {
  34096. let end2 = reader.uint32() + reader.pos;
  34097. while (reader.pos < end2)
  34098. message.buffList.push(reader.int64());
  34099. } else
  34100. message.buffList.push(reader.int64());
  34101. break;
  34102. case 5:
  34103. message.layer = reader.int64();
  34104. break;
  34105. case 6:
  34106. message.pos = reader.int64();
  34107. break;
  34108. case 7:
  34109. message.cost = reader.int64();
  34110. break;
  34111. case 8:
  34112. message.state = reader.int64();
  34113. break;
  34114. case 9:
  34115. message.resetTime = reader.int64();
  34116. break;
  34117. case 10:
  34118. if (!(message.posList && message.posList.length))
  34119. message.posList = [];
  34120. if ((tag & 7) === 2) {
  34121. let end2 = reader.uint32() + reader.pos;
  34122. while (reader.pos < end2)
  34123. message.posList.push(reader.int64());
  34124. } else
  34125. message.posList.push(reader.int64());
  34126. break;
  34127. case 11:
  34128. if (!(message.battleInfo && message.battleInfo.length))
  34129. message.battleInfo = [];
  34130. if ((tag & 7) === 2) {
  34131. let end2 = reader.uint32() + reader.pos;
  34132. while (reader.pos < end2)
  34133. message.battleInfo.push(reader.int64());
  34134. } else
  34135. message.battleInfo.push(reader.int64());
  34136. break;
  34137. case 12:
  34138. message.addCost = reader.int64();
  34139. break;
  34140. default:
  34141. reader.skipType(tag & 7);
  34142. break;
  34143. }
  34144. }
  34145. return message;
  34146. };
  34147. /**
  34148. * Decodes a relic_data_nty message from the specified reader or buffer, length delimited.
  34149. * @function decodeDelimited
  34150. * @memberof game.relic_data_nty
  34151. * @static
  34152. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  34153. * @returns {game.relic_data_nty} relic_data_nty
  34154. * @throws {Error} If the payload is not a reader or valid buffer
  34155. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  34156. */
  34157. relic_data_nty.decodeDelimited = function decodeDelimited(reader) {
  34158. if (!(reader instanceof $Reader))
  34159. reader = new $Reader(reader);
  34160. return this.decode(reader, reader.uint32());
  34161. };
  34162. /**
  34163. * Verifies a relic_data_nty message.
  34164. * @function verify
  34165. * @memberof game.relic_data_nty
  34166. * @static
  34167. * @param {Object.<string,*>} message Plain object to verify
  34168. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  34169. */
  34170. relic_data_nty.verify = function verify(message) {
  34171. if (typeof message !== "object" || message === null)
  34172. return "object expected";
  34173. if (message.maxDiff != null && message.hasOwnProperty("maxDiff"))
  34174. if (!$util.isInteger(message.maxDiff) && !(message.maxDiff && $util.isInteger(message.maxDiff.low) && $util.isInteger(message.maxDiff.high)))
  34175. return "maxDiff: integer|Long expected";
  34176. if (message.curDiff != null && message.hasOwnProperty("curDiff"))
  34177. if (!$util.isInteger(message.curDiff) && !(message.curDiff && $util.isInteger(message.curDiff.low) && $util.isInteger(message.curDiff.high)))
  34178. return "curDiff: integer|Long expected";
  34179. if (message.buffList != null && message.hasOwnProperty("buffList")) {
  34180. if (!Array.isArray(message.buffList))
  34181. return "buffList: array expected";
  34182. for (let i = 0; i < message.buffList.length; ++i)
  34183. if (!$util.isInteger(message.buffList[i]) && !(message.buffList[i] && $util.isInteger(message.buffList[i].low) && $util.isInteger(message.buffList[i].high)))
  34184. return "buffList: integer|Long[] expected";
  34185. }
  34186. if (message.layer != null && message.hasOwnProperty("layer"))
  34187. if (!$util.isInteger(message.layer) && !(message.layer && $util.isInteger(message.layer.low) && $util.isInteger(message.layer.high)))
  34188. return "layer: integer|Long expected";
  34189. if (message.pos != null && message.hasOwnProperty("pos"))
  34190. if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
  34191. return "pos: integer|Long expected";
  34192. if (message.cost != null && message.hasOwnProperty("cost"))
  34193. if (!$util.isInteger(message.cost) && !(message.cost && $util.isInteger(message.cost.low) && $util.isInteger(message.cost.high)))
  34194. return "cost: integer|Long expected";
  34195. if (message.state != null && message.hasOwnProperty("state"))
  34196. if (!$util.isInteger(message.state) && !(message.state && $util.isInteger(message.state.low) && $util.isInteger(message.state.high)))
  34197. return "state: integer|Long expected";
  34198. if (message.resetTime != null && message.hasOwnProperty("resetTime"))
  34199. if (!$util.isInteger(message.resetTime) && !(message.resetTime && $util.isInteger(message.resetTime.low) && $util.isInteger(message.resetTime.high)))
  34200. return "resetTime: integer|Long expected";
  34201. if (message.posList != null && message.hasOwnProperty("posList")) {
  34202. if (!Array.isArray(message.posList))
  34203. return "posList: array expected";
  34204. for (let i = 0; i < message.posList.length; ++i)
  34205. if (!$util.isInteger(message.posList[i]) && !(message.posList[i] && $util.isInteger(message.posList[i].low) && $util.isInteger(message.posList[i].high)))
  34206. return "posList: integer|Long[] expected";
  34207. }
  34208. if (message.battleInfo != null && message.hasOwnProperty("battleInfo")) {
  34209. if (!Array.isArray(message.battleInfo))
  34210. return "battleInfo: array expected";
  34211. for (let i = 0; i < message.battleInfo.length; ++i)
  34212. if (!$util.isInteger(message.battleInfo[i]) && !(message.battleInfo[i] && $util.isInteger(message.battleInfo[i].low) && $util.isInteger(message.battleInfo[i].high)))
  34213. return "battleInfo: integer|Long[] expected";
  34214. }
  34215. if (message.addCost != null && message.hasOwnProperty("addCost"))
  34216. if (!$util.isInteger(message.addCost) && !(message.addCost && $util.isInteger(message.addCost.low) && $util.isInteger(message.addCost.high)))
  34217. return "addCost: integer|Long expected";
  34218. return null;
  34219. };
  34220. /**
  34221. * Creates a relic_data_nty message from a plain object. Also converts values to their respective internal types.
  34222. * @function fromObject
  34223. * @memberof game.relic_data_nty
  34224. * @static
  34225. * @param {Object.<string,*>} object Plain object
  34226. * @returns {game.relic_data_nty} relic_data_nty
  34227. */
  34228. relic_data_nty.fromObject = function fromObject(object) {
  34229. if (object instanceof $root.game.relic_data_nty)
  34230. return object;
  34231. let message = new $root.game.relic_data_nty();
  34232. if (object.maxDiff != null)
  34233. if ($util.Long)
  34234. (message.maxDiff = $util.Long.fromValue(object.maxDiff)).unsigned = false;
  34235. else if (typeof object.maxDiff === "string")
  34236. message.maxDiff = parseInt(object.maxDiff, 10);
  34237. else if (typeof object.maxDiff === "number")
  34238. message.maxDiff = object.maxDiff;
  34239. else if (typeof object.maxDiff === "object")
  34240. message.maxDiff = new $util.LongBits(object.maxDiff.low >>> 0, object.maxDiff.high >>> 0).toNumber();
  34241. if (object.curDiff != null)
  34242. if ($util.Long)
  34243. (message.curDiff = $util.Long.fromValue(object.curDiff)).unsigned = false;
  34244. else if (typeof object.curDiff === "string")
  34245. message.curDiff = parseInt(object.curDiff, 10);
  34246. else if (typeof object.curDiff === "number")
  34247. message.curDiff = object.curDiff;
  34248. else if (typeof object.curDiff === "object")
  34249. message.curDiff = new $util.LongBits(object.curDiff.low >>> 0, object.curDiff.high >>> 0).toNumber();
  34250. if (object.buffList) {
  34251. if (!Array.isArray(object.buffList))
  34252. throw TypeError(".game.relic_data_nty.buffList: array expected");
  34253. message.buffList = [];
  34254. for (let i = 0; i < object.buffList.length; ++i)
  34255. if ($util.Long)
  34256. (message.buffList[i] = $util.Long.fromValue(object.buffList[i])).unsigned = false;
  34257. else if (typeof object.buffList[i] === "string")
  34258. message.buffList[i] = parseInt(object.buffList[i], 10);
  34259. else if (typeof object.buffList[i] === "number")
  34260. message.buffList[i] = object.buffList[i];
  34261. else if (typeof object.buffList[i] === "object")
  34262. message.buffList[i] = new $util.LongBits(object.buffList[i].low >>> 0, object.buffList[i].high >>> 0).toNumber();
  34263. }
  34264. if (object.layer != null)
  34265. if ($util.Long)
  34266. (message.layer = $util.Long.fromValue(object.layer)).unsigned = false;
  34267. else if (typeof object.layer === "string")
  34268. message.layer = parseInt(object.layer, 10);
  34269. else if (typeof object.layer === "number")
  34270. message.layer = object.layer;
  34271. else if (typeof object.layer === "object")
  34272. message.layer = new $util.LongBits(object.layer.low >>> 0, object.layer.high >>> 0).toNumber();
  34273. if (object.pos != null)
  34274. if ($util.Long)
  34275. (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
  34276. else if (typeof object.pos === "string")
  34277. message.pos = parseInt(object.pos, 10);
  34278. else if (typeof object.pos === "number")
  34279. message.pos = object.pos;
  34280. else if (typeof object.pos === "object")
  34281. message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
  34282. if (object.cost != null)
  34283. if ($util.Long)
  34284. (message.cost = $util.Long.fromValue(object.cost)).unsigned = false;
  34285. else if (typeof object.cost === "string")
  34286. message.cost = parseInt(object.cost, 10);
  34287. else if (typeof object.cost === "number")
  34288. message.cost = object.cost;
  34289. else if (typeof object.cost === "object")
  34290. message.cost = new $util.LongBits(object.cost.low >>> 0, object.cost.high >>> 0).toNumber();
  34291. if (object.state != null)
  34292. if ($util.Long)
  34293. (message.state = $util.Long.fromValue(object.state)).unsigned = false;
  34294. else if (typeof object.state === "string")
  34295. message.state = parseInt(object.state, 10);
  34296. else if (typeof object.state === "number")
  34297. message.state = object.state;
  34298. else if (typeof object.state === "object")
  34299. message.state = new $util.LongBits(object.state.low >>> 0, object.state.high >>> 0).toNumber();
  34300. if (object.resetTime != null)
  34301. if ($util.Long)
  34302. (message.resetTime = $util.Long.fromValue(object.resetTime)).unsigned = false;
  34303. else if (typeof object.resetTime === "string")
  34304. message.resetTime = parseInt(object.resetTime, 10);
  34305. else if (typeof object.resetTime === "number")
  34306. message.resetTime = object.resetTime;
  34307. else if (typeof object.resetTime === "object")
  34308. message.resetTime = new $util.LongBits(object.resetTime.low >>> 0, object.resetTime.high >>> 0).toNumber();
  34309. if (object.posList) {
  34310. if (!Array.isArray(object.posList))
  34311. throw TypeError(".game.relic_data_nty.posList: array expected");
  34312. message.posList = [];
  34313. for (let i = 0; i < object.posList.length; ++i)
  34314. if ($util.Long)
  34315. (message.posList[i] = $util.Long.fromValue(object.posList[i])).unsigned = false;
  34316. else if (typeof object.posList[i] === "string")
  34317. message.posList[i] = parseInt(object.posList[i], 10);
  34318. else if (typeof object.posList[i] === "number")
  34319. message.posList[i] = object.posList[i];
  34320. else if (typeof object.posList[i] === "object")
  34321. message.posList[i] = new $util.LongBits(object.posList[i].low >>> 0, object.posList[i].high >>> 0).toNumber();
  34322. }
  34323. if (object.battleInfo) {
  34324. if (!Array.isArray(object.battleInfo))
  34325. throw TypeError(".game.relic_data_nty.battleInfo: array expected");
  34326. message.battleInfo = [];
  34327. for (let i = 0; i < object.battleInfo.length; ++i)
  34328. if ($util.Long)
  34329. (message.battleInfo[i] = $util.Long.fromValue(object.battleInfo[i])).unsigned = false;
  34330. else if (typeof object.battleInfo[i] === "string")
  34331. message.battleInfo[i] = parseInt(object.battleInfo[i], 10);
  34332. else if (typeof object.battleInfo[i] === "number")
  34333. message.battleInfo[i] = object.battleInfo[i];
  34334. else if (typeof object.battleInfo[i] === "object")
  34335. message.battleInfo[i] = new $util.LongBits(object.battleInfo[i].low >>> 0, object.battleInfo[i].high >>> 0).toNumber();
  34336. }
  34337. if (object.addCost != null)
  34338. if ($util.Long)
  34339. (message.addCost = $util.Long.fromValue(object.addCost)).unsigned = false;
  34340. else if (typeof object.addCost === "string")
  34341. message.addCost = parseInt(object.addCost, 10);
  34342. else if (typeof object.addCost === "number")
  34343. message.addCost = object.addCost;
  34344. else if (typeof object.addCost === "object")
  34345. message.addCost = new $util.LongBits(object.addCost.low >>> 0, object.addCost.high >>> 0).toNumber();
  34346. return message;
  34347. };
  34348. /**
  34349. * Creates a plain object from a relic_data_nty message. Also converts values to other types if specified.
  34350. * @function toObject
  34351. * @memberof game.relic_data_nty
  34352. * @static
  34353. * @param {game.relic_data_nty} message relic_data_nty
  34354. * @param {$protobuf.IConversionOptions} [options] Conversion options
  34355. * @returns {Object.<string,*>} Plain object
  34356. */
  34357. relic_data_nty.toObject = function toObject(message, options) {
  34358. if (!options)
  34359. options = {};
  34360. let object = {};
  34361. if (options.arrays || options.defaults) {
  34362. object.buffList = [];
  34363. object.posList = [];
  34364. object.battleInfo = [];
  34365. }
  34366. if (options.defaults) {
  34367. if ($util.Long) {
  34368. let long = new $util.Long(0, 0, false);
  34369. object.maxDiff = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  34370. } else
  34371. object.maxDiff = options.longs === String ? "0" : 0;
  34372. if ($util.Long) {
  34373. let long = new $util.Long(0, 0, false);
  34374. object.curDiff = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  34375. } else
  34376. object.curDiff = options.longs === String ? "0" : 0;
  34377. if ($util.Long) {
  34378. let long = new $util.Long(0, 0, false);
  34379. object.layer = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  34380. } else
  34381. object.layer = options.longs === String ? "0" : 0;
  34382. if ($util.Long) {
  34383. let long = new $util.Long(0, 0, false);
  34384. object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  34385. } else
  34386. object.pos = options.longs === String ? "0" : 0;
  34387. if ($util.Long) {
  34388. let long = new $util.Long(0, 0, false);
  34389. object.cost = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  34390. } else
  34391. object.cost = options.longs === String ? "0" : 0;
  34392. if ($util.Long) {
  34393. let long = new $util.Long(0, 0, false);
  34394. object.state = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  34395. } else
  34396. object.state = options.longs === String ? "0" : 0;
  34397. if ($util.Long) {
  34398. let long = new $util.Long(0, 0, false);
  34399. object.resetTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  34400. } else
  34401. object.resetTime = options.longs === String ? "0" : 0;
  34402. if ($util.Long) {
  34403. let long = new $util.Long(0, 0, false);
  34404. object.addCost = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  34405. } else
  34406. object.addCost = options.longs === String ? "0" : 0;
  34407. }
  34408. if (message.maxDiff != null && message.hasOwnProperty("maxDiff"))
  34409. if (typeof message.maxDiff === "number")
  34410. object.maxDiff = options.longs === String ? String(message.maxDiff) : message.maxDiff;
  34411. else
  34412. 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;
  34413. if (message.curDiff != null && message.hasOwnProperty("curDiff"))
  34414. if (typeof message.curDiff === "number")
  34415. object.curDiff = options.longs === String ? String(message.curDiff) : message.curDiff;
  34416. else
  34417. 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;
  34418. if (message.buffList && message.buffList.length) {
  34419. object.buffList = [];
  34420. for (let j = 0; j < message.buffList.length; ++j)
  34421. if (typeof message.buffList[j] === "number")
  34422. object.buffList[j] = options.longs === String ? String(message.buffList[j]) : message.buffList[j];
  34423. else
  34424. 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];
  34425. }
  34426. if (message.layer != null && message.hasOwnProperty("layer"))
  34427. if (typeof message.layer === "number")
  34428. object.layer = options.longs === String ? String(message.layer) : message.layer;
  34429. else
  34430. 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;
  34431. if (message.pos != null && message.hasOwnProperty("pos"))
  34432. if (typeof message.pos === "number")
  34433. object.pos = options.longs === String ? String(message.pos) : message.pos;
  34434. else
  34435. 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;
  34436. if (message.cost != null && message.hasOwnProperty("cost"))
  34437. if (typeof message.cost === "number")
  34438. object.cost = options.longs === String ? String(message.cost) : message.cost;
  34439. else
  34440. 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;
  34441. if (message.state != null && message.hasOwnProperty("state"))
  34442. if (typeof message.state === "number")
  34443. object.state = options.longs === String ? String(message.state) : message.state;
  34444. else
  34445. 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;
  34446. if (message.resetTime != null && message.hasOwnProperty("resetTime"))
  34447. if (typeof message.resetTime === "number")
  34448. object.resetTime = options.longs === String ? String(message.resetTime) : message.resetTime;
  34449. else
  34450. 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;
  34451. if (message.posList && message.posList.length) {
  34452. object.posList = [];
  34453. for (let j = 0; j < message.posList.length; ++j)
  34454. if (typeof message.posList[j] === "number")
  34455. object.posList[j] = options.longs === String ? String(message.posList[j]) : message.posList[j];
  34456. else
  34457. 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];
  34458. }
  34459. if (message.battleInfo && message.battleInfo.length) {
  34460. object.battleInfo = [];
  34461. for (let j = 0; j < message.battleInfo.length; ++j)
  34462. if (typeof message.battleInfo[j] === "number")
  34463. object.battleInfo[j] = options.longs === String ? String(message.battleInfo[j]) : message.battleInfo[j];
  34464. else
  34465. 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];
  34466. }
  34467. if (message.addCost != null && message.hasOwnProperty("addCost"))
  34468. if (typeof message.addCost === "number")
  34469. object.addCost = options.longs === String ? String(message.addCost) : message.addCost;
  34470. else
  34471. object.addCost = options.longs === String ? $util.Long.prototype.toString.call(message.addCost) : options.longs === Number ? new $util.LongBits(message.addCost.low >>> 0, message.addCost.high >>> 0).toNumber() : message.addCost;
  34472. return object;
  34473. };
  34474. /**
  34475. * Converts this relic_data_nty to JSON.
  34476. * @function toJSON
  34477. * @memberof game.relic_data_nty
  34478. * @instance
  34479. * @returns {Object.<string,*>} JSON object
  34480. */
  34481. relic_data_nty.prototype.toJSON = function toJSON() {
  34482. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  34483. };
  34484. return relic_data_nty;
  34485. })();
  34486. game.relic_event_nty = (function() {
  34487. /**
  34488. * Properties of a relic_event_nty.
  34489. * @memberof game
  34490. * @interface Irelic_event_nty
  34491. * @property {number|Long|null} [type] relic_event_nty type
  34492. * @property {number|Long|null} [battleId] relic_event_nty battleId
  34493. * @property {number|Long|null} [battleType] relic_event_nty battleType
  34494. * @property {Array.<number|Long>|null} [selectBuff] relic_event_nty selectBuff
  34495. */
  34496. /**
  34497. * Constructs a new relic_event_nty.
  34498. * @memberof game
  34499. * @classdesc Represents a relic_event_nty.
  34500. * @implements Irelic_event_nty
  34501. * @constructor
  34502. * @param {game.Irelic_event_nty=} [properties] Properties to set
  34503. */
  34504. function relic_event_nty(properties) {
  34505. this.selectBuff = [];
  34506. if (properties)
  34507. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  34508. if (properties[keys[i]] != null)
  34509. this[keys[i]] = properties[keys[i]];
  34510. }
  34511. /**
  34512. * relic_event_nty type.
  34513. * @member {number|Long} type
  34514. * @memberof game.relic_event_nty
  34515. * @instance
  34516. */
  34517. relic_event_nty.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  34518. /**
  34519. * relic_event_nty battleId.
  34520. * @member {number|Long} battleId
  34521. * @memberof game.relic_event_nty
  34522. * @instance
  34523. */
  34524. relic_event_nty.prototype.battleId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  34525. /**
  34526. * relic_event_nty battleType.
  34527. * @member {number|Long} battleType
  34528. * @memberof game.relic_event_nty
  34529. * @instance
  34530. */
  34531. relic_event_nty.prototype.battleType = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  34532. /**
  34533. * relic_event_nty selectBuff.
  34534. * @member {Array.<number|Long>} selectBuff
  34535. * @memberof game.relic_event_nty
  34536. * @instance
  34537. */
  34538. relic_event_nty.prototype.selectBuff = $util.emptyArray;
  34539. /**
  34540. * Creates a new relic_event_nty instance using the specified properties.
  34541. * @function create
  34542. * @memberof game.relic_event_nty
  34543. * @static
  34544. * @param {game.Irelic_event_nty=} [properties] Properties to set
  34545. * @returns {game.relic_event_nty} relic_event_nty instance
  34546. */
  34547. relic_event_nty.create = function create(properties) {
  34548. return new relic_event_nty(properties);
  34549. };
  34550. /**
  34551. * Encodes the specified relic_event_nty message. Does not implicitly {@link game.relic_event_nty.verify|verify} messages.
  34552. * @function encode
  34553. * @memberof game.relic_event_nty
  34554. * @static
  34555. * @param {game.Irelic_event_nty} message relic_event_nty message or plain object to encode
  34556. * @param {$protobuf.Writer} [writer] Writer to encode to
  34557. * @returns {$protobuf.Writer} Writer
  34558. */
  34559. relic_event_nty.encode = function encode(message, writer) {
  34560. if (!writer)
  34561. writer = $Writer.create();
  34562. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  34563. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
  34564. if (message.battleId != null && Object.hasOwnProperty.call(message, "battleId"))
  34565. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.battleId);
  34566. if (message.battleType != null && Object.hasOwnProperty.call(message, "battleType"))
  34567. writer.uint32(/* id 5, wireType 0 =*/40).int64(message.battleType);
  34568. if (message.selectBuff != null && message.selectBuff.length) {
  34569. writer.uint32(/* id 6, wireType 2 =*/50).fork();
  34570. for (let i = 0; i < message.selectBuff.length; ++i)
  34571. writer.int64(message.selectBuff[i]);
  34572. writer.ldelim();
  34573. }
  34574. return writer;
  34575. };
  34576. /**
  34577. * Encodes the specified relic_event_nty message, length delimited. Does not implicitly {@link game.relic_event_nty.verify|verify} messages.
  34578. * @function encodeDelimited
  34579. * @memberof game.relic_event_nty
  34580. * @static
  34581. * @param {game.Irelic_event_nty} message relic_event_nty message or plain object to encode
  34582. * @param {$protobuf.Writer} [writer] Writer to encode to
  34583. * @returns {$protobuf.Writer} Writer
  34584. */
  34585. relic_event_nty.encodeDelimited = function encodeDelimited(message, writer) {
  34586. return this.encode(message, writer).ldelim();
  34587. };
  34588. /**
  34589. * Decodes a relic_event_nty message from the specified reader or buffer.
  34590. * @function decode
  34591. * @memberof game.relic_event_nty
  34592. * @static
  34593. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  34594. * @param {number} [length] Message length if known beforehand
  34595. * @returns {game.relic_event_nty} relic_event_nty
  34596. * @throws {Error} If the payload is not a reader or valid buffer
  34597. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  34598. */
  34599. relic_event_nty.decode = function decode(reader, length) {
  34600. if (!(reader instanceof $Reader))
  34601. reader = $Reader.create(reader);
  34602. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_event_nty();
  34603. while (reader.pos < end) {
  34604. let tag = reader.uint32();
  34605. switch (tag >>> 3) {
  34606. case 1:
  34607. message.type = reader.int64();
  34608. break;
  34609. case 4:
  34610. message.battleId = reader.int64();
  34611. break;
  34612. case 5:
  34613. message.battleType = reader.int64();
  34614. break;
  34615. case 6:
  34616. if (!(message.selectBuff && message.selectBuff.length))
  34617. message.selectBuff = [];
  34618. if ((tag & 7) === 2) {
  34619. let end2 = reader.uint32() + reader.pos;
  34620. while (reader.pos < end2)
  34621. message.selectBuff.push(reader.int64());
  34622. } else
  34623. message.selectBuff.push(reader.int64());
  34624. break;
  34625. default:
  34626. reader.skipType(tag & 7);
  34627. break;
  34628. }
  34629. }
  34630. return message;
  34631. };
  34632. /**
  34633. * Decodes a relic_event_nty message from the specified reader or buffer, length delimited.
  34634. * @function decodeDelimited
  34635. * @memberof game.relic_event_nty
  34636. * @static
  34637. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  34638. * @returns {game.relic_event_nty} relic_event_nty
  34639. * @throws {Error} If the payload is not a reader or valid buffer
  34640. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  34641. */
  34642. relic_event_nty.decodeDelimited = function decodeDelimited(reader) {
  34643. if (!(reader instanceof $Reader))
  34644. reader = new $Reader(reader);
  34645. return this.decode(reader, reader.uint32());
  34646. };
  34647. /**
  34648. * Verifies a relic_event_nty message.
  34649. * @function verify
  34650. * @memberof game.relic_event_nty
  34651. * @static
  34652. * @param {Object.<string,*>} message Plain object to verify
  34653. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  34654. */
  34655. relic_event_nty.verify = function verify(message) {
  34656. if (typeof message !== "object" || message === null)
  34657. return "object expected";
  34658. if (message.type != null && message.hasOwnProperty("type"))
  34659. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  34660. return "type: integer|Long expected";
  34661. if (message.battleId != null && message.hasOwnProperty("battleId"))
  34662. if (!$util.isInteger(message.battleId) && !(message.battleId && $util.isInteger(message.battleId.low) && $util.isInteger(message.battleId.high)))
  34663. return "battleId: integer|Long expected";
  34664. if (message.battleType != null && message.hasOwnProperty("battleType"))
  34665. if (!$util.isInteger(message.battleType) && !(message.battleType && $util.isInteger(message.battleType.low) && $util.isInteger(message.battleType.high)))
  34666. return "battleType: integer|Long expected";
  34667. if (message.selectBuff != null && message.hasOwnProperty("selectBuff")) {
  34668. if (!Array.isArray(message.selectBuff))
  34669. return "selectBuff: array expected";
  34670. for (let i = 0; i < message.selectBuff.length; ++i)
  34671. if (!$util.isInteger(message.selectBuff[i]) && !(message.selectBuff[i] && $util.isInteger(message.selectBuff[i].low) && $util.isInteger(message.selectBuff[i].high)))
  34672. return "selectBuff: integer|Long[] expected";
  34673. }
  34674. return null;
  34675. };
  34676. /**
  34677. * Creates a relic_event_nty message from a plain object. Also converts values to their respective internal types.
  34678. * @function fromObject
  34679. * @memberof game.relic_event_nty
  34680. * @static
  34681. * @param {Object.<string,*>} object Plain object
  34682. * @returns {game.relic_event_nty} relic_event_nty
  34683. */
  34684. relic_event_nty.fromObject = function fromObject(object) {
  34685. if (object instanceof $root.game.relic_event_nty)
  34686. return object;
  34687. let message = new $root.game.relic_event_nty();
  34688. if (object.type != null)
  34689. if ($util.Long)
  34690. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  34691. else if (typeof object.type === "string")
  34692. message.type = parseInt(object.type, 10);
  34693. else if (typeof object.type === "number")
  34694. message.type = object.type;
  34695. else if (typeof object.type === "object")
  34696. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  34697. if (object.battleId != null)
  34698. if ($util.Long)
  34699. (message.battleId = $util.Long.fromValue(object.battleId)).unsigned = false;
  34700. else if (typeof object.battleId === "string")
  34701. message.battleId = parseInt(object.battleId, 10);
  34702. else if (typeof object.battleId === "number")
  34703. message.battleId = object.battleId;
  34704. else if (typeof object.battleId === "object")
  34705. message.battleId = new $util.LongBits(object.battleId.low >>> 0, object.battleId.high >>> 0).toNumber();
  34706. if (object.battleType != null)
  34707. if ($util.Long)
  34708. (message.battleType = $util.Long.fromValue(object.battleType)).unsigned = false;
  34709. else if (typeof object.battleType === "string")
  34710. message.battleType = parseInt(object.battleType, 10);
  34711. else if (typeof object.battleType === "number")
  34712. message.battleType = object.battleType;
  34713. else if (typeof object.battleType === "object")
  34714. message.battleType = new $util.LongBits(object.battleType.low >>> 0, object.battleType.high >>> 0).toNumber();
  34715. if (object.selectBuff) {
  34716. if (!Array.isArray(object.selectBuff))
  34717. throw TypeError(".game.relic_event_nty.selectBuff: array expected");
  34718. message.selectBuff = [];
  34719. for (let i = 0; i < object.selectBuff.length; ++i)
  34720. if ($util.Long)
  34721. (message.selectBuff[i] = $util.Long.fromValue(object.selectBuff[i])).unsigned = false;
  34722. else if (typeof object.selectBuff[i] === "string")
  34723. message.selectBuff[i] = parseInt(object.selectBuff[i], 10);
  34724. else if (typeof object.selectBuff[i] === "number")
  34725. message.selectBuff[i] = object.selectBuff[i];
  34726. else if (typeof object.selectBuff[i] === "object")
  34727. message.selectBuff[i] = new $util.LongBits(object.selectBuff[i].low >>> 0, object.selectBuff[i].high >>> 0).toNumber();
  34728. }
  34729. return message;
  34730. };
  34731. /**
  34732. * Creates a plain object from a relic_event_nty message. Also converts values to other types if specified.
  34733. * @function toObject
  34734. * @memberof game.relic_event_nty
  34735. * @static
  34736. * @param {game.relic_event_nty} message relic_event_nty
  34737. * @param {$protobuf.IConversionOptions} [options] Conversion options
  34738. * @returns {Object.<string,*>} Plain object
  34739. */
  34740. relic_event_nty.toObject = function toObject(message, options) {
  34741. if (!options)
  34742. options = {};
  34743. let object = {};
  34744. if (options.arrays || options.defaults)
  34745. object.selectBuff = [];
  34746. if (options.defaults) {
  34747. if ($util.Long) {
  34748. let long = new $util.Long(0, 0, false);
  34749. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  34750. } else
  34751. object.type = options.longs === String ? "0" : 0;
  34752. if ($util.Long) {
  34753. let long = new $util.Long(0, 0, false);
  34754. object.battleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  34755. } else
  34756. object.battleId = options.longs === String ? "0" : 0;
  34757. if ($util.Long) {
  34758. let long = new $util.Long(0, 0, false);
  34759. object.battleType = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  34760. } else
  34761. object.battleType = options.longs === String ? "0" : 0;
  34762. }
  34763. if (message.type != null && message.hasOwnProperty("type"))
  34764. if (typeof message.type === "number")
  34765. object.type = options.longs === String ? String(message.type) : message.type;
  34766. else
  34767. 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;
  34768. if (message.battleId != null && message.hasOwnProperty("battleId"))
  34769. if (typeof message.battleId === "number")
  34770. object.battleId = options.longs === String ? String(message.battleId) : message.battleId;
  34771. else
  34772. 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;
  34773. if (message.battleType != null && message.hasOwnProperty("battleType"))
  34774. if (typeof message.battleType === "number")
  34775. object.battleType = options.longs === String ? String(message.battleType) : message.battleType;
  34776. else
  34777. 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;
  34778. if (message.selectBuff && message.selectBuff.length) {
  34779. object.selectBuff = [];
  34780. for (let j = 0; j < message.selectBuff.length; ++j)
  34781. if (typeof message.selectBuff[j] === "number")
  34782. object.selectBuff[j] = options.longs === String ? String(message.selectBuff[j]) : message.selectBuff[j];
  34783. else
  34784. 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];
  34785. }
  34786. return object;
  34787. };
  34788. /**
  34789. * Converts this relic_event_nty to JSON.
  34790. * @function toJSON
  34791. * @memberof game.relic_event_nty
  34792. * @instance
  34793. * @returns {Object.<string,*>} JSON object
  34794. */
  34795. relic_event_nty.prototype.toJSON = function toJSON() {
  34796. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  34797. };
  34798. return relic_event_nty;
  34799. })();
  34800. game.activity_time_list_nty = (function() {
  34801. /**
  34802. * Properties of an activity_time_list_nty.
  34803. * @memberof game
  34804. * @interface Iactivity_time_list_nty
  34805. * @property {Array.<game.Iactivity_time_info>|null} [list] activity_time_list_nty list
  34806. */
  34807. /**
  34808. * Constructs a new activity_time_list_nty.
  34809. * @memberof game
  34810. * @classdesc Represents an activity_time_list_nty.
  34811. * @implements Iactivity_time_list_nty
  34812. * @constructor
  34813. * @param {game.Iactivity_time_list_nty=} [properties] Properties to set
  34814. */
  34815. function activity_time_list_nty(properties) {
  34816. this.list = [];
  34817. if (properties)
  34818. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  34819. if (properties[keys[i]] != null)
  34820. this[keys[i]] = properties[keys[i]];
  34821. }
  34822. /**
  34823. * activity_time_list_nty list.
  34824. * @member {Array.<game.Iactivity_time_info>} list
  34825. * @memberof game.activity_time_list_nty
  34826. * @instance
  34827. */
  34828. activity_time_list_nty.prototype.list = $util.emptyArray;
  34829. /**
  34830. * Creates a new activity_time_list_nty instance using the specified properties.
  34831. * @function create
  34832. * @memberof game.activity_time_list_nty
  34833. * @static
  34834. * @param {game.Iactivity_time_list_nty=} [properties] Properties to set
  34835. * @returns {game.activity_time_list_nty} activity_time_list_nty instance
  34836. */
  34837. activity_time_list_nty.create = function create(properties) {
  34838. return new activity_time_list_nty(properties);
  34839. };
  34840. /**
  34841. * Encodes the specified activity_time_list_nty message. Does not implicitly {@link game.activity_time_list_nty.verify|verify} messages.
  34842. * @function encode
  34843. * @memberof game.activity_time_list_nty
  34844. * @static
  34845. * @param {game.Iactivity_time_list_nty} message activity_time_list_nty message or plain object to encode
  34846. * @param {$protobuf.Writer} [writer] Writer to encode to
  34847. * @returns {$protobuf.Writer} Writer
  34848. */
  34849. activity_time_list_nty.encode = function encode(message, writer) {
  34850. if (!writer)
  34851. writer = $Writer.create();
  34852. if (message.list != null && message.list.length)
  34853. for (let i = 0; i < message.list.length; ++i)
  34854. $root.game.activity_time_info.encode(message.list[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
  34855. return writer;
  34856. };
  34857. /**
  34858. * Encodes the specified activity_time_list_nty message, length delimited. Does not implicitly {@link game.activity_time_list_nty.verify|verify} messages.
  34859. * @function encodeDelimited
  34860. * @memberof game.activity_time_list_nty
  34861. * @static
  34862. * @param {game.Iactivity_time_list_nty} message activity_time_list_nty message or plain object to encode
  34863. * @param {$protobuf.Writer} [writer] Writer to encode to
  34864. * @returns {$protobuf.Writer} Writer
  34865. */
  34866. activity_time_list_nty.encodeDelimited = function encodeDelimited(message, writer) {
  34867. return this.encode(message, writer).ldelim();
  34868. };
  34869. /**
  34870. * Decodes an activity_time_list_nty message from the specified reader or buffer.
  34871. * @function decode
  34872. * @memberof game.activity_time_list_nty
  34873. * @static
  34874. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  34875. * @param {number} [length] Message length if known beforehand
  34876. * @returns {game.activity_time_list_nty} activity_time_list_nty
  34877. * @throws {Error} If the payload is not a reader or valid buffer
  34878. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  34879. */
  34880. activity_time_list_nty.decode = function decode(reader, length) {
  34881. if (!(reader instanceof $Reader))
  34882. reader = $Reader.create(reader);
  34883. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.activity_time_list_nty();
  34884. while (reader.pos < end) {
  34885. let tag = reader.uint32();
  34886. switch (tag >>> 3) {
  34887. case 1:
  34888. if (!(message.list && message.list.length))
  34889. message.list = [];
  34890. message.list.push($root.game.activity_time_info.decode(reader, reader.uint32()));
  34891. break;
  34892. default:
  34893. reader.skipType(tag & 7);
  34894. break;
  34895. }
  34896. }
  34897. return message;
  34898. };
  34899. /**
  34900. * Decodes an activity_time_list_nty message from the specified reader or buffer, length delimited.
  34901. * @function decodeDelimited
  34902. * @memberof game.activity_time_list_nty
  34903. * @static
  34904. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  34905. * @returns {game.activity_time_list_nty} activity_time_list_nty
  34906. * @throws {Error} If the payload is not a reader or valid buffer
  34907. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  34908. */
  34909. activity_time_list_nty.decodeDelimited = function decodeDelimited(reader) {
  34910. if (!(reader instanceof $Reader))
  34911. reader = new $Reader(reader);
  34912. return this.decode(reader, reader.uint32());
  34913. };
  34914. /**
  34915. * Verifies an activity_time_list_nty message.
  34916. * @function verify
  34917. * @memberof game.activity_time_list_nty
  34918. * @static
  34919. * @param {Object.<string,*>} message Plain object to verify
  34920. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  34921. */
  34922. activity_time_list_nty.verify = function verify(message) {
  34923. if (typeof message !== "object" || message === null)
  34924. return "object expected";
  34925. if (message.list != null && message.hasOwnProperty("list")) {
  34926. if (!Array.isArray(message.list))
  34927. return "list: array expected";
  34928. for (let i = 0; i < message.list.length; ++i) {
  34929. let error = $root.game.activity_time_info.verify(message.list[i]);
  34930. if (error)
  34931. return "list." + error;
  34932. }
  34933. }
  34934. return null;
  34935. };
  34936. /**
  34937. * Creates an activity_time_list_nty message from a plain object. Also converts values to their respective internal types.
  34938. * @function fromObject
  34939. * @memberof game.activity_time_list_nty
  34940. * @static
  34941. * @param {Object.<string,*>} object Plain object
  34942. * @returns {game.activity_time_list_nty} activity_time_list_nty
  34943. */
  34944. activity_time_list_nty.fromObject = function fromObject(object) {
  34945. if (object instanceof $root.game.activity_time_list_nty)
  34946. return object;
  34947. let message = new $root.game.activity_time_list_nty();
  34948. if (object.list) {
  34949. if (!Array.isArray(object.list))
  34950. throw TypeError(".game.activity_time_list_nty.list: array expected");
  34951. message.list = [];
  34952. for (let i = 0; i < object.list.length; ++i) {
  34953. if (typeof object.list[i] !== "object")
  34954. throw TypeError(".game.activity_time_list_nty.list: object expected");
  34955. message.list[i] = $root.game.activity_time_info.fromObject(object.list[i]);
  34956. }
  34957. }
  34958. return message;
  34959. };
  34960. /**
  34961. * Creates a plain object from an activity_time_list_nty message. Also converts values to other types if specified.
  34962. * @function toObject
  34963. * @memberof game.activity_time_list_nty
  34964. * @static
  34965. * @param {game.activity_time_list_nty} message activity_time_list_nty
  34966. * @param {$protobuf.IConversionOptions} [options] Conversion options
  34967. * @returns {Object.<string,*>} Plain object
  34968. */
  34969. activity_time_list_nty.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] = $root.game.activity_time_info.toObject(message.list[j], options);
  34979. }
  34980. return object;
  34981. };
  34982. /**
  34983. * Converts this activity_time_list_nty to JSON.
  34984. * @function toJSON
  34985. * @memberof game.activity_time_list_nty
  34986. * @instance
  34987. * @returns {Object.<string,*>} JSON object
  34988. */
  34989. activity_time_list_nty.prototype.toJSON = function toJSON() {
  34990. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  34991. };
  34992. return activity_time_list_nty;
  34993. })();
  34994. game.activity_get_conf_list = (function() {
  34995. /**
  34996. * Properties of an activity_get_conf_list.
  34997. * @memberof game
  34998. * @interface Iactivity_get_conf_list
  34999. * @property {Array.<string>|null} [list] activity_get_conf_list list
  35000. */
  35001. /**
  35002. * Constructs a new activity_get_conf_list.
  35003. * @memberof game
  35004. * @classdesc Represents an activity_get_conf_list.
  35005. * @implements Iactivity_get_conf_list
  35006. * @constructor
  35007. * @param {game.Iactivity_get_conf_list=} [properties] Properties to set
  35008. */
  35009. function activity_get_conf_list(properties) {
  35010. this.list = [];
  35011. if (properties)
  35012. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  35013. if (properties[keys[i]] != null)
  35014. this[keys[i]] = properties[keys[i]];
  35015. }
  35016. /**
  35017. * activity_get_conf_list list.
  35018. * @member {Array.<string>} list
  35019. * @memberof game.activity_get_conf_list
  35020. * @instance
  35021. */
  35022. activity_get_conf_list.prototype.list = $util.emptyArray;
  35023. /**
  35024. * Creates a new activity_get_conf_list instance using the specified properties.
  35025. * @function create
  35026. * @memberof game.activity_get_conf_list
  35027. * @static
  35028. * @param {game.Iactivity_get_conf_list=} [properties] Properties to set
  35029. * @returns {game.activity_get_conf_list} activity_get_conf_list instance
  35030. */
  35031. activity_get_conf_list.create = function create(properties) {
  35032. return new activity_get_conf_list(properties);
  35033. };
  35034. /**
  35035. * Encodes the specified activity_get_conf_list message. Does not implicitly {@link game.activity_get_conf_list.verify|verify} messages.
  35036. * @function encode
  35037. * @memberof game.activity_get_conf_list
  35038. * @static
  35039. * @param {game.Iactivity_get_conf_list} message activity_get_conf_list message or plain object to encode
  35040. * @param {$protobuf.Writer} [writer] Writer to encode to
  35041. * @returns {$protobuf.Writer} Writer
  35042. */
  35043. activity_get_conf_list.encode = function encode(message, writer) {
  35044. if (!writer)
  35045. writer = $Writer.create();
  35046. if (message.list != null && message.list.length)
  35047. for (let i = 0; i < message.list.length; ++i)
  35048. writer.uint32(/* id 1, wireType 2 =*/10).string(message.list[i]);
  35049. return writer;
  35050. };
  35051. /**
  35052. * Encodes the specified activity_get_conf_list message, length delimited. Does not implicitly {@link game.activity_get_conf_list.verify|verify} messages.
  35053. * @function encodeDelimited
  35054. * @memberof game.activity_get_conf_list
  35055. * @static
  35056. * @param {game.Iactivity_get_conf_list} message activity_get_conf_list message or plain object to encode
  35057. * @param {$protobuf.Writer} [writer] Writer to encode to
  35058. * @returns {$protobuf.Writer} Writer
  35059. */
  35060. activity_get_conf_list.encodeDelimited = function encodeDelimited(message, writer) {
  35061. return this.encode(message, writer).ldelim();
  35062. };
  35063. /**
  35064. * Decodes an activity_get_conf_list message from the specified reader or buffer.
  35065. * @function decode
  35066. * @memberof game.activity_get_conf_list
  35067. * @static
  35068. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  35069. * @param {number} [length] Message length if known beforehand
  35070. * @returns {game.activity_get_conf_list} activity_get_conf_list
  35071. * @throws {Error} If the payload is not a reader or valid buffer
  35072. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  35073. */
  35074. activity_get_conf_list.decode = function decode(reader, length) {
  35075. if (!(reader instanceof $Reader))
  35076. reader = $Reader.create(reader);
  35077. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.activity_get_conf_list();
  35078. while (reader.pos < end) {
  35079. let tag = reader.uint32();
  35080. switch (tag >>> 3) {
  35081. case 1:
  35082. if (!(message.list && message.list.length))
  35083. message.list = [];
  35084. message.list.push(reader.string());
  35085. break;
  35086. default:
  35087. reader.skipType(tag & 7);
  35088. break;
  35089. }
  35090. }
  35091. return message;
  35092. };
  35093. /**
  35094. * Decodes an activity_get_conf_list message from the specified reader or buffer, length delimited.
  35095. * @function decodeDelimited
  35096. * @memberof game.activity_get_conf_list
  35097. * @static
  35098. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  35099. * @returns {game.activity_get_conf_list} activity_get_conf_list
  35100. * @throws {Error} If the payload is not a reader or valid buffer
  35101. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  35102. */
  35103. activity_get_conf_list.decodeDelimited = function decodeDelimited(reader) {
  35104. if (!(reader instanceof $Reader))
  35105. reader = new $Reader(reader);
  35106. return this.decode(reader, reader.uint32());
  35107. };
  35108. /**
  35109. * Verifies an activity_get_conf_list message.
  35110. * @function verify
  35111. * @memberof game.activity_get_conf_list
  35112. * @static
  35113. * @param {Object.<string,*>} message Plain object to verify
  35114. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  35115. */
  35116. activity_get_conf_list.verify = function verify(message) {
  35117. if (typeof message !== "object" || message === null)
  35118. return "object expected";
  35119. if (message.list != null && message.hasOwnProperty("list")) {
  35120. if (!Array.isArray(message.list))
  35121. return "list: array expected";
  35122. for (let i = 0; i < message.list.length; ++i)
  35123. if (!$util.isString(message.list[i]))
  35124. return "list: string[] expected";
  35125. }
  35126. return null;
  35127. };
  35128. /**
  35129. * Creates an activity_get_conf_list message from a plain object. Also converts values to their respective internal types.
  35130. * @function fromObject
  35131. * @memberof game.activity_get_conf_list
  35132. * @static
  35133. * @param {Object.<string,*>} object Plain object
  35134. * @returns {game.activity_get_conf_list} activity_get_conf_list
  35135. */
  35136. activity_get_conf_list.fromObject = function fromObject(object) {
  35137. if (object instanceof $root.game.activity_get_conf_list)
  35138. return object;
  35139. let message = new $root.game.activity_get_conf_list();
  35140. if (object.list) {
  35141. if (!Array.isArray(object.list))
  35142. throw TypeError(".game.activity_get_conf_list.list: array expected");
  35143. message.list = [];
  35144. for (let i = 0; i < object.list.length; ++i)
  35145. message.list[i] = String(object.list[i]);
  35146. }
  35147. return message;
  35148. };
  35149. /**
  35150. * Creates a plain object from an activity_get_conf_list message. Also converts values to other types if specified.
  35151. * @function toObject
  35152. * @memberof game.activity_get_conf_list
  35153. * @static
  35154. * @param {game.activity_get_conf_list} message activity_get_conf_list
  35155. * @param {$protobuf.IConversionOptions} [options] Conversion options
  35156. * @returns {Object.<string,*>} Plain object
  35157. */
  35158. activity_get_conf_list.toObject = function toObject(message, options) {
  35159. if (!options)
  35160. options = {};
  35161. let object = {};
  35162. if (options.arrays || options.defaults)
  35163. object.list = [];
  35164. if (message.list && message.list.length) {
  35165. object.list = [];
  35166. for (let j = 0; j < message.list.length; ++j)
  35167. object.list[j] = message.list[j];
  35168. }
  35169. return object;
  35170. };
  35171. /**
  35172. * Converts this activity_get_conf_list to JSON.
  35173. * @function toJSON
  35174. * @memberof game.activity_get_conf_list
  35175. * @instance
  35176. * @returns {Object.<string,*>} JSON object
  35177. */
  35178. activity_get_conf_list.prototype.toJSON = function toJSON() {
  35179. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  35180. };
  35181. return activity_get_conf_list;
  35182. })();
  35183. game.activity_get_conf_list_rsp = (function() {
  35184. /**
  35185. * Properties of an activity_get_conf_list_rsp.
  35186. * @memberof game
  35187. * @interface Iactivity_get_conf_list_rsp
  35188. * @property {number|Long|null} [errno] activity_get_conf_list_rsp errno
  35189. * @property {Array.<game.Iactivity_conf_info>|null} [list] activity_get_conf_list_rsp list
  35190. */
  35191. /**
  35192. * Constructs a new activity_get_conf_list_rsp.
  35193. * @memberof game
  35194. * @classdesc Represents an activity_get_conf_list_rsp.
  35195. * @implements Iactivity_get_conf_list_rsp
  35196. * @constructor
  35197. * @param {game.Iactivity_get_conf_list_rsp=} [properties] Properties to set
  35198. */
  35199. function activity_get_conf_list_rsp(properties) {
  35200. this.list = [];
  35201. if (properties)
  35202. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  35203. if (properties[keys[i]] != null)
  35204. this[keys[i]] = properties[keys[i]];
  35205. }
  35206. /**
  35207. * activity_get_conf_list_rsp errno.
  35208. * @member {number|Long} errno
  35209. * @memberof game.activity_get_conf_list_rsp
  35210. * @instance
  35211. */
  35212. activity_get_conf_list_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  35213. /**
  35214. * activity_get_conf_list_rsp list.
  35215. * @member {Array.<game.Iactivity_conf_info>} list
  35216. * @memberof game.activity_get_conf_list_rsp
  35217. * @instance
  35218. */
  35219. activity_get_conf_list_rsp.prototype.list = $util.emptyArray;
  35220. /**
  35221. * Creates a new activity_get_conf_list_rsp instance using the specified properties.
  35222. * @function create
  35223. * @memberof game.activity_get_conf_list_rsp
  35224. * @static
  35225. * @param {game.Iactivity_get_conf_list_rsp=} [properties] Properties to set
  35226. * @returns {game.activity_get_conf_list_rsp} activity_get_conf_list_rsp instance
  35227. */
  35228. activity_get_conf_list_rsp.create = function create(properties) {
  35229. return new activity_get_conf_list_rsp(properties);
  35230. };
  35231. /**
  35232. * Encodes the specified activity_get_conf_list_rsp message. Does not implicitly {@link game.activity_get_conf_list_rsp.verify|verify} messages.
  35233. * @function encode
  35234. * @memberof game.activity_get_conf_list_rsp
  35235. * @static
  35236. * @param {game.Iactivity_get_conf_list_rsp} message activity_get_conf_list_rsp message or plain object to encode
  35237. * @param {$protobuf.Writer} [writer] Writer to encode to
  35238. * @returns {$protobuf.Writer} Writer
  35239. */
  35240. activity_get_conf_list_rsp.encode = function encode(message, writer) {
  35241. if (!writer)
  35242. writer = $Writer.create();
  35243. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  35244. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  35245. if (message.list != null && message.list.length)
  35246. for (let i = 0; i < message.list.length; ++i)
  35247. $root.game.activity_conf_info.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  35248. return writer;
  35249. };
  35250. /**
  35251. * Encodes the specified activity_get_conf_list_rsp message, length delimited. Does not implicitly {@link game.activity_get_conf_list_rsp.verify|verify} messages.
  35252. * @function encodeDelimited
  35253. * @memberof game.activity_get_conf_list_rsp
  35254. * @static
  35255. * @param {game.Iactivity_get_conf_list_rsp} message activity_get_conf_list_rsp message or plain object to encode
  35256. * @param {$protobuf.Writer} [writer] Writer to encode to
  35257. * @returns {$protobuf.Writer} Writer
  35258. */
  35259. activity_get_conf_list_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  35260. return this.encode(message, writer).ldelim();
  35261. };
  35262. /**
  35263. * Decodes an activity_get_conf_list_rsp message from the specified reader or buffer.
  35264. * @function decode
  35265. * @memberof game.activity_get_conf_list_rsp
  35266. * @static
  35267. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  35268. * @param {number} [length] Message length if known beforehand
  35269. * @returns {game.activity_get_conf_list_rsp} activity_get_conf_list_rsp
  35270. * @throws {Error} If the payload is not a reader or valid buffer
  35271. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  35272. */
  35273. activity_get_conf_list_rsp.decode = function decode(reader, length) {
  35274. if (!(reader instanceof $Reader))
  35275. reader = $Reader.create(reader);
  35276. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.activity_get_conf_list_rsp();
  35277. while (reader.pos < end) {
  35278. let tag = reader.uint32();
  35279. switch (tag >>> 3) {
  35280. case 1:
  35281. message.errno = reader.int64();
  35282. break;
  35283. case 2:
  35284. if (!(message.list && message.list.length))
  35285. message.list = [];
  35286. message.list.push($root.game.activity_conf_info.decode(reader, reader.uint32()));
  35287. break;
  35288. default:
  35289. reader.skipType(tag & 7);
  35290. break;
  35291. }
  35292. }
  35293. return message;
  35294. };
  35295. /**
  35296. * Decodes an activity_get_conf_list_rsp message from the specified reader or buffer, length delimited.
  35297. * @function decodeDelimited
  35298. * @memberof game.activity_get_conf_list_rsp
  35299. * @static
  35300. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  35301. * @returns {game.activity_get_conf_list_rsp} activity_get_conf_list_rsp
  35302. * @throws {Error} If the payload is not a reader or valid buffer
  35303. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  35304. */
  35305. activity_get_conf_list_rsp.decodeDelimited = function decodeDelimited(reader) {
  35306. if (!(reader instanceof $Reader))
  35307. reader = new $Reader(reader);
  35308. return this.decode(reader, reader.uint32());
  35309. };
  35310. /**
  35311. * Verifies an activity_get_conf_list_rsp message.
  35312. * @function verify
  35313. * @memberof game.activity_get_conf_list_rsp
  35314. * @static
  35315. * @param {Object.<string,*>} message Plain object to verify
  35316. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  35317. */
  35318. activity_get_conf_list_rsp.verify = function verify(message) {
  35319. if (typeof message !== "object" || message === null)
  35320. return "object expected";
  35321. if (message.errno != null && message.hasOwnProperty("errno"))
  35322. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  35323. return "errno: integer|Long expected";
  35324. if (message.list != null && message.hasOwnProperty("list")) {
  35325. if (!Array.isArray(message.list))
  35326. return "list: array expected";
  35327. for (let i = 0; i < message.list.length; ++i) {
  35328. let error = $root.game.activity_conf_info.verify(message.list[i]);
  35329. if (error)
  35330. return "list." + error;
  35331. }
  35332. }
  35333. return null;
  35334. };
  35335. /**
  35336. * Creates an activity_get_conf_list_rsp message from a plain object. Also converts values to their respective internal types.
  35337. * @function fromObject
  35338. * @memberof game.activity_get_conf_list_rsp
  35339. * @static
  35340. * @param {Object.<string,*>} object Plain object
  35341. * @returns {game.activity_get_conf_list_rsp} activity_get_conf_list_rsp
  35342. */
  35343. activity_get_conf_list_rsp.fromObject = function fromObject(object) {
  35344. if (object instanceof $root.game.activity_get_conf_list_rsp)
  35345. return object;
  35346. let message = new $root.game.activity_get_conf_list_rsp();
  35347. if (object.errno != null)
  35348. if ($util.Long)
  35349. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  35350. else if (typeof object.errno === "string")
  35351. message.errno = parseInt(object.errno, 10);
  35352. else if (typeof object.errno === "number")
  35353. message.errno = object.errno;
  35354. else if (typeof object.errno === "object")
  35355. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  35356. if (object.list) {
  35357. if (!Array.isArray(object.list))
  35358. throw TypeError(".game.activity_get_conf_list_rsp.list: array expected");
  35359. message.list = [];
  35360. for (let i = 0; i < object.list.length; ++i) {
  35361. if (typeof object.list[i] !== "object")
  35362. throw TypeError(".game.activity_get_conf_list_rsp.list: object expected");
  35363. message.list[i] = $root.game.activity_conf_info.fromObject(object.list[i]);
  35364. }
  35365. }
  35366. return message;
  35367. };
  35368. /**
  35369. * Creates a plain object from an activity_get_conf_list_rsp message. Also converts values to other types if specified.
  35370. * @function toObject
  35371. * @memberof game.activity_get_conf_list_rsp
  35372. * @static
  35373. * @param {game.activity_get_conf_list_rsp} message activity_get_conf_list_rsp
  35374. * @param {$protobuf.IConversionOptions} [options] Conversion options
  35375. * @returns {Object.<string,*>} Plain object
  35376. */
  35377. activity_get_conf_list_rsp.toObject = function toObject(message, options) {
  35378. if (!options)
  35379. options = {};
  35380. let object = {};
  35381. if (options.arrays || options.defaults)
  35382. object.list = [];
  35383. if (options.defaults)
  35384. if ($util.Long) {
  35385. let long = new $util.Long(0, 0, false);
  35386. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  35387. } else
  35388. object.errno = options.longs === String ? "0" : 0;
  35389. if (message.errno != null && message.hasOwnProperty("errno"))
  35390. if (typeof message.errno === "number")
  35391. object.errno = options.longs === String ? String(message.errno) : message.errno;
  35392. else
  35393. 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;
  35394. if (message.list && message.list.length) {
  35395. object.list = [];
  35396. for (let j = 0; j < message.list.length; ++j)
  35397. object.list[j] = $root.game.activity_conf_info.toObject(message.list[j], options);
  35398. }
  35399. return object;
  35400. };
  35401. /**
  35402. * Converts this activity_get_conf_list_rsp to JSON.
  35403. * @function toJSON
  35404. * @memberof game.activity_get_conf_list_rsp
  35405. * @instance
  35406. * @returns {Object.<string,*>} JSON object
  35407. */
  35408. activity_get_conf_list_rsp.prototype.toJSON = function toJSON() {
  35409. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  35410. };
  35411. return activity_get_conf_list_rsp;
  35412. })();
  35413. game.activity_get_conf_nty = (function() {
  35414. /**
  35415. * Properties of an activity_get_conf_nty.
  35416. * @memberof game
  35417. * @interface Iactivity_get_conf_nty
  35418. * @property {Array.<number|Long>|null} [list] activity_get_conf_nty list
  35419. */
  35420. /**
  35421. * Constructs a new activity_get_conf_nty.
  35422. * @memberof game
  35423. * @classdesc Represents an activity_get_conf_nty.
  35424. * @implements Iactivity_get_conf_nty
  35425. * @constructor
  35426. * @param {game.Iactivity_get_conf_nty=} [properties] Properties to set
  35427. */
  35428. function activity_get_conf_nty(properties) {
  35429. this.list = [];
  35430. if (properties)
  35431. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  35432. if (properties[keys[i]] != null)
  35433. this[keys[i]] = properties[keys[i]];
  35434. }
  35435. /**
  35436. * activity_get_conf_nty list.
  35437. * @member {Array.<number|Long>} list
  35438. * @memberof game.activity_get_conf_nty
  35439. * @instance
  35440. */
  35441. activity_get_conf_nty.prototype.list = $util.emptyArray;
  35442. /**
  35443. * Creates a new activity_get_conf_nty instance using the specified properties.
  35444. * @function create
  35445. * @memberof game.activity_get_conf_nty
  35446. * @static
  35447. * @param {game.Iactivity_get_conf_nty=} [properties] Properties to set
  35448. * @returns {game.activity_get_conf_nty} activity_get_conf_nty instance
  35449. */
  35450. activity_get_conf_nty.create = function create(properties) {
  35451. return new activity_get_conf_nty(properties);
  35452. };
  35453. /**
  35454. * Encodes the specified activity_get_conf_nty message. Does not implicitly {@link game.activity_get_conf_nty.verify|verify} messages.
  35455. * @function encode
  35456. * @memberof game.activity_get_conf_nty
  35457. * @static
  35458. * @param {game.Iactivity_get_conf_nty} message activity_get_conf_nty message or plain object to encode
  35459. * @param {$protobuf.Writer} [writer] Writer to encode to
  35460. * @returns {$protobuf.Writer} Writer
  35461. */
  35462. activity_get_conf_nty.encode = function encode(message, writer) {
  35463. if (!writer)
  35464. writer = $Writer.create();
  35465. if (message.list != null && message.list.length) {
  35466. writer.uint32(/* id 1, wireType 2 =*/10).fork();
  35467. for (let i = 0; i < message.list.length; ++i)
  35468. writer.int64(message.list[i]);
  35469. writer.ldelim();
  35470. }
  35471. return writer;
  35472. };
  35473. /**
  35474. * Encodes the specified activity_get_conf_nty message, length delimited. Does not implicitly {@link game.activity_get_conf_nty.verify|verify} messages.
  35475. * @function encodeDelimited
  35476. * @memberof game.activity_get_conf_nty
  35477. * @static
  35478. * @param {game.Iactivity_get_conf_nty} message activity_get_conf_nty message or plain object to encode
  35479. * @param {$protobuf.Writer} [writer] Writer to encode to
  35480. * @returns {$protobuf.Writer} Writer
  35481. */
  35482. activity_get_conf_nty.encodeDelimited = function encodeDelimited(message, writer) {
  35483. return this.encode(message, writer).ldelim();
  35484. };
  35485. /**
  35486. * Decodes an activity_get_conf_nty message from the specified reader or buffer.
  35487. * @function decode
  35488. * @memberof game.activity_get_conf_nty
  35489. * @static
  35490. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  35491. * @param {number} [length] Message length if known beforehand
  35492. * @returns {game.activity_get_conf_nty} activity_get_conf_nty
  35493. * @throws {Error} If the payload is not a reader or valid buffer
  35494. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  35495. */
  35496. activity_get_conf_nty.decode = function decode(reader, length) {
  35497. if (!(reader instanceof $Reader))
  35498. reader = $Reader.create(reader);
  35499. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.activity_get_conf_nty();
  35500. while (reader.pos < end) {
  35501. let tag = reader.uint32();
  35502. switch (tag >>> 3) {
  35503. case 1:
  35504. if (!(message.list && message.list.length))
  35505. message.list = [];
  35506. if ((tag & 7) === 2) {
  35507. let end2 = reader.uint32() + reader.pos;
  35508. while (reader.pos < end2)
  35509. message.list.push(reader.int64());
  35510. } else
  35511. message.list.push(reader.int64());
  35512. break;
  35513. default:
  35514. reader.skipType(tag & 7);
  35515. break;
  35516. }
  35517. }
  35518. return message;
  35519. };
  35520. /**
  35521. * Decodes an activity_get_conf_nty message from the specified reader or buffer, length delimited.
  35522. * @function decodeDelimited
  35523. * @memberof game.activity_get_conf_nty
  35524. * @static
  35525. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  35526. * @returns {game.activity_get_conf_nty} activity_get_conf_nty
  35527. * @throws {Error} If the payload is not a reader or valid buffer
  35528. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  35529. */
  35530. activity_get_conf_nty.decodeDelimited = function decodeDelimited(reader) {
  35531. if (!(reader instanceof $Reader))
  35532. reader = new $Reader(reader);
  35533. return this.decode(reader, reader.uint32());
  35534. };
  35535. /**
  35536. * Verifies an activity_get_conf_nty message.
  35537. * @function verify
  35538. * @memberof game.activity_get_conf_nty
  35539. * @static
  35540. * @param {Object.<string,*>} message Plain object to verify
  35541. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  35542. */
  35543. activity_get_conf_nty.verify = function verify(message) {
  35544. if (typeof message !== "object" || message === null)
  35545. return "object expected";
  35546. if (message.list != null && message.hasOwnProperty("list")) {
  35547. if (!Array.isArray(message.list))
  35548. return "list: array expected";
  35549. for (let i = 0; i < message.list.length; ++i)
  35550. if (!$util.isInteger(message.list[i]) && !(message.list[i] && $util.isInteger(message.list[i].low) && $util.isInteger(message.list[i].high)))
  35551. return "list: integer|Long[] expected";
  35552. }
  35553. return null;
  35554. };
  35555. /**
  35556. * Creates an activity_get_conf_nty message from a plain object. Also converts values to their respective internal types.
  35557. * @function fromObject
  35558. * @memberof game.activity_get_conf_nty
  35559. * @static
  35560. * @param {Object.<string,*>} object Plain object
  35561. * @returns {game.activity_get_conf_nty} activity_get_conf_nty
  35562. */
  35563. activity_get_conf_nty.fromObject = function fromObject(object) {
  35564. if (object instanceof $root.game.activity_get_conf_nty)
  35565. return object;
  35566. let message = new $root.game.activity_get_conf_nty();
  35567. if (object.list) {
  35568. if (!Array.isArray(object.list))
  35569. throw TypeError(".game.activity_get_conf_nty.list: array expected");
  35570. message.list = [];
  35571. for (let i = 0; i < object.list.length; ++i)
  35572. if ($util.Long)
  35573. (message.list[i] = $util.Long.fromValue(object.list[i])).unsigned = false;
  35574. else if (typeof object.list[i] === "string")
  35575. message.list[i] = parseInt(object.list[i], 10);
  35576. else if (typeof object.list[i] === "number")
  35577. message.list[i] = object.list[i];
  35578. else if (typeof object.list[i] === "object")
  35579. message.list[i] = new $util.LongBits(object.list[i].low >>> 0, object.list[i].high >>> 0).toNumber();
  35580. }
  35581. return message;
  35582. };
  35583. /**
  35584. * Creates a plain object from an activity_get_conf_nty message. Also converts values to other types if specified.
  35585. * @function toObject
  35586. * @memberof game.activity_get_conf_nty
  35587. * @static
  35588. * @param {game.activity_get_conf_nty} message activity_get_conf_nty
  35589. * @param {$protobuf.IConversionOptions} [options] Conversion options
  35590. * @returns {Object.<string,*>} Plain object
  35591. */
  35592. activity_get_conf_nty.toObject = function toObject(message, options) {
  35593. if (!options)
  35594. options = {};
  35595. let object = {};
  35596. if (options.arrays || options.defaults)
  35597. object.list = [];
  35598. if (message.list && message.list.length) {
  35599. object.list = [];
  35600. for (let j = 0; j < message.list.length; ++j)
  35601. if (typeof message.list[j] === "number")
  35602. object.list[j] = options.longs === String ? String(message.list[j]) : message.list[j];
  35603. else
  35604. 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];
  35605. }
  35606. return object;
  35607. };
  35608. /**
  35609. * Converts this activity_get_conf_nty to JSON.
  35610. * @function toJSON
  35611. * @memberof game.activity_get_conf_nty
  35612. * @instance
  35613. * @returns {Object.<string,*>} JSON object
  35614. */
  35615. activity_get_conf_nty.prototype.toJSON = function toJSON() {
  35616. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  35617. };
  35618. return activity_get_conf_nty;
  35619. })();
  35620. game.privilege_card_data = (function() {
  35621. /**
  35622. * Properties of a privilege_card_data.
  35623. * @memberof game
  35624. * @interface Iprivilege_card_data
  35625. */
  35626. /**
  35627. * Constructs a new privilege_card_data.
  35628. * @memberof game
  35629. * @classdesc Represents a privilege_card_data.
  35630. * @implements Iprivilege_card_data
  35631. * @constructor
  35632. * @param {game.Iprivilege_card_data=} [properties] Properties to set
  35633. */
  35634. function privilege_card_data(properties) {
  35635. if (properties)
  35636. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  35637. if (properties[keys[i]] != null)
  35638. this[keys[i]] = properties[keys[i]];
  35639. }
  35640. /**
  35641. * Creates a new privilege_card_data instance using the specified properties.
  35642. * @function create
  35643. * @memberof game.privilege_card_data
  35644. * @static
  35645. * @param {game.Iprivilege_card_data=} [properties] Properties to set
  35646. * @returns {game.privilege_card_data} privilege_card_data instance
  35647. */
  35648. privilege_card_data.create = function create(properties) {
  35649. return new privilege_card_data(properties);
  35650. };
  35651. /**
  35652. * Encodes the specified privilege_card_data message. Does not implicitly {@link game.privilege_card_data.verify|verify} messages.
  35653. * @function encode
  35654. * @memberof game.privilege_card_data
  35655. * @static
  35656. * @param {game.Iprivilege_card_data} message privilege_card_data message or plain object to encode
  35657. * @param {$protobuf.Writer} [writer] Writer to encode to
  35658. * @returns {$protobuf.Writer} Writer
  35659. */
  35660. privilege_card_data.encode = function encode(message, writer) {
  35661. if (!writer)
  35662. writer = $Writer.create();
  35663. return writer;
  35664. };
  35665. /**
  35666. * Encodes the specified privilege_card_data message, length delimited. Does not implicitly {@link game.privilege_card_data.verify|verify} messages.
  35667. * @function encodeDelimited
  35668. * @memberof game.privilege_card_data
  35669. * @static
  35670. * @param {game.Iprivilege_card_data} message privilege_card_data message or plain object to encode
  35671. * @param {$protobuf.Writer} [writer] Writer to encode to
  35672. * @returns {$protobuf.Writer} Writer
  35673. */
  35674. privilege_card_data.encodeDelimited = function encodeDelimited(message, writer) {
  35675. return this.encode(message, writer).ldelim();
  35676. };
  35677. /**
  35678. * Decodes a privilege_card_data message from the specified reader or buffer.
  35679. * @function decode
  35680. * @memberof game.privilege_card_data
  35681. * @static
  35682. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  35683. * @param {number} [length] Message length if known beforehand
  35684. * @returns {game.privilege_card_data} privilege_card_data
  35685. * @throws {Error} If the payload is not a reader or valid buffer
  35686. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  35687. */
  35688. privilege_card_data.decode = function decode(reader, length) {
  35689. if (!(reader instanceof $Reader))
  35690. reader = $Reader.create(reader);
  35691. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.privilege_card_data();
  35692. while (reader.pos < end) {
  35693. let tag = reader.uint32();
  35694. switch (tag >>> 3) {
  35695. default:
  35696. reader.skipType(tag & 7);
  35697. break;
  35698. }
  35699. }
  35700. return message;
  35701. };
  35702. /**
  35703. * Decodes a privilege_card_data message from the specified reader or buffer, length delimited.
  35704. * @function decodeDelimited
  35705. * @memberof game.privilege_card_data
  35706. * @static
  35707. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  35708. * @returns {game.privilege_card_data} privilege_card_data
  35709. * @throws {Error} If the payload is not a reader or valid buffer
  35710. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  35711. */
  35712. privilege_card_data.decodeDelimited = function decodeDelimited(reader) {
  35713. if (!(reader instanceof $Reader))
  35714. reader = new $Reader(reader);
  35715. return this.decode(reader, reader.uint32());
  35716. };
  35717. /**
  35718. * Verifies a privilege_card_data message.
  35719. * @function verify
  35720. * @memberof game.privilege_card_data
  35721. * @static
  35722. * @param {Object.<string,*>} message Plain object to verify
  35723. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  35724. */
  35725. privilege_card_data.verify = function verify(message) {
  35726. if (typeof message !== "object" || message === null)
  35727. return "object expected";
  35728. return null;
  35729. };
  35730. /**
  35731. * Creates a privilege_card_data message from a plain object. Also converts values to their respective internal types.
  35732. * @function fromObject
  35733. * @memberof game.privilege_card_data
  35734. * @static
  35735. * @param {Object.<string,*>} object Plain object
  35736. * @returns {game.privilege_card_data} privilege_card_data
  35737. */
  35738. privilege_card_data.fromObject = function fromObject(object) {
  35739. if (object instanceof $root.game.privilege_card_data)
  35740. return object;
  35741. return new $root.game.privilege_card_data();
  35742. };
  35743. /**
  35744. * Creates a plain object from a privilege_card_data message. Also converts values to other types if specified.
  35745. * @function toObject
  35746. * @memberof game.privilege_card_data
  35747. * @static
  35748. * @param {game.privilege_card_data} message privilege_card_data
  35749. * @param {$protobuf.IConversionOptions} [options] Conversion options
  35750. * @returns {Object.<string,*>} Plain object
  35751. */
  35752. privilege_card_data.toObject = function toObject() {
  35753. return {};
  35754. };
  35755. /**
  35756. * Converts this privilege_card_data to JSON.
  35757. * @function toJSON
  35758. * @memberof game.privilege_card_data
  35759. * @instance
  35760. * @returns {Object.<string,*>} JSON object
  35761. */
  35762. privilege_card_data.prototype.toJSON = function toJSON() {
  35763. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  35764. };
  35765. return privilege_card_data;
  35766. })();
  35767. game.privilege_card_data_rsp = (function() {
  35768. /**
  35769. * Properties of a privilege_card_data_rsp.
  35770. * @memberof game
  35771. * @interface Iprivilege_card_data_rsp
  35772. * @property {number|Long|null} [errno] privilege_card_data_rsp errno
  35773. * @property {Array.<game.Iprivilege_card_info>|null} [list] privilege_card_data_rsp list
  35774. */
  35775. /**
  35776. * Constructs a new privilege_card_data_rsp.
  35777. * @memberof game
  35778. * @classdesc Represents a privilege_card_data_rsp.
  35779. * @implements Iprivilege_card_data_rsp
  35780. * @constructor
  35781. * @param {game.Iprivilege_card_data_rsp=} [properties] Properties to set
  35782. */
  35783. function privilege_card_data_rsp(properties) {
  35784. this.list = [];
  35785. if (properties)
  35786. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  35787. if (properties[keys[i]] != null)
  35788. this[keys[i]] = properties[keys[i]];
  35789. }
  35790. /**
  35791. * privilege_card_data_rsp errno.
  35792. * @member {number|Long} errno
  35793. * @memberof game.privilege_card_data_rsp
  35794. * @instance
  35795. */
  35796. privilege_card_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  35797. /**
  35798. * privilege_card_data_rsp list.
  35799. * @member {Array.<game.Iprivilege_card_info>} list
  35800. * @memberof game.privilege_card_data_rsp
  35801. * @instance
  35802. */
  35803. privilege_card_data_rsp.prototype.list = $util.emptyArray;
  35804. /**
  35805. * Creates a new privilege_card_data_rsp instance using the specified properties.
  35806. * @function create
  35807. * @memberof game.privilege_card_data_rsp
  35808. * @static
  35809. * @param {game.Iprivilege_card_data_rsp=} [properties] Properties to set
  35810. * @returns {game.privilege_card_data_rsp} privilege_card_data_rsp instance
  35811. */
  35812. privilege_card_data_rsp.create = function create(properties) {
  35813. return new privilege_card_data_rsp(properties);
  35814. };
  35815. /**
  35816. * Encodes the specified privilege_card_data_rsp message. Does not implicitly {@link game.privilege_card_data_rsp.verify|verify} messages.
  35817. * @function encode
  35818. * @memberof game.privilege_card_data_rsp
  35819. * @static
  35820. * @param {game.Iprivilege_card_data_rsp} message privilege_card_data_rsp message or plain object to encode
  35821. * @param {$protobuf.Writer} [writer] Writer to encode to
  35822. * @returns {$protobuf.Writer} Writer
  35823. */
  35824. privilege_card_data_rsp.encode = function encode(message, writer) {
  35825. if (!writer)
  35826. writer = $Writer.create();
  35827. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  35828. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  35829. if (message.list != null && message.list.length)
  35830. for (let i = 0; i < message.list.length; ++i)
  35831. $root.game.privilege_card_info.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  35832. return writer;
  35833. };
  35834. /**
  35835. * Encodes the specified privilege_card_data_rsp message, length delimited. Does not implicitly {@link game.privilege_card_data_rsp.verify|verify} messages.
  35836. * @function encodeDelimited
  35837. * @memberof game.privilege_card_data_rsp
  35838. * @static
  35839. * @param {game.Iprivilege_card_data_rsp} message privilege_card_data_rsp message or plain object to encode
  35840. * @param {$protobuf.Writer} [writer] Writer to encode to
  35841. * @returns {$protobuf.Writer} Writer
  35842. */
  35843. privilege_card_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  35844. return this.encode(message, writer).ldelim();
  35845. };
  35846. /**
  35847. * Decodes a privilege_card_data_rsp message from the specified reader or buffer.
  35848. * @function decode
  35849. * @memberof game.privilege_card_data_rsp
  35850. * @static
  35851. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  35852. * @param {number} [length] Message length if known beforehand
  35853. * @returns {game.privilege_card_data_rsp} privilege_card_data_rsp
  35854. * @throws {Error} If the payload is not a reader or valid buffer
  35855. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  35856. */
  35857. privilege_card_data_rsp.decode = function decode(reader, length) {
  35858. if (!(reader instanceof $Reader))
  35859. reader = $Reader.create(reader);
  35860. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.privilege_card_data_rsp();
  35861. while (reader.pos < end) {
  35862. let tag = reader.uint32();
  35863. switch (tag >>> 3) {
  35864. case 1:
  35865. message.errno = reader.int64();
  35866. break;
  35867. case 2:
  35868. if (!(message.list && message.list.length))
  35869. message.list = [];
  35870. message.list.push($root.game.privilege_card_info.decode(reader, reader.uint32()));
  35871. break;
  35872. default:
  35873. reader.skipType(tag & 7);
  35874. break;
  35875. }
  35876. }
  35877. return message;
  35878. };
  35879. /**
  35880. * Decodes a privilege_card_data_rsp message from the specified reader or buffer, length delimited.
  35881. * @function decodeDelimited
  35882. * @memberof game.privilege_card_data_rsp
  35883. * @static
  35884. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  35885. * @returns {game.privilege_card_data_rsp} privilege_card_data_rsp
  35886. * @throws {Error} If the payload is not a reader or valid buffer
  35887. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  35888. */
  35889. privilege_card_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  35890. if (!(reader instanceof $Reader))
  35891. reader = new $Reader(reader);
  35892. return this.decode(reader, reader.uint32());
  35893. };
  35894. /**
  35895. * Verifies a privilege_card_data_rsp message.
  35896. * @function verify
  35897. * @memberof game.privilege_card_data_rsp
  35898. * @static
  35899. * @param {Object.<string,*>} message Plain object to verify
  35900. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  35901. */
  35902. privilege_card_data_rsp.verify = function verify(message) {
  35903. if (typeof message !== "object" || message === null)
  35904. return "object expected";
  35905. if (message.errno != null && message.hasOwnProperty("errno"))
  35906. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  35907. return "errno: integer|Long expected";
  35908. if (message.list != null && message.hasOwnProperty("list")) {
  35909. if (!Array.isArray(message.list))
  35910. return "list: array expected";
  35911. for (let i = 0; i < message.list.length; ++i) {
  35912. let error = $root.game.privilege_card_info.verify(message.list[i]);
  35913. if (error)
  35914. return "list." + error;
  35915. }
  35916. }
  35917. return null;
  35918. };
  35919. /**
  35920. * Creates a privilege_card_data_rsp message from a plain object. Also converts values to their respective internal types.
  35921. * @function fromObject
  35922. * @memberof game.privilege_card_data_rsp
  35923. * @static
  35924. * @param {Object.<string,*>} object Plain object
  35925. * @returns {game.privilege_card_data_rsp} privilege_card_data_rsp
  35926. */
  35927. privilege_card_data_rsp.fromObject = function fromObject(object) {
  35928. if (object instanceof $root.game.privilege_card_data_rsp)
  35929. return object;
  35930. let message = new $root.game.privilege_card_data_rsp();
  35931. if (object.errno != null)
  35932. if ($util.Long)
  35933. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  35934. else if (typeof object.errno === "string")
  35935. message.errno = parseInt(object.errno, 10);
  35936. else if (typeof object.errno === "number")
  35937. message.errno = object.errno;
  35938. else if (typeof object.errno === "object")
  35939. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  35940. if (object.list) {
  35941. if (!Array.isArray(object.list))
  35942. throw TypeError(".game.privilege_card_data_rsp.list: array expected");
  35943. message.list = [];
  35944. for (let i = 0; i < object.list.length; ++i) {
  35945. if (typeof object.list[i] !== "object")
  35946. throw TypeError(".game.privilege_card_data_rsp.list: object expected");
  35947. message.list[i] = $root.game.privilege_card_info.fromObject(object.list[i]);
  35948. }
  35949. }
  35950. return message;
  35951. };
  35952. /**
  35953. * Creates a plain object from a privilege_card_data_rsp message. Also converts values to other types if specified.
  35954. * @function toObject
  35955. * @memberof game.privilege_card_data_rsp
  35956. * @static
  35957. * @param {game.privilege_card_data_rsp} message privilege_card_data_rsp
  35958. * @param {$protobuf.IConversionOptions} [options] Conversion options
  35959. * @returns {Object.<string,*>} Plain object
  35960. */
  35961. privilege_card_data_rsp.toObject = function toObject(message, options) {
  35962. if (!options)
  35963. options = {};
  35964. let object = {};
  35965. if (options.arrays || options.defaults)
  35966. object.list = [];
  35967. if (options.defaults)
  35968. if ($util.Long) {
  35969. let long = new $util.Long(0, 0, false);
  35970. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  35971. } else
  35972. object.errno = options.longs === String ? "0" : 0;
  35973. if (message.errno != null && message.hasOwnProperty("errno"))
  35974. if (typeof message.errno === "number")
  35975. object.errno = options.longs === String ? String(message.errno) : message.errno;
  35976. else
  35977. 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;
  35978. if (message.list && message.list.length) {
  35979. object.list = [];
  35980. for (let j = 0; j < message.list.length; ++j)
  35981. object.list[j] = $root.game.privilege_card_info.toObject(message.list[j], options);
  35982. }
  35983. return object;
  35984. };
  35985. /**
  35986. * Converts this privilege_card_data_rsp to JSON.
  35987. * @function toJSON
  35988. * @memberof game.privilege_card_data_rsp
  35989. * @instance
  35990. * @returns {Object.<string,*>} JSON object
  35991. */
  35992. privilege_card_data_rsp.prototype.toJSON = function toJSON() {
  35993. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  35994. };
  35995. return privilege_card_data_rsp;
  35996. })();
  35997. game.privilege_card_buy = (function() {
  35998. /**
  35999. * Properties of a privilege_card_buy.
  36000. * @memberof game
  36001. * @interface Iprivilege_card_buy
  36002. * @property {number|Long|null} [moduleid] privilege_card_buy moduleid
  36003. */
  36004. /**
  36005. * Constructs a new privilege_card_buy.
  36006. * @memberof game
  36007. * @classdesc Represents a privilege_card_buy.
  36008. * @implements Iprivilege_card_buy
  36009. * @constructor
  36010. * @param {game.Iprivilege_card_buy=} [properties] Properties to set
  36011. */
  36012. function privilege_card_buy(properties) {
  36013. if (properties)
  36014. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  36015. if (properties[keys[i]] != null)
  36016. this[keys[i]] = properties[keys[i]];
  36017. }
  36018. /**
  36019. * privilege_card_buy moduleid.
  36020. * @member {number|Long} moduleid
  36021. * @memberof game.privilege_card_buy
  36022. * @instance
  36023. */
  36024. privilege_card_buy.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  36025. /**
  36026. * Creates a new privilege_card_buy instance using the specified properties.
  36027. * @function create
  36028. * @memberof game.privilege_card_buy
  36029. * @static
  36030. * @param {game.Iprivilege_card_buy=} [properties] Properties to set
  36031. * @returns {game.privilege_card_buy} privilege_card_buy instance
  36032. */
  36033. privilege_card_buy.create = function create(properties) {
  36034. return new privilege_card_buy(properties);
  36035. };
  36036. /**
  36037. * Encodes the specified privilege_card_buy message. Does not implicitly {@link game.privilege_card_buy.verify|verify} messages.
  36038. * @function encode
  36039. * @memberof game.privilege_card_buy
  36040. * @static
  36041. * @param {game.Iprivilege_card_buy} message privilege_card_buy message or plain object to encode
  36042. * @param {$protobuf.Writer} [writer] Writer to encode to
  36043. * @returns {$protobuf.Writer} Writer
  36044. */
  36045. privilege_card_buy.encode = function encode(message, writer) {
  36046. if (!writer)
  36047. writer = $Writer.create();
  36048. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  36049. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.moduleid);
  36050. return writer;
  36051. };
  36052. /**
  36053. * Encodes the specified privilege_card_buy message, length delimited. Does not implicitly {@link game.privilege_card_buy.verify|verify} messages.
  36054. * @function encodeDelimited
  36055. * @memberof game.privilege_card_buy
  36056. * @static
  36057. * @param {game.Iprivilege_card_buy} message privilege_card_buy message or plain object to encode
  36058. * @param {$protobuf.Writer} [writer] Writer to encode to
  36059. * @returns {$protobuf.Writer} Writer
  36060. */
  36061. privilege_card_buy.encodeDelimited = function encodeDelimited(message, writer) {
  36062. return this.encode(message, writer).ldelim();
  36063. };
  36064. /**
  36065. * Decodes a privilege_card_buy message from the specified reader or buffer.
  36066. * @function decode
  36067. * @memberof game.privilege_card_buy
  36068. * @static
  36069. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  36070. * @param {number} [length] Message length if known beforehand
  36071. * @returns {game.privilege_card_buy} privilege_card_buy
  36072. * @throws {Error} If the payload is not a reader or valid buffer
  36073. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  36074. */
  36075. privilege_card_buy.decode = function decode(reader, length) {
  36076. if (!(reader instanceof $Reader))
  36077. reader = $Reader.create(reader);
  36078. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.privilege_card_buy();
  36079. while (reader.pos < end) {
  36080. let tag = reader.uint32();
  36081. switch (tag >>> 3) {
  36082. case 1:
  36083. message.moduleid = reader.int64();
  36084. break;
  36085. default:
  36086. reader.skipType(tag & 7);
  36087. break;
  36088. }
  36089. }
  36090. return message;
  36091. };
  36092. /**
  36093. * Decodes a privilege_card_buy message from the specified reader or buffer, length delimited.
  36094. * @function decodeDelimited
  36095. * @memberof game.privilege_card_buy
  36096. * @static
  36097. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  36098. * @returns {game.privilege_card_buy} privilege_card_buy
  36099. * @throws {Error} If the payload is not a reader or valid buffer
  36100. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  36101. */
  36102. privilege_card_buy.decodeDelimited = function decodeDelimited(reader) {
  36103. if (!(reader instanceof $Reader))
  36104. reader = new $Reader(reader);
  36105. return this.decode(reader, reader.uint32());
  36106. };
  36107. /**
  36108. * Verifies a privilege_card_buy message.
  36109. * @function verify
  36110. * @memberof game.privilege_card_buy
  36111. * @static
  36112. * @param {Object.<string,*>} message Plain object to verify
  36113. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  36114. */
  36115. privilege_card_buy.verify = function verify(message) {
  36116. if (typeof message !== "object" || message === null)
  36117. return "object expected";
  36118. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  36119. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  36120. return "moduleid: integer|Long expected";
  36121. return null;
  36122. };
  36123. /**
  36124. * Creates a privilege_card_buy message from a plain object. Also converts values to their respective internal types.
  36125. * @function fromObject
  36126. * @memberof game.privilege_card_buy
  36127. * @static
  36128. * @param {Object.<string,*>} object Plain object
  36129. * @returns {game.privilege_card_buy} privilege_card_buy
  36130. */
  36131. privilege_card_buy.fromObject = function fromObject(object) {
  36132. if (object instanceof $root.game.privilege_card_buy)
  36133. return object;
  36134. let message = new $root.game.privilege_card_buy();
  36135. if (object.moduleid != null)
  36136. if ($util.Long)
  36137. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  36138. else if (typeof object.moduleid === "string")
  36139. message.moduleid = parseInt(object.moduleid, 10);
  36140. else if (typeof object.moduleid === "number")
  36141. message.moduleid = object.moduleid;
  36142. else if (typeof object.moduleid === "object")
  36143. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  36144. return message;
  36145. };
  36146. /**
  36147. * Creates a plain object from a privilege_card_buy message. Also converts values to other types if specified.
  36148. * @function toObject
  36149. * @memberof game.privilege_card_buy
  36150. * @static
  36151. * @param {game.privilege_card_buy} message privilege_card_buy
  36152. * @param {$protobuf.IConversionOptions} [options] Conversion options
  36153. * @returns {Object.<string,*>} Plain object
  36154. */
  36155. privilege_card_buy.toObject = function toObject(message, options) {
  36156. if (!options)
  36157. options = {};
  36158. let object = {};
  36159. if (options.defaults)
  36160. if ($util.Long) {
  36161. let long = new $util.Long(0, 0, false);
  36162. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  36163. } else
  36164. object.moduleid = options.longs === String ? "0" : 0;
  36165. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  36166. if (typeof message.moduleid === "number")
  36167. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  36168. else
  36169. 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;
  36170. return object;
  36171. };
  36172. /**
  36173. * Converts this privilege_card_buy to JSON.
  36174. * @function toJSON
  36175. * @memberof game.privilege_card_buy
  36176. * @instance
  36177. * @returns {Object.<string,*>} JSON object
  36178. */
  36179. privilege_card_buy.prototype.toJSON = function toJSON() {
  36180. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  36181. };
  36182. return privilege_card_buy;
  36183. })();
  36184. game.privilege_card_buy_rsp = (function() {
  36185. /**
  36186. * Properties of a privilege_card_buy_rsp.
  36187. * @memberof game
  36188. * @interface Iprivilege_card_buy_rsp
  36189. * @property {number|Long|null} [errno] privilege_card_buy_rsp errno
  36190. */
  36191. /**
  36192. * Constructs a new privilege_card_buy_rsp.
  36193. * @memberof game
  36194. * @classdesc Represents a privilege_card_buy_rsp.
  36195. * @implements Iprivilege_card_buy_rsp
  36196. * @constructor
  36197. * @param {game.Iprivilege_card_buy_rsp=} [properties] Properties to set
  36198. */
  36199. function privilege_card_buy_rsp(properties) {
  36200. if (properties)
  36201. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  36202. if (properties[keys[i]] != null)
  36203. this[keys[i]] = properties[keys[i]];
  36204. }
  36205. /**
  36206. * privilege_card_buy_rsp errno.
  36207. * @member {number|Long} errno
  36208. * @memberof game.privilege_card_buy_rsp
  36209. * @instance
  36210. */
  36211. privilege_card_buy_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  36212. /**
  36213. * Creates a new privilege_card_buy_rsp instance using the specified properties.
  36214. * @function create
  36215. * @memberof game.privilege_card_buy_rsp
  36216. * @static
  36217. * @param {game.Iprivilege_card_buy_rsp=} [properties] Properties to set
  36218. * @returns {game.privilege_card_buy_rsp} privilege_card_buy_rsp instance
  36219. */
  36220. privilege_card_buy_rsp.create = function create(properties) {
  36221. return new privilege_card_buy_rsp(properties);
  36222. };
  36223. /**
  36224. * Encodes the specified privilege_card_buy_rsp message. Does not implicitly {@link game.privilege_card_buy_rsp.verify|verify} messages.
  36225. * @function encode
  36226. * @memberof game.privilege_card_buy_rsp
  36227. * @static
  36228. * @param {game.Iprivilege_card_buy_rsp} message privilege_card_buy_rsp message or plain object to encode
  36229. * @param {$protobuf.Writer} [writer] Writer to encode to
  36230. * @returns {$protobuf.Writer} Writer
  36231. */
  36232. privilege_card_buy_rsp.encode = function encode(message, writer) {
  36233. if (!writer)
  36234. writer = $Writer.create();
  36235. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  36236. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  36237. return writer;
  36238. };
  36239. /**
  36240. * Encodes the specified privilege_card_buy_rsp message, length delimited. Does not implicitly {@link game.privilege_card_buy_rsp.verify|verify} messages.
  36241. * @function encodeDelimited
  36242. * @memberof game.privilege_card_buy_rsp
  36243. * @static
  36244. * @param {game.Iprivilege_card_buy_rsp} message privilege_card_buy_rsp message or plain object to encode
  36245. * @param {$protobuf.Writer} [writer] Writer to encode to
  36246. * @returns {$protobuf.Writer} Writer
  36247. */
  36248. privilege_card_buy_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  36249. return this.encode(message, writer).ldelim();
  36250. };
  36251. /**
  36252. * Decodes a privilege_card_buy_rsp message from the specified reader or buffer.
  36253. * @function decode
  36254. * @memberof game.privilege_card_buy_rsp
  36255. * @static
  36256. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  36257. * @param {number} [length] Message length if known beforehand
  36258. * @returns {game.privilege_card_buy_rsp} privilege_card_buy_rsp
  36259. * @throws {Error} If the payload is not a reader or valid buffer
  36260. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  36261. */
  36262. privilege_card_buy_rsp.decode = function decode(reader, length) {
  36263. if (!(reader instanceof $Reader))
  36264. reader = $Reader.create(reader);
  36265. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.privilege_card_buy_rsp();
  36266. while (reader.pos < end) {
  36267. let tag = reader.uint32();
  36268. switch (tag >>> 3) {
  36269. case 1:
  36270. message.errno = reader.int64();
  36271. break;
  36272. default:
  36273. reader.skipType(tag & 7);
  36274. break;
  36275. }
  36276. }
  36277. return message;
  36278. };
  36279. /**
  36280. * Decodes a privilege_card_buy_rsp message from the specified reader or buffer, length delimited.
  36281. * @function decodeDelimited
  36282. * @memberof game.privilege_card_buy_rsp
  36283. * @static
  36284. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  36285. * @returns {game.privilege_card_buy_rsp} privilege_card_buy_rsp
  36286. * @throws {Error} If the payload is not a reader or valid buffer
  36287. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  36288. */
  36289. privilege_card_buy_rsp.decodeDelimited = function decodeDelimited(reader) {
  36290. if (!(reader instanceof $Reader))
  36291. reader = new $Reader(reader);
  36292. return this.decode(reader, reader.uint32());
  36293. };
  36294. /**
  36295. * Verifies a privilege_card_buy_rsp message.
  36296. * @function verify
  36297. * @memberof game.privilege_card_buy_rsp
  36298. * @static
  36299. * @param {Object.<string,*>} message Plain object to verify
  36300. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  36301. */
  36302. privilege_card_buy_rsp.verify = function verify(message) {
  36303. if (typeof message !== "object" || message === null)
  36304. return "object expected";
  36305. if (message.errno != null && message.hasOwnProperty("errno"))
  36306. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  36307. return "errno: integer|Long expected";
  36308. return null;
  36309. };
  36310. /**
  36311. * Creates a privilege_card_buy_rsp message from a plain object. Also converts values to their respective internal types.
  36312. * @function fromObject
  36313. * @memberof game.privilege_card_buy_rsp
  36314. * @static
  36315. * @param {Object.<string,*>} object Plain object
  36316. * @returns {game.privilege_card_buy_rsp} privilege_card_buy_rsp
  36317. */
  36318. privilege_card_buy_rsp.fromObject = function fromObject(object) {
  36319. if (object instanceof $root.game.privilege_card_buy_rsp)
  36320. return object;
  36321. let message = new $root.game.privilege_card_buy_rsp();
  36322. if (object.errno != null)
  36323. if ($util.Long)
  36324. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  36325. else if (typeof object.errno === "string")
  36326. message.errno = parseInt(object.errno, 10);
  36327. else if (typeof object.errno === "number")
  36328. message.errno = object.errno;
  36329. else if (typeof object.errno === "object")
  36330. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  36331. return message;
  36332. };
  36333. /**
  36334. * Creates a plain object from a privilege_card_buy_rsp message. Also converts values to other types if specified.
  36335. * @function toObject
  36336. * @memberof game.privilege_card_buy_rsp
  36337. * @static
  36338. * @param {game.privilege_card_buy_rsp} message privilege_card_buy_rsp
  36339. * @param {$protobuf.IConversionOptions} [options] Conversion options
  36340. * @returns {Object.<string,*>} Plain object
  36341. */
  36342. privilege_card_buy_rsp.toObject = function toObject(message, options) {
  36343. if (!options)
  36344. options = {};
  36345. let object = {};
  36346. if (options.defaults)
  36347. if ($util.Long) {
  36348. let long = new $util.Long(0, 0, false);
  36349. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  36350. } else
  36351. object.errno = options.longs === String ? "0" : 0;
  36352. if (message.errno != null && message.hasOwnProperty("errno"))
  36353. if (typeof message.errno === "number")
  36354. object.errno = options.longs === String ? String(message.errno) : message.errno;
  36355. else
  36356. 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;
  36357. return object;
  36358. };
  36359. /**
  36360. * Converts this privilege_card_buy_rsp to JSON.
  36361. * @function toJSON
  36362. * @memberof game.privilege_card_buy_rsp
  36363. * @instance
  36364. * @returns {Object.<string,*>} JSON object
  36365. */
  36366. privilege_card_buy_rsp.prototype.toJSON = function toJSON() {
  36367. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  36368. };
  36369. return privilege_card_buy_rsp;
  36370. })();
  36371. game.privilege_card_unlock_nty = (function() {
  36372. /**
  36373. * Properties of a privilege_card_unlock_nty.
  36374. * @memberof game
  36375. * @interface Iprivilege_card_unlock_nty
  36376. * @property {game.Iprivilege_card_info|null} [data] privilege_card_unlock_nty data
  36377. */
  36378. /**
  36379. * Constructs a new privilege_card_unlock_nty.
  36380. * @memberof game
  36381. * @classdesc Represents a privilege_card_unlock_nty.
  36382. * @implements Iprivilege_card_unlock_nty
  36383. * @constructor
  36384. * @param {game.Iprivilege_card_unlock_nty=} [properties] Properties to set
  36385. */
  36386. function privilege_card_unlock_nty(properties) {
  36387. if (properties)
  36388. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  36389. if (properties[keys[i]] != null)
  36390. this[keys[i]] = properties[keys[i]];
  36391. }
  36392. /**
  36393. * privilege_card_unlock_nty data.
  36394. * @member {game.Iprivilege_card_info|null|undefined} data
  36395. * @memberof game.privilege_card_unlock_nty
  36396. * @instance
  36397. */
  36398. privilege_card_unlock_nty.prototype.data = null;
  36399. /**
  36400. * Creates a new privilege_card_unlock_nty instance using the specified properties.
  36401. * @function create
  36402. * @memberof game.privilege_card_unlock_nty
  36403. * @static
  36404. * @param {game.Iprivilege_card_unlock_nty=} [properties] Properties to set
  36405. * @returns {game.privilege_card_unlock_nty} privilege_card_unlock_nty instance
  36406. */
  36407. privilege_card_unlock_nty.create = function create(properties) {
  36408. return new privilege_card_unlock_nty(properties);
  36409. };
  36410. /**
  36411. * Encodes the specified privilege_card_unlock_nty message. Does not implicitly {@link game.privilege_card_unlock_nty.verify|verify} messages.
  36412. * @function encode
  36413. * @memberof game.privilege_card_unlock_nty
  36414. * @static
  36415. * @param {game.Iprivilege_card_unlock_nty} message privilege_card_unlock_nty message or plain object to encode
  36416. * @param {$protobuf.Writer} [writer] Writer to encode to
  36417. * @returns {$protobuf.Writer} Writer
  36418. */
  36419. privilege_card_unlock_nty.encode = function encode(message, writer) {
  36420. if (!writer)
  36421. writer = $Writer.create();
  36422. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  36423. $root.game.privilege_card_info.encode(message.data, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
  36424. return writer;
  36425. };
  36426. /**
  36427. * Encodes the specified privilege_card_unlock_nty message, length delimited. Does not implicitly {@link game.privilege_card_unlock_nty.verify|verify} messages.
  36428. * @function encodeDelimited
  36429. * @memberof game.privilege_card_unlock_nty
  36430. * @static
  36431. * @param {game.Iprivilege_card_unlock_nty} message privilege_card_unlock_nty message or plain object to encode
  36432. * @param {$protobuf.Writer} [writer] Writer to encode to
  36433. * @returns {$protobuf.Writer} Writer
  36434. */
  36435. privilege_card_unlock_nty.encodeDelimited = function encodeDelimited(message, writer) {
  36436. return this.encode(message, writer).ldelim();
  36437. };
  36438. /**
  36439. * Decodes a privilege_card_unlock_nty message from the specified reader or buffer.
  36440. * @function decode
  36441. * @memberof game.privilege_card_unlock_nty
  36442. * @static
  36443. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  36444. * @param {number} [length] Message length if known beforehand
  36445. * @returns {game.privilege_card_unlock_nty} privilege_card_unlock_nty
  36446. * @throws {Error} If the payload is not a reader or valid buffer
  36447. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  36448. */
  36449. privilege_card_unlock_nty.decode = function decode(reader, length) {
  36450. if (!(reader instanceof $Reader))
  36451. reader = $Reader.create(reader);
  36452. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.privilege_card_unlock_nty();
  36453. while (reader.pos < end) {
  36454. let tag = reader.uint32();
  36455. switch (tag >>> 3) {
  36456. case 1:
  36457. message.data = $root.game.privilege_card_info.decode(reader, reader.uint32());
  36458. break;
  36459. default:
  36460. reader.skipType(tag & 7);
  36461. break;
  36462. }
  36463. }
  36464. return message;
  36465. };
  36466. /**
  36467. * Decodes a privilege_card_unlock_nty message from the specified reader or buffer, length delimited.
  36468. * @function decodeDelimited
  36469. * @memberof game.privilege_card_unlock_nty
  36470. * @static
  36471. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  36472. * @returns {game.privilege_card_unlock_nty} privilege_card_unlock_nty
  36473. * @throws {Error} If the payload is not a reader or valid buffer
  36474. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  36475. */
  36476. privilege_card_unlock_nty.decodeDelimited = function decodeDelimited(reader) {
  36477. if (!(reader instanceof $Reader))
  36478. reader = new $Reader(reader);
  36479. return this.decode(reader, reader.uint32());
  36480. };
  36481. /**
  36482. * Verifies a privilege_card_unlock_nty message.
  36483. * @function verify
  36484. * @memberof game.privilege_card_unlock_nty
  36485. * @static
  36486. * @param {Object.<string,*>} message Plain object to verify
  36487. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  36488. */
  36489. privilege_card_unlock_nty.verify = function verify(message) {
  36490. if (typeof message !== "object" || message === null)
  36491. return "object expected";
  36492. if (message.data != null && message.hasOwnProperty("data")) {
  36493. let error = $root.game.privilege_card_info.verify(message.data);
  36494. if (error)
  36495. return "data." + error;
  36496. }
  36497. return null;
  36498. };
  36499. /**
  36500. * Creates a privilege_card_unlock_nty message from a plain object. Also converts values to their respective internal types.
  36501. * @function fromObject
  36502. * @memberof game.privilege_card_unlock_nty
  36503. * @static
  36504. * @param {Object.<string,*>} object Plain object
  36505. * @returns {game.privilege_card_unlock_nty} privilege_card_unlock_nty
  36506. */
  36507. privilege_card_unlock_nty.fromObject = function fromObject(object) {
  36508. if (object instanceof $root.game.privilege_card_unlock_nty)
  36509. return object;
  36510. let message = new $root.game.privilege_card_unlock_nty();
  36511. if (object.data != null) {
  36512. if (typeof object.data !== "object")
  36513. throw TypeError(".game.privilege_card_unlock_nty.data: object expected");
  36514. message.data = $root.game.privilege_card_info.fromObject(object.data);
  36515. }
  36516. return message;
  36517. };
  36518. /**
  36519. * Creates a plain object from a privilege_card_unlock_nty message. Also converts values to other types if specified.
  36520. * @function toObject
  36521. * @memberof game.privilege_card_unlock_nty
  36522. * @static
  36523. * @param {game.privilege_card_unlock_nty} message privilege_card_unlock_nty
  36524. * @param {$protobuf.IConversionOptions} [options] Conversion options
  36525. * @returns {Object.<string,*>} Plain object
  36526. */
  36527. privilege_card_unlock_nty.toObject = function toObject(message, options) {
  36528. if (!options)
  36529. options = {};
  36530. let object = {};
  36531. if (options.defaults)
  36532. object.data = null;
  36533. if (message.data != null && message.hasOwnProperty("data"))
  36534. object.data = $root.game.privilege_card_info.toObject(message.data, options);
  36535. return object;
  36536. };
  36537. /**
  36538. * Converts this privilege_card_unlock_nty to JSON.
  36539. * @function toJSON
  36540. * @memberof game.privilege_card_unlock_nty
  36541. * @instance
  36542. * @returns {Object.<string,*>} JSON object
  36543. */
  36544. privilege_card_unlock_nty.prototype.toJSON = function toJSON() {
  36545. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  36546. };
  36547. return privilege_card_unlock_nty;
  36548. })();
  36549. game.privilege_card_award = (function() {
  36550. /**
  36551. * Properties of a privilege_card_award.
  36552. * @memberof game
  36553. * @interface Iprivilege_card_award
  36554. * @property {number|Long|null} [moduleid] privilege_card_award moduleid
  36555. */
  36556. /**
  36557. * Constructs a new privilege_card_award.
  36558. * @memberof game
  36559. * @classdesc Represents a privilege_card_award.
  36560. * @implements Iprivilege_card_award
  36561. * @constructor
  36562. * @param {game.Iprivilege_card_award=} [properties] Properties to set
  36563. */
  36564. function privilege_card_award(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 moduleid.
  36572. * @member {number|Long} moduleid
  36573. * @memberof game.privilege_card_award
  36574. * @instance
  36575. */
  36576. privilege_card_award.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  36577. /**
  36578. * Creates a new privilege_card_award instance using the specified properties.
  36579. * @function create
  36580. * @memberof game.privilege_card_award
  36581. * @static
  36582. * @param {game.Iprivilege_card_award=} [properties] Properties to set
  36583. * @returns {game.privilege_card_award} privilege_card_award instance
  36584. */
  36585. privilege_card_award.create = function create(properties) {
  36586. return new privilege_card_award(properties);
  36587. };
  36588. /**
  36589. * Encodes the specified privilege_card_award message. Does not implicitly {@link game.privilege_card_award.verify|verify} messages.
  36590. * @function encode
  36591. * @memberof game.privilege_card_award
  36592. * @static
  36593. * @param {game.Iprivilege_card_award} message privilege_card_award message or plain object to encode
  36594. * @param {$protobuf.Writer} [writer] Writer to encode to
  36595. * @returns {$protobuf.Writer} Writer
  36596. */
  36597. privilege_card_award.encode = function encode(message, writer) {
  36598. if (!writer)
  36599. writer = $Writer.create();
  36600. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  36601. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.moduleid);
  36602. return writer;
  36603. };
  36604. /**
  36605. * Encodes the specified privilege_card_award message, length delimited. Does not implicitly {@link game.privilege_card_award.verify|verify} messages.
  36606. * @function encodeDelimited
  36607. * @memberof game.privilege_card_award
  36608. * @static
  36609. * @param {game.Iprivilege_card_award} message privilege_card_award message or plain object to encode
  36610. * @param {$protobuf.Writer} [writer] Writer to encode to
  36611. * @returns {$protobuf.Writer} Writer
  36612. */
  36613. privilege_card_award.encodeDelimited = function encodeDelimited(message, writer) {
  36614. return this.encode(message, writer).ldelim();
  36615. };
  36616. /**
  36617. * Decodes a privilege_card_award message from the specified reader or buffer.
  36618. * @function decode
  36619. * @memberof game.privilege_card_award
  36620. * @static
  36621. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  36622. * @param {number} [length] Message length if known beforehand
  36623. * @returns {game.privilege_card_award} privilege_card_award
  36624. * @throws {Error} If the payload is not a reader or valid buffer
  36625. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  36626. */
  36627. privilege_card_award.decode = function decode(reader, length) {
  36628. if (!(reader instanceof $Reader))
  36629. reader = $Reader.create(reader);
  36630. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.privilege_card_award();
  36631. while (reader.pos < end) {
  36632. let tag = reader.uint32();
  36633. switch (tag >>> 3) {
  36634. case 1:
  36635. message.moduleid = reader.int64();
  36636. break;
  36637. default:
  36638. reader.skipType(tag & 7);
  36639. break;
  36640. }
  36641. }
  36642. return message;
  36643. };
  36644. /**
  36645. * Decodes a privilege_card_award message from the specified reader or buffer, length delimited.
  36646. * @function decodeDelimited
  36647. * @memberof game.privilege_card_award
  36648. * @static
  36649. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  36650. * @returns {game.privilege_card_award} privilege_card_award
  36651. * @throws {Error} If the payload is not a reader or valid buffer
  36652. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  36653. */
  36654. privilege_card_award.decodeDelimited = function decodeDelimited(reader) {
  36655. if (!(reader instanceof $Reader))
  36656. reader = new $Reader(reader);
  36657. return this.decode(reader, reader.uint32());
  36658. };
  36659. /**
  36660. * Verifies a privilege_card_award message.
  36661. * @function verify
  36662. * @memberof game.privilege_card_award
  36663. * @static
  36664. * @param {Object.<string,*>} message Plain object to verify
  36665. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  36666. */
  36667. privilege_card_award.verify = function verify(message) {
  36668. if (typeof message !== "object" || message === null)
  36669. return "object expected";
  36670. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  36671. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  36672. return "moduleid: integer|Long expected";
  36673. return null;
  36674. };
  36675. /**
  36676. * Creates a privilege_card_award message from a plain object. Also converts values to their respective internal types.
  36677. * @function fromObject
  36678. * @memberof game.privilege_card_award
  36679. * @static
  36680. * @param {Object.<string,*>} object Plain object
  36681. * @returns {game.privilege_card_award} privilege_card_award
  36682. */
  36683. privilege_card_award.fromObject = function fromObject(object) {
  36684. if (object instanceof $root.game.privilege_card_award)
  36685. return object;
  36686. let message = new $root.game.privilege_card_award();
  36687. if (object.moduleid != null)
  36688. if ($util.Long)
  36689. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  36690. else if (typeof object.moduleid === "string")
  36691. message.moduleid = parseInt(object.moduleid, 10);
  36692. else if (typeof object.moduleid === "number")
  36693. message.moduleid = object.moduleid;
  36694. else if (typeof object.moduleid === "object")
  36695. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  36696. return message;
  36697. };
  36698. /**
  36699. * Creates a plain object from a privilege_card_award message. Also converts values to other types if specified.
  36700. * @function toObject
  36701. * @memberof game.privilege_card_award
  36702. * @static
  36703. * @param {game.privilege_card_award} message privilege_card_award
  36704. * @param {$protobuf.IConversionOptions} [options] Conversion options
  36705. * @returns {Object.<string,*>} Plain object
  36706. */
  36707. privilege_card_award.toObject = function toObject(message, options) {
  36708. if (!options)
  36709. options = {};
  36710. let object = {};
  36711. if (options.defaults)
  36712. if ($util.Long) {
  36713. let long = new $util.Long(0, 0, false);
  36714. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  36715. } else
  36716. object.moduleid = options.longs === String ? "0" : 0;
  36717. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  36718. if (typeof message.moduleid === "number")
  36719. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  36720. else
  36721. 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;
  36722. return object;
  36723. };
  36724. /**
  36725. * Converts this privilege_card_award to JSON.
  36726. * @function toJSON
  36727. * @memberof game.privilege_card_award
  36728. * @instance
  36729. * @returns {Object.<string,*>} JSON object
  36730. */
  36731. privilege_card_award.prototype.toJSON = function toJSON() {
  36732. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  36733. };
  36734. return privilege_card_award;
  36735. })();
  36736. game.privilege_card_award_rsp = (function() {
  36737. /**
  36738. * Properties of a privilege_card_award_rsp.
  36739. * @memberof game
  36740. * @interface Iprivilege_card_award_rsp
  36741. * @property {number|Long|null} [errno] privilege_card_award_rsp errno
  36742. * @property {number|Long|null} [moduleid] privilege_card_award_rsp moduleid
  36743. * @property {boolean|null} [award] privilege_card_award_rsp award
  36744. */
  36745. /**
  36746. * Constructs a new privilege_card_award_rsp.
  36747. * @memberof game
  36748. * @classdesc Represents a privilege_card_award_rsp.
  36749. * @implements Iprivilege_card_award_rsp
  36750. * @constructor
  36751. * @param {game.Iprivilege_card_award_rsp=} [properties] Properties to set
  36752. */
  36753. function privilege_card_award_rsp(properties) {
  36754. if (properties)
  36755. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  36756. if (properties[keys[i]] != null)
  36757. this[keys[i]] = properties[keys[i]];
  36758. }
  36759. /**
  36760. * privilege_card_award_rsp errno.
  36761. * @member {number|Long} errno
  36762. * @memberof game.privilege_card_award_rsp
  36763. * @instance
  36764. */
  36765. privilege_card_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  36766. /**
  36767. * privilege_card_award_rsp moduleid.
  36768. * @member {number|Long} moduleid
  36769. * @memberof game.privilege_card_award_rsp
  36770. * @instance
  36771. */
  36772. privilege_card_award_rsp.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  36773. /**
  36774. * privilege_card_award_rsp award.
  36775. * @member {boolean} award
  36776. * @memberof game.privilege_card_award_rsp
  36777. * @instance
  36778. */
  36779. privilege_card_award_rsp.prototype.award = false;
  36780. /**
  36781. * Creates a new privilege_card_award_rsp instance using the specified properties.
  36782. * @function create
  36783. * @memberof game.privilege_card_award_rsp
  36784. * @static
  36785. * @param {game.Iprivilege_card_award_rsp=} [properties] Properties to set
  36786. * @returns {game.privilege_card_award_rsp} privilege_card_award_rsp instance
  36787. */
  36788. privilege_card_award_rsp.create = function create(properties) {
  36789. return new privilege_card_award_rsp(properties);
  36790. };
  36791. /**
  36792. * Encodes the specified privilege_card_award_rsp message. Does not implicitly {@link game.privilege_card_award_rsp.verify|verify} messages.
  36793. * @function encode
  36794. * @memberof game.privilege_card_award_rsp
  36795. * @static
  36796. * @param {game.Iprivilege_card_award_rsp} message privilege_card_award_rsp message or plain object to encode
  36797. * @param {$protobuf.Writer} [writer] Writer to encode to
  36798. * @returns {$protobuf.Writer} Writer
  36799. */
  36800. privilege_card_award_rsp.encode = function encode(message, writer) {
  36801. if (!writer)
  36802. writer = $Writer.create();
  36803. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  36804. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  36805. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  36806. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.moduleid);
  36807. if (message.award != null && Object.hasOwnProperty.call(message, "award"))
  36808. writer.uint32(/* id 3, wireType 0 =*/24).bool(message.award);
  36809. return writer;
  36810. };
  36811. /**
  36812. * Encodes the specified privilege_card_award_rsp message, length delimited. Does not implicitly {@link game.privilege_card_award_rsp.verify|verify} messages.
  36813. * @function encodeDelimited
  36814. * @memberof game.privilege_card_award_rsp
  36815. * @static
  36816. * @param {game.Iprivilege_card_award_rsp} message privilege_card_award_rsp message or plain object to encode
  36817. * @param {$protobuf.Writer} [writer] Writer to encode to
  36818. * @returns {$protobuf.Writer} Writer
  36819. */
  36820. privilege_card_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  36821. return this.encode(message, writer).ldelim();
  36822. };
  36823. /**
  36824. * Decodes a privilege_card_award_rsp message from the specified reader or buffer.
  36825. * @function decode
  36826. * @memberof game.privilege_card_award_rsp
  36827. * @static
  36828. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  36829. * @param {number} [length] Message length if known beforehand
  36830. * @returns {game.privilege_card_award_rsp} privilege_card_award_rsp
  36831. * @throws {Error} If the payload is not a reader or valid buffer
  36832. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  36833. */
  36834. privilege_card_award_rsp.decode = function decode(reader, length) {
  36835. if (!(reader instanceof $Reader))
  36836. reader = $Reader.create(reader);
  36837. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.privilege_card_award_rsp();
  36838. while (reader.pos < end) {
  36839. let tag = reader.uint32();
  36840. switch (tag >>> 3) {
  36841. case 1:
  36842. message.errno = reader.int64();
  36843. break;
  36844. case 2:
  36845. message.moduleid = reader.int64();
  36846. break;
  36847. case 3:
  36848. message.award = reader.bool();
  36849. break;
  36850. default:
  36851. reader.skipType(tag & 7);
  36852. break;
  36853. }
  36854. }
  36855. return message;
  36856. };
  36857. /**
  36858. * Decodes a privilege_card_award_rsp message from the specified reader or buffer, length delimited.
  36859. * @function decodeDelimited
  36860. * @memberof game.privilege_card_award_rsp
  36861. * @static
  36862. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  36863. * @returns {game.privilege_card_award_rsp} privilege_card_award_rsp
  36864. * @throws {Error} If the payload is not a reader or valid buffer
  36865. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  36866. */
  36867. privilege_card_award_rsp.decodeDelimited = function decodeDelimited(reader) {
  36868. if (!(reader instanceof $Reader))
  36869. reader = new $Reader(reader);
  36870. return this.decode(reader, reader.uint32());
  36871. };
  36872. /**
  36873. * Verifies a privilege_card_award_rsp message.
  36874. * @function verify
  36875. * @memberof game.privilege_card_award_rsp
  36876. * @static
  36877. * @param {Object.<string,*>} message Plain object to verify
  36878. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  36879. */
  36880. privilege_card_award_rsp.verify = function verify(message) {
  36881. if (typeof message !== "object" || message === null)
  36882. return "object expected";
  36883. if (message.errno != null && message.hasOwnProperty("errno"))
  36884. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  36885. return "errno: integer|Long expected";
  36886. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  36887. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  36888. return "moduleid: integer|Long expected";
  36889. if (message.award != null && message.hasOwnProperty("award"))
  36890. if (typeof message.award !== "boolean")
  36891. return "award: boolean expected";
  36892. return null;
  36893. };
  36894. /**
  36895. * Creates a privilege_card_award_rsp message from a plain object. Also converts values to their respective internal types.
  36896. * @function fromObject
  36897. * @memberof game.privilege_card_award_rsp
  36898. * @static
  36899. * @param {Object.<string,*>} object Plain object
  36900. * @returns {game.privilege_card_award_rsp} privilege_card_award_rsp
  36901. */
  36902. privilege_card_award_rsp.fromObject = function fromObject(object) {
  36903. if (object instanceof $root.game.privilege_card_award_rsp)
  36904. return object;
  36905. let message = new $root.game.privilege_card_award_rsp();
  36906. if (object.errno != null)
  36907. if ($util.Long)
  36908. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  36909. else if (typeof object.errno === "string")
  36910. message.errno = parseInt(object.errno, 10);
  36911. else if (typeof object.errno === "number")
  36912. message.errno = object.errno;
  36913. else if (typeof object.errno === "object")
  36914. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  36915. if (object.moduleid != null)
  36916. if ($util.Long)
  36917. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  36918. else if (typeof object.moduleid === "string")
  36919. message.moduleid = parseInt(object.moduleid, 10);
  36920. else if (typeof object.moduleid === "number")
  36921. message.moduleid = object.moduleid;
  36922. else if (typeof object.moduleid === "object")
  36923. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  36924. if (object.award != null)
  36925. message.award = Boolean(object.award);
  36926. return message;
  36927. };
  36928. /**
  36929. * Creates a plain object from a privilege_card_award_rsp message. Also converts values to other types if specified.
  36930. * @function toObject
  36931. * @memberof game.privilege_card_award_rsp
  36932. * @static
  36933. * @param {game.privilege_card_award_rsp} message privilege_card_award_rsp
  36934. * @param {$protobuf.IConversionOptions} [options] Conversion options
  36935. * @returns {Object.<string,*>} Plain object
  36936. */
  36937. privilege_card_award_rsp.toObject = function toObject(message, options) {
  36938. if (!options)
  36939. options = {};
  36940. let object = {};
  36941. if (options.defaults) {
  36942. if ($util.Long) {
  36943. let long = new $util.Long(0, 0, false);
  36944. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  36945. } else
  36946. object.errno = options.longs === String ? "0" : 0;
  36947. if ($util.Long) {
  36948. let long = new $util.Long(0, 0, false);
  36949. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  36950. } else
  36951. object.moduleid = options.longs === String ? "0" : 0;
  36952. object.award = false;
  36953. }
  36954. if (message.errno != null && message.hasOwnProperty("errno"))
  36955. if (typeof message.errno === "number")
  36956. object.errno = options.longs === String ? String(message.errno) : message.errno;
  36957. else
  36958. 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;
  36959. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  36960. if (typeof message.moduleid === "number")
  36961. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  36962. else
  36963. 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;
  36964. if (message.award != null && message.hasOwnProperty("award"))
  36965. object.award = message.award;
  36966. return object;
  36967. };
  36968. /**
  36969. * Converts this privilege_card_award_rsp to JSON.
  36970. * @function toJSON
  36971. * @memberof game.privilege_card_award_rsp
  36972. * @instance
  36973. * @returns {Object.<string,*>} JSON object
  36974. */
  36975. privilege_card_award_rsp.prototype.toJSON = function toJSON() {
  36976. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  36977. };
  36978. return privilege_card_award_rsp;
  36979. })();
  36980. game.box_get_award = (function() {
  36981. /**
  36982. * Properties of a box_get_award.
  36983. * @memberof game
  36984. * @interface Ibox_get_award
  36985. * @property {number|Long|null} [id] box_get_award id
  36986. * @property {number|Long|null} [select] box_get_award select
  36987. * @property {number|Long|null} [type] box_get_award type
  36988. * @property {number|Long|null} [num] box_get_award num
  36989. */
  36990. /**
  36991. * Constructs a new box_get_award.
  36992. * @memberof game
  36993. * @classdesc Represents a box_get_award.
  36994. * @implements Ibox_get_award
  36995. * @constructor
  36996. * @param {game.Ibox_get_award=} [properties] Properties to set
  36997. */
  36998. function box_get_award(properties) {
  36999. if (properties)
  37000. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  37001. if (properties[keys[i]] != null)
  37002. this[keys[i]] = properties[keys[i]];
  37003. }
  37004. /**
  37005. * box_get_award id.
  37006. * @member {number|Long} id
  37007. * @memberof game.box_get_award
  37008. * @instance
  37009. */
  37010. box_get_award.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  37011. /**
  37012. * box_get_award select.
  37013. * @member {number|Long} select
  37014. * @memberof game.box_get_award
  37015. * @instance
  37016. */
  37017. box_get_award.prototype.select = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  37018. /**
  37019. * box_get_award type.
  37020. * @member {number|Long} type
  37021. * @memberof game.box_get_award
  37022. * @instance
  37023. */
  37024. box_get_award.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  37025. /**
  37026. * box_get_award num.
  37027. * @member {number|Long} num
  37028. * @memberof game.box_get_award
  37029. * @instance
  37030. */
  37031. box_get_award.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  37032. /**
  37033. * Creates a new box_get_award instance using the specified properties.
  37034. * @function create
  37035. * @memberof game.box_get_award
  37036. * @static
  37037. * @param {game.Ibox_get_award=} [properties] Properties to set
  37038. * @returns {game.box_get_award} box_get_award instance
  37039. */
  37040. box_get_award.create = function create(properties) {
  37041. return new box_get_award(properties);
  37042. };
  37043. /**
  37044. * Encodes the specified box_get_award message. Does not implicitly {@link game.box_get_award.verify|verify} messages.
  37045. * @function encode
  37046. * @memberof game.box_get_award
  37047. * @static
  37048. * @param {game.Ibox_get_award} message box_get_award message or plain object to encode
  37049. * @param {$protobuf.Writer} [writer] Writer to encode to
  37050. * @returns {$protobuf.Writer} Writer
  37051. */
  37052. box_get_award.encode = function encode(message, writer) {
  37053. if (!writer)
  37054. writer = $Writer.create();
  37055. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  37056. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  37057. if (message.select != null && Object.hasOwnProperty.call(message, "select"))
  37058. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.select);
  37059. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  37060. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.type);
  37061. if (message.num != null && Object.hasOwnProperty.call(message, "num"))
  37062. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.num);
  37063. return writer;
  37064. };
  37065. /**
  37066. * Encodes the specified box_get_award message, length delimited. Does not implicitly {@link game.box_get_award.verify|verify} messages.
  37067. * @function encodeDelimited
  37068. * @memberof game.box_get_award
  37069. * @static
  37070. * @param {game.Ibox_get_award} message box_get_award message or plain object to encode
  37071. * @param {$protobuf.Writer} [writer] Writer to encode to
  37072. * @returns {$protobuf.Writer} Writer
  37073. */
  37074. box_get_award.encodeDelimited = function encodeDelimited(message, writer) {
  37075. return this.encode(message, writer).ldelim();
  37076. };
  37077. /**
  37078. * Decodes a box_get_award message from the specified reader or buffer.
  37079. * @function decode
  37080. * @memberof game.box_get_award
  37081. * @static
  37082. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  37083. * @param {number} [length] Message length if known beforehand
  37084. * @returns {game.box_get_award} box_get_award
  37085. * @throws {Error} If the payload is not a reader or valid buffer
  37086. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  37087. */
  37088. box_get_award.decode = function decode(reader, length) {
  37089. if (!(reader instanceof $Reader))
  37090. reader = $Reader.create(reader);
  37091. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.box_get_award();
  37092. while (reader.pos < end) {
  37093. let tag = reader.uint32();
  37094. switch (tag >>> 3) {
  37095. case 1:
  37096. message.id = reader.int64();
  37097. break;
  37098. case 2:
  37099. message.select = reader.int64();
  37100. break;
  37101. case 3:
  37102. message.type = reader.int64();
  37103. break;
  37104. case 4:
  37105. message.num = reader.int64();
  37106. break;
  37107. default:
  37108. reader.skipType(tag & 7);
  37109. break;
  37110. }
  37111. }
  37112. return message;
  37113. };
  37114. /**
  37115. * Decodes a box_get_award message from the specified reader or buffer, length delimited.
  37116. * @function decodeDelimited
  37117. * @memberof game.box_get_award
  37118. * @static
  37119. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  37120. * @returns {game.box_get_award} box_get_award
  37121. * @throws {Error} If the payload is not a reader or valid buffer
  37122. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  37123. */
  37124. box_get_award.decodeDelimited = function decodeDelimited(reader) {
  37125. if (!(reader instanceof $Reader))
  37126. reader = new $Reader(reader);
  37127. return this.decode(reader, reader.uint32());
  37128. };
  37129. /**
  37130. * Verifies a box_get_award message.
  37131. * @function verify
  37132. * @memberof game.box_get_award
  37133. * @static
  37134. * @param {Object.<string,*>} message Plain object to verify
  37135. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  37136. */
  37137. box_get_award.verify = function verify(message) {
  37138. if (typeof message !== "object" || message === null)
  37139. return "object expected";
  37140. if (message.id != null && message.hasOwnProperty("id"))
  37141. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  37142. return "id: integer|Long expected";
  37143. if (message.select != null && message.hasOwnProperty("select"))
  37144. if (!$util.isInteger(message.select) && !(message.select && $util.isInteger(message.select.low) && $util.isInteger(message.select.high)))
  37145. return "select: integer|Long expected";
  37146. if (message.type != null && message.hasOwnProperty("type"))
  37147. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  37148. return "type: integer|Long expected";
  37149. if (message.num != null && message.hasOwnProperty("num"))
  37150. if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
  37151. return "num: integer|Long expected";
  37152. return null;
  37153. };
  37154. /**
  37155. * Creates a box_get_award message from a plain object. Also converts values to their respective internal types.
  37156. * @function fromObject
  37157. * @memberof game.box_get_award
  37158. * @static
  37159. * @param {Object.<string,*>} object Plain object
  37160. * @returns {game.box_get_award} box_get_award
  37161. */
  37162. box_get_award.fromObject = function fromObject(object) {
  37163. if (object instanceof $root.game.box_get_award)
  37164. return object;
  37165. let message = new $root.game.box_get_award();
  37166. if (object.id != null)
  37167. if ($util.Long)
  37168. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  37169. else if (typeof object.id === "string")
  37170. message.id = parseInt(object.id, 10);
  37171. else if (typeof object.id === "number")
  37172. message.id = object.id;
  37173. else if (typeof object.id === "object")
  37174. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  37175. if (object.select != null)
  37176. if ($util.Long)
  37177. (message.select = $util.Long.fromValue(object.select)).unsigned = false;
  37178. else if (typeof object.select === "string")
  37179. message.select = parseInt(object.select, 10);
  37180. else if (typeof object.select === "number")
  37181. message.select = object.select;
  37182. else if (typeof object.select === "object")
  37183. message.select = new $util.LongBits(object.select.low >>> 0, object.select.high >>> 0).toNumber();
  37184. if (object.type != null)
  37185. if ($util.Long)
  37186. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  37187. else if (typeof object.type === "string")
  37188. message.type = parseInt(object.type, 10);
  37189. else if (typeof object.type === "number")
  37190. message.type = object.type;
  37191. else if (typeof object.type === "object")
  37192. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  37193. if (object.num != null)
  37194. if ($util.Long)
  37195. (message.num = $util.Long.fromValue(object.num)).unsigned = false;
  37196. else if (typeof object.num === "string")
  37197. message.num = parseInt(object.num, 10);
  37198. else if (typeof object.num === "number")
  37199. message.num = object.num;
  37200. else if (typeof object.num === "object")
  37201. message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
  37202. return message;
  37203. };
  37204. /**
  37205. * Creates a plain object from a box_get_award message. Also converts values to other types if specified.
  37206. * @function toObject
  37207. * @memberof game.box_get_award
  37208. * @static
  37209. * @param {game.box_get_award} message box_get_award
  37210. * @param {$protobuf.IConversionOptions} [options] Conversion options
  37211. * @returns {Object.<string,*>} Plain object
  37212. */
  37213. box_get_award.toObject = function toObject(message, options) {
  37214. if (!options)
  37215. options = {};
  37216. let object = {};
  37217. if (options.defaults) {
  37218. if ($util.Long) {
  37219. let long = new $util.Long(0, 0, false);
  37220. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  37221. } else
  37222. object.id = options.longs === String ? "0" : 0;
  37223. if ($util.Long) {
  37224. let long = new $util.Long(0, 0, false);
  37225. object.select = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  37226. } else
  37227. object.select = options.longs === String ? "0" : 0;
  37228. if ($util.Long) {
  37229. let long = new $util.Long(0, 0, false);
  37230. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  37231. } else
  37232. object.type = options.longs === String ? "0" : 0;
  37233. if ($util.Long) {
  37234. let long = new $util.Long(0, 0, false);
  37235. object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  37236. } else
  37237. object.num = options.longs === String ? "0" : 0;
  37238. }
  37239. if (message.id != null && message.hasOwnProperty("id"))
  37240. if (typeof message.id === "number")
  37241. object.id = options.longs === String ? String(message.id) : message.id;
  37242. else
  37243. 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;
  37244. if (message.select != null && message.hasOwnProperty("select"))
  37245. if (typeof message.select === "number")
  37246. object.select = options.longs === String ? String(message.select) : message.select;
  37247. else
  37248. 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;
  37249. if (message.type != null && message.hasOwnProperty("type"))
  37250. if (typeof message.type === "number")
  37251. object.type = options.longs === String ? String(message.type) : message.type;
  37252. else
  37253. 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;
  37254. if (message.num != null && message.hasOwnProperty("num"))
  37255. if (typeof message.num === "number")
  37256. object.num = options.longs === String ? String(message.num) : message.num;
  37257. else
  37258. 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;
  37259. return object;
  37260. };
  37261. /**
  37262. * Converts this box_get_award to JSON.
  37263. * @function toJSON
  37264. * @memberof game.box_get_award
  37265. * @instance
  37266. * @returns {Object.<string,*>} JSON object
  37267. */
  37268. box_get_award.prototype.toJSON = function toJSON() {
  37269. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  37270. };
  37271. return box_get_award;
  37272. })();
  37273. game.box_get_award_rsp = (function() {
  37274. /**
  37275. * Properties of a box_get_award_rsp.
  37276. * @memberof game
  37277. * @interface Ibox_get_award_rsp
  37278. * @property {number|Long|null} [errno] box_get_award_rsp errno
  37279. * @property {number|Long|null} [type] box_get_award_rsp type
  37280. */
  37281. /**
  37282. * Constructs a new box_get_award_rsp.
  37283. * @memberof game
  37284. * @classdesc Represents a box_get_award_rsp.
  37285. * @implements Ibox_get_award_rsp
  37286. * @constructor
  37287. * @param {game.Ibox_get_award_rsp=} [properties] Properties to set
  37288. */
  37289. function box_get_award_rsp(properties) {
  37290. if (properties)
  37291. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  37292. if (properties[keys[i]] != null)
  37293. this[keys[i]] = properties[keys[i]];
  37294. }
  37295. /**
  37296. * box_get_award_rsp errno.
  37297. * @member {number|Long} errno
  37298. * @memberof game.box_get_award_rsp
  37299. * @instance
  37300. */
  37301. box_get_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  37302. /**
  37303. * box_get_award_rsp type.
  37304. * @member {number|Long} type
  37305. * @memberof game.box_get_award_rsp
  37306. * @instance
  37307. */
  37308. box_get_award_rsp.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  37309. /**
  37310. * Creates a new box_get_award_rsp instance using the specified properties.
  37311. * @function create
  37312. * @memberof game.box_get_award_rsp
  37313. * @static
  37314. * @param {game.Ibox_get_award_rsp=} [properties] Properties to set
  37315. * @returns {game.box_get_award_rsp} box_get_award_rsp instance
  37316. */
  37317. box_get_award_rsp.create = function create(properties) {
  37318. return new box_get_award_rsp(properties);
  37319. };
  37320. /**
  37321. * Encodes the specified box_get_award_rsp message. Does not implicitly {@link game.box_get_award_rsp.verify|verify} messages.
  37322. * @function encode
  37323. * @memberof game.box_get_award_rsp
  37324. * @static
  37325. * @param {game.Ibox_get_award_rsp} message box_get_award_rsp message or plain object to encode
  37326. * @param {$protobuf.Writer} [writer] Writer to encode to
  37327. * @returns {$protobuf.Writer} Writer
  37328. */
  37329. box_get_award_rsp.encode = function encode(message, writer) {
  37330. if (!writer)
  37331. writer = $Writer.create();
  37332. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  37333. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  37334. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  37335. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.type);
  37336. return writer;
  37337. };
  37338. /**
  37339. * Encodes the specified box_get_award_rsp message, length delimited. Does not implicitly {@link game.box_get_award_rsp.verify|verify} messages.
  37340. * @function encodeDelimited
  37341. * @memberof game.box_get_award_rsp
  37342. * @static
  37343. * @param {game.Ibox_get_award_rsp} message box_get_award_rsp message or plain object to encode
  37344. * @param {$protobuf.Writer} [writer] Writer to encode to
  37345. * @returns {$protobuf.Writer} Writer
  37346. */
  37347. box_get_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  37348. return this.encode(message, writer).ldelim();
  37349. };
  37350. /**
  37351. * Decodes a box_get_award_rsp message from the specified reader or buffer.
  37352. * @function decode
  37353. * @memberof game.box_get_award_rsp
  37354. * @static
  37355. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  37356. * @param {number} [length] Message length if known beforehand
  37357. * @returns {game.box_get_award_rsp} box_get_award_rsp
  37358. * @throws {Error} If the payload is not a reader or valid buffer
  37359. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  37360. */
  37361. box_get_award_rsp.decode = function decode(reader, length) {
  37362. if (!(reader instanceof $Reader))
  37363. reader = $Reader.create(reader);
  37364. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.box_get_award_rsp();
  37365. while (reader.pos < end) {
  37366. let tag = reader.uint32();
  37367. switch (tag >>> 3) {
  37368. case 1:
  37369. message.errno = reader.int64();
  37370. break;
  37371. case 2:
  37372. message.type = reader.int64();
  37373. break;
  37374. default:
  37375. reader.skipType(tag & 7);
  37376. break;
  37377. }
  37378. }
  37379. return message;
  37380. };
  37381. /**
  37382. * Decodes a box_get_award_rsp message from the specified reader or buffer, length delimited.
  37383. * @function decodeDelimited
  37384. * @memberof game.box_get_award_rsp
  37385. * @static
  37386. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  37387. * @returns {game.box_get_award_rsp} box_get_award_rsp
  37388. * @throws {Error} If the payload is not a reader or valid buffer
  37389. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  37390. */
  37391. box_get_award_rsp.decodeDelimited = function decodeDelimited(reader) {
  37392. if (!(reader instanceof $Reader))
  37393. reader = new $Reader(reader);
  37394. return this.decode(reader, reader.uint32());
  37395. };
  37396. /**
  37397. * Verifies a box_get_award_rsp message.
  37398. * @function verify
  37399. * @memberof game.box_get_award_rsp
  37400. * @static
  37401. * @param {Object.<string,*>} message Plain object to verify
  37402. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  37403. */
  37404. box_get_award_rsp.verify = function verify(message) {
  37405. if (typeof message !== "object" || message === null)
  37406. return "object expected";
  37407. if (message.errno != null && message.hasOwnProperty("errno"))
  37408. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  37409. return "errno: integer|Long expected";
  37410. if (message.type != null && message.hasOwnProperty("type"))
  37411. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  37412. return "type: integer|Long expected";
  37413. return null;
  37414. };
  37415. /**
  37416. * Creates a box_get_award_rsp message from a plain object. Also converts values to their respective internal types.
  37417. * @function fromObject
  37418. * @memberof game.box_get_award_rsp
  37419. * @static
  37420. * @param {Object.<string,*>} object Plain object
  37421. * @returns {game.box_get_award_rsp} box_get_award_rsp
  37422. */
  37423. box_get_award_rsp.fromObject = function fromObject(object) {
  37424. if (object instanceof $root.game.box_get_award_rsp)
  37425. return object;
  37426. let message = new $root.game.box_get_award_rsp();
  37427. if (object.errno != null)
  37428. if ($util.Long)
  37429. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  37430. else if (typeof object.errno === "string")
  37431. message.errno = parseInt(object.errno, 10);
  37432. else if (typeof object.errno === "number")
  37433. message.errno = object.errno;
  37434. else if (typeof object.errno === "object")
  37435. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  37436. if (object.type != null)
  37437. if ($util.Long)
  37438. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  37439. else if (typeof object.type === "string")
  37440. message.type = parseInt(object.type, 10);
  37441. else if (typeof object.type === "number")
  37442. message.type = object.type;
  37443. else if (typeof object.type === "object")
  37444. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  37445. return message;
  37446. };
  37447. /**
  37448. * Creates a plain object from a box_get_award_rsp message. Also converts values to other types if specified.
  37449. * @function toObject
  37450. * @memberof game.box_get_award_rsp
  37451. * @static
  37452. * @param {game.box_get_award_rsp} message box_get_award_rsp
  37453. * @param {$protobuf.IConversionOptions} [options] Conversion options
  37454. * @returns {Object.<string,*>} Plain object
  37455. */
  37456. box_get_award_rsp.toObject = function toObject(message, options) {
  37457. if (!options)
  37458. options = {};
  37459. let object = {};
  37460. if (options.defaults) {
  37461. if ($util.Long) {
  37462. let long = new $util.Long(0, 0, false);
  37463. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  37464. } else
  37465. object.errno = options.longs === String ? "0" : 0;
  37466. if ($util.Long) {
  37467. let long = new $util.Long(0, 0, false);
  37468. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  37469. } else
  37470. object.type = options.longs === String ? "0" : 0;
  37471. }
  37472. if (message.errno != null && message.hasOwnProperty("errno"))
  37473. if (typeof message.errno === "number")
  37474. object.errno = options.longs === String ? String(message.errno) : message.errno;
  37475. else
  37476. 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;
  37477. if (message.type != null && message.hasOwnProperty("type"))
  37478. if (typeof message.type === "number")
  37479. object.type = options.longs === String ? String(message.type) : message.type;
  37480. else
  37481. 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;
  37482. return object;
  37483. };
  37484. /**
  37485. * Converts this box_get_award_rsp to JSON.
  37486. * @function toJSON
  37487. * @memberof game.box_get_award_rsp
  37488. * @instance
  37489. * @returns {Object.<string,*>} JSON object
  37490. */
  37491. box_get_award_rsp.prototype.toJSON = function toJSON() {
  37492. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  37493. };
  37494. return box_get_award_rsp;
  37495. })();
  37496. game.first_recharge_data = (function() {
  37497. /**
  37498. * Properties of a first_recharge_data.
  37499. * @memberof game
  37500. * @interface Ifirst_recharge_data
  37501. * @property {number|Long|null} [moduleid] first_recharge_data moduleid
  37502. */
  37503. /**
  37504. * Constructs a new first_recharge_data.
  37505. * @memberof game
  37506. * @classdesc Represents a first_recharge_data.
  37507. * @implements Ifirst_recharge_data
  37508. * @constructor
  37509. * @param {game.Ifirst_recharge_data=} [properties] Properties to set
  37510. */
  37511. function first_recharge_data(properties) {
  37512. if (properties)
  37513. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  37514. if (properties[keys[i]] != null)
  37515. this[keys[i]] = properties[keys[i]];
  37516. }
  37517. /**
  37518. * first_recharge_data moduleid.
  37519. * @member {number|Long} moduleid
  37520. * @memberof game.first_recharge_data
  37521. * @instance
  37522. */
  37523. first_recharge_data.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  37524. /**
  37525. * Creates a new first_recharge_data instance using the specified properties.
  37526. * @function create
  37527. * @memberof game.first_recharge_data
  37528. * @static
  37529. * @param {game.Ifirst_recharge_data=} [properties] Properties to set
  37530. * @returns {game.first_recharge_data} first_recharge_data instance
  37531. */
  37532. first_recharge_data.create = function create(properties) {
  37533. return new first_recharge_data(properties);
  37534. };
  37535. /**
  37536. * Encodes the specified first_recharge_data message. Does not implicitly {@link game.first_recharge_data.verify|verify} messages.
  37537. * @function encode
  37538. * @memberof game.first_recharge_data
  37539. * @static
  37540. * @param {game.Ifirst_recharge_data} message first_recharge_data message or plain object to encode
  37541. * @param {$protobuf.Writer} [writer] Writer to encode to
  37542. * @returns {$protobuf.Writer} Writer
  37543. */
  37544. first_recharge_data.encode = function encode(message, writer) {
  37545. if (!writer)
  37546. writer = $Writer.create();
  37547. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  37548. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.moduleid);
  37549. return writer;
  37550. };
  37551. /**
  37552. * Encodes the specified first_recharge_data message, length delimited. Does not implicitly {@link game.first_recharge_data.verify|verify} messages.
  37553. * @function encodeDelimited
  37554. * @memberof game.first_recharge_data
  37555. * @static
  37556. * @param {game.Ifirst_recharge_data} message first_recharge_data message or plain object to encode
  37557. * @param {$protobuf.Writer} [writer] Writer to encode to
  37558. * @returns {$protobuf.Writer} Writer
  37559. */
  37560. first_recharge_data.encodeDelimited = function encodeDelimited(message, writer) {
  37561. return this.encode(message, writer).ldelim();
  37562. };
  37563. /**
  37564. * Decodes a first_recharge_data message from the specified reader or buffer.
  37565. * @function decode
  37566. * @memberof game.first_recharge_data
  37567. * @static
  37568. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  37569. * @param {number} [length] Message length if known beforehand
  37570. * @returns {game.first_recharge_data} first_recharge_data
  37571. * @throws {Error} If the payload is not a reader or valid buffer
  37572. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  37573. */
  37574. first_recharge_data.decode = function decode(reader, length) {
  37575. if (!(reader instanceof $Reader))
  37576. reader = $Reader.create(reader);
  37577. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.first_recharge_data();
  37578. while (reader.pos < end) {
  37579. let tag = reader.uint32();
  37580. switch (tag >>> 3) {
  37581. case 1:
  37582. message.moduleid = reader.int64();
  37583. break;
  37584. default:
  37585. reader.skipType(tag & 7);
  37586. break;
  37587. }
  37588. }
  37589. return message;
  37590. };
  37591. /**
  37592. * Decodes a first_recharge_data message from the specified reader or buffer, length delimited.
  37593. * @function decodeDelimited
  37594. * @memberof game.first_recharge_data
  37595. * @static
  37596. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  37597. * @returns {game.first_recharge_data} first_recharge_data
  37598. * @throws {Error} If the payload is not a reader or valid buffer
  37599. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  37600. */
  37601. first_recharge_data.decodeDelimited = function decodeDelimited(reader) {
  37602. if (!(reader instanceof $Reader))
  37603. reader = new $Reader(reader);
  37604. return this.decode(reader, reader.uint32());
  37605. };
  37606. /**
  37607. * Verifies a first_recharge_data message.
  37608. * @function verify
  37609. * @memberof game.first_recharge_data
  37610. * @static
  37611. * @param {Object.<string,*>} message Plain object to verify
  37612. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  37613. */
  37614. first_recharge_data.verify = function verify(message) {
  37615. if (typeof message !== "object" || message === null)
  37616. return "object expected";
  37617. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  37618. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  37619. return "moduleid: integer|Long expected";
  37620. return null;
  37621. };
  37622. /**
  37623. * Creates a first_recharge_data message from a plain object. Also converts values to their respective internal types.
  37624. * @function fromObject
  37625. * @memberof game.first_recharge_data
  37626. * @static
  37627. * @param {Object.<string,*>} object Plain object
  37628. * @returns {game.first_recharge_data} first_recharge_data
  37629. */
  37630. first_recharge_data.fromObject = function fromObject(object) {
  37631. if (object instanceof $root.game.first_recharge_data)
  37632. return object;
  37633. let message = new $root.game.first_recharge_data();
  37634. if (object.moduleid != null)
  37635. if ($util.Long)
  37636. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  37637. else if (typeof object.moduleid === "string")
  37638. message.moduleid = parseInt(object.moduleid, 10);
  37639. else if (typeof object.moduleid === "number")
  37640. message.moduleid = object.moduleid;
  37641. else if (typeof object.moduleid === "object")
  37642. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  37643. return message;
  37644. };
  37645. /**
  37646. * Creates a plain object from a first_recharge_data message. Also converts values to other types if specified.
  37647. * @function toObject
  37648. * @memberof game.first_recharge_data
  37649. * @static
  37650. * @param {game.first_recharge_data} message first_recharge_data
  37651. * @param {$protobuf.IConversionOptions} [options] Conversion options
  37652. * @returns {Object.<string,*>} Plain object
  37653. */
  37654. first_recharge_data.toObject = function toObject(message, options) {
  37655. if (!options)
  37656. options = {};
  37657. let object = {};
  37658. if (options.defaults)
  37659. if ($util.Long) {
  37660. let long = new $util.Long(0, 0, false);
  37661. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  37662. } else
  37663. object.moduleid = options.longs === String ? "0" : 0;
  37664. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  37665. if (typeof message.moduleid === "number")
  37666. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  37667. else
  37668. 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;
  37669. return object;
  37670. };
  37671. /**
  37672. * Converts this first_recharge_data to JSON.
  37673. * @function toJSON
  37674. * @memberof game.first_recharge_data
  37675. * @instance
  37676. * @returns {Object.<string,*>} JSON object
  37677. */
  37678. first_recharge_data.prototype.toJSON = function toJSON() {
  37679. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  37680. };
  37681. return first_recharge_data;
  37682. })();
  37683. game.first_recharge_data_rsp = (function() {
  37684. /**
  37685. * Properties of a first_recharge_data_rsp.
  37686. * @memberof game
  37687. * @interface Ifirst_recharge_data_rsp
  37688. * @property {number|Long|null} [errno] first_recharge_data_rsp errno
  37689. * @property {number|Long|null} [moduleid] first_recharge_data_rsp moduleid
  37690. * @property {boolean|null} [state] first_recharge_data_rsp state
  37691. * @property {number|Long|null} [day] first_recharge_data_rsp day
  37692. * @property {number|Long|null} [award] first_recharge_data_rsp award
  37693. */
  37694. /**
  37695. * Constructs a new first_recharge_data_rsp.
  37696. * @memberof game
  37697. * @classdesc Represents a first_recharge_data_rsp.
  37698. * @implements Ifirst_recharge_data_rsp
  37699. * @constructor
  37700. * @param {game.Ifirst_recharge_data_rsp=} [properties] Properties to set
  37701. */
  37702. function first_recharge_data_rsp(properties) {
  37703. if (properties)
  37704. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  37705. if (properties[keys[i]] != null)
  37706. this[keys[i]] = properties[keys[i]];
  37707. }
  37708. /**
  37709. * first_recharge_data_rsp errno.
  37710. * @member {number|Long} errno
  37711. * @memberof game.first_recharge_data_rsp
  37712. * @instance
  37713. */
  37714. first_recharge_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  37715. /**
  37716. * first_recharge_data_rsp moduleid.
  37717. * @member {number|Long} moduleid
  37718. * @memberof game.first_recharge_data_rsp
  37719. * @instance
  37720. */
  37721. first_recharge_data_rsp.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  37722. /**
  37723. * first_recharge_data_rsp state.
  37724. * @member {boolean} state
  37725. * @memberof game.first_recharge_data_rsp
  37726. * @instance
  37727. */
  37728. first_recharge_data_rsp.prototype.state = false;
  37729. /**
  37730. * first_recharge_data_rsp day.
  37731. * @member {number|Long} day
  37732. * @memberof game.first_recharge_data_rsp
  37733. * @instance
  37734. */
  37735. first_recharge_data_rsp.prototype.day = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  37736. /**
  37737. * first_recharge_data_rsp award.
  37738. * @member {number|Long} award
  37739. * @memberof game.first_recharge_data_rsp
  37740. * @instance
  37741. */
  37742. first_recharge_data_rsp.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  37743. /**
  37744. * Creates a new first_recharge_data_rsp instance using the specified properties.
  37745. * @function create
  37746. * @memberof game.first_recharge_data_rsp
  37747. * @static
  37748. * @param {game.Ifirst_recharge_data_rsp=} [properties] Properties to set
  37749. * @returns {game.first_recharge_data_rsp} first_recharge_data_rsp instance
  37750. */
  37751. first_recharge_data_rsp.create = function create(properties) {
  37752. return new first_recharge_data_rsp(properties);
  37753. };
  37754. /**
  37755. * Encodes the specified first_recharge_data_rsp message. Does not implicitly {@link game.first_recharge_data_rsp.verify|verify} messages.
  37756. * @function encode
  37757. * @memberof game.first_recharge_data_rsp
  37758. * @static
  37759. * @param {game.Ifirst_recharge_data_rsp} message first_recharge_data_rsp message or plain object to encode
  37760. * @param {$protobuf.Writer} [writer] Writer to encode to
  37761. * @returns {$protobuf.Writer} Writer
  37762. */
  37763. first_recharge_data_rsp.encode = function encode(message, writer) {
  37764. if (!writer)
  37765. writer = $Writer.create();
  37766. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  37767. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  37768. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  37769. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.moduleid);
  37770. if (message.state != null && Object.hasOwnProperty.call(message, "state"))
  37771. writer.uint32(/* id 3, wireType 0 =*/24).bool(message.state);
  37772. if (message.day != null && Object.hasOwnProperty.call(message, "day"))
  37773. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.day);
  37774. if (message.award != null && Object.hasOwnProperty.call(message, "award"))
  37775. writer.uint32(/* id 5, wireType 0 =*/40).int64(message.award);
  37776. return writer;
  37777. };
  37778. /**
  37779. * Encodes the specified first_recharge_data_rsp message, length delimited. Does not implicitly {@link game.first_recharge_data_rsp.verify|verify} messages.
  37780. * @function encodeDelimited
  37781. * @memberof game.first_recharge_data_rsp
  37782. * @static
  37783. * @param {game.Ifirst_recharge_data_rsp} message first_recharge_data_rsp message or plain object to encode
  37784. * @param {$protobuf.Writer} [writer] Writer to encode to
  37785. * @returns {$protobuf.Writer} Writer
  37786. */
  37787. first_recharge_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  37788. return this.encode(message, writer).ldelim();
  37789. };
  37790. /**
  37791. * Decodes a first_recharge_data_rsp message from the specified reader or buffer.
  37792. * @function decode
  37793. * @memberof game.first_recharge_data_rsp
  37794. * @static
  37795. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  37796. * @param {number} [length] Message length if known beforehand
  37797. * @returns {game.first_recharge_data_rsp} first_recharge_data_rsp
  37798. * @throws {Error} If the payload is not a reader or valid buffer
  37799. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  37800. */
  37801. first_recharge_data_rsp.decode = function decode(reader, length) {
  37802. if (!(reader instanceof $Reader))
  37803. reader = $Reader.create(reader);
  37804. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.first_recharge_data_rsp();
  37805. while (reader.pos < end) {
  37806. let tag = reader.uint32();
  37807. switch (tag >>> 3) {
  37808. case 1:
  37809. message.errno = reader.int64();
  37810. break;
  37811. case 2:
  37812. message.moduleid = reader.int64();
  37813. break;
  37814. case 3:
  37815. message.state = reader.bool();
  37816. break;
  37817. case 4:
  37818. message.day = reader.int64();
  37819. break;
  37820. case 5:
  37821. message.award = reader.int64();
  37822. break;
  37823. default:
  37824. reader.skipType(tag & 7);
  37825. break;
  37826. }
  37827. }
  37828. return message;
  37829. };
  37830. /**
  37831. * Decodes a first_recharge_data_rsp message from the specified reader or buffer, length delimited.
  37832. * @function decodeDelimited
  37833. * @memberof game.first_recharge_data_rsp
  37834. * @static
  37835. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  37836. * @returns {game.first_recharge_data_rsp} first_recharge_data_rsp
  37837. * @throws {Error} If the payload is not a reader or valid buffer
  37838. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  37839. */
  37840. first_recharge_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  37841. if (!(reader instanceof $Reader))
  37842. reader = new $Reader(reader);
  37843. return this.decode(reader, reader.uint32());
  37844. };
  37845. /**
  37846. * Verifies a first_recharge_data_rsp message.
  37847. * @function verify
  37848. * @memberof game.first_recharge_data_rsp
  37849. * @static
  37850. * @param {Object.<string,*>} message Plain object to verify
  37851. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  37852. */
  37853. first_recharge_data_rsp.verify = function verify(message) {
  37854. if (typeof message !== "object" || message === null)
  37855. return "object expected";
  37856. if (message.errno != null && message.hasOwnProperty("errno"))
  37857. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  37858. return "errno: integer|Long expected";
  37859. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  37860. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  37861. return "moduleid: integer|Long expected";
  37862. if (message.state != null && message.hasOwnProperty("state"))
  37863. if (typeof message.state !== "boolean")
  37864. return "state: boolean expected";
  37865. if (message.day != null && message.hasOwnProperty("day"))
  37866. if (!$util.isInteger(message.day) && !(message.day && $util.isInteger(message.day.low) && $util.isInteger(message.day.high)))
  37867. return "day: integer|Long expected";
  37868. if (message.award != null && message.hasOwnProperty("award"))
  37869. if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
  37870. return "award: integer|Long expected";
  37871. return null;
  37872. };
  37873. /**
  37874. * Creates a first_recharge_data_rsp message from a plain object. Also converts values to their respective internal types.
  37875. * @function fromObject
  37876. * @memberof game.first_recharge_data_rsp
  37877. * @static
  37878. * @param {Object.<string,*>} object Plain object
  37879. * @returns {game.first_recharge_data_rsp} first_recharge_data_rsp
  37880. */
  37881. first_recharge_data_rsp.fromObject = function fromObject(object) {
  37882. if (object instanceof $root.game.first_recharge_data_rsp)
  37883. return object;
  37884. let message = new $root.game.first_recharge_data_rsp();
  37885. if (object.errno != null)
  37886. if ($util.Long)
  37887. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  37888. else if (typeof object.errno === "string")
  37889. message.errno = parseInt(object.errno, 10);
  37890. else if (typeof object.errno === "number")
  37891. message.errno = object.errno;
  37892. else if (typeof object.errno === "object")
  37893. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  37894. if (object.moduleid != null)
  37895. if ($util.Long)
  37896. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  37897. else if (typeof object.moduleid === "string")
  37898. message.moduleid = parseInt(object.moduleid, 10);
  37899. else if (typeof object.moduleid === "number")
  37900. message.moduleid = object.moduleid;
  37901. else if (typeof object.moduleid === "object")
  37902. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  37903. if (object.state != null)
  37904. message.state = Boolean(object.state);
  37905. if (object.day != null)
  37906. if ($util.Long)
  37907. (message.day = $util.Long.fromValue(object.day)).unsigned = false;
  37908. else if (typeof object.day === "string")
  37909. message.day = parseInt(object.day, 10);
  37910. else if (typeof object.day === "number")
  37911. message.day = object.day;
  37912. else if (typeof object.day === "object")
  37913. message.day = new $util.LongBits(object.day.low >>> 0, object.day.high >>> 0).toNumber();
  37914. if (object.award != null)
  37915. if ($util.Long)
  37916. (message.award = $util.Long.fromValue(object.award)).unsigned = false;
  37917. else if (typeof object.award === "string")
  37918. message.award = parseInt(object.award, 10);
  37919. else if (typeof object.award === "number")
  37920. message.award = object.award;
  37921. else if (typeof object.award === "object")
  37922. message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
  37923. return message;
  37924. };
  37925. /**
  37926. * Creates a plain object from a first_recharge_data_rsp message. Also converts values to other types if specified.
  37927. * @function toObject
  37928. * @memberof game.first_recharge_data_rsp
  37929. * @static
  37930. * @param {game.first_recharge_data_rsp} message first_recharge_data_rsp
  37931. * @param {$protobuf.IConversionOptions} [options] Conversion options
  37932. * @returns {Object.<string,*>} Plain object
  37933. */
  37934. first_recharge_data_rsp.toObject = function toObject(message, options) {
  37935. if (!options)
  37936. options = {};
  37937. let object = {};
  37938. if (options.defaults) {
  37939. if ($util.Long) {
  37940. let long = new $util.Long(0, 0, false);
  37941. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  37942. } else
  37943. object.errno = options.longs === String ? "0" : 0;
  37944. if ($util.Long) {
  37945. let long = new $util.Long(0, 0, false);
  37946. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  37947. } else
  37948. object.moduleid = options.longs === String ? "0" : 0;
  37949. object.state = false;
  37950. if ($util.Long) {
  37951. let long = new $util.Long(0, 0, false);
  37952. object.day = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  37953. } else
  37954. object.day = options.longs === String ? "0" : 0;
  37955. if ($util.Long) {
  37956. let long = new $util.Long(0, 0, false);
  37957. object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  37958. } else
  37959. object.award = options.longs === String ? "0" : 0;
  37960. }
  37961. if (message.errno != null && message.hasOwnProperty("errno"))
  37962. if (typeof message.errno === "number")
  37963. object.errno = options.longs === String ? String(message.errno) : message.errno;
  37964. else
  37965. 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;
  37966. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  37967. if (typeof message.moduleid === "number")
  37968. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  37969. else
  37970. 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;
  37971. if (message.state != null && message.hasOwnProperty("state"))
  37972. object.state = message.state;
  37973. if (message.day != null && message.hasOwnProperty("day"))
  37974. if (typeof message.day === "number")
  37975. object.day = options.longs === String ? String(message.day) : message.day;
  37976. else
  37977. 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;
  37978. if (message.award != null && message.hasOwnProperty("award"))
  37979. if (typeof message.award === "number")
  37980. object.award = options.longs === String ? String(message.award) : message.award;
  37981. else
  37982. 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;
  37983. return object;
  37984. };
  37985. /**
  37986. * Converts this first_recharge_data_rsp to JSON.
  37987. * @function toJSON
  37988. * @memberof game.first_recharge_data_rsp
  37989. * @instance
  37990. * @returns {Object.<string,*>} JSON object
  37991. */
  37992. first_recharge_data_rsp.prototype.toJSON = function toJSON() {
  37993. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  37994. };
  37995. return first_recharge_data_rsp;
  37996. })();
  37997. game.first_recharge_buy = (function() {
  37998. /**
  37999. * Properties of a first_recharge_buy.
  38000. * @memberof game
  38001. * @interface Ifirst_recharge_buy
  38002. * @property {number|Long|null} [moduleid] first_recharge_buy moduleid
  38003. */
  38004. /**
  38005. * Constructs a new first_recharge_buy.
  38006. * @memberof game
  38007. * @classdesc Represents a first_recharge_buy.
  38008. * @implements Ifirst_recharge_buy
  38009. * @constructor
  38010. * @param {game.Ifirst_recharge_buy=} [properties] Properties to set
  38011. */
  38012. function first_recharge_buy(properties) {
  38013. if (properties)
  38014. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  38015. if (properties[keys[i]] != null)
  38016. this[keys[i]] = properties[keys[i]];
  38017. }
  38018. /**
  38019. * first_recharge_buy moduleid.
  38020. * @member {number|Long} moduleid
  38021. * @memberof game.first_recharge_buy
  38022. * @instance
  38023. */
  38024. first_recharge_buy.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  38025. /**
  38026. * Creates a new first_recharge_buy instance using the specified properties.
  38027. * @function create
  38028. * @memberof game.first_recharge_buy
  38029. * @static
  38030. * @param {game.Ifirst_recharge_buy=} [properties] Properties to set
  38031. * @returns {game.first_recharge_buy} first_recharge_buy instance
  38032. */
  38033. first_recharge_buy.create = function create(properties) {
  38034. return new first_recharge_buy(properties);
  38035. };
  38036. /**
  38037. * Encodes the specified first_recharge_buy message. Does not implicitly {@link game.first_recharge_buy.verify|verify} messages.
  38038. * @function encode
  38039. * @memberof game.first_recharge_buy
  38040. * @static
  38041. * @param {game.Ifirst_recharge_buy} message first_recharge_buy message or plain object to encode
  38042. * @param {$protobuf.Writer} [writer] Writer to encode to
  38043. * @returns {$protobuf.Writer} Writer
  38044. */
  38045. first_recharge_buy.encode = function encode(message, writer) {
  38046. if (!writer)
  38047. writer = $Writer.create();
  38048. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  38049. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.moduleid);
  38050. return writer;
  38051. };
  38052. /**
  38053. * Encodes the specified first_recharge_buy message, length delimited. Does not implicitly {@link game.first_recharge_buy.verify|verify} messages.
  38054. * @function encodeDelimited
  38055. * @memberof game.first_recharge_buy
  38056. * @static
  38057. * @param {game.Ifirst_recharge_buy} message first_recharge_buy message or plain object to encode
  38058. * @param {$protobuf.Writer} [writer] Writer to encode to
  38059. * @returns {$protobuf.Writer} Writer
  38060. */
  38061. first_recharge_buy.encodeDelimited = function encodeDelimited(message, writer) {
  38062. return this.encode(message, writer).ldelim();
  38063. };
  38064. /**
  38065. * Decodes a first_recharge_buy message from the specified reader or buffer.
  38066. * @function decode
  38067. * @memberof game.first_recharge_buy
  38068. * @static
  38069. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  38070. * @param {number} [length] Message length if known beforehand
  38071. * @returns {game.first_recharge_buy} first_recharge_buy
  38072. * @throws {Error} If the payload is not a reader or valid buffer
  38073. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  38074. */
  38075. first_recharge_buy.decode = function decode(reader, length) {
  38076. if (!(reader instanceof $Reader))
  38077. reader = $Reader.create(reader);
  38078. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.first_recharge_buy();
  38079. while (reader.pos < end) {
  38080. let tag = reader.uint32();
  38081. switch (tag >>> 3) {
  38082. case 1:
  38083. message.moduleid = reader.int64();
  38084. break;
  38085. default:
  38086. reader.skipType(tag & 7);
  38087. break;
  38088. }
  38089. }
  38090. return message;
  38091. };
  38092. /**
  38093. * Decodes a first_recharge_buy message from the specified reader or buffer, length delimited.
  38094. * @function decodeDelimited
  38095. * @memberof game.first_recharge_buy
  38096. * @static
  38097. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  38098. * @returns {game.first_recharge_buy} first_recharge_buy
  38099. * @throws {Error} If the payload is not a reader or valid buffer
  38100. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  38101. */
  38102. first_recharge_buy.decodeDelimited = function decodeDelimited(reader) {
  38103. if (!(reader instanceof $Reader))
  38104. reader = new $Reader(reader);
  38105. return this.decode(reader, reader.uint32());
  38106. };
  38107. /**
  38108. * Verifies a first_recharge_buy message.
  38109. * @function verify
  38110. * @memberof game.first_recharge_buy
  38111. * @static
  38112. * @param {Object.<string,*>} message Plain object to verify
  38113. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  38114. */
  38115. first_recharge_buy.verify = function verify(message) {
  38116. if (typeof message !== "object" || message === null)
  38117. return "object expected";
  38118. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  38119. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  38120. return "moduleid: integer|Long expected";
  38121. return null;
  38122. };
  38123. /**
  38124. * Creates a first_recharge_buy message from a plain object. Also converts values to their respective internal types.
  38125. * @function fromObject
  38126. * @memberof game.first_recharge_buy
  38127. * @static
  38128. * @param {Object.<string,*>} object Plain object
  38129. * @returns {game.first_recharge_buy} first_recharge_buy
  38130. */
  38131. first_recharge_buy.fromObject = function fromObject(object) {
  38132. if (object instanceof $root.game.first_recharge_buy)
  38133. return object;
  38134. let message = new $root.game.first_recharge_buy();
  38135. if (object.moduleid != null)
  38136. if ($util.Long)
  38137. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  38138. else if (typeof object.moduleid === "string")
  38139. message.moduleid = parseInt(object.moduleid, 10);
  38140. else if (typeof object.moduleid === "number")
  38141. message.moduleid = object.moduleid;
  38142. else if (typeof object.moduleid === "object")
  38143. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  38144. return message;
  38145. };
  38146. /**
  38147. * Creates a plain object from a first_recharge_buy message. Also converts values to other types if specified.
  38148. * @function toObject
  38149. * @memberof game.first_recharge_buy
  38150. * @static
  38151. * @param {game.first_recharge_buy} message first_recharge_buy
  38152. * @param {$protobuf.IConversionOptions} [options] Conversion options
  38153. * @returns {Object.<string,*>} Plain object
  38154. */
  38155. first_recharge_buy.toObject = function toObject(message, options) {
  38156. if (!options)
  38157. options = {};
  38158. let object = {};
  38159. if (options.defaults)
  38160. if ($util.Long) {
  38161. let long = new $util.Long(0, 0, false);
  38162. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  38163. } else
  38164. object.moduleid = options.longs === String ? "0" : 0;
  38165. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  38166. if (typeof message.moduleid === "number")
  38167. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  38168. else
  38169. 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;
  38170. return object;
  38171. };
  38172. /**
  38173. * Converts this first_recharge_buy to JSON.
  38174. * @function toJSON
  38175. * @memberof game.first_recharge_buy
  38176. * @instance
  38177. * @returns {Object.<string,*>} JSON object
  38178. */
  38179. first_recharge_buy.prototype.toJSON = function toJSON() {
  38180. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  38181. };
  38182. return first_recharge_buy;
  38183. })();
  38184. game.first_recharge_buy_rsp = (function() {
  38185. /**
  38186. * Properties of a first_recharge_buy_rsp.
  38187. * @memberof game
  38188. * @interface Ifirst_recharge_buy_rsp
  38189. * @property {number|Long|null} [errno] first_recharge_buy_rsp errno
  38190. * @property {number|Long|null} [moduleid] first_recharge_buy_rsp moduleid
  38191. */
  38192. /**
  38193. * Constructs a new first_recharge_buy_rsp.
  38194. * @memberof game
  38195. * @classdesc Represents a first_recharge_buy_rsp.
  38196. * @implements Ifirst_recharge_buy_rsp
  38197. * @constructor
  38198. * @param {game.Ifirst_recharge_buy_rsp=} [properties] Properties to set
  38199. */
  38200. function first_recharge_buy_rsp(properties) {
  38201. if (properties)
  38202. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  38203. if (properties[keys[i]] != null)
  38204. this[keys[i]] = properties[keys[i]];
  38205. }
  38206. /**
  38207. * first_recharge_buy_rsp errno.
  38208. * @member {number|Long} errno
  38209. * @memberof game.first_recharge_buy_rsp
  38210. * @instance
  38211. */
  38212. first_recharge_buy_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  38213. /**
  38214. * first_recharge_buy_rsp moduleid.
  38215. * @member {number|Long} moduleid
  38216. * @memberof game.first_recharge_buy_rsp
  38217. * @instance
  38218. */
  38219. first_recharge_buy_rsp.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  38220. /**
  38221. * Creates a new first_recharge_buy_rsp instance using the specified properties.
  38222. * @function create
  38223. * @memberof game.first_recharge_buy_rsp
  38224. * @static
  38225. * @param {game.Ifirst_recharge_buy_rsp=} [properties] Properties to set
  38226. * @returns {game.first_recharge_buy_rsp} first_recharge_buy_rsp instance
  38227. */
  38228. first_recharge_buy_rsp.create = function create(properties) {
  38229. return new first_recharge_buy_rsp(properties);
  38230. };
  38231. /**
  38232. * Encodes the specified first_recharge_buy_rsp message. Does not implicitly {@link game.first_recharge_buy_rsp.verify|verify} messages.
  38233. * @function encode
  38234. * @memberof game.first_recharge_buy_rsp
  38235. * @static
  38236. * @param {game.Ifirst_recharge_buy_rsp} message first_recharge_buy_rsp message or plain object to encode
  38237. * @param {$protobuf.Writer} [writer] Writer to encode to
  38238. * @returns {$protobuf.Writer} Writer
  38239. */
  38240. first_recharge_buy_rsp.encode = function encode(message, writer) {
  38241. if (!writer)
  38242. writer = $Writer.create();
  38243. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  38244. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  38245. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  38246. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.moduleid);
  38247. return writer;
  38248. };
  38249. /**
  38250. * Encodes the specified first_recharge_buy_rsp message, length delimited. Does not implicitly {@link game.first_recharge_buy_rsp.verify|verify} messages.
  38251. * @function encodeDelimited
  38252. * @memberof game.first_recharge_buy_rsp
  38253. * @static
  38254. * @param {game.Ifirst_recharge_buy_rsp} message first_recharge_buy_rsp message or plain object to encode
  38255. * @param {$protobuf.Writer} [writer] Writer to encode to
  38256. * @returns {$protobuf.Writer} Writer
  38257. */
  38258. first_recharge_buy_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  38259. return this.encode(message, writer).ldelim();
  38260. };
  38261. /**
  38262. * Decodes a first_recharge_buy_rsp message from the specified reader or buffer.
  38263. * @function decode
  38264. * @memberof game.first_recharge_buy_rsp
  38265. * @static
  38266. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  38267. * @param {number} [length] Message length if known beforehand
  38268. * @returns {game.first_recharge_buy_rsp} first_recharge_buy_rsp
  38269. * @throws {Error} If the payload is not a reader or valid buffer
  38270. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  38271. */
  38272. first_recharge_buy_rsp.decode = function decode(reader, length) {
  38273. if (!(reader instanceof $Reader))
  38274. reader = $Reader.create(reader);
  38275. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.first_recharge_buy_rsp();
  38276. while (reader.pos < end) {
  38277. let tag = reader.uint32();
  38278. switch (tag >>> 3) {
  38279. case 1:
  38280. message.errno = reader.int64();
  38281. break;
  38282. case 2:
  38283. message.moduleid = reader.int64();
  38284. break;
  38285. default:
  38286. reader.skipType(tag & 7);
  38287. break;
  38288. }
  38289. }
  38290. return message;
  38291. };
  38292. /**
  38293. * Decodes a first_recharge_buy_rsp message from the specified reader or buffer, length delimited.
  38294. * @function decodeDelimited
  38295. * @memberof game.first_recharge_buy_rsp
  38296. * @static
  38297. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  38298. * @returns {game.first_recharge_buy_rsp} first_recharge_buy_rsp
  38299. * @throws {Error} If the payload is not a reader or valid buffer
  38300. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  38301. */
  38302. first_recharge_buy_rsp.decodeDelimited = function decodeDelimited(reader) {
  38303. if (!(reader instanceof $Reader))
  38304. reader = new $Reader(reader);
  38305. return this.decode(reader, reader.uint32());
  38306. };
  38307. /**
  38308. * Verifies a first_recharge_buy_rsp message.
  38309. * @function verify
  38310. * @memberof game.first_recharge_buy_rsp
  38311. * @static
  38312. * @param {Object.<string,*>} message Plain object to verify
  38313. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  38314. */
  38315. first_recharge_buy_rsp.verify = function verify(message) {
  38316. if (typeof message !== "object" || message === null)
  38317. return "object expected";
  38318. if (message.errno != null && message.hasOwnProperty("errno"))
  38319. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  38320. return "errno: integer|Long expected";
  38321. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  38322. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  38323. return "moduleid: integer|Long expected";
  38324. return null;
  38325. };
  38326. /**
  38327. * Creates a first_recharge_buy_rsp message from a plain object. Also converts values to their respective internal types.
  38328. * @function fromObject
  38329. * @memberof game.first_recharge_buy_rsp
  38330. * @static
  38331. * @param {Object.<string,*>} object Plain object
  38332. * @returns {game.first_recharge_buy_rsp} first_recharge_buy_rsp
  38333. */
  38334. first_recharge_buy_rsp.fromObject = function fromObject(object) {
  38335. if (object instanceof $root.game.first_recharge_buy_rsp)
  38336. return object;
  38337. let message = new $root.game.first_recharge_buy_rsp();
  38338. if (object.errno != null)
  38339. if ($util.Long)
  38340. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  38341. else if (typeof object.errno === "string")
  38342. message.errno = parseInt(object.errno, 10);
  38343. else if (typeof object.errno === "number")
  38344. message.errno = object.errno;
  38345. else if (typeof object.errno === "object")
  38346. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  38347. if (object.moduleid != null)
  38348. if ($util.Long)
  38349. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  38350. else if (typeof object.moduleid === "string")
  38351. message.moduleid = parseInt(object.moduleid, 10);
  38352. else if (typeof object.moduleid === "number")
  38353. message.moduleid = object.moduleid;
  38354. else if (typeof object.moduleid === "object")
  38355. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  38356. return message;
  38357. };
  38358. /**
  38359. * Creates a plain object from a first_recharge_buy_rsp message. Also converts values to other types if specified.
  38360. * @function toObject
  38361. * @memberof game.first_recharge_buy_rsp
  38362. * @static
  38363. * @param {game.first_recharge_buy_rsp} message first_recharge_buy_rsp
  38364. * @param {$protobuf.IConversionOptions} [options] Conversion options
  38365. * @returns {Object.<string,*>} Plain object
  38366. */
  38367. first_recharge_buy_rsp.toObject = function toObject(message, options) {
  38368. if (!options)
  38369. options = {};
  38370. let object = {};
  38371. if (options.defaults) {
  38372. if ($util.Long) {
  38373. let long = new $util.Long(0, 0, false);
  38374. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  38375. } else
  38376. object.errno = options.longs === String ? "0" : 0;
  38377. if ($util.Long) {
  38378. let long = new $util.Long(0, 0, false);
  38379. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  38380. } else
  38381. object.moduleid = options.longs === String ? "0" : 0;
  38382. }
  38383. if (message.errno != null && message.hasOwnProperty("errno"))
  38384. if (typeof message.errno === "number")
  38385. object.errno = options.longs === String ? String(message.errno) : message.errno;
  38386. else
  38387. 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;
  38388. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  38389. if (typeof message.moduleid === "number")
  38390. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  38391. else
  38392. 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;
  38393. return object;
  38394. };
  38395. /**
  38396. * Converts this first_recharge_buy_rsp to JSON.
  38397. * @function toJSON
  38398. * @memberof game.first_recharge_buy_rsp
  38399. * @instance
  38400. * @returns {Object.<string,*>} JSON object
  38401. */
  38402. first_recharge_buy_rsp.prototype.toJSON = function toJSON() {
  38403. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  38404. };
  38405. return first_recharge_buy_rsp;
  38406. })();
  38407. game.first_recharge_award = (function() {
  38408. /**
  38409. * Properties of a first_recharge_award.
  38410. * @memberof game
  38411. * @interface Ifirst_recharge_award
  38412. * @property {number|Long|null} [moduleid] first_recharge_award moduleid
  38413. * @property {number|Long|null} [day] first_recharge_award day
  38414. */
  38415. /**
  38416. * Constructs a new first_recharge_award.
  38417. * @memberof game
  38418. * @classdesc Represents a first_recharge_award.
  38419. * @implements Ifirst_recharge_award
  38420. * @constructor
  38421. * @param {game.Ifirst_recharge_award=} [properties] Properties to set
  38422. */
  38423. function first_recharge_award(properties) {
  38424. if (properties)
  38425. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  38426. if (properties[keys[i]] != null)
  38427. this[keys[i]] = properties[keys[i]];
  38428. }
  38429. /**
  38430. * first_recharge_award moduleid.
  38431. * @member {number|Long} moduleid
  38432. * @memberof game.first_recharge_award
  38433. * @instance
  38434. */
  38435. first_recharge_award.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  38436. /**
  38437. * first_recharge_award day.
  38438. * @member {number|Long} day
  38439. * @memberof game.first_recharge_award
  38440. * @instance
  38441. */
  38442. first_recharge_award.prototype.day = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  38443. /**
  38444. * Creates a new first_recharge_award instance using the specified properties.
  38445. * @function create
  38446. * @memberof game.first_recharge_award
  38447. * @static
  38448. * @param {game.Ifirst_recharge_award=} [properties] Properties to set
  38449. * @returns {game.first_recharge_award} first_recharge_award instance
  38450. */
  38451. first_recharge_award.create = function create(properties) {
  38452. return new first_recharge_award(properties);
  38453. };
  38454. /**
  38455. * Encodes the specified first_recharge_award message. Does not implicitly {@link game.first_recharge_award.verify|verify} messages.
  38456. * @function encode
  38457. * @memberof game.first_recharge_award
  38458. * @static
  38459. * @param {game.Ifirst_recharge_award} message first_recharge_award message or plain object to encode
  38460. * @param {$protobuf.Writer} [writer] Writer to encode to
  38461. * @returns {$protobuf.Writer} Writer
  38462. */
  38463. first_recharge_award.encode = function encode(message, writer) {
  38464. if (!writer)
  38465. writer = $Writer.create();
  38466. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  38467. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.moduleid);
  38468. if (message.day != null && Object.hasOwnProperty.call(message, "day"))
  38469. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.day);
  38470. return writer;
  38471. };
  38472. /**
  38473. * Encodes the specified first_recharge_award message, length delimited. Does not implicitly {@link game.first_recharge_award.verify|verify} messages.
  38474. * @function encodeDelimited
  38475. * @memberof game.first_recharge_award
  38476. * @static
  38477. * @param {game.Ifirst_recharge_award} message first_recharge_award message or plain object to encode
  38478. * @param {$protobuf.Writer} [writer] Writer to encode to
  38479. * @returns {$protobuf.Writer} Writer
  38480. */
  38481. first_recharge_award.encodeDelimited = function encodeDelimited(message, writer) {
  38482. return this.encode(message, writer).ldelim();
  38483. };
  38484. /**
  38485. * Decodes a first_recharge_award message from the specified reader or buffer.
  38486. * @function decode
  38487. * @memberof game.first_recharge_award
  38488. * @static
  38489. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  38490. * @param {number} [length] Message length if known beforehand
  38491. * @returns {game.first_recharge_award} first_recharge_award
  38492. * @throws {Error} If the payload is not a reader or valid buffer
  38493. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  38494. */
  38495. first_recharge_award.decode = function decode(reader, length) {
  38496. if (!(reader instanceof $Reader))
  38497. reader = $Reader.create(reader);
  38498. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.first_recharge_award();
  38499. while (reader.pos < end) {
  38500. let tag = reader.uint32();
  38501. switch (tag >>> 3) {
  38502. case 1:
  38503. message.moduleid = reader.int64();
  38504. break;
  38505. case 2:
  38506. message.day = reader.int64();
  38507. break;
  38508. default:
  38509. reader.skipType(tag & 7);
  38510. break;
  38511. }
  38512. }
  38513. return message;
  38514. };
  38515. /**
  38516. * Decodes a first_recharge_award message from the specified reader or buffer, length delimited.
  38517. * @function decodeDelimited
  38518. * @memberof game.first_recharge_award
  38519. * @static
  38520. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  38521. * @returns {game.first_recharge_award} first_recharge_award
  38522. * @throws {Error} If the payload is not a reader or valid buffer
  38523. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  38524. */
  38525. first_recharge_award.decodeDelimited = function decodeDelimited(reader) {
  38526. if (!(reader instanceof $Reader))
  38527. reader = new $Reader(reader);
  38528. return this.decode(reader, reader.uint32());
  38529. };
  38530. /**
  38531. * Verifies a first_recharge_award message.
  38532. * @function verify
  38533. * @memberof game.first_recharge_award
  38534. * @static
  38535. * @param {Object.<string,*>} message Plain object to verify
  38536. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  38537. */
  38538. first_recharge_award.verify = function verify(message) {
  38539. if (typeof message !== "object" || message === null)
  38540. return "object expected";
  38541. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  38542. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  38543. return "moduleid: integer|Long expected";
  38544. if (message.day != null && message.hasOwnProperty("day"))
  38545. if (!$util.isInteger(message.day) && !(message.day && $util.isInteger(message.day.low) && $util.isInteger(message.day.high)))
  38546. return "day: integer|Long expected";
  38547. return null;
  38548. };
  38549. /**
  38550. * Creates a first_recharge_award message from a plain object. Also converts values to their respective internal types.
  38551. * @function fromObject
  38552. * @memberof game.first_recharge_award
  38553. * @static
  38554. * @param {Object.<string,*>} object Plain object
  38555. * @returns {game.first_recharge_award} first_recharge_award
  38556. */
  38557. first_recharge_award.fromObject = function fromObject(object) {
  38558. if (object instanceof $root.game.first_recharge_award)
  38559. return object;
  38560. let message = new $root.game.first_recharge_award();
  38561. if (object.moduleid != null)
  38562. if ($util.Long)
  38563. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  38564. else if (typeof object.moduleid === "string")
  38565. message.moduleid = parseInt(object.moduleid, 10);
  38566. else if (typeof object.moduleid === "number")
  38567. message.moduleid = object.moduleid;
  38568. else if (typeof object.moduleid === "object")
  38569. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  38570. if (object.day != null)
  38571. if ($util.Long)
  38572. (message.day = $util.Long.fromValue(object.day)).unsigned = false;
  38573. else if (typeof object.day === "string")
  38574. message.day = parseInt(object.day, 10);
  38575. else if (typeof object.day === "number")
  38576. message.day = object.day;
  38577. else if (typeof object.day === "object")
  38578. message.day = new $util.LongBits(object.day.low >>> 0, object.day.high >>> 0).toNumber();
  38579. return message;
  38580. };
  38581. /**
  38582. * Creates a plain object from a first_recharge_award message. Also converts values to other types if specified.
  38583. * @function toObject
  38584. * @memberof game.first_recharge_award
  38585. * @static
  38586. * @param {game.first_recharge_award} message first_recharge_award
  38587. * @param {$protobuf.IConversionOptions} [options] Conversion options
  38588. * @returns {Object.<string,*>} Plain object
  38589. */
  38590. first_recharge_award.toObject = function toObject(message, options) {
  38591. if (!options)
  38592. options = {};
  38593. let object = {};
  38594. if (options.defaults) {
  38595. if ($util.Long) {
  38596. let long = new $util.Long(0, 0, false);
  38597. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  38598. } else
  38599. object.moduleid = options.longs === String ? "0" : 0;
  38600. if ($util.Long) {
  38601. let long = new $util.Long(0, 0, false);
  38602. object.day = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  38603. } else
  38604. object.day = options.longs === String ? "0" : 0;
  38605. }
  38606. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  38607. if (typeof message.moduleid === "number")
  38608. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  38609. else
  38610. 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;
  38611. if (message.day != null && message.hasOwnProperty("day"))
  38612. if (typeof message.day === "number")
  38613. object.day = options.longs === String ? String(message.day) : message.day;
  38614. else
  38615. 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;
  38616. return object;
  38617. };
  38618. /**
  38619. * Converts this first_recharge_award to JSON.
  38620. * @function toJSON
  38621. * @memberof game.first_recharge_award
  38622. * @instance
  38623. * @returns {Object.<string,*>} JSON object
  38624. */
  38625. first_recharge_award.prototype.toJSON = function toJSON() {
  38626. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  38627. };
  38628. return first_recharge_award;
  38629. })();
  38630. game.first_recharge_award_rsp = (function() {
  38631. /**
  38632. * Properties of a first_recharge_award_rsp.
  38633. * @memberof game
  38634. * @interface Ifirst_recharge_award_rsp
  38635. * @property {number|Long|null} [errno] first_recharge_award_rsp errno
  38636. * @property {number|Long|null} [moduleid] first_recharge_award_rsp moduleid
  38637. * @property {number|Long|null} [award] first_recharge_award_rsp award
  38638. */
  38639. /**
  38640. * Constructs a new first_recharge_award_rsp.
  38641. * @memberof game
  38642. * @classdesc Represents a first_recharge_award_rsp.
  38643. * @implements Ifirst_recharge_award_rsp
  38644. * @constructor
  38645. * @param {game.Ifirst_recharge_award_rsp=} [properties] Properties to set
  38646. */
  38647. function first_recharge_award_rsp(properties) {
  38648. if (properties)
  38649. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  38650. if (properties[keys[i]] != null)
  38651. this[keys[i]] = properties[keys[i]];
  38652. }
  38653. /**
  38654. * first_recharge_award_rsp errno.
  38655. * @member {number|Long} errno
  38656. * @memberof game.first_recharge_award_rsp
  38657. * @instance
  38658. */
  38659. first_recharge_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  38660. /**
  38661. * first_recharge_award_rsp moduleid.
  38662. * @member {number|Long} moduleid
  38663. * @memberof game.first_recharge_award_rsp
  38664. * @instance
  38665. */
  38666. first_recharge_award_rsp.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  38667. /**
  38668. * first_recharge_award_rsp award.
  38669. * @member {number|Long} award
  38670. * @memberof game.first_recharge_award_rsp
  38671. * @instance
  38672. */
  38673. first_recharge_award_rsp.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  38674. /**
  38675. * Creates a new first_recharge_award_rsp instance using the specified properties.
  38676. * @function create
  38677. * @memberof game.first_recharge_award_rsp
  38678. * @static
  38679. * @param {game.Ifirst_recharge_award_rsp=} [properties] Properties to set
  38680. * @returns {game.first_recharge_award_rsp} first_recharge_award_rsp instance
  38681. */
  38682. first_recharge_award_rsp.create = function create(properties) {
  38683. return new first_recharge_award_rsp(properties);
  38684. };
  38685. /**
  38686. * Encodes the specified first_recharge_award_rsp message. Does not implicitly {@link game.first_recharge_award_rsp.verify|verify} messages.
  38687. * @function encode
  38688. * @memberof game.first_recharge_award_rsp
  38689. * @static
  38690. * @param {game.Ifirst_recharge_award_rsp} message first_recharge_award_rsp message or plain object to encode
  38691. * @param {$protobuf.Writer} [writer] Writer to encode to
  38692. * @returns {$protobuf.Writer} Writer
  38693. */
  38694. first_recharge_award_rsp.encode = function encode(message, writer) {
  38695. if (!writer)
  38696. writer = $Writer.create();
  38697. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  38698. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  38699. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  38700. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.moduleid);
  38701. if (message.award != null && Object.hasOwnProperty.call(message, "award"))
  38702. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.award);
  38703. return writer;
  38704. };
  38705. /**
  38706. * Encodes the specified first_recharge_award_rsp message, length delimited. Does not implicitly {@link game.first_recharge_award_rsp.verify|verify} messages.
  38707. * @function encodeDelimited
  38708. * @memberof game.first_recharge_award_rsp
  38709. * @static
  38710. * @param {game.Ifirst_recharge_award_rsp} message first_recharge_award_rsp message or plain object to encode
  38711. * @param {$protobuf.Writer} [writer] Writer to encode to
  38712. * @returns {$protobuf.Writer} Writer
  38713. */
  38714. first_recharge_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  38715. return this.encode(message, writer).ldelim();
  38716. };
  38717. /**
  38718. * Decodes a first_recharge_award_rsp message from the specified reader or buffer.
  38719. * @function decode
  38720. * @memberof game.first_recharge_award_rsp
  38721. * @static
  38722. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  38723. * @param {number} [length] Message length if known beforehand
  38724. * @returns {game.first_recharge_award_rsp} first_recharge_award_rsp
  38725. * @throws {Error} If the payload is not a reader or valid buffer
  38726. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  38727. */
  38728. first_recharge_award_rsp.decode = function decode(reader, length) {
  38729. if (!(reader instanceof $Reader))
  38730. reader = $Reader.create(reader);
  38731. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.first_recharge_award_rsp();
  38732. while (reader.pos < end) {
  38733. let tag = reader.uint32();
  38734. switch (tag >>> 3) {
  38735. case 1:
  38736. message.errno = reader.int64();
  38737. break;
  38738. case 2:
  38739. message.moduleid = reader.int64();
  38740. break;
  38741. case 3:
  38742. message.award = reader.int64();
  38743. break;
  38744. default:
  38745. reader.skipType(tag & 7);
  38746. break;
  38747. }
  38748. }
  38749. return message;
  38750. };
  38751. /**
  38752. * Decodes a first_recharge_award_rsp message from the specified reader or buffer, length delimited.
  38753. * @function decodeDelimited
  38754. * @memberof game.first_recharge_award_rsp
  38755. * @static
  38756. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  38757. * @returns {game.first_recharge_award_rsp} first_recharge_award_rsp
  38758. * @throws {Error} If the payload is not a reader or valid buffer
  38759. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  38760. */
  38761. first_recharge_award_rsp.decodeDelimited = function decodeDelimited(reader) {
  38762. if (!(reader instanceof $Reader))
  38763. reader = new $Reader(reader);
  38764. return this.decode(reader, reader.uint32());
  38765. };
  38766. /**
  38767. * Verifies a first_recharge_award_rsp message.
  38768. * @function verify
  38769. * @memberof game.first_recharge_award_rsp
  38770. * @static
  38771. * @param {Object.<string,*>} message Plain object to verify
  38772. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  38773. */
  38774. first_recharge_award_rsp.verify = function verify(message) {
  38775. if (typeof message !== "object" || message === null)
  38776. return "object expected";
  38777. if (message.errno != null && message.hasOwnProperty("errno"))
  38778. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  38779. return "errno: integer|Long expected";
  38780. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  38781. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  38782. return "moduleid: integer|Long expected";
  38783. if (message.award != null && message.hasOwnProperty("award"))
  38784. if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
  38785. return "award: integer|Long expected";
  38786. return null;
  38787. };
  38788. /**
  38789. * Creates a first_recharge_award_rsp message from a plain object. Also converts values to their respective internal types.
  38790. * @function fromObject
  38791. * @memberof game.first_recharge_award_rsp
  38792. * @static
  38793. * @param {Object.<string,*>} object Plain object
  38794. * @returns {game.first_recharge_award_rsp} first_recharge_award_rsp
  38795. */
  38796. first_recharge_award_rsp.fromObject = function fromObject(object) {
  38797. if (object instanceof $root.game.first_recharge_award_rsp)
  38798. return object;
  38799. let message = new $root.game.first_recharge_award_rsp();
  38800. if (object.errno != null)
  38801. if ($util.Long)
  38802. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  38803. else if (typeof object.errno === "string")
  38804. message.errno = parseInt(object.errno, 10);
  38805. else if (typeof object.errno === "number")
  38806. message.errno = object.errno;
  38807. else if (typeof object.errno === "object")
  38808. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  38809. if (object.moduleid != null)
  38810. if ($util.Long)
  38811. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  38812. else if (typeof object.moduleid === "string")
  38813. message.moduleid = parseInt(object.moduleid, 10);
  38814. else if (typeof object.moduleid === "number")
  38815. message.moduleid = object.moduleid;
  38816. else if (typeof object.moduleid === "object")
  38817. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  38818. if (object.award != null)
  38819. if ($util.Long)
  38820. (message.award = $util.Long.fromValue(object.award)).unsigned = false;
  38821. else if (typeof object.award === "string")
  38822. message.award = parseInt(object.award, 10);
  38823. else if (typeof object.award === "number")
  38824. message.award = object.award;
  38825. else if (typeof object.award === "object")
  38826. message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
  38827. return message;
  38828. };
  38829. /**
  38830. * Creates a plain object from a first_recharge_award_rsp message. Also converts values to other types if specified.
  38831. * @function toObject
  38832. * @memberof game.first_recharge_award_rsp
  38833. * @static
  38834. * @param {game.first_recharge_award_rsp} message first_recharge_award_rsp
  38835. * @param {$protobuf.IConversionOptions} [options] Conversion options
  38836. * @returns {Object.<string,*>} Plain object
  38837. */
  38838. first_recharge_award_rsp.toObject = function toObject(message, options) {
  38839. if (!options)
  38840. options = {};
  38841. let object = {};
  38842. if (options.defaults) {
  38843. if ($util.Long) {
  38844. let long = new $util.Long(0, 0, false);
  38845. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  38846. } else
  38847. object.errno = options.longs === String ? "0" : 0;
  38848. if ($util.Long) {
  38849. let long = new $util.Long(0, 0, false);
  38850. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  38851. } else
  38852. object.moduleid = options.longs === String ? "0" : 0;
  38853. if ($util.Long) {
  38854. let long = new $util.Long(0, 0, false);
  38855. object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  38856. } else
  38857. object.award = options.longs === String ? "0" : 0;
  38858. }
  38859. if (message.errno != null && message.hasOwnProperty("errno"))
  38860. if (typeof message.errno === "number")
  38861. object.errno = options.longs === String ? String(message.errno) : message.errno;
  38862. else
  38863. 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;
  38864. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  38865. if (typeof message.moduleid === "number")
  38866. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  38867. else
  38868. 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;
  38869. if (message.award != null && message.hasOwnProperty("award"))
  38870. if (typeof message.award === "number")
  38871. object.award = options.longs === String ? String(message.award) : message.award;
  38872. else
  38873. 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;
  38874. return object;
  38875. };
  38876. /**
  38877. * Converts this first_recharge_award_rsp to JSON.
  38878. * @function toJSON
  38879. * @memberof game.first_recharge_award_rsp
  38880. * @instance
  38881. * @returns {Object.<string,*>} JSON object
  38882. */
  38883. first_recharge_award_rsp.prototype.toJSON = function toJSON() {
  38884. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  38885. };
  38886. return first_recharge_award_rsp;
  38887. })();
  38888. game.first_recharge_nty = (function() {
  38889. /**
  38890. * Properties of a first_recharge_nty.
  38891. * @memberof game
  38892. * @interface Ifirst_recharge_nty
  38893. * @property {number|Long|null} [moduleid] first_recharge_nty moduleid
  38894. * @property {boolean|null} [state] first_recharge_nty state
  38895. * @property {number|Long|null} [day] first_recharge_nty day
  38896. * @property {number|Long|null} [award] first_recharge_nty award
  38897. */
  38898. /**
  38899. * Constructs a new first_recharge_nty.
  38900. * @memberof game
  38901. * @classdesc Represents a first_recharge_nty.
  38902. * @implements Ifirst_recharge_nty
  38903. * @constructor
  38904. * @param {game.Ifirst_recharge_nty=} [properties] Properties to set
  38905. */
  38906. function first_recharge_nty(properties) {
  38907. if (properties)
  38908. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  38909. if (properties[keys[i]] != null)
  38910. this[keys[i]] = properties[keys[i]];
  38911. }
  38912. /**
  38913. * first_recharge_nty moduleid.
  38914. * @member {number|Long} moduleid
  38915. * @memberof game.first_recharge_nty
  38916. * @instance
  38917. */
  38918. first_recharge_nty.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  38919. /**
  38920. * first_recharge_nty state.
  38921. * @member {boolean} state
  38922. * @memberof game.first_recharge_nty
  38923. * @instance
  38924. */
  38925. first_recharge_nty.prototype.state = false;
  38926. /**
  38927. * first_recharge_nty day.
  38928. * @member {number|Long} day
  38929. * @memberof game.first_recharge_nty
  38930. * @instance
  38931. */
  38932. first_recharge_nty.prototype.day = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  38933. /**
  38934. * first_recharge_nty award.
  38935. * @member {number|Long} award
  38936. * @memberof game.first_recharge_nty
  38937. * @instance
  38938. */
  38939. first_recharge_nty.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  38940. /**
  38941. * Creates a new first_recharge_nty instance using the specified properties.
  38942. * @function create
  38943. * @memberof game.first_recharge_nty
  38944. * @static
  38945. * @param {game.Ifirst_recharge_nty=} [properties] Properties to set
  38946. * @returns {game.first_recharge_nty} first_recharge_nty instance
  38947. */
  38948. first_recharge_nty.create = function create(properties) {
  38949. return new first_recharge_nty(properties);
  38950. };
  38951. /**
  38952. * Encodes the specified first_recharge_nty message. Does not implicitly {@link game.first_recharge_nty.verify|verify} messages.
  38953. * @function encode
  38954. * @memberof game.first_recharge_nty
  38955. * @static
  38956. * @param {game.Ifirst_recharge_nty} message first_recharge_nty message or plain object to encode
  38957. * @param {$protobuf.Writer} [writer] Writer to encode to
  38958. * @returns {$protobuf.Writer} Writer
  38959. */
  38960. first_recharge_nty.encode = function encode(message, writer) {
  38961. if (!writer)
  38962. writer = $Writer.create();
  38963. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  38964. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.moduleid);
  38965. if (message.state != null && Object.hasOwnProperty.call(message, "state"))
  38966. writer.uint32(/* id 3, wireType 0 =*/24).bool(message.state);
  38967. if (message.day != null && Object.hasOwnProperty.call(message, "day"))
  38968. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.day);
  38969. if (message.award != null && Object.hasOwnProperty.call(message, "award"))
  38970. writer.uint32(/* id 5, wireType 0 =*/40).int64(message.award);
  38971. return writer;
  38972. };
  38973. /**
  38974. * Encodes the specified first_recharge_nty message, length delimited. Does not implicitly {@link game.first_recharge_nty.verify|verify} messages.
  38975. * @function encodeDelimited
  38976. * @memberof game.first_recharge_nty
  38977. * @static
  38978. * @param {game.Ifirst_recharge_nty} message first_recharge_nty message or plain object to encode
  38979. * @param {$protobuf.Writer} [writer] Writer to encode to
  38980. * @returns {$protobuf.Writer} Writer
  38981. */
  38982. first_recharge_nty.encodeDelimited = function encodeDelimited(message, writer) {
  38983. return this.encode(message, writer).ldelim();
  38984. };
  38985. /**
  38986. * Decodes a first_recharge_nty message from the specified reader or buffer.
  38987. * @function decode
  38988. * @memberof game.first_recharge_nty
  38989. * @static
  38990. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  38991. * @param {number} [length] Message length if known beforehand
  38992. * @returns {game.first_recharge_nty} first_recharge_nty
  38993. * @throws {Error} If the payload is not a reader or valid buffer
  38994. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  38995. */
  38996. first_recharge_nty.decode = function decode(reader, length) {
  38997. if (!(reader instanceof $Reader))
  38998. reader = $Reader.create(reader);
  38999. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.first_recharge_nty();
  39000. while (reader.pos < end) {
  39001. let tag = reader.uint32();
  39002. switch (tag >>> 3) {
  39003. case 2:
  39004. message.moduleid = reader.int64();
  39005. break;
  39006. case 3:
  39007. message.state = reader.bool();
  39008. break;
  39009. case 4:
  39010. message.day = reader.int64();
  39011. break;
  39012. case 5:
  39013. message.award = reader.int64();
  39014. break;
  39015. default:
  39016. reader.skipType(tag & 7);
  39017. break;
  39018. }
  39019. }
  39020. return message;
  39021. };
  39022. /**
  39023. * Decodes a first_recharge_nty message from the specified reader or buffer, length delimited.
  39024. * @function decodeDelimited
  39025. * @memberof game.first_recharge_nty
  39026. * @static
  39027. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  39028. * @returns {game.first_recharge_nty} first_recharge_nty
  39029. * @throws {Error} If the payload is not a reader or valid buffer
  39030. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  39031. */
  39032. first_recharge_nty.decodeDelimited = function decodeDelimited(reader) {
  39033. if (!(reader instanceof $Reader))
  39034. reader = new $Reader(reader);
  39035. return this.decode(reader, reader.uint32());
  39036. };
  39037. /**
  39038. * Verifies a first_recharge_nty message.
  39039. * @function verify
  39040. * @memberof game.first_recharge_nty
  39041. * @static
  39042. * @param {Object.<string,*>} message Plain object to verify
  39043. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  39044. */
  39045. first_recharge_nty.verify = function verify(message) {
  39046. if (typeof message !== "object" || message === null)
  39047. return "object expected";
  39048. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  39049. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  39050. return "moduleid: integer|Long expected";
  39051. if (message.state != null && message.hasOwnProperty("state"))
  39052. if (typeof message.state !== "boolean")
  39053. return "state: boolean expected";
  39054. if (message.day != null && message.hasOwnProperty("day"))
  39055. if (!$util.isInteger(message.day) && !(message.day && $util.isInteger(message.day.low) && $util.isInteger(message.day.high)))
  39056. return "day: integer|Long expected";
  39057. if (message.award != null && message.hasOwnProperty("award"))
  39058. if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
  39059. return "award: integer|Long expected";
  39060. return null;
  39061. };
  39062. /**
  39063. * Creates a first_recharge_nty message from a plain object. Also converts values to their respective internal types.
  39064. * @function fromObject
  39065. * @memberof game.first_recharge_nty
  39066. * @static
  39067. * @param {Object.<string,*>} object Plain object
  39068. * @returns {game.first_recharge_nty} first_recharge_nty
  39069. */
  39070. first_recharge_nty.fromObject = function fromObject(object) {
  39071. if (object instanceof $root.game.first_recharge_nty)
  39072. return object;
  39073. let message = new $root.game.first_recharge_nty();
  39074. if (object.moduleid != null)
  39075. if ($util.Long)
  39076. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  39077. else if (typeof object.moduleid === "string")
  39078. message.moduleid = parseInt(object.moduleid, 10);
  39079. else if (typeof object.moduleid === "number")
  39080. message.moduleid = object.moduleid;
  39081. else if (typeof object.moduleid === "object")
  39082. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  39083. if (object.state != null)
  39084. message.state = Boolean(object.state);
  39085. if (object.day != null)
  39086. if ($util.Long)
  39087. (message.day = $util.Long.fromValue(object.day)).unsigned = false;
  39088. else if (typeof object.day === "string")
  39089. message.day = parseInt(object.day, 10);
  39090. else if (typeof object.day === "number")
  39091. message.day = object.day;
  39092. else if (typeof object.day === "object")
  39093. message.day = new $util.LongBits(object.day.low >>> 0, object.day.high >>> 0).toNumber();
  39094. if (object.award != null)
  39095. if ($util.Long)
  39096. (message.award = $util.Long.fromValue(object.award)).unsigned = false;
  39097. else if (typeof object.award === "string")
  39098. message.award = parseInt(object.award, 10);
  39099. else if (typeof object.award === "number")
  39100. message.award = object.award;
  39101. else if (typeof object.award === "object")
  39102. message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
  39103. return message;
  39104. };
  39105. /**
  39106. * Creates a plain object from a first_recharge_nty message. Also converts values to other types if specified.
  39107. * @function toObject
  39108. * @memberof game.first_recharge_nty
  39109. * @static
  39110. * @param {game.first_recharge_nty} message first_recharge_nty
  39111. * @param {$protobuf.IConversionOptions} [options] Conversion options
  39112. * @returns {Object.<string,*>} Plain object
  39113. */
  39114. first_recharge_nty.toObject = function toObject(message, options) {
  39115. if (!options)
  39116. options = {};
  39117. let object = {};
  39118. if (options.defaults) {
  39119. if ($util.Long) {
  39120. let long = new $util.Long(0, 0, false);
  39121. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  39122. } else
  39123. object.moduleid = options.longs === String ? "0" : 0;
  39124. object.state = false;
  39125. if ($util.Long) {
  39126. let long = new $util.Long(0, 0, false);
  39127. object.day = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  39128. } else
  39129. object.day = options.longs === String ? "0" : 0;
  39130. if ($util.Long) {
  39131. let long = new $util.Long(0, 0, false);
  39132. object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  39133. } else
  39134. object.award = options.longs === String ? "0" : 0;
  39135. }
  39136. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  39137. if (typeof message.moduleid === "number")
  39138. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  39139. else
  39140. 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;
  39141. if (message.state != null && message.hasOwnProperty("state"))
  39142. object.state = message.state;
  39143. if (message.day != null && message.hasOwnProperty("day"))
  39144. if (typeof message.day === "number")
  39145. object.day = options.longs === String ? String(message.day) : message.day;
  39146. else
  39147. 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;
  39148. if (message.award != null && message.hasOwnProperty("award"))
  39149. if (typeof message.award === "number")
  39150. object.award = options.longs === String ? String(message.award) : message.award;
  39151. else
  39152. 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;
  39153. return object;
  39154. };
  39155. /**
  39156. * Converts this first_recharge_nty to JSON.
  39157. * @function toJSON
  39158. * @memberof game.first_recharge_nty
  39159. * @instance
  39160. * @returns {Object.<string,*>} JSON object
  39161. */
  39162. first_recharge_nty.prototype.toJSON = function toJSON() {
  39163. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  39164. };
  39165. return first_recharge_nty;
  39166. })();
  39167. game.daily_dungeons_data = (function() {
  39168. /**
  39169. * Properties of a daily_dungeons_data.
  39170. * @memberof game
  39171. * @interface Idaily_dungeons_data
  39172. */
  39173. /**
  39174. * Constructs a new daily_dungeons_data.
  39175. * @memberof game
  39176. * @classdesc Represents a daily_dungeons_data.
  39177. * @implements Idaily_dungeons_data
  39178. * @constructor
  39179. * @param {game.Idaily_dungeons_data=} [properties] Properties to set
  39180. */
  39181. function daily_dungeons_data(properties) {
  39182. if (properties)
  39183. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  39184. if (properties[keys[i]] != null)
  39185. this[keys[i]] = properties[keys[i]];
  39186. }
  39187. /**
  39188. * Creates a new daily_dungeons_data instance using the specified properties.
  39189. * @function create
  39190. * @memberof game.daily_dungeons_data
  39191. * @static
  39192. * @param {game.Idaily_dungeons_data=} [properties] Properties to set
  39193. * @returns {game.daily_dungeons_data} daily_dungeons_data instance
  39194. */
  39195. daily_dungeons_data.create = function create(properties) {
  39196. return new daily_dungeons_data(properties);
  39197. };
  39198. /**
  39199. * Encodes the specified daily_dungeons_data message. Does not implicitly {@link game.daily_dungeons_data.verify|verify} messages.
  39200. * @function encode
  39201. * @memberof game.daily_dungeons_data
  39202. * @static
  39203. * @param {game.Idaily_dungeons_data} message daily_dungeons_data message or plain object to encode
  39204. * @param {$protobuf.Writer} [writer] Writer to encode to
  39205. * @returns {$protobuf.Writer} Writer
  39206. */
  39207. daily_dungeons_data.encode = function encode(message, writer) {
  39208. if (!writer)
  39209. writer = $Writer.create();
  39210. return writer;
  39211. };
  39212. /**
  39213. * Encodes the specified daily_dungeons_data message, length delimited. Does not implicitly {@link game.daily_dungeons_data.verify|verify} messages.
  39214. * @function encodeDelimited
  39215. * @memberof game.daily_dungeons_data
  39216. * @static
  39217. * @param {game.Idaily_dungeons_data} message daily_dungeons_data message or plain object to encode
  39218. * @param {$protobuf.Writer} [writer] Writer to encode to
  39219. * @returns {$protobuf.Writer} Writer
  39220. */
  39221. daily_dungeons_data.encodeDelimited = function encodeDelimited(message, writer) {
  39222. return this.encode(message, writer).ldelim();
  39223. };
  39224. /**
  39225. * Decodes a daily_dungeons_data message from the specified reader or buffer.
  39226. * @function decode
  39227. * @memberof game.daily_dungeons_data
  39228. * @static
  39229. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  39230. * @param {number} [length] Message length if known beforehand
  39231. * @returns {game.daily_dungeons_data} daily_dungeons_data
  39232. * @throws {Error} If the payload is not a reader or valid buffer
  39233. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  39234. */
  39235. daily_dungeons_data.decode = function decode(reader, length) {
  39236. if (!(reader instanceof $Reader))
  39237. reader = $Reader.create(reader);
  39238. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.daily_dungeons_data();
  39239. while (reader.pos < end) {
  39240. let tag = reader.uint32();
  39241. switch (tag >>> 3) {
  39242. default:
  39243. reader.skipType(tag & 7);
  39244. break;
  39245. }
  39246. }
  39247. return message;
  39248. };
  39249. /**
  39250. * Decodes a daily_dungeons_data message from the specified reader or buffer, length delimited.
  39251. * @function decodeDelimited
  39252. * @memberof game.daily_dungeons_data
  39253. * @static
  39254. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  39255. * @returns {game.daily_dungeons_data} daily_dungeons_data
  39256. * @throws {Error} If the payload is not a reader or valid buffer
  39257. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  39258. */
  39259. daily_dungeons_data.decodeDelimited = function decodeDelimited(reader) {
  39260. if (!(reader instanceof $Reader))
  39261. reader = new $Reader(reader);
  39262. return this.decode(reader, reader.uint32());
  39263. };
  39264. /**
  39265. * Verifies a daily_dungeons_data message.
  39266. * @function verify
  39267. * @memberof game.daily_dungeons_data
  39268. * @static
  39269. * @param {Object.<string,*>} message Plain object to verify
  39270. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  39271. */
  39272. daily_dungeons_data.verify = function verify(message) {
  39273. if (typeof message !== "object" || message === null)
  39274. return "object expected";
  39275. return null;
  39276. };
  39277. /**
  39278. * Creates a daily_dungeons_data message from a plain object. Also converts values to their respective internal types.
  39279. * @function fromObject
  39280. * @memberof game.daily_dungeons_data
  39281. * @static
  39282. * @param {Object.<string,*>} object Plain object
  39283. * @returns {game.daily_dungeons_data} daily_dungeons_data
  39284. */
  39285. daily_dungeons_data.fromObject = function fromObject(object) {
  39286. if (object instanceof $root.game.daily_dungeons_data)
  39287. return object;
  39288. return new $root.game.daily_dungeons_data();
  39289. };
  39290. /**
  39291. * Creates a plain object from a daily_dungeons_data message. Also converts values to other types if specified.
  39292. * @function toObject
  39293. * @memberof game.daily_dungeons_data
  39294. * @static
  39295. * @param {game.daily_dungeons_data} message daily_dungeons_data
  39296. * @param {$protobuf.IConversionOptions} [options] Conversion options
  39297. * @returns {Object.<string,*>} Plain object
  39298. */
  39299. daily_dungeons_data.toObject = function toObject() {
  39300. return {};
  39301. };
  39302. /**
  39303. * Converts this daily_dungeons_data to JSON.
  39304. * @function toJSON
  39305. * @memberof game.daily_dungeons_data
  39306. * @instance
  39307. * @returns {Object.<string,*>} JSON object
  39308. */
  39309. daily_dungeons_data.prototype.toJSON = function toJSON() {
  39310. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  39311. };
  39312. return daily_dungeons_data;
  39313. })();
  39314. game.daily_dungeons_data_rsp = (function() {
  39315. /**
  39316. * Properties of a daily_dungeons_data_rsp.
  39317. * @memberof game
  39318. * @interface Idaily_dungeons_data_rsp
  39319. * @property {number|Long|null} [errno] daily_dungeons_data_rsp errno
  39320. * @property {Array.<game.Idaily_dungeons_info>|null} [list] daily_dungeons_data_rsp list
  39321. */
  39322. /**
  39323. * Constructs a new daily_dungeons_data_rsp.
  39324. * @memberof game
  39325. * @classdesc Represents a daily_dungeons_data_rsp.
  39326. * @implements Idaily_dungeons_data_rsp
  39327. * @constructor
  39328. * @param {game.Idaily_dungeons_data_rsp=} [properties] Properties to set
  39329. */
  39330. function daily_dungeons_data_rsp(properties) {
  39331. this.list = [];
  39332. if (properties)
  39333. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  39334. if (properties[keys[i]] != null)
  39335. this[keys[i]] = properties[keys[i]];
  39336. }
  39337. /**
  39338. * daily_dungeons_data_rsp errno.
  39339. * @member {number|Long} errno
  39340. * @memberof game.daily_dungeons_data_rsp
  39341. * @instance
  39342. */
  39343. daily_dungeons_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  39344. /**
  39345. * daily_dungeons_data_rsp list.
  39346. * @member {Array.<game.Idaily_dungeons_info>} list
  39347. * @memberof game.daily_dungeons_data_rsp
  39348. * @instance
  39349. */
  39350. daily_dungeons_data_rsp.prototype.list = $util.emptyArray;
  39351. /**
  39352. * Creates a new daily_dungeons_data_rsp instance using the specified properties.
  39353. * @function create
  39354. * @memberof game.daily_dungeons_data_rsp
  39355. * @static
  39356. * @param {game.Idaily_dungeons_data_rsp=} [properties] Properties to set
  39357. * @returns {game.daily_dungeons_data_rsp} daily_dungeons_data_rsp instance
  39358. */
  39359. daily_dungeons_data_rsp.create = function create(properties) {
  39360. return new daily_dungeons_data_rsp(properties);
  39361. };
  39362. /**
  39363. * Encodes the specified daily_dungeons_data_rsp message. Does not implicitly {@link game.daily_dungeons_data_rsp.verify|verify} messages.
  39364. * @function encode
  39365. * @memberof game.daily_dungeons_data_rsp
  39366. * @static
  39367. * @param {game.Idaily_dungeons_data_rsp} message daily_dungeons_data_rsp message or plain object to encode
  39368. * @param {$protobuf.Writer} [writer] Writer to encode to
  39369. * @returns {$protobuf.Writer} Writer
  39370. */
  39371. daily_dungeons_data_rsp.encode = function encode(message, writer) {
  39372. if (!writer)
  39373. writer = $Writer.create();
  39374. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  39375. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  39376. if (message.list != null && message.list.length)
  39377. for (let i = 0; i < message.list.length; ++i)
  39378. $root.game.daily_dungeons_info.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  39379. return writer;
  39380. };
  39381. /**
  39382. * Encodes the specified daily_dungeons_data_rsp message, length delimited. Does not implicitly {@link game.daily_dungeons_data_rsp.verify|verify} messages.
  39383. * @function encodeDelimited
  39384. * @memberof game.daily_dungeons_data_rsp
  39385. * @static
  39386. * @param {game.Idaily_dungeons_data_rsp} message daily_dungeons_data_rsp message or plain object to encode
  39387. * @param {$protobuf.Writer} [writer] Writer to encode to
  39388. * @returns {$protobuf.Writer} Writer
  39389. */
  39390. daily_dungeons_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  39391. return this.encode(message, writer).ldelim();
  39392. };
  39393. /**
  39394. * Decodes a daily_dungeons_data_rsp message from the specified reader or buffer.
  39395. * @function decode
  39396. * @memberof game.daily_dungeons_data_rsp
  39397. * @static
  39398. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  39399. * @param {number} [length] Message length if known beforehand
  39400. * @returns {game.daily_dungeons_data_rsp} daily_dungeons_data_rsp
  39401. * @throws {Error} If the payload is not a reader or valid buffer
  39402. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  39403. */
  39404. daily_dungeons_data_rsp.decode = function decode(reader, length) {
  39405. if (!(reader instanceof $Reader))
  39406. reader = $Reader.create(reader);
  39407. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.daily_dungeons_data_rsp();
  39408. while (reader.pos < end) {
  39409. let tag = reader.uint32();
  39410. switch (tag >>> 3) {
  39411. case 1:
  39412. message.errno = reader.int64();
  39413. break;
  39414. case 2:
  39415. if (!(message.list && message.list.length))
  39416. message.list = [];
  39417. message.list.push($root.game.daily_dungeons_info.decode(reader, reader.uint32()));
  39418. break;
  39419. default:
  39420. reader.skipType(tag & 7);
  39421. break;
  39422. }
  39423. }
  39424. return message;
  39425. };
  39426. /**
  39427. * Decodes a daily_dungeons_data_rsp message from the specified reader or buffer, length delimited.
  39428. * @function decodeDelimited
  39429. * @memberof game.daily_dungeons_data_rsp
  39430. * @static
  39431. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  39432. * @returns {game.daily_dungeons_data_rsp} daily_dungeons_data_rsp
  39433. * @throws {Error} If the payload is not a reader or valid buffer
  39434. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  39435. */
  39436. daily_dungeons_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  39437. if (!(reader instanceof $Reader))
  39438. reader = new $Reader(reader);
  39439. return this.decode(reader, reader.uint32());
  39440. };
  39441. /**
  39442. * Verifies a daily_dungeons_data_rsp message.
  39443. * @function verify
  39444. * @memberof game.daily_dungeons_data_rsp
  39445. * @static
  39446. * @param {Object.<string,*>} message Plain object to verify
  39447. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  39448. */
  39449. daily_dungeons_data_rsp.verify = function verify(message) {
  39450. if (typeof message !== "object" || message === null)
  39451. return "object expected";
  39452. if (message.errno != null && message.hasOwnProperty("errno"))
  39453. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  39454. return "errno: integer|Long expected";
  39455. if (message.list != null && message.hasOwnProperty("list")) {
  39456. if (!Array.isArray(message.list))
  39457. return "list: array expected";
  39458. for (let i = 0; i < message.list.length; ++i) {
  39459. let error = $root.game.daily_dungeons_info.verify(message.list[i]);
  39460. if (error)
  39461. return "list." + error;
  39462. }
  39463. }
  39464. return null;
  39465. };
  39466. /**
  39467. * Creates a daily_dungeons_data_rsp message from a plain object. Also converts values to their respective internal types.
  39468. * @function fromObject
  39469. * @memberof game.daily_dungeons_data_rsp
  39470. * @static
  39471. * @param {Object.<string,*>} object Plain object
  39472. * @returns {game.daily_dungeons_data_rsp} daily_dungeons_data_rsp
  39473. */
  39474. daily_dungeons_data_rsp.fromObject = function fromObject(object) {
  39475. if (object instanceof $root.game.daily_dungeons_data_rsp)
  39476. return object;
  39477. let message = new $root.game.daily_dungeons_data_rsp();
  39478. if (object.errno != null)
  39479. if ($util.Long)
  39480. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  39481. else if (typeof object.errno === "string")
  39482. message.errno = parseInt(object.errno, 10);
  39483. else if (typeof object.errno === "number")
  39484. message.errno = object.errno;
  39485. else if (typeof object.errno === "object")
  39486. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  39487. if (object.list) {
  39488. if (!Array.isArray(object.list))
  39489. throw TypeError(".game.daily_dungeons_data_rsp.list: array expected");
  39490. message.list = [];
  39491. for (let i = 0; i < object.list.length; ++i) {
  39492. if (typeof object.list[i] !== "object")
  39493. throw TypeError(".game.daily_dungeons_data_rsp.list: object expected");
  39494. message.list[i] = $root.game.daily_dungeons_info.fromObject(object.list[i]);
  39495. }
  39496. }
  39497. return message;
  39498. };
  39499. /**
  39500. * Creates a plain object from a daily_dungeons_data_rsp message. Also converts values to other types if specified.
  39501. * @function toObject
  39502. * @memberof game.daily_dungeons_data_rsp
  39503. * @static
  39504. * @param {game.daily_dungeons_data_rsp} message daily_dungeons_data_rsp
  39505. * @param {$protobuf.IConversionOptions} [options] Conversion options
  39506. * @returns {Object.<string,*>} Plain object
  39507. */
  39508. daily_dungeons_data_rsp.toObject = function toObject(message, options) {
  39509. if (!options)
  39510. options = {};
  39511. let object = {};
  39512. if (options.arrays || options.defaults)
  39513. object.list = [];
  39514. if (options.defaults)
  39515. if ($util.Long) {
  39516. let long = new $util.Long(0, 0, false);
  39517. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  39518. } else
  39519. object.errno = options.longs === String ? "0" : 0;
  39520. if (message.errno != null && message.hasOwnProperty("errno"))
  39521. if (typeof message.errno === "number")
  39522. object.errno = options.longs === String ? String(message.errno) : message.errno;
  39523. else
  39524. 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;
  39525. if (message.list && message.list.length) {
  39526. object.list = [];
  39527. for (let j = 0; j < message.list.length; ++j)
  39528. object.list[j] = $root.game.daily_dungeons_info.toObject(message.list[j], options);
  39529. }
  39530. return object;
  39531. };
  39532. /**
  39533. * Converts this daily_dungeons_data_rsp to JSON.
  39534. * @function toJSON
  39535. * @memberof game.daily_dungeons_data_rsp
  39536. * @instance
  39537. * @returns {Object.<string,*>} JSON object
  39538. */
  39539. daily_dungeons_data_rsp.prototype.toJSON = function toJSON() {
  39540. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  39541. };
  39542. return daily_dungeons_data_rsp;
  39543. })();
  39544. game.daily_dungeons_start = (function() {
  39545. /**
  39546. * Properties of a daily_dungeons_start.
  39547. * @memberof game
  39548. * @interface Idaily_dungeons_start
  39549. * @property {number|Long|null} [type] daily_dungeons_start type
  39550. * @property {number|Long|null} [diff] daily_dungeons_start diff
  39551. */
  39552. /**
  39553. * Constructs a new daily_dungeons_start.
  39554. * @memberof game
  39555. * @classdesc Represents a daily_dungeons_start.
  39556. * @implements Idaily_dungeons_start
  39557. * @constructor
  39558. * @param {game.Idaily_dungeons_start=} [properties] Properties to set
  39559. */
  39560. function daily_dungeons_start(properties) {
  39561. if (properties)
  39562. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  39563. if (properties[keys[i]] != null)
  39564. this[keys[i]] = properties[keys[i]];
  39565. }
  39566. /**
  39567. * daily_dungeons_start type.
  39568. * @member {number|Long} type
  39569. * @memberof game.daily_dungeons_start
  39570. * @instance
  39571. */
  39572. daily_dungeons_start.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  39573. /**
  39574. * daily_dungeons_start diff.
  39575. * @member {number|Long} diff
  39576. * @memberof game.daily_dungeons_start
  39577. * @instance
  39578. */
  39579. daily_dungeons_start.prototype.diff = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  39580. /**
  39581. * Creates a new daily_dungeons_start instance using the specified properties.
  39582. * @function create
  39583. * @memberof game.daily_dungeons_start
  39584. * @static
  39585. * @param {game.Idaily_dungeons_start=} [properties] Properties to set
  39586. * @returns {game.daily_dungeons_start} daily_dungeons_start instance
  39587. */
  39588. daily_dungeons_start.create = function create(properties) {
  39589. return new daily_dungeons_start(properties);
  39590. };
  39591. /**
  39592. * Encodes the specified daily_dungeons_start message. Does not implicitly {@link game.daily_dungeons_start.verify|verify} messages.
  39593. * @function encode
  39594. * @memberof game.daily_dungeons_start
  39595. * @static
  39596. * @param {game.Idaily_dungeons_start} message daily_dungeons_start message or plain object to encode
  39597. * @param {$protobuf.Writer} [writer] Writer to encode to
  39598. * @returns {$protobuf.Writer} Writer
  39599. */
  39600. daily_dungeons_start.encode = function encode(message, writer) {
  39601. if (!writer)
  39602. writer = $Writer.create();
  39603. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  39604. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
  39605. if (message.diff != null && Object.hasOwnProperty.call(message, "diff"))
  39606. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.diff);
  39607. return writer;
  39608. };
  39609. /**
  39610. * Encodes the specified daily_dungeons_start message, length delimited. Does not implicitly {@link game.daily_dungeons_start.verify|verify} messages.
  39611. * @function encodeDelimited
  39612. * @memberof game.daily_dungeons_start
  39613. * @static
  39614. * @param {game.Idaily_dungeons_start} message daily_dungeons_start message or plain object to encode
  39615. * @param {$protobuf.Writer} [writer] Writer to encode to
  39616. * @returns {$protobuf.Writer} Writer
  39617. */
  39618. daily_dungeons_start.encodeDelimited = function encodeDelimited(message, writer) {
  39619. return this.encode(message, writer).ldelim();
  39620. };
  39621. /**
  39622. * Decodes a daily_dungeons_start message from the specified reader or buffer.
  39623. * @function decode
  39624. * @memberof game.daily_dungeons_start
  39625. * @static
  39626. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  39627. * @param {number} [length] Message length if known beforehand
  39628. * @returns {game.daily_dungeons_start} daily_dungeons_start
  39629. * @throws {Error} If the payload is not a reader or valid buffer
  39630. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  39631. */
  39632. daily_dungeons_start.decode = function decode(reader, length) {
  39633. if (!(reader instanceof $Reader))
  39634. reader = $Reader.create(reader);
  39635. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.daily_dungeons_start();
  39636. while (reader.pos < end) {
  39637. let tag = reader.uint32();
  39638. switch (tag >>> 3) {
  39639. case 1:
  39640. message.type = reader.int64();
  39641. break;
  39642. case 2:
  39643. message.diff = reader.int64();
  39644. break;
  39645. default:
  39646. reader.skipType(tag & 7);
  39647. break;
  39648. }
  39649. }
  39650. return message;
  39651. };
  39652. /**
  39653. * Decodes a daily_dungeons_start message from the specified reader or buffer, length delimited.
  39654. * @function decodeDelimited
  39655. * @memberof game.daily_dungeons_start
  39656. * @static
  39657. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  39658. * @returns {game.daily_dungeons_start} daily_dungeons_start
  39659. * @throws {Error} If the payload is not a reader or valid buffer
  39660. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  39661. */
  39662. daily_dungeons_start.decodeDelimited = function decodeDelimited(reader) {
  39663. if (!(reader instanceof $Reader))
  39664. reader = new $Reader(reader);
  39665. return this.decode(reader, reader.uint32());
  39666. };
  39667. /**
  39668. * Verifies a daily_dungeons_start message.
  39669. * @function verify
  39670. * @memberof game.daily_dungeons_start
  39671. * @static
  39672. * @param {Object.<string,*>} message Plain object to verify
  39673. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  39674. */
  39675. daily_dungeons_start.verify = function verify(message) {
  39676. if (typeof message !== "object" || message === null)
  39677. return "object expected";
  39678. if (message.type != null && message.hasOwnProperty("type"))
  39679. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  39680. return "type: integer|Long expected";
  39681. if (message.diff != null && message.hasOwnProperty("diff"))
  39682. if (!$util.isInteger(message.diff) && !(message.diff && $util.isInteger(message.diff.low) && $util.isInteger(message.diff.high)))
  39683. return "diff: integer|Long expected";
  39684. return null;
  39685. };
  39686. /**
  39687. * Creates a daily_dungeons_start message from a plain object. Also converts values to their respective internal types.
  39688. * @function fromObject
  39689. * @memberof game.daily_dungeons_start
  39690. * @static
  39691. * @param {Object.<string,*>} object Plain object
  39692. * @returns {game.daily_dungeons_start} daily_dungeons_start
  39693. */
  39694. daily_dungeons_start.fromObject = function fromObject(object) {
  39695. if (object instanceof $root.game.daily_dungeons_start)
  39696. return object;
  39697. let message = new $root.game.daily_dungeons_start();
  39698. if (object.type != null)
  39699. if ($util.Long)
  39700. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  39701. else if (typeof object.type === "string")
  39702. message.type = parseInt(object.type, 10);
  39703. else if (typeof object.type === "number")
  39704. message.type = object.type;
  39705. else if (typeof object.type === "object")
  39706. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  39707. if (object.diff != null)
  39708. if ($util.Long)
  39709. (message.diff = $util.Long.fromValue(object.diff)).unsigned = false;
  39710. else if (typeof object.diff === "string")
  39711. message.diff = parseInt(object.diff, 10);
  39712. else if (typeof object.diff === "number")
  39713. message.diff = object.diff;
  39714. else if (typeof object.diff === "object")
  39715. message.diff = new $util.LongBits(object.diff.low >>> 0, object.diff.high >>> 0).toNumber();
  39716. return message;
  39717. };
  39718. /**
  39719. * Creates a plain object from a daily_dungeons_start message. Also converts values to other types if specified.
  39720. * @function toObject
  39721. * @memberof game.daily_dungeons_start
  39722. * @static
  39723. * @param {game.daily_dungeons_start} message daily_dungeons_start
  39724. * @param {$protobuf.IConversionOptions} [options] Conversion options
  39725. * @returns {Object.<string,*>} Plain object
  39726. */
  39727. daily_dungeons_start.toObject = function toObject(message, options) {
  39728. if (!options)
  39729. options = {};
  39730. let object = {};
  39731. if (options.defaults) {
  39732. if ($util.Long) {
  39733. let long = new $util.Long(0, 0, false);
  39734. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  39735. } else
  39736. object.type = options.longs === String ? "0" : 0;
  39737. if ($util.Long) {
  39738. let long = new $util.Long(0, 0, false);
  39739. object.diff = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  39740. } else
  39741. object.diff = options.longs === String ? "0" : 0;
  39742. }
  39743. if (message.type != null && message.hasOwnProperty("type"))
  39744. if (typeof message.type === "number")
  39745. object.type = options.longs === String ? String(message.type) : message.type;
  39746. else
  39747. 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;
  39748. if (message.diff != null && message.hasOwnProperty("diff"))
  39749. if (typeof message.diff === "number")
  39750. object.diff = options.longs === String ? String(message.diff) : message.diff;
  39751. else
  39752. 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;
  39753. return object;
  39754. };
  39755. /**
  39756. * Converts this daily_dungeons_start to JSON.
  39757. * @function toJSON
  39758. * @memberof game.daily_dungeons_start
  39759. * @instance
  39760. * @returns {Object.<string,*>} JSON object
  39761. */
  39762. daily_dungeons_start.prototype.toJSON = function toJSON() {
  39763. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  39764. };
  39765. return daily_dungeons_start;
  39766. })();
  39767. game.daily_dungeons_start_rsp = (function() {
  39768. /**
  39769. * Properties of a daily_dungeons_start_rsp.
  39770. * @memberof game
  39771. * @interface Idaily_dungeons_start_rsp
  39772. * @property {number|Long|null} [errno] daily_dungeons_start_rsp errno
  39773. * @property {Array.<game.Iid_num>|null} [awardList] daily_dungeons_start_rsp awardList
  39774. */
  39775. /**
  39776. * Constructs a new daily_dungeons_start_rsp.
  39777. * @memberof game
  39778. * @classdesc Represents a daily_dungeons_start_rsp.
  39779. * @implements Idaily_dungeons_start_rsp
  39780. * @constructor
  39781. * @param {game.Idaily_dungeons_start_rsp=} [properties] Properties to set
  39782. */
  39783. function daily_dungeons_start_rsp(properties) {
  39784. this.awardList = [];
  39785. if (properties)
  39786. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  39787. if (properties[keys[i]] != null)
  39788. this[keys[i]] = properties[keys[i]];
  39789. }
  39790. /**
  39791. * daily_dungeons_start_rsp errno.
  39792. * @member {number|Long} errno
  39793. * @memberof game.daily_dungeons_start_rsp
  39794. * @instance
  39795. */
  39796. daily_dungeons_start_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  39797. /**
  39798. * daily_dungeons_start_rsp awardList.
  39799. * @member {Array.<game.Iid_num>} awardList
  39800. * @memberof game.daily_dungeons_start_rsp
  39801. * @instance
  39802. */
  39803. daily_dungeons_start_rsp.prototype.awardList = $util.emptyArray;
  39804. /**
  39805. * Creates a new daily_dungeons_start_rsp instance using the specified properties.
  39806. * @function create
  39807. * @memberof game.daily_dungeons_start_rsp
  39808. * @static
  39809. * @param {game.Idaily_dungeons_start_rsp=} [properties] Properties to set
  39810. * @returns {game.daily_dungeons_start_rsp} daily_dungeons_start_rsp instance
  39811. */
  39812. daily_dungeons_start_rsp.create = function create(properties) {
  39813. return new daily_dungeons_start_rsp(properties);
  39814. };
  39815. /**
  39816. * Encodes the specified daily_dungeons_start_rsp message. Does not implicitly {@link game.daily_dungeons_start_rsp.verify|verify} messages.
  39817. * @function encode
  39818. * @memberof game.daily_dungeons_start_rsp
  39819. * @static
  39820. * @param {game.Idaily_dungeons_start_rsp} message daily_dungeons_start_rsp message or plain object to encode
  39821. * @param {$protobuf.Writer} [writer] Writer to encode to
  39822. * @returns {$protobuf.Writer} Writer
  39823. */
  39824. daily_dungeons_start_rsp.encode = function encode(message, writer) {
  39825. if (!writer)
  39826. writer = $Writer.create();
  39827. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  39828. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  39829. if (message.awardList != null && message.awardList.length)
  39830. for (let i = 0; i < message.awardList.length; ++i)
  39831. $root.game.id_num.encode(message.awardList[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  39832. return writer;
  39833. };
  39834. /**
  39835. * Encodes the specified daily_dungeons_start_rsp message, length delimited. Does not implicitly {@link game.daily_dungeons_start_rsp.verify|verify} messages.
  39836. * @function encodeDelimited
  39837. * @memberof game.daily_dungeons_start_rsp
  39838. * @static
  39839. * @param {game.Idaily_dungeons_start_rsp} message daily_dungeons_start_rsp message or plain object to encode
  39840. * @param {$protobuf.Writer} [writer] Writer to encode to
  39841. * @returns {$protobuf.Writer} Writer
  39842. */
  39843. daily_dungeons_start_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  39844. return this.encode(message, writer).ldelim();
  39845. };
  39846. /**
  39847. * Decodes a daily_dungeons_start_rsp message from the specified reader or buffer.
  39848. * @function decode
  39849. * @memberof game.daily_dungeons_start_rsp
  39850. * @static
  39851. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  39852. * @param {number} [length] Message length if known beforehand
  39853. * @returns {game.daily_dungeons_start_rsp} daily_dungeons_start_rsp
  39854. * @throws {Error} If the payload is not a reader or valid buffer
  39855. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  39856. */
  39857. daily_dungeons_start_rsp.decode = function decode(reader, length) {
  39858. if (!(reader instanceof $Reader))
  39859. reader = $Reader.create(reader);
  39860. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.daily_dungeons_start_rsp();
  39861. while (reader.pos < end) {
  39862. let tag = reader.uint32();
  39863. switch (tag >>> 3) {
  39864. case 1:
  39865. message.errno = reader.int64();
  39866. break;
  39867. case 2:
  39868. if (!(message.awardList && message.awardList.length))
  39869. message.awardList = [];
  39870. message.awardList.push($root.game.id_num.decode(reader, reader.uint32()));
  39871. break;
  39872. default:
  39873. reader.skipType(tag & 7);
  39874. break;
  39875. }
  39876. }
  39877. return message;
  39878. };
  39879. /**
  39880. * Decodes a daily_dungeons_start_rsp message from the specified reader or buffer, length delimited.
  39881. * @function decodeDelimited
  39882. * @memberof game.daily_dungeons_start_rsp
  39883. * @static
  39884. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  39885. * @returns {game.daily_dungeons_start_rsp} daily_dungeons_start_rsp
  39886. * @throws {Error} If the payload is not a reader or valid buffer
  39887. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  39888. */
  39889. daily_dungeons_start_rsp.decodeDelimited = function decodeDelimited(reader) {
  39890. if (!(reader instanceof $Reader))
  39891. reader = new $Reader(reader);
  39892. return this.decode(reader, reader.uint32());
  39893. };
  39894. /**
  39895. * Verifies a daily_dungeons_start_rsp message.
  39896. * @function verify
  39897. * @memberof game.daily_dungeons_start_rsp
  39898. * @static
  39899. * @param {Object.<string,*>} message Plain object to verify
  39900. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  39901. */
  39902. daily_dungeons_start_rsp.verify = function verify(message) {
  39903. if (typeof message !== "object" || message === null)
  39904. return "object expected";
  39905. if (message.errno != null && message.hasOwnProperty("errno"))
  39906. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  39907. return "errno: integer|Long expected";
  39908. if (message.awardList != null && message.hasOwnProperty("awardList")) {
  39909. if (!Array.isArray(message.awardList))
  39910. return "awardList: array expected";
  39911. for (let i = 0; i < message.awardList.length; ++i) {
  39912. let error = $root.game.id_num.verify(message.awardList[i]);
  39913. if (error)
  39914. return "awardList." + error;
  39915. }
  39916. }
  39917. return null;
  39918. };
  39919. /**
  39920. * Creates a daily_dungeons_start_rsp message from a plain object. Also converts values to their respective internal types.
  39921. * @function fromObject
  39922. * @memberof game.daily_dungeons_start_rsp
  39923. * @static
  39924. * @param {Object.<string,*>} object Plain object
  39925. * @returns {game.daily_dungeons_start_rsp} daily_dungeons_start_rsp
  39926. */
  39927. daily_dungeons_start_rsp.fromObject = function fromObject(object) {
  39928. if (object instanceof $root.game.daily_dungeons_start_rsp)
  39929. return object;
  39930. let message = new $root.game.daily_dungeons_start_rsp();
  39931. if (object.errno != null)
  39932. if ($util.Long)
  39933. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  39934. else if (typeof object.errno === "string")
  39935. message.errno = parseInt(object.errno, 10);
  39936. else if (typeof object.errno === "number")
  39937. message.errno = object.errno;
  39938. else if (typeof object.errno === "object")
  39939. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  39940. if (object.awardList) {
  39941. if (!Array.isArray(object.awardList))
  39942. throw TypeError(".game.daily_dungeons_start_rsp.awardList: array expected");
  39943. message.awardList = [];
  39944. for (let i = 0; i < object.awardList.length; ++i) {
  39945. if (typeof object.awardList[i] !== "object")
  39946. throw TypeError(".game.daily_dungeons_start_rsp.awardList: object expected");
  39947. message.awardList[i] = $root.game.id_num.fromObject(object.awardList[i]);
  39948. }
  39949. }
  39950. return message;
  39951. };
  39952. /**
  39953. * Creates a plain object from a daily_dungeons_start_rsp message. Also converts values to other types if specified.
  39954. * @function toObject
  39955. * @memberof game.daily_dungeons_start_rsp
  39956. * @static
  39957. * @param {game.daily_dungeons_start_rsp} message daily_dungeons_start_rsp
  39958. * @param {$protobuf.IConversionOptions} [options] Conversion options
  39959. * @returns {Object.<string,*>} Plain object
  39960. */
  39961. daily_dungeons_start_rsp.toObject = function toObject(message, options) {
  39962. if (!options)
  39963. options = {};
  39964. let object = {};
  39965. if (options.arrays || options.defaults)
  39966. object.awardList = [];
  39967. if (options.defaults)
  39968. if ($util.Long) {
  39969. let long = new $util.Long(0, 0, false);
  39970. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  39971. } else
  39972. object.errno = options.longs === String ? "0" : 0;
  39973. if (message.errno != null && message.hasOwnProperty("errno"))
  39974. if (typeof message.errno === "number")
  39975. object.errno = options.longs === String ? String(message.errno) : message.errno;
  39976. else
  39977. 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;
  39978. if (message.awardList && message.awardList.length) {
  39979. object.awardList = [];
  39980. for (let j = 0; j < message.awardList.length; ++j)
  39981. object.awardList[j] = $root.game.id_num.toObject(message.awardList[j], options);
  39982. }
  39983. return object;
  39984. };
  39985. /**
  39986. * Converts this daily_dungeons_start_rsp to JSON.
  39987. * @function toJSON
  39988. * @memberof game.daily_dungeons_start_rsp
  39989. * @instance
  39990. * @returns {Object.<string,*>} JSON object
  39991. */
  39992. daily_dungeons_start_rsp.prototype.toJSON = function toJSON() {
  39993. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  39994. };
  39995. return daily_dungeons_start_rsp;
  39996. })();
  39997. game.daily_dungeons_end = (function() {
  39998. /**
  39999. * Properties of a daily_dungeons_end.
  40000. * @memberof game
  40001. * @interface Idaily_dungeons_end
  40002. * @property {boolean|null} [win] daily_dungeons_end win
  40003. * @property {number|Long|null} [monsterNum] daily_dungeons_end monsterNum
  40004. * @property {number|Long|null} [bossNum] daily_dungeons_end bossNum
  40005. * @property {number|Long|null} [eliteNum] daily_dungeons_end eliteNum
  40006. */
  40007. /**
  40008. * Constructs a new daily_dungeons_end.
  40009. * @memberof game
  40010. * @classdesc Represents a daily_dungeons_end.
  40011. * @implements Idaily_dungeons_end
  40012. * @constructor
  40013. * @param {game.Idaily_dungeons_end=} [properties] Properties to set
  40014. */
  40015. function daily_dungeons_end(properties) {
  40016. if (properties)
  40017. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  40018. if (properties[keys[i]] != null)
  40019. this[keys[i]] = properties[keys[i]];
  40020. }
  40021. /**
  40022. * daily_dungeons_end win.
  40023. * @member {boolean} win
  40024. * @memberof game.daily_dungeons_end
  40025. * @instance
  40026. */
  40027. daily_dungeons_end.prototype.win = false;
  40028. /**
  40029. * daily_dungeons_end monsterNum.
  40030. * @member {number|Long} monsterNum
  40031. * @memberof game.daily_dungeons_end
  40032. * @instance
  40033. */
  40034. daily_dungeons_end.prototype.monsterNum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  40035. /**
  40036. * daily_dungeons_end bossNum.
  40037. * @member {number|Long} bossNum
  40038. * @memberof game.daily_dungeons_end
  40039. * @instance
  40040. */
  40041. daily_dungeons_end.prototype.bossNum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  40042. /**
  40043. * daily_dungeons_end eliteNum.
  40044. * @member {number|Long} eliteNum
  40045. * @memberof game.daily_dungeons_end
  40046. * @instance
  40047. */
  40048. daily_dungeons_end.prototype.eliteNum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  40049. /**
  40050. * Creates a new daily_dungeons_end instance using the specified properties.
  40051. * @function create
  40052. * @memberof game.daily_dungeons_end
  40053. * @static
  40054. * @param {game.Idaily_dungeons_end=} [properties] Properties to set
  40055. * @returns {game.daily_dungeons_end} daily_dungeons_end instance
  40056. */
  40057. daily_dungeons_end.create = function create(properties) {
  40058. return new daily_dungeons_end(properties);
  40059. };
  40060. /**
  40061. * Encodes the specified daily_dungeons_end message. Does not implicitly {@link game.daily_dungeons_end.verify|verify} messages.
  40062. * @function encode
  40063. * @memberof game.daily_dungeons_end
  40064. * @static
  40065. * @param {game.Idaily_dungeons_end} message daily_dungeons_end message or plain object to encode
  40066. * @param {$protobuf.Writer} [writer] Writer to encode to
  40067. * @returns {$protobuf.Writer} Writer
  40068. */
  40069. daily_dungeons_end.encode = function encode(message, writer) {
  40070. if (!writer)
  40071. writer = $Writer.create();
  40072. if (message.win != null && Object.hasOwnProperty.call(message, "win"))
  40073. writer.uint32(/* id 1, wireType 0 =*/8).bool(message.win);
  40074. if (message.monsterNum != null && Object.hasOwnProperty.call(message, "monsterNum"))
  40075. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.monsterNum);
  40076. if (message.bossNum != null && Object.hasOwnProperty.call(message, "bossNum"))
  40077. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.bossNum);
  40078. if (message.eliteNum != null && Object.hasOwnProperty.call(message, "eliteNum"))
  40079. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.eliteNum);
  40080. return writer;
  40081. };
  40082. /**
  40083. * Encodes the specified daily_dungeons_end message, length delimited. Does not implicitly {@link game.daily_dungeons_end.verify|verify} messages.
  40084. * @function encodeDelimited
  40085. * @memberof game.daily_dungeons_end
  40086. * @static
  40087. * @param {game.Idaily_dungeons_end} message daily_dungeons_end message or plain object to encode
  40088. * @param {$protobuf.Writer} [writer] Writer to encode to
  40089. * @returns {$protobuf.Writer} Writer
  40090. */
  40091. daily_dungeons_end.encodeDelimited = function encodeDelimited(message, writer) {
  40092. return this.encode(message, writer).ldelim();
  40093. };
  40094. /**
  40095. * Decodes a daily_dungeons_end message from the specified reader or buffer.
  40096. * @function decode
  40097. * @memberof game.daily_dungeons_end
  40098. * @static
  40099. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  40100. * @param {number} [length] Message length if known beforehand
  40101. * @returns {game.daily_dungeons_end} daily_dungeons_end
  40102. * @throws {Error} If the payload is not a reader or valid buffer
  40103. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  40104. */
  40105. daily_dungeons_end.decode = function decode(reader, length) {
  40106. if (!(reader instanceof $Reader))
  40107. reader = $Reader.create(reader);
  40108. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.daily_dungeons_end();
  40109. while (reader.pos < end) {
  40110. let tag = reader.uint32();
  40111. switch (tag >>> 3) {
  40112. case 1:
  40113. message.win = reader.bool();
  40114. break;
  40115. case 2:
  40116. message.monsterNum = reader.int64();
  40117. break;
  40118. case 3:
  40119. message.bossNum = reader.int64();
  40120. break;
  40121. case 4:
  40122. message.eliteNum = reader.int64();
  40123. break;
  40124. default:
  40125. reader.skipType(tag & 7);
  40126. break;
  40127. }
  40128. }
  40129. return message;
  40130. };
  40131. /**
  40132. * Decodes a daily_dungeons_end message from the specified reader or buffer, length delimited.
  40133. * @function decodeDelimited
  40134. * @memberof game.daily_dungeons_end
  40135. * @static
  40136. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  40137. * @returns {game.daily_dungeons_end} daily_dungeons_end
  40138. * @throws {Error} If the payload is not a reader or valid buffer
  40139. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  40140. */
  40141. daily_dungeons_end.decodeDelimited = function decodeDelimited(reader) {
  40142. if (!(reader instanceof $Reader))
  40143. reader = new $Reader(reader);
  40144. return this.decode(reader, reader.uint32());
  40145. };
  40146. /**
  40147. * Verifies a daily_dungeons_end message.
  40148. * @function verify
  40149. * @memberof game.daily_dungeons_end
  40150. * @static
  40151. * @param {Object.<string,*>} message Plain object to verify
  40152. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  40153. */
  40154. daily_dungeons_end.verify = function verify(message) {
  40155. if (typeof message !== "object" || message === null)
  40156. return "object expected";
  40157. if (message.win != null && message.hasOwnProperty("win"))
  40158. if (typeof message.win !== "boolean")
  40159. return "win: boolean expected";
  40160. if (message.monsterNum != null && message.hasOwnProperty("monsterNum"))
  40161. if (!$util.isInteger(message.monsterNum) && !(message.monsterNum && $util.isInteger(message.monsterNum.low) && $util.isInteger(message.monsterNum.high)))
  40162. return "monsterNum: integer|Long expected";
  40163. if (message.bossNum != null && message.hasOwnProperty("bossNum"))
  40164. if (!$util.isInteger(message.bossNum) && !(message.bossNum && $util.isInteger(message.bossNum.low) && $util.isInteger(message.bossNum.high)))
  40165. return "bossNum: integer|Long expected";
  40166. if (message.eliteNum != null && message.hasOwnProperty("eliteNum"))
  40167. if (!$util.isInteger(message.eliteNum) && !(message.eliteNum && $util.isInteger(message.eliteNum.low) && $util.isInteger(message.eliteNum.high)))
  40168. return "eliteNum: integer|Long expected";
  40169. return null;
  40170. };
  40171. /**
  40172. * Creates a daily_dungeons_end message from a plain object. Also converts values to their respective internal types.
  40173. * @function fromObject
  40174. * @memberof game.daily_dungeons_end
  40175. * @static
  40176. * @param {Object.<string,*>} object Plain object
  40177. * @returns {game.daily_dungeons_end} daily_dungeons_end
  40178. */
  40179. daily_dungeons_end.fromObject = function fromObject(object) {
  40180. if (object instanceof $root.game.daily_dungeons_end)
  40181. return object;
  40182. let message = new $root.game.daily_dungeons_end();
  40183. if (object.win != null)
  40184. message.win = Boolean(object.win);
  40185. if (object.monsterNum != null)
  40186. if ($util.Long)
  40187. (message.monsterNum = $util.Long.fromValue(object.monsterNum)).unsigned = false;
  40188. else if (typeof object.monsterNum === "string")
  40189. message.monsterNum = parseInt(object.monsterNum, 10);
  40190. else if (typeof object.monsterNum === "number")
  40191. message.monsterNum = object.monsterNum;
  40192. else if (typeof object.monsterNum === "object")
  40193. message.monsterNum = new $util.LongBits(object.monsterNum.low >>> 0, object.monsterNum.high >>> 0).toNumber();
  40194. if (object.bossNum != null)
  40195. if ($util.Long)
  40196. (message.bossNum = $util.Long.fromValue(object.bossNum)).unsigned = false;
  40197. else if (typeof object.bossNum === "string")
  40198. message.bossNum = parseInt(object.bossNum, 10);
  40199. else if (typeof object.bossNum === "number")
  40200. message.bossNum = object.bossNum;
  40201. else if (typeof object.bossNum === "object")
  40202. message.bossNum = new $util.LongBits(object.bossNum.low >>> 0, object.bossNum.high >>> 0).toNumber();
  40203. if (object.eliteNum != null)
  40204. if ($util.Long)
  40205. (message.eliteNum = $util.Long.fromValue(object.eliteNum)).unsigned = false;
  40206. else if (typeof object.eliteNum === "string")
  40207. message.eliteNum = parseInt(object.eliteNum, 10);
  40208. else if (typeof object.eliteNum === "number")
  40209. message.eliteNum = object.eliteNum;
  40210. else if (typeof object.eliteNum === "object")
  40211. message.eliteNum = new $util.LongBits(object.eliteNum.low >>> 0, object.eliteNum.high >>> 0).toNumber();
  40212. return message;
  40213. };
  40214. /**
  40215. * Creates a plain object from a daily_dungeons_end message. Also converts values to other types if specified.
  40216. * @function toObject
  40217. * @memberof game.daily_dungeons_end
  40218. * @static
  40219. * @param {game.daily_dungeons_end} message daily_dungeons_end
  40220. * @param {$protobuf.IConversionOptions} [options] Conversion options
  40221. * @returns {Object.<string,*>} Plain object
  40222. */
  40223. daily_dungeons_end.toObject = function toObject(message, options) {
  40224. if (!options)
  40225. options = {};
  40226. let object = {};
  40227. if (options.defaults) {
  40228. object.win = false;
  40229. if ($util.Long) {
  40230. let long = new $util.Long(0, 0, false);
  40231. object.monsterNum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  40232. } else
  40233. object.monsterNum = options.longs === String ? "0" : 0;
  40234. if ($util.Long) {
  40235. let long = new $util.Long(0, 0, false);
  40236. object.bossNum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  40237. } else
  40238. object.bossNum = options.longs === String ? "0" : 0;
  40239. if ($util.Long) {
  40240. let long = new $util.Long(0, 0, false);
  40241. object.eliteNum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  40242. } else
  40243. object.eliteNum = options.longs === String ? "0" : 0;
  40244. }
  40245. if (message.win != null && message.hasOwnProperty("win"))
  40246. object.win = message.win;
  40247. if (message.monsterNum != null && message.hasOwnProperty("monsterNum"))
  40248. if (typeof message.monsterNum === "number")
  40249. object.monsterNum = options.longs === String ? String(message.monsterNum) : message.monsterNum;
  40250. else
  40251. 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;
  40252. if (message.bossNum != null && message.hasOwnProperty("bossNum"))
  40253. if (typeof message.bossNum === "number")
  40254. object.bossNum = options.longs === String ? String(message.bossNum) : message.bossNum;
  40255. else
  40256. 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;
  40257. if (message.eliteNum != null && message.hasOwnProperty("eliteNum"))
  40258. if (typeof message.eliteNum === "number")
  40259. object.eliteNum = options.longs === String ? String(message.eliteNum) : message.eliteNum;
  40260. else
  40261. 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;
  40262. return object;
  40263. };
  40264. /**
  40265. * Converts this daily_dungeons_end to JSON.
  40266. * @function toJSON
  40267. * @memberof game.daily_dungeons_end
  40268. * @instance
  40269. * @returns {Object.<string,*>} JSON object
  40270. */
  40271. daily_dungeons_end.prototype.toJSON = function toJSON() {
  40272. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  40273. };
  40274. return daily_dungeons_end;
  40275. })();
  40276. game.daily_dungeons_end_rsp = (function() {
  40277. /**
  40278. * Properties of a daily_dungeons_end_rsp.
  40279. * @memberof game
  40280. * @interface Idaily_dungeons_end_rsp
  40281. * @property {number|Long|null} [errno] daily_dungeons_end_rsp errno
  40282. * @property {game.Idaily_dungeons_info|null} [data] daily_dungeons_end_rsp data
  40283. */
  40284. /**
  40285. * Constructs a new daily_dungeons_end_rsp.
  40286. * @memberof game
  40287. * @classdesc Represents a daily_dungeons_end_rsp.
  40288. * @implements Idaily_dungeons_end_rsp
  40289. * @constructor
  40290. * @param {game.Idaily_dungeons_end_rsp=} [properties] Properties to set
  40291. */
  40292. function daily_dungeons_end_rsp(properties) {
  40293. if (properties)
  40294. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  40295. if (properties[keys[i]] != null)
  40296. this[keys[i]] = properties[keys[i]];
  40297. }
  40298. /**
  40299. * daily_dungeons_end_rsp errno.
  40300. * @member {number|Long} errno
  40301. * @memberof game.daily_dungeons_end_rsp
  40302. * @instance
  40303. */
  40304. daily_dungeons_end_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  40305. /**
  40306. * daily_dungeons_end_rsp data.
  40307. * @member {game.Idaily_dungeons_info|null|undefined} data
  40308. * @memberof game.daily_dungeons_end_rsp
  40309. * @instance
  40310. */
  40311. daily_dungeons_end_rsp.prototype.data = null;
  40312. /**
  40313. * Creates a new daily_dungeons_end_rsp instance using the specified properties.
  40314. * @function create
  40315. * @memberof game.daily_dungeons_end_rsp
  40316. * @static
  40317. * @param {game.Idaily_dungeons_end_rsp=} [properties] Properties to set
  40318. * @returns {game.daily_dungeons_end_rsp} daily_dungeons_end_rsp instance
  40319. */
  40320. daily_dungeons_end_rsp.create = function create(properties) {
  40321. return new daily_dungeons_end_rsp(properties);
  40322. };
  40323. /**
  40324. * Encodes the specified daily_dungeons_end_rsp message. Does not implicitly {@link game.daily_dungeons_end_rsp.verify|verify} messages.
  40325. * @function encode
  40326. * @memberof game.daily_dungeons_end_rsp
  40327. * @static
  40328. * @param {game.Idaily_dungeons_end_rsp} message daily_dungeons_end_rsp message or plain object to encode
  40329. * @param {$protobuf.Writer} [writer] Writer to encode to
  40330. * @returns {$protobuf.Writer} Writer
  40331. */
  40332. daily_dungeons_end_rsp.encode = function encode(message, writer) {
  40333. if (!writer)
  40334. writer = $Writer.create();
  40335. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  40336. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  40337. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  40338. $root.game.daily_dungeons_info.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  40339. return writer;
  40340. };
  40341. /**
  40342. * Encodes the specified daily_dungeons_end_rsp message, length delimited. Does not implicitly {@link game.daily_dungeons_end_rsp.verify|verify} messages.
  40343. * @function encodeDelimited
  40344. * @memberof game.daily_dungeons_end_rsp
  40345. * @static
  40346. * @param {game.Idaily_dungeons_end_rsp} message daily_dungeons_end_rsp message or plain object to encode
  40347. * @param {$protobuf.Writer} [writer] Writer to encode to
  40348. * @returns {$protobuf.Writer} Writer
  40349. */
  40350. daily_dungeons_end_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  40351. return this.encode(message, writer).ldelim();
  40352. };
  40353. /**
  40354. * Decodes a daily_dungeons_end_rsp message from the specified reader or buffer.
  40355. * @function decode
  40356. * @memberof game.daily_dungeons_end_rsp
  40357. * @static
  40358. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  40359. * @param {number} [length] Message length if known beforehand
  40360. * @returns {game.daily_dungeons_end_rsp} daily_dungeons_end_rsp
  40361. * @throws {Error} If the payload is not a reader or valid buffer
  40362. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  40363. */
  40364. daily_dungeons_end_rsp.decode = function decode(reader, length) {
  40365. if (!(reader instanceof $Reader))
  40366. reader = $Reader.create(reader);
  40367. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.daily_dungeons_end_rsp();
  40368. while (reader.pos < end) {
  40369. let tag = reader.uint32();
  40370. switch (tag >>> 3) {
  40371. case 1:
  40372. message.errno = reader.int64();
  40373. break;
  40374. case 2:
  40375. message.data = $root.game.daily_dungeons_info.decode(reader, reader.uint32());
  40376. break;
  40377. default:
  40378. reader.skipType(tag & 7);
  40379. break;
  40380. }
  40381. }
  40382. return message;
  40383. };
  40384. /**
  40385. * Decodes a daily_dungeons_end_rsp message from the specified reader or buffer, length delimited.
  40386. * @function decodeDelimited
  40387. * @memberof game.daily_dungeons_end_rsp
  40388. * @static
  40389. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  40390. * @returns {game.daily_dungeons_end_rsp} daily_dungeons_end_rsp
  40391. * @throws {Error} If the payload is not a reader or valid buffer
  40392. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  40393. */
  40394. daily_dungeons_end_rsp.decodeDelimited = function decodeDelimited(reader) {
  40395. if (!(reader instanceof $Reader))
  40396. reader = new $Reader(reader);
  40397. return this.decode(reader, reader.uint32());
  40398. };
  40399. /**
  40400. * Verifies a daily_dungeons_end_rsp message.
  40401. * @function verify
  40402. * @memberof game.daily_dungeons_end_rsp
  40403. * @static
  40404. * @param {Object.<string,*>} message Plain object to verify
  40405. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  40406. */
  40407. daily_dungeons_end_rsp.verify = function verify(message) {
  40408. if (typeof message !== "object" || message === null)
  40409. return "object expected";
  40410. if (message.errno != null && message.hasOwnProperty("errno"))
  40411. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  40412. return "errno: integer|Long expected";
  40413. if (message.data != null && message.hasOwnProperty("data")) {
  40414. let error = $root.game.daily_dungeons_info.verify(message.data);
  40415. if (error)
  40416. return "data." + error;
  40417. }
  40418. return null;
  40419. };
  40420. /**
  40421. * Creates a daily_dungeons_end_rsp message from a plain object. Also converts values to their respective internal types.
  40422. * @function fromObject
  40423. * @memberof game.daily_dungeons_end_rsp
  40424. * @static
  40425. * @param {Object.<string,*>} object Plain object
  40426. * @returns {game.daily_dungeons_end_rsp} daily_dungeons_end_rsp
  40427. */
  40428. daily_dungeons_end_rsp.fromObject = function fromObject(object) {
  40429. if (object instanceof $root.game.daily_dungeons_end_rsp)
  40430. return object;
  40431. let message = new $root.game.daily_dungeons_end_rsp();
  40432. if (object.errno != null)
  40433. if ($util.Long)
  40434. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  40435. else if (typeof object.errno === "string")
  40436. message.errno = parseInt(object.errno, 10);
  40437. else if (typeof object.errno === "number")
  40438. message.errno = object.errno;
  40439. else if (typeof object.errno === "object")
  40440. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  40441. if (object.data != null) {
  40442. if (typeof object.data !== "object")
  40443. throw TypeError(".game.daily_dungeons_end_rsp.data: object expected");
  40444. message.data = $root.game.daily_dungeons_info.fromObject(object.data);
  40445. }
  40446. return message;
  40447. };
  40448. /**
  40449. * Creates a plain object from a daily_dungeons_end_rsp message. Also converts values to other types if specified.
  40450. * @function toObject
  40451. * @memberof game.daily_dungeons_end_rsp
  40452. * @static
  40453. * @param {game.daily_dungeons_end_rsp} message daily_dungeons_end_rsp
  40454. * @param {$protobuf.IConversionOptions} [options] Conversion options
  40455. * @returns {Object.<string,*>} Plain object
  40456. */
  40457. daily_dungeons_end_rsp.toObject = function toObject(message, options) {
  40458. if (!options)
  40459. options = {};
  40460. let object = {};
  40461. if (options.defaults) {
  40462. if ($util.Long) {
  40463. let long = new $util.Long(0, 0, false);
  40464. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  40465. } else
  40466. object.errno = options.longs === String ? "0" : 0;
  40467. object.data = null;
  40468. }
  40469. if (message.errno != null && message.hasOwnProperty("errno"))
  40470. if (typeof message.errno === "number")
  40471. object.errno = options.longs === String ? String(message.errno) : message.errno;
  40472. else
  40473. 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;
  40474. if (message.data != null && message.hasOwnProperty("data"))
  40475. object.data = $root.game.daily_dungeons_info.toObject(message.data, options);
  40476. return object;
  40477. };
  40478. /**
  40479. * Converts this daily_dungeons_end_rsp to JSON.
  40480. * @function toJSON
  40481. * @memberof game.daily_dungeons_end_rsp
  40482. * @instance
  40483. * @returns {Object.<string,*>} JSON object
  40484. */
  40485. daily_dungeons_end_rsp.prototype.toJSON = function toJSON() {
  40486. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  40487. };
  40488. return daily_dungeons_end_rsp;
  40489. })();
  40490. game.daily_dungeons_sweep = (function() {
  40491. /**
  40492. * Properties of a daily_dungeons_sweep.
  40493. * @memberof game
  40494. * @interface Idaily_dungeons_sweep
  40495. * @property {number|Long|null} [type] daily_dungeons_sweep type
  40496. * @property {number|Long|null} [diff] daily_dungeons_sweep diff
  40497. */
  40498. /**
  40499. * Constructs a new daily_dungeons_sweep.
  40500. * @memberof game
  40501. * @classdesc Represents a daily_dungeons_sweep.
  40502. * @implements Idaily_dungeons_sweep
  40503. * @constructor
  40504. * @param {game.Idaily_dungeons_sweep=} [properties] Properties to set
  40505. */
  40506. function daily_dungeons_sweep(properties) {
  40507. if (properties)
  40508. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  40509. if (properties[keys[i]] != null)
  40510. this[keys[i]] = properties[keys[i]];
  40511. }
  40512. /**
  40513. * daily_dungeons_sweep type.
  40514. * @member {number|Long} type
  40515. * @memberof game.daily_dungeons_sweep
  40516. * @instance
  40517. */
  40518. daily_dungeons_sweep.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  40519. /**
  40520. * daily_dungeons_sweep diff.
  40521. * @member {number|Long} diff
  40522. * @memberof game.daily_dungeons_sweep
  40523. * @instance
  40524. */
  40525. daily_dungeons_sweep.prototype.diff = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  40526. /**
  40527. * Creates a new daily_dungeons_sweep instance using the specified properties.
  40528. * @function create
  40529. * @memberof game.daily_dungeons_sweep
  40530. * @static
  40531. * @param {game.Idaily_dungeons_sweep=} [properties] Properties to set
  40532. * @returns {game.daily_dungeons_sweep} daily_dungeons_sweep instance
  40533. */
  40534. daily_dungeons_sweep.create = function create(properties) {
  40535. return new daily_dungeons_sweep(properties);
  40536. };
  40537. /**
  40538. * Encodes the specified daily_dungeons_sweep message. Does not implicitly {@link game.daily_dungeons_sweep.verify|verify} messages.
  40539. * @function encode
  40540. * @memberof game.daily_dungeons_sweep
  40541. * @static
  40542. * @param {game.Idaily_dungeons_sweep} message daily_dungeons_sweep message or plain object to encode
  40543. * @param {$protobuf.Writer} [writer] Writer to encode to
  40544. * @returns {$protobuf.Writer} Writer
  40545. */
  40546. daily_dungeons_sweep.encode = function encode(message, writer) {
  40547. if (!writer)
  40548. writer = $Writer.create();
  40549. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  40550. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
  40551. if (message.diff != null && Object.hasOwnProperty.call(message, "diff"))
  40552. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.diff);
  40553. return writer;
  40554. };
  40555. /**
  40556. * Encodes the specified daily_dungeons_sweep message, length delimited. Does not implicitly {@link game.daily_dungeons_sweep.verify|verify} messages.
  40557. * @function encodeDelimited
  40558. * @memberof game.daily_dungeons_sweep
  40559. * @static
  40560. * @param {game.Idaily_dungeons_sweep} message daily_dungeons_sweep message or plain object to encode
  40561. * @param {$protobuf.Writer} [writer] Writer to encode to
  40562. * @returns {$protobuf.Writer} Writer
  40563. */
  40564. daily_dungeons_sweep.encodeDelimited = function encodeDelimited(message, writer) {
  40565. return this.encode(message, writer).ldelim();
  40566. };
  40567. /**
  40568. * Decodes a daily_dungeons_sweep message from the specified reader or buffer.
  40569. * @function decode
  40570. * @memberof game.daily_dungeons_sweep
  40571. * @static
  40572. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  40573. * @param {number} [length] Message length if known beforehand
  40574. * @returns {game.daily_dungeons_sweep} daily_dungeons_sweep
  40575. * @throws {Error} If the payload is not a reader or valid buffer
  40576. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  40577. */
  40578. daily_dungeons_sweep.decode = function decode(reader, length) {
  40579. if (!(reader instanceof $Reader))
  40580. reader = $Reader.create(reader);
  40581. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.daily_dungeons_sweep();
  40582. while (reader.pos < end) {
  40583. let tag = reader.uint32();
  40584. switch (tag >>> 3) {
  40585. case 1:
  40586. message.type = reader.int64();
  40587. break;
  40588. case 2:
  40589. message.diff = reader.int64();
  40590. break;
  40591. default:
  40592. reader.skipType(tag & 7);
  40593. break;
  40594. }
  40595. }
  40596. return message;
  40597. };
  40598. /**
  40599. * Decodes a daily_dungeons_sweep message from the specified reader or buffer, length delimited.
  40600. * @function decodeDelimited
  40601. * @memberof game.daily_dungeons_sweep
  40602. * @static
  40603. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  40604. * @returns {game.daily_dungeons_sweep} daily_dungeons_sweep
  40605. * @throws {Error} If the payload is not a reader or valid buffer
  40606. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  40607. */
  40608. daily_dungeons_sweep.decodeDelimited = function decodeDelimited(reader) {
  40609. if (!(reader instanceof $Reader))
  40610. reader = new $Reader(reader);
  40611. return this.decode(reader, reader.uint32());
  40612. };
  40613. /**
  40614. * Verifies a daily_dungeons_sweep message.
  40615. * @function verify
  40616. * @memberof game.daily_dungeons_sweep
  40617. * @static
  40618. * @param {Object.<string,*>} message Plain object to verify
  40619. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  40620. */
  40621. daily_dungeons_sweep.verify = function verify(message) {
  40622. if (typeof message !== "object" || message === null)
  40623. return "object expected";
  40624. if (message.type != null && message.hasOwnProperty("type"))
  40625. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  40626. return "type: integer|Long expected";
  40627. if (message.diff != null && message.hasOwnProperty("diff"))
  40628. if (!$util.isInteger(message.diff) && !(message.diff && $util.isInteger(message.diff.low) && $util.isInteger(message.diff.high)))
  40629. return "diff: integer|Long expected";
  40630. return null;
  40631. };
  40632. /**
  40633. * Creates a daily_dungeons_sweep message from a plain object. Also converts values to their respective internal types.
  40634. * @function fromObject
  40635. * @memberof game.daily_dungeons_sweep
  40636. * @static
  40637. * @param {Object.<string,*>} object Plain object
  40638. * @returns {game.daily_dungeons_sweep} daily_dungeons_sweep
  40639. */
  40640. daily_dungeons_sweep.fromObject = function fromObject(object) {
  40641. if (object instanceof $root.game.daily_dungeons_sweep)
  40642. return object;
  40643. let message = new $root.game.daily_dungeons_sweep();
  40644. if (object.type != null)
  40645. if ($util.Long)
  40646. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  40647. else if (typeof object.type === "string")
  40648. message.type = parseInt(object.type, 10);
  40649. else if (typeof object.type === "number")
  40650. message.type = object.type;
  40651. else if (typeof object.type === "object")
  40652. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  40653. if (object.diff != null)
  40654. if ($util.Long)
  40655. (message.diff = $util.Long.fromValue(object.diff)).unsigned = false;
  40656. else if (typeof object.diff === "string")
  40657. message.diff = parseInt(object.diff, 10);
  40658. else if (typeof object.diff === "number")
  40659. message.diff = object.diff;
  40660. else if (typeof object.diff === "object")
  40661. message.diff = new $util.LongBits(object.diff.low >>> 0, object.diff.high >>> 0).toNumber();
  40662. return message;
  40663. };
  40664. /**
  40665. * Creates a plain object from a daily_dungeons_sweep message. Also converts values to other types if specified.
  40666. * @function toObject
  40667. * @memberof game.daily_dungeons_sweep
  40668. * @static
  40669. * @param {game.daily_dungeons_sweep} message daily_dungeons_sweep
  40670. * @param {$protobuf.IConversionOptions} [options] Conversion options
  40671. * @returns {Object.<string,*>} Plain object
  40672. */
  40673. daily_dungeons_sweep.toObject = function toObject(message, options) {
  40674. if (!options)
  40675. options = {};
  40676. let object = {};
  40677. if (options.defaults) {
  40678. if ($util.Long) {
  40679. let long = new $util.Long(0, 0, false);
  40680. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  40681. } else
  40682. object.type = options.longs === String ? "0" : 0;
  40683. if ($util.Long) {
  40684. let long = new $util.Long(0, 0, false);
  40685. object.diff = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  40686. } else
  40687. object.diff = options.longs === String ? "0" : 0;
  40688. }
  40689. if (message.type != null && message.hasOwnProperty("type"))
  40690. if (typeof message.type === "number")
  40691. object.type = options.longs === String ? String(message.type) : message.type;
  40692. else
  40693. 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;
  40694. if (message.diff != null && message.hasOwnProperty("diff"))
  40695. if (typeof message.diff === "number")
  40696. object.diff = options.longs === String ? String(message.diff) : message.diff;
  40697. else
  40698. 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;
  40699. return object;
  40700. };
  40701. /**
  40702. * Converts this daily_dungeons_sweep to JSON.
  40703. * @function toJSON
  40704. * @memberof game.daily_dungeons_sweep
  40705. * @instance
  40706. * @returns {Object.<string,*>} JSON object
  40707. */
  40708. daily_dungeons_sweep.prototype.toJSON = function toJSON() {
  40709. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  40710. };
  40711. return daily_dungeons_sweep;
  40712. })();
  40713. game.daily_dungeons_sweep_rsp = (function() {
  40714. /**
  40715. * Properties of a daily_dungeons_sweep_rsp.
  40716. * @memberof game
  40717. * @interface Idaily_dungeons_sweep_rsp
  40718. * @property {number|Long|null} [errno] daily_dungeons_sweep_rsp errno
  40719. * @property {game.Idaily_dungeons_info|null} [data] daily_dungeons_sweep_rsp data
  40720. */
  40721. /**
  40722. * Constructs a new daily_dungeons_sweep_rsp.
  40723. * @memberof game
  40724. * @classdesc Represents a daily_dungeons_sweep_rsp.
  40725. * @implements Idaily_dungeons_sweep_rsp
  40726. * @constructor
  40727. * @param {game.Idaily_dungeons_sweep_rsp=} [properties] Properties to set
  40728. */
  40729. function daily_dungeons_sweep_rsp(properties) {
  40730. if (properties)
  40731. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  40732. if (properties[keys[i]] != null)
  40733. this[keys[i]] = properties[keys[i]];
  40734. }
  40735. /**
  40736. * daily_dungeons_sweep_rsp errno.
  40737. * @member {number|Long} errno
  40738. * @memberof game.daily_dungeons_sweep_rsp
  40739. * @instance
  40740. */
  40741. daily_dungeons_sweep_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  40742. /**
  40743. * daily_dungeons_sweep_rsp data.
  40744. * @member {game.Idaily_dungeons_info|null|undefined} data
  40745. * @memberof game.daily_dungeons_sweep_rsp
  40746. * @instance
  40747. */
  40748. daily_dungeons_sweep_rsp.prototype.data = null;
  40749. /**
  40750. * Creates a new daily_dungeons_sweep_rsp instance using the specified properties.
  40751. * @function create
  40752. * @memberof game.daily_dungeons_sweep_rsp
  40753. * @static
  40754. * @param {game.Idaily_dungeons_sweep_rsp=} [properties] Properties to set
  40755. * @returns {game.daily_dungeons_sweep_rsp} daily_dungeons_sweep_rsp instance
  40756. */
  40757. daily_dungeons_sweep_rsp.create = function create(properties) {
  40758. return new daily_dungeons_sweep_rsp(properties);
  40759. };
  40760. /**
  40761. * Encodes the specified daily_dungeons_sweep_rsp message. Does not implicitly {@link game.daily_dungeons_sweep_rsp.verify|verify} messages.
  40762. * @function encode
  40763. * @memberof game.daily_dungeons_sweep_rsp
  40764. * @static
  40765. * @param {game.Idaily_dungeons_sweep_rsp} message daily_dungeons_sweep_rsp message or plain object to encode
  40766. * @param {$protobuf.Writer} [writer] Writer to encode to
  40767. * @returns {$protobuf.Writer} Writer
  40768. */
  40769. daily_dungeons_sweep_rsp.encode = function encode(message, writer) {
  40770. if (!writer)
  40771. writer = $Writer.create();
  40772. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  40773. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  40774. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  40775. $root.game.daily_dungeons_info.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  40776. return writer;
  40777. };
  40778. /**
  40779. * Encodes the specified daily_dungeons_sweep_rsp message, length delimited. Does not implicitly {@link game.daily_dungeons_sweep_rsp.verify|verify} messages.
  40780. * @function encodeDelimited
  40781. * @memberof game.daily_dungeons_sweep_rsp
  40782. * @static
  40783. * @param {game.Idaily_dungeons_sweep_rsp} message daily_dungeons_sweep_rsp message or plain object to encode
  40784. * @param {$protobuf.Writer} [writer] Writer to encode to
  40785. * @returns {$protobuf.Writer} Writer
  40786. */
  40787. daily_dungeons_sweep_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  40788. return this.encode(message, writer).ldelim();
  40789. };
  40790. /**
  40791. * Decodes a daily_dungeons_sweep_rsp message from the specified reader or buffer.
  40792. * @function decode
  40793. * @memberof game.daily_dungeons_sweep_rsp
  40794. * @static
  40795. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  40796. * @param {number} [length] Message length if known beforehand
  40797. * @returns {game.daily_dungeons_sweep_rsp} daily_dungeons_sweep_rsp
  40798. * @throws {Error} If the payload is not a reader or valid buffer
  40799. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  40800. */
  40801. daily_dungeons_sweep_rsp.decode = function decode(reader, length) {
  40802. if (!(reader instanceof $Reader))
  40803. reader = $Reader.create(reader);
  40804. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.daily_dungeons_sweep_rsp();
  40805. while (reader.pos < end) {
  40806. let tag = reader.uint32();
  40807. switch (tag >>> 3) {
  40808. case 1:
  40809. message.errno = reader.int64();
  40810. break;
  40811. case 2:
  40812. message.data = $root.game.daily_dungeons_info.decode(reader, reader.uint32());
  40813. break;
  40814. default:
  40815. reader.skipType(tag & 7);
  40816. break;
  40817. }
  40818. }
  40819. return message;
  40820. };
  40821. /**
  40822. * Decodes a daily_dungeons_sweep_rsp message from the specified reader or buffer, length delimited.
  40823. * @function decodeDelimited
  40824. * @memberof game.daily_dungeons_sweep_rsp
  40825. * @static
  40826. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  40827. * @returns {game.daily_dungeons_sweep_rsp} daily_dungeons_sweep_rsp
  40828. * @throws {Error} If the payload is not a reader or valid buffer
  40829. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  40830. */
  40831. daily_dungeons_sweep_rsp.decodeDelimited = function decodeDelimited(reader) {
  40832. if (!(reader instanceof $Reader))
  40833. reader = new $Reader(reader);
  40834. return this.decode(reader, reader.uint32());
  40835. };
  40836. /**
  40837. * Verifies a daily_dungeons_sweep_rsp message.
  40838. * @function verify
  40839. * @memberof game.daily_dungeons_sweep_rsp
  40840. * @static
  40841. * @param {Object.<string,*>} message Plain object to verify
  40842. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  40843. */
  40844. daily_dungeons_sweep_rsp.verify = function verify(message) {
  40845. if (typeof message !== "object" || message === null)
  40846. return "object expected";
  40847. if (message.errno != null && message.hasOwnProperty("errno"))
  40848. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  40849. return "errno: integer|Long expected";
  40850. if (message.data != null && message.hasOwnProperty("data")) {
  40851. let error = $root.game.daily_dungeons_info.verify(message.data);
  40852. if (error)
  40853. return "data." + error;
  40854. }
  40855. return null;
  40856. };
  40857. /**
  40858. * Creates a daily_dungeons_sweep_rsp message from a plain object. Also converts values to their respective internal types.
  40859. * @function fromObject
  40860. * @memberof game.daily_dungeons_sweep_rsp
  40861. * @static
  40862. * @param {Object.<string,*>} object Plain object
  40863. * @returns {game.daily_dungeons_sweep_rsp} daily_dungeons_sweep_rsp
  40864. */
  40865. daily_dungeons_sweep_rsp.fromObject = function fromObject(object) {
  40866. if (object instanceof $root.game.daily_dungeons_sweep_rsp)
  40867. return object;
  40868. let message = new $root.game.daily_dungeons_sweep_rsp();
  40869. if (object.errno != null)
  40870. if ($util.Long)
  40871. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  40872. else if (typeof object.errno === "string")
  40873. message.errno = parseInt(object.errno, 10);
  40874. else if (typeof object.errno === "number")
  40875. message.errno = object.errno;
  40876. else if (typeof object.errno === "object")
  40877. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  40878. if (object.data != null) {
  40879. if (typeof object.data !== "object")
  40880. throw TypeError(".game.daily_dungeons_sweep_rsp.data: object expected");
  40881. message.data = $root.game.daily_dungeons_info.fromObject(object.data);
  40882. }
  40883. return message;
  40884. };
  40885. /**
  40886. * Creates a plain object from a daily_dungeons_sweep_rsp message. Also converts values to other types if specified.
  40887. * @function toObject
  40888. * @memberof game.daily_dungeons_sweep_rsp
  40889. * @static
  40890. * @param {game.daily_dungeons_sweep_rsp} message daily_dungeons_sweep_rsp
  40891. * @param {$protobuf.IConversionOptions} [options] Conversion options
  40892. * @returns {Object.<string,*>} Plain object
  40893. */
  40894. daily_dungeons_sweep_rsp.toObject = function toObject(message, options) {
  40895. if (!options)
  40896. options = {};
  40897. let object = {};
  40898. if (options.defaults) {
  40899. if ($util.Long) {
  40900. let long = new $util.Long(0, 0, false);
  40901. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  40902. } else
  40903. object.errno = options.longs === String ? "0" : 0;
  40904. object.data = null;
  40905. }
  40906. if (message.errno != null && message.hasOwnProperty("errno"))
  40907. if (typeof message.errno === "number")
  40908. object.errno = options.longs === String ? String(message.errno) : message.errno;
  40909. else
  40910. 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;
  40911. if (message.data != null && message.hasOwnProperty("data"))
  40912. object.data = $root.game.daily_dungeons_info.toObject(message.data, options);
  40913. return object;
  40914. };
  40915. /**
  40916. * Converts this daily_dungeons_sweep_rsp to JSON.
  40917. * @function toJSON
  40918. * @memberof game.daily_dungeons_sweep_rsp
  40919. * @instance
  40920. * @returns {Object.<string,*>} JSON object
  40921. */
  40922. daily_dungeons_sweep_rsp.prototype.toJSON = function toJSON() {
  40923. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  40924. };
  40925. return daily_dungeons_sweep_rsp;
  40926. })();
  40927. game.adv_gift_data = (function() {
  40928. /**
  40929. * Properties of an adv_gift_data.
  40930. * @memberof game
  40931. * @interface Iadv_gift_data
  40932. */
  40933. /**
  40934. * Constructs a new adv_gift_data.
  40935. * @memberof game
  40936. * @classdesc Represents an adv_gift_data.
  40937. * @implements Iadv_gift_data
  40938. * @constructor
  40939. * @param {game.Iadv_gift_data=} [properties] Properties to set
  40940. */
  40941. function adv_gift_data(properties) {
  40942. if (properties)
  40943. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  40944. if (properties[keys[i]] != null)
  40945. this[keys[i]] = properties[keys[i]];
  40946. }
  40947. /**
  40948. * Creates a new adv_gift_data instance using the specified properties.
  40949. * @function create
  40950. * @memberof game.adv_gift_data
  40951. * @static
  40952. * @param {game.Iadv_gift_data=} [properties] Properties to set
  40953. * @returns {game.adv_gift_data} adv_gift_data instance
  40954. */
  40955. adv_gift_data.create = function create(properties) {
  40956. return new adv_gift_data(properties);
  40957. };
  40958. /**
  40959. * Encodes the specified adv_gift_data message. Does not implicitly {@link game.adv_gift_data.verify|verify} messages.
  40960. * @function encode
  40961. * @memberof game.adv_gift_data
  40962. * @static
  40963. * @param {game.Iadv_gift_data} message adv_gift_data message or plain object to encode
  40964. * @param {$protobuf.Writer} [writer] Writer to encode to
  40965. * @returns {$protobuf.Writer} Writer
  40966. */
  40967. adv_gift_data.encode = function encode(message, writer) {
  40968. if (!writer)
  40969. writer = $Writer.create();
  40970. return writer;
  40971. };
  40972. /**
  40973. * Encodes the specified adv_gift_data message, length delimited. Does not implicitly {@link game.adv_gift_data.verify|verify} messages.
  40974. * @function encodeDelimited
  40975. * @memberof game.adv_gift_data
  40976. * @static
  40977. * @param {game.Iadv_gift_data} message adv_gift_data message or plain object to encode
  40978. * @param {$protobuf.Writer} [writer] Writer to encode to
  40979. * @returns {$protobuf.Writer} Writer
  40980. */
  40981. adv_gift_data.encodeDelimited = function encodeDelimited(message, writer) {
  40982. return this.encode(message, writer).ldelim();
  40983. };
  40984. /**
  40985. * Decodes an adv_gift_data message from the specified reader or buffer.
  40986. * @function decode
  40987. * @memberof game.adv_gift_data
  40988. * @static
  40989. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  40990. * @param {number} [length] Message length if known beforehand
  40991. * @returns {game.adv_gift_data} adv_gift_data
  40992. * @throws {Error} If the payload is not a reader or valid buffer
  40993. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  40994. */
  40995. adv_gift_data.decode = function decode(reader, length) {
  40996. if (!(reader instanceof $Reader))
  40997. reader = $Reader.create(reader);
  40998. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adv_gift_data();
  40999. while (reader.pos < end) {
  41000. let tag = reader.uint32();
  41001. switch (tag >>> 3) {
  41002. default:
  41003. reader.skipType(tag & 7);
  41004. break;
  41005. }
  41006. }
  41007. return message;
  41008. };
  41009. /**
  41010. * Decodes an adv_gift_data message from the specified reader or buffer, length delimited.
  41011. * @function decodeDelimited
  41012. * @memberof game.adv_gift_data
  41013. * @static
  41014. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  41015. * @returns {game.adv_gift_data} adv_gift_data
  41016. * @throws {Error} If the payload is not a reader or valid buffer
  41017. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  41018. */
  41019. adv_gift_data.decodeDelimited = function decodeDelimited(reader) {
  41020. if (!(reader instanceof $Reader))
  41021. reader = new $Reader(reader);
  41022. return this.decode(reader, reader.uint32());
  41023. };
  41024. /**
  41025. * Verifies an adv_gift_data message.
  41026. * @function verify
  41027. * @memberof game.adv_gift_data
  41028. * @static
  41029. * @param {Object.<string,*>} message Plain object to verify
  41030. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  41031. */
  41032. adv_gift_data.verify = function verify(message) {
  41033. if (typeof message !== "object" || message === null)
  41034. return "object expected";
  41035. return null;
  41036. };
  41037. /**
  41038. * Creates an adv_gift_data message from a plain object. Also converts values to their respective internal types.
  41039. * @function fromObject
  41040. * @memberof game.adv_gift_data
  41041. * @static
  41042. * @param {Object.<string,*>} object Plain object
  41043. * @returns {game.adv_gift_data} adv_gift_data
  41044. */
  41045. adv_gift_data.fromObject = function fromObject(object) {
  41046. if (object instanceof $root.game.adv_gift_data)
  41047. return object;
  41048. return new $root.game.adv_gift_data();
  41049. };
  41050. /**
  41051. * Creates a plain object from an adv_gift_data message. Also converts values to other types if specified.
  41052. * @function toObject
  41053. * @memberof game.adv_gift_data
  41054. * @static
  41055. * @param {game.adv_gift_data} message adv_gift_data
  41056. * @param {$protobuf.IConversionOptions} [options] Conversion options
  41057. * @returns {Object.<string,*>} Plain object
  41058. */
  41059. adv_gift_data.toObject = function toObject() {
  41060. return {};
  41061. };
  41062. /**
  41063. * Converts this adv_gift_data to JSON.
  41064. * @function toJSON
  41065. * @memberof game.adv_gift_data
  41066. * @instance
  41067. * @returns {Object.<string,*>} JSON object
  41068. */
  41069. adv_gift_data.prototype.toJSON = function toJSON() {
  41070. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  41071. };
  41072. return adv_gift_data;
  41073. })();
  41074. game.adv_gift_data_rsp = (function() {
  41075. /**
  41076. * Properties of an adv_gift_data_rsp.
  41077. * @memberof game
  41078. * @interface Iadv_gift_data_rsp
  41079. * @property {number|Long|null} [errno] adv_gift_data_rsp errno
  41080. */
  41081. /**
  41082. * Constructs a new adv_gift_data_rsp.
  41083. * @memberof game
  41084. * @classdesc Represents an adv_gift_data_rsp.
  41085. * @implements Iadv_gift_data_rsp
  41086. * @constructor
  41087. * @param {game.Iadv_gift_data_rsp=} [properties] Properties to set
  41088. */
  41089. function adv_gift_data_rsp(properties) {
  41090. if (properties)
  41091. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  41092. if (properties[keys[i]] != null)
  41093. this[keys[i]] = properties[keys[i]];
  41094. }
  41095. /**
  41096. * adv_gift_data_rsp errno.
  41097. * @member {number|Long} errno
  41098. * @memberof game.adv_gift_data_rsp
  41099. * @instance
  41100. */
  41101. adv_gift_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  41102. /**
  41103. * Creates a new adv_gift_data_rsp instance using the specified properties.
  41104. * @function create
  41105. * @memberof game.adv_gift_data_rsp
  41106. * @static
  41107. * @param {game.Iadv_gift_data_rsp=} [properties] Properties to set
  41108. * @returns {game.adv_gift_data_rsp} adv_gift_data_rsp instance
  41109. */
  41110. adv_gift_data_rsp.create = function create(properties) {
  41111. return new adv_gift_data_rsp(properties);
  41112. };
  41113. /**
  41114. * Encodes the specified adv_gift_data_rsp message. Does not implicitly {@link game.adv_gift_data_rsp.verify|verify} messages.
  41115. * @function encode
  41116. * @memberof game.adv_gift_data_rsp
  41117. * @static
  41118. * @param {game.Iadv_gift_data_rsp} message adv_gift_data_rsp message or plain object to encode
  41119. * @param {$protobuf.Writer} [writer] Writer to encode to
  41120. * @returns {$protobuf.Writer} Writer
  41121. */
  41122. adv_gift_data_rsp.encode = function encode(message, writer) {
  41123. if (!writer)
  41124. writer = $Writer.create();
  41125. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  41126. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  41127. return writer;
  41128. };
  41129. /**
  41130. * Encodes the specified adv_gift_data_rsp message, length delimited. Does not implicitly {@link game.adv_gift_data_rsp.verify|verify} messages.
  41131. * @function encodeDelimited
  41132. * @memberof game.adv_gift_data_rsp
  41133. * @static
  41134. * @param {game.Iadv_gift_data_rsp} message adv_gift_data_rsp message or plain object to encode
  41135. * @param {$protobuf.Writer} [writer] Writer to encode to
  41136. * @returns {$protobuf.Writer} Writer
  41137. */
  41138. adv_gift_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  41139. return this.encode(message, writer).ldelim();
  41140. };
  41141. /**
  41142. * Decodes an adv_gift_data_rsp message from the specified reader or buffer.
  41143. * @function decode
  41144. * @memberof game.adv_gift_data_rsp
  41145. * @static
  41146. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  41147. * @param {number} [length] Message length if known beforehand
  41148. * @returns {game.adv_gift_data_rsp} adv_gift_data_rsp
  41149. * @throws {Error} If the payload is not a reader or valid buffer
  41150. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  41151. */
  41152. adv_gift_data_rsp.decode = function decode(reader, length) {
  41153. if (!(reader instanceof $Reader))
  41154. reader = $Reader.create(reader);
  41155. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adv_gift_data_rsp();
  41156. while (reader.pos < end) {
  41157. let tag = reader.uint32();
  41158. switch (tag >>> 3) {
  41159. case 1:
  41160. message.errno = reader.int64();
  41161. break;
  41162. default:
  41163. reader.skipType(tag & 7);
  41164. break;
  41165. }
  41166. }
  41167. return message;
  41168. };
  41169. /**
  41170. * Decodes an adv_gift_data_rsp message from the specified reader or buffer, length delimited.
  41171. * @function decodeDelimited
  41172. * @memberof game.adv_gift_data_rsp
  41173. * @static
  41174. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  41175. * @returns {game.adv_gift_data_rsp} adv_gift_data_rsp
  41176. * @throws {Error} If the payload is not a reader or valid buffer
  41177. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  41178. */
  41179. adv_gift_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  41180. if (!(reader instanceof $Reader))
  41181. reader = new $Reader(reader);
  41182. return this.decode(reader, reader.uint32());
  41183. };
  41184. /**
  41185. * Verifies an adv_gift_data_rsp message.
  41186. * @function verify
  41187. * @memberof game.adv_gift_data_rsp
  41188. * @static
  41189. * @param {Object.<string,*>} message Plain object to verify
  41190. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  41191. */
  41192. adv_gift_data_rsp.verify = function verify(message) {
  41193. if (typeof message !== "object" || message === null)
  41194. return "object expected";
  41195. if (message.errno != null && message.hasOwnProperty("errno"))
  41196. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  41197. return "errno: integer|Long expected";
  41198. return null;
  41199. };
  41200. /**
  41201. * Creates an adv_gift_data_rsp message from a plain object. Also converts values to their respective internal types.
  41202. * @function fromObject
  41203. * @memberof game.adv_gift_data_rsp
  41204. * @static
  41205. * @param {Object.<string,*>} object Plain object
  41206. * @returns {game.adv_gift_data_rsp} adv_gift_data_rsp
  41207. */
  41208. adv_gift_data_rsp.fromObject = function fromObject(object) {
  41209. if (object instanceof $root.game.adv_gift_data_rsp)
  41210. return object;
  41211. let message = new $root.game.adv_gift_data_rsp();
  41212. if (object.errno != null)
  41213. if ($util.Long)
  41214. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  41215. else if (typeof object.errno === "string")
  41216. message.errno = parseInt(object.errno, 10);
  41217. else if (typeof object.errno === "number")
  41218. message.errno = object.errno;
  41219. else if (typeof object.errno === "object")
  41220. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  41221. return message;
  41222. };
  41223. /**
  41224. * Creates a plain object from an adv_gift_data_rsp message. Also converts values to other types if specified.
  41225. * @function toObject
  41226. * @memberof game.adv_gift_data_rsp
  41227. * @static
  41228. * @param {game.adv_gift_data_rsp} message adv_gift_data_rsp
  41229. * @param {$protobuf.IConversionOptions} [options] Conversion options
  41230. * @returns {Object.<string,*>} Plain object
  41231. */
  41232. adv_gift_data_rsp.toObject = function toObject(message, options) {
  41233. if (!options)
  41234. options = {};
  41235. let object = {};
  41236. if (options.defaults)
  41237. if ($util.Long) {
  41238. let long = new $util.Long(0, 0, false);
  41239. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  41240. } else
  41241. object.errno = options.longs === String ? "0" : 0;
  41242. if (message.errno != null && message.hasOwnProperty("errno"))
  41243. if (typeof message.errno === "number")
  41244. object.errno = options.longs === String ? String(message.errno) : message.errno;
  41245. else
  41246. 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;
  41247. return object;
  41248. };
  41249. /**
  41250. * Converts this adv_gift_data_rsp to JSON.
  41251. * @function toJSON
  41252. * @memberof game.adv_gift_data_rsp
  41253. * @instance
  41254. * @returns {Object.<string,*>} JSON object
  41255. */
  41256. adv_gift_data_rsp.prototype.toJSON = function toJSON() {
  41257. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  41258. };
  41259. return adv_gift_data_rsp;
  41260. })();
  41261. game.adv_gift_buy = (function() {
  41262. /**
  41263. * Properties of an adv_gift_buy.
  41264. * @memberof game
  41265. * @interface Iadv_gift_buy
  41266. * @property {number|Long|null} [id] adv_gift_buy id
  41267. */
  41268. /**
  41269. * Constructs a new adv_gift_buy.
  41270. * @memberof game
  41271. * @classdesc Represents an adv_gift_buy.
  41272. * @implements Iadv_gift_buy
  41273. * @constructor
  41274. * @param {game.Iadv_gift_buy=} [properties] Properties to set
  41275. */
  41276. function adv_gift_buy(properties) {
  41277. if (properties)
  41278. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  41279. if (properties[keys[i]] != null)
  41280. this[keys[i]] = properties[keys[i]];
  41281. }
  41282. /**
  41283. * adv_gift_buy id.
  41284. * @member {number|Long} id
  41285. * @memberof game.adv_gift_buy
  41286. * @instance
  41287. */
  41288. adv_gift_buy.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  41289. /**
  41290. * Creates a new adv_gift_buy instance using the specified properties.
  41291. * @function create
  41292. * @memberof game.adv_gift_buy
  41293. * @static
  41294. * @param {game.Iadv_gift_buy=} [properties] Properties to set
  41295. * @returns {game.adv_gift_buy} adv_gift_buy instance
  41296. */
  41297. adv_gift_buy.create = function create(properties) {
  41298. return new adv_gift_buy(properties);
  41299. };
  41300. /**
  41301. * Encodes the specified adv_gift_buy message. Does not implicitly {@link game.adv_gift_buy.verify|verify} messages.
  41302. * @function encode
  41303. * @memberof game.adv_gift_buy
  41304. * @static
  41305. * @param {game.Iadv_gift_buy} message adv_gift_buy message or plain object to encode
  41306. * @param {$protobuf.Writer} [writer] Writer to encode to
  41307. * @returns {$protobuf.Writer} Writer
  41308. */
  41309. adv_gift_buy.encode = function encode(message, writer) {
  41310. if (!writer)
  41311. writer = $Writer.create();
  41312. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  41313. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id);
  41314. return writer;
  41315. };
  41316. /**
  41317. * Encodes the specified adv_gift_buy message, length delimited. Does not implicitly {@link game.adv_gift_buy.verify|verify} messages.
  41318. * @function encodeDelimited
  41319. * @memberof game.adv_gift_buy
  41320. * @static
  41321. * @param {game.Iadv_gift_buy} message adv_gift_buy message or plain object to encode
  41322. * @param {$protobuf.Writer} [writer] Writer to encode to
  41323. * @returns {$protobuf.Writer} Writer
  41324. */
  41325. adv_gift_buy.encodeDelimited = function encodeDelimited(message, writer) {
  41326. return this.encode(message, writer).ldelim();
  41327. };
  41328. /**
  41329. * Decodes an adv_gift_buy message from the specified reader or buffer.
  41330. * @function decode
  41331. * @memberof game.adv_gift_buy
  41332. * @static
  41333. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  41334. * @param {number} [length] Message length if known beforehand
  41335. * @returns {game.adv_gift_buy} adv_gift_buy
  41336. * @throws {Error} If the payload is not a reader or valid buffer
  41337. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  41338. */
  41339. adv_gift_buy.decode = function decode(reader, length) {
  41340. if (!(reader instanceof $Reader))
  41341. reader = $Reader.create(reader);
  41342. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adv_gift_buy();
  41343. while (reader.pos < end) {
  41344. let tag = reader.uint32();
  41345. switch (tag >>> 3) {
  41346. case 2:
  41347. message.id = reader.int64();
  41348. break;
  41349. default:
  41350. reader.skipType(tag & 7);
  41351. break;
  41352. }
  41353. }
  41354. return message;
  41355. };
  41356. /**
  41357. * Decodes an adv_gift_buy message from the specified reader or buffer, length delimited.
  41358. * @function decodeDelimited
  41359. * @memberof game.adv_gift_buy
  41360. * @static
  41361. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  41362. * @returns {game.adv_gift_buy} adv_gift_buy
  41363. * @throws {Error} If the payload is not a reader or valid buffer
  41364. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  41365. */
  41366. adv_gift_buy.decodeDelimited = function decodeDelimited(reader) {
  41367. if (!(reader instanceof $Reader))
  41368. reader = new $Reader(reader);
  41369. return this.decode(reader, reader.uint32());
  41370. };
  41371. /**
  41372. * Verifies an adv_gift_buy message.
  41373. * @function verify
  41374. * @memberof game.adv_gift_buy
  41375. * @static
  41376. * @param {Object.<string,*>} message Plain object to verify
  41377. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  41378. */
  41379. adv_gift_buy.verify = function verify(message) {
  41380. if (typeof message !== "object" || message === null)
  41381. return "object expected";
  41382. if (message.id != null && message.hasOwnProperty("id"))
  41383. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  41384. return "id: integer|Long expected";
  41385. return null;
  41386. };
  41387. /**
  41388. * Creates an adv_gift_buy message from a plain object. Also converts values to their respective internal types.
  41389. * @function fromObject
  41390. * @memberof game.adv_gift_buy
  41391. * @static
  41392. * @param {Object.<string,*>} object Plain object
  41393. * @returns {game.adv_gift_buy} adv_gift_buy
  41394. */
  41395. adv_gift_buy.fromObject = function fromObject(object) {
  41396. if (object instanceof $root.game.adv_gift_buy)
  41397. return object;
  41398. let message = new $root.game.adv_gift_buy();
  41399. if (object.id != null)
  41400. if ($util.Long)
  41401. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  41402. else if (typeof object.id === "string")
  41403. message.id = parseInt(object.id, 10);
  41404. else if (typeof object.id === "number")
  41405. message.id = object.id;
  41406. else if (typeof object.id === "object")
  41407. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  41408. return message;
  41409. };
  41410. /**
  41411. * Creates a plain object from an adv_gift_buy message. Also converts values to other types if specified.
  41412. * @function toObject
  41413. * @memberof game.adv_gift_buy
  41414. * @static
  41415. * @param {game.adv_gift_buy} message adv_gift_buy
  41416. * @param {$protobuf.IConversionOptions} [options] Conversion options
  41417. * @returns {Object.<string,*>} Plain object
  41418. */
  41419. adv_gift_buy.toObject = function toObject(message, options) {
  41420. if (!options)
  41421. options = {};
  41422. let object = {};
  41423. if (options.defaults)
  41424. if ($util.Long) {
  41425. let long = new $util.Long(0, 0, false);
  41426. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  41427. } else
  41428. object.id = options.longs === String ? "0" : 0;
  41429. if (message.id != null && message.hasOwnProperty("id"))
  41430. if (typeof message.id === "number")
  41431. object.id = options.longs === String ? String(message.id) : message.id;
  41432. else
  41433. 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;
  41434. return object;
  41435. };
  41436. /**
  41437. * Converts this adv_gift_buy to JSON.
  41438. * @function toJSON
  41439. * @memberof game.adv_gift_buy
  41440. * @instance
  41441. * @returns {Object.<string,*>} JSON object
  41442. */
  41443. adv_gift_buy.prototype.toJSON = function toJSON() {
  41444. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  41445. };
  41446. return adv_gift_buy;
  41447. })();
  41448. game.adv_gift_buy_rsp = (function() {
  41449. /**
  41450. * Properties of an adv_gift_buy_rsp.
  41451. * @memberof game
  41452. * @interface Iadv_gift_buy_rsp
  41453. * @property {number|Long|null} [errno] adv_gift_buy_rsp errno
  41454. */
  41455. /**
  41456. * Constructs a new adv_gift_buy_rsp.
  41457. * @memberof game
  41458. * @classdesc Represents an adv_gift_buy_rsp.
  41459. * @implements Iadv_gift_buy_rsp
  41460. * @constructor
  41461. * @param {game.Iadv_gift_buy_rsp=} [properties] Properties to set
  41462. */
  41463. function adv_gift_buy_rsp(properties) {
  41464. if (properties)
  41465. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  41466. if (properties[keys[i]] != null)
  41467. this[keys[i]] = properties[keys[i]];
  41468. }
  41469. /**
  41470. * adv_gift_buy_rsp errno.
  41471. * @member {number|Long} errno
  41472. * @memberof game.adv_gift_buy_rsp
  41473. * @instance
  41474. */
  41475. adv_gift_buy_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  41476. /**
  41477. * Creates a new adv_gift_buy_rsp instance using the specified properties.
  41478. * @function create
  41479. * @memberof game.adv_gift_buy_rsp
  41480. * @static
  41481. * @param {game.Iadv_gift_buy_rsp=} [properties] Properties to set
  41482. * @returns {game.adv_gift_buy_rsp} adv_gift_buy_rsp instance
  41483. */
  41484. adv_gift_buy_rsp.create = function create(properties) {
  41485. return new adv_gift_buy_rsp(properties);
  41486. };
  41487. /**
  41488. * Encodes the specified adv_gift_buy_rsp message. Does not implicitly {@link game.adv_gift_buy_rsp.verify|verify} messages.
  41489. * @function encode
  41490. * @memberof game.adv_gift_buy_rsp
  41491. * @static
  41492. * @param {game.Iadv_gift_buy_rsp} message adv_gift_buy_rsp message or plain object to encode
  41493. * @param {$protobuf.Writer} [writer] Writer to encode to
  41494. * @returns {$protobuf.Writer} Writer
  41495. */
  41496. adv_gift_buy_rsp.encode = function encode(message, writer) {
  41497. if (!writer)
  41498. writer = $Writer.create();
  41499. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  41500. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  41501. return writer;
  41502. };
  41503. /**
  41504. * Encodes the specified adv_gift_buy_rsp message, length delimited. Does not implicitly {@link game.adv_gift_buy_rsp.verify|verify} messages.
  41505. * @function encodeDelimited
  41506. * @memberof game.adv_gift_buy_rsp
  41507. * @static
  41508. * @param {game.Iadv_gift_buy_rsp} message adv_gift_buy_rsp message or plain object to encode
  41509. * @param {$protobuf.Writer} [writer] Writer to encode to
  41510. * @returns {$protobuf.Writer} Writer
  41511. */
  41512. adv_gift_buy_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  41513. return this.encode(message, writer).ldelim();
  41514. };
  41515. /**
  41516. * Decodes an adv_gift_buy_rsp message from the specified reader or buffer.
  41517. * @function decode
  41518. * @memberof game.adv_gift_buy_rsp
  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_buy_rsp} adv_gift_buy_rsp
  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_buy_rsp.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_buy_rsp();
  41530. while (reader.pos < end) {
  41531. let tag = reader.uint32();
  41532. switch (tag >>> 3) {
  41533. case 1:
  41534. message.errno = reader.int64();
  41535. break;
  41536. default:
  41537. reader.skipType(tag & 7);
  41538. break;
  41539. }
  41540. }
  41541. return message;
  41542. };
  41543. /**
  41544. * Decodes an adv_gift_buy_rsp message from the specified reader or buffer, length delimited.
  41545. * @function decodeDelimited
  41546. * @memberof game.adv_gift_buy_rsp
  41547. * @static
  41548. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  41549. * @returns {game.adv_gift_buy_rsp} adv_gift_buy_rsp
  41550. * @throws {Error} If the payload is not a reader or valid buffer
  41551. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  41552. */
  41553. adv_gift_buy_rsp.decodeDelimited = function decodeDelimited(reader) {
  41554. if (!(reader instanceof $Reader))
  41555. reader = new $Reader(reader);
  41556. return this.decode(reader, reader.uint32());
  41557. };
  41558. /**
  41559. * Verifies an adv_gift_buy_rsp message.
  41560. * @function verify
  41561. * @memberof game.adv_gift_buy_rsp
  41562. * @static
  41563. * @param {Object.<string,*>} message Plain object to verify
  41564. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  41565. */
  41566. adv_gift_buy_rsp.verify = function verify(message) {
  41567. if (typeof message !== "object" || message === null)
  41568. return "object expected";
  41569. if (message.errno != null && message.hasOwnProperty("errno"))
  41570. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  41571. return "errno: integer|Long expected";
  41572. return null;
  41573. };
  41574. /**
  41575. * Creates an adv_gift_buy_rsp message from a plain object. Also converts values to their respective internal types.
  41576. * @function fromObject
  41577. * @memberof game.adv_gift_buy_rsp
  41578. * @static
  41579. * @param {Object.<string,*>} object Plain object
  41580. * @returns {game.adv_gift_buy_rsp} adv_gift_buy_rsp
  41581. */
  41582. adv_gift_buy_rsp.fromObject = function fromObject(object) {
  41583. if (object instanceof $root.game.adv_gift_buy_rsp)
  41584. return object;
  41585. let message = new $root.game.adv_gift_buy_rsp();
  41586. if (object.errno != null)
  41587. if ($util.Long)
  41588. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  41589. else if (typeof object.errno === "string")
  41590. message.errno = parseInt(object.errno, 10);
  41591. else if (typeof object.errno === "number")
  41592. message.errno = object.errno;
  41593. else if (typeof object.errno === "object")
  41594. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  41595. return message;
  41596. };
  41597. /**
  41598. * Creates a plain object from an adv_gift_buy_rsp message. Also converts values to other types if specified.
  41599. * @function toObject
  41600. * @memberof game.adv_gift_buy_rsp
  41601. * @static
  41602. * @param {game.adv_gift_buy_rsp} message adv_gift_buy_rsp
  41603. * @param {$protobuf.IConversionOptions} [options] Conversion options
  41604. * @returns {Object.<string,*>} Plain object
  41605. */
  41606. adv_gift_buy_rsp.toObject = function toObject(message, options) {
  41607. if (!options)
  41608. options = {};
  41609. let object = {};
  41610. if (options.defaults)
  41611. if ($util.Long) {
  41612. let long = new $util.Long(0, 0, false);
  41613. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  41614. } else
  41615. object.errno = options.longs === String ? "0" : 0;
  41616. if (message.errno != null && message.hasOwnProperty("errno"))
  41617. if (typeof message.errno === "number")
  41618. object.errno = options.longs === String ? String(message.errno) : message.errno;
  41619. else
  41620. 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;
  41621. return object;
  41622. };
  41623. /**
  41624. * Converts this adv_gift_buy_rsp to JSON.
  41625. * @function toJSON
  41626. * @memberof game.adv_gift_buy_rsp
  41627. * @instance
  41628. * @returns {Object.<string,*>} JSON object
  41629. */
  41630. adv_gift_buy_rsp.prototype.toJSON = function toJSON() {
  41631. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  41632. };
  41633. return adv_gift_buy_rsp;
  41634. })();
  41635. game.adv_gift_nty = (function() {
  41636. /**
  41637. * Properties of an adv_gift_nty.
  41638. * @memberof game
  41639. * @interface Iadv_gift_nty
  41640. * @property {Array.<game.Iid_num>|null} [list] adv_gift_nty list
  41641. */
  41642. /**
  41643. * Constructs a new adv_gift_nty.
  41644. * @memberof game
  41645. * @classdesc Represents an adv_gift_nty.
  41646. * @implements Iadv_gift_nty
  41647. * @constructor
  41648. * @param {game.Iadv_gift_nty=} [properties] Properties to set
  41649. */
  41650. function adv_gift_nty(properties) {
  41651. this.list = [];
  41652. if (properties)
  41653. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  41654. if (properties[keys[i]] != null)
  41655. this[keys[i]] = properties[keys[i]];
  41656. }
  41657. /**
  41658. * adv_gift_nty list.
  41659. * @member {Array.<game.Iid_num>} list
  41660. * @memberof game.adv_gift_nty
  41661. * @instance
  41662. */
  41663. adv_gift_nty.prototype.list = $util.emptyArray;
  41664. /**
  41665. * Creates a new adv_gift_nty instance using the specified properties.
  41666. * @function create
  41667. * @memberof game.adv_gift_nty
  41668. * @static
  41669. * @param {game.Iadv_gift_nty=} [properties] Properties to set
  41670. * @returns {game.adv_gift_nty} adv_gift_nty instance
  41671. */
  41672. adv_gift_nty.create = function create(properties) {
  41673. return new adv_gift_nty(properties);
  41674. };
  41675. /**
  41676. * Encodes the specified adv_gift_nty message. Does not implicitly {@link game.adv_gift_nty.verify|verify} messages.
  41677. * @function encode
  41678. * @memberof game.adv_gift_nty
  41679. * @static
  41680. * @param {game.Iadv_gift_nty} message adv_gift_nty message or plain object to encode
  41681. * @param {$protobuf.Writer} [writer] Writer to encode to
  41682. * @returns {$protobuf.Writer} Writer
  41683. */
  41684. adv_gift_nty.encode = function encode(message, writer) {
  41685. if (!writer)
  41686. writer = $Writer.create();
  41687. if (message.list != null && message.list.length)
  41688. for (let i = 0; i < message.list.length; ++i)
  41689. $root.game.id_num.encode(message.list[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
  41690. return writer;
  41691. };
  41692. /**
  41693. * Encodes the specified adv_gift_nty message, length delimited. Does not implicitly {@link game.adv_gift_nty.verify|verify} messages.
  41694. * @function encodeDelimited
  41695. * @memberof game.adv_gift_nty
  41696. * @static
  41697. * @param {game.Iadv_gift_nty} message adv_gift_nty message or plain object to encode
  41698. * @param {$protobuf.Writer} [writer] Writer to encode to
  41699. * @returns {$protobuf.Writer} Writer
  41700. */
  41701. adv_gift_nty.encodeDelimited = function encodeDelimited(message, writer) {
  41702. return this.encode(message, writer).ldelim();
  41703. };
  41704. /**
  41705. * Decodes an adv_gift_nty message from the specified reader or buffer.
  41706. * @function decode
  41707. * @memberof game.adv_gift_nty
  41708. * @static
  41709. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  41710. * @param {number} [length] Message length if known beforehand
  41711. * @returns {game.adv_gift_nty} adv_gift_nty
  41712. * @throws {Error} If the payload is not a reader or valid buffer
  41713. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  41714. */
  41715. adv_gift_nty.decode = function decode(reader, length) {
  41716. if (!(reader instanceof $Reader))
  41717. reader = $Reader.create(reader);
  41718. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adv_gift_nty();
  41719. while (reader.pos < end) {
  41720. let tag = reader.uint32();
  41721. switch (tag >>> 3) {
  41722. case 1:
  41723. if (!(message.list && message.list.length))
  41724. message.list = [];
  41725. message.list.push($root.game.id_num.decode(reader, reader.uint32()));
  41726. break;
  41727. default:
  41728. reader.skipType(tag & 7);
  41729. break;
  41730. }
  41731. }
  41732. return message;
  41733. };
  41734. /**
  41735. * Decodes an adv_gift_nty message from the specified reader or buffer, length delimited.
  41736. * @function decodeDelimited
  41737. * @memberof game.adv_gift_nty
  41738. * @static
  41739. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  41740. * @returns {game.adv_gift_nty} adv_gift_nty
  41741. * @throws {Error} If the payload is not a reader or valid buffer
  41742. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  41743. */
  41744. adv_gift_nty.decodeDelimited = function decodeDelimited(reader) {
  41745. if (!(reader instanceof $Reader))
  41746. reader = new $Reader(reader);
  41747. return this.decode(reader, reader.uint32());
  41748. };
  41749. /**
  41750. * Verifies an adv_gift_nty message.
  41751. * @function verify
  41752. * @memberof game.adv_gift_nty
  41753. * @static
  41754. * @param {Object.<string,*>} message Plain object to verify
  41755. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  41756. */
  41757. adv_gift_nty.verify = function verify(message) {
  41758. if (typeof message !== "object" || message === null)
  41759. return "object expected";
  41760. if (message.list != null && message.hasOwnProperty("list")) {
  41761. if (!Array.isArray(message.list))
  41762. return "list: array expected";
  41763. for (let i = 0; i < message.list.length; ++i) {
  41764. let error = $root.game.id_num.verify(message.list[i]);
  41765. if (error)
  41766. return "list." + error;
  41767. }
  41768. }
  41769. return null;
  41770. };
  41771. /**
  41772. * Creates an adv_gift_nty message from a plain object. Also converts values to their respective internal types.
  41773. * @function fromObject
  41774. * @memberof game.adv_gift_nty
  41775. * @static
  41776. * @param {Object.<string,*>} object Plain object
  41777. * @returns {game.adv_gift_nty} adv_gift_nty
  41778. */
  41779. adv_gift_nty.fromObject = function fromObject(object) {
  41780. if (object instanceof $root.game.adv_gift_nty)
  41781. return object;
  41782. let message = new $root.game.adv_gift_nty();
  41783. if (object.list) {
  41784. if (!Array.isArray(object.list))
  41785. throw TypeError(".game.adv_gift_nty.list: array expected");
  41786. message.list = [];
  41787. for (let i = 0; i < object.list.length; ++i) {
  41788. if (typeof object.list[i] !== "object")
  41789. throw TypeError(".game.adv_gift_nty.list: object expected");
  41790. message.list[i] = $root.game.id_num.fromObject(object.list[i]);
  41791. }
  41792. }
  41793. return message;
  41794. };
  41795. /**
  41796. * Creates a plain object from an adv_gift_nty message. Also converts values to other types if specified.
  41797. * @function toObject
  41798. * @memberof game.adv_gift_nty
  41799. * @static
  41800. * @param {game.adv_gift_nty} message adv_gift_nty
  41801. * @param {$protobuf.IConversionOptions} [options] Conversion options
  41802. * @returns {Object.<string,*>} Plain object
  41803. */
  41804. adv_gift_nty.toObject = function toObject(message, options) {
  41805. if (!options)
  41806. options = {};
  41807. let object = {};
  41808. if (options.arrays || options.defaults)
  41809. object.list = [];
  41810. if (message.list && message.list.length) {
  41811. object.list = [];
  41812. for (let j = 0; j < message.list.length; ++j)
  41813. object.list[j] = $root.game.id_num.toObject(message.list[j], options);
  41814. }
  41815. return object;
  41816. };
  41817. /**
  41818. * Converts this adv_gift_nty to JSON.
  41819. * @function toJSON
  41820. * @memberof game.adv_gift_nty
  41821. * @instance
  41822. * @returns {Object.<string,*>} JSON object
  41823. */
  41824. adv_gift_nty.prototype.toJSON = function toJSON() {
  41825. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  41826. };
  41827. return adv_gift_nty;
  41828. })();
  41829. game.pop_gift_data = (function() {
  41830. /**
  41831. * Properties of a pop_gift_data.
  41832. * @memberof game
  41833. * @interface Ipop_gift_data
  41834. */
  41835. /**
  41836. * Constructs a new pop_gift_data.
  41837. * @memberof game
  41838. * @classdesc Represents a pop_gift_data.
  41839. * @implements Ipop_gift_data
  41840. * @constructor
  41841. * @param {game.Ipop_gift_data=} [properties] Properties to set
  41842. */
  41843. function pop_gift_data(properties) {
  41844. if (properties)
  41845. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  41846. if (properties[keys[i]] != null)
  41847. this[keys[i]] = properties[keys[i]];
  41848. }
  41849. /**
  41850. * Creates a new pop_gift_data instance using the specified properties.
  41851. * @function create
  41852. * @memberof game.pop_gift_data
  41853. * @static
  41854. * @param {game.Ipop_gift_data=} [properties] Properties to set
  41855. * @returns {game.pop_gift_data} pop_gift_data instance
  41856. */
  41857. pop_gift_data.create = function create(properties) {
  41858. return new pop_gift_data(properties);
  41859. };
  41860. /**
  41861. * Encodes the specified pop_gift_data message. Does not implicitly {@link game.pop_gift_data.verify|verify} messages.
  41862. * @function encode
  41863. * @memberof game.pop_gift_data
  41864. * @static
  41865. * @param {game.Ipop_gift_data} message pop_gift_data message or plain object to encode
  41866. * @param {$protobuf.Writer} [writer] Writer to encode to
  41867. * @returns {$protobuf.Writer} Writer
  41868. */
  41869. pop_gift_data.encode = function encode(message, writer) {
  41870. if (!writer)
  41871. writer = $Writer.create();
  41872. return writer;
  41873. };
  41874. /**
  41875. * Encodes the specified pop_gift_data message, length delimited. Does not implicitly {@link game.pop_gift_data.verify|verify} messages.
  41876. * @function encodeDelimited
  41877. * @memberof game.pop_gift_data
  41878. * @static
  41879. * @param {game.Ipop_gift_data} message pop_gift_data message or plain object to encode
  41880. * @param {$protobuf.Writer} [writer] Writer to encode to
  41881. * @returns {$protobuf.Writer} Writer
  41882. */
  41883. pop_gift_data.encodeDelimited = function encodeDelimited(message, writer) {
  41884. return this.encode(message, writer).ldelim();
  41885. };
  41886. /**
  41887. * Decodes a pop_gift_data message from the specified reader or buffer.
  41888. * @function decode
  41889. * @memberof game.pop_gift_data
  41890. * @static
  41891. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  41892. * @param {number} [length] Message length if known beforehand
  41893. * @returns {game.pop_gift_data} pop_gift_data
  41894. * @throws {Error} If the payload is not a reader or valid buffer
  41895. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  41896. */
  41897. pop_gift_data.decode = function decode(reader, length) {
  41898. if (!(reader instanceof $Reader))
  41899. reader = $Reader.create(reader);
  41900. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pop_gift_data();
  41901. while (reader.pos < end) {
  41902. let tag = reader.uint32();
  41903. switch (tag >>> 3) {
  41904. default:
  41905. reader.skipType(tag & 7);
  41906. break;
  41907. }
  41908. }
  41909. return message;
  41910. };
  41911. /**
  41912. * Decodes a pop_gift_data message from the specified reader or buffer, length delimited.
  41913. * @function decodeDelimited
  41914. * @memberof game.pop_gift_data
  41915. * @static
  41916. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  41917. * @returns {game.pop_gift_data} pop_gift_data
  41918. * @throws {Error} If the payload is not a reader or valid buffer
  41919. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  41920. */
  41921. pop_gift_data.decodeDelimited = function decodeDelimited(reader) {
  41922. if (!(reader instanceof $Reader))
  41923. reader = new $Reader(reader);
  41924. return this.decode(reader, reader.uint32());
  41925. };
  41926. /**
  41927. * Verifies a pop_gift_data message.
  41928. * @function verify
  41929. * @memberof game.pop_gift_data
  41930. * @static
  41931. * @param {Object.<string,*>} message Plain object to verify
  41932. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  41933. */
  41934. pop_gift_data.verify = function verify(message) {
  41935. if (typeof message !== "object" || message === null)
  41936. return "object expected";
  41937. return null;
  41938. };
  41939. /**
  41940. * Creates a pop_gift_data message from a plain object. Also converts values to their respective internal types.
  41941. * @function fromObject
  41942. * @memberof game.pop_gift_data
  41943. * @static
  41944. * @param {Object.<string,*>} object Plain object
  41945. * @returns {game.pop_gift_data} pop_gift_data
  41946. */
  41947. pop_gift_data.fromObject = function fromObject(object) {
  41948. if (object instanceof $root.game.pop_gift_data)
  41949. return object;
  41950. return new $root.game.pop_gift_data();
  41951. };
  41952. /**
  41953. * Creates a plain object from a pop_gift_data message. Also converts values to other types if specified.
  41954. * @function toObject
  41955. * @memberof game.pop_gift_data
  41956. * @static
  41957. * @param {game.pop_gift_data} message pop_gift_data
  41958. * @param {$protobuf.IConversionOptions} [options] Conversion options
  41959. * @returns {Object.<string,*>} Plain object
  41960. */
  41961. pop_gift_data.toObject = function toObject() {
  41962. return {};
  41963. };
  41964. /**
  41965. * Converts this pop_gift_data to JSON.
  41966. * @function toJSON
  41967. * @memberof game.pop_gift_data
  41968. * @instance
  41969. * @returns {Object.<string,*>} JSON object
  41970. */
  41971. pop_gift_data.prototype.toJSON = function toJSON() {
  41972. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  41973. };
  41974. return pop_gift_data;
  41975. })();
  41976. game.pop_gift_data_rsp = (function() {
  41977. /**
  41978. * Properties of a pop_gift_data_rsp.
  41979. * @memberof game
  41980. * @interface Ipop_gift_data_rsp
  41981. * @property {number|Long|null} [errno] pop_gift_data_rsp errno
  41982. * @property {Array.<game.Ipop_gift_info>|null} [list] pop_gift_data_rsp list
  41983. */
  41984. /**
  41985. * Constructs a new pop_gift_data_rsp.
  41986. * @memberof game
  41987. * @classdesc Represents a pop_gift_data_rsp.
  41988. * @implements Ipop_gift_data_rsp
  41989. * @constructor
  41990. * @param {game.Ipop_gift_data_rsp=} [properties] Properties to set
  41991. */
  41992. function pop_gift_data_rsp(properties) {
  41993. this.list = [];
  41994. if (properties)
  41995. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  41996. if (properties[keys[i]] != null)
  41997. this[keys[i]] = properties[keys[i]];
  41998. }
  41999. /**
  42000. * pop_gift_data_rsp errno.
  42001. * @member {number|Long} errno
  42002. * @memberof game.pop_gift_data_rsp
  42003. * @instance
  42004. */
  42005. pop_gift_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  42006. /**
  42007. * pop_gift_data_rsp list.
  42008. * @member {Array.<game.Ipop_gift_info>} list
  42009. * @memberof game.pop_gift_data_rsp
  42010. * @instance
  42011. */
  42012. pop_gift_data_rsp.prototype.list = $util.emptyArray;
  42013. /**
  42014. * Creates a new pop_gift_data_rsp instance using the specified properties.
  42015. * @function create
  42016. * @memberof game.pop_gift_data_rsp
  42017. * @static
  42018. * @param {game.Ipop_gift_data_rsp=} [properties] Properties to set
  42019. * @returns {game.pop_gift_data_rsp} pop_gift_data_rsp instance
  42020. */
  42021. pop_gift_data_rsp.create = function create(properties) {
  42022. return new pop_gift_data_rsp(properties);
  42023. };
  42024. /**
  42025. * Encodes the specified pop_gift_data_rsp message. Does not implicitly {@link game.pop_gift_data_rsp.verify|verify} messages.
  42026. * @function encode
  42027. * @memberof game.pop_gift_data_rsp
  42028. * @static
  42029. * @param {game.Ipop_gift_data_rsp} message pop_gift_data_rsp message or plain object to encode
  42030. * @param {$protobuf.Writer} [writer] Writer to encode to
  42031. * @returns {$protobuf.Writer} Writer
  42032. */
  42033. pop_gift_data_rsp.encode = function encode(message, writer) {
  42034. if (!writer)
  42035. writer = $Writer.create();
  42036. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  42037. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  42038. if (message.list != null && message.list.length)
  42039. for (let i = 0; i < message.list.length; ++i)
  42040. $root.game.pop_gift_info.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  42041. return writer;
  42042. };
  42043. /**
  42044. * Encodes the specified pop_gift_data_rsp message, length delimited. Does not implicitly {@link game.pop_gift_data_rsp.verify|verify} messages.
  42045. * @function encodeDelimited
  42046. * @memberof game.pop_gift_data_rsp
  42047. * @static
  42048. * @param {game.Ipop_gift_data_rsp} message pop_gift_data_rsp message or plain object to encode
  42049. * @param {$protobuf.Writer} [writer] Writer to encode to
  42050. * @returns {$protobuf.Writer} Writer
  42051. */
  42052. pop_gift_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  42053. return this.encode(message, writer).ldelim();
  42054. };
  42055. /**
  42056. * Decodes a pop_gift_data_rsp message from the specified reader or buffer.
  42057. * @function decode
  42058. * @memberof game.pop_gift_data_rsp
  42059. * @static
  42060. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  42061. * @param {number} [length] Message length if known beforehand
  42062. * @returns {game.pop_gift_data_rsp} pop_gift_data_rsp
  42063. * @throws {Error} If the payload is not a reader or valid buffer
  42064. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  42065. */
  42066. pop_gift_data_rsp.decode = function decode(reader, length) {
  42067. if (!(reader instanceof $Reader))
  42068. reader = $Reader.create(reader);
  42069. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pop_gift_data_rsp();
  42070. while (reader.pos < end) {
  42071. let tag = reader.uint32();
  42072. switch (tag >>> 3) {
  42073. case 1:
  42074. message.errno = reader.int64();
  42075. break;
  42076. case 2:
  42077. if (!(message.list && message.list.length))
  42078. message.list = [];
  42079. message.list.push($root.game.pop_gift_info.decode(reader, reader.uint32()));
  42080. break;
  42081. default:
  42082. reader.skipType(tag & 7);
  42083. break;
  42084. }
  42085. }
  42086. return message;
  42087. };
  42088. /**
  42089. * Decodes a pop_gift_data_rsp message from the specified reader or buffer, length delimited.
  42090. * @function decodeDelimited
  42091. * @memberof game.pop_gift_data_rsp
  42092. * @static
  42093. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  42094. * @returns {game.pop_gift_data_rsp} pop_gift_data_rsp
  42095. * @throws {Error} If the payload is not a reader or valid buffer
  42096. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  42097. */
  42098. pop_gift_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  42099. if (!(reader instanceof $Reader))
  42100. reader = new $Reader(reader);
  42101. return this.decode(reader, reader.uint32());
  42102. };
  42103. /**
  42104. * Verifies a pop_gift_data_rsp message.
  42105. * @function verify
  42106. * @memberof game.pop_gift_data_rsp
  42107. * @static
  42108. * @param {Object.<string,*>} message Plain object to verify
  42109. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  42110. */
  42111. pop_gift_data_rsp.verify = function verify(message) {
  42112. if (typeof message !== "object" || message === null)
  42113. return "object expected";
  42114. if (message.errno != null && message.hasOwnProperty("errno"))
  42115. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  42116. return "errno: integer|Long expected";
  42117. if (message.list != null && message.hasOwnProperty("list")) {
  42118. if (!Array.isArray(message.list))
  42119. return "list: array expected";
  42120. for (let i = 0; i < message.list.length; ++i) {
  42121. let error = $root.game.pop_gift_info.verify(message.list[i]);
  42122. if (error)
  42123. return "list." + error;
  42124. }
  42125. }
  42126. return null;
  42127. };
  42128. /**
  42129. * Creates a pop_gift_data_rsp message from a plain object. Also converts values to their respective internal types.
  42130. * @function fromObject
  42131. * @memberof game.pop_gift_data_rsp
  42132. * @static
  42133. * @param {Object.<string,*>} object Plain object
  42134. * @returns {game.pop_gift_data_rsp} pop_gift_data_rsp
  42135. */
  42136. pop_gift_data_rsp.fromObject = function fromObject(object) {
  42137. if (object instanceof $root.game.pop_gift_data_rsp)
  42138. return object;
  42139. let message = new $root.game.pop_gift_data_rsp();
  42140. if (object.errno != null)
  42141. if ($util.Long)
  42142. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  42143. else if (typeof object.errno === "string")
  42144. message.errno = parseInt(object.errno, 10);
  42145. else if (typeof object.errno === "number")
  42146. message.errno = object.errno;
  42147. else if (typeof object.errno === "object")
  42148. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  42149. if (object.list) {
  42150. if (!Array.isArray(object.list))
  42151. throw TypeError(".game.pop_gift_data_rsp.list: array expected");
  42152. message.list = [];
  42153. for (let i = 0; i < object.list.length; ++i) {
  42154. if (typeof object.list[i] !== "object")
  42155. throw TypeError(".game.pop_gift_data_rsp.list: object expected");
  42156. message.list[i] = $root.game.pop_gift_info.fromObject(object.list[i]);
  42157. }
  42158. }
  42159. return message;
  42160. };
  42161. /**
  42162. * Creates a plain object from a pop_gift_data_rsp message. Also converts values to other types if specified.
  42163. * @function toObject
  42164. * @memberof game.pop_gift_data_rsp
  42165. * @static
  42166. * @param {game.pop_gift_data_rsp} message pop_gift_data_rsp
  42167. * @param {$protobuf.IConversionOptions} [options] Conversion options
  42168. * @returns {Object.<string,*>} Plain object
  42169. */
  42170. pop_gift_data_rsp.toObject = function toObject(message, options) {
  42171. if (!options)
  42172. options = {};
  42173. let object = {};
  42174. if (options.arrays || options.defaults)
  42175. object.list = [];
  42176. if (options.defaults)
  42177. if ($util.Long) {
  42178. let long = new $util.Long(0, 0, false);
  42179. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  42180. } else
  42181. object.errno = options.longs === String ? "0" : 0;
  42182. if (message.errno != null && message.hasOwnProperty("errno"))
  42183. if (typeof message.errno === "number")
  42184. object.errno = options.longs === String ? String(message.errno) : message.errno;
  42185. else
  42186. 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;
  42187. if (message.list && message.list.length) {
  42188. object.list = [];
  42189. for (let j = 0; j < message.list.length; ++j)
  42190. object.list[j] = $root.game.pop_gift_info.toObject(message.list[j], options);
  42191. }
  42192. return object;
  42193. };
  42194. /**
  42195. * Converts this pop_gift_data_rsp to JSON.
  42196. * @function toJSON
  42197. * @memberof game.pop_gift_data_rsp
  42198. * @instance
  42199. * @returns {Object.<string,*>} JSON object
  42200. */
  42201. pop_gift_data_rsp.prototype.toJSON = function toJSON() {
  42202. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  42203. };
  42204. return pop_gift_data_rsp;
  42205. })();
  42206. game.pop_gift_buy = (function() {
  42207. /**
  42208. * Properties of a pop_gift_buy.
  42209. * @memberof game
  42210. * @interface Ipop_gift_buy
  42211. * @property {number|Long|null} [id] pop_gift_buy id
  42212. */
  42213. /**
  42214. * Constructs a new pop_gift_buy.
  42215. * @memberof game
  42216. * @classdesc Represents a pop_gift_buy.
  42217. * @implements Ipop_gift_buy
  42218. * @constructor
  42219. * @param {game.Ipop_gift_buy=} [properties] Properties to set
  42220. */
  42221. function pop_gift_buy(properties) {
  42222. if (properties)
  42223. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  42224. if (properties[keys[i]] != null)
  42225. this[keys[i]] = properties[keys[i]];
  42226. }
  42227. /**
  42228. * pop_gift_buy id.
  42229. * @member {number|Long} id
  42230. * @memberof game.pop_gift_buy
  42231. * @instance
  42232. */
  42233. pop_gift_buy.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  42234. /**
  42235. * Creates a new pop_gift_buy instance using the specified properties.
  42236. * @function create
  42237. * @memberof game.pop_gift_buy
  42238. * @static
  42239. * @param {game.Ipop_gift_buy=} [properties] Properties to set
  42240. * @returns {game.pop_gift_buy} pop_gift_buy instance
  42241. */
  42242. pop_gift_buy.create = function create(properties) {
  42243. return new pop_gift_buy(properties);
  42244. };
  42245. /**
  42246. * Encodes the specified pop_gift_buy message. Does not implicitly {@link game.pop_gift_buy.verify|verify} messages.
  42247. * @function encode
  42248. * @memberof game.pop_gift_buy
  42249. * @static
  42250. * @param {game.Ipop_gift_buy} message pop_gift_buy message or plain object to encode
  42251. * @param {$protobuf.Writer} [writer] Writer to encode to
  42252. * @returns {$protobuf.Writer} Writer
  42253. */
  42254. pop_gift_buy.encode = function encode(message, writer) {
  42255. if (!writer)
  42256. writer = $Writer.create();
  42257. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  42258. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  42259. return writer;
  42260. };
  42261. /**
  42262. * Encodes the specified pop_gift_buy message, length delimited. Does not implicitly {@link game.pop_gift_buy.verify|verify} messages.
  42263. * @function encodeDelimited
  42264. * @memberof game.pop_gift_buy
  42265. * @static
  42266. * @param {game.Ipop_gift_buy} message pop_gift_buy message or plain object to encode
  42267. * @param {$protobuf.Writer} [writer] Writer to encode to
  42268. * @returns {$protobuf.Writer} Writer
  42269. */
  42270. pop_gift_buy.encodeDelimited = function encodeDelimited(message, writer) {
  42271. return this.encode(message, writer).ldelim();
  42272. };
  42273. /**
  42274. * Decodes a pop_gift_buy message from the specified reader or buffer.
  42275. * @function decode
  42276. * @memberof game.pop_gift_buy
  42277. * @static
  42278. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  42279. * @param {number} [length] Message length if known beforehand
  42280. * @returns {game.pop_gift_buy} pop_gift_buy
  42281. * @throws {Error} If the payload is not a reader or valid buffer
  42282. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  42283. */
  42284. pop_gift_buy.decode = function decode(reader, length) {
  42285. if (!(reader instanceof $Reader))
  42286. reader = $Reader.create(reader);
  42287. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pop_gift_buy();
  42288. while (reader.pos < end) {
  42289. let tag = reader.uint32();
  42290. switch (tag >>> 3) {
  42291. case 1:
  42292. message.id = reader.int64();
  42293. break;
  42294. default:
  42295. reader.skipType(tag & 7);
  42296. break;
  42297. }
  42298. }
  42299. return message;
  42300. };
  42301. /**
  42302. * Decodes a pop_gift_buy message from the specified reader or buffer, length delimited.
  42303. * @function decodeDelimited
  42304. * @memberof game.pop_gift_buy
  42305. * @static
  42306. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  42307. * @returns {game.pop_gift_buy} pop_gift_buy
  42308. * @throws {Error} If the payload is not a reader or valid buffer
  42309. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  42310. */
  42311. pop_gift_buy.decodeDelimited = function decodeDelimited(reader) {
  42312. if (!(reader instanceof $Reader))
  42313. reader = new $Reader(reader);
  42314. return this.decode(reader, reader.uint32());
  42315. };
  42316. /**
  42317. * Verifies a pop_gift_buy message.
  42318. * @function verify
  42319. * @memberof game.pop_gift_buy
  42320. * @static
  42321. * @param {Object.<string,*>} message Plain object to verify
  42322. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  42323. */
  42324. pop_gift_buy.verify = function verify(message) {
  42325. if (typeof message !== "object" || message === null)
  42326. return "object expected";
  42327. if (message.id != null && message.hasOwnProperty("id"))
  42328. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  42329. return "id: integer|Long expected";
  42330. return null;
  42331. };
  42332. /**
  42333. * Creates a pop_gift_buy message from a plain object. Also converts values to their respective internal types.
  42334. * @function fromObject
  42335. * @memberof game.pop_gift_buy
  42336. * @static
  42337. * @param {Object.<string,*>} object Plain object
  42338. * @returns {game.pop_gift_buy} pop_gift_buy
  42339. */
  42340. pop_gift_buy.fromObject = function fromObject(object) {
  42341. if (object instanceof $root.game.pop_gift_buy)
  42342. return object;
  42343. let message = new $root.game.pop_gift_buy();
  42344. if (object.id != null)
  42345. if ($util.Long)
  42346. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  42347. else if (typeof object.id === "string")
  42348. message.id = parseInt(object.id, 10);
  42349. else if (typeof object.id === "number")
  42350. message.id = object.id;
  42351. else if (typeof object.id === "object")
  42352. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  42353. return message;
  42354. };
  42355. /**
  42356. * Creates a plain object from a pop_gift_buy message. Also converts values to other types if specified.
  42357. * @function toObject
  42358. * @memberof game.pop_gift_buy
  42359. * @static
  42360. * @param {game.pop_gift_buy} message pop_gift_buy
  42361. * @param {$protobuf.IConversionOptions} [options] Conversion options
  42362. * @returns {Object.<string,*>} Plain object
  42363. */
  42364. pop_gift_buy.toObject = function toObject(message, options) {
  42365. if (!options)
  42366. options = {};
  42367. let object = {};
  42368. if (options.defaults)
  42369. if ($util.Long) {
  42370. let long = new $util.Long(0, 0, false);
  42371. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  42372. } else
  42373. object.id = options.longs === String ? "0" : 0;
  42374. if (message.id != null && message.hasOwnProperty("id"))
  42375. if (typeof message.id === "number")
  42376. object.id = options.longs === String ? String(message.id) : message.id;
  42377. else
  42378. 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;
  42379. return object;
  42380. };
  42381. /**
  42382. * Converts this pop_gift_buy to JSON.
  42383. * @function toJSON
  42384. * @memberof game.pop_gift_buy
  42385. * @instance
  42386. * @returns {Object.<string,*>} JSON object
  42387. */
  42388. pop_gift_buy.prototype.toJSON = function toJSON() {
  42389. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  42390. };
  42391. return pop_gift_buy;
  42392. })();
  42393. game.pop_gift_buy_rsp = (function() {
  42394. /**
  42395. * Properties of a pop_gift_buy_rsp.
  42396. * @memberof game
  42397. * @interface Ipop_gift_buy_rsp
  42398. * @property {number|Long|null} [errno] pop_gift_buy_rsp errno
  42399. */
  42400. /**
  42401. * Constructs a new pop_gift_buy_rsp.
  42402. * @memberof game
  42403. * @classdesc Represents a pop_gift_buy_rsp.
  42404. * @implements Ipop_gift_buy_rsp
  42405. * @constructor
  42406. * @param {game.Ipop_gift_buy_rsp=} [properties] Properties to set
  42407. */
  42408. function pop_gift_buy_rsp(properties) {
  42409. if (properties)
  42410. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  42411. if (properties[keys[i]] != null)
  42412. this[keys[i]] = properties[keys[i]];
  42413. }
  42414. /**
  42415. * pop_gift_buy_rsp errno.
  42416. * @member {number|Long} errno
  42417. * @memberof game.pop_gift_buy_rsp
  42418. * @instance
  42419. */
  42420. pop_gift_buy_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  42421. /**
  42422. * Creates a new pop_gift_buy_rsp instance using the specified properties.
  42423. * @function create
  42424. * @memberof game.pop_gift_buy_rsp
  42425. * @static
  42426. * @param {game.Ipop_gift_buy_rsp=} [properties] Properties to set
  42427. * @returns {game.pop_gift_buy_rsp} pop_gift_buy_rsp instance
  42428. */
  42429. pop_gift_buy_rsp.create = function create(properties) {
  42430. return new pop_gift_buy_rsp(properties);
  42431. };
  42432. /**
  42433. * Encodes the specified pop_gift_buy_rsp message. Does not implicitly {@link game.pop_gift_buy_rsp.verify|verify} messages.
  42434. * @function encode
  42435. * @memberof game.pop_gift_buy_rsp
  42436. * @static
  42437. * @param {game.Ipop_gift_buy_rsp} message pop_gift_buy_rsp message or plain object to encode
  42438. * @param {$protobuf.Writer} [writer] Writer to encode to
  42439. * @returns {$protobuf.Writer} Writer
  42440. */
  42441. pop_gift_buy_rsp.encode = function encode(message, writer) {
  42442. if (!writer)
  42443. writer = $Writer.create();
  42444. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  42445. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  42446. return writer;
  42447. };
  42448. /**
  42449. * Encodes the specified pop_gift_buy_rsp message, length delimited. Does not implicitly {@link game.pop_gift_buy_rsp.verify|verify} messages.
  42450. * @function encodeDelimited
  42451. * @memberof game.pop_gift_buy_rsp
  42452. * @static
  42453. * @param {game.Ipop_gift_buy_rsp} message pop_gift_buy_rsp message or plain object to encode
  42454. * @param {$protobuf.Writer} [writer] Writer to encode to
  42455. * @returns {$protobuf.Writer} Writer
  42456. */
  42457. pop_gift_buy_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  42458. return this.encode(message, writer).ldelim();
  42459. };
  42460. /**
  42461. * Decodes a pop_gift_buy_rsp message from the specified reader or buffer.
  42462. * @function decode
  42463. * @memberof game.pop_gift_buy_rsp
  42464. * @static
  42465. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  42466. * @param {number} [length] Message length if known beforehand
  42467. * @returns {game.pop_gift_buy_rsp} pop_gift_buy_rsp
  42468. * @throws {Error} If the payload is not a reader or valid buffer
  42469. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  42470. */
  42471. pop_gift_buy_rsp.decode = function decode(reader, length) {
  42472. if (!(reader instanceof $Reader))
  42473. reader = $Reader.create(reader);
  42474. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pop_gift_buy_rsp();
  42475. while (reader.pos < end) {
  42476. let tag = reader.uint32();
  42477. switch (tag >>> 3) {
  42478. case 1:
  42479. message.errno = reader.int64();
  42480. break;
  42481. default:
  42482. reader.skipType(tag & 7);
  42483. break;
  42484. }
  42485. }
  42486. return message;
  42487. };
  42488. /**
  42489. * Decodes a pop_gift_buy_rsp message from the specified reader or buffer, length delimited.
  42490. * @function decodeDelimited
  42491. * @memberof game.pop_gift_buy_rsp
  42492. * @static
  42493. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  42494. * @returns {game.pop_gift_buy_rsp} pop_gift_buy_rsp
  42495. * @throws {Error} If the payload is not a reader or valid buffer
  42496. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  42497. */
  42498. pop_gift_buy_rsp.decodeDelimited = function decodeDelimited(reader) {
  42499. if (!(reader instanceof $Reader))
  42500. reader = new $Reader(reader);
  42501. return this.decode(reader, reader.uint32());
  42502. };
  42503. /**
  42504. * Verifies a pop_gift_buy_rsp message.
  42505. * @function verify
  42506. * @memberof game.pop_gift_buy_rsp
  42507. * @static
  42508. * @param {Object.<string,*>} message Plain object to verify
  42509. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  42510. */
  42511. pop_gift_buy_rsp.verify = function verify(message) {
  42512. if (typeof message !== "object" || message === null)
  42513. return "object expected";
  42514. if (message.errno != null && message.hasOwnProperty("errno"))
  42515. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  42516. return "errno: integer|Long expected";
  42517. return null;
  42518. };
  42519. /**
  42520. * Creates a pop_gift_buy_rsp message from a plain object. Also converts values to their respective internal types.
  42521. * @function fromObject
  42522. * @memberof game.pop_gift_buy_rsp
  42523. * @static
  42524. * @param {Object.<string,*>} object Plain object
  42525. * @returns {game.pop_gift_buy_rsp} pop_gift_buy_rsp
  42526. */
  42527. pop_gift_buy_rsp.fromObject = function fromObject(object) {
  42528. if (object instanceof $root.game.pop_gift_buy_rsp)
  42529. return object;
  42530. let message = new $root.game.pop_gift_buy_rsp();
  42531. if (object.errno != null)
  42532. if ($util.Long)
  42533. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  42534. else if (typeof object.errno === "string")
  42535. message.errno = parseInt(object.errno, 10);
  42536. else if (typeof object.errno === "number")
  42537. message.errno = object.errno;
  42538. else if (typeof object.errno === "object")
  42539. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  42540. return message;
  42541. };
  42542. /**
  42543. * Creates a plain object from a pop_gift_buy_rsp message. Also converts values to other types if specified.
  42544. * @function toObject
  42545. * @memberof game.pop_gift_buy_rsp
  42546. * @static
  42547. * @param {game.pop_gift_buy_rsp} message pop_gift_buy_rsp
  42548. * @param {$protobuf.IConversionOptions} [options] Conversion options
  42549. * @returns {Object.<string,*>} Plain object
  42550. */
  42551. pop_gift_buy_rsp.toObject = function toObject(message, options) {
  42552. if (!options)
  42553. options = {};
  42554. let object = {};
  42555. if (options.defaults)
  42556. if ($util.Long) {
  42557. let long = new $util.Long(0, 0, false);
  42558. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  42559. } else
  42560. object.errno = options.longs === String ? "0" : 0;
  42561. if (message.errno != null && message.hasOwnProperty("errno"))
  42562. if (typeof message.errno === "number")
  42563. object.errno = options.longs === String ? String(message.errno) : message.errno;
  42564. else
  42565. 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;
  42566. return object;
  42567. };
  42568. /**
  42569. * Converts this pop_gift_buy_rsp to JSON.
  42570. * @function toJSON
  42571. * @memberof game.pop_gift_buy_rsp
  42572. * @instance
  42573. * @returns {Object.<string,*>} JSON object
  42574. */
  42575. pop_gift_buy_rsp.prototype.toJSON = function toJSON() {
  42576. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  42577. };
  42578. return pop_gift_buy_rsp;
  42579. })();
  42580. game.pop_gift_nty = (function() {
  42581. /**
  42582. * Properties of a pop_gift_nty.
  42583. * @memberof game
  42584. * @interface Ipop_gift_nty
  42585. * @property {game.Ipop_gift_info|null} [data] pop_gift_nty data
  42586. */
  42587. /**
  42588. * Constructs a new pop_gift_nty.
  42589. * @memberof game
  42590. * @classdesc Represents a pop_gift_nty.
  42591. * @implements Ipop_gift_nty
  42592. * @constructor
  42593. * @param {game.Ipop_gift_nty=} [properties] Properties to set
  42594. */
  42595. function pop_gift_nty(properties) {
  42596. if (properties)
  42597. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  42598. if (properties[keys[i]] != null)
  42599. this[keys[i]] = properties[keys[i]];
  42600. }
  42601. /**
  42602. * pop_gift_nty data.
  42603. * @member {game.Ipop_gift_info|null|undefined} data
  42604. * @memberof game.pop_gift_nty
  42605. * @instance
  42606. */
  42607. pop_gift_nty.prototype.data = null;
  42608. /**
  42609. * Creates a new pop_gift_nty instance using the specified properties.
  42610. * @function create
  42611. * @memberof game.pop_gift_nty
  42612. * @static
  42613. * @param {game.Ipop_gift_nty=} [properties] Properties to set
  42614. * @returns {game.pop_gift_nty} pop_gift_nty instance
  42615. */
  42616. pop_gift_nty.create = function create(properties) {
  42617. return new pop_gift_nty(properties);
  42618. };
  42619. /**
  42620. * Encodes the specified pop_gift_nty message. Does not implicitly {@link game.pop_gift_nty.verify|verify} messages.
  42621. * @function encode
  42622. * @memberof game.pop_gift_nty
  42623. * @static
  42624. * @param {game.Ipop_gift_nty} message pop_gift_nty message or plain object to encode
  42625. * @param {$protobuf.Writer} [writer] Writer to encode to
  42626. * @returns {$protobuf.Writer} Writer
  42627. */
  42628. pop_gift_nty.encode = function encode(message, writer) {
  42629. if (!writer)
  42630. writer = $Writer.create();
  42631. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  42632. $root.game.pop_gift_info.encode(message.data, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
  42633. return writer;
  42634. };
  42635. /**
  42636. * Encodes the specified pop_gift_nty message, length delimited. Does not implicitly {@link game.pop_gift_nty.verify|verify} messages.
  42637. * @function encodeDelimited
  42638. * @memberof game.pop_gift_nty
  42639. * @static
  42640. * @param {game.Ipop_gift_nty} message pop_gift_nty message or plain object to encode
  42641. * @param {$protobuf.Writer} [writer] Writer to encode to
  42642. * @returns {$protobuf.Writer} Writer
  42643. */
  42644. pop_gift_nty.encodeDelimited = function encodeDelimited(message, writer) {
  42645. return this.encode(message, writer).ldelim();
  42646. };
  42647. /**
  42648. * Decodes a pop_gift_nty message from the specified reader or buffer.
  42649. * @function decode
  42650. * @memberof game.pop_gift_nty
  42651. * @static
  42652. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  42653. * @param {number} [length] Message length if known beforehand
  42654. * @returns {game.pop_gift_nty} pop_gift_nty
  42655. * @throws {Error} If the payload is not a reader or valid buffer
  42656. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  42657. */
  42658. pop_gift_nty.decode = function decode(reader, length) {
  42659. if (!(reader instanceof $Reader))
  42660. reader = $Reader.create(reader);
  42661. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pop_gift_nty();
  42662. while (reader.pos < end) {
  42663. let tag = reader.uint32();
  42664. switch (tag >>> 3) {
  42665. case 1:
  42666. message.data = $root.game.pop_gift_info.decode(reader, reader.uint32());
  42667. break;
  42668. default:
  42669. reader.skipType(tag & 7);
  42670. break;
  42671. }
  42672. }
  42673. return message;
  42674. };
  42675. /**
  42676. * Decodes a pop_gift_nty message from the specified reader or buffer, length delimited.
  42677. * @function decodeDelimited
  42678. * @memberof game.pop_gift_nty
  42679. * @static
  42680. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  42681. * @returns {game.pop_gift_nty} pop_gift_nty
  42682. * @throws {Error} If the payload is not a reader or valid buffer
  42683. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  42684. */
  42685. pop_gift_nty.decodeDelimited = function decodeDelimited(reader) {
  42686. if (!(reader instanceof $Reader))
  42687. reader = new $Reader(reader);
  42688. return this.decode(reader, reader.uint32());
  42689. };
  42690. /**
  42691. * Verifies a pop_gift_nty message.
  42692. * @function verify
  42693. * @memberof game.pop_gift_nty
  42694. * @static
  42695. * @param {Object.<string,*>} message Plain object to verify
  42696. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  42697. */
  42698. pop_gift_nty.verify = function verify(message) {
  42699. if (typeof message !== "object" || message === null)
  42700. return "object expected";
  42701. if (message.data != null && message.hasOwnProperty("data")) {
  42702. let error = $root.game.pop_gift_info.verify(message.data);
  42703. if (error)
  42704. return "data." + error;
  42705. }
  42706. return null;
  42707. };
  42708. /**
  42709. * Creates a pop_gift_nty message from a plain object. Also converts values to their respective internal types.
  42710. * @function fromObject
  42711. * @memberof game.pop_gift_nty
  42712. * @static
  42713. * @param {Object.<string,*>} object Plain object
  42714. * @returns {game.pop_gift_nty} pop_gift_nty
  42715. */
  42716. pop_gift_nty.fromObject = function fromObject(object) {
  42717. if (object instanceof $root.game.pop_gift_nty)
  42718. return object;
  42719. let message = new $root.game.pop_gift_nty();
  42720. if (object.data != null) {
  42721. if (typeof object.data !== "object")
  42722. throw TypeError(".game.pop_gift_nty.data: object expected");
  42723. message.data = $root.game.pop_gift_info.fromObject(object.data);
  42724. }
  42725. return message;
  42726. };
  42727. /**
  42728. * Creates a plain object from a pop_gift_nty message. Also converts values to other types if specified.
  42729. * @function toObject
  42730. * @memberof game.pop_gift_nty
  42731. * @static
  42732. * @param {game.pop_gift_nty} message pop_gift_nty
  42733. * @param {$protobuf.IConversionOptions} [options] Conversion options
  42734. * @returns {Object.<string,*>} Plain object
  42735. */
  42736. pop_gift_nty.toObject = function toObject(message, options) {
  42737. if (!options)
  42738. options = {};
  42739. let object = {};
  42740. if (options.defaults)
  42741. object.data = null;
  42742. if (message.data != null && message.hasOwnProperty("data"))
  42743. object.data = $root.game.pop_gift_info.toObject(message.data, options);
  42744. return object;
  42745. };
  42746. /**
  42747. * Converts this pop_gift_nty to JSON.
  42748. * @function toJSON
  42749. * @memberof game.pop_gift_nty
  42750. * @instance
  42751. * @returns {Object.<string,*>} JSON object
  42752. */
  42753. pop_gift_nty.prototype.toJSON = function toJSON() {
  42754. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  42755. };
  42756. return pop_gift_nty;
  42757. })();
  42758. game.pop_gift_change_nty = (function() {
  42759. /**
  42760. * Properties of a pop_gift_change_nty.
  42761. * @memberof game
  42762. * @interface Ipop_gift_change_nty
  42763. * @property {game.Ipop_gift_info|null} [data] pop_gift_change_nty data
  42764. */
  42765. /**
  42766. * Constructs a new pop_gift_change_nty.
  42767. * @memberof game
  42768. * @classdesc Represents a pop_gift_change_nty.
  42769. * @implements Ipop_gift_change_nty
  42770. * @constructor
  42771. * @param {game.Ipop_gift_change_nty=} [properties] Properties to set
  42772. */
  42773. function pop_gift_change_nty(properties) {
  42774. if (properties)
  42775. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  42776. if (properties[keys[i]] != null)
  42777. this[keys[i]] = properties[keys[i]];
  42778. }
  42779. /**
  42780. * pop_gift_change_nty data.
  42781. * @member {game.Ipop_gift_info|null|undefined} data
  42782. * @memberof game.pop_gift_change_nty
  42783. * @instance
  42784. */
  42785. pop_gift_change_nty.prototype.data = null;
  42786. /**
  42787. * Creates a new pop_gift_change_nty instance using the specified properties.
  42788. * @function create
  42789. * @memberof game.pop_gift_change_nty
  42790. * @static
  42791. * @param {game.Ipop_gift_change_nty=} [properties] Properties to set
  42792. * @returns {game.pop_gift_change_nty} pop_gift_change_nty instance
  42793. */
  42794. pop_gift_change_nty.create = function create(properties) {
  42795. return new pop_gift_change_nty(properties);
  42796. };
  42797. /**
  42798. * Encodes the specified pop_gift_change_nty message. Does not implicitly {@link game.pop_gift_change_nty.verify|verify} messages.
  42799. * @function encode
  42800. * @memberof game.pop_gift_change_nty
  42801. * @static
  42802. * @param {game.Ipop_gift_change_nty} message pop_gift_change_nty message or plain object to encode
  42803. * @param {$protobuf.Writer} [writer] Writer to encode to
  42804. * @returns {$protobuf.Writer} Writer
  42805. */
  42806. pop_gift_change_nty.encode = function encode(message, writer) {
  42807. if (!writer)
  42808. writer = $Writer.create();
  42809. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  42810. $root.game.pop_gift_info.encode(message.data, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
  42811. return writer;
  42812. };
  42813. /**
  42814. * Encodes the specified pop_gift_change_nty message, length delimited. Does not implicitly {@link game.pop_gift_change_nty.verify|verify} messages.
  42815. * @function encodeDelimited
  42816. * @memberof game.pop_gift_change_nty
  42817. * @static
  42818. * @param {game.Ipop_gift_change_nty} message pop_gift_change_nty message or plain object to encode
  42819. * @param {$protobuf.Writer} [writer] Writer to encode to
  42820. * @returns {$protobuf.Writer} Writer
  42821. */
  42822. pop_gift_change_nty.encodeDelimited = function encodeDelimited(message, writer) {
  42823. return this.encode(message, writer).ldelim();
  42824. };
  42825. /**
  42826. * Decodes a pop_gift_change_nty message from the specified reader or buffer.
  42827. * @function decode
  42828. * @memberof game.pop_gift_change_nty
  42829. * @static
  42830. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  42831. * @param {number} [length] Message length if known beforehand
  42832. * @returns {game.pop_gift_change_nty} pop_gift_change_nty
  42833. * @throws {Error} If the payload is not a reader or valid buffer
  42834. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  42835. */
  42836. pop_gift_change_nty.decode = function decode(reader, length) {
  42837. if (!(reader instanceof $Reader))
  42838. reader = $Reader.create(reader);
  42839. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pop_gift_change_nty();
  42840. while (reader.pos < end) {
  42841. let tag = reader.uint32();
  42842. switch (tag >>> 3) {
  42843. case 1:
  42844. message.data = $root.game.pop_gift_info.decode(reader, reader.uint32());
  42845. break;
  42846. default:
  42847. reader.skipType(tag & 7);
  42848. break;
  42849. }
  42850. }
  42851. return message;
  42852. };
  42853. /**
  42854. * Decodes a pop_gift_change_nty message from the specified reader or buffer, length delimited.
  42855. * @function decodeDelimited
  42856. * @memberof game.pop_gift_change_nty
  42857. * @static
  42858. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  42859. * @returns {game.pop_gift_change_nty} pop_gift_change_nty
  42860. * @throws {Error} If the payload is not a reader or valid buffer
  42861. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  42862. */
  42863. pop_gift_change_nty.decodeDelimited = function decodeDelimited(reader) {
  42864. if (!(reader instanceof $Reader))
  42865. reader = new $Reader(reader);
  42866. return this.decode(reader, reader.uint32());
  42867. };
  42868. /**
  42869. * Verifies a pop_gift_change_nty message.
  42870. * @function verify
  42871. * @memberof game.pop_gift_change_nty
  42872. * @static
  42873. * @param {Object.<string,*>} message Plain object to verify
  42874. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  42875. */
  42876. pop_gift_change_nty.verify = function verify(message) {
  42877. if (typeof message !== "object" || message === null)
  42878. return "object expected";
  42879. if (message.data != null && message.hasOwnProperty("data")) {
  42880. let error = $root.game.pop_gift_info.verify(message.data);
  42881. if (error)
  42882. return "data." + error;
  42883. }
  42884. return null;
  42885. };
  42886. /**
  42887. * Creates a pop_gift_change_nty message from a plain object. Also converts values to their respective internal types.
  42888. * @function fromObject
  42889. * @memberof game.pop_gift_change_nty
  42890. * @static
  42891. * @param {Object.<string,*>} object Plain object
  42892. * @returns {game.pop_gift_change_nty} pop_gift_change_nty
  42893. */
  42894. pop_gift_change_nty.fromObject = function fromObject(object) {
  42895. if (object instanceof $root.game.pop_gift_change_nty)
  42896. return object;
  42897. let message = new $root.game.pop_gift_change_nty();
  42898. if (object.data != null) {
  42899. if (typeof object.data !== "object")
  42900. throw TypeError(".game.pop_gift_change_nty.data: object expected");
  42901. message.data = $root.game.pop_gift_info.fromObject(object.data);
  42902. }
  42903. return message;
  42904. };
  42905. /**
  42906. * Creates a plain object from a pop_gift_change_nty message. Also converts values to other types if specified.
  42907. * @function toObject
  42908. * @memberof game.pop_gift_change_nty
  42909. * @static
  42910. * @param {game.pop_gift_change_nty} message pop_gift_change_nty
  42911. * @param {$protobuf.IConversionOptions} [options] Conversion options
  42912. * @returns {Object.<string,*>} Plain object
  42913. */
  42914. pop_gift_change_nty.toObject = function toObject(message, options) {
  42915. if (!options)
  42916. options = {};
  42917. let object = {};
  42918. if (options.defaults)
  42919. object.data = null;
  42920. if (message.data != null && message.hasOwnProperty("data"))
  42921. object.data = $root.game.pop_gift_info.toObject(message.data, options);
  42922. return object;
  42923. };
  42924. /**
  42925. * Converts this pop_gift_change_nty to JSON.
  42926. * @function toJSON
  42927. * @memberof game.pop_gift_change_nty
  42928. * @instance
  42929. * @returns {Object.<string,*>} JSON object
  42930. */
  42931. pop_gift_change_nty.prototype.toJSON = function toJSON() {
  42932. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  42933. };
  42934. return pop_gift_change_nty;
  42935. })();
  42936. game.fund_data = (function() {
  42937. /**
  42938. * Properties of a fund_data.
  42939. * @memberof game
  42940. * @interface Ifund_data
  42941. * @property {number|Long|null} [moduleid] fund_data moduleid
  42942. */
  42943. /**
  42944. * Constructs a new fund_data.
  42945. * @memberof game
  42946. * @classdesc Represents a fund_data.
  42947. * @implements Ifund_data
  42948. * @constructor
  42949. * @param {game.Ifund_data=} [properties] Properties to set
  42950. */
  42951. function fund_data(properties) {
  42952. if (properties)
  42953. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  42954. if (properties[keys[i]] != null)
  42955. this[keys[i]] = properties[keys[i]];
  42956. }
  42957. /**
  42958. * fund_data moduleid.
  42959. * @member {number|Long} moduleid
  42960. * @memberof game.fund_data
  42961. * @instance
  42962. */
  42963. fund_data.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  42964. /**
  42965. * Creates a new fund_data instance using the specified properties.
  42966. * @function create
  42967. * @memberof game.fund_data
  42968. * @static
  42969. * @param {game.Ifund_data=} [properties] Properties to set
  42970. * @returns {game.fund_data} fund_data instance
  42971. */
  42972. fund_data.create = function create(properties) {
  42973. return new fund_data(properties);
  42974. };
  42975. /**
  42976. * Encodes the specified fund_data message. Does not implicitly {@link game.fund_data.verify|verify} messages.
  42977. * @function encode
  42978. * @memberof game.fund_data
  42979. * @static
  42980. * @param {game.Ifund_data} message fund_data message or plain object to encode
  42981. * @param {$protobuf.Writer} [writer] Writer to encode to
  42982. * @returns {$protobuf.Writer} Writer
  42983. */
  42984. fund_data.encode = function encode(message, writer) {
  42985. if (!writer)
  42986. writer = $Writer.create();
  42987. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  42988. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.moduleid);
  42989. return writer;
  42990. };
  42991. /**
  42992. * Encodes the specified fund_data message, length delimited. Does not implicitly {@link game.fund_data.verify|verify} messages.
  42993. * @function encodeDelimited
  42994. * @memberof game.fund_data
  42995. * @static
  42996. * @param {game.Ifund_data} message fund_data message or plain object to encode
  42997. * @param {$protobuf.Writer} [writer] Writer to encode to
  42998. * @returns {$protobuf.Writer} Writer
  42999. */
  43000. fund_data.encodeDelimited = function encodeDelimited(message, writer) {
  43001. return this.encode(message, writer).ldelim();
  43002. };
  43003. /**
  43004. * Decodes a fund_data message from the specified reader or buffer.
  43005. * @function decode
  43006. * @memberof game.fund_data
  43007. * @static
  43008. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  43009. * @param {number} [length] Message length if known beforehand
  43010. * @returns {game.fund_data} fund_data
  43011. * @throws {Error} If the payload is not a reader or valid buffer
  43012. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  43013. */
  43014. fund_data.decode = function decode(reader, length) {
  43015. if (!(reader instanceof $Reader))
  43016. reader = $Reader.create(reader);
  43017. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.fund_data();
  43018. while (reader.pos < end) {
  43019. let tag = reader.uint32();
  43020. switch (tag >>> 3) {
  43021. case 1:
  43022. message.moduleid = reader.int64();
  43023. break;
  43024. default:
  43025. reader.skipType(tag & 7);
  43026. break;
  43027. }
  43028. }
  43029. return message;
  43030. };
  43031. /**
  43032. * Decodes a fund_data message from the specified reader or buffer, length delimited.
  43033. * @function decodeDelimited
  43034. * @memberof game.fund_data
  43035. * @static
  43036. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  43037. * @returns {game.fund_data} fund_data
  43038. * @throws {Error} If the payload is not a reader or valid buffer
  43039. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  43040. */
  43041. fund_data.decodeDelimited = function decodeDelimited(reader) {
  43042. if (!(reader instanceof $Reader))
  43043. reader = new $Reader(reader);
  43044. return this.decode(reader, reader.uint32());
  43045. };
  43046. /**
  43047. * Verifies a fund_data message.
  43048. * @function verify
  43049. * @memberof game.fund_data
  43050. * @static
  43051. * @param {Object.<string,*>} message Plain object to verify
  43052. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  43053. */
  43054. fund_data.verify = function verify(message) {
  43055. if (typeof message !== "object" || message === null)
  43056. return "object expected";
  43057. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  43058. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  43059. return "moduleid: integer|Long expected";
  43060. return null;
  43061. };
  43062. /**
  43063. * Creates a fund_data message from a plain object. Also converts values to their respective internal types.
  43064. * @function fromObject
  43065. * @memberof game.fund_data
  43066. * @static
  43067. * @param {Object.<string,*>} object Plain object
  43068. * @returns {game.fund_data} fund_data
  43069. */
  43070. fund_data.fromObject = function fromObject(object) {
  43071. if (object instanceof $root.game.fund_data)
  43072. return object;
  43073. let message = new $root.game.fund_data();
  43074. if (object.moduleid != null)
  43075. if ($util.Long)
  43076. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  43077. else if (typeof object.moduleid === "string")
  43078. message.moduleid = parseInt(object.moduleid, 10);
  43079. else if (typeof object.moduleid === "number")
  43080. message.moduleid = object.moduleid;
  43081. else if (typeof object.moduleid === "object")
  43082. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  43083. return message;
  43084. };
  43085. /**
  43086. * Creates a plain object from a fund_data message. Also converts values to other types if specified.
  43087. * @function toObject
  43088. * @memberof game.fund_data
  43089. * @static
  43090. * @param {game.fund_data} message fund_data
  43091. * @param {$protobuf.IConversionOptions} [options] Conversion options
  43092. * @returns {Object.<string,*>} Plain object
  43093. */
  43094. fund_data.toObject = function toObject(message, options) {
  43095. if (!options)
  43096. options = {};
  43097. let object = {};
  43098. if (options.defaults)
  43099. if ($util.Long) {
  43100. let long = new $util.Long(0, 0, false);
  43101. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  43102. } else
  43103. object.moduleid = options.longs === String ? "0" : 0;
  43104. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  43105. if (typeof message.moduleid === "number")
  43106. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  43107. else
  43108. 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;
  43109. return object;
  43110. };
  43111. /**
  43112. * Converts this fund_data to JSON.
  43113. * @function toJSON
  43114. * @memberof game.fund_data
  43115. * @instance
  43116. * @returns {Object.<string,*>} JSON object
  43117. */
  43118. fund_data.prototype.toJSON = function toJSON() {
  43119. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  43120. };
  43121. return fund_data;
  43122. })();
  43123. game.fund_data_rsp = (function() {
  43124. /**
  43125. * Properties of a fund_data_rsp.
  43126. * @memberof game
  43127. * @interface Ifund_data_rsp
  43128. * @property {number|Long|null} [errno] fund_data_rsp errno
  43129. * @property {number|Long|null} [moduleid] fund_data_rsp moduleid
  43130. * @property {boolean|null} [state] fund_data_rsp state
  43131. * @property {number|Long|null} [award] fund_data_rsp award
  43132. * @property {number|Long|null} [freeAward] fund_data_rsp freeAward
  43133. * @property {number|Long|null} [progress] fund_data_rsp progress
  43134. */
  43135. /**
  43136. * Constructs a new fund_data_rsp.
  43137. * @memberof game
  43138. * @classdesc Represents a fund_data_rsp.
  43139. * @implements Ifund_data_rsp
  43140. * @constructor
  43141. * @param {game.Ifund_data_rsp=} [properties] Properties to set
  43142. */
  43143. function fund_data_rsp(properties) {
  43144. if (properties)
  43145. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  43146. if (properties[keys[i]] != null)
  43147. this[keys[i]] = properties[keys[i]];
  43148. }
  43149. /**
  43150. * fund_data_rsp errno.
  43151. * @member {number|Long} errno
  43152. * @memberof game.fund_data_rsp
  43153. * @instance
  43154. */
  43155. fund_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  43156. /**
  43157. * fund_data_rsp moduleid.
  43158. * @member {number|Long} moduleid
  43159. * @memberof game.fund_data_rsp
  43160. * @instance
  43161. */
  43162. fund_data_rsp.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  43163. /**
  43164. * fund_data_rsp state.
  43165. * @member {boolean} state
  43166. * @memberof game.fund_data_rsp
  43167. * @instance
  43168. */
  43169. fund_data_rsp.prototype.state = false;
  43170. /**
  43171. * fund_data_rsp award.
  43172. * @member {number|Long} award
  43173. * @memberof game.fund_data_rsp
  43174. * @instance
  43175. */
  43176. fund_data_rsp.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  43177. /**
  43178. * fund_data_rsp freeAward.
  43179. * @member {number|Long} freeAward
  43180. * @memberof game.fund_data_rsp
  43181. * @instance
  43182. */
  43183. fund_data_rsp.prototype.freeAward = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  43184. /**
  43185. * fund_data_rsp progress.
  43186. * @member {number|Long} progress
  43187. * @memberof game.fund_data_rsp
  43188. * @instance
  43189. */
  43190. fund_data_rsp.prototype.progress = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  43191. /**
  43192. * Creates a new fund_data_rsp instance using the specified properties.
  43193. * @function create
  43194. * @memberof game.fund_data_rsp
  43195. * @static
  43196. * @param {game.Ifund_data_rsp=} [properties] Properties to set
  43197. * @returns {game.fund_data_rsp} fund_data_rsp instance
  43198. */
  43199. fund_data_rsp.create = function create(properties) {
  43200. return new fund_data_rsp(properties);
  43201. };
  43202. /**
  43203. * Encodes the specified fund_data_rsp message. Does not implicitly {@link game.fund_data_rsp.verify|verify} messages.
  43204. * @function encode
  43205. * @memberof game.fund_data_rsp
  43206. * @static
  43207. * @param {game.Ifund_data_rsp} message fund_data_rsp message or plain object to encode
  43208. * @param {$protobuf.Writer} [writer] Writer to encode to
  43209. * @returns {$protobuf.Writer} Writer
  43210. */
  43211. fund_data_rsp.encode = function encode(message, writer) {
  43212. if (!writer)
  43213. writer = $Writer.create();
  43214. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  43215. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  43216. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  43217. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.moduleid);
  43218. if (message.state != null && Object.hasOwnProperty.call(message, "state"))
  43219. writer.uint32(/* id 3, wireType 0 =*/24).bool(message.state);
  43220. if (message.award != null && Object.hasOwnProperty.call(message, "award"))
  43221. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.award);
  43222. if (message.freeAward != null && Object.hasOwnProperty.call(message, "freeAward"))
  43223. writer.uint32(/* id 5, wireType 0 =*/40).int64(message.freeAward);
  43224. if (message.progress != null && Object.hasOwnProperty.call(message, "progress"))
  43225. writer.uint32(/* id 6, wireType 0 =*/48).int64(message.progress);
  43226. return writer;
  43227. };
  43228. /**
  43229. * Encodes the specified fund_data_rsp message, length delimited. Does not implicitly {@link game.fund_data_rsp.verify|verify} messages.
  43230. * @function encodeDelimited
  43231. * @memberof game.fund_data_rsp
  43232. * @static
  43233. * @param {game.Ifund_data_rsp} message fund_data_rsp message or plain object to encode
  43234. * @param {$protobuf.Writer} [writer] Writer to encode to
  43235. * @returns {$protobuf.Writer} Writer
  43236. */
  43237. fund_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  43238. return this.encode(message, writer).ldelim();
  43239. };
  43240. /**
  43241. * Decodes a fund_data_rsp message from the specified reader or buffer.
  43242. * @function decode
  43243. * @memberof game.fund_data_rsp
  43244. * @static
  43245. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  43246. * @param {number} [length] Message length if known beforehand
  43247. * @returns {game.fund_data_rsp} fund_data_rsp
  43248. * @throws {Error} If the payload is not a reader or valid buffer
  43249. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  43250. */
  43251. fund_data_rsp.decode = function decode(reader, length) {
  43252. if (!(reader instanceof $Reader))
  43253. reader = $Reader.create(reader);
  43254. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.fund_data_rsp();
  43255. while (reader.pos < end) {
  43256. let tag = reader.uint32();
  43257. switch (tag >>> 3) {
  43258. case 1:
  43259. message.errno = reader.int64();
  43260. break;
  43261. case 2:
  43262. message.moduleid = reader.int64();
  43263. break;
  43264. case 3:
  43265. message.state = reader.bool();
  43266. break;
  43267. case 4:
  43268. message.award = reader.int64();
  43269. break;
  43270. case 5:
  43271. message.freeAward = reader.int64();
  43272. break;
  43273. case 6:
  43274. message.progress = reader.int64();
  43275. break;
  43276. default:
  43277. reader.skipType(tag & 7);
  43278. break;
  43279. }
  43280. }
  43281. return message;
  43282. };
  43283. /**
  43284. * Decodes a fund_data_rsp message from the specified reader or buffer, length delimited.
  43285. * @function decodeDelimited
  43286. * @memberof game.fund_data_rsp
  43287. * @static
  43288. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  43289. * @returns {game.fund_data_rsp} fund_data_rsp
  43290. * @throws {Error} If the payload is not a reader or valid buffer
  43291. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  43292. */
  43293. fund_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  43294. if (!(reader instanceof $Reader))
  43295. reader = new $Reader(reader);
  43296. return this.decode(reader, reader.uint32());
  43297. };
  43298. /**
  43299. * Verifies a fund_data_rsp message.
  43300. * @function verify
  43301. * @memberof game.fund_data_rsp
  43302. * @static
  43303. * @param {Object.<string,*>} message Plain object to verify
  43304. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  43305. */
  43306. fund_data_rsp.verify = function verify(message) {
  43307. if (typeof message !== "object" || message === null)
  43308. return "object expected";
  43309. if (message.errno != null && message.hasOwnProperty("errno"))
  43310. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  43311. return "errno: integer|Long expected";
  43312. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  43313. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  43314. return "moduleid: integer|Long expected";
  43315. if (message.state != null && message.hasOwnProperty("state"))
  43316. if (typeof message.state !== "boolean")
  43317. return "state: boolean expected";
  43318. if (message.award != null && message.hasOwnProperty("award"))
  43319. if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
  43320. return "award: integer|Long expected";
  43321. if (message.freeAward != null && message.hasOwnProperty("freeAward"))
  43322. if (!$util.isInteger(message.freeAward) && !(message.freeAward && $util.isInteger(message.freeAward.low) && $util.isInteger(message.freeAward.high)))
  43323. return "freeAward: integer|Long expected";
  43324. if (message.progress != null && message.hasOwnProperty("progress"))
  43325. if (!$util.isInteger(message.progress) && !(message.progress && $util.isInteger(message.progress.low) && $util.isInteger(message.progress.high)))
  43326. return "progress: integer|Long expected";
  43327. return null;
  43328. };
  43329. /**
  43330. * Creates a fund_data_rsp message from a plain object. Also converts values to their respective internal types.
  43331. * @function fromObject
  43332. * @memberof game.fund_data_rsp
  43333. * @static
  43334. * @param {Object.<string,*>} object Plain object
  43335. * @returns {game.fund_data_rsp} fund_data_rsp
  43336. */
  43337. fund_data_rsp.fromObject = function fromObject(object) {
  43338. if (object instanceof $root.game.fund_data_rsp)
  43339. return object;
  43340. let message = new $root.game.fund_data_rsp();
  43341. if (object.errno != null)
  43342. if ($util.Long)
  43343. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  43344. else if (typeof object.errno === "string")
  43345. message.errno = parseInt(object.errno, 10);
  43346. else if (typeof object.errno === "number")
  43347. message.errno = object.errno;
  43348. else if (typeof object.errno === "object")
  43349. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  43350. if (object.moduleid != null)
  43351. if ($util.Long)
  43352. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  43353. else if (typeof object.moduleid === "string")
  43354. message.moduleid = parseInt(object.moduleid, 10);
  43355. else if (typeof object.moduleid === "number")
  43356. message.moduleid = object.moduleid;
  43357. else if (typeof object.moduleid === "object")
  43358. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  43359. if (object.state != null)
  43360. message.state = Boolean(object.state);
  43361. if (object.award != null)
  43362. if ($util.Long)
  43363. (message.award = $util.Long.fromValue(object.award)).unsigned = false;
  43364. else if (typeof object.award === "string")
  43365. message.award = parseInt(object.award, 10);
  43366. else if (typeof object.award === "number")
  43367. message.award = object.award;
  43368. else if (typeof object.award === "object")
  43369. message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
  43370. if (object.freeAward != null)
  43371. if ($util.Long)
  43372. (message.freeAward = $util.Long.fromValue(object.freeAward)).unsigned = false;
  43373. else if (typeof object.freeAward === "string")
  43374. message.freeAward = parseInt(object.freeAward, 10);
  43375. else if (typeof object.freeAward === "number")
  43376. message.freeAward = object.freeAward;
  43377. else if (typeof object.freeAward === "object")
  43378. message.freeAward = new $util.LongBits(object.freeAward.low >>> 0, object.freeAward.high >>> 0).toNumber();
  43379. if (object.progress != null)
  43380. if ($util.Long)
  43381. (message.progress = $util.Long.fromValue(object.progress)).unsigned = false;
  43382. else if (typeof object.progress === "string")
  43383. message.progress = parseInt(object.progress, 10);
  43384. else if (typeof object.progress === "number")
  43385. message.progress = object.progress;
  43386. else if (typeof object.progress === "object")
  43387. message.progress = new $util.LongBits(object.progress.low >>> 0, object.progress.high >>> 0).toNumber();
  43388. return message;
  43389. };
  43390. /**
  43391. * Creates a plain object from a fund_data_rsp message. Also converts values to other types if specified.
  43392. * @function toObject
  43393. * @memberof game.fund_data_rsp
  43394. * @static
  43395. * @param {game.fund_data_rsp} message fund_data_rsp
  43396. * @param {$protobuf.IConversionOptions} [options] Conversion options
  43397. * @returns {Object.<string,*>} Plain object
  43398. */
  43399. fund_data_rsp.toObject = function toObject(message, options) {
  43400. if (!options)
  43401. options = {};
  43402. let object = {};
  43403. if (options.defaults) {
  43404. if ($util.Long) {
  43405. let long = new $util.Long(0, 0, false);
  43406. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  43407. } else
  43408. object.errno = options.longs === String ? "0" : 0;
  43409. if ($util.Long) {
  43410. let long = new $util.Long(0, 0, false);
  43411. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  43412. } else
  43413. object.moduleid = options.longs === String ? "0" : 0;
  43414. object.state = false;
  43415. if ($util.Long) {
  43416. let long = new $util.Long(0, 0, false);
  43417. object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  43418. } else
  43419. object.award = options.longs === String ? "0" : 0;
  43420. if ($util.Long) {
  43421. let long = new $util.Long(0, 0, false);
  43422. object.freeAward = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  43423. } else
  43424. object.freeAward = options.longs === String ? "0" : 0;
  43425. if ($util.Long) {
  43426. let long = new $util.Long(0, 0, false);
  43427. object.progress = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  43428. } else
  43429. object.progress = options.longs === String ? "0" : 0;
  43430. }
  43431. if (message.errno != null && message.hasOwnProperty("errno"))
  43432. if (typeof message.errno === "number")
  43433. object.errno = options.longs === String ? String(message.errno) : message.errno;
  43434. else
  43435. 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;
  43436. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  43437. if (typeof message.moduleid === "number")
  43438. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  43439. else
  43440. 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;
  43441. if (message.state != null && message.hasOwnProperty("state"))
  43442. object.state = message.state;
  43443. if (message.award != null && message.hasOwnProperty("award"))
  43444. if (typeof message.award === "number")
  43445. object.award = options.longs === String ? String(message.award) : message.award;
  43446. else
  43447. 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;
  43448. if (message.freeAward != null && message.hasOwnProperty("freeAward"))
  43449. if (typeof message.freeAward === "number")
  43450. object.freeAward = options.longs === String ? String(message.freeAward) : message.freeAward;
  43451. else
  43452. 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;
  43453. if (message.progress != null && message.hasOwnProperty("progress"))
  43454. if (typeof message.progress === "number")
  43455. object.progress = options.longs === String ? String(message.progress) : message.progress;
  43456. else
  43457. 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;
  43458. return object;
  43459. };
  43460. /**
  43461. * Converts this fund_data_rsp to JSON.
  43462. * @function toJSON
  43463. * @memberof game.fund_data_rsp
  43464. * @instance
  43465. * @returns {Object.<string,*>} JSON object
  43466. */
  43467. fund_data_rsp.prototype.toJSON = function toJSON() {
  43468. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  43469. };
  43470. return fund_data_rsp;
  43471. })();
  43472. game.fund_buy = (function() {
  43473. /**
  43474. * Properties of a fund_buy.
  43475. * @memberof game
  43476. * @interface Ifund_buy
  43477. * @property {number|Long|null} [moduleid] fund_buy moduleid
  43478. */
  43479. /**
  43480. * Constructs a new fund_buy.
  43481. * @memberof game
  43482. * @classdesc Represents a fund_buy.
  43483. * @implements Ifund_buy
  43484. * @constructor
  43485. * @param {game.Ifund_buy=} [properties] Properties to set
  43486. */
  43487. function fund_buy(properties) {
  43488. if (properties)
  43489. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  43490. if (properties[keys[i]] != null)
  43491. this[keys[i]] = properties[keys[i]];
  43492. }
  43493. /**
  43494. * fund_buy moduleid.
  43495. * @member {number|Long} moduleid
  43496. * @memberof game.fund_buy
  43497. * @instance
  43498. */
  43499. fund_buy.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  43500. /**
  43501. * Creates a new fund_buy instance using the specified properties.
  43502. * @function create
  43503. * @memberof game.fund_buy
  43504. * @static
  43505. * @param {game.Ifund_buy=} [properties] Properties to set
  43506. * @returns {game.fund_buy} fund_buy instance
  43507. */
  43508. fund_buy.create = function create(properties) {
  43509. return new fund_buy(properties);
  43510. };
  43511. /**
  43512. * Encodes the specified fund_buy message. Does not implicitly {@link game.fund_buy.verify|verify} messages.
  43513. * @function encode
  43514. * @memberof game.fund_buy
  43515. * @static
  43516. * @param {game.Ifund_buy} message fund_buy message or plain object to encode
  43517. * @param {$protobuf.Writer} [writer] Writer to encode to
  43518. * @returns {$protobuf.Writer} Writer
  43519. */
  43520. fund_buy.encode = function encode(message, writer) {
  43521. if (!writer)
  43522. writer = $Writer.create();
  43523. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  43524. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.moduleid);
  43525. return writer;
  43526. };
  43527. /**
  43528. * Encodes the specified fund_buy message, length delimited. Does not implicitly {@link game.fund_buy.verify|verify} messages.
  43529. * @function encodeDelimited
  43530. * @memberof game.fund_buy
  43531. * @static
  43532. * @param {game.Ifund_buy} message fund_buy message or plain object to encode
  43533. * @param {$protobuf.Writer} [writer] Writer to encode to
  43534. * @returns {$protobuf.Writer} Writer
  43535. */
  43536. fund_buy.encodeDelimited = function encodeDelimited(message, writer) {
  43537. return this.encode(message, writer).ldelim();
  43538. };
  43539. /**
  43540. * Decodes a fund_buy message from the specified reader or buffer.
  43541. * @function decode
  43542. * @memberof game.fund_buy
  43543. * @static
  43544. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  43545. * @param {number} [length] Message length if known beforehand
  43546. * @returns {game.fund_buy} fund_buy
  43547. * @throws {Error} If the payload is not a reader or valid buffer
  43548. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  43549. */
  43550. fund_buy.decode = function decode(reader, length) {
  43551. if (!(reader instanceof $Reader))
  43552. reader = $Reader.create(reader);
  43553. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.fund_buy();
  43554. while (reader.pos < end) {
  43555. let tag = reader.uint32();
  43556. switch (tag >>> 3) {
  43557. case 1:
  43558. message.moduleid = reader.int64();
  43559. break;
  43560. default:
  43561. reader.skipType(tag & 7);
  43562. break;
  43563. }
  43564. }
  43565. return message;
  43566. };
  43567. /**
  43568. * Decodes a fund_buy message from the specified reader or buffer, length delimited.
  43569. * @function decodeDelimited
  43570. * @memberof game.fund_buy
  43571. * @static
  43572. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  43573. * @returns {game.fund_buy} fund_buy
  43574. * @throws {Error} If the payload is not a reader or valid buffer
  43575. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  43576. */
  43577. fund_buy.decodeDelimited = function decodeDelimited(reader) {
  43578. if (!(reader instanceof $Reader))
  43579. reader = new $Reader(reader);
  43580. return this.decode(reader, reader.uint32());
  43581. };
  43582. /**
  43583. * Verifies a fund_buy message.
  43584. * @function verify
  43585. * @memberof game.fund_buy
  43586. * @static
  43587. * @param {Object.<string,*>} message Plain object to verify
  43588. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  43589. */
  43590. fund_buy.verify = function verify(message) {
  43591. if (typeof message !== "object" || message === null)
  43592. return "object expected";
  43593. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  43594. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  43595. return "moduleid: integer|Long expected";
  43596. return null;
  43597. };
  43598. /**
  43599. * Creates a fund_buy message from a plain object. Also converts values to their respective internal types.
  43600. * @function fromObject
  43601. * @memberof game.fund_buy
  43602. * @static
  43603. * @param {Object.<string,*>} object Plain object
  43604. * @returns {game.fund_buy} fund_buy
  43605. */
  43606. fund_buy.fromObject = function fromObject(object) {
  43607. if (object instanceof $root.game.fund_buy)
  43608. return object;
  43609. let message = new $root.game.fund_buy();
  43610. if (object.moduleid != null)
  43611. if ($util.Long)
  43612. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  43613. else if (typeof object.moduleid === "string")
  43614. message.moduleid = parseInt(object.moduleid, 10);
  43615. else if (typeof object.moduleid === "number")
  43616. message.moduleid = object.moduleid;
  43617. else if (typeof object.moduleid === "object")
  43618. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  43619. return message;
  43620. };
  43621. /**
  43622. * Creates a plain object from a fund_buy message. Also converts values to other types if specified.
  43623. * @function toObject
  43624. * @memberof game.fund_buy
  43625. * @static
  43626. * @param {game.fund_buy} message fund_buy
  43627. * @param {$protobuf.IConversionOptions} [options] Conversion options
  43628. * @returns {Object.<string,*>} Plain object
  43629. */
  43630. fund_buy.toObject = function toObject(message, options) {
  43631. if (!options)
  43632. options = {};
  43633. let object = {};
  43634. if (options.defaults)
  43635. if ($util.Long) {
  43636. let long = new $util.Long(0, 0, false);
  43637. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  43638. } else
  43639. object.moduleid = options.longs === String ? "0" : 0;
  43640. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  43641. if (typeof message.moduleid === "number")
  43642. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  43643. else
  43644. 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;
  43645. return object;
  43646. };
  43647. /**
  43648. * Converts this fund_buy to JSON.
  43649. * @function toJSON
  43650. * @memberof game.fund_buy
  43651. * @instance
  43652. * @returns {Object.<string,*>} JSON object
  43653. */
  43654. fund_buy.prototype.toJSON = function toJSON() {
  43655. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  43656. };
  43657. return fund_buy;
  43658. })();
  43659. game.fund_buy_rsp = (function() {
  43660. /**
  43661. * Properties of a fund_buy_rsp.
  43662. * @memberof game
  43663. * @interface Ifund_buy_rsp
  43664. * @property {number|Long|null} [errno] fund_buy_rsp errno
  43665. * @property {number|Long|null} [moduleid] fund_buy_rsp moduleid
  43666. */
  43667. /**
  43668. * Constructs a new fund_buy_rsp.
  43669. * @memberof game
  43670. * @classdesc Represents a fund_buy_rsp.
  43671. * @implements Ifund_buy_rsp
  43672. * @constructor
  43673. * @param {game.Ifund_buy_rsp=} [properties] Properties to set
  43674. */
  43675. function fund_buy_rsp(properties) {
  43676. if (properties)
  43677. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  43678. if (properties[keys[i]] != null)
  43679. this[keys[i]] = properties[keys[i]];
  43680. }
  43681. /**
  43682. * fund_buy_rsp errno.
  43683. * @member {number|Long} errno
  43684. * @memberof game.fund_buy_rsp
  43685. * @instance
  43686. */
  43687. fund_buy_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  43688. /**
  43689. * fund_buy_rsp moduleid.
  43690. * @member {number|Long} moduleid
  43691. * @memberof game.fund_buy_rsp
  43692. * @instance
  43693. */
  43694. fund_buy_rsp.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  43695. /**
  43696. * Creates a new fund_buy_rsp instance using the specified properties.
  43697. * @function create
  43698. * @memberof game.fund_buy_rsp
  43699. * @static
  43700. * @param {game.Ifund_buy_rsp=} [properties] Properties to set
  43701. * @returns {game.fund_buy_rsp} fund_buy_rsp instance
  43702. */
  43703. fund_buy_rsp.create = function create(properties) {
  43704. return new fund_buy_rsp(properties);
  43705. };
  43706. /**
  43707. * Encodes the specified fund_buy_rsp message. Does not implicitly {@link game.fund_buy_rsp.verify|verify} messages.
  43708. * @function encode
  43709. * @memberof game.fund_buy_rsp
  43710. * @static
  43711. * @param {game.Ifund_buy_rsp} message fund_buy_rsp message or plain object to encode
  43712. * @param {$protobuf.Writer} [writer] Writer to encode to
  43713. * @returns {$protobuf.Writer} Writer
  43714. */
  43715. fund_buy_rsp.encode = function encode(message, writer) {
  43716. if (!writer)
  43717. writer = $Writer.create();
  43718. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  43719. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  43720. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  43721. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.moduleid);
  43722. return writer;
  43723. };
  43724. /**
  43725. * Encodes the specified fund_buy_rsp message, length delimited. Does not implicitly {@link game.fund_buy_rsp.verify|verify} messages.
  43726. * @function encodeDelimited
  43727. * @memberof game.fund_buy_rsp
  43728. * @static
  43729. * @param {game.Ifund_buy_rsp} message fund_buy_rsp message or plain object to encode
  43730. * @param {$protobuf.Writer} [writer] Writer to encode to
  43731. * @returns {$protobuf.Writer} Writer
  43732. */
  43733. fund_buy_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  43734. return this.encode(message, writer).ldelim();
  43735. };
  43736. /**
  43737. * Decodes a fund_buy_rsp message from the specified reader or buffer.
  43738. * @function decode
  43739. * @memberof game.fund_buy_rsp
  43740. * @static
  43741. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  43742. * @param {number} [length] Message length if known beforehand
  43743. * @returns {game.fund_buy_rsp} fund_buy_rsp
  43744. * @throws {Error} If the payload is not a reader or valid buffer
  43745. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  43746. */
  43747. fund_buy_rsp.decode = function decode(reader, length) {
  43748. if (!(reader instanceof $Reader))
  43749. reader = $Reader.create(reader);
  43750. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.fund_buy_rsp();
  43751. while (reader.pos < end) {
  43752. let tag = reader.uint32();
  43753. switch (tag >>> 3) {
  43754. case 1:
  43755. message.errno = reader.int64();
  43756. break;
  43757. case 2:
  43758. message.moduleid = reader.int64();
  43759. break;
  43760. default:
  43761. reader.skipType(tag & 7);
  43762. break;
  43763. }
  43764. }
  43765. return message;
  43766. };
  43767. /**
  43768. * Decodes a fund_buy_rsp message from the specified reader or buffer, length delimited.
  43769. * @function decodeDelimited
  43770. * @memberof game.fund_buy_rsp
  43771. * @static
  43772. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  43773. * @returns {game.fund_buy_rsp} fund_buy_rsp
  43774. * @throws {Error} If the payload is not a reader or valid buffer
  43775. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  43776. */
  43777. fund_buy_rsp.decodeDelimited = function decodeDelimited(reader) {
  43778. if (!(reader instanceof $Reader))
  43779. reader = new $Reader(reader);
  43780. return this.decode(reader, reader.uint32());
  43781. };
  43782. /**
  43783. * Verifies a fund_buy_rsp message.
  43784. * @function verify
  43785. * @memberof game.fund_buy_rsp
  43786. * @static
  43787. * @param {Object.<string,*>} message Plain object to verify
  43788. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  43789. */
  43790. fund_buy_rsp.verify = function verify(message) {
  43791. if (typeof message !== "object" || message === null)
  43792. return "object expected";
  43793. if (message.errno != null && message.hasOwnProperty("errno"))
  43794. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  43795. return "errno: integer|Long expected";
  43796. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  43797. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  43798. return "moduleid: integer|Long expected";
  43799. return null;
  43800. };
  43801. /**
  43802. * Creates a fund_buy_rsp message from a plain object. Also converts values to their respective internal types.
  43803. * @function fromObject
  43804. * @memberof game.fund_buy_rsp
  43805. * @static
  43806. * @param {Object.<string,*>} object Plain object
  43807. * @returns {game.fund_buy_rsp} fund_buy_rsp
  43808. */
  43809. fund_buy_rsp.fromObject = function fromObject(object) {
  43810. if (object instanceof $root.game.fund_buy_rsp)
  43811. return object;
  43812. let message = new $root.game.fund_buy_rsp();
  43813. if (object.errno != null)
  43814. if ($util.Long)
  43815. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  43816. else if (typeof object.errno === "string")
  43817. message.errno = parseInt(object.errno, 10);
  43818. else if (typeof object.errno === "number")
  43819. message.errno = object.errno;
  43820. else if (typeof object.errno === "object")
  43821. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  43822. if (object.moduleid != null)
  43823. if ($util.Long)
  43824. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  43825. else if (typeof object.moduleid === "string")
  43826. message.moduleid = parseInt(object.moduleid, 10);
  43827. else if (typeof object.moduleid === "number")
  43828. message.moduleid = object.moduleid;
  43829. else if (typeof object.moduleid === "object")
  43830. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  43831. return message;
  43832. };
  43833. /**
  43834. * Creates a plain object from a fund_buy_rsp message. Also converts values to other types if specified.
  43835. * @function toObject
  43836. * @memberof game.fund_buy_rsp
  43837. * @static
  43838. * @param {game.fund_buy_rsp} message fund_buy_rsp
  43839. * @param {$protobuf.IConversionOptions} [options] Conversion options
  43840. * @returns {Object.<string,*>} Plain object
  43841. */
  43842. fund_buy_rsp.toObject = function toObject(message, options) {
  43843. if (!options)
  43844. options = {};
  43845. let object = {};
  43846. if (options.defaults) {
  43847. if ($util.Long) {
  43848. let long = new $util.Long(0, 0, false);
  43849. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  43850. } else
  43851. object.errno = options.longs === String ? "0" : 0;
  43852. if ($util.Long) {
  43853. let long = new $util.Long(0, 0, false);
  43854. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  43855. } else
  43856. object.moduleid = options.longs === String ? "0" : 0;
  43857. }
  43858. if (message.errno != null && message.hasOwnProperty("errno"))
  43859. if (typeof message.errno === "number")
  43860. object.errno = options.longs === String ? String(message.errno) : message.errno;
  43861. else
  43862. 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;
  43863. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  43864. if (typeof message.moduleid === "number")
  43865. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  43866. else
  43867. 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;
  43868. return object;
  43869. };
  43870. /**
  43871. * Converts this fund_buy_rsp to JSON.
  43872. * @function toJSON
  43873. * @memberof game.fund_buy_rsp
  43874. * @instance
  43875. * @returns {Object.<string,*>} JSON object
  43876. */
  43877. fund_buy_rsp.prototype.toJSON = function toJSON() {
  43878. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  43879. };
  43880. return fund_buy_rsp;
  43881. })();
  43882. game.fund_award = (function() {
  43883. /**
  43884. * Properties of a fund_award.
  43885. * @memberof game
  43886. * @interface Ifund_award
  43887. * @property {number|Long|null} [moduleid] fund_award moduleid
  43888. */
  43889. /**
  43890. * Constructs a new fund_award.
  43891. * @memberof game
  43892. * @classdesc Represents a fund_award.
  43893. * @implements Ifund_award
  43894. * @constructor
  43895. * @param {game.Ifund_award=} [properties] Properties to set
  43896. */
  43897. function fund_award(properties) {
  43898. if (properties)
  43899. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  43900. if (properties[keys[i]] != null)
  43901. this[keys[i]] = properties[keys[i]];
  43902. }
  43903. /**
  43904. * fund_award moduleid.
  43905. * @member {number|Long} moduleid
  43906. * @memberof game.fund_award
  43907. * @instance
  43908. */
  43909. fund_award.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  43910. /**
  43911. * Creates a new fund_award instance using the specified properties.
  43912. * @function create
  43913. * @memberof game.fund_award
  43914. * @static
  43915. * @param {game.Ifund_award=} [properties] Properties to set
  43916. * @returns {game.fund_award} fund_award instance
  43917. */
  43918. fund_award.create = function create(properties) {
  43919. return new fund_award(properties);
  43920. };
  43921. /**
  43922. * Encodes the specified fund_award message. Does not implicitly {@link game.fund_award.verify|verify} messages.
  43923. * @function encode
  43924. * @memberof game.fund_award
  43925. * @static
  43926. * @param {game.Ifund_award} message fund_award message or plain object to encode
  43927. * @param {$protobuf.Writer} [writer] Writer to encode to
  43928. * @returns {$protobuf.Writer} Writer
  43929. */
  43930. fund_award.encode = function encode(message, writer) {
  43931. if (!writer)
  43932. writer = $Writer.create();
  43933. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  43934. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.moduleid);
  43935. return writer;
  43936. };
  43937. /**
  43938. * Encodes the specified fund_award message, length delimited. Does not implicitly {@link game.fund_award.verify|verify} messages.
  43939. * @function encodeDelimited
  43940. * @memberof game.fund_award
  43941. * @static
  43942. * @param {game.Ifund_award} message fund_award message or plain object to encode
  43943. * @param {$protobuf.Writer} [writer] Writer to encode to
  43944. * @returns {$protobuf.Writer} Writer
  43945. */
  43946. fund_award.encodeDelimited = function encodeDelimited(message, writer) {
  43947. return this.encode(message, writer).ldelim();
  43948. };
  43949. /**
  43950. * Decodes a fund_award message from the specified reader or buffer.
  43951. * @function decode
  43952. * @memberof game.fund_award
  43953. * @static
  43954. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  43955. * @param {number} [length] Message length if known beforehand
  43956. * @returns {game.fund_award} fund_award
  43957. * @throws {Error} If the payload is not a reader or valid buffer
  43958. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  43959. */
  43960. fund_award.decode = function decode(reader, length) {
  43961. if (!(reader instanceof $Reader))
  43962. reader = $Reader.create(reader);
  43963. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.fund_award();
  43964. while (reader.pos < end) {
  43965. let tag = reader.uint32();
  43966. switch (tag >>> 3) {
  43967. case 1:
  43968. message.moduleid = reader.int64();
  43969. break;
  43970. default:
  43971. reader.skipType(tag & 7);
  43972. break;
  43973. }
  43974. }
  43975. return message;
  43976. };
  43977. /**
  43978. * Decodes a fund_award message from the specified reader or buffer, length delimited.
  43979. * @function decodeDelimited
  43980. * @memberof game.fund_award
  43981. * @static
  43982. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  43983. * @returns {game.fund_award} fund_award
  43984. * @throws {Error} If the payload is not a reader or valid buffer
  43985. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  43986. */
  43987. fund_award.decodeDelimited = function decodeDelimited(reader) {
  43988. if (!(reader instanceof $Reader))
  43989. reader = new $Reader(reader);
  43990. return this.decode(reader, reader.uint32());
  43991. };
  43992. /**
  43993. * Verifies a fund_award message.
  43994. * @function verify
  43995. * @memberof game.fund_award
  43996. * @static
  43997. * @param {Object.<string,*>} message Plain object to verify
  43998. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  43999. */
  44000. fund_award.verify = function verify(message) {
  44001. if (typeof message !== "object" || message === null)
  44002. return "object expected";
  44003. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  44004. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  44005. return "moduleid: integer|Long expected";
  44006. return null;
  44007. };
  44008. /**
  44009. * Creates a fund_award message from a plain object. Also converts values to their respective internal types.
  44010. * @function fromObject
  44011. * @memberof game.fund_award
  44012. * @static
  44013. * @param {Object.<string,*>} object Plain object
  44014. * @returns {game.fund_award} fund_award
  44015. */
  44016. fund_award.fromObject = function fromObject(object) {
  44017. if (object instanceof $root.game.fund_award)
  44018. return object;
  44019. let message = new $root.game.fund_award();
  44020. if (object.moduleid != null)
  44021. if ($util.Long)
  44022. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  44023. else if (typeof object.moduleid === "string")
  44024. message.moduleid = parseInt(object.moduleid, 10);
  44025. else if (typeof object.moduleid === "number")
  44026. message.moduleid = object.moduleid;
  44027. else if (typeof object.moduleid === "object")
  44028. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  44029. return message;
  44030. };
  44031. /**
  44032. * Creates a plain object from a fund_award message. Also converts values to other types if specified.
  44033. * @function toObject
  44034. * @memberof game.fund_award
  44035. * @static
  44036. * @param {game.fund_award} message fund_award
  44037. * @param {$protobuf.IConversionOptions} [options] Conversion options
  44038. * @returns {Object.<string,*>} Plain object
  44039. */
  44040. fund_award.toObject = function toObject(message, options) {
  44041. if (!options)
  44042. options = {};
  44043. let object = {};
  44044. if (options.defaults)
  44045. if ($util.Long) {
  44046. let long = new $util.Long(0, 0, false);
  44047. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  44048. } else
  44049. object.moduleid = options.longs === String ? "0" : 0;
  44050. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  44051. if (typeof message.moduleid === "number")
  44052. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  44053. else
  44054. 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;
  44055. return object;
  44056. };
  44057. /**
  44058. * Converts this fund_award to JSON.
  44059. * @function toJSON
  44060. * @memberof game.fund_award
  44061. * @instance
  44062. * @returns {Object.<string,*>} JSON object
  44063. */
  44064. fund_award.prototype.toJSON = function toJSON() {
  44065. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  44066. };
  44067. return fund_award;
  44068. })();
  44069. game.fund_award_rsp = (function() {
  44070. /**
  44071. * Properties of a fund_award_rsp.
  44072. * @memberof game
  44073. * @interface Ifund_award_rsp
  44074. * @property {number|Long|null} [errno] fund_award_rsp errno
  44075. * @property {number|Long|null} [moduleid] fund_award_rsp moduleid
  44076. * @property {number|Long|null} [award] fund_award_rsp award
  44077. * @property {number|Long|null} [freeAward] fund_award_rsp freeAward
  44078. */
  44079. /**
  44080. * Constructs a new fund_award_rsp.
  44081. * @memberof game
  44082. * @classdesc Represents a fund_award_rsp.
  44083. * @implements Ifund_award_rsp
  44084. * @constructor
  44085. * @param {game.Ifund_award_rsp=} [properties] Properties to set
  44086. */
  44087. function fund_award_rsp(properties) {
  44088. if (properties)
  44089. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  44090. if (properties[keys[i]] != null)
  44091. this[keys[i]] = properties[keys[i]];
  44092. }
  44093. /**
  44094. * fund_award_rsp errno.
  44095. * @member {number|Long} errno
  44096. * @memberof game.fund_award_rsp
  44097. * @instance
  44098. */
  44099. fund_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  44100. /**
  44101. * fund_award_rsp moduleid.
  44102. * @member {number|Long} moduleid
  44103. * @memberof game.fund_award_rsp
  44104. * @instance
  44105. */
  44106. fund_award_rsp.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  44107. /**
  44108. * fund_award_rsp award.
  44109. * @member {number|Long} award
  44110. * @memberof game.fund_award_rsp
  44111. * @instance
  44112. */
  44113. fund_award_rsp.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  44114. /**
  44115. * fund_award_rsp freeAward.
  44116. * @member {number|Long} freeAward
  44117. * @memberof game.fund_award_rsp
  44118. * @instance
  44119. */
  44120. fund_award_rsp.prototype.freeAward = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  44121. /**
  44122. * Creates a new fund_award_rsp instance using the specified properties.
  44123. * @function create
  44124. * @memberof game.fund_award_rsp
  44125. * @static
  44126. * @param {game.Ifund_award_rsp=} [properties] Properties to set
  44127. * @returns {game.fund_award_rsp} fund_award_rsp instance
  44128. */
  44129. fund_award_rsp.create = function create(properties) {
  44130. return new fund_award_rsp(properties);
  44131. };
  44132. /**
  44133. * Encodes the specified fund_award_rsp message. Does not implicitly {@link game.fund_award_rsp.verify|verify} messages.
  44134. * @function encode
  44135. * @memberof game.fund_award_rsp
  44136. * @static
  44137. * @param {game.Ifund_award_rsp} message fund_award_rsp message or plain object to encode
  44138. * @param {$protobuf.Writer} [writer] Writer to encode to
  44139. * @returns {$protobuf.Writer} Writer
  44140. */
  44141. fund_award_rsp.encode = function encode(message, writer) {
  44142. if (!writer)
  44143. writer = $Writer.create();
  44144. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  44145. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  44146. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  44147. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.moduleid);
  44148. if (message.award != null && Object.hasOwnProperty.call(message, "award"))
  44149. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.award);
  44150. if (message.freeAward != null && Object.hasOwnProperty.call(message, "freeAward"))
  44151. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.freeAward);
  44152. return writer;
  44153. };
  44154. /**
  44155. * Encodes the specified fund_award_rsp message, length delimited. Does not implicitly {@link game.fund_award_rsp.verify|verify} messages.
  44156. * @function encodeDelimited
  44157. * @memberof game.fund_award_rsp
  44158. * @static
  44159. * @param {game.Ifund_award_rsp} message fund_award_rsp message or plain object to encode
  44160. * @param {$protobuf.Writer} [writer] Writer to encode to
  44161. * @returns {$protobuf.Writer} Writer
  44162. */
  44163. fund_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  44164. return this.encode(message, writer).ldelim();
  44165. };
  44166. /**
  44167. * Decodes a fund_award_rsp message from the specified reader or buffer.
  44168. * @function decode
  44169. * @memberof game.fund_award_rsp
  44170. * @static
  44171. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  44172. * @param {number} [length] Message length if known beforehand
  44173. * @returns {game.fund_award_rsp} fund_award_rsp
  44174. * @throws {Error} If the payload is not a reader or valid buffer
  44175. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  44176. */
  44177. fund_award_rsp.decode = function decode(reader, length) {
  44178. if (!(reader instanceof $Reader))
  44179. reader = $Reader.create(reader);
  44180. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.fund_award_rsp();
  44181. while (reader.pos < end) {
  44182. let tag = reader.uint32();
  44183. switch (tag >>> 3) {
  44184. case 1:
  44185. message.errno = reader.int64();
  44186. break;
  44187. case 2:
  44188. message.moduleid = reader.int64();
  44189. break;
  44190. case 3:
  44191. message.award = reader.int64();
  44192. break;
  44193. case 4:
  44194. message.freeAward = reader.int64();
  44195. break;
  44196. default:
  44197. reader.skipType(tag & 7);
  44198. break;
  44199. }
  44200. }
  44201. return message;
  44202. };
  44203. /**
  44204. * Decodes a fund_award_rsp message from the specified reader or buffer, length delimited.
  44205. * @function decodeDelimited
  44206. * @memberof game.fund_award_rsp
  44207. * @static
  44208. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  44209. * @returns {game.fund_award_rsp} fund_award_rsp
  44210. * @throws {Error} If the payload is not a reader or valid buffer
  44211. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  44212. */
  44213. fund_award_rsp.decodeDelimited = function decodeDelimited(reader) {
  44214. if (!(reader instanceof $Reader))
  44215. reader = new $Reader(reader);
  44216. return this.decode(reader, reader.uint32());
  44217. };
  44218. /**
  44219. * Verifies a fund_award_rsp message.
  44220. * @function verify
  44221. * @memberof game.fund_award_rsp
  44222. * @static
  44223. * @param {Object.<string,*>} message Plain object to verify
  44224. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  44225. */
  44226. fund_award_rsp.verify = function verify(message) {
  44227. if (typeof message !== "object" || message === null)
  44228. return "object expected";
  44229. if (message.errno != null && message.hasOwnProperty("errno"))
  44230. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  44231. return "errno: integer|Long expected";
  44232. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  44233. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  44234. return "moduleid: integer|Long expected";
  44235. if (message.award != null && message.hasOwnProperty("award"))
  44236. if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
  44237. return "award: integer|Long expected";
  44238. if (message.freeAward != null && message.hasOwnProperty("freeAward"))
  44239. if (!$util.isInteger(message.freeAward) && !(message.freeAward && $util.isInteger(message.freeAward.low) && $util.isInteger(message.freeAward.high)))
  44240. return "freeAward: integer|Long expected";
  44241. return null;
  44242. };
  44243. /**
  44244. * Creates a fund_award_rsp message from a plain object. Also converts values to their respective internal types.
  44245. * @function fromObject
  44246. * @memberof game.fund_award_rsp
  44247. * @static
  44248. * @param {Object.<string,*>} object Plain object
  44249. * @returns {game.fund_award_rsp} fund_award_rsp
  44250. */
  44251. fund_award_rsp.fromObject = function fromObject(object) {
  44252. if (object instanceof $root.game.fund_award_rsp)
  44253. return object;
  44254. let message = new $root.game.fund_award_rsp();
  44255. if (object.errno != null)
  44256. if ($util.Long)
  44257. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  44258. else if (typeof object.errno === "string")
  44259. message.errno = parseInt(object.errno, 10);
  44260. else if (typeof object.errno === "number")
  44261. message.errno = object.errno;
  44262. else if (typeof object.errno === "object")
  44263. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  44264. if (object.moduleid != null)
  44265. if ($util.Long)
  44266. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  44267. else if (typeof object.moduleid === "string")
  44268. message.moduleid = parseInt(object.moduleid, 10);
  44269. else if (typeof object.moduleid === "number")
  44270. message.moduleid = object.moduleid;
  44271. else if (typeof object.moduleid === "object")
  44272. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  44273. if (object.award != null)
  44274. if ($util.Long)
  44275. (message.award = $util.Long.fromValue(object.award)).unsigned = false;
  44276. else if (typeof object.award === "string")
  44277. message.award = parseInt(object.award, 10);
  44278. else if (typeof object.award === "number")
  44279. message.award = object.award;
  44280. else if (typeof object.award === "object")
  44281. message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
  44282. if (object.freeAward != null)
  44283. if ($util.Long)
  44284. (message.freeAward = $util.Long.fromValue(object.freeAward)).unsigned = false;
  44285. else if (typeof object.freeAward === "string")
  44286. message.freeAward = parseInt(object.freeAward, 10);
  44287. else if (typeof object.freeAward === "number")
  44288. message.freeAward = object.freeAward;
  44289. else if (typeof object.freeAward === "object")
  44290. message.freeAward = new $util.LongBits(object.freeAward.low >>> 0, object.freeAward.high >>> 0).toNumber();
  44291. return message;
  44292. };
  44293. /**
  44294. * Creates a plain object from a fund_award_rsp message. Also converts values to other types if specified.
  44295. * @function toObject
  44296. * @memberof game.fund_award_rsp
  44297. * @static
  44298. * @param {game.fund_award_rsp} message fund_award_rsp
  44299. * @param {$protobuf.IConversionOptions} [options] Conversion options
  44300. * @returns {Object.<string,*>} Plain object
  44301. */
  44302. fund_award_rsp.toObject = function toObject(message, options) {
  44303. if (!options)
  44304. options = {};
  44305. let object = {};
  44306. if (options.defaults) {
  44307. if ($util.Long) {
  44308. let long = new $util.Long(0, 0, false);
  44309. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  44310. } else
  44311. object.errno = options.longs === String ? "0" : 0;
  44312. if ($util.Long) {
  44313. let long = new $util.Long(0, 0, false);
  44314. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  44315. } else
  44316. object.moduleid = options.longs === String ? "0" : 0;
  44317. if ($util.Long) {
  44318. let long = new $util.Long(0, 0, false);
  44319. object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  44320. } else
  44321. object.award = options.longs === String ? "0" : 0;
  44322. if ($util.Long) {
  44323. let long = new $util.Long(0, 0, false);
  44324. object.freeAward = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  44325. } else
  44326. object.freeAward = options.longs === String ? "0" : 0;
  44327. }
  44328. if (message.errno != null && message.hasOwnProperty("errno"))
  44329. if (typeof message.errno === "number")
  44330. object.errno = options.longs === String ? String(message.errno) : message.errno;
  44331. else
  44332. 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;
  44333. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  44334. if (typeof message.moduleid === "number")
  44335. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  44336. else
  44337. 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;
  44338. if (message.award != null && message.hasOwnProperty("award"))
  44339. if (typeof message.award === "number")
  44340. object.award = options.longs === String ? String(message.award) : message.award;
  44341. else
  44342. 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;
  44343. if (message.freeAward != null && message.hasOwnProperty("freeAward"))
  44344. if (typeof message.freeAward === "number")
  44345. object.freeAward = options.longs === String ? String(message.freeAward) : message.freeAward;
  44346. else
  44347. 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;
  44348. return object;
  44349. };
  44350. /**
  44351. * Converts this fund_award_rsp to JSON.
  44352. * @function toJSON
  44353. * @memberof game.fund_award_rsp
  44354. * @instance
  44355. * @returns {Object.<string,*>} JSON object
  44356. */
  44357. fund_award_rsp.prototype.toJSON = function toJSON() {
  44358. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  44359. };
  44360. return fund_award_rsp;
  44361. })();
  44362. game.fund_nty = (function() {
  44363. /**
  44364. * Properties of a fund_nty.
  44365. * @memberof game
  44366. * @interface Ifund_nty
  44367. * @property {number|Long|null} [moduleid] fund_nty moduleid
  44368. * @property {boolean|null} [state] fund_nty state
  44369. * @property {number|Long|null} [award] fund_nty award
  44370. * @property {number|Long|null} [freeAward] fund_nty freeAward
  44371. * @property {number|Long|null} [progress] fund_nty progress
  44372. */
  44373. /**
  44374. * Constructs a new fund_nty.
  44375. * @memberof game
  44376. * @classdesc Represents a fund_nty.
  44377. * @implements Ifund_nty
  44378. * @constructor
  44379. * @param {game.Ifund_nty=} [properties] Properties to set
  44380. */
  44381. function fund_nty(properties) {
  44382. if (properties)
  44383. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  44384. if (properties[keys[i]] != null)
  44385. this[keys[i]] = properties[keys[i]];
  44386. }
  44387. /**
  44388. * fund_nty moduleid.
  44389. * @member {number|Long} moduleid
  44390. * @memberof game.fund_nty
  44391. * @instance
  44392. */
  44393. fund_nty.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  44394. /**
  44395. * fund_nty state.
  44396. * @member {boolean} state
  44397. * @memberof game.fund_nty
  44398. * @instance
  44399. */
  44400. fund_nty.prototype.state = false;
  44401. /**
  44402. * fund_nty award.
  44403. * @member {number|Long} award
  44404. * @memberof game.fund_nty
  44405. * @instance
  44406. */
  44407. fund_nty.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  44408. /**
  44409. * fund_nty freeAward.
  44410. * @member {number|Long} freeAward
  44411. * @memberof game.fund_nty
  44412. * @instance
  44413. */
  44414. fund_nty.prototype.freeAward = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  44415. /**
  44416. * fund_nty progress.
  44417. * @member {number|Long} progress
  44418. * @memberof game.fund_nty
  44419. * @instance
  44420. */
  44421. fund_nty.prototype.progress = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  44422. /**
  44423. * Creates a new fund_nty instance using the specified properties.
  44424. * @function create
  44425. * @memberof game.fund_nty
  44426. * @static
  44427. * @param {game.Ifund_nty=} [properties] Properties to set
  44428. * @returns {game.fund_nty} fund_nty instance
  44429. */
  44430. fund_nty.create = function create(properties) {
  44431. return new fund_nty(properties);
  44432. };
  44433. /**
  44434. * Encodes the specified fund_nty message. Does not implicitly {@link game.fund_nty.verify|verify} messages.
  44435. * @function encode
  44436. * @memberof game.fund_nty
  44437. * @static
  44438. * @param {game.Ifund_nty} message fund_nty message or plain object to encode
  44439. * @param {$protobuf.Writer} [writer] Writer to encode to
  44440. * @returns {$protobuf.Writer} Writer
  44441. */
  44442. fund_nty.encode = function encode(message, writer) {
  44443. if (!writer)
  44444. writer = $Writer.create();
  44445. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  44446. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.moduleid);
  44447. if (message.state != null && Object.hasOwnProperty.call(message, "state"))
  44448. writer.uint32(/* id 3, wireType 0 =*/24).bool(message.state);
  44449. if (message.award != null && Object.hasOwnProperty.call(message, "award"))
  44450. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.award);
  44451. if (message.freeAward != null && Object.hasOwnProperty.call(message, "freeAward"))
  44452. writer.uint32(/* id 5, wireType 0 =*/40).int64(message.freeAward);
  44453. if (message.progress != null && Object.hasOwnProperty.call(message, "progress"))
  44454. writer.uint32(/* id 6, wireType 0 =*/48).int64(message.progress);
  44455. return writer;
  44456. };
  44457. /**
  44458. * Encodes the specified fund_nty message, length delimited. Does not implicitly {@link game.fund_nty.verify|verify} messages.
  44459. * @function encodeDelimited
  44460. * @memberof game.fund_nty
  44461. * @static
  44462. * @param {game.Ifund_nty} message fund_nty message or plain object to encode
  44463. * @param {$protobuf.Writer} [writer] Writer to encode to
  44464. * @returns {$protobuf.Writer} Writer
  44465. */
  44466. fund_nty.encodeDelimited = function encodeDelimited(message, writer) {
  44467. return this.encode(message, writer).ldelim();
  44468. };
  44469. /**
  44470. * Decodes a fund_nty message from the specified reader or buffer.
  44471. * @function decode
  44472. * @memberof game.fund_nty
  44473. * @static
  44474. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  44475. * @param {number} [length] Message length if known beforehand
  44476. * @returns {game.fund_nty} fund_nty
  44477. * @throws {Error} If the payload is not a reader or valid buffer
  44478. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  44479. */
  44480. fund_nty.decode = function decode(reader, length) {
  44481. if (!(reader instanceof $Reader))
  44482. reader = $Reader.create(reader);
  44483. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.fund_nty();
  44484. while (reader.pos < end) {
  44485. let tag = reader.uint32();
  44486. switch (tag >>> 3) {
  44487. case 2:
  44488. message.moduleid = reader.int64();
  44489. break;
  44490. case 3:
  44491. message.state = reader.bool();
  44492. break;
  44493. case 4:
  44494. message.award = reader.int64();
  44495. break;
  44496. case 5:
  44497. message.freeAward = reader.int64();
  44498. break;
  44499. case 6:
  44500. message.progress = reader.int64();
  44501. break;
  44502. default:
  44503. reader.skipType(tag & 7);
  44504. break;
  44505. }
  44506. }
  44507. return message;
  44508. };
  44509. /**
  44510. * Decodes a fund_nty message from the specified reader or buffer, length delimited.
  44511. * @function decodeDelimited
  44512. * @memberof game.fund_nty
  44513. * @static
  44514. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  44515. * @returns {game.fund_nty} fund_nty
  44516. * @throws {Error} If the payload is not a reader or valid buffer
  44517. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  44518. */
  44519. fund_nty.decodeDelimited = function decodeDelimited(reader) {
  44520. if (!(reader instanceof $Reader))
  44521. reader = new $Reader(reader);
  44522. return this.decode(reader, reader.uint32());
  44523. };
  44524. /**
  44525. * Verifies a fund_nty message.
  44526. * @function verify
  44527. * @memberof game.fund_nty
  44528. * @static
  44529. * @param {Object.<string,*>} message Plain object to verify
  44530. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  44531. */
  44532. fund_nty.verify = function verify(message) {
  44533. if (typeof message !== "object" || message === null)
  44534. return "object expected";
  44535. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  44536. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  44537. return "moduleid: integer|Long expected";
  44538. if (message.state != null && message.hasOwnProperty("state"))
  44539. if (typeof message.state !== "boolean")
  44540. return "state: boolean expected";
  44541. if (message.award != null && message.hasOwnProperty("award"))
  44542. if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
  44543. return "award: integer|Long expected";
  44544. if (message.freeAward != null && message.hasOwnProperty("freeAward"))
  44545. if (!$util.isInteger(message.freeAward) && !(message.freeAward && $util.isInteger(message.freeAward.low) && $util.isInteger(message.freeAward.high)))
  44546. return "freeAward: integer|Long expected";
  44547. if (message.progress != null && message.hasOwnProperty("progress"))
  44548. if (!$util.isInteger(message.progress) && !(message.progress && $util.isInteger(message.progress.low) && $util.isInteger(message.progress.high)))
  44549. return "progress: integer|Long expected";
  44550. return null;
  44551. };
  44552. /**
  44553. * Creates a fund_nty message from a plain object. Also converts values to their respective internal types.
  44554. * @function fromObject
  44555. * @memberof game.fund_nty
  44556. * @static
  44557. * @param {Object.<string,*>} object Plain object
  44558. * @returns {game.fund_nty} fund_nty
  44559. */
  44560. fund_nty.fromObject = function fromObject(object) {
  44561. if (object instanceof $root.game.fund_nty)
  44562. return object;
  44563. let message = new $root.game.fund_nty();
  44564. if (object.moduleid != null)
  44565. if ($util.Long)
  44566. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  44567. else if (typeof object.moduleid === "string")
  44568. message.moduleid = parseInt(object.moduleid, 10);
  44569. else if (typeof object.moduleid === "number")
  44570. message.moduleid = object.moduleid;
  44571. else if (typeof object.moduleid === "object")
  44572. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  44573. if (object.state != null)
  44574. message.state = Boolean(object.state);
  44575. if (object.award != null)
  44576. if ($util.Long)
  44577. (message.award = $util.Long.fromValue(object.award)).unsigned = false;
  44578. else if (typeof object.award === "string")
  44579. message.award = parseInt(object.award, 10);
  44580. else if (typeof object.award === "number")
  44581. message.award = object.award;
  44582. else if (typeof object.award === "object")
  44583. message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
  44584. if (object.freeAward != null)
  44585. if ($util.Long)
  44586. (message.freeAward = $util.Long.fromValue(object.freeAward)).unsigned = false;
  44587. else if (typeof object.freeAward === "string")
  44588. message.freeAward = parseInt(object.freeAward, 10);
  44589. else if (typeof object.freeAward === "number")
  44590. message.freeAward = object.freeAward;
  44591. else if (typeof object.freeAward === "object")
  44592. message.freeAward = new $util.LongBits(object.freeAward.low >>> 0, object.freeAward.high >>> 0).toNumber();
  44593. if (object.progress != null)
  44594. if ($util.Long)
  44595. (message.progress = $util.Long.fromValue(object.progress)).unsigned = false;
  44596. else if (typeof object.progress === "string")
  44597. message.progress = parseInt(object.progress, 10);
  44598. else if (typeof object.progress === "number")
  44599. message.progress = object.progress;
  44600. else if (typeof object.progress === "object")
  44601. message.progress = new $util.LongBits(object.progress.low >>> 0, object.progress.high >>> 0).toNumber();
  44602. return message;
  44603. };
  44604. /**
  44605. * Creates a plain object from a fund_nty message. Also converts values to other types if specified.
  44606. * @function toObject
  44607. * @memberof game.fund_nty
  44608. * @static
  44609. * @param {game.fund_nty} message fund_nty
  44610. * @param {$protobuf.IConversionOptions} [options] Conversion options
  44611. * @returns {Object.<string,*>} Plain object
  44612. */
  44613. fund_nty.toObject = function toObject(message, options) {
  44614. if (!options)
  44615. options = {};
  44616. let object = {};
  44617. if (options.defaults) {
  44618. if ($util.Long) {
  44619. let long = new $util.Long(0, 0, false);
  44620. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  44621. } else
  44622. object.moduleid = options.longs === String ? "0" : 0;
  44623. object.state = false;
  44624. if ($util.Long) {
  44625. let long = new $util.Long(0, 0, false);
  44626. object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  44627. } else
  44628. object.award = options.longs === String ? "0" : 0;
  44629. if ($util.Long) {
  44630. let long = new $util.Long(0, 0, false);
  44631. object.freeAward = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  44632. } else
  44633. object.freeAward = options.longs === String ? "0" : 0;
  44634. if ($util.Long) {
  44635. let long = new $util.Long(0, 0, false);
  44636. object.progress = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  44637. } else
  44638. object.progress = options.longs === String ? "0" : 0;
  44639. }
  44640. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  44641. if (typeof message.moduleid === "number")
  44642. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  44643. else
  44644. 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;
  44645. if (message.state != null && message.hasOwnProperty("state"))
  44646. object.state = message.state;
  44647. if (message.award != null && message.hasOwnProperty("award"))
  44648. if (typeof message.award === "number")
  44649. object.award = options.longs === String ? String(message.award) : message.award;
  44650. else
  44651. 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;
  44652. if (message.freeAward != null && message.hasOwnProperty("freeAward"))
  44653. if (typeof message.freeAward === "number")
  44654. object.freeAward = options.longs === String ? String(message.freeAward) : message.freeAward;
  44655. else
  44656. 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;
  44657. if (message.progress != null && message.hasOwnProperty("progress"))
  44658. if (typeof message.progress === "number")
  44659. object.progress = options.longs === String ? String(message.progress) : message.progress;
  44660. else
  44661. 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;
  44662. return object;
  44663. };
  44664. /**
  44665. * Converts this fund_nty to JSON.
  44666. * @function toJSON
  44667. * @memberof game.fund_nty
  44668. * @instance
  44669. * @returns {Object.<string,*>} JSON object
  44670. */
  44671. fund_nty.prototype.toJSON = function toJSON() {
  44672. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  44673. };
  44674. return fund_nty;
  44675. })();
  44676. game.keep_recharge_data = (function() {
  44677. /**
  44678. * Properties of a keep_recharge_data.
  44679. * @memberof game
  44680. * @interface Ikeep_recharge_data
  44681. */
  44682. /**
  44683. * Constructs a new keep_recharge_data.
  44684. * @memberof game
  44685. * @classdesc Represents a keep_recharge_data.
  44686. * @implements Ikeep_recharge_data
  44687. * @constructor
  44688. * @param {game.Ikeep_recharge_data=} [properties] Properties to set
  44689. */
  44690. function keep_recharge_data(properties) {
  44691. if (properties)
  44692. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  44693. if (properties[keys[i]] != null)
  44694. this[keys[i]] = properties[keys[i]];
  44695. }
  44696. /**
  44697. * Creates a new keep_recharge_data instance using the specified properties.
  44698. * @function create
  44699. * @memberof game.keep_recharge_data
  44700. * @static
  44701. * @param {game.Ikeep_recharge_data=} [properties] Properties to set
  44702. * @returns {game.keep_recharge_data} keep_recharge_data instance
  44703. */
  44704. keep_recharge_data.create = function create(properties) {
  44705. return new keep_recharge_data(properties);
  44706. };
  44707. /**
  44708. * Encodes the specified keep_recharge_data message. Does not implicitly {@link game.keep_recharge_data.verify|verify} messages.
  44709. * @function encode
  44710. * @memberof game.keep_recharge_data
  44711. * @static
  44712. * @param {game.Ikeep_recharge_data} message keep_recharge_data message or plain object to encode
  44713. * @param {$protobuf.Writer} [writer] Writer to encode to
  44714. * @returns {$protobuf.Writer} Writer
  44715. */
  44716. keep_recharge_data.encode = function encode(message, writer) {
  44717. if (!writer)
  44718. writer = $Writer.create();
  44719. return writer;
  44720. };
  44721. /**
  44722. * Encodes the specified keep_recharge_data message, length delimited. Does not implicitly {@link game.keep_recharge_data.verify|verify} messages.
  44723. * @function encodeDelimited
  44724. * @memberof game.keep_recharge_data
  44725. * @static
  44726. * @param {game.Ikeep_recharge_data} message keep_recharge_data message or plain object to encode
  44727. * @param {$protobuf.Writer} [writer] Writer to encode to
  44728. * @returns {$protobuf.Writer} Writer
  44729. */
  44730. keep_recharge_data.encodeDelimited = function encodeDelimited(message, writer) {
  44731. return this.encode(message, writer).ldelim();
  44732. };
  44733. /**
  44734. * Decodes a keep_recharge_data message from the specified reader or buffer.
  44735. * @function decode
  44736. * @memberof game.keep_recharge_data
  44737. * @static
  44738. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  44739. * @param {number} [length] Message length if known beforehand
  44740. * @returns {game.keep_recharge_data} keep_recharge_data
  44741. * @throws {Error} If the payload is not a reader or valid buffer
  44742. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  44743. */
  44744. keep_recharge_data.decode = function decode(reader, length) {
  44745. if (!(reader instanceof $Reader))
  44746. reader = $Reader.create(reader);
  44747. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.keep_recharge_data();
  44748. while (reader.pos < end) {
  44749. let tag = reader.uint32();
  44750. switch (tag >>> 3) {
  44751. default:
  44752. reader.skipType(tag & 7);
  44753. break;
  44754. }
  44755. }
  44756. return message;
  44757. };
  44758. /**
  44759. * Decodes a keep_recharge_data message from the specified reader or buffer, length delimited.
  44760. * @function decodeDelimited
  44761. * @memberof game.keep_recharge_data
  44762. * @static
  44763. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  44764. * @returns {game.keep_recharge_data} keep_recharge_data
  44765. * @throws {Error} If the payload is not a reader or valid buffer
  44766. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  44767. */
  44768. keep_recharge_data.decodeDelimited = function decodeDelimited(reader) {
  44769. if (!(reader instanceof $Reader))
  44770. reader = new $Reader(reader);
  44771. return this.decode(reader, reader.uint32());
  44772. };
  44773. /**
  44774. * Verifies a keep_recharge_data message.
  44775. * @function verify
  44776. * @memberof game.keep_recharge_data
  44777. * @static
  44778. * @param {Object.<string,*>} message Plain object to verify
  44779. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  44780. */
  44781. keep_recharge_data.verify = function verify(message) {
  44782. if (typeof message !== "object" || message === null)
  44783. return "object expected";
  44784. return null;
  44785. };
  44786. /**
  44787. * Creates a keep_recharge_data message from a plain object. Also converts values to their respective internal types.
  44788. * @function fromObject
  44789. * @memberof game.keep_recharge_data
  44790. * @static
  44791. * @param {Object.<string,*>} object Plain object
  44792. * @returns {game.keep_recharge_data} keep_recharge_data
  44793. */
  44794. keep_recharge_data.fromObject = function fromObject(object) {
  44795. if (object instanceof $root.game.keep_recharge_data)
  44796. return object;
  44797. return new $root.game.keep_recharge_data();
  44798. };
  44799. /**
  44800. * Creates a plain object from a keep_recharge_data message. Also converts values to other types if specified.
  44801. * @function toObject
  44802. * @memberof game.keep_recharge_data
  44803. * @static
  44804. * @param {game.keep_recharge_data} message keep_recharge_data
  44805. * @param {$protobuf.IConversionOptions} [options] Conversion options
  44806. * @returns {Object.<string,*>} Plain object
  44807. */
  44808. keep_recharge_data.toObject = function toObject() {
  44809. return {};
  44810. };
  44811. /**
  44812. * Converts this keep_recharge_data to JSON.
  44813. * @function toJSON
  44814. * @memberof game.keep_recharge_data
  44815. * @instance
  44816. * @returns {Object.<string,*>} JSON object
  44817. */
  44818. keep_recharge_data.prototype.toJSON = function toJSON() {
  44819. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  44820. };
  44821. return keep_recharge_data;
  44822. })();
  44823. game.keep_recharge_data_rsp = (function() {
  44824. /**
  44825. * Properties of a keep_recharge_data_rsp.
  44826. * @memberof game
  44827. * @interface Ikeep_recharge_data_rsp
  44828. * @property {number|Long|null} [errno] keep_recharge_data_rsp errno
  44829. * @property {number|Long|null} [day] keep_recharge_data_rsp day
  44830. * @property {number|Long|null} [num] keep_recharge_data_rsp num
  44831. * @property {number|Long|null} [award] keep_recharge_data_rsp award
  44832. */
  44833. /**
  44834. * Constructs a new keep_recharge_data_rsp.
  44835. * @memberof game
  44836. * @classdesc Represents a keep_recharge_data_rsp.
  44837. * @implements Ikeep_recharge_data_rsp
  44838. * @constructor
  44839. * @param {game.Ikeep_recharge_data_rsp=} [properties] Properties to set
  44840. */
  44841. function keep_recharge_data_rsp(properties) {
  44842. if (properties)
  44843. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  44844. if (properties[keys[i]] != null)
  44845. this[keys[i]] = properties[keys[i]];
  44846. }
  44847. /**
  44848. * keep_recharge_data_rsp errno.
  44849. * @member {number|Long} errno
  44850. * @memberof game.keep_recharge_data_rsp
  44851. * @instance
  44852. */
  44853. keep_recharge_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  44854. /**
  44855. * keep_recharge_data_rsp day.
  44856. * @member {number|Long} day
  44857. * @memberof game.keep_recharge_data_rsp
  44858. * @instance
  44859. */
  44860. keep_recharge_data_rsp.prototype.day = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  44861. /**
  44862. * keep_recharge_data_rsp num.
  44863. * @member {number|Long} num
  44864. * @memberof game.keep_recharge_data_rsp
  44865. * @instance
  44866. */
  44867. keep_recharge_data_rsp.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  44868. /**
  44869. * keep_recharge_data_rsp award.
  44870. * @member {number|Long} award
  44871. * @memberof game.keep_recharge_data_rsp
  44872. * @instance
  44873. */
  44874. keep_recharge_data_rsp.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  44875. /**
  44876. * Creates a new keep_recharge_data_rsp instance using the specified properties.
  44877. * @function create
  44878. * @memberof game.keep_recharge_data_rsp
  44879. * @static
  44880. * @param {game.Ikeep_recharge_data_rsp=} [properties] Properties to set
  44881. * @returns {game.keep_recharge_data_rsp} keep_recharge_data_rsp instance
  44882. */
  44883. keep_recharge_data_rsp.create = function create(properties) {
  44884. return new keep_recharge_data_rsp(properties);
  44885. };
  44886. /**
  44887. * Encodes the specified keep_recharge_data_rsp message. Does not implicitly {@link game.keep_recharge_data_rsp.verify|verify} messages.
  44888. * @function encode
  44889. * @memberof game.keep_recharge_data_rsp
  44890. * @static
  44891. * @param {game.Ikeep_recharge_data_rsp} message keep_recharge_data_rsp message or plain object to encode
  44892. * @param {$protobuf.Writer} [writer] Writer to encode to
  44893. * @returns {$protobuf.Writer} Writer
  44894. */
  44895. keep_recharge_data_rsp.encode = function encode(message, writer) {
  44896. if (!writer)
  44897. writer = $Writer.create();
  44898. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  44899. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  44900. if (message.day != null && Object.hasOwnProperty.call(message, "day"))
  44901. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.day);
  44902. if (message.num != null && Object.hasOwnProperty.call(message, "num"))
  44903. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.num);
  44904. if (message.award != null && Object.hasOwnProperty.call(message, "award"))
  44905. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.award);
  44906. return writer;
  44907. };
  44908. /**
  44909. * Encodes the specified keep_recharge_data_rsp message, length delimited. Does not implicitly {@link game.keep_recharge_data_rsp.verify|verify} messages.
  44910. * @function encodeDelimited
  44911. * @memberof game.keep_recharge_data_rsp
  44912. * @static
  44913. * @param {game.Ikeep_recharge_data_rsp} message keep_recharge_data_rsp message or plain object to encode
  44914. * @param {$protobuf.Writer} [writer] Writer to encode to
  44915. * @returns {$protobuf.Writer} Writer
  44916. */
  44917. keep_recharge_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  44918. return this.encode(message, writer).ldelim();
  44919. };
  44920. /**
  44921. * Decodes a keep_recharge_data_rsp message from the specified reader or buffer.
  44922. * @function decode
  44923. * @memberof game.keep_recharge_data_rsp
  44924. * @static
  44925. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  44926. * @param {number} [length] Message length if known beforehand
  44927. * @returns {game.keep_recharge_data_rsp} keep_recharge_data_rsp
  44928. * @throws {Error} If the payload is not a reader or valid buffer
  44929. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  44930. */
  44931. keep_recharge_data_rsp.decode = function decode(reader, length) {
  44932. if (!(reader instanceof $Reader))
  44933. reader = $Reader.create(reader);
  44934. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.keep_recharge_data_rsp();
  44935. while (reader.pos < end) {
  44936. let tag = reader.uint32();
  44937. switch (tag >>> 3) {
  44938. case 1:
  44939. message.errno = reader.int64();
  44940. break;
  44941. case 2:
  44942. message.day = reader.int64();
  44943. break;
  44944. case 3:
  44945. message.num = reader.int64();
  44946. break;
  44947. case 4:
  44948. message.award = reader.int64();
  44949. break;
  44950. default:
  44951. reader.skipType(tag & 7);
  44952. break;
  44953. }
  44954. }
  44955. return message;
  44956. };
  44957. /**
  44958. * Decodes a keep_recharge_data_rsp message from the specified reader or buffer, length delimited.
  44959. * @function decodeDelimited
  44960. * @memberof game.keep_recharge_data_rsp
  44961. * @static
  44962. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  44963. * @returns {game.keep_recharge_data_rsp} keep_recharge_data_rsp
  44964. * @throws {Error} If the payload is not a reader or valid buffer
  44965. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  44966. */
  44967. keep_recharge_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  44968. if (!(reader instanceof $Reader))
  44969. reader = new $Reader(reader);
  44970. return this.decode(reader, reader.uint32());
  44971. };
  44972. /**
  44973. * Verifies a keep_recharge_data_rsp message.
  44974. * @function verify
  44975. * @memberof game.keep_recharge_data_rsp
  44976. * @static
  44977. * @param {Object.<string,*>} message Plain object to verify
  44978. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  44979. */
  44980. keep_recharge_data_rsp.verify = function verify(message) {
  44981. if (typeof message !== "object" || message === null)
  44982. return "object expected";
  44983. if (message.errno != null && message.hasOwnProperty("errno"))
  44984. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  44985. return "errno: integer|Long expected";
  44986. if (message.day != null && message.hasOwnProperty("day"))
  44987. if (!$util.isInteger(message.day) && !(message.day && $util.isInteger(message.day.low) && $util.isInteger(message.day.high)))
  44988. return "day: integer|Long expected";
  44989. if (message.num != null && message.hasOwnProperty("num"))
  44990. if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
  44991. return "num: integer|Long expected";
  44992. if (message.award != null && message.hasOwnProperty("award"))
  44993. if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
  44994. return "award: integer|Long expected";
  44995. return null;
  44996. };
  44997. /**
  44998. * Creates a keep_recharge_data_rsp message from a plain object. Also converts values to their respective internal types.
  44999. * @function fromObject
  45000. * @memberof game.keep_recharge_data_rsp
  45001. * @static
  45002. * @param {Object.<string,*>} object Plain object
  45003. * @returns {game.keep_recharge_data_rsp} keep_recharge_data_rsp
  45004. */
  45005. keep_recharge_data_rsp.fromObject = function fromObject(object) {
  45006. if (object instanceof $root.game.keep_recharge_data_rsp)
  45007. return object;
  45008. let message = new $root.game.keep_recharge_data_rsp();
  45009. if (object.errno != null)
  45010. if ($util.Long)
  45011. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  45012. else if (typeof object.errno === "string")
  45013. message.errno = parseInt(object.errno, 10);
  45014. else if (typeof object.errno === "number")
  45015. message.errno = object.errno;
  45016. else if (typeof object.errno === "object")
  45017. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  45018. if (object.day != null)
  45019. if ($util.Long)
  45020. (message.day = $util.Long.fromValue(object.day)).unsigned = false;
  45021. else if (typeof object.day === "string")
  45022. message.day = parseInt(object.day, 10);
  45023. else if (typeof object.day === "number")
  45024. message.day = object.day;
  45025. else if (typeof object.day === "object")
  45026. message.day = new $util.LongBits(object.day.low >>> 0, object.day.high >>> 0).toNumber();
  45027. if (object.num != null)
  45028. if ($util.Long)
  45029. (message.num = $util.Long.fromValue(object.num)).unsigned = false;
  45030. else if (typeof object.num === "string")
  45031. message.num = parseInt(object.num, 10);
  45032. else if (typeof object.num === "number")
  45033. message.num = object.num;
  45034. else if (typeof object.num === "object")
  45035. message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
  45036. if (object.award != null)
  45037. if ($util.Long)
  45038. (message.award = $util.Long.fromValue(object.award)).unsigned = false;
  45039. else if (typeof object.award === "string")
  45040. message.award = parseInt(object.award, 10);
  45041. else if (typeof object.award === "number")
  45042. message.award = object.award;
  45043. else if (typeof object.award === "object")
  45044. message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
  45045. return message;
  45046. };
  45047. /**
  45048. * Creates a plain object from a keep_recharge_data_rsp message. Also converts values to other types if specified.
  45049. * @function toObject
  45050. * @memberof game.keep_recharge_data_rsp
  45051. * @static
  45052. * @param {game.keep_recharge_data_rsp} message keep_recharge_data_rsp
  45053. * @param {$protobuf.IConversionOptions} [options] Conversion options
  45054. * @returns {Object.<string,*>} Plain object
  45055. */
  45056. keep_recharge_data_rsp.toObject = function toObject(message, options) {
  45057. if (!options)
  45058. options = {};
  45059. let object = {};
  45060. if (options.defaults) {
  45061. if ($util.Long) {
  45062. let long = new $util.Long(0, 0, false);
  45063. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  45064. } else
  45065. object.errno = options.longs === String ? "0" : 0;
  45066. if ($util.Long) {
  45067. let long = new $util.Long(0, 0, false);
  45068. object.day = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  45069. } else
  45070. object.day = options.longs === String ? "0" : 0;
  45071. if ($util.Long) {
  45072. let long = new $util.Long(0, 0, false);
  45073. object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  45074. } else
  45075. object.num = options.longs === String ? "0" : 0;
  45076. if ($util.Long) {
  45077. let long = new $util.Long(0, 0, false);
  45078. object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  45079. } else
  45080. object.award = options.longs === String ? "0" : 0;
  45081. }
  45082. if (message.errno != null && message.hasOwnProperty("errno"))
  45083. if (typeof message.errno === "number")
  45084. object.errno = options.longs === String ? String(message.errno) : message.errno;
  45085. else
  45086. 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;
  45087. if (message.day != null && message.hasOwnProperty("day"))
  45088. if (typeof message.day === "number")
  45089. object.day = options.longs === String ? String(message.day) : message.day;
  45090. else
  45091. 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;
  45092. if (message.num != null && message.hasOwnProperty("num"))
  45093. if (typeof message.num === "number")
  45094. object.num = options.longs === String ? String(message.num) : message.num;
  45095. else
  45096. 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;
  45097. if (message.award != null && message.hasOwnProperty("award"))
  45098. if (typeof message.award === "number")
  45099. object.award = options.longs === String ? String(message.award) : message.award;
  45100. else
  45101. 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;
  45102. return object;
  45103. };
  45104. /**
  45105. * Converts this keep_recharge_data_rsp to JSON.
  45106. * @function toJSON
  45107. * @memberof game.keep_recharge_data_rsp
  45108. * @instance
  45109. * @returns {Object.<string,*>} JSON object
  45110. */
  45111. keep_recharge_data_rsp.prototype.toJSON = function toJSON() {
  45112. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  45113. };
  45114. return keep_recharge_data_rsp;
  45115. })();
  45116. game.keep_recharge_award = (function() {
  45117. /**
  45118. * Properties of a keep_recharge_award.
  45119. * @memberof game
  45120. * @interface Ikeep_recharge_award
  45121. * @property {number|Long|null} [day] keep_recharge_award day
  45122. */
  45123. /**
  45124. * Constructs a new keep_recharge_award.
  45125. * @memberof game
  45126. * @classdesc Represents a keep_recharge_award.
  45127. * @implements Ikeep_recharge_award
  45128. * @constructor
  45129. * @param {game.Ikeep_recharge_award=} [properties] Properties to set
  45130. */
  45131. function keep_recharge_award(properties) {
  45132. if (properties)
  45133. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  45134. if (properties[keys[i]] != null)
  45135. this[keys[i]] = properties[keys[i]];
  45136. }
  45137. /**
  45138. * keep_recharge_award day.
  45139. * @member {number|Long} day
  45140. * @memberof game.keep_recharge_award
  45141. * @instance
  45142. */
  45143. keep_recharge_award.prototype.day = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  45144. /**
  45145. * Creates a new keep_recharge_award instance using the specified properties.
  45146. * @function create
  45147. * @memberof game.keep_recharge_award
  45148. * @static
  45149. * @param {game.Ikeep_recharge_award=} [properties] Properties to set
  45150. * @returns {game.keep_recharge_award} keep_recharge_award instance
  45151. */
  45152. keep_recharge_award.create = function create(properties) {
  45153. return new keep_recharge_award(properties);
  45154. };
  45155. /**
  45156. * Encodes the specified keep_recharge_award message. Does not implicitly {@link game.keep_recharge_award.verify|verify} messages.
  45157. * @function encode
  45158. * @memberof game.keep_recharge_award
  45159. * @static
  45160. * @param {game.Ikeep_recharge_award} message keep_recharge_award message or plain object to encode
  45161. * @param {$protobuf.Writer} [writer] Writer to encode to
  45162. * @returns {$protobuf.Writer} Writer
  45163. */
  45164. keep_recharge_award.encode = function encode(message, writer) {
  45165. if (!writer)
  45166. writer = $Writer.create();
  45167. if (message.day != null && Object.hasOwnProperty.call(message, "day"))
  45168. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.day);
  45169. return writer;
  45170. };
  45171. /**
  45172. * Encodes the specified keep_recharge_award message, length delimited. Does not implicitly {@link game.keep_recharge_award.verify|verify} messages.
  45173. * @function encodeDelimited
  45174. * @memberof game.keep_recharge_award
  45175. * @static
  45176. * @param {game.Ikeep_recharge_award} message keep_recharge_award message or plain object to encode
  45177. * @param {$protobuf.Writer} [writer] Writer to encode to
  45178. * @returns {$protobuf.Writer} Writer
  45179. */
  45180. keep_recharge_award.encodeDelimited = function encodeDelimited(message, writer) {
  45181. return this.encode(message, writer).ldelim();
  45182. };
  45183. /**
  45184. * Decodes a keep_recharge_award message from the specified reader or buffer.
  45185. * @function decode
  45186. * @memberof game.keep_recharge_award
  45187. * @static
  45188. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  45189. * @param {number} [length] Message length if known beforehand
  45190. * @returns {game.keep_recharge_award} keep_recharge_award
  45191. * @throws {Error} If the payload is not a reader or valid buffer
  45192. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  45193. */
  45194. keep_recharge_award.decode = function decode(reader, length) {
  45195. if (!(reader instanceof $Reader))
  45196. reader = $Reader.create(reader);
  45197. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.keep_recharge_award();
  45198. while (reader.pos < end) {
  45199. let tag = reader.uint32();
  45200. switch (tag >>> 3) {
  45201. case 1:
  45202. message.day = reader.int64();
  45203. break;
  45204. default:
  45205. reader.skipType(tag & 7);
  45206. break;
  45207. }
  45208. }
  45209. return message;
  45210. };
  45211. /**
  45212. * Decodes a keep_recharge_award message from the specified reader or buffer, length delimited.
  45213. * @function decodeDelimited
  45214. * @memberof game.keep_recharge_award
  45215. * @static
  45216. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  45217. * @returns {game.keep_recharge_award} keep_recharge_award
  45218. * @throws {Error} If the payload is not a reader or valid buffer
  45219. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  45220. */
  45221. keep_recharge_award.decodeDelimited = function decodeDelimited(reader) {
  45222. if (!(reader instanceof $Reader))
  45223. reader = new $Reader(reader);
  45224. return this.decode(reader, reader.uint32());
  45225. };
  45226. /**
  45227. * Verifies a keep_recharge_award message.
  45228. * @function verify
  45229. * @memberof game.keep_recharge_award
  45230. * @static
  45231. * @param {Object.<string,*>} message Plain object to verify
  45232. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  45233. */
  45234. keep_recharge_award.verify = function verify(message) {
  45235. if (typeof message !== "object" || message === null)
  45236. return "object expected";
  45237. if (message.day != null && message.hasOwnProperty("day"))
  45238. if (!$util.isInteger(message.day) && !(message.day && $util.isInteger(message.day.low) && $util.isInteger(message.day.high)))
  45239. return "day: integer|Long expected";
  45240. return null;
  45241. };
  45242. /**
  45243. * Creates a keep_recharge_award message from a plain object. Also converts values to their respective internal types.
  45244. * @function fromObject
  45245. * @memberof game.keep_recharge_award
  45246. * @static
  45247. * @param {Object.<string,*>} object Plain object
  45248. * @returns {game.keep_recharge_award} keep_recharge_award
  45249. */
  45250. keep_recharge_award.fromObject = function fromObject(object) {
  45251. if (object instanceof $root.game.keep_recharge_award)
  45252. return object;
  45253. let message = new $root.game.keep_recharge_award();
  45254. if (object.day != null)
  45255. if ($util.Long)
  45256. (message.day = $util.Long.fromValue(object.day)).unsigned = false;
  45257. else if (typeof object.day === "string")
  45258. message.day = parseInt(object.day, 10);
  45259. else if (typeof object.day === "number")
  45260. message.day = object.day;
  45261. else if (typeof object.day === "object")
  45262. message.day = new $util.LongBits(object.day.low >>> 0, object.day.high >>> 0).toNumber();
  45263. return message;
  45264. };
  45265. /**
  45266. * Creates a plain object from a keep_recharge_award message. Also converts values to other types if specified.
  45267. * @function toObject
  45268. * @memberof game.keep_recharge_award
  45269. * @static
  45270. * @param {game.keep_recharge_award} message keep_recharge_award
  45271. * @param {$protobuf.IConversionOptions} [options] Conversion options
  45272. * @returns {Object.<string,*>} Plain object
  45273. */
  45274. keep_recharge_award.toObject = function toObject(message, options) {
  45275. if (!options)
  45276. options = {};
  45277. let object = {};
  45278. if (options.defaults)
  45279. if ($util.Long) {
  45280. let long = new $util.Long(0, 0, false);
  45281. object.day = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  45282. } else
  45283. object.day = options.longs === String ? "0" : 0;
  45284. if (message.day != null && message.hasOwnProperty("day"))
  45285. if (typeof message.day === "number")
  45286. object.day = options.longs === String ? String(message.day) : message.day;
  45287. else
  45288. 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;
  45289. return object;
  45290. };
  45291. /**
  45292. * Converts this keep_recharge_award to JSON.
  45293. * @function toJSON
  45294. * @memberof game.keep_recharge_award
  45295. * @instance
  45296. * @returns {Object.<string,*>} JSON object
  45297. */
  45298. keep_recharge_award.prototype.toJSON = function toJSON() {
  45299. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  45300. };
  45301. return keep_recharge_award;
  45302. })();
  45303. game.keep_recharge_award_rsp = (function() {
  45304. /**
  45305. * Properties of a keep_recharge_award_rsp.
  45306. * @memberof game
  45307. * @interface Ikeep_recharge_award_rsp
  45308. * @property {number|Long|null} [errno] keep_recharge_award_rsp errno
  45309. * @property {number|Long|null} [award] keep_recharge_award_rsp award
  45310. */
  45311. /**
  45312. * Constructs a new keep_recharge_award_rsp.
  45313. * @memberof game
  45314. * @classdesc Represents a keep_recharge_award_rsp.
  45315. * @implements Ikeep_recharge_award_rsp
  45316. * @constructor
  45317. * @param {game.Ikeep_recharge_award_rsp=} [properties] Properties to set
  45318. */
  45319. function keep_recharge_award_rsp(properties) {
  45320. if (properties)
  45321. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  45322. if (properties[keys[i]] != null)
  45323. this[keys[i]] = properties[keys[i]];
  45324. }
  45325. /**
  45326. * keep_recharge_award_rsp errno.
  45327. * @member {number|Long} errno
  45328. * @memberof game.keep_recharge_award_rsp
  45329. * @instance
  45330. */
  45331. keep_recharge_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  45332. /**
  45333. * keep_recharge_award_rsp award.
  45334. * @member {number|Long} award
  45335. * @memberof game.keep_recharge_award_rsp
  45336. * @instance
  45337. */
  45338. keep_recharge_award_rsp.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  45339. /**
  45340. * Creates a new keep_recharge_award_rsp instance using the specified properties.
  45341. * @function create
  45342. * @memberof game.keep_recharge_award_rsp
  45343. * @static
  45344. * @param {game.Ikeep_recharge_award_rsp=} [properties] Properties to set
  45345. * @returns {game.keep_recharge_award_rsp} keep_recharge_award_rsp instance
  45346. */
  45347. keep_recharge_award_rsp.create = function create(properties) {
  45348. return new keep_recharge_award_rsp(properties);
  45349. };
  45350. /**
  45351. * Encodes the specified keep_recharge_award_rsp message. Does not implicitly {@link game.keep_recharge_award_rsp.verify|verify} messages.
  45352. * @function encode
  45353. * @memberof game.keep_recharge_award_rsp
  45354. * @static
  45355. * @param {game.Ikeep_recharge_award_rsp} message keep_recharge_award_rsp message or plain object to encode
  45356. * @param {$protobuf.Writer} [writer] Writer to encode to
  45357. * @returns {$protobuf.Writer} Writer
  45358. */
  45359. keep_recharge_award_rsp.encode = function encode(message, writer) {
  45360. if (!writer)
  45361. writer = $Writer.create();
  45362. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  45363. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  45364. if (message.award != null && Object.hasOwnProperty.call(message, "award"))
  45365. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.award);
  45366. return writer;
  45367. };
  45368. /**
  45369. * Encodes the specified keep_recharge_award_rsp message, length delimited. Does not implicitly {@link game.keep_recharge_award_rsp.verify|verify} messages.
  45370. * @function encodeDelimited
  45371. * @memberof game.keep_recharge_award_rsp
  45372. * @static
  45373. * @param {game.Ikeep_recharge_award_rsp} message keep_recharge_award_rsp message or plain object to encode
  45374. * @param {$protobuf.Writer} [writer] Writer to encode to
  45375. * @returns {$protobuf.Writer} Writer
  45376. */
  45377. keep_recharge_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  45378. return this.encode(message, writer).ldelim();
  45379. };
  45380. /**
  45381. * Decodes a keep_recharge_award_rsp message from the specified reader or buffer.
  45382. * @function decode
  45383. * @memberof game.keep_recharge_award_rsp
  45384. * @static
  45385. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  45386. * @param {number} [length] Message length if known beforehand
  45387. * @returns {game.keep_recharge_award_rsp} keep_recharge_award_rsp
  45388. * @throws {Error} If the payload is not a reader or valid buffer
  45389. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  45390. */
  45391. keep_recharge_award_rsp.decode = function decode(reader, length) {
  45392. if (!(reader instanceof $Reader))
  45393. reader = $Reader.create(reader);
  45394. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.keep_recharge_award_rsp();
  45395. while (reader.pos < end) {
  45396. let tag = reader.uint32();
  45397. switch (tag >>> 3) {
  45398. case 1:
  45399. message.errno = reader.int64();
  45400. break;
  45401. case 2:
  45402. message.award = reader.int64();
  45403. break;
  45404. default:
  45405. reader.skipType(tag & 7);
  45406. break;
  45407. }
  45408. }
  45409. return message;
  45410. };
  45411. /**
  45412. * Decodes a keep_recharge_award_rsp message from the specified reader or buffer, length delimited.
  45413. * @function decodeDelimited
  45414. * @memberof game.keep_recharge_award_rsp
  45415. * @static
  45416. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  45417. * @returns {game.keep_recharge_award_rsp} keep_recharge_award_rsp
  45418. * @throws {Error} If the payload is not a reader or valid buffer
  45419. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  45420. */
  45421. keep_recharge_award_rsp.decodeDelimited = function decodeDelimited(reader) {
  45422. if (!(reader instanceof $Reader))
  45423. reader = new $Reader(reader);
  45424. return this.decode(reader, reader.uint32());
  45425. };
  45426. /**
  45427. * Verifies a keep_recharge_award_rsp message.
  45428. * @function verify
  45429. * @memberof game.keep_recharge_award_rsp
  45430. * @static
  45431. * @param {Object.<string,*>} message Plain object to verify
  45432. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  45433. */
  45434. keep_recharge_award_rsp.verify = function verify(message) {
  45435. if (typeof message !== "object" || message === null)
  45436. return "object expected";
  45437. if (message.errno != null && message.hasOwnProperty("errno"))
  45438. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  45439. return "errno: integer|Long expected";
  45440. if (message.award != null && message.hasOwnProperty("award"))
  45441. if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
  45442. return "award: integer|Long expected";
  45443. return null;
  45444. };
  45445. /**
  45446. * Creates a keep_recharge_award_rsp message from a plain object. Also converts values to their respective internal types.
  45447. * @function fromObject
  45448. * @memberof game.keep_recharge_award_rsp
  45449. * @static
  45450. * @param {Object.<string,*>} object Plain object
  45451. * @returns {game.keep_recharge_award_rsp} keep_recharge_award_rsp
  45452. */
  45453. keep_recharge_award_rsp.fromObject = function fromObject(object) {
  45454. if (object instanceof $root.game.keep_recharge_award_rsp)
  45455. return object;
  45456. let message = new $root.game.keep_recharge_award_rsp();
  45457. if (object.errno != null)
  45458. if ($util.Long)
  45459. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  45460. else if (typeof object.errno === "string")
  45461. message.errno = parseInt(object.errno, 10);
  45462. else if (typeof object.errno === "number")
  45463. message.errno = object.errno;
  45464. else if (typeof object.errno === "object")
  45465. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  45466. if (object.award != null)
  45467. if ($util.Long)
  45468. (message.award = $util.Long.fromValue(object.award)).unsigned = false;
  45469. else if (typeof object.award === "string")
  45470. message.award = parseInt(object.award, 10);
  45471. else if (typeof object.award === "number")
  45472. message.award = object.award;
  45473. else if (typeof object.award === "object")
  45474. message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
  45475. return message;
  45476. };
  45477. /**
  45478. * Creates a plain object from a keep_recharge_award_rsp message. Also converts values to other types if specified.
  45479. * @function toObject
  45480. * @memberof game.keep_recharge_award_rsp
  45481. * @static
  45482. * @param {game.keep_recharge_award_rsp} message keep_recharge_award_rsp
  45483. * @param {$protobuf.IConversionOptions} [options] Conversion options
  45484. * @returns {Object.<string,*>} Plain object
  45485. */
  45486. keep_recharge_award_rsp.toObject = function toObject(message, options) {
  45487. if (!options)
  45488. options = {};
  45489. let object = {};
  45490. if (options.defaults) {
  45491. if ($util.Long) {
  45492. let long = new $util.Long(0, 0, false);
  45493. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  45494. } else
  45495. object.errno = options.longs === String ? "0" : 0;
  45496. if ($util.Long) {
  45497. let long = new $util.Long(0, 0, false);
  45498. object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  45499. } else
  45500. object.award = options.longs === String ? "0" : 0;
  45501. }
  45502. if (message.errno != null && message.hasOwnProperty("errno"))
  45503. if (typeof message.errno === "number")
  45504. object.errno = options.longs === String ? String(message.errno) : message.errno;
  45505. else
  45506. 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;
  45507. if (message.award != null && message.hasOwnProperty("award"))
  45508. if (typeof message.award === "number")
  45509. object.award = options.longs === String ? String(message.award) : message.award;
  45510. else
  45511. 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;
  45512. return object;
  45513. };
  45514. /**
  45515. * Converts this keep_recharge_award_rsp to JSON.
  45516. * @function toJSON
  45517. * @memberof game.keep_recharge_award_rsp
  45518. * @instance
  45519. * @returns {Object.<string,*>} JSON object
  45520. */
  45521. keep_recharge_award_rsp.prototype.toJSON = function toJSON() {
  45522. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  45523. };
  45524. return keep_recharge_award_rsp;
  45525. })();
  45526. game.get_red_point_list = (function() {
  45527. /**
  45528. * Properties of a get_red_point_list.
  45529. * @memberof game
  45530. * @interface Iget_red_point_list
  45531. */
  45532. /**
  45533. * Constructs a new get_red_point_list.
  45534. * @memberof game
  45535. * @classdesc Represents a get_red_point_list.
  45536. * @implements Iget_red_point_list
  45537. * @constructor
  45538. * @param {game.Iget_red_point_list=} [properties] Properties to set
  45539. */
  45540. function get_red_point_list(properties) {
  45541. if (properties)
  45542. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  45543. if (properties[keys[i]] != null)
  45544. this[keys[i]] = properties[keys[i]];
  45545. }
  45546. /**
  45547. * Creates a new get_red_point_list instance using the specified properties.
  45548. * @function create
  45549. * @memberof game.get_red_point_list
  45550. * @static
  45551. * @param {game.Iget_red_point_list=} [properties] Properties to set
  45552. * @returns {game.get_red_point_list} get_red_point_list instance
  45553. */
  45554. get_red_point_list.create = function create(properties) {
  45555. return new get_red_point_list(properties);
  45556. };
  45557. /**
  45558. * Encodes the specified get_red_point_list message. Does not implicitly {@link game.get_red_point_list.verify|verify} messages.
  45559. * @function encode
  45560. * @memberof game.get_red_point_list
  45561. * @static
  45562. * @param {game.Iget_red_point_list} message get_red_point_list message or plain object to encode
  45563. * @param {$protobuf.Writer} [writer] Writer to encode to
  45564. * @returns {$protobuf.Writer} Writer
  45565. */
  45566. get_red_point_list.encode = function encode(message, writer) {
  45567. if (!writer)
  45568. writer = $Writer.create();
  45569. return writer;
  45570. };
  45571. /**
  45572. * Encodes the specified get_red_point_list message, length delimited. Does not implicitly {@link game.get_red_point_list.verify|verify} messages.
  45573. * @function encodeDelimited
  45574. * @memberof game.get_red_point_list
  45575. * @static
  45576. * @param {game.Iget_red_point_list} message get_red_point_list message or plain object to encode
  45577. * @param {$protobuf.Writer} [writer] Writer to encode to
  45578. * @returns {$protobuf.Writer} Writer
  45579. */
  45580. get_red_point_list.encodeDelimited = function encodeDelimited(message, writer) {
  45581. return this.encode(message, writer).ldelim();
  45582. };
  45583. /**
  45584. * Decodes a get_red_point_list message from the specified reader or buffer.
  45585. * @function decode
  45586. * @memberof game.get_red_point_list
  45587. * @static
  45588. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  45589. * @param {number} [length] Message length if known beforehand
  45590. * @returns {game.get_red_point_list} get_red_point_list
  45591. * @throws {Error} If the payload is not a reader or valid buffer
  45592. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  45593. */
  45594. get_red_point_list.decode = function decode(reader, length) {
  45595. if (!(reader instanceof $Reader))
  45596. reader = $Reader.create(reader);
  45597. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.get_red_point_list();
  45598. while (reader.pos < end) {
  45599. let tag = reader.uint32();
  45600. switch (tag >>> 3) {
  45601. default:
  45602. reader.skipType(tag & 7);
  45603. break;
  45604. }
  45605. }
  45606. return message;
  45607. };
  45608. /**
  45609. * Decodes a get_red_point_list message from the specified reader or buffer, length delimited.
  45610. * @function decodeDelimited
  45611. * @memberof game.get_red_point_list
  45612. * @static
  45613. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  45614. * @returns {game.get_red_point_list} get_red_point_list
  45615. * @throws {Error} If the payload is not a reader or valid buffer
  45616. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  45617. */
  45618. get_red_point_list.decodeDelimited = function decodeDelimited(reader) {
  45619. if (!(reader instanceof $Reader))
  45620. reader = new $Reader(reader);
  45621. return this.decode(reader, reader.uint32());
  45622. };
  45623. /**
  45624. * Verifies a get_red_point_list message.
  45625. * @function verify
  45626. * @memberof game.get_red_point_list
  45627. * @static
  45628. * @param {Object.<string,*>} message Plain object to verify
  45629. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  45630. */
  45631. get_red_point_list.verify = function verify(message) {
  45632. if (typeof message !== "object" || message === null)
  45633. return "object expected";
  45634. return null;
  45635. };
  45636. /**
  45637. * Creates a get_red_point_list message from a plain object. Also converts values to their respective internal types.
  45638. * @function fromObject
  45639. * @memberof game.get_red_point_list
  45640. * @static
  45641. * @param {Object.<string,*>} object Plain object
  45642. * @returns {game.get_red_point_list} get_red_point_list
  45643. */
  45644. get_red_point_list.fromObject = function fromObject(object) {
  45645. if (object instanceof $root.game.get_red_point_list)
  45646. return object;
  45647. return new $root.game.get_red_point_list();
  45648. };
  45649. /**
  45650. * Creates a plain object from a get_red_point_list message. Also converts values to other types if specified.
  45651. * @function toObject
  45652. * @memberof game.get_red_point_list
  45653. * @static
  45654. * @param {game.get_red_point_list} message get_red_point_list
  45655. * @param {$protobuf.IConversionOptions} [options] Conversion options
  45656. * @returns {Object.<string,*>} Plain object
  45657. */
  45658. get_red_point_list.toObject = function toObject() {
  45659. return {};
  45660. };
  45661. /**
  45662. * Converts this get_red_point_list to JSON.
  45663. * @function toJSON
  45664. * @memberof game.get_red_point_list
  45665. * @instance
  45666. * @returns {Object.<string,*>} JSON object
  45667. */
  45668. get_red_point_list.prototype.toJSON = function toJSON() {
  45669. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  45670. };
  45671. return get_red_point_list;
  45672. })();
  45673. game.get_red_point_list_rsp = (function() {
  45674. /**
  45675. * Properties of a get_red_point_list_rsp.
  45676. * @memberof game
  45677. * @interface Iget_red_point_list_rsp
  45678. * @property {number|Long|null} [errno] get_red_point_list_rsp errno
  45679. * @property {Array.<game.Ired_point_info>|null} [list] get_red_point_list_rsp list
  45680. */
  45681. /**
  45682. * Constructs a new get_red_point_list_rsp.
  45683. * @memberof game
  45684. * @classdesc Represents a get_red_point_list_rsp.
  45685. * @implements Iget_red_point_list_rsp
  45686. * @constructor
  45687. * @param {game.Iget_red_point_list_rsp=} [properties] Properties to set
  45688. */
  45689. function get_red_point_list_rsp(properties) {
  45690. this.list = [];
  45691. if (properties)
  45692. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  45693. if (properties[keys[i]] != null)
  45694. this[keys[i]] = properties[keys[i]];
  45695. }
  45696. /**
  45697. * get_red_point_list_rsp errno.
  45698. * @member {number|Long} errno
  45699. * @memberof game.get_red_point_list_rsp
  45700. * @instance
  45701. */
  45702. get_red_point_list_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  45703. /**
  45704. * get_red_point_list_rsp list.
  45705. * @member {Array.<game.Ired_point_info>} list
  45706. * @memberof game.get_red_point_list_rsp
  45707. * @instance
  45708. */
  45709. get_red_point_list_rsp.prototype.list = $util.emptyArray;
  45710. /**
  45711. * Creates a new get_red_point_list_rsp instance using the specified properties.
  45712. * @function create
  45713. * @memberof game.get_red_point_list_rsp
  45714. * @static
  45715. * @param {game.Iget_red_point_list_rsp=} [properties] Properties to set
  45716. * @returns {game.get_red_point_list_rsp} get_red_point_list_rsp instance
  45717. */
  45718. get_red_point_list_rsp.create = function create(properties) {
  45719. return new get_red_point_list_rsp(properties);
  45720. };
  45721. /**
  45722. * Encodes the specified get_red_point_list_rsp message. Does not implicitly {@link game.get_red_point_list_rsp.verify|verify} messages.
  45723. * @function encode
  45724. * @memberof game.get_red_point_list_rsp
  45725. * @static
  45726. * @param {game.Iget_red_point_list_rsp} message get_red_point_list_rsp message or plain object to encode
  45727. * @param {$protobuf.Writer} [writer] Writer to encode to
  45728. * @returns {$protobuf.Writer} Writer
  45729. */
  45730. get_red_point_list_rsp.encode = function encode(message, writer) {
  45731. if (!writer)
  45732. writer = $Writer.create();
  45733. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  45734. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  45735. if (message.list != null && message.list.length)
  45736. for (let i = 0; i < message.list.length; ++i)
  45737. $root.game.red_point_info.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  45738. return writer;
  45739. };
  45740. /**
  45741. * Encodes the specified get_red_point_list_rsp message, length delimited. Does not implicitly {@link game.get_red_point_list_rsp.verify|verify} messages.
  45742. * @function encodeDelimited
  45743. * @memberof game.get_red_point_list_rsp
  45744. * @static
  45745. * @param {game.Iget_red_point_list_rsp} message get_red_point_list_rsp message or plain object to encode
  45746. * @param {$protobuf.Writer} [writer] Writer to encode to
  45747. * @returns {$protobuf.Writer} Writer
  45748. */
  45749. get_red_point_list_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  45750. return this.encode(message, writer).ldelim();
  45751. };
  45752. /**
  45753. * Decodes a get_red_point_list_rsp message from the specified reader or buffer.
  45754. * @function decode
  45755. * @memberof game.get_red_point_list_rsp
  45756. * @static
  45757. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  45758. * @param {number} [length] Message length if known beforehand
  45759. * @returns {game.get_red_point_list_rsp} get_red_point_list_rsp
  45760. * @throws {Error} If the payload is not a reader or valid buffer
  45761. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  45762. */
  45763. get_red_point_list_rsp.decode = function decode(reader, length) {
  45764. if (!(reader instanceof $Reader))
  45765. reader = $Reader.create(reader);
  45766. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.get_red_point_list_rsp();
  45767. while (reader.pos < end) {
  45768. let tag = reader.uint32();
  45769. switch (tag >>> 3) {
  45770. case 1:
  45771. message.errno = reader.int64();
  45772. break;
  45773. case 2:
  45774. if (!(message.list && message.list.length))
  45775. message.list = [];
  45776. message.list.push($root.game.red_point_info.decode(reader, reader.uint32()));
  45777. break;
  45778. default:
  45779. reader.skipType(tag & 7);
  45780. break;
  45781. }
  45782. }
  45783. return message;
  45784. };
  45785. /**
  45786. * Decodes a get_red_point_list_rsp message from the specified reader or buffer, length delimited.
  45787. * @function decodeDelimited
  45788. * @memberof game.get_red_point_list_rsp
  45789. * @static
  45790. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  45791. * @returns {game.get_red_point_list_rsp} get_red_point_list_rsp
  45792. * @throws {Error} If the payload is not a reader or valid buffer
  45793. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  45794. */
  45795. get_red_point_list_rsp.decodeDelimited = function decodeDelimited(reader) {
  45796. if (!(reader instanceof $Reader))
  45797. reader = new $Reader(reader);
  45798. return this.decode(reader, reader.uint32());
  45799. };
  45800. /**
  45801. * Verifies a get_red_point_list_rsp message.
  45802. * @function verify
  45803. * @memberof game.get_red_point_list_rsp
  45804. * @static
  45805. * @param {Object.<string,*>} message Plain object to verify
  45806. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  45807. */
  45808. get_red_point_list_rsp.verify = function verify(message) {
  45809. if (typeof message !== "object" || message === null)
  45810. return "object expected";
  45811. if (message.errno != null && message.hasOwnProperty("errno"))
  45812. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  45813. return "errno: integer|Long expected";
  45814. if (message.list != null && message.hasOwnProperty("list")) {
  45815. if (!Array.isArray(message.list))
  45816. return "list: array expected";
  45817. for (let i = 0; i < message.list.length; ++i) {
  45818. let error = $root.game.red_point_info.verify(message.list[i]);
  45819. if (error)
  45820. return "list." + error;
  45821. }
  45822. }
  45823. return null;
  45824. };
  45825. /**
  45826. * Creates a get_red_point_list_rsp message from a plain object. Also converts values to their respective internal types.
  45827. * @function fromObject
  45828. * @memberof game.get_red_point_list_rsp
  45829. * @static
  45830. * @param {Object.<string,*>} object Plain object
  45831. * @returns {game.get_red_point_list_rsp} get_red_point_list_rsp
  45832. */
  45833. get_red_point_list_rsp.fromObject = function fromObject(object) {
  45834. if (object instanceof $root.game.get_red_point_list_rsp)
  45835. return object;
  45836. let message = new $root.game.get_red_point_list_rsp();
  45837. if (object.errno != null)
  45838. if ($util.Long)
  45839. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  45840. else if (typeof object.errno === "string")
  45841. message.errno = parseInt(object.errno, 10);
  45842. else if (typeof object.errno === "number")
  45843. message.errno = object.errno;
  45844. else if (typeof object.errno === "object")
  45845. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  45846. if (object.list) {
  45847. if (!Array.isArray(object.list))
  45848. throw TypeError(".game.get_red_point_list_rsp.list: array expected");
  45849. message.list = [];
  45850. for (let i = 0; i < object.list.length; ++i) {
  45851. if (typeof object.list[i] !== "object")
  45852. throw TypeError(".game.get_red_point_list_rsp.list: object expected");
  45853. message.list[i] = $root.game.red_point_info.fromObject(object.list[i]);
  45854. }
  45855. }
  45856. return message;
  45857. };
  45858. /**
  45859. * Creates a plain object from a get_red_point_list_rsp message. Also converts values to other types if specified.
  45860. * @function toObject
  45861. * @memberof game.get_red_point_list_rsp
  45862. * @static
  45863. * @param {game.get_red_point_list_rsp} message get_red_point_list_rsp
  45864. * @param {$protobuf.IConversionOptions} [options] Conversion options
  45865. * @returns {Object.<string,*>} Plain object
  45866. */
  45867. get_red_point_list_rsp.toObject = function toObject(message, options) {
  45868. if (!options)
  45869. options = {};
  45870. let object = {};
  45871. if (options.arrays || options.defaults)
  45872. object.list = [];
  45873. if (options.defaults)
  45874. if ($util.Long) {
  45875. let long = new $util.Long(0, 0, false);
  45876. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  45877. } else
  45878. object.errno = options.longs === String ? "0" : 0;
  45879. if (message.errno != null && message.hasOwnProperty("errno"))
  45880. if (typeof message.errno === "number")
  45881. object.errno = options.longs === String ? String(message.errno) : message.errno;
  45882. else
  45883. 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;
  45884. if (message.list && message.list.length) {
  45885. object.list = [];
  45886. for (let j = 0; j < message.list.length; ++j)
  45887. object.list[j] = $root.game.red_point_info.toObject(message.list[j], options);
  45888. }
  45889. return object;
  45890. };
  45891. /**
  45892. * Converts this get_red_point_list_rsp to JSON.
  45893. * @function toJSON
  45894. * @memberof game.get_red_point_list_rsp
  45895. * @instance
  45896. * @returns {Object.<string,*>} JSON object
  45897. */
  45898. get_red_point_list_rsp.prototype.toJSON = function toJSON() {
  45899. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  45900. };
  45901. return get_red_point_list_rsp;
  45902. })();
  45903. game.recharge_result = (function() {
  45904. /**
  45905. * Properties of a recharge_result.
  45906. * @memberof game
  45907. * @interface Irecharge_result
  45908. * @property {string|null} [orderId] recharge_result orderId
  45909. * @property {string|null} [payOrderId] recharge_result payOrderId
  45910. * @property {string|null} [purchaseToken] recharge_result purchaseToken
  45911. * @property {string|null} [payType] recharge_result payType
  45912. * @property {number|Long|null} [cfgId] recharge_result cfgId
  45913. */
  45914. /**
  45915. * Constructs a new recharge_result.
  45916. * @memberof game
  45917. * @classdesc Represents a recharge_result.
  45918. * @implements Irecharge_result
  45919. * @constructor
  45920. * @param {game.Irecharge_result=} [properties] Properties to set
  45921. */
  45922. function recharge_result(properties) {
  45923. if (properties)
  45924. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  45925. if (properties[keys[i]] != null)
  45926. this[keys[i]] = properties[keys[i]];
  45927. }
  45928. /**
  45929. * recharge_result orderId.
  45930. * @member {string} orderId
  45931. * @memberof game.recharge_result
  45932. * @instance
  45933. */
  45934. recharge_result.prototype.orderId = "";
  45935. /**
  45936. * recharge_result payOrderId.
  45937. * @member {string} payOrderId
  45938. * @memberof game.recharge_result
  45939. * @instance
  45940. */
  45941. recharge_result.prototype.payOrderId = "";
  45942. /**
  45943. * recharge_result purchaseToken.
  45944. * @member {string} purchaseToken
  45945. * @memberof game.recharge_result
  45946. * @instance
  45947. */
  45948. recharge_result.prototype.purchaseToken = "";
  45949. /**
  45950. * recharge_result payType.
  45951. * @member {string} payType
  45952. * @memberof game.recharge_result
  45953. * @instance
  45954. */
  45955. recharge_result.prototype.payType = "";
  45956. /**
  45957. * recharge_result cfgId.
  45958. * @member {number|Long} cfgId
  45959. * @memberof game.recharge_result
  45960. * @instance
  45961. */
  45962. recharge_result.prototype.cfgId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  45963. /**
  45964. * Creates a new recharge_result instance using the specified properties.
  45965. * @function create
  45966. * @memberof game.recharge_result
  45967. * @static
  45968. * @param {game.Irecharge_result=} [properties] Properties to set
  45969. * @returns {game.recharge_result} recharge_result instance
  45970. */
  45971. recharge_result.create = function create(properties) {
  45972. return new recharge_result(properties);
  45973. };
  45974. /**
  45975. * Encodes the specified recharge_result message. Does not implicitly {@link game.recharge_result.verify|verify} messages.
  45976. * @function encode
  45977. * @memberof game.recharge_result
  45978. * @static
  45979. * @param {game.Irecharge_result} message recharge_result message or plain object to encode
  45980. * @param {$protobuf.Writer} [writer] Writer to encode to
  45981. * @returns {$protobuf.Writer} Writer
  45982. */
  45983. recharge_result.encode = function encode(message, writer) {
  45984. if (!writer)
  45985. writer = $Writer.create();
  45986. if (message.orderId != null && Object.hasOwnProperty.call(message, "orderId"))
  45987. writer.uint32(/* id 1, wireType 2 =*/10).string(message.orderId);
  45988. if (message.payOrderId != null && Object.hasOwnProperty.call(message, "payOrderId"))
  45989. writer.uint32(/* id 2, wireType 2 =*/18).string(message.payOrderId);
  45990. if (message.purchaseToken != null && Object.hasOwnProperty.call(message, "purchaseToken"))
  45991. writer.uint32(/* id 3, wireType 2 =*/26).string(message.purchaseToken);
  45992. if (message.payType != null && Object.hasOwnProperty.call(message, "payType"))
  45993. writer.uint32(/* id 4, wireType 2 =*/34).string(message.payType);
  45994. if (message.cfgId != null && Object.hasOwnProperty.call(message, "cfgId"))
  45995. writer.uint32(/* id 5, wireType 0 =*/40).int64(message.cfgId);
  45996. return writer;
  45997. };
  45998. /**
  45999. * Encodes the specified recharge_result message, length delimited. Does not implicitly {@link game.recharge_result.verify|verify} messages.
  46000. * @function encodeDelimited
  46001. * @memberof game.recharge_result
  46002. * @static
  46003. * @param {game.Irecharge_result} message recharge_result message or plain object to encode
  46004. * @param {$protobuf.Writer} [writer] Writer to encode to
  46005. * @returns {$protobuf.Writer} Writer
  46006. */
  46007. recharge_result.encodeDelimited = function encodeDelimited(message, writer) {
  46008. return this.encode(message, writer).ldelim();
  46009. };
  46010. /**
  46011. * Decodes a recharge_result message from the specified reader or buffer.
  46012. * @function decode
  46013. * @memberof game.recharge_result
  46014. * @static
  46015. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  46016. * @param {number} [length] Message length if known beforehand
  46017. * @returns {game.recharge_result} recharge_result
  46018. * @throws {Error} If the payload is not a reader or valid buffer
  46019. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  46020. */
  46021. recharge_result.decode = function decode(reader, length) {
  46022. if (!(reader instanceof $Reader))
  46023. reader = $Reader.create(reader);
  46024. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.recharge_result();
  46025. while (reader.pos < end) {
  46026. let tag = reader.uint32();
  46027. switch (tag >>> 3) {
  46028. case 1:
  46029. message.orderId = reader.string();
  46030. break;
  46031. case 2:
  46032. message.payOrderId = reader.string();
  46033. break;
  46034. case 3:
  46035. message.purchaseToken = reader.string();
  46036. break;
  46037. case 4:
  46038. message.payType = reader.string();
  46039. break;
  46040. case 5:
  46041. message.cfgId = reader.int64();
  46042. break;
  46043. default:
  46044. reader.skipType(tag & 7);
  46045. break;
  46046. }
  46047. }
  46048. return message;
  46049. };
  46050. /**
  46051. * Decodes a recharge_result message from the specified reader or buffer, length delimited.
  46052. * @function decodeDelimited
  46053. * @memberof game.recharge_result
  46054. * @static
  46055. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  46056. * @returns {game.recharge_result} recharge_result
  46057. * @throws {Error} If the payload is not a reader or valid buffer
  46058. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  46059. */
  46060. recharge_result.decodeDelimited = function decodeDelimited(reader) {
  46061. if (!(reader instanceof $Reader))
  46062. reader = new $Reader(reader);
  46063. return this.decode(reader, reader.uint32());
  46064. };
  46065. /**
  46066. * Verifies a recharge_result message.
  46067. * @function verify
  46068. * @memberof game.recharge_result
  46069. * @static
  46070. * @param {Object.<string,*>} message Plain object to verify
  46071. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  46072. */
  46073. recharge_result.verify = function verify(message) {
  46074. if (typeof message !== "object" || message === null)
  46075. return "object expected";
  46076. if (message.orderId != null && message.hasOwnProperty("orderId"))
  46077. if (!$util.isString(message.orderId))
  46078. return "orderId: string expected";
  46079. if (message.payOrderId != null && message.hasOwnProperty("payOrderId"))
  46080. if (!$util.isString(message.payOrderId))
  46081. return "payOrderId: string expected";
  46082. if (message.purchaseToken != null && message.hasOwnProperty("purchaseToken"))
  46083. if (!$util.isString(message.purchaseToken))
  46084. return "purchaseToken: string expected";
  46085. if (message.payType != null && message.hasOwnProperty("payType"))
  46086. if (!$util.isString(message.payType))
  46087. return "payType: string expected";
  46088. if (message.cfgId != null && message.hasOwnProperty("cfgId"))
  46089. if (!$util.isInteger(message.cfgId) && !(message.cfgId && $util.isInteger(message.cfgId.low) && $util.isInteger(message.cfgId.high)))
  46090. return "cfgId: integer|Long expected";
  46091. return null;
  46092. };
  46093. /**
  46094. * Creates a recharge_result message from a plain object. Also converts values to their respective internal types.
  46095. * @function fromObject
  46096. * @memberof game.recharge_result
  46097. * @static
  46098. * @param {Object.<string,*>} object Plain object
  46099. * @returns {game.recharge_result} recharge_result
  46100. */
  46101. recharge_result.fromObject = function fromObject(object) {
  46102. if (object instanceof $root.game.recharge_result)
  46103. return object;
  46104. let message = new $root.game.recharge_result();
  46105. if (object.orderId != null)
  46106. message.orderId = String(object.orderId);
  46107. if (object.payOrderId != null)
  46108. message.payOrderId = String(object.payOrderId);
  46109. if (object.purchaseToken != null)
  46110. message.purchaseToken = String(object.purchaseToken);
  46111. if (object.payType != null)
  46112. message.payType = String(object.payType);
  46113. if (object.cfgId != null)
  46114. if ($util.Long)
  46115. (message.cfgId = $util.Long.fromValue(object.cfgId)).unsigned = false;
  46116. else if (typeof object.cfgId === "string")
  46117. message.cfgId = parseInt(object.cfgId, 10);
  46118. else if (typeof object.cfgId === "number")
  46119. message.cfgId = object.cfgId;
  46120. else if (typeof object.cfgId === "object")
  46121. message.cfgId = new $util.LongBits(object.cfgId.low >>> 0, object.cfgId.high >>> 0).toNumber();
  46122. return message;
  46123. };
  46124. /**
  46125. * Creates a plain object from a recharge_result message. Also converts values to other types if specified.
  46126. * @function toObject
  46127. * @memberof game.recharge_result
  46128. * @static
  46129. * @param {game.recharge_result} message recharge_result
  46130. * @param {$protobuf.IConversionOptions} [options] Conversion options
  46131. * @returns {Object.<string,*>} Plain object
  46132. */
  46133. recharge_result.toObject = function toObject(message, options) {
  46134. if (!options)
  46135. options = {};
  46136. let object = {};
  46137. if (options.defaults) {
  46138. object.orderId = "";
  46139. object.payOrderId = "";
  46140. object.purchaseToken = "";
  46141. object.payType = "";
  46142. if ($util.Long) {
  46143. let long = new $util.Long(0, 0, false);
  46144. object.cfgId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  46145. } else
  46146. object.cfgId = options.longs === String ? "0" : 0;
  46147. }
  46148. if (message.orderId != null && message.hasOwnProperty("orderId"))
  46149. object.orderId = message.orderId;
  46150. if (message.payOrderId != null && message.hasOwnProperty("payOrderId"))
  46151. object.payOrderId = message.payOrderId;
  46152. if (message.purchaseToken != null && message.hasOwnProperty("purchaseToken"))
  46153. object.purchaseToken = message.purchaseToken;
  46154. if (message.payType != null && message.hasOwnProperty("payType"))
  46155. object.payType = message.payType;
  46156. if (message.cfgId != null && message.hasOwnProperty("cfgId"))
  46157. if (typeof message.cfgId === "number")
  46158. object.cfgId = options.longs === String ? String(message.cfgId) : message.cfgId;
  46159. else
  46160. 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;
  46161. return object;
  46162. };
  46163. /**
  46164. * Converts this recharge_result to JSON.
  46165. * @function toJSON
  46166. * @memberof game.recharge_result
  46167. * @instance
  46168. * @returns {Object.<string,*>} JSON object
  46169. */
  46170. recharge_result.prototype.toJSON = function toJSON() {
  46171. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  46172. };
  46173. return recharge_result;
  46174. })();
  46175. game.recharge_result_rsp = (function() {
  46176. /**
  46177. * Properties of a recharge_result_rsp.
  46178. * @memberof game
  46179. * @interface Irecharge_result_rsp
  46180. * @property {number|Long|null} [errno] recharge_result_rsp errno
  46181. */
  46182. /**
  46183. * Constructs a new recharge_result_rsp.
  46184. * @memberof game
  46185. * @classdesc Represents a recharge_result_rsp.
  46186. * @implements Irecharge_result_rsp
  46187. * @constructor
  46188. * @param {game.Irecharge_result_rsp=} [properties] Properties to set
  46189. */
  46190. function recharge_result_rsp(properties) {
  46191. if (properties)
  46192. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  46193. if (properties[keys[i]] != null)
  46194. this[keys[i]] = properties[keys[i]];
  46195. }
  46196. /**
  46197. * recharge_result_rsp errno.
  46198. * @member {number|Long} errno
  46199. * @memberof game.recharge_result_rsp
  46200. * @instance
  46201. */
  46202. recharge_result_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  46203. /**
  46204. * Creates a new recharge_result_rsp instance using the specified properties.
  46205. * @function create
  46206. * @memberof game.recharge_result_rsp
  46207. * @static
  46208. * @param {game.Irecharge_result_rsp=} [properties] Properties to set
  46209. * @returns {game.recharge_result_rsp} recharge_result_rsp instance
  46210. */
  46211. recharge_result_rsp.create = function create(properties) {
  46212. return new recharge_result_rsp(properties);
  46213. };
  46214. /**
  46215. * Encodes the specified recharge_result_rsp message. Does not implicitly {@link game.recharge_result_rsp.verify|verify} messages.
  46216. * @function encode
  46217. * @memberof game.recharge_result_rsp
  46218. * @static
  46219. * @param {game.Irecharge_result_rsp} message recharge_result_rsp message or plain object to encode
  46220. * @param {$protobuf.Writer} [writer] Writer to encode to
  46221. * @returns {$protobuf.Writer} Writer
  46222. */
  46223. recharge_result_rsp.encode = function encode(message, writer) {
  46224. if (!writer)
  46225. writer = $Writer.create();
  46226. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  46227. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  46228. return writer;
  46229. };
  46230. /**
  46231. * Encodes the specified recharge_result_rsp message, length delimited. Does not implicitly {@link game.recharge_result_rsp.verify|verify} messages.
  46232. * @function encodeDelimited
  46233. * @memberof game.recharge_result_rsp
  46234. * @static
  46235. * @param {game.Irecharge_result_rsp} message recharge_result_rsp message or plain object to encode
  46236. * @param {$protobuf.Writer} [writer] Writer to encode to
  46237. * @returns {$protobuf.Writer} Writer
  46238. */
  46239. recharge_result_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  46240. return this.encode(message, writer).ldelim();
  46241. };
  46242. /**
  46243. * Decodes a recharge_result_rsp message from the specified reader or buffer.
  46244. * @function decode
  46245. * @memberof game.recharge_result_rsp
  46246. * @static
  46247. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  46248. * @param {number} [length] Message length if known beforehand
  46249. * @returns {game.recharge_result_rsp} recharge_result_rsp
  46250. * @throws {Error} If the payload is not a reader or valid buffer
  46251. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  46252. */
  46253. recharge_result_rsp.decode = function decode(reader, length) {
  46254. if (!(reader instanceof $Reader))
  46255. reader = $Reader.create(reader);
  46256. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.recharge_result_rsp();
  46257. while (reader.pos < end) {
  46258. let tag = reader.uint32();
  46259. switch (tag >>> 3) {
  46260. case 1:
  46261. message.errno = reader.int64();
  46262. break;
  46263. default:
  46264. reader.skipType(tag & 7);
  46265. break;
  46266. }
  46267. }
  46268. return message;
  46269. };
  46270. /**
  46271. * Decodes a recharge_result_rsp message from the specified reader or buffer, length delimited.
  46272. * @function decodeDelimited
  46273. * @memberof game.recharge_result_rsp
  46274. * @static
  46275. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  46276. * @returns {game.recharge_result_rsp} recharge_result_rsp
  46277. * @throws {Error} If the payload is not a reader or valid buffer
  46278. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  46279. */
  46280. recharge_result_rsp.decodeDelimited = function decodeDelimited(reader) {
  46281. if (!(reader instanceof $Reader))
  46282. reader = new $Reader(reader);
  46283. return this.decode(reader, reader.uint32());
  46284. };
  46285. /**
  46286. * Verifies a recharge_result_rsp message.
  46287. * @function verify
  46288. * @memberof game.recharge_result_rsp
  46289. * @static
  46290. * @param {Object.<string,*>} message Plain object to verify
  46291. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  46292. */
  46293. recharge_result_rsp.verify = function verify(message) {
  46294. if (typeof message !== "object" || message === null)
  46295. return "object expected";
  46296. if (message.errno != null && message.hasOwnProperty("errno"))
  46297. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  46298. return "errno: integer|Long expected";
  46299. return null;
  46300. };
  46301. /**
  46302. * Creates a recharge_result_rsp message from a plain object. Also converts values to their respective internal types.
  46303. * @function fromObject
  46304. * @memberof game.recharge_result_rsp
  46305. * @static
  46306. * @param {Object.<string,*>} object Plain object
  46307. * @returns {game.recharge_result_rsp} recharge_result_rsp
  46308. */
  46309. recharge_result_rsp.fromObject = function fromObject(object) {
  46310. if (object instanceof $root.game.recharge_result_rsp)
  46311. return object;
  46312. let message = new $root.game.recharge_result_rsp();
  46313. if (object.errno != null)
  46314. if ($util.Long)
  46315. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  46316. else if (typeof object.errno === "string")
  46317. message.errno = parseInt(object.errno, 10);
  46318. else if (typeof object.errno === "number")
  46319. message.errno = object.errno;
  46320. else if (typeof object.errno === "object")
  46321. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  46322. return message;
  46323. };
  46324. /**
  46325. * Creates a plain object from a recharge_result_rsp message. Also converts values to other types if specified.
  46326. * @function toObject
  46327. * @memberof game.recharge_result_rsp
  46328. * @static
  46329. * @param {game.recharge_result_rsp} message recharge_result_rsp
  46330. * @param {$protobuf.IConversionOptions} [options] Conversion options
  46331. * @returns {Object.<string,*>} Plain object
  46332. */
  46333. recharge_result_rsp.toObject = function toObject(message, options) {
  46334. if (!options)
  46335. options = {};
  46336. let object = {};
  46337. if (options.defaults)
  46338. if ($util.Long) {
  46339. let long = new $util.Long(0, 0, false);
  46340. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  46341. } else
  46342. object.errno = options.longs === String ? "0" : 0;
  46343. if (message.errno != null && message.hasOwnProperty("errno"))
  46344. if (typeof message.errno === "number")
  46345. object.errno = options.longs === String ? String(message.errno) : message.errno;
  46346. else
  46347. 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;
  46348. return object;
  46349. };
  46350. /**
  46351. * Converts this recharge_result_rsp to JSON.
  46352. * @function toJSON
  46353. * @memberof game.recharge_result_rsp
  46354. * @instance
  46355. * @returns {Object.<string,*>} JSON object
  46356. */
  46357. recharge_result_rsp.prototype.toJSON = function toJSON() {
  46358. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  46359. };
  46360. return recharge_result_rsp;
  46361. })();
  46362. game.recharge_success = (function() {
  46363. /**
  46364. * Properties of a recharge_success.
  46365. * @memberof game
  46366. * @interface Irecharge_success
  46367. * @property {string|null} [id] recharge_success id
  46368. */
  46369. /**
  46370. * Constructs a new recharge_success.
  46371. * @memberof game
  46372. * @classdesc Represents a recharge_success.
  46373. * @implements Irecharge_success
  46374. * @constructor
  46375. * @param {game.Irecharge_success=} [properties] Properties to set
  46376. */
  46377. function recharge_success(properties) {
  46378. if (properties)
  46379. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  46380. if (properties[keys[i]] != null)
  46381. this[keys[i]] = properties[keys[i]];
  46382. }
  46383. /**
  46384. * recharge_success id.
  46385. * @member {string} id
  46386. * @memberof game.recharge_success
  46387. * @instance
  46388. */
  46389. recharge_success.prototype.id = "";
  46390. /**
  46391. * Creates a new recharge_success instance using the specified properties.
  46392. * @function create
  46393. * @memberof game.recharge_success
  46394. * @static
  46395. * @param {game.Irecharge_success=} [properties] Properties to set
  46396. * @returns {game.recharge_success} recharge_success instance
  46397. */
  46398. recharge_success.create = function create(properties) {
  46399. return new recharge_success(properties);
  46400. };
  46401. /**
  46402. * Encodes the specified recharge_success message. Does not implicitly {@link game.recharge_success.verify|verify} messages.
  46403. * @function encode
  46404. * @memberof game.recharge_success
  46405. * @static
  46406. * @param {game.Irecharge_success} message recharge_success message or plain object to encode
  46407. * @param {$protobuf.Writer} [writer] Writer to encode to
  46408. * @returns {$protobuf.Writer} Writer
  46409. */
  46410. recharge_success.encode = function encode(message, writer) {
  46411. if (!writer)
  46412. writer = $Writer.create();
  46413. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  46414. writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
  46415. return writer;
  46416. };
  46417. /**
  46418. * Encodes the specified recharge_success message, length delimited. Does not implicitly {@link game.recharge_success.verify|verify} messages.
  46419. * @function encodeDelimited
  46420. * @memberof game.recharge_success
  46421. * @static
  46422. * @param {game.Irecharge_success} message recharge_success message or plain object to encode
  46423. * @param {$protobuf.Writer} [writer] Writer to encode to
  46424. * @returns {$protobuf.Writer} Writer
  46425. */
  46426. recharge_success.encodeDelimited = function encodeDelimited(message, writer) {
  46427. return this.encode(message, writer).ldelim();
  46428. };
  46429. /**
  46430. * Decodes a recharge_success message from the specified reader or buffer.
  46431. * @function decode
  46432. * @memberof game.recharge_success
  46433. * @static
  46434. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  46435. * @param {number} [length] Message length if known beforehand
  46436. * @returns {game.recharge_success} recharge_success
  46437. * @throws {Error} If the payload is not a reader or valid buffer
  46438. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  46439. */
  46440. recharge_success.decode = function decode(reader, length) {
  46441. if (!(reader instanceof $Reader))
  46442. reader = $Reader.create(reader);
  46443. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.recharge_success();
  46444. while (reader.pos < end) {
  46445. let tag = reader.uint32();
  46446. switch (tag >>> 3) {
  46447. case 1:
  46448. message.id = reader.string();
  46449. break;
  46450. default:
  46451. reader.skipType(tag & 7);
  46452. break;
  46453. }
  46454. }
  46455. return message;
  46456. };
  46457. /**
  46458. * Decodes a recharge_success message from the specified reader or buffer, length delimited.
  46459. * @function decodeDelimited
  46460. * @memberof game.recharge_success
  46461. * @static
  46462. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  46463. * @returns {game.recharge_success} recharge_success
  46464. * @throws {Error} If the payload is not a reader or valid buffer
  46465. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  46466. */
  46467. recharge_success.decodeDelimited = function decodeDelimited(reader) {
  46468. if (!(reader instanceof $Reader))
  46469. reader = new $Reader(reader);
  46470. return this.decode(reader, reader.uint32());
  46471. };
  46472. /**
  46473. * Verifies a recharge_success message.
  46474. * @function verify
  46475. * @memberof game.recharge_success
  46476. * @static
  46477. * @param {Object.<string,*>} message Plain object to verify
  46478. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  46479. */
  46480. recharge_success.verify = function verify(message) {
  46481. if (typeof message !== "object" || message === null)
  46482. return "object expected";
  46483. if (message.id != null && message.hasOwnProperty("id"))
  46484. if (!$util.isString(message.id))
  46485. return "id: string expected";
  46486. return null;
  46487. };
  46488. /**
  46489. * Creates a recharge_success message from a plain object. Also converts values to their respective internal types.
  46490. * @function fromObject
  46491. * @memberof game.recharge_success
  46492. * @static
  46493. * @param {Object.<string,*>} object Plain object
  46494. * @returns {game.recharge_success} recharge_success
  46495. */
  46496. recharge_success.fromObject = function fromObject(object) {
  46497. if (object instanceof $root.game.recharge_success)
  46498. return object;
  46499. let message = new $root.game.recharge_success();
  46500. if (object.id != null)
  46501. message.id = String(object.id);
  46502. return message;
  46503. };
  46504. /**
  46505. * Creates a plain object from a recharge_success message. Also converts values to other types if specified.
  46506. * @function toObject
  46507. * @memberof game.recharge_success
  46508. * @static
  46509. * @param {game.recharge_success} message recharge_success
  46510. * @param {$protobuf.IConversionOptions} [options] Conversion options
  46511. * @returns {Object.<string,*>} Plain object
  46512. */
  46513. recharge_success.toObject = function toObject(message, options) {
  46514. if (!options)
  46515. options = {};
  46516. let object = {};
  46517. if (options.defaults)
  46518. object.id = "";
  46519. if (message.id != null && message.hasOwnProperty("id"))
  46520. object.id = message.id;
  46521. return object;
  46522. };
  46523. /**
  46524. * Converts this recharge_success to JSON.
  46525. * @function toJSON
  46526. * @memberof game.recharge_success
  46527. * @instance
  46528. * @returns {Object.<string,*>} JSON object
  46529. */
  46530. recharge_success.prototype.toJSON = function toJSON() {
  46531. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  46532. };
  46533. return recharge_success;
  46534. })();
  46535. game.online_award_get_award = (function() {
  46536. /**
  46537. * Properties of an online_award_get_award.
  46538. * @memberof game
  46539. * @interface Ionline_award_get_award
  46540. * @property {number|Long|null} [pos] online_award_get_award pos
  46541. */
  46542. /**
  46543. * Constructs a new online_award_get_award.
  46544. * @memberof game
  46545. * @classdesc Represents an online_award_get_award.
  46546. * @implements Ionline_award_get_award
  46547. * @constructor
  46548. * @param {game.Ionline_award_get_award=} [properties] Properties to set
  46549. */
  46550. function online_award_get_award(properties) {
  46551. if (properties)
  46552. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  46553. if (properties[keys[i]] != null)
  46554. this[keys[i]] = properties[keys[i]];
  46555. }
  46556. /**
  46557. * online_award_get_award pos.
  46558. * @member {number|Long} pos
  46559. * @memberof game.online_award_get_award
  46560. * @instance
  46561. */
  46562. online_award_get_award.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  46563. /**
  46564. * Creates a new online_award_get_award instance using the specified properties.
  46565. * @function create
  46566. * @memberof game.online_award_get_award
  46567. * @static
  46568. * @param {game.Ionline_award_get_award=} [properties] Properties to set
  46569. * @returns {game.online_award_get_award} online_award_get_award instance
  46570. */
  46571. online_award_get_award.create = function create(properties) {
  46572. return new online_award_get_award(properties);
  46573. };
  46574. /**
  46575. * Encodes the specified online_award_get_award message. Does not implicitly {@link game.online_award_get_award.verify|verify} messages.
  46576. * @function encode
  46577. * @memberof game.online_award_get_award
  46578. * @static
  46579. * @param {game.Ionline_award_get_award} message online_award_get_award message or plain object to encode
  46580. * @param {$protobuf.Writer} [writer] Writer to encode to
  46581. * @returns {$protobuf.Writer} Writer
  46582. */
  46583. online_award_get_award.encode = function encode(message, writer) {
  46584. if (!writer)
  46585. writer = $Writer.create();
  46586. if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
  46587. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.pos);
  46588. return writer;
  46589. };
  46590. /**
  46591. * Encodes the specified online_award_get_award message, length delimited. Does not implicitly {@link game.online_award_get_award.verify|verify} messages.
  46592. * @function encodeDelimited
  46593. * @memberof game.online_award_get_award
  46594. * @static
  46595. * @param {game.Ionline_award_get_award} message online_award_get_award message or plain object to encode
  46596. * @param {$protobuf.Writer} [writer] Writer to encode to
  46597. * @returns {$protobuf.Writer} Writer
  46598. */
  46599. online_award_get_award.encodeDelimited = function encodeDelimited(message, writer) {
  46600. return this.encode(message, writer).ldelim();
  46601. };
  46602. /**
  46603. * Decodes an online_award_get_award message from the specified reader or buffer.
  46604. * @function decode
  46605. * @memberof game.online_award_get_award
  46606. * @static
  46607. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  46608. * @param {number} [length] Message length if known beforehand
  46609. * @returns {game.online_award_get_award} online_award_get_award
  46610. * @throws {Error} If the payload is not a reader or valid buffer
  46611. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  46612. */
  46613. online_award_get_award.decode = function decode(reader, length) {
  46614. if (!(reader instanceof $Reader))
  46615. reader = $Reader.create(reader);
  46616. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.online_award_get_award();
  46617. while (reader.pos < end) {
  46618. let tag = reader.uint32();
  46619. switch (tag >>> 3) {
  46620. case 1:
  46621. message.pos = reader.int64();
  46622. break;
  46623. default:
  46624. reader.skipType(tag & 7);
  46625. break;
  46626. }
  46627. }
  46628. return message;
  46629. };
  46630. /**
  46631. * Decodes an online_award_get_award message from the specified reader or buffer, length delimited.
  46632. * @function decodeDelimited
  46633. * @memberof game.online_award_get_award
  46634. * @static
  46635. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  46636. * @returns {game.online_award_get_award} online_award_get_award
  46637. * @throws {Error} If the payload is not a reader or valid buffer
  46638. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  46639. */
  46640. online_award_get_award.decodeDelimited = function decodeDelimited(reader) {
  46641. if (!(reader instanceof $Reader))
  46642. reader = new $Reader(reader);
  46643. return this.decode(reader, reader.uint32());
  46644. };
  46645. /**
  46646. * Verifies an online_award_get_award message.
  46647. * @function verify
  46648. * @memberof game.online_award_get_award
  46649. * @static
  46650. * @param {Object.<string,*>} message Plain object to verify
  46651. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  46652. */
  46653. online_award_get_award.verify = function verify(message) {
  46654. if (typeof message !== "object" || message === null)
  46655. return "object expected";
  46656. if (message.pos != null && message.hasOwnProperty("pos"))
  46657. if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
  46658. return "pos: integer|Long expected";
  46659. return null;
  46660. };
  46661. /**
  46662. * Creates an online_award_get_award message from a plain object. Also converts values to their respective internal types.
  46663. * @function fromObject
  46664. * @memberof game.online_award_get_award
  46665. * @static
  46666. * @param {Object.<string,*>} object Plain object
  46667. * @returns {game.online_award_get_award} online_award_get_award
  46668. */
  46669. online_award_get_award.fromObject = function fromObject(object) {
  46670. if (object instanceof $root.game.online_award_get_award)
  46671. return object;
  46672. let message = new $root.game.online_award_get_award();
  46673. if (object.pos != null)
  46674. if ($util.Long)
  46675. (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
  46676. else if (typeof object.pos === "string")
  46677. message.pos = parseInt(object.pos, 10);
  46678. else if (typeof object.pos === "number")
  46679. message.pos = object.pos;
  46680. else if (typeof object.pos === "object")
  46681. message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
  46682. return message;
  46683. };
  46684. /**
  46685. * Creates a plain object from an online_award_get_award message. Also converts values to other types if specified.
  46686. * @function toObject
  46687. * @memberof game.online_award_get_award
  46688. * @static
  46689. * @param {game.online_award_get_award} message online_award_get_award
  46690. * @param {$protobuf.IConversionOptions} [options] Conversion options
  46691. * @returns {Object.<string,*>} Plain object
  46692. */
  46693. online_award_get_award.toObject = function toObject(message, options) {
  46694. if (!options)
  46695. options = {};
  46696. let object = {};
  46697. if (options.defaults)
  46698. if ($util.Long) {
  46699. let long = new $util.Long(0, 0, false);
  46700. object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  46701. } else
  46702. object.pos = options.longs === String ? "0" : 0;
  46703. if (message.pos != null && message.hasOwnProperty("pos"))
  46704. if (typeof message.pos === "number")
  46705. object.pos = options.longs === String ? String(message.pos) : message.pos;
  46706. else
  46707. 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;
  46708. return object;
  46709. };
  46710. /**
  46711. * Converts this online_award_get_award to JSON.
  46712. * @function toJSON
  46713. * @memberof game.online_award_get_award
  46714. * @instance
  46715. * @returns {Object.<string,*>} JSON object
  46716. */
  46717. online_award_get_award.prototype.toJSON = function toJSON() {
  46718. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  46719. };
  46720. return online_award_get_award;
  46721. })();
  46722. game.online_award_get_award_rsp = (function() {
  46723. /**
  46724. * Properties of an online_award_get_award_rsp.
  46725. * @memberof game
  46726. * @interface Ionline_award_get_award_rsp
  46727. * @property {number|Long|null} [errno] online_award_get_award_rsp errno
  46728. * @property {number|Long|null} [award] online_award_get_award_rsp award
  46729. */
  46730. /**
  46731. * Constructs a new online_award_get_award_rsp.
  46732. * @memberof game
  46733. * @classdesc Represents an online_award_get_award_rsp.
  46734. * @implements Ionline_award_get_award_rsp
  46735. * @constructor
  46736. * @param {game.Ionline_award_get_award_rsp=} [properties] Properties to set
  46737. */
  46738. function online_award_get_award_rsp(properties) {
  46739. if (properties)
  46740. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  46741. if (properties[keys[i]] != null)
  46742. this[keys[i]] = properties[keys[i]];
  46743. }
  46744. /**
  46745. * online_award_get_award_rsp errno.
  46746. * @member {number|Long} errno
  46747. * @memberof game.online_award_get_award_rsp
  46748. * @instance
  46749. */
  46750. online_award_get_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  46751. /**
  46752. * online_award_get_award_rsp award.
  46753. * @member {number|Long} award
  46754. * @memberof game.online_award_get_award_rsp
  46755. * @instance
  46756. */
  46757. online_award_get_award_rsp.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  46758. /**
  46759. * Creates a new online_award_get_award_rsp instance using the specified properties.
  46760. * @function create
  46761. * @memberof game.online_award_get_award_rsp
  46762. * @static
  46763. * @param {game.Ionline_award_get_award_rsp=} [properties] Properties to set
  46764. * @returns {game.online_award_get_award_rsp} online_award_get_award_rsp instance
  46765. */
  46766. online_award_get_award_rsp.create = function create(properties) {
  46767. return new online_award_get_award_rsp(properties);
  46768. };
  46769. /**
  46770. * Encodes the specified online_award_get_award_rsp message. Does not implicitly {@link game.online_award_get_award_rsp.verify|verify} messages.
  46771. * @function encode
  46772. * @memberof game.online_award_get_award_rsp
  46773. * @static
  46774. * @param {game.Ionline_award_get_award_rsp} message online_award_get_award_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_award_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. if (message.award != null && Object.hasOwnProperty.call(message, "award"))
  46784. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.award);
  46785. return writer;
  46786. };
  46787. /**
  46788. * Encodes the specified online_award_get_award_rsp message, length delimited. Does not implicitly {@link game.online_award_get_award_rsp.verify|verify} messages.
  46789. * @function encodeDelimited
  46790. * @memberof game.online_award_get_award_rsp
  46791. * @static
  46792. * @param {game.Ionline_award_get_award_rsp} message online_award_get_award_rsp message or plain object to encode
  46793. * @param {$protobuf.Writer} [writer] Writer to encode to
  46794. * @returns {$protobuf.Writer} Writer
  46795. */
  46796. online_award_get_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  46797. return this.encode(message, writer).ldelim();
  46798. };
  46799. /**
  46800. * Decodes an online_award_get_award_rsp message from the specified reader or buffer.
  46801. * @function decode
  46802. * @memberof game.online_award_get_award_rsp
  46803. * @static
  46804. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  46805. * @param {number} [length] Message length if known beforehand
  46806. * @returns {game.online_award_get_award_rsp} online_award_get_award_rsp
  46807. * @throws {Error} If the payload is not a reader or valid buffer
  46808. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  46809. */
  46810. online_award_get_award_rsp.decode = function decode(reader, length) {
  46811. if (!(reader instanceof $Reader))
  46812. reader = $Reader.create(reader);
  46813. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.online_award_get_award_rsp();
  46814. while (reader.pos < end) {
  46815. let tag = reader.uint32();
  46816. switch (tag >>> 3) {
  46817. case 1:
  46818. message.errno = reader.int64();
  46819. break;
  46820. case 2:
  46821. message.award = reader.int64();
  46822. break;
  46823. default:
  46824. reader.skipType(tag & 7);
  46825. break;
  46826. }
  46827. }
  46828. return message;
  46829. };
  46830. /**
  46831. * Decodes an online_award_get_award_rsp message from the specified reader or buffer, length delimited.
  46832. * @function decodeDelimited
  46833. * @memberof game.online_award_get_award_rsp
  46834. * @static
  46835. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  46836. * @returns {game.online_award_get_award_rsp} online_award_get_award_rsp
  46837. * @throws {Error} If the payload is not a reader or valid buffer
  46838. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  46839. */
  46840. online_award_get_award_rsp.decodeDelimited = function decodeDelimited(reader) {
  46841. if (!(reader instanceof $Reader))
  46842. reader = new $Reader(reader);
  46843. return this.decode(reader, reader.uint32());
  46844. };
  46845. /**
  46846. * Verifies an online_award_get_award_rsp message.
  46847. * @function verify
  46848. * @memberof game.online_award_get_award_rsp
  46849. * @static
  46850. * @param {Object.<string,*>} message Plain object to verify
  46851. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  46852. */
  46853. online_award_get_award_rsp.verify = function verify(message) {
  46854. if (typeof message !== "object" || message === null)
  46855. return "object expected";
  46856. if (message.errno != null && message.hasOwnProperty("errno"))
  46857. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  46858. return "errno: integer|Long expected";
  46859. if (message.award != null && message.hasOwnProperty("award"))
  46860. if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
  46861. return "award: integer|Long expected";
  46862. return null;
  46863. };
  46864. /**
  46865. * Creates an online_award_get_award_rsp message from a plain object. Also converts values to their respective internal types.
  46866. * @function fromObject
  46867. * @memberof game.online_award_get_award_rsp
  46868. * @static
  46869. * @param {Object.<string,*>} object Plain object
  46870. * @returns {game.online_award_get_award_rsp} online_award_get_award_rsp
  46871. */
  46872. online_award_get_award_rsp.fromObject = function fromObject(object) {
  46873. if (object instanceof $root.game.online_award_get_award_rsp)
  46874. return object;
  46875. let message = new $root.game.online_award_get_award_rsp();
  46876. if (object.errno != null)
  46877. if ($util.Long)
  46878. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  46879. else if (typeof object.errno === "string")
  46880. message.errno = parseInt(object.errno, 10);
  46881. else if (typeof object.errno === "number")
  46882. message.errno = object.errno;
  46883. else if (typeof object.errno === "object")
  46884. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  46885. if (object.award != null)
  46886. if ($util.Long)
  46887. (message.award = $util.Long.fromValue(object.award)).unsigned = false;
  46888. else if (typeof object.award === "string")
  46889. message.award = parseInt(object.award, 10);
  46890. else if (typeof object.award === "number")
  46891. message.award = object.award;
  46892. else if (typeof object.award === "object")
  46893. message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
  46894. return message;
  46895. };
  46896. /**
  46897. * Creates a plain object from an online_award_get_award_rsp message. Also converts values to other types if specified.
  46898. * @function toObject
  46899. * @memberof game.online_award_get_award_rsp
  46900. * @static
  46901. * @param {game.online_award_get_award_rsp} message online_award_get_award_rsp
  46902. * @param {$protobuf.IConversionOptions} [options] Conversion options
  46903. * @returns {Object.<string,*>} Plain object
  46904. */
  46905. online_award_get_award_rsp.toObject = function toObject(message, options) {
  46906. if (!options)
  46907. options = {};
  46908. let object = {};
  46909. if (options.defaults) {
  46910. if ($util.Long) {
  46911. let long = new $util.Long(0, 0, false);
  46912. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  46913. } else
  46914. object.errno = options.longs === String ? "0" : 0;
  46915. if ($util.Long) {
  46916. let long = new $util.Long(0, 0, false);
  46917. object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  46918. } else
  46919. object.award = options.longs === String ? "0" : 0;
  46920. }
  46921. if (message.errno != null && message.hasOwnProperty("errno"))
  46922. if (typeof message.errno === "number")
  46923. object.errno = options.longs === String ? String(message.errno) : message.errno;
  46924. else
  46925. 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;
  46926. if (message.award != null && message.hasOwnProperty("award"))
  46927. if (typeof message.award === "number")
  46928. object.award = options.longs === String ? String(message.award) : message.award;
  46929. else
  46930. 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;
  46931. return object;
  46932. };
  46933. /**
  46934. * Converts this online_award_get_award_rsp to JSON.
  46935. * @function toJSON
  46936. * @memberof game.online_award_get_award_rsp
  46937. * @instance
  46938. * @returns {Object.<string,*>} JSON object
  46939. */
  46940. online_award_get_award_rsp.prototype.toJSON = function toJSON() {
  46941. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  46942. };
  46943. return online_award_get_award_rsp;
  46944. })();
  46945. game.online_award_get_data = (function() {
  46946. /**
  46947. * Properties of an online_award_get_data.
  46948. * @memberof game
  46949. * @interface Ionline_award_get_data
  46950. */
  46951. /**
  46952. * Constructs a new online_award_get_data.
  46953. * @memberof game
  46954. * @classdesc Represents an online_award_get_data.
  46955. * @implements Ionline_award_get_data
  46956. * @constructor
  46957. * @param {game.Ionline_award_get_data=} [properties] Properties to set
  46958. */
  46959. function online_award_get_data(properties) {
  46960. if (properties)
  46961. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  46962. if (properties[keys[i]] != null)
  46963. this[keys[i]] = properties[keys[i]];
  46964. }
  46965. /**
  46966. * Creates a new online_award_get_data instance using the specified properties.
  46967. * @function create
  46968. * @memberof game.online_award_get_data
  46969. * @static
  46970. * @param {game.Ionline_award_get_data=} [properties] Properties to set
  46971. * @returns {game.online_award_get_data} online_award_get_data instance
  46972. */
  46973. online_award_get_data.create = function create(properties) {
  46974. return new online_award_get_data(properties);
  46975. };
  46976. /**
  46977. * Encodes the specified online_award_get_data message. Does not implicitly {@link game.online_award_get_data.verify|verify} messages.
  46978. * @function encode
  46979. * @memberof game.online_award_get_data
  46980. * @static
  46981. * @param {game.Ionline_award_get_data} message online_award_get_data message or plain object to encode
  46982. * @param {$protobuf.Writer} [writer] Writer to encode to
  46983. * @returns {$protobuf.Writer} Writer
  46984. */
  46985. online_award_get_data.encode = function encode(message, writer) {
  46986. if (!writer)
  46987. writer = $Writer.create();
  46988. return writer;
  46989. };
  46990. /**
  46991. * Encodes the specified online_award_get_data message, length delimited. Does not implicitly {@link game.online_award_get_data.verify|verify} messages.
  46992. * @function encodeDelimited
  46993. * @memberof game.online_award_get_data
  46994. * @static
  46995. * @param {game.Ionline_award_get_data} message online_award_get_data message or plain object to encode
  46996. * @param {$protobuf.Writer} [writer] Writer to encode to
  46997. * @returns {$protobuf.Writer} Writer
  46998. */
  46999. online_award_get_data.encodeDelimited = function encodeDelimited(message, writer) {
  47000. return this.encode(message, writer).ldelim();
  47001. };
  47002. /**
  47003. * Decodes an online_award_get_data message from the specified reader or buffer.
  47004. * @function decode
  47005. * @memberof game.online_award_get_data
  47006. * @static
  47007. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  47008. * @param {number} [length] Message length if known beforehand
  47009. * @returns {game.online_award_get_data} online_award_get_data
  47010. * @throws {Error} If the payload is not a reader or valid buffer
  47011. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  47012. */
  47013. online_award_get_data.decode = function decode(reader, length) {
  47014. if (!(reader instanceof $Reader))
  47015. reader = $Reader.create(reader);
  47016. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.online_award_get_data();
  47017. while (reader.pos < end) {
  47018. let tag = reader.uint32();
  47019. switch (tag >>> 3) {
  47020. default:
  47021. reader.skipType(tag & 7);
  47022. break;
  47023. }
  47024. }
  47025. return message;
  47026. };
  47027. /**
  47028. * Decodes an online_award_get_data message from the specified reader or buffer, length delimited.
  47029. * @function decodeDelimited
  47030. * @memberof game.online_award_get_data
  47031. * @static
  47032. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  47033. * @returns {game.online_award_get_data} online_award_get_data
  47034. * @throws {Error} If the payload is not a reader or valid buffer
  47035. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  47036. */
  47037. online_award_get_data.decodeDelimited = function decodeDelimited(reader) {
  47038. if (!(reader instanceof $Reader))
  47039. reader = new $Reader(reader);
  47040. return this.decode(reader, reader.uint32());
  47041. };
  47042. /**
  47043. * Verifies an online_award_get_data message.
  47044. * @function verify
  47045. * @memberof game.online_award_get_data
  47046. * @static
  47047. * @param {Object.<string,*>} message Plain object to verify
  47048. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  47049. */
  47050. online_award_get_data.verify = function verify(message) {
  47051. if (typeof message !== "object" || message === null)
  47052. return "object expected";
  47053. return null;
  47054. };
  47055. /**
  47056. * Creates an online_award_get_data message from a plain object. Also converts values to their respective internal types.
  47057. * @function fromObject
  47058. * @memberof game.online_award_get_data
  47059. * @static
  47060. * @param {Object.<string,*>} object Plain object
  47061. * @returns {game.online_award_get_data} online_award_get_data
  47062. */
  47063. online_award_get_data.fromObject = function fromObject(object) {
  47064. if (object instanceof $root.game.online_award_get_data)
  47065. return object;
  47066. return new $root.game.online_award_get_data();
  47067. };
  47068. /**
  47069. * Creates a plain object from an online_award_get_data message. Also converts values to other types if specified.
  47070. * @function toObject
  47071. * @memberof game.online_award_get_data
  47072. * @static
  47073. * @param {game.online_award_get_data} message online_award_get_data
  47074. * @param {$protobuf.IConversionOptions} [options] Conversion options
  47075. * @returns {Object.<string,*>} Plain object
  47076. */
  47077. online_award_get_data.toObject = function toObject() {
  47078. return {};
  47079. };
  47080. /**
  47081. * Converts this online_award_get_data to JSON.
  47082. * @function toJSON
  47083. * @memberof game.online_award_get_data
  47084. * @instance
  47085. * @returns {Object.<string,*>} JSON object
  47086. */
  47087. online_award_get_data.prototype.toJSON = function toJSON() {
  47088. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  47089. };
  47090. return online_award_get_data;
  47091. })();
  47092. game.online_award_get_data_rsp = (function() {
  47093. /**
  47094. * Properties of an online_award_get_data_rsp.
  47095. * @memberof game
  47096. * @interface Ionline_award_get_data_rsp
  47097. * @property {number|Long|null} [errno] online_award_get_data_rsp errno
  47098. */
  47099. /**
  47100. * Constructs a new online_award_get_data_rsp.
  47101. * @memberof game
  47102. * @classdesc Represents an online_award_get_data_rsp.
  47103. * @implements Ionline_award_get_data_rsp
  47104. * @constructor
  47105. * @param {game.Ionline_award_get_data_rsp=} [properties] Properties to set
  47106. */
  47107. function online_award_get_data_rsp(properties) {
  47108. if (properties)
  47109. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  47110. if (properties[keys[i]] != null)
  47111. this[keys[i]] = properties[keys[i]];
  47112. }
  47113. /**
  47114. * online_award_get_data_rsp errno.
  47115. * @member {number|Long} errno
  47116. * @memberof game.online_award_get_data_rsp
  47117. * @instance
  47118. */
  47119. online_award_get_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  47120. /**
  47121. * Creates a new online_award_get_data_rsp instance using the specified properties.
  47122. * @function create
  47123. * @memberof game.online_award_get_data_rsp
  47124. * @static
  47125. * @param {game.Ionline_award_get_data_rsp=} [properties] Properties to set
  47126. * @returns {game.online_award_get_data_rsp} online_award_get_data_rsp instance
  47127. */
  47128. online_award_get_data_rsp.create = function create(properties) {
  47129. return new online_award_get_data_rsp(properties);
  47130. };
  47131. /**
  47132. * Encodes the specified online_award_get_data_rsp message. Does not implicitly {@link game.online_award_get_data_rsp.verify|verify} messages.
  47133. * @function encode
  47134. * @memberof game.online_award_get_data_rsp
  47135. * @static
  47136. * @param {game.Ionline_award_get_data_rsp} message online_award_get_data_rsp message or plain object to encode
  47137. * @param {$protobuf.Writer} [writer] Writer to encode to
  47138. * @returns {$protobuf.Writer} Writer
  47139. */
  47140. online_award_get_data_rsp.encode = function encode(message, writer) {
  47141. if (!writer)
  47142. writer = $Writer.create();
  47143. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  47144. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  47145. return writer;
  47146. };
  47147. /**
  47148. * Encodes the specified online_award_get_data_rsp message, length delimited. Does not implicitly {@link game.online_award_get_data_rsp.verify|verify} messages.
  47149. * @function encodeDelimited
  47150. * @memberof game.online_award_get_data_rsp
  47151. * @static
  47152. * @param {game.Ionline_award_get_data_rsp} message online_award_get_data_rsp message or plain object to encode
  47153. * @param {$protobuf.Writer} [writer] Writer to encode to
  47154. * @returns {$protobuf.Writer} Writer
  47155. */
  47156. online_award_get_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  47157. return this.encode(message, writer).ldelim();
  47158. };
  47159. /**
  47160. * Decodes an online_award_get_data_rsp message from the specified reader or buffer.
  47161. * @function decode
  47162. * @memberof game.online_award_get_data_rsp
  47163. * @static
  47164. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  47165. * @param {number} [length] Message length if known beforehand
  47166. * @returns {game.online_award_get_data_rsp} online_award_get_data_rsp
  47167. * @throws {Error} If the payload is not a reader or valid buffer
  47168. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  47169. */
  47170. online_award_get_data_rsp.decode = function decode(reader, length) {
  47171. if (!(reader instanceof $Reader))
  47172. reader = $Reader.create(reader);
  47173. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.online_award_get_data_rsp();
  47174. while (reader.pos < end) {
  47175. let tag = reader.uint32();
  47176. switch (tag >>> 3) {
  47177. case 1:
  47178. message.errno = reader.int64();
  47179. break;
  47180. default:
  47181. reader.skipType(tag & 7);
  47182. break;
  47183. }
  47184. }
  47185. return message;
  47186. };
  47187. /**
  47188. * Decodes an online_award_get_data_rsp message from the specified reader or buffer, length delimited.
  47189. * @function decodeDelimited
  47190. * @memberof game.online_award_get_data_rsp
  47191. * @static
  47192. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  47193. * @returns {game.online_award_get_data_rsp} online_award_get_data_rsp
  47194. * @throws {Error} If the payload is not a reader or valid buffer
  47195. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  47196. */
  47197. online_award_get_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  47198. if (!(reader instanceof $Reader))
  47199. reader = new $Reader(reader);
  47200. return this.decode(reader, reader.uint32());
  47201. };
  47202. /**
  47203. * Verifies an online_award_get_data_rsp message.
  47204. * @function verify
  47205. * @memberof game.online_award_get_data_rsp
  47206. * @static
  47207. * @param {Object.<string,*>} message Plain object to verify
  47208. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  47209. */
  47210. online_award_get_data_rsp.verify = function verify(message) {
  47211. if (typeof message !== "object" || message === null)
  47212. return "object expected";
  47213. if (message.errno != null && message.hasOwnProperty("errno"))
  47214. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  47215. return "errno: integer|Long expected";
  47216. return null;
  47217. };
  47218. /**
  47219. * Creates an online_award_get_data_rsp message from a plain object. Also converts values to their respective internal types.
  47220. * @function fromObject
  47221. * @memberof game.online_award_get_data_rsp
  47222. * @static
  47223. * @param {Object.<string,*>} object Plain object
  47224. * @returns {game.online_award_get_data_rsp} online_award_get_data_rsp
  47225. */
  47226. online_award_get_data_rsp.fromObject = function fromObject(object) {
  47227. if (object instanceof $root.game.online_award_get_data_rsp)
  47228. return object;
  47229. let message = new $root.game.online_award_get_data_rsp();
  47230. if (object.errno != null)
  47231. if ($util.Long)
  47232. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  47233. else if (typeof object.errno === "string")
  47234. message.errno = parseInt(object.errno, 10);
  47235. else if (typeof object.errno === "number")
  47236. message.errno = object.errno;
  47237. else if (typeof object.errno === "object")
  47238. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  47239. return message;
  47240. };
  47241. /**
  47242. * Creates a plain object from an online_award_get_data_rsp message. Also converts values to other types if specified.
  47243. * @function toObject
  47244. * @memberof game.online_award_get_data_rsp
  47245. * @static
  47246. * @param {game.online_award_get_data_rsp} message online_award_get_data_rsp
  47247. * @param {$protobuf.IConversionOptions} [options] Conversion options
  47248. * @returns {Object.<string,*>} Plain object
  47249. */
  47250. online_award_get_data_rsp.toObject = function toObject(message, options) {
  47251. if (!options)
  47252. options = {};
  47253. let object = {};
  47254. if (options.defaults)
  47255. if ($util.Long) {
  47256. let long = new $util.Long(0, 0, false);
  47257. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  47258. } else
  47259. object.errno = options.longs === String ? "0" : 0;
  47260. if (message.errno != null && message.hasOwnProperty("errno"))
  47261. if (typeof message.errno === "number")
  47262. object.errno = options.longs === String ? String(message.errno) : message.errno;
  47263. else
  47264. 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;
  47265. return object;
  47266. };
  47267. /**
  47268. * Converts this online_award_get_data_rsp to JSON.
  47269. * @function toJSON
  47270. * @memberof game.online_award_get_data_rsp
  47271. * @instance
  47272. * @returns {Object.<string,*>} JSON object
  47273. */
  47274. online_award_get_data_rsp.prototype.toJSON = function toJSON() {
  47275. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  47276. };
  47277. return online_award_get_data_rsp;
  47278. })();
  47279. game.online_award_nty = (function() {
  47280. /**
  47281. * Properties of an online_award_nty.
  47282. * @memberof game
  47283. * @interface Ionline_award_nty
  47284. * @property {boolean|null} [open] online_award_nty open
  47285. * @property {number|Long|null} [time] online_award_nty time
  47286. * @property {number|Long|null} [award] online_award_nty award
  47287. */
  47288. /**
  47289. * Constructs a new online_award_nty.
  47290. * @memberof game
  47291. * @classdesc Represents an online_award_nty.
  47292. * @implements Ionline_award_nty
  47293. * @constructor
  47294. * @param {game.Ionline_award_nty=} [properties] Properties to set
  47295. */
  47296. function online_award_nty(properties) {
  47297. if (properties)
  47298. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  47299. if (properties[keys[i]] != null)
  47300. this[keys[i]] = properties[keys[i]];
  47301. }
  47302. /**
  47303. * online_award_nty open.
  47304. * @member {boolean} open
  47305. * @memberof game.online_award_nty
  47306. * @instance
  47307. */
  47308. online_award_nty.prototype.open = false;
  47309. /**
  47310. * online_award_nty time.
  47311. * @member {number|Long} time
  47312. * @memberof game.online_award_nty
  47313. * @instance
  47314. */
  47315. online_award_nty.prototype.time = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  47316. /**
  47317. * online_award_nty award.
  47318. * @member {number|Long} award
  47319. * @memberof game.online_award_nty
  47320. * @instance
  47321. */
  47322. online_award_nty.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  47323. /**
  47324. * Creates a new online_award_nty instance using the specified properties.
  47325. * @function create
  47326. * @memberof game.online_award_nty
  47327. * @static
  47328. * @param {game.Ionline_award_nty=} [properties] Properties to set
  47329. * @returns {game.online_award_nty} online_award_nty instance
  47330. */
  47331. online_award_nty.create = function create(properties) {
  47332. return new online_award_nty(properties);
  47333. };
  47334. /**
  47335. * Encodes the specified online_award_nty message. Does not implicitly {@link game.online_award_nty.verify|verify} messages.
  47336. * @function encode
  47337. * @memberof game.online_award_nty
  47338. * @static
  47339. * @param {game.Ionline_award_nty} message online_award_nty message or plain object to encode
  47340. * @param {$protobuf.Writer} [writer] Writer to encode to
  47341. * @returns {$protobuf.Writer} Writer
  47342. */
  47343. online_award_nty.encode = function encode(message, writer) {
  47344. if (!writer)
  47345. writer = $Writer.create();
  47346. if (message.open != null && Object.hasOwnProperty.call(message, "open"))
  47347. writer.uint32(/* id 1, wireType 0 =*/8).bool(message.open);
  47348. if (message.time != null && Object.hasOwnProperty.call(message, "time"))
  47349. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.time);
  47350. if (message.award != null && Object.hasOwnProperty.call(message, "award"))
  47351. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.award);
  47352. return writer;
  47353. };
  47354. /**
  47355. * Encodes the specified online_award_nty message, length delimited. Does not implicitly {@link game.online_award_nty.verify|verify} messages.
  47356. * @function encodeDelimited
  47357. * @memberof game.online_award_nty
  47358. * @static
  47359. * @param {game.Ionline_award_nty} message online_award_nty message or plain object to encode
  47360. * @param {$protobuf.Writer} [writer] Writer to encode to
  47361. * @returns {$protobuf.Writer} Writer
  47362. */
  47363. online_award_nty.encodeDelimited = function encodeDelimited(message, writer) {
  47364. return this.encode(message, writer).ldelim();
  47365. };
  47366. /**
  47367. * Decodes an online_award_nty message from the specified reader or buffer.
  47368. * @function decode
  47369. * @memberof game.online_award_nty
  47370. * @static
  47371. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  47372. * @param {number} [length] Message length if known beforehand
  47373. * @returns {game.online_award_nty} online_award_nty
  47374. * @throws {Error} If the payload is not a reader or valid buffer
  47375. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  47376. */
  47377. online_award_nty.decode = function decode(reader, length) {
  47378. if (!(reader instanceof $Reader))
  47379. reader = $Reader.create(reader);
  47380. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.online_award_nty();
  47381. while (reader.pos < end) {
  47382. let tag = reader.uint32();
  47383. switch (tag >>> 3) {
  47384. case 1:
  47385. message.open = reader.bool();
  47386. break;
  47387. case 2:
  47388. message.time = reader.int64();
  47389. break;
  47390. case 3:
  47391. message.award = reader.int64();
  47392. break;
  47393. default:
  47394. reader.skipType(tag & 7);
  47395. break;
  47396. }
  47397. }
  47398. return message;
  47399. };
  47400. /**
  47401. * Decodes an online_award_nty message from the specified reader or buffer, length delimited.
  47402. * @function decodeDelimited
  47403. * @memberof game.online_award_nty
  47404. * @static
  47405. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  47406. * @returns {game.online_award_nty} online_award_nty
  47407. * @throws {Error} If the payload is not a reader or valid buffer
  47408. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  47409. */
  47410. online_award_nty.decodeDelimited = function decodeDelimited(reader) {
  47411. if (!(reader instanceof $Reader))
  47412. reader = new $Reader(reader);
  47413. return this.decode(reader, reader.uint32());
  47414. };
  47415. /**
  47416. * Verifies an online_award_nty message.
  47417. * @function verify
  47418. * @memberof game.online_award_nty
  47419. * @static
  47420. * @param {Object.<string,*>} message Plain object to verify
  47421. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  47422. */
  47423. online_award_nty.verify = function verify(message) {
  47424. if (typeof message !== "object" || message === null)
  47425. return "object expected";
  47426. if (message.open != null && message.hasOwnProperty("open"))
  47427. if (typeof message.open !== "boolean")
  47428. return "open: boolean expected";
  47429. if (message.time != null && message.hasOwnProperty("time"))
  47430. if (!$util.isInteger(message.time) && !(message.time && $util.isInteger(message.time.low) && $util.isInteger(message.time.high)))
  47431. return "time: integer|Long expected";
  47432. if (message.award != null && message.hasOwnProperty("award"))
  47433. if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
  47434. return "award: integer|Long expected";
  47435. return null;
  47436. };
  47437. /**
  47438. * Creates an online_award_nty message from a plain object. Also converts values to their respective internal types.
  47439. * @function fromObject
  47440. * @memberof game.online_award_nty
  47441. * @static
  47442. * @param {Object.<string,*>} object Plain object
  47443. * @returns {game.online_award_nty} online_award_nty
  47444. */
  47445. online_award_nty.fromObject = function fromObject(object) {
  47446. if (object instanceof $root.game.online_award_nty)
  47447. return object;
  47448. let message = new $root.game.online_award_nty();
  47449. if (object.open != null)
  47450. message.open = Boolean(object.open);
  47451. if (object.time != null)
  47452. if ($util.Long)
  47453. (message.time = $util.Long.fromValue(object.time)).unsigned = false;
  47454. else if (typeof object.time === "string")
  47455. message.time = parseInt(object.time, 10);
  47456. else if (typeof object.time === "number")
  47457. message.time = object.time;
  47458. else if (typeof object.time === "object")
  47459. message.time = new $util.LongBits(object.time.low >>> 0, object.time.high >>> 0).toNumber();
  47460. if (object.award != null)
  47461. if ($util.Long)
  47462. (message.award = $util.Long.fromValue(object.award)).unsigned = false;
  47463. else if (typeof object.award === "string")
  47464. message.award = parseInt(object.award, 10);
  47465. else if (typeof object.award === "number")
  47466. message.award = object.award;
  47467. else if (typeof object.award === "object")
  47468. message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
  47469. return message;
  47470. };
  47471. /**
  47472. * Creates a plain object from an online_award_nty message. Also converts values to other types if specified.
  47473. * @function toObject
  47474. * @memberof game.online_award_nty
  47475. * @static
  47476. * @param {game.online_award_nty} message online_award_nty
  47477. * @param {$protobuf.IConversionOptions} [options] Conversion options
  47478. * @returns {Object.<string,*>} Plain object
  47479. */
  47480. online_award_nty.toObject = function toObject(message, options) {
  47481. if (!options)
  47482. options = {};
  47483. let object = {};
  47484. if (options.defaults) {
  47485. object.open = false;
  47486. if ($util.Long) {
  47487. let long = new $util.Long(0, 0, false);
  47488. object.time = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  47489. } else
  47490. object.time = options.longs === String ? "0" : 0;
  47491. if ($util.Long) {
  47492. let long = new $util.Long(0, 0, false);
  47493. object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  47494. } else
  47495. object.award = options.longs === String ? "0" : 0;
  47496. }
  47497. if (message.open != null && message.hasOwnProperty("open"))
  47498. object.open = message.open;
  47499. if (message.time != null && message.hasOwnProperty("time"))
  47500. if (typeof message.time === "number")
  47501. object.time = options.longs === String ? String(message.time) : message.time;
  47502. else
  47503. 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;
  47504. if (message.award != null && message.hasOwnProperty("award"))
  47505. if (typeof message.award === "number")
  47506. object.award = options.longs === String ? String(message.award) : message.award;
  47507. else
  47508. 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;
  47509. return object;
  47510. };
  47511. /**
  47512. * Converts this online_award_nty to JSON.
  47513. * @function toJSON
  47514. * @memberof game.online_award_nty
  47515. * @instance
  47516. * @returns {Object.<string,*>} JSON object
  47517. */
  47518. online_award_nty.prototype.toJSON = function toJSON() {
  47519. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  47520. };
  47521. return online_award_nty;
  47522. })();
  47523. game.speed_up_data = (function() {
  47524. /**
  47525. * Properties of a speed_up_data.
  47526. * @memberof game
  47527. * @interface Ispeed_up_data
  47528. */
  47529. /**
  47530. * Constructs a new speed_up_data.
  47531. * @memberof game
  47532. * @classdesc Represents a speed_up_data.
  47533. * @implements Ispeed_up_data
  47534. * @constructor
  47535. * @param {game.Ispeed_up_data=} [properties] Properties to set
  47536. */
  47537. function speed_up_data(properties) {
  47538. if (properties)
  47539. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  47540. if (properties[keys[i]] != null)
  47541. this[keys[i]] = properties[keys[i]];
  47542. }
  47543. /**
  47544. * Creates a new speed_up_data instance using the specified properties.
  47545. * @function create
  47546. * @memberof game.speed_up_data
  47547. * @static
  47548. * @param {game.Ispeed_up_data=} [properties] Properties to set
  47549. * @returns {game.speed_up_data} speed_up_data instance
  47550. */
  47551. speed_up_data.create = function create(properties) {
  47552. return new speed_up_data(properties);
  47553. };
  47554. /**
  47555. * Encodes the specified speed_up_data message. Does not implicitly {@link game.speed_up_data.verify|verify} messages.
  47556. * @function encode
  47557. * @memberof game.speed_up_data
  47558. * @static
  47559. * @param {game.Ispeed_up_data} message speed_up_data message or plain object to encode
  47560. * @param {$protobuf.Writer} [writer] Writer to encode to
  47561. * @returns {$protobuf.Writer} Writer
  47562. */
  47563. speed_up_data.encode = function encode(message, writer) {
  47564. if (!writer)
  47565. writer = $Writer.create();
  47566. return writer;
  47567. };
  47568. /**
  47569. * Encodes the specified speed_up_data message, length delimited. Does not implicitly {@link game.speed_up_data.verify|verify} messages.
  47570. * @function encodeDelimited
  47571. * @memberof game.speed_up_data
  47572. * @static
  47573. * @param {game.Ispeed_up_data} message speed_up_data message or plain object to encode
  47574. * @param {$protobuf.Writer} [writer] Writer to encode to
  47575. * @returns {$protobuf.Writer} Writer
  47576. */
  47577. speed_up_data.encodeDelimited = function encodeDelimited(message, writer) {
  47578. return this.encode(message, writer).ldelim();
  47579. };
  47580. /**
  47581. * Decodes a speed_up_data message from the specified reader or buffer.
  47582. * @function decode
  47583. * @memberof game.speed_up_data
  47584. * @static
  47585. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  47586. * @param {number} [length] Message length if known beforehand
  47587. * @returns {game.speed_up_data} speed_up_data
  47588. * @throws {Error} If the payload is not a reader or valid buffer
  47589. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  47590. */
  47591. speed_up_data.decode = function decode(reader, length) {
  47592. if (!(reader instanceof $Reader))
  47593. reader = $Reader.create(reader);
  47594. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.speed_up_data();
  47595. while (reader.pos < end) {
  47596. let tag = reader.uint32();
  47597. switch (tag >>> 3) {
  47598. default:
  47599. reader.skipType(tag & 7);
  47600. break;
  47601. }
  47602. }
  47603. return message;
  47604. };
  47605. /**
  47606. * Decodes a speed_up_data message from the specified reader or buffer, length delimited.
  47607. * @function decodeDelimited
  47608. * @memberof game.speed_up_data
  47609. * @static
  47610. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  47611. * @returns {game.speed_up_data} speed_up_data
  47612. * @throws {Error} If the payload is not a reader or valid buffer
  47613. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  47614. */
  47615. speed_up_data.decodeDelimited = function decodeDelimited(reader) {
  47616. if (!(reader instanceof $Reader))
  47617. reader = new $Reader(reader);
  47618. return this.decode(reader, reader.uint32());
  47619. };
  47620. /**
  47621. * Verifies a speed_up_data message.
  47622. * @function verify
  47623. * @memberof game.speed_up_data
  47624. * @static
  47625. * @param {Object.<string,*>} message Plain object to verify
  47626. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  47627. */
  47628. speed_up_data.verify = function verify(message) {
  47629. if (typeof message !== "object" || message === null)
  47630. return "object expected";
  47631. return null;
  47632. };
  47633. /**
  47634. * Creates a speed_up_data message from a plain object. Also converts values to their respective internal types.
  47635. * @function fromObject
  47636. * @memberof game.speed_up_data
  47637. * @static
  47638. * @param {Object.<string,*>} object Plain object
  47639. * @returns {game.speed_up_data} speed_up_data
  47640. */
  47641. speed_up_data.fromObject = function fromObject(object) {
  47642. if (object instanceof $root.game.speed_up_data)
  47643. return object;
  47644. return new $root.game.speed_up_data();
  47645. };
  47646. /**
  47647. * Creates a plain object from a speed_up_data message. Also converts values to other types if specified.
  47648. * @function toObject
  47649. * @memberof game.speed_up_data
  47650. * @static
  47651. * @param {game.speed_up_data} message speed_up_data
  47652. * @param {$protobuf.IConversionOptions} [options] Conversion options
  47653. * @returns {Object.<string,*>} Plain object
  47654. */
  47655. speed_up_data.toObject = function toObject() {
  47656. return {};
  47657. };
  47658. /**
  47659. * Converts this speed_up_data to JSON.
  47660. * @function toJSON
  47661. * @memberof game.speed_up_data
  47662. * @instance
  47663. * @returns {Object.<string,*>} JSON object
  47664. */
  47665. speed_up_data.prototype.toJSON = function toJSON() {
  47666. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  47667. };
  47668. return speed_up_data;
  47669. })();
  47670. game.speed_up_data_rsp = (function() {
  47671. /**
  47672. * Properties of a speed_up_data_rsp.
  47673. * @memberof game
  47674. * @interface Ispeed_up_data_rsp
  47675. * @property {number|Long|null} [errno] speed_up_data_rsp errno
  47676. * @property {number|Long|null} [time] speed_up_data_rsp time
  47677. */
  47678. /**
  47679. * Constructs a new speed_up_data_rsp.
  47680. * @memberof game
  47681. * @classdesc Represents a speed_up_data_rsp.
  47682. * @implements Ispeed_up_data_rsp
  47683. * @constructor
  47684. * @param {game.Ispeed_up_data_rsp=} [properties] Properties to set
  47685. */
  47686. function speed_up_data_rsp(properties) {
  47687. if (properties)
  47688. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  47689. if (properties[keys[i]] != null)
  47690. this[keys[i]] = properties[keys[i]];
  47691. }
  47692. /**
  47693. * speed_up_data_rsp errno.
  47694. * @member {number|Long} errno
  47695. * @memberof game.speed_up_data_rsp
  47696. * @instance
  47697. */
  47698. speed_up_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  47699. /**
  47700. * speed_up_data_rsp time.
  47701. * @member {number|Long} time
  47702. * @memberof game.speed_up_data_rsp
  47703. * @instance
  47704. */
  47705. speed_up_data_rsp.prototype.time = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  47706. /**
  47707. * Creates a new speed_up_data_rsp instance using the specified properties.
  47708. * @function create
  47709. * @memberof game.speed_up_data_rsp
  47710. * @static
  47711. * @param {game.Ispeed_up_data_rsp=} [properties] Properties to set
  47712. * @returns {game.speed_up_data_rsp} speed_up_data_rsp instance
  47713. */
  47714. speed_up_data_rsp.create = function create(properties) {
  47715. return new speed_up_data_rsp(properties);
  47716. };
  47717. /**
  47718. * Encodes the specified speed_up_data_rsp message. Does not implicitly {@link game.speed_up_data_rsp.verify|verify} messages.
  47719. * @function encode
  47720. * @memberof game.speed_up_data_rsp
  47721. * @static
  47722. * @param {game.Ispeed_up_data_rsp} message speed_up_data_rsp message or plain object to encode
  47723. * @param {$protobuf.Writer} [writer] Writer to encode to
  47724. * @returns {$protobuf.Writer} Writer
  47725. */
  47726. speed_up_data_rsp.encode = function encode(message, writer) {
  47727. if (!writer)
  47728. writer = $Writer.create();
  47729. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  47730. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  47731. if (message.time != null && Object.hasOwnProperty.call(message, "time"))
  47732. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.time);
  47733. return writer;
  47734. };
  47735. /**
  47736. * Encodes the specified speed_up_data_rsp message, length delimited. Does not implicitly {@link game.speed_up_data_rsp.verify|verify} messages.
  47737. * @function encodeDelimited
  47738. * @memberof game.speed_up_data_rsp
  47739. * @static
  47740. * @param {game.Ispeed_up_data_rsp} message speed_up_data_rsp message or plain object to encode
  47741. * @param {$protobuf.Writer} [writer] Writer to encode to
  47742. * @returns {$protobuf.Writer} Writer
  47743. */
  47744. speed_up_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  47745. return this.encode(message, writer).ldelim();
  47746. };
  47747. /**
  47748. * Decodes a speed_up_data_rsp message from the specified reader or buffer.
  47749. * @function decode
  47750. * @memberof game.speed_up_data_rsp
  47751. * @static
  47752. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  47753. * @param {number} [length] Message length if known beforehand
  47754. * @returns {game.speed_up_data_rsp} speed_up_data_rsp
  47755. * @throws {Error} If the payload is not a reader or valid buffer
  47756. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  47757. */
  47758. speed_up_data_rsp.decode = function decode(reader, length) {
  47759. if (!(reader instanceof $Reader))
  47760. reader = $Reader.create(reader);
  47761. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.speed_up_data_rsp();
  47762. while (reader.pos < end) {
  47763. let tag = reader.uint32();
  47764. switch (tag >>> 3) {
  47765. case 1:
  47766. message.errno = reader.int64();
  47767. break;
  47768. case 2:
  47769. message.time = reader.int64();
  47770. break;
  47771. default:
  47772. reader.skipType(tag & 7);
  47773. break;
  47774. }
  47775. }
  47776. return message;
  47777. };
  47778. /**
  47779. * Decodes a speed_up_data_rsp message from the specified reader or buffer, length delimited.
  47780. * @function decodeDelimited
  47781. * @memberof game.speed_up_data_rsp
  47782. * @static
  47783. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  47784. * @returns {game.speed_up_data_rsp} speed_up_data_rsp
  47785. * @throws {Error} If the payload is not a reader or valid buffer
  47786. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  47787. */
  47788. speed_up_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  47789. if (!(reader instanceof $Reader))
  47790. reader = new $Reader(reader);
  47791. return this.decode(reader, reader.uint32());
  47792. };
  47793. /**
  47794. * Verifies a speed_up_data_rsp message.
  47795. * @function verify
  47796. * @memberof game.speed_up_data_rsp
  47797. * @static
  47798. * @param {Object.<string,*>} message Plain object to verify
  47799. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  47800. */
  47801. speed_up_data_rsp.verify = function verify(message) {
  47802. if (typeof message !== "object" || message === null)
  47803. return "object expected";
  47804. if (message.errno != null && message.hasOwnProperty("errno"))
  47805. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  47806. return "errno: integer|Long expected";
  47807. if (message.time != null && message.hasOwnProperty("time"))
  47808. if (!$util.isInteger(message.time) && !(message.time && $util.isInteger(message.time.low) && $util.isInteger(message.time.high)))
  47809. return "time: integer|Long expected";
  47810. return null;
  47811. };
  47812. /**
  47813. * Creates a speed_up_data_rsp message from a plain object. Also converts values to their respective internal types.
  47814. * @function fromObject
  47815. * @memberof game.speed_up_data_rsp
  47816. * @static
  47817. * @param {Object.<string,*>} object Plain object
  47818. * @returns {game.speed_up_data_rsp} speed_up_data_rsp
  47819. */
  47820. speed_up_data_rsp.fromObject = function fromObject(object) {
  47821. if (object instanceof $root.game.speed_up_data_rsp)
  47822. return object;
  47823. let message = new $root.game.speed_up_data_rsp();
  47824. if (object.errno != null)
  47825. if ($util.Long)
  47826. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  47827. else if (typeof object.errno === "string")
  47828. message.errno = parseInt(object.errno, 10);
  47829. else if (typeof object.errno === "number")
  47830. message.errno = object.errno;
  47831. else if (typeof object.errno === "object")
  47832. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  47833. if (object.time != null)
  47834. if ($util.Long)
  47835. (message.time = $util.Long.fromValue(object.time)).unsigned = false;
  47836. else if (typeof object.time === "string")
  47837. message.time = parseInt(object.time, 10);
  47838. else if (typeof object.time === "number")
  47839. message.time = object.time;
  47840. else if (typeof object.time === "object")
  47841. message.time = new $util.LongBits(object.time.low >>> 0, object.time.high >>> 0).toNumber();
  47842. return message;
  47843. };
  47844. /**
  47845. * Creates a plain object from a speed_up_data_rsp message. Also converts values to other types if specified.
  47846. * @function toObject
  47847. * @memberof game.speed_up_data_rsp
  47848. * @static
  47849. * @param {game.speed_up_data_rsp} message speed_up_data_rsp
  47850. * @param {$protobuf.IConversionOptions} [options] Conversion options
  47851. * @returns {Object.<string,*>} Plain object
  47852. */
  47853. speed_up_data_rsp.toObject = function toObject(message, options) {
  47854. if (!options)
  47855. options = {};
  47856. let object = {};
  47857. if (options.defaults) {
  47858. if ($util.Long) {
  47859. let long = new $util.Long(0, 0, false);
  47860. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  47861. } else
  47862. object.errno = options.longs === String ? "0" : 0;
  47863. if ($util.Long) {
  47864. let long = new $util.Long(0, 0, false);
  47865. object.time = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  47866. } else
  47867. object.time = options.longs === String ? "0" : 0;
  47868. }
  47869. if (message.errno != null && message.hasOwnProperty("errno"))
  47870. if (typeof message.errno === "number")
  47871. object.errno = options.longs === String ? String(message.errno) : message.errno;
  47872. else
  47873. 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;
  47874. if (message.time != null && message.hasOwnProperty("time"))
  47875. if (typeof message.time === "number")
  47876. object.time = options.longs === String ? String(message.time) : message.time;
  47877. else
  47878. 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;
  47879. return object;
  47880. };
  47881. /**
  47882. * Converts this speed_up_data_rsp to JSON.
  47883. * @function toJSON
  47884. * @memberof game.speed_up_data_rsp
  47885. * @instance
  47886. * @returns {Object.<string,*>} JSON object
  47887. */
  47888. speed_up_data_rsp.prototype.toJSON = function toJSON() {
  47889. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  47890. };
  47891. return speed_up_data_rsp;
  47892. })();
  47893. game.speed_up_buy = (function() {
  47894. /**
  47895. * Properties of a speed_up_buy.
  47896. * @memberof game
  47897. * @interface Ispeed_up_buy
  47898. * @property {boolean|null} [free] speed_up_buy free
  47899. */
  47900. /**
  47901. * Constructs a new speed_up_buy.
  47902. * @memberof game
  47903. * @classdesc Represents a speed_up_buy.
  47904. * @implements Ispeed_up_buy
  47905. * @constructor
  47906. * @param {game.Ispeed_up_buy=} [properties] Properties to set
  47907. */
  47908. function speed_up_buy(properties) {
  47909. if (properties)
  47910. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  47911. if (properties[keys[i]] != null)
  47912. this[keys[i]] = properties[keys[i]];
  47913. }
  47914. /**
  47915. * speed_up_buy free.
  47916. * @member {boolean} free
  47917. * @memberof game.speed_up_buy
  47918. * @instance
  47919. */
  47920. speed_up_buy.prototype.free = false;
  47921. /**
  47922. * Creates a new speed_up_buy instance using the specified properties.
  47923. * @function create
  47924. * @memberof game.speed_up_buy
  47925. * @static
  47926. * @param {game.Ispeed_up_buy=} [properties] Properties to set
  47927. * @returns {game.speed_up_buy} speed_up_buy instance
  47928. */
  47929. speed_up_buy.create = function create(properties) {
  47930. return new speed_up_buy(properties);
  47931. };
  47932. /**
  47933. * Encodes the specified speed_up_buy message. Does not implicitly {@link game.speed_up_buy.verify|verify} messages.
  47934. * @function encode
  47935. * @memberof game.speed_up_buy
  47936. * @static
  47937. * @param {game.Ispeed_up_buy} message speed_up_buy message or plain object to encode
  47938. * @param {$protobuf.Writer} [writer] Writer to encode to
  47939. * @returns {$protobuf.Writer} Writer
  47940. */
  47941. speed_up_buy.encode = function encode(message, writer) {
  47942. if (!writer)
  47943. writer = $Writer.create();
  47944. if (message.free != null && Object.hasOwnProperty.call(message, "free"))
  47945. writer.uint32(/* id 1, wireType 0 =*/8).bool(message.free);
  47946. return writer;
  47947. };
  47948. /**
  47949. * Encodes the specified speed_up_buy message, length delimited. Does not implicitly {@link game.speed_up_buy.verify|verify} messages.
  47950. * @function encodeDelimited
  47951. * @memberof game.speed_up_buy
  47952. * @static
  47953. * @param {game.Ispeed_up_buy} message speed_up_buy message or plain object to encode
  47954. * @param {$protobuf.Writer} [writer] Writer to encode to
  47955. * @returns {$protobuf.Writer} Writer
  47956. */
  47957. speed_up_buy.encodeDelimited = function encodeDelimited(message, writer) {
  47958. return this.encode(message, writer).ldelim();
  47959. };
  47960. /**
  47961. * Decodes a speed_up_buy message from the specified reader or buffer.
  47962. * @function decode
  47963. * @memberof game.speed_up_buy
  47964. * @static
  47965. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  47966. * @param {number} [length] Message length if known beforehand
  47967. * @returns {game.speed_up_buy} speed_up_buy
  47968. * @throws {Error} If the payload is not a reader or valid buffer
  47969. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  47970. */
  47971. speed_up_buy.decode = function decode(reader, length) {
  47972. if (!(reader instanceof $Reader))
  47973. reader = $Reader.create(reader);
  47974. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.speed_up_buy();
  47975. while (reader.pos < end) {
  47976. let tag = reader.uint32();
  47977. switch (tag >>> 3) {
  47978. case 1:
  47979. message.free = reader.bool();
  47980. break;
  47981. default:
  47982. reader.skipType(tag & 7);
  47983. break;
  47984. }
  47985. }
  47986. return message;
  47987. };
  47988. /**
  47989. * Decodes a speed_up_buy message from the specified reader or buffer, length delimited.
  47990. * @function decodeDelimited
  47991. * @memberof game.speed_up_buy
  47992. * @static
  47993. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  47994. * @returns {game.speed_up_buy} speed_up_buy
  47995. * @throws {Error} If the payload is not a reader or valid buffer
  47996. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  47997. */
  47998. speed_up_buy.decodeDelimited = function decodeDelimited(reader) {
  47999. if (!(reader instanceof $Reader))
  48000. reader = new $Reader(reader);
  48001. return this.decode(reader, reader.uint32());
  48002. };
  48003. /**
  48004. * Verifies a speed_up_buy message.
  48005. * @function verify
  48006. * @memberof game.speed_up_buy
  48007. * @static
  48008. * @param {Object.<string,*>} message Plain object to verify
  48009. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  48010. */
  48011. speed_up_buy.verify = function verify(message) {
  48012. if (typeof message !== "object" || message === null)
  48013. return "object expected";
  48014. if (message.free != null && message.hasOwnProperty("free"))
  48015. if (typeof message.free !== "boolean")
  48016. return "free: boolean expected";
  48017. return null;
  48018. };
  48019. /**
  48020. * Creates a speed_up_buy message from a plain object. Also converts values to their respective internal types.
  48021. * @function fromObject
  48022. * @memberof game.speed_up_buy
  48023. * @static
  48024. * @param {Object.<string,*>} object Plain object
  48025. * @returns {game.speed_up_buy} speed_up_buy
  48026. */
  48027. speed_up_buy.fromObject = function fromObject(object) {
  48028. if (object instanceof $root.game.speed_up_buy)
  48029. return object;
  48030. let message = new $root.game.speed_up_buy();
  48031. if (object.free != null)
  48032. message.free = Boolean(object.free);
  48033. return message;
  48034. };
  48035. /**
  48036. * Creates a plain object from a speed_up_buy message. Also converts values to other types if specified.
  48037. * @function toObject
  48038. * @memberof game.speed_up_buy
  48039. * @static
  48040. * @param {game.speed_up_buy} message speed_up_buy
  48041. * @param {$protobuf.IConversionOptions} [options] Conversion options
  48042. * @returns {Object.<string,*>} Plain object
  48043. */
  48044. speed_up_buy.toObject = function toObject(message, options) {
  48045. if (!options)
  48046. options = {};
  48047. let object = {};
  48048. if (options.defaults)
  48049. object.free = false;
  48050. if (message.free != null && message.hasOwnProperty("free"))
  48051. object.free = message.free;
  48052. return object;
  48053. };
  48054. /**
  48055. * Converts this speed_up_buy to JSON.
  48056. * @function toJSON
  48057. * @memberof game.speed_up_buy
  48058. * @instance
  48059. * @returns {Object.<string,*>} JSON object
  48060. */
  48061. speed_up_buy.prototype.toJSON = function toJSON() {
  48062. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  48063. };
  48064. return speed_up_buy;
  48065. })();
  48066. game.speed_up_buy_rsp = (function() {
  48067. /**
  48068. * Properties of a speed_up_buy_rsp.
  48069. * @memberof game
  48070. * @interface Ispeed_up_buy_rsp
  48071. * @property {number|Long|null} [errno] speed_up_buy_rsp errno
  48072. * @property {number|Long|null} [time] speed_up_buy_rsp time
  48073. */
  48074. /**
  48075. * Constructs a new speed_up_buy_rsp.
  48076. * @memberof game
  48077. * @classdesc Represents a speed_up_buy_rsp.
  48078. * @implements Ispeed_up_buy_rsp
  48079. * @constructor
  48080. * @param {game.Ispeed_up_buy_rsp=} [properties] Properties to set
  48081. */
  48082. function speed_up_buy_rsp(properties) {
  48083. if (properties)
  48084. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  48085. if (properties[keys[i]] != null)
  48086. this[keys[i]] = properties[keys[i]];
  48087. }
  48088. /**
  48089. * speed_up_buy_rsp errno.
  48090. * @member {number|Long} errno
  48091. * @memberof game.speed_up_buy_rsp
  48092. * @instance
  48093. */
  48094. speed_up_buy_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  48095. /**
  48096. * speed_up_buy_rsp time.
  48097. * @member {number|Long} time
  48098. * @memberof game.speed_up_buy_rsp
  48099. * @instance
  48100. */
  48101. speed_up_buy_rsp.prototype.time = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  48102. /**
  48103. * Creates a new speed_up_buy_rsp instance using the specified properties.
  48104. * @function create
  48105. * @memberof game.speed_up_buy_rsp
  48106. * @static
  48107. * @param {game.Ispeed_up_buy_rsp=} [properties] Properties to set
  48108. * @returns {game.speed_up_buy_rsp} speed_up_buy_rsp instance
  48109. */
  48110. speed_up_buy_rsp.create = function create(properties) {
  48111. return new speed_up_buy_rsp(properties);
  48112. };
  48113. /**
  48114. * Encodes the specified speed_up_buy_rsp message. Does not implicitly {@link game.speed_up_buy_rsp.verify|verify} messages.
  48115. * @function encode
  48116. * @memberof game.speed_up_buy_rsp
  48117. * @static
  48118. * @param {game.Ispeed_up_buy_rsp} message speed_up_buy_rsp message or plain object to encode
  48119. * @param {$protobuf.Writer} [writer] Writer to encode to
  48120. * @returns {$protobuf.Writer} Writer
  48121. */
  48122. speed_up_buy_rsp.encode = function encode(message, writer) {
  48123. if (!writer)
  48124. writer = $Writer.create();
  48125. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  48126. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  48127. if (message.time != null && Object.hasOwnProperty.call(message, "time"))
  48128. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.time);
  48129. return writer;
  48130. };
  48131. /**
  48132. * Encodes the specified speed_up_buy_rsp message, length delimited. Does not implicitly {@link game.speed_up_buy_rsp.verify|verify} messages.
  48133. * @function encodeDelimited
  48134. * @memberof game.speed_up_buy_rsp
  48135. * @static
  48136. * @param {game.Ispeed_up_buy_rsp} message speed_up_buy_rsp message or plain object to encode
  48137. * @param {$protobuf.Writer} [writer] Writer to encode to
  48138. * @returns {$protobuf.Writer} Writer
  48139. */
  48140. speed_up_buy_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  48141. return this.encode(message, writer).ldelim();
  48142. };
  48143. /**
  48144. * Decodes a speed_up_buy_rsp message from the specified reader or buffer.
  48145. * @function decode
  48146. * @memberof game.speed_up_buy_rsp
  48147. * @static
  48148. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  48149. * @param {number} [length] Message length if known beforehand
  48150. * @returns {game.speed_up_buy_rsp} speed_up_buy_rsp
  48151. * @throws {Error} If the payload is not a reader or valid buffer
  48152. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  48153. */
  48154. speed_up_buy_rsp.decode = function decode(reader, length) {
  48155. if (!(reader instanceof $Reader))
  48156. reader = $Reader.create(reader);
  48157. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.speed_up_buy_rsp();
  48158. while (reader.pos < end) {
  48159. let tag = reader.uint32();
  48160. switch (tag >>> 3) {
  48161. case 1:
  48162. message.errno = reader.int64();
  48163. break;
  48164. case 2:
  48165. message.time = reader.int64();
  48166. break;
  48167. default:
  48168. reader.skipType(tag & 7);
  48169. break;
  48170. }
  48171. }
  48172. return message;
  48173. };
  48174. /**
  48175. * Decodes a speed_up_buy_rsp message from the specified reader or buffer, length delimited.
  48176. * @function decodeDelimited
  48177. * @memberof game.speed_up_buy_rsp
  48178. * @static
  48179. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  48180. * @returns {game.speed_up_buy_rsp} speed_up_buy_rsp
  48181. * @throws {Error} If the payload is not a reader or valid buffer
  48182. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  48183. */
  48184. speed_up_buy_rsp.decodeDelimited = function decodeDelimited(reader) {
  48185. if (!(reader instanceof $Reader))
  48186. reader = new $Reader(reader);
  48187. return this.decode(reader, reader.uint32());
  48188. };
  48189. /**
  48190. * Verifies a speed_up_buy_rsp message.
  48191. * @function verify
  48192. * @memberof game.speed_up_buy_rsp
  48193. * @static
  48194. * @param {Object.<string,*>} message Plain object to verify
  48195. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  48196. */
  48197. speed_up_buy_rsp.verify = function verify(message) {
  48198. if (typeof message !== "object" || message === null)
  48199. return "object expected";
  48200. if (message.errno != null && message.hasOwnProperty("errno"))
  48201. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  48202. return "errno: integer|Long expected";
  48203. if (message.time != null && message.hasOwnProperty("time"))
  48204. if (!$util.isInteger(message.time) && !(message.time && $util.isInteger(message.time.low) && $util.isInteger(message.time.high)))
  48205. return "time: integer|Long expected";
  48206. return null;
  48207. };
  48208. /**
  48209. * Creates a speed_up_buy_rsp message from a plain object. Also converts values to their respective internal types.
  48210. * @function fromObject
  48211. * @memberof game.speed_up_buy_rsp
  48212. * @static
  48213. * @param {Object.<string,*>} object Plain object
  48214. * @returns {game.speed_up_buy_rsp} speed_up_buy_rsp
  48215. */
  48216. speed_up_buy_rsp.fromObject = function fromObject(object) {
  48217. if (object instanceof $root.game.speed_up_buy_rsp)
  48218. return object;
  48219. let message = new $root.game.speed_up_buy_rsp();
  48220. if (object.errno != null)
  48221. if ($util.Long)
  48222. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  48223. else if (typeof object.errno === "string")
  48224. message.errno = parseInt(object.errno, 10);
  48225. else if (typeof object.errno === "number")
  48226. message.errno = object.errno;
  48227. else if (typeof object.errno === "object")
  48228. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  48229. if (object.time != null)
  48230. if ($util.Long)
  48231. (message.time = $util.Long.fromValue(object.time)).unsigned = false;
  48232. else if (typeof object.time === "string")
  48233. message.time = parseInt(object.time, 10);
  48234. else if (typeof object.time === "number")
  48235. message.time = object.time;
  48236. else if (typeof object.time === "object")
  48237. message.time = new $util.LongBits(object.time.low >>> 0, object.time.high >>> 0).toNumber();
  48238. return message;
  48239. };
  48240. /**
  48241. * Creates a plain object from a speed_up_buy_rsp message. Also converts values to other types if specified.
  48242. * @function toObject
  48243. * @memberof game.speed_up_buy_rsp
  48244. * @static
  48245. * @param {game.speed_up_buy_rsp} message speed_up_buy_rsp
  48246. * @param {$protobuf.IConversionOptions} [options] Conversion options
  48247. * @returns {Object.<string,*>} Plain object
  48248. */
  48249. speed_up_buy_rsp.toObject = function toObject(message, options) {
  48250. if (!options)
  48251. options = {};
  48252. let object = {};
  48253. if (options.defaults) {
  48254. if ($util.Long) {
  48255. let long = new $util.Long(0, 0, false);
  48256. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  48257. } else
  48258. object.errno = options.longs === String ? "0" : 0;
  48259. if ($util.Long) {
  48260. let long = new $util.Long(0, 0, false);
  48261. object.time = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  48262. } else
  48263. object.time = options.longs === String ? "0" : 0;
  48264. }
  48265. if (message.errno != null && message.hasOwnProperty("errno"))
  48266. if (typeof message.errno === "number")
  48267. object.errno = options.longs === String ? String(message.errno) : message.errno;
  48268. else
  48269. 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;
  48270. if (message.time != null && message.hasOwnProperty("time"))
  48271. if (typeof message.time === "number")
  48272. object.time = options.longs === String ? String(message.time) : message.time;
  48273. else
  48274. 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;
  48275. return object;
  48276. };
  48277. /**
  48278. * Converts this speed_up_buy_rsp to JSON.
  48279. * @function toJSON
  48280. * @memberof game.speed_up_buy_rsp
  48281. * @instance
  48282. * @returns {Object.<string,*>} JSON object
  48283. */
  48284. speed_up_buy_rsp.prototype.toJSON = function toJSON() {
  48285. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  48286. };
  48287. return speed_up_buy_rsp;
  48288. })();
  48289. game.city_skill_upgrade = (function() {
  48290. /**
  48291. * Properties of a city_skill_upgrade.
  48292. * @memberof game
  48293. * @interface Icity_skill_upgrade
  48294. * @property {number|Long|null} [id] city_skill_upgrade id
  48295. */
  48296. /**
  48297. * Constructs a new city_skill_upgrade.
  48298. * @memberof game
  48299. * @classdesc Represents a city_skill_upgrade.
  48300. * @implements Icity_skill_upgrade
  48301. * @constructor
  48302. * @param {game.Icity_skill_upgrade=} [properties] Properties to set
  48303. */
  48304. function city_skill_upgrade(properties) {
  48305. if (properties)
  48306. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  48307. if (properties[keys[i]] != null)
  48308. this[keys[i]] = properties[keys[i]];
  48309. }
  48310. /**
  48311. * city_skill_upgrade id.
  48312. * @member {number|Long} id
  48313. * @memberof game.city_skill_upgrade
  48314. * @instance
  48315. */
  48316. city_skill_upgrade.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  48317. /**
  48318. * Creates a new city_skill_upgrade instance using the specified properties.
  48319. * @function create
  48320. * @memberof game.city_skill_upgrade
  48321. * @static
  48322. * @param {game.Icity_skill_upgrade=} [properties] Properties to set
  48323. * @returns {game.city_skill_upgrade} city_skill_upgrade instance
  48324. */
  48325. city_skill_upgrade.create = function create(properties) {
  48326. return new city_skill_upgrade(properties);
  48327. };
  48328. /**
  48329. * Encodes the specified city_skill_upgrade message. Does not implicitly {@link game.city_skill_upgrade.verify|verify} messages.
  48330. * @function encode
  48331. * @memberof game.city_skill_upgrade
  48332. * @static
  48333. * @param {game.Icity_skill_upgrade} message city_skill_upgrade message or plain object to encode
  48334. * @param {$protobuf.Writer} [writer] Writer to encode to
  48335. * @returns {$protobuf.Writer} Writer
  48336. */
  48337. city_skill_upgrade.encode = function encode(message, writer) {
  48338. if (!writer)
  48339. writer = $Writer.create();
  48340. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  48341. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  48342. return writer;
  48343. };
  48344. /**
  48345. * Encodes the specified city_skill_upgrade message, length delimited. Does not implicitly {@link game.city_skill_upgrade.verify|verify} messages.
  48346. * @function encodeDelimited
  48347. * @memberof game.city_skill_upgrade
  48348. * @static
  48349. * @param {game.Icity_skill_upgrade} message city_skill_upgrade message or plain object to encode
  48350. * @param {$protobuf.Writer} [writer] Writer to encode to
  48351. * @returns {$protobuf.Writer} Writer
  48352. */
  48353. city_skill_upgrade.encodeDelimited = function encodeDelimited(message, writer) {
  48354. return this.encode(message, writer).ldelim();
  48355. };
  48356. /**
  48357. * Decodes a city_skill_upgrade message from the specified reader or buffer.
  48358. * @function decode
  48359. * @memberof game.city_skill_upgrade
  48360. * @static
  48361. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  48362. * @param {number} [length] Message length if known beforehand
  48363. * @returns {game.city_skill_upgrade} city_skill_upgrade
  48364. * @throws {Error} If the payload is not a reader or valid buffer
  48365. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  48366. */
  48367. city_skill_upgrade.decode = function decode(reader, length) {
  48368. if (!(reader instanceof $Reader))
  48369. reader = $Reader.create(reader);
  48370. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.city_skill_upgrade();
  48371. while (reader.pos < end) {
  48372. let tag = reader.uint32();
  48373. switch (tag >>> 3) {
  48374. case 1:
  48375. message.id = reader.int64();
  48376. break;
  48377. default:
  48378. reader.skipType(tag & 7);
  48379. break;
  48380. }
  48381. }
  48382. return message;
  48383. };
  48384. /**
  48385. * Decodes a city_skill_upgrade message from the specified reader or buffer, length delimited.
  48386. * @function decodeDelimited
  48387. * @memberof game.city_skill_upgrade
  48388. * @static
  48389. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  48390. * @returns {game.city_skill_upgrade} city_skill_upgrade
  48391. * @throws {Error} If the payload is not a reader or valid buffer
  48392. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  48393. */
  48394. city_skill_upgrade.decodeDelimited = function decodeDelimited(reader) {
  48395. if (!(reader instanceof $Reader))
  48396. reader = new $Reader(reader);
  48397. return this.decode(reader, reader.uint32());
  48398. };
  48399. /**
  48400. * Verifies a city_skill_upgrade message.
  48401. * @function verify
  48402. * @memberof game.city_skill_upgrade
  48403. * @static
  48404. * @param {Object.<string,*>} message Plain object to verify
  48405. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  48406. */
  48407. city_skill_upgrade.verify = function verify(message) {
  48408. if (typeof message !== "object" || message === null)
  48409. return "object expected";
  48410. if (message.id != null && message.hasOwnProperty("id"))
  48411. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  48412. return "id: integer|Long expected";
  48413. return null;
  48414. };
  48415. /**
  48416. * Creates a city_skill_upgrade message from a plain object. Also converts values to their respective internal types.
  48417. * @function fromObject
  48418. * @memberof game.city_skill_upgrade
  48419. * @static
  48420. * @param {Object.<string,*>} object Plain object
  48421. * @returns {game.city_skill_upgrade} city_skill_upgrade
  48422. */
  48423. city_skill_upgrade.fromObject = function fromObject(object) {
  48424. if (object instanceof $root.game.city_skill_upgrade)
  48425. return object;
  48426. let message = new $root.game.city_skill_upgrade();
  48427. if (object.id != null)
  48428. if ($util.Long)
  48429. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  48430. else if (typeof object.id === "string")
  48431. message.id = parseInt(object.id, 10);
  48432. else if (typeof object.id === "number")
  48433. message.id = object.id;
  48434. else if (typeof object.id === "object")
  48435. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  48436. return message;
  48437. };
  48438. /**
  48439. * Creates a plain object from a city_skill_upgrade message. Also converts values to other types if specified.
  48440. * @function toObject
  48441. * @memberof game.city_skill_upgrade
  48442. * @static
  48443. * @param {game.city_skill_upgrade} message city_skill_upgrade
  48444. * @param {$protobuf.IConversionOptions} [options] Conversion options
  48445. * @returns {Object.<string,*>} Plain object
  48446. */
  48447. city_skill_upgrade.toObject = function toObject(message, options) {
  48448. if (!options)
  48449. options = {};
  48450. let object = {};
  48451. if (options.defaults)
  48452. if ($util.Long) {
  48453. let long = new $util.Long(0, 0, false);
  48454. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  48455. } else
  48456. object.id = options.longs === String ? "0" : 0;
  48457. if (message.id != null && message.hasOwnProperty("id"))
  48458. if (typeof message.id === "number")
  48459. object.id = options.longs === String ? String(message.id) : message.id;
  48460. else
  48461. 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;
  48462. return object;
  48463. };
  48464. /**
  48465. * Converts this city_skill_upgrade to JSON.
  48466. * @function toJSON
  48467. * @memberof game.city_skill_upgrade
  48468. * @instance
  48469. * @returns {Object.<string,*>} JSON object
  48470. */
  48471. city_skill_upgrade.prototype.toJSON = function toJSON() {
  48472. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  48473. };
  48474. return city_skill_upgrade;
  48475. })();
  48476. game.city_skill_upgrade_rsp = (function() {
  48477. /**
  48478. * Properties of a city_skill_upgrade_rsp.
  48479. * @memberof game
  48480. * @interface Icity_skill_upgrade_rsp
  48481. * @property {number|Long|null} [errno] city_skill_upgrade_rsp errno
  48482. * @property {number|Long|null} [id] city_skill_upgrade_rsp id
  48483. */
  48484. /**
  48485. * Constructs a new city_skill_upgrade_rsp.
  48486. * @memberof game
  48487. * @classdesc Represents a city_skill_upgrade_rsp.
  48488. * @implements Icity_skill_upgrade_rsp
  48489. * @constructor
  48490. * @param {game.Icity_skill_upgrade_rsp=} [properties] Properties to set
  48491. */
  48492. function city_skill_upgrade_rsp(properties) {
  48493. if (properties)
  48494. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  48495. if (properties[keys[i]] != null)
  48496. this[keys[i]] = properties[keys[i]];
  48497. }
  48498. /**
  48499. * city_skill_upgrade_rsp errno.
  48500. * @member {number|Long} errno
  48501. * @memberof game.city_skill_upgrade_rsp
  48502. * @instance
  48503. */
  48504. city_skill_upgrade_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  48505. /**
  48506. * city_skill_upgrade_rsp id.
  48507. * @member {number|Long} id
  48508. * @memberof game.city_skill_upgrade_rsp
  48509. * @instance
  48510. */
  48511. city_skill_upgrade_rsp.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  48512. /**
  48513. * Creates a new city_skill_upgrade_rsp instance using the specified properties.
  48514. * @function create
  48515. * @memberof game.city_skill_upgrade_rsp
  48516. * @static
  48517. * @param {game.Icity_skill_upgrade_rsp=} [properties] Properties to set
  48518. * @returns {game.city_skill_upgrade_rsp} city_skill_upgrade_rsp instance
  48519. */
  48520. city_skill_upgrade_rsp.create = function create(properties) {
  48521. return new city_skill_upgrade_rsp(properties);
  48522. };
  48523. /**
  48524. * Encodes the specified city_skill_upgrade_rsp message. Does not implicitly {@link game.city_skill_upgrade_rsp.verify|verify} messages.
  48525. * @function encode
  48526. * @memberof game.city_skill_upgrade_rsp
  48527. * @static
  48528. * @param {game.Icity_skill_upgrade_rsp} message city_skill_upgrade_rsp message or plain object to encode
  48529. * @param {$protobuf.Writer} [writer] Writer to encode to
  48530. * @returns {$protobuf.Writer} Writer
  48531. */
  48532. city_skill_upgrade_rsp.encode = function encode(message, writer) {
  48533. if (!writer)
  48534. writer = $Writer.create();
  48535. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  48536. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  48537. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  48538. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id);
  48539. return writer;
  48540. };
  48541. /**
  48542. * Encodes the specified city_skill_upgrade_rsp message, length delimited. Does not implicitly {@link game.city_skill_upgrade_rsp.verify|verify} messages.
  48543. * @function encodeDelimited
  48544. * @memberof game.city_skill_upgrade_rsp
  48545. * @static
  48546. * @param {game.Icity_skill_upgrade_rsp} message city_skill_upgrade_rsp message or plain object to encode
  48547. * @param {$protobuf.Writer} [writer] Writer to encode to
  48548. * @returns {$protobuf.Writer} Writer
  48549. */
  48550. city_skill_upgrade_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  48551. return this.encode(message, writer).ldelim();
  48552. };
  48553. /**
  48554. * Decodes a city_skill_upgrade_rsp message from the specified reader or buffer.
  48555. * @function decode
  48556. * @memberof game.city_skill_upgrade_rsp
  48557. * @static
  48558. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  48559. * @param {number} [length] Message length if known beforehand
  48560. * @returns {game.city_skill_upgrade_rsp} city_skill_upgrade_rsp
  48561. * @throws {Error} If the payload is not a reader or valid buffer
  48562. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  48563. */
  48564. city_skill_upgrade_rsp.decode = function decode(reader, length) {
  48565. if (!(reader instanceof $Reader))
  48566. reader = $Reader.create(reader);
  48567. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.city_skill_upgrade_rsp();
  48568. while (reader.pos < end) {
  48569. let tag = reader.uint32();
  48570. switch (tag >>> 3) {
  48571. case 1:
  48572. message.errno = reader.int64();
  48573. break;
  48574. case 2:
  48575. message.id = reader.int64();
  48576. break;
  48577. default:
  48578. reader.skipType(tag & 7);
  48579. break;
  48580. }
  48581. }
  48582. return message;
  48583. };
  48584. /**
  48585. * Decodes a city_skill_upgrade_rsp message from the specified reader or buffer, length delimited.
  48586. * @function decodeDelimited
  48587. * @memberof game.city_skill_upgrade_rsp
  48588. * @static
  48589. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  48590. * @returns {game.city_skill_upgrade_rsp} city_skill_upgrade_rsp
  48591. * @throws {Error} If the payload is not a reader or valid buffer
  48592. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  48593. */
  48594. city_skill_upgrade_rsp.decodeDelimited = function decodeDelimited(reader) {
  48595. if (!(reader instanceof $Reader))
  48596. reader = new $Reader(reader);
  48597. return this.decode(reader, reader.uint32());
  48598. };
  48599. /**
  48600. * Verifies a city_skill_upgrade_rsp message.
  48601. * @function verify
  48602. * @memberof game.city_skill_upgrade_rsp
  48603. * @static
  48604. * @param {Object.<string,*>} message Plain object to verify
  48605. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  48606. */
  48607. city_skill_upgrade_rsp.verify = function verify(message) {
  48608. if (typeof message !== "object" || message === null)
  48609. return "object expected";
  48610. if (message.errno != null && message.hasOwnProperty("errno"))
  48611. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  48612. return "errno: integer|Long expected";
  48613. if (message.id != null && message.hasOwnProperty("id"))
  48614. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  48615. return "id: integer|Long expected";
  48616. return null;
  48617. };
  48618. /**
  48619. * Creates a city_skill_upgrade_rsp message from a plain object. Also converts values to their respective internal types.
  48620. * @function fromObject
  48621. * @memberof game.city_skill_upgrade_rsp
  48622. * @static
  48623. * @param {Object.<string,*>} object Plain object
  48624. * @returns {game.city_skill_upgrade_rsp} city_skill_upgrade_rsp
  48625. */
  48626. city_skill_upgrade_rsp.fromObject = function fromObject(object) {
  48627. if (object instanceof $root.game.city_skill_upgrade_rsp)
  48628. return object;
  48629. let message = new $root.game.city_skill_upgrade_rsp();
  48630. if (object.errno != null)
  48631. if ($util.Long)
  48632. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  48633. else if (typeof object.errno === "string")
  48634. message.errno = parseInt(object.errno, 10);
  48635. else if (typeof object.errno === "number")
  48636. message.errno = object.errno;
  48637. else if (typeof object.errno === "object")
  48638. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  48639. if (object.id != null)
  48640. if ($util.Long)
  48641. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  48642. else if (typeof object.id === "string")
  48643. message.id = parseInt(object.id, 10);
  48644. else if (typeof object.id === "number")
  48645. message.id = object.id;
  48646. else if (typeof object.id === "object")
  48647. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  48648. return message;
  48649. };
  48650. /**
  48651. * Creates a plain object from a city_skill_upgrade_rsp message. Also converts values to other types if specified.
  48652. * @function toObject
  48653. * @memberof game.city_skill_upgrade_rsp
  48654. * @static
  48655. * @param {game.city_skill_upgrade_rsp} message city_skill_upgrade_rsp
  48656. * @param {$protobuf.IConversionOptions} [options] Conversion options
  48657. * @returns {Object.<string,*>} Plain object
  48658. */
  48659. city_skill_upgrade_rsp.toObject = function toObject(message, options) {
  48660. if (!options)
  48661. options = {};
  48662. let object = {};
  48663. if (options.defaults) {
  48664. if ($util.Long) {
  48665. let long = new $util.Long(0, 0, false);
  48666. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  48667. } else
  48668. object.errno = options.longs === String ? "0" : 0;
  48669. if ($util.Long) {
  48670. let long = new $util.Long(0, 0, false);
  48671. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  48672. } else
  48673. object.id = options.longs === String ? "0" : 0;
  48674. }
  48675. if (message.errno != null && message.hasOwnProperty("errno"))
  48676. if (typeof message.errno === "number")
  48677. object.errno = options.longs === String ? String(message.errno) : message.errno;
  48678. else
  48679. 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;
  48680. if (message.id != null && message.hasOwnProperty("id"))
  48681. if (typeof message.id === "number")
  48682. object.id = options.longs === String ? String(message.id) : message.id;
  48683. else
  48684. 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;
  48685. return object;
  48686. };
  48687. /**
  48688. * Converts this city_skill_upgrade_rsp to JSON.
  48689. * @function toJSON
  48690. * @memberof game.city_skill_upgrade_rsp
  48691. * @instance
  48692. * @returns {Object.<string,*>} JSON object
  48693. */
  48694. city_skill_upgrade_rsp.prototype.toJSON = function toJSON() {
  48695. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  48696. };
  48697. return city_skill_upgrade_rsp;
  48698. })();
  48699. game.city_skill_battle = (function() {
  48700. /**
  48701. * Properties of a city_skill_battle.
  48702. * @memberof game
  48703. * @interface Icity_skill_battle
  48704. * @property {number|Long|null} [id] city_skill_battle id
  48705. */
  48706. /**
  48707. * Constructs a new city_skill_battle.
  48708. * @memberof game
  48709. * @classdesc Represents a city_skill_battle.
  48710. * @implements Icity_skill_battle
  48711. * @constructor
  48712. * @param {game.Icity_skill_battle=} [properties] Properties to set
  48713. */
  48714. function city_skill_battle(properties) {
  48715. if (properties)
  48716. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  48717. if (properties[keys[i]] != null)
  48718. this[keys[i]] = properties[keys[i]];
  48719. }
  48720. /**
  48721. * city_skill_battle id.
  48722. * @member {number|Long} id
  48723. * @memberof game.city_skill_battle
  48724. * @instance
  48725. */
  48726. city_skill_battle.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  48727. /**
  48728. * Creates a new city_skill_battle instance using the specified properties.
  48729. * @function create
  48730. * @memberof game.city_skill_battle
  48731. * @static
  48732. * @param {game.Icity_skill_battle=} [properties] Properties to set
  48733. * @returns {game.city_skill_battle} city_skill_battle instance
  48734. */
  48735. city_skill_battle.create = function create(properties) {
  48736. return new city_skill_battle(properties);
  48737. };
  48738. /**
  48739. * Encodes the specified city_skill_battle message. Does not implicitly {@link game.city_skill_battle.verify|verify} messages.
  48740. * @function encode
  48741. * @memberof game.city_skill_battle
  48742. * @static
  48743. * @param {game.Icity_skill_battle} message city_skill_battle message or plain object to encode
  48744. * @param {$protobuf.Writer} [writer] Writer to encode to
  48745. * @returns {$protobuf.Writer} Writer
  48746. */
  48747. city_skill_battle.encode = function encode(message, writer) {
  48748. if (!writer)
  48749. writer = $Writer.create();
  48750. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  48751. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  48752. return writer;
  48753. };
  48754. /**
  48755. * Encodes the specified city_skill_battle message, length delimited. Does not implicitly {@link game.city_skill_battle.verify|verify} messages.
  48756. * @function encodeDelimited
  48757. * @memberof game.city_skill_battle
  48758. * @static
  48759. * @param {game.Icity_skill_battle} message city_skill_battle message or plain object to encode
  48760. * @param {$protobuf.Writer} [writer] Writer to encode to
  48761. * @returns {$protobuf.Writer} Writer
  48762. */
  48763. city_skill_battle.encodeDelimited = function encodeDelimited(message, writer) {
  48764. return this.encode(message, writer).ldelim();
  48765. };
  48766. /**
  48767. * Decodes a city_skill_battle message from the specified reader or buffer.
  48768. * @function decode
  48769. * @memberof game.city_skill_battle
  48770. * @static
  48771. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  48772. * @param {number} [length] Message length if known beforehand
  48773. * @returns {game.city_skill_battle} city_skill_battle
  48774. * @throws {Error} If the payload is not a reader or valid buffer
  48775. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  48776. */
  48777. city_skill_battle.decode = function decode(reader, length) {
  48778. if (!(reader instanceof $Reader))
  48779. reader = $Reader.create(reader);
  48780. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.city_skill_battle();
  48781. while (reader.pos < end) {
  48782. let tag = reader.uint32();
  48783. switch (tag >>> 3) {
  48784. case 1:
  48785. message.id = reader.int64();
  48786. break;
  48787. default:
  48788. reader.skipType(tag & 7);
  48789. break;
  48790. }
  48791. }
  48792. return message;
  48793. };
  48794. /**
  48795. * Decodes a city_skill_battle message from the specified reader or buffer, length delimited.
  48796. * @function decodeDelimited
  48797. * @memberof game.city_skill_battle
  48798. * @static
  48799. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  48800. * @returns {game.city_skill_battle} city_skill_battle
  48801. * @throws {Error} If the payload is not a reader or valid buffer
  48802. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  48803. */
  48804. city_skill_battle.decodeDelimited = function decodeDelimited(reader) {
  48805. if (!(reader instanceof $Reader))
  48806. reader = new $Reader(reader);
  48807. return this.decode(reader, reader.uint32());
  48808. };
  48809. /**
  48810. * Verifies a city_skill_battle message.
  48811. * @function verify
  48812. * @memberof game.city_skill_battle
  48813. * @static
  48814. * @param {Object.<string,*>} message Plain object to verify
  48815. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  48816. */
  48817. city_skill_battle.verify = function verify(message) {
  48818. if (typeof message !== "object" || message === null)
  48819. return "object expected";
  48820. if (message.id != null && message.hasOwnProperty("id"))
  48821. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  48822. return "id: integer|Long expected";
  48823. return null;
  48824. };
  48825. /**
  48826. * Creates a city_skill_battle message from a plain object. Also converts values to their respective internal types.
  48827. * @function fromObject
  48828. * @memberof game.city_skill_battle
  48829. * @static
  48830. * @param {Object.<string,*>} object Plain object
  48831. * @returns {game.city_skill_battle} city_skill_battle
  48832. */
  48833. city_skill_battle.fromObject = function fromObject(object) {
  48834. if (object instanceof $root.game.city_skill_battle)
  48835. return object;
  48836. let message = new $root.game.city_skill_battle();
  48837. if (object.id != null)
  48838. if ($util.Long)
  48839. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  48840. else if (typeof object.id === "string")
  48841. message.id = parseInt(object.id, 10);
  48842. else if (typeof object.id === "number")
  48843. message.id = object.id;
  48844. else if (typeof object.id === "object")
  48845. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  48846. return message;
  48847. };
  48848. /**
  48849. * Creates a plain object from a city_skill_battle message. Also converts values to other types if specified.
  48850. * @function toObject
  48851. * @memberof game.city_skill_battle
  48852. * @static
  48853. * @param {game.city_skill_battle} message city_skill_battle
  48854. * @param {$protobuf.IConversionOptions} [options] Conversion options
  48855. * @returns {Object.<string,*>} Plain object
  48856. */
  48857. city_skill_battle.toObject = function toObject(message, options) {
  48858. if (!options)
  48859. options = {};
  48860. let object = {};
  48861. if (options.defaults)
  48862. if ($util.Long) {
  48863. let long = new $util.Long(0, 0, false);
  48864. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  48865. } else
  48866. object.id = options.longs === String ? "0" : 0;
  48867. if (message.id != null && message.hasOwnProperty("id"))
  48868. if (typeof message.id === "number")
  48869. object.id = options.longs === String ? String(message.id) : message.id;
  48870. else
  48871. 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;
  48872. return object;
  48873. };
  48874. /**
  48875. * Converts this city_skill_battle to JSON.
  48876. * @function toJSON
  48877. * @memberof game.city_skill_battle
  48878. * @instance
  48879. * @returns {Object.<string,*>} JSON object
  48880. */
  48881. city_skill_battle.prototype.toJSON = function toJSON() {
  48882. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  48883. };
  48884. return city_skill_battle;
  48885. })();
  48886. game.city_skill_battle_rsp = (function() {
  48887. /**
  48888. * Properties of a city_skill_battle_rsp.
  48889. * @memberof game
  48890. * @interface Icity_skill_battle_rsp
  48891. * @property {number|Long|null} [errno] city_skill_battle_rsp errno
  48892. * @property {number|Long|null} [id] city_skill_battle_rsp id
  48893. */
  48894. /**
  48895. * Constructs a new city_skill_battle_rsp.
  48896. * @memberof game
  48897. * @classdesc Represents a city_skill_battle_rsp.
  48898. * @implements Icity_skill_battle_rsp
  48899. * @constructor
  48900. * @param {game.Icity_skill_battle_rsp=} [properties] Properties to set
  48901. */
  48902. function city_skill_battle_rsp(properties) {
  48903. if (properties)
  48904. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  48905. if (properties[keys[i]] != null)
  48906. this[keys[i]] = properties[keys[i]];
  48907. }
  48908. /**
  48909. * city_skill_battle_rsp errno.
  48910. * @member {number|Long} errno
  48911. * @memberof game.city_skill_battle_rsp
  48912. * @instance
  48913. */
  48914. city_skill_battle_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  48915. /**
  48916. * city_skill_battle_rsp id.
  48917. * @member {number|Long} id
  48918. * @memberof game.city_skill_battle_rsp
  48919. * @instance
  48920. */
  48921. city_skill_battle_rsp.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  48922. /**
  48923. * Creates a new city_skill_battle_rsp instance using the specified properties.
  48924. * @function create
  48925. * @memberof game.city_skill_battle_rsp
  48926. * @static
  48927. * @param {game.Icity_skill_battle_rsp=} [properties] Properties to set
  48928. * @returns {game.city_skill_battle_rsp} city_skill_battle_rsp instance
  48929. */
  48930. city_skill_battle_rsp.create = function create(properties) {
  48931. return new city_skill_battle_rsp(properties);
  48932. };
  48933. /**
  48934. * Encodes the specified city_skill_battle_rsp message. Does not implicitly {@link game.city_skill_battle_rsp.verify|verify} messages.
  48935. * @function encode
  48936. * @memberof game.city_skill_battle_rsp
  48937. * @static
  48938. * @param {game.Icity_skill_battle_rsp} message city_skill_battle_rsp message or plain object to encode
  48939. * @param {$protobuf.Writer} [writer] Writer to encode to
  48940. * @returns {$protobuf.Writer} Writer
  48941. */
  48942. city_skill_battle_rsp.encode = function encode(message, writer) {
  48943. if (!writer)
  48944. writer = $Writer.create();
  48945. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  48946. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  48947. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  48948. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id);
  48949. return writer;
  48950. };
  48951. /**
  48952. * Encodes the specified city_skill_battle_rsp message, length delimited. Does not implicitly {@link game.city_skill_battle_rsp.verify|verify} messages.
  48953. * @function encodeDelimited
  48954. * @memberof game.city_skill_battle_rsp
  48955. * @static
  48956. * @param {game.Icity_skill_battle_rsp} message city_skill_battle_rsp message or plain object to encode
  48957. * @param {$protobuf.Writer} [writer] Writer to encode to
  48958. * @returns {$protobuf.Writer} Writer
  48959. */
  48960. city_skill_battle_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  48961. return this.encode(message, writer).ldelim();
  48962. };
  48963. /**
  48964. * Decodes a city_skill_battle_rsp message from the specified reader or buffer.
  48965. * @function decode
  48966. * @memberof game.city_skill_battle_rsp
  48967. * @static
  48968. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  48969. * @param {number} [length] Message length if known beforehand
  48970. * @returns {game.city_skill_battle_rsp} city_skill_battle_rsp
  48971. * @throws {Error} If the payload is not a reader or valid buffer
  48972. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  48973. */
  48974. city_skill_battle_rsp.decode = function decode(reader, length) {
  48975. if (!(reader instanceof $Reader))
  48976. reader = $Reader.create(reader);
  48977. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.city_skill_battle_rsp();
  48978. while (reader.pos < end) {
  48979. let tag = reader.uint32();
  48980. switch (tag >>> 3) {
  48981. case 1:
  48982. message.errno = reader.int64();
  48983. break;
  48984. case 2:
  48985. message.id = reader.int64();
  48986. break;
  48987. default:
  48988. reader.skipType(tag & 7);
  48989. break;
  48990. }
  48991. }
  48992. return message;
  48993. };
  48994. /**
  48995. * Decodes a city_skill_battle_rsp message from the specified reader or buffer, length delimited.
  48996. * @function decodeDelimited
  48997. * @memberof game.city_skill_battle_rsp
  48998. * @static
  48999. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  49000. * @returns {game.city_skill_battle_rsp} city_skill_battle_rsp
  49001. * @throws {Error} If the payload is not a reader or valid buffer
  49002. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  49003. */
  49004. city_skill_battle_rsp.decodeDelimited = function decodeDelimited(reader) {
  49005. if (!(reader instanceof $Reader))
  49006. reader = new $Reader(reader);
  49007. return this.decode(reader, reader.uint32());
  49008. };
  49009. /**
  49010. * Verifies a city_skill_battle_rsp message.
  49011. * @function verify
  49012. * @memberof game.city_skill_battle_rsp
  49013. * @static
  49014. * @param {Object.<string,*>} message Plain object to verify
  49015. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  49016. */
  49017. city_skill_battle_rsp.verify = function verify(message) {
  49018. if (typeof message !== "object" || message === null)
  49019. return "object expected";
  49020. if (message.errno != null && message.hasOwnProperty("errno"))
  49021. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  49022. return "errno: integer|Long expected";
  49023. if (message.id != null && message.hasOwnProperty("id"))
  49024. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  49025. return "id: integer|Long expected";
  49026. return null;
  49027. };
  49028. /**
  49029. * Creates a city_skill_battle_rsp message from a plain object. Also converts values to their respective internal types.
  49030. * @function fromObject
  49031. * @memberof game.city_skill_battle_rsp
  49032. * @static
  49033. * @param {Object.<string,*>} object Plain object
  49034. * @returns {game.city_skill_battle_rsp} city_skill_battle_rsp
  49035. */
  49036. city_skill_battle_rsp.fromObject = function fromObject(object) {
  49037. if (object instanceof $root.game.city_skill_battle_rsp)
  49038. return object;
  49039. let message = new $root.game.city_skill_battle_rsp();
  49040. if (object.errno != null)
  49041. if ($util.Long)
  49042. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  49043. else if (typeof object.errno === "string")
  49044. message.errno = parseInt(object.errno, 10);
  49045. else if (typeof object.errno === "number")
  49046. message.errno = object.errno;
  49047. else if (typeof object.errno === "object")
  49048. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  49049. if (object.id != null)
  49050. if ($util.Long)
  49051. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  49052. else if (typeof object.id === "string")
  49053. message.id = parseInt(object.id, 10);
  49054. else if (typeof object.id === "number")
  49055. message.id = object.id;
  49056. else if (typeof object.id === "object")
  49057. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  49058. return message;
  49059. };
  49060. /**
  49061. * Creates a plain object from a city_skill_battle_rsp message. Also converts values to other types if specified.
  49062. * @function toObject
  49063. * @memberof game.city_skill_battle_rsp
  49064. * @static
  49065. * @param {game.city_skill_battle_rsp} message city_skill_battle_rsp
  49066. * @param {$protobuf.IConversionOptions} [options] Conversion options
  49067. * @returns {Object.<string,*>} Plain object
  49068. */
  49069. city_skill_battle_rsp.toObject = function toObject(message, options) {
  49070. if (!options)
  49071. options = {};
  49072. let object = {};
  49073. if (options.defaults) {
  49074. if ($util.Long) {
  49075. let long = new $util.Long(0, 0, false);
  49076. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  49077. } else
  49078. object.errno = options.longs === String ? "0" : 0;
  49079. if ($util.Long) {
  49080. let long = new $util.Long(0, 0, false);
  49081. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  49082. } else
  49083. object.id = options.longs === String ? "0" : 0;
  49084. }
  49085. if (message.errno != null && message.hasOwnProperty("errno"))
  49086. if (typeof message.errno === "number")
  49087. object.errno = options.longs === String ? String(message.errno) : message.errno;
  49088. else
  49089. 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;
  49090. if (message.id != null && message.hasOwnProperty("id"))
  49091. if (typeof message.id === "number")
  49092. object.id = options.longs === String ? String(message.id) : message.id;
  49093. else
  49094. 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;
  49095. return object;
  49096. };
  49097. /**
  49098. * Converts this city_skill_battle_rsp to JSON.
  49099. * @function toJSON
  49100. * @memberof game.city_skill_battle_rsp
  49101. * @instance
  49102. * @returns {Object.<string,*>} JSON object
  49103. */
  49104. city_skill_battle_rsp.prototype.toJSON = function toJSON() {
  49105. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  49106. };
  49107. return city_skill_battle_rsp;
  49108. })();
  49109. game.building_explore = (function() {
  49110. /**
  49111. * Properties of a building_explore.
  49112. * @memberof game
  49113. * @interface Ibuilding_explore
  49114. * @property {number|Long|null} [id] building_explore id
  49115. */
  49116. /**
  49117. * Constructs a new building_explore.
  49118. * @memberof game
  49119. * @classdesc Represents a building_explore.
  49120. * @implements Ibuilding_explore
  49121. * @constructor
  49122. * @param {game.Ibuilding_explore=} [properties] Properties to set
  49123. */
  49124. function building_explore(properties) {
  49125. if (properties)
  49126. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  49127. if (properties[keys[i]] != null)
  49128. this[keys[i]] = properties[keys[i]];
  49129. }
  49130. /**
  49131. * building_explore id.
  49132. * @member {number|Long} id
  49133. * @memberof game.building_explore
  49134. * @instance
  49135. */
  49136. building_explore.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  49137. /**
  49138. * Creates a new building_explore instance using the specified properties.
  49139. * @function create
  49140. * @memberof game.building_explore
  49141. * @static
  49142. * @param {game.Ibuilding_explore=} [properties] Properties to set
  49143. * @returns {game.building_explore} building_explore instance
  49144. */
  49145. building_explore.create = function create(properties) {
  49146. return new building_explore(properties);
  49147. };
  49148. /**
  49149. * Encodes the specified building_explore message. Does not implicitly {@link game.building_explore.verify|verify} messages.
  49150. * @function encode
  49151. * @memberof game.building_explore
  49152. * @static
  49153. * @param {game.Ibuilding_explore} message building_explore message or plain object to encode
  49154. * @param {$protobuf.Writer} [writer] Writer to encode to
  49155. * @returns {$protobuf.Writer} Writer
  49156. */
  49157. building_explore.encode = function encode(message, writer) {
  49158. if (!writer)
  49159. writer = $Writer.create();
  49160. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  49161. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  49162. return writer;
  49163. };
  49164. /**
  49165. * Encodes the specified building_explore message, length delimited. Does not implicitly {@link game.building_explore.verify|verify} messages.
  49166. * @function encodeDelimited
  49167. * @memberof game.building_explore
  49168. * @static
  49169. * @param {game.Ibuilding_explore} message building_explore message or plain object to encode
  49170. * @param {$protobuf.Writer} [writer] Writer to encode to
  49171. * @returns {$protobuf.Writer} Writer
  49172. */
  49173. building_explore.encodeDelimited = function encodeDelimited(message, writer) {
  49174. return this.encode(message, writer).ldelim();
  49175. };
  49176. /**
  49177. * Decodes a building_explore message from the specified reader or buffer.
  49178. * @function decode
  49179. * @memberof game.building_explore
  49180. * @static
  49181. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  49182. * @param {number} [length] Message length if known beforehand
  49183. * @returns {game.building_explore} building_explore
  49184. * @throws {Error} If the payload is not a reader or valid buffer
  49185. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  49186. */
  49187. building_explore.decode = function decode(reader, length) {
  49188. if (!(reader instanceof $Reader))
  49189. reader = $Reader.create(reader);
  49190. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.building_explore();
  49191. while (reader.pos < end) {
  49192. let tag = reader.uint32();
  49193. switch (tag >>> 3) {
  49194. case 1:
  49195. message.id = reader.int64();
  49196. break;
  49197. default:
  49198. reader.skipType(tag & 7);
  49199. break;
  49200. }
  49201. }
  49202. return message;
  49203. };
  49204. /**
  49205. * Decodes a building_explore message from the specified reader or buffer, length delimited.
  49206. * @function decodeDelimited
  49207. * @memberof game.building_explore
  49208. * @static
  49209. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  49210. * @returns {game.building_explore} building_explore
  49211. * @throws {Error} If the payload is not a reader or valid buffer
  49212. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  49213. */
  49214. building_explore.decodeDelimited = function decodeDelimited(reader) {
  49215. if (!(reader instanceof $Reader))
  49216. reader = new $Reader(reader);
  49217. return this.decode(reader, reader.uint32());
  49218. };
  49219. /**
  49220. * Verifies a building_explore message.
  49221. * @function verify
  49222. * @memberof game.building_explore
  49223. * @static
  49224. * @param {Object.<string,*>} message Plain object to verify
  49225. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  49226. */
  49227. building_explore.verify = function verify(message) {
  49228. if (typeof message !== "object" || message === null)
  49229. return "object expected";
  49230. if (message.id != null && message.hasOwnProperty("id"))
  49231. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  49232. return "id: integer|Long expected";
  49233. return null;
  49234. };
  49235. /**
  49236. * Creates a building_explore message from a plain object. Also converts values to their respective internal types.
  49237. * @function fromObject
  49238. * @memberof game.building_explore
  49239. * @static
  49240. * @param {Object.<string,*>} object Plain object
  49241. * @returns {game.building_explore} building_explore
  49242. */
  49243. building_explore.fromObject = function fromObject(object) {
  49244. if (object instanceof $root.game.building_explore)
  49245. return object;
  49246. let message = new $root.game.building_explore();
  49247. if (object.id != null)
  49248. if ($util.Long)
  49249. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  49250. else if (typeof object.id === "string")
  49251. message.id = parseInt(object.id, 10);
  49252. else if (typeof object.id === "number")
  49253. message.id = object.id;
  49254. else if (typeof object.id === "object")
  49255. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  49256. return message;
  49257. };
  49258. /**
  49259. * Creates a plain object from a building_explore message. Also converts values to other types if specified.
  49260. * @function toObject
  49261. * @memberof game.building_explore
  49262. * @static
  49263. * @param {game.building_explore} message building_explore
  49264. * @param {$protobuf.IConversionOptions} [options] Conversion options
  49265. * @returns {Object.<string,*>} Plain object
  49266. */
  49267. building_explore.toObject = function toObject(message, options) {
  49268. if (!options)
  49269. options = {};
  49270. let object = {};
  49271. if (options.defaults)
  49272. if ($util.Long) {
  49273. let long = new $util.Long(0, 0, false);
  49274. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  49275. } else
  49276. object.id = options.longs === String ? "0" : 0;
  49277. if (message.id != null && message.hasOwnProperty("id"))
  49278. if (typeof message.id === "number")
  49279. object.id = options.longs === String ? String(message.id) : message.id;
  49280. else
  49281. 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;
  49282. return object;
  49283. };
  49284. /**
  49285. * Converts this building_explore to JSON.
  49286. * @function toJSON
  49287. * @memberof game.building_explore
  49288. * @instance
  49289. * @returns {Object.<string,*>} JSON object
  49290. */
  49291. building_explore.prototype.toJSON = function toJSON() {
  49292. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  49293. };
  49294. return building_explore;
  49295. })();
  49296. game.building_explore_rsp = (function() {
  49297. /**
  49298. * Properties of a building_explore_rsp.
  49299. * @memberof game
  49300. * @interface Ibuilding_explore_rsp
  49301. * @property {number|Long|null} [errno] building_explore_rsp errno
  49302. * @property {game.Ibuilding|null} [data] building_explore_rsp data
  49303. */
  49304. /**
  49305. * Constructs a new building_explore_rsp.
  49306. * @memberof game
  49307. * @classdesc Represents a building_explore_rsp.
  49308. * @implements Ibuilding_explore_rsp
  49309. * @constructor
  49310. * @param {game.Ibuilding_explore_rsp=} [properties] Properties to set
  49311. */
  49312. function building_explore_rsp(properties) {
  49313. if (properties)
  49314. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  49315. if (properties[keys[i]] != null)
  49316. this[keys[i]] = properties[keys[i]];
  49317. }
  49318. /**
  49319. * building_explore_rsp errno.
  49320. * @member {number|Long} errno
  49321. * @memberof game.building_explore_rsp
  49322. * @instance
  49323. */
  49324. building_explore_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  49325. /**
  49326. * building_explore_rsp data.
  49327. * @member {game.Ibuilding|null|undefined} data
  49328. * @memberof game.building_explore_rsp
  49329. * @instance
  49330. */
  49331. building_explore_rsp.prototype.data = null;
  49332. /**
  49333. * Creates a new building_explore_rsp instance using the specified properties.
  49334. * @function create
  49335. * @memberof game.building_explore_rsp
  49336. * @static
  49337. * @param {game.Ibuilding_explore_rsp=} [properties] Properties to set
  49338. * @returns {game.building_explore_rsp} building_explore_rsp instance
  49339. */
  49340. building_explore_rsp.create = function create(properties) {
  49341. return new building_explore_rsp(properties);
  49342. };
  49343. /**
  49344. * Encodes the specified building_explore_rsp message. Does not implicitly {@link game.building_explore_rsp.verify|verify} messages.
  49345. * @function encode
  49346. * @memberof game.building_explore_rsp
  49347. * @static
  49348. * @param {game.Ibuilding_explore_rsp} message building_explore_rsp message or plain object to encode
  49349. * @param {$protobuf.Writer} [writer] Writer to encode to
  49350. * @returns {$protobuf.Writer} Writer
  49351. */
  49352. building_explore_rsp.encode = function encode(message, writer) {
  49353. if (!writer)
  49354. writer = $Writer.create();
  49355. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  49356. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  49357. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  49358. $root.game.building.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  49359. return writer;
  49360. };
  49361. /**
  49362. * Encodes the specified building_explore_rsp message, length delimited. Does not implicitly {@link game.building_explore_rsp.verify|verify} messages.
  49363. * @function encodeDelimited
  49364. * @memberof game.building_explore_rsp
  49365. * @static
  49366. * @param {game.Ibuilding_explore_rsp} message building_explore_rsp message or plain object to encode
  49367. * @param {$protobuf.Writer} [writer] Writer to encode to
  49368. * @returns {$protobuf.Writer} Writer
  49369. */
  49370. building_explore_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  49371. return this.encode(message, writer).ldelim();
  49372. };
  49373. /**
  49374. * Decodes a building_explore_rsp message from the specified reader or buffer.
  49375. * @function decode
  49376. * @memberof game.building_explore_rsp
  49377. * @static
  49378. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  49379. * @param {number} [length] Message length if known beforehand
  49380. * @returns {game.building_explore_rsp} building_explore_rsp
  49381. * @throws {Error} If the payload is not a reader or valid buffer
  49382. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  49383. */
  49384. building_explore_rsp.decode = function decode(reader, length) {
  49385. if (!(reader instanceof $Reader))
  49386. reader = $Reader.create(reader);
  49387. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.building_explore_rsp();
  49388. while (reader.pos < end) {
  49389. let tag = reader.uint32();
  49390. switch (tag >>> 3) {
  49391. case 1:
  49392. message.errno = reader.int64();
  49393. break;
  49394. case 2:
  49395. message.data = $root.game.building.decode(reader, reader.uint32());
  49396. break;
  49397. default:
  49398. reader.skipType(tag & 7);
  49399. break;
  49400. }
  49401. }
  49402. return message;
  49403. };
  49404. /**
  49405. * Decodes a building_explore_rsp message from the specified reader or buffer, length delimited.
  49406. * @function decodeDelimited
  49407. * @memberof game.building_explore_rsp
  49408. * @static
  49409. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  49410. * @returns {game.building_explore_rsp} building_explore_rsp
  49411. * @throws {Error} If the payload is not a reader or valid buffer
  49412. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  49413. */
  49414. building_explore_rsp.decodeDelimited = function decodeDelimited(reader) {
  49415. if (!(reader instanceof $Reader))
  49416. reader = new $Reader(reader);
  49417. return this.decode(reader, reader.uint32());
  49418. };
  49419. /**
  49420. * Verifies a building_explore_rsp message.
  49421. * @function verify
  49422. * @memberof game.building_explore_rsp
  49423. * @static
  49424. * @param {Object.<string,*>} message Plain object to verify
  49425. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  49426. */
  49427. building_explore_rsp.verify = function verify(message) {
  49428. if (typeof message !== "object" || message === null)
  49429. return "object expected";
  49430. if (message.errno != null && message.hasOwnProperty("errno"))
  49431. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  49432. return "errno: integer|Long expected";
  49433. if (message.data != null && message.hasOwnProperty("data")) {
  49434. let error = $root.game.building.verify(message.data);
  49435. if (error)
  49436. return "data." + error;
  49437. }
  49438. return null;
  49439. };
  49440. /**
  49441. * Creates a building_explore_rsp message from a plain object. Also converts values to their respective internal types.
  49442. * @function fromObject
  49443. * @memberof game.building_explore_rsp
  49444. * @static
  49445. * @param {Object.<string,*>} object Plain object
  49446. * @returns {game.building_explore_rsp} building_explore_rsp
  49447. */
  49448. building_explore_rsp.fromObject = function fromObject(object) {
  49449. if (object instanceof $root.game.building_explore_rsp)
  49450. return object;
  49451. let message = new $root.game.building_explore_rsp();
  49452. if (object.errno != null)
  49453. if ($util.Long)
  49454. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  49455. else if (typeof object.errno === "string")
  49456. message.errno = parseInt(object.errno, 10);
  49457. else if (typeof object.errno === "number")
  49458. message.errno = object.errno;
  49459. else if (typeof object.errno === "object")
  49460. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  49461. if (object.data != null) {
  49462. if (typeof object.data !== "object")
  49463. throw TypeError(".game.building_explore_rsp.data: object expected");
  49464. message.data = $root.game.building.fromObject(object.data);
  49465. }
  49466. return message;
  49467. };
  49468. /**
  49469. * Creates a plain object from a building_explore_rsp message. Also converts values to other types if specified.
  49470. * @function toObject
  49471. * @memberof game.building_explore_rsp
  49472. * @static
  49473. * @param {game.building_explore_rsp} message building_explore_rsp
  49474. * @param {$protobuf.IConversionOptions} [options] Conversion options
  49475. * @returns {Object.<string,*>} Plain object
  49476. */
  49477. building_explore_rsp.toObject = function toObject(message, options) {
  49478. if (!options)
  49479. options = {};
  49480. let object = {};
  49481. if (options.defaults) {
  49482. if ($util.Long) {
  49483. let long = new $util.Long(0, 0, false);
  49484. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  49485. } else
  49486. object.errno = options.longs === String ? "0" : 0;
  49487. object.data = null;
  49488. }
  49489. if (message.errno != null && message.hasOwnProperty("errno"))
  49490. if (typeof message.errno === "number")
  49491. object.errno = options.longs === String ? String(message.errno) : message.errno;
  49492. else
  49493. 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;
  49494. if (message.data != null && message.hasOwnProperty("data"))
  49495. object.data = $root.game.building.toObject(message.data, options);
  49496. return object;
  49497. };
  49498. /**
  49499. * Converts this building_explore_rsp to JSON.
  49500. * @function toJSON
  49501. * @memberof game.building_explore_rsp
  49502. * @instance
  49503. * @returns {Object.<string,*>} JSON object
  49504. */
  49505. building_explore_rsp.prototype.toJSON = function toJSON() {
  49506. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  49507. };
  49508. return building_explore_rsp;
  49509. })();
  49510. game.building_auto_explore_award = (function() {
  49511. /**
  49512. * Properties of a building_auto_explore_award.
  49513. * @memberof game
  49514. * @interface Ibuilding_auto_explore_award
  49515. * @property {number|Long|null} [id] building_auto_explore_award id
  49516. */
  49517. /**
  49518. * Constructs a new building_auto_explore_award.
  49519. * @memberof game
  49520. * @classdesc Represents a building_auto_explore_award.
  49521. * @implements Ibuilding_auto_explore_award
  49522. * @constructor
  49523. * @param {game.Ibuilding_auto_explore_award=} [properties] Properties to set
  49524. */
  49525. function building_auto_explore_award(properties) {
  49526. if (properties)
  49527. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  49528. if (properties[keys[i]] != null)
  49529. this[keys[i]] = properties[keys[i]];
  49530. }
  49531. /**
  49532. * building_auto_explore_award id.
  49533. * @member {number|Long} id
  49534. * @memberof game.building_auto_explore_award
  49535. * @instance
  49536. */
  49537. building_auto_explore_award.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  49538. /**
  49539. * Creates a new building_auto_explore_award instance using the specified properties.
  49540. * @function create
  49541. * @memberof game.building_auto_explore_award
  49542. * @static
  49543. * @param {game.Ibuilding_auto_explore_award=} [properties] Properties to set
  49544. * @returns {game.building_auto_explore_award} building_auto_explore_award instance
  49545. */
  49546. building_auto_explore_award.create = function create(properties) {
  49547. return new building_auto_explore_award(properties);
  49548. };
  49549. /**
  49550. * Encodes the specified building_auto_explore_award message. Does not implicitly {@link game.building_auto_explore_award.verify|verify} messages.
  49551. * @function encode
  49552. * @memberof game.building_auto_explore_award
  49553. * @static
  49554. * @param {game.Ibuilding_auto_explore_award} message building_auto_explore_award message or plain object to encode
  49555. * @param {$protobuf.Writer} [writer] Writer to encode to
  49556. * @returns {$protobuf.Writer} Writer
  49557. */
  49558. building_auto_explore_award.encode = function encode(message, writer) {
  49559. if (!writer)
  49560. writer = $Writer.create();
  49561. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  49562. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  49563. return writer;
  49564. };
  49565. /**
  49566. * Encodes the specified building_auto_explore_award message, length delimited. Does not implicitly {@link game.building_auto_explore_award.verify|verify} messages.
  49567. * @function encodeDelimited
  49568. * @memberof game.building_auto_explore_award
  49569. * @static
  49570. * @param {game.Ibuilding_auto_explore_award} message building_auto_explore_award message or plain object to encode
  49571. * @param {$protobuf.Writer} [writer] Writer to encode to
  49572. * @returns {$protobuf.Writer} Writer
  49573. */
  49574. building_auto_explore_award.encodeDelimited = function encodeDelimited(message, writer) {
  49575. return this.encode(message, writer).ldelim();
  49576. };
  49577. /**
  49578. * Decodes a building_auto_explore_award message from the specified reader or buffer.
  49579. * @function decode
  49580. * @memberof game.building_auto_explore_award
  49581. * @static
  49582. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  49583. * @param {number} [length] Message length if known beforehand
  49584. * @returns {game.building_auto_explore_award} building_auto_explore_award
  49585. * @throws {Error} If the payload is not a reader or valid buffer
  49586. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  49587. */
  49588. building_auto_explore_award.decode = function decode(reader, length) {
  49589. if (!(reader instanceof $Reader))
  49590. reader = $Reader.create(reader);
  49591. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.building_auto_explore_award();
  49592. while (reader.pos < end) {
  49593. let tag = reader.uint32();
  49594. switch (tag >>> 3) {
  49595. case 1:
  49596. message.id = reader.int64();
  49597. break;
  49598. default:
  49599. reader.skipType(tag & 7);
  49600. break;
  49601. }
  49602. }
  49603. return message;
  49604. };
  49605. /**
  49606. * Decodes a building_auto_explore_award message from the specified reader or buffer, length delimited.
  49607. * @function decodeDelimited
  49608. * @memberof game.building_auto_explore_award
  49609. * @static
  49610. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  49611. * @returns {game.building_auto_explore_award} building_auto_explore_award
  49612. * @throws {Error} If the payload is not a reader or valid buffer
  49613. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  49614. */
  49615. building_auto_explore_award.decodeDelimited = function decodeDelimited(reader) {
  49616. if (!(reader instanceof $Reader))
  49617. reader = new $Reader(reader);
  49618. return this.decode(reader, reader.uint32());
  49619. };
  49620. /**
  49621. * Verifies a building_auto_explore_award message.
  49622. * @function verify
  49623. * @memberof game.building_auto_explore_award
  49624. * @static
  49625. * @param {Object.<string,*>} message Plain object to verify
  49626. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  49627. */
  49628. building_auto_explore_award.verify = function verify(message) {
  49629. if (typeof message !== "object" || message === null)
  49630. return "object expected";
  49631. if (message.id != null && message.hasOwnProperty("id"))
  49632. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  49633. return "id: integer|Long expected";
  49634. return null;
  49635. };
  49636. /**
  49637. * Creates a building_auto_explore_award message from a plain object. Also converts values to their respective internal types.
  49638. * @function fromObject
  49639. * @memberof game.building_auto_explore_award
  49640. * @static
  49641. * @param {Object.<string,*>} object Plain object
  49642. * @returns {game.building_auto_explore_award} building_auto_explore_award
  49643. */
  49644. building_auto_explore_award.fromObject = function fromObject(object) {
  49645. if (object instanceof $root.game.building_auto_explore_award)
  49646. return object;
  49647. let message = new $root.game.building_auto_explore_award();
  49648. if (object.id != null)
  49649. if ($util.Long)
  49650. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  49651. else if (typeof object.id === "string")
  49652. message.id = parseInt(object.id, 10);
  49653. else if (typeof object.id === "number")
  49654. message.id = object.id;
  49655. else if (typeof object.id === "object")
  49656. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  49657. return message;
  49658. };
  49659. /**
  49660. * Creates a plain object from a building_auto_explore_award message. Also converts values to other types if specified.
  49661. * @function toObject
  49662. * @memberof game.building_auto_explore_award
  49663. * @static
  49664. * @param {game.building_auto_explore_award} message building_auto_explore_award
  49665. * @param {$protobuf.IConversionOptions} [options] Conversion options
  49666. * @returns {Object.<string,*>} Plain object
  49667. */
  49668. building_auto_explore_award.toObject = function toObject(message, options) {
  49669. if (!options)
  49670. options = {};
  49671. let object = {};
  49672. if (options.defaults)
  49673. if ($util.Long) {
  49674. let long = new $util.Long(0, 0, false);
  49675. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  49676. } else
  49677. object.id = options.longs === String ? "0" : 0;
  49678. if (message.id != null && message.hasOwnProperty("id"))
  49679. if (typeof message.id === "number")
  49680. object.id = options.longs === String ? String(message.id) : message.id;
  49681. else
  49682. 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;
  49683. return object;
  49684. };
  49685. /**
  49686. * Converts this building_auto_explore_award to JSON.
  49687. * @function toJSON
  49688. * @memberof game.building_auto_explore_award
  49689. * @instance
  49690. * @returns {Object.<string,*>} JSON object
  49691. */
  49692. building_auto_explore_award.prototype.toJSON = function toJSON() {
  49693. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  49694. };
  49695. return building_auto_explore_award;
  49696. })();
  49697. game.building_auto_explore_award_rsp = (function() {
  49698. /**
  49699. * Properties of a building_auto_explore_award_rsp.
  49700. * @memberof game
  49701. * @interface Ibuilding_auto_explore_award_rsp
  49702. * @property {number|Long|null} [errno] building_auto_explore_award_rsp errno
  49703. * @property {game.Ibuilding|null} [data] building_auto_explore_award_rsp data
  49704. */
  49705. /**
  49706. * Constructs a new building_auto_explore_award_rsp.
  49707. * @memberof game
  49708. * @classdesc Represents a building_auto_explore_award_rsp.
  49709. * @implements Ibuilding_auto_explore_award_rsp
  49710. * @constructor
  49711. * @param {game.Ibuilding_auto_explore_award_rsp=} [properties] Properties to set
  49712. */
  49713. function building_auto_explore_award_rsp(properties) {
  49714. if (properties)
  49715. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  49716. if (properties[keys[i]] != null)
  49717. this[keys[i]] = properties[keys[i]];
  49718. }
  49719. /**
  49720. * building_auto_explore_award_rsp errno.
  49721. * @member {number|Long} errno
  49722. * @memberof game.building_auto_explore_award_rsp
  49723. * @instance
  49724. */
  49725. building_auto_explore_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  49726. /**
  49727. * building_auto_explore_award_rsp data.
  49728. * @member {game.Ibuilding|null|undefined} data
  49729. * @memberof game.building_auto_explore_award_rsp
  49730. * @instance
  49731. */
  49732. building_auto_explore_award_rsp.prototype.data = null;
  49733. /**
  49734. * Creates a new building_auto_explore_award_rsp instance using the specified properties.
  49735. * @function create
  49736. * @memberof game.building_auto_explore_award_rsp
  49737. * @static
  49738. * @param {game.Ibuilding_auto_explore_award_rsp=} [properties] Properties to set
  49739. * @returns {game.building_auto_explore_award_rsp} building_auto_explore_award_rsp instance
  49740. */
  49741. building_auto_explore_award_rsp.create = function create(properties) {
  49742. return new building_auto_explore_award_rsp(properties);
  49743. };
  49744. /**
  49745. * Encodes the specified building_auto_explore_award_rsp message. Does not implicitly {@link game.building_auto_explore_award_rsp.verify|verify} messages.
  49746. * @function encode
  49747. * @memberof game.building_auto_explore_award_rsp
  49748. * @static
  49749. * @param {game.Ibuilding_auto_explore_award_rsp} message building_auto_explore_award_rsp message or plain object to encode
  49750. * @param {$protobuf.Writer} [writer] Writer to encode to
  49751. * @returns {$protobuf.Writer} Writer
  49752. */
  49753. building_auto_explore_award_rsp.encode = function encode(message, writer) {
  49754. if (!writer)
  49755. writer = $Writer.create();
  49756. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  49757. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  49758. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  49759. $root.game.building.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  49760. return writer;
  49761. };
  49762. /**
  49763. * Encodes the specified building_auto_explore_award_rsp message, length delimited. Does not implicitly {@link game.building_auto_explore_award_rsp.verify|verify} messages.
  49764. * @function encodeDelimited
  49765. * @memberof game.building_auto_explore_award_rsp
  49766. * @static
  49767. * @param {game.Ibuilding_auto_explore_award_rsp} message building_auto_explore_award_rsp message or plain object to encode
  49768. * @param {$protobuf.Writer} [writer] Writer to encode to
  49769. * @returns {$protobuf.Writer} Writer
  49770. */
  49771. building_auto_explore_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  49772. return this.encode(message, writer).ldelim();
  49773. };
  49774. /**
  49775. * Decodes a building_auto_explore_award_rsp message from the specified reader or buffer.
  49776. * @function decode
  49777. * @memberof game.building_auto_explore_award_rsp
  49778. * @static
  49779. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  49780. * @param {number} [length] Message length if known beforehand
  49781. * @returns {game.building_auto_explore_award_rsp} building_auto_explore_award_rsp
  49782. * @throws {Error} If the payload is not a reader or valid buffer
  49783. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  49784. */
  49785. building_auto_explore_award_rsp.decode = function decode(reader, length) {
  49786. if (!(reader instanceof $Reader))
  49787. reader = $Reader.create(reader);
  49788. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.building_auto_explore_award_rsp();
  49789. while (reader.pos < end) {
  49790. let tag = reader.uint32();
  49791. switch (tag >>> 3) {
  49792. case 1:
  49793. message.errno = reader.int64();
  49794. break;
  49795. case 2:
  49796. message.data = $root.game.building.decode(reader, reader.uint32());
  49797. break;
  49798. default:
  49799. reader.skipType(tag & 7);
  49800. break;
  49801. }
  49802. }
  49803. return message;
  49804. };
  49805. /**
  49806. * Decodes a building_auto_explore_award_rsp message from the specified reader or buffer, length delimited.
  49807. * @function decodeDelimited
  49808. * @memberof game.building_auto_explore_award_rsp
  49809. * @static
  49810. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  49811. * @returns {game.building_auto_explore_award_rsp} building_auto_explore_award_rsp
  49812. * @throws {Error} If the payload is not a reader or valid buffer
  49813. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  49814. */
  49815. building_auto_explore_award_rsp.decodeDelimited = function decodeDelimited(reader) {
  49816. if (!(reader instanceof $Reader))
  49817. reader = new $Reader(reader);
  49818. return this.decode(reader, reader.uint32());
  49819. };
  49820. /**
  49821. * Verifies a building_auto_explore_award_rsp message.
  49822. * @function verify
  49823. * @memberof game.building_auto_explore_award_rsp
  49824. * @static
  49825. * @param {Object.<string,*>} message Plain object to verify
  49826. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  49827. */
  49828. building_auto_explore_award_rsp.verify = function verify(message) {
  49829. if (typeof message !== "object" || message === null)
  49830. return "object expected";
  49831. if (message.errno != null && message.hasOwnProperty("errno"))
  49832. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  49833. return "errno: integer|Long expected";
  49834. if (message.data != null && message.hasOwnProperty("data")) {
  49835. let error = $root.game.building.verify(message.data);
  49836. if (error)
  49837. return "data." + error;
  49838. }
  49839. return null;
  49840. };
  49841. /**
  49842. * Creates a building_auto_explore_award_rsp message from a plain object. Also converts values to their respective internal types.
  49843. * @function fromObject
  49844. * @memberof game.building_auto_explore_award_rsp
  49845. * @static
  49846. * @param {Object.<string,*>} object Plain object
  49847. * @returns {game.building_auto_explore_award_rsp} building_auto_explore_award_rsp
  49848. */
  49849. building_auto_explore_award_rsp.fromObject = function fromObject(object) {
  49850. if (object instanceof $root.game.building_auto_explore_award_rsp)
  49851. return object;
  49852. let message = new $root.game.building_auto_explore_award_rsp();
  49853. if (object.errno != null)
  49854. if ($util.Long)
  49855. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  49856. else if (typeof object.errno === "string")
  49857. message.errno = parseInt(object.errno, 10);
  49858. else if (typeof object.errno === "number")
  49859. message.errno = object.errno;
  49860. else if (typeof object.errno === "object")
  49861. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  49862. if (object.data != null) {
  49863. if (typeof object.data !== "object")
  49864. throw TypeError(".game.building_auto_explore_award_rsp.data: object expected");
  49865. message.data = $root.game.building.fromObject(object.data);
  49866. }
  49867. return message;
  49868. };
  49869. /**
  49870. * Creates a plain object from a building_auto_explore_award_rsp message. Also converts values to other types if specified.
  49871. * @function toObject
  49872. * @memberof game.building_auto_explore_award_rsp
  49873. * @static
  49874. * @param {game.building_auto_explore_award_rsp} message building_auto_explore_award_rsp
  49875. * @param {$protobuf.IConversionOptions} [options] Conversion options
  49876. * @returns {Object.<string,*>} Plain object
  49877. */
  49878. building_auto_explore_award_rsp.toObject = function toObject(message, options) {
  49879. if (!options)
  49880. options = {};
  49881. let object = {};
  49882. if (options.defaults) {
  49883. if ($util.Long) {
  49884. let long = new $util.Long(0, 0, false);
  49885. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  49886. } else
  49887. object.errno = options.longs === String ? "0" : 0;
  49888. object.data = null;
  49889. }
  49890. if (message.errno != null && message.hasOwnProperty("errno"))
  49891. if (typeof message.errno === "number")
  49892. object.errno = options.longs === String ? String(message.errno) : message.errno;
  49893. else
  49894. 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;
  49895. if (message.data != null && message.hasOwnProperty("data"))
  49896. object.data = $root.game.building.toObject(message.data, options);
  49897. return object;
  49898. };
  49899. /**
  49900. * Converts this building_auto_explore_award_rsp to JSON.
  49901. * @function toJSON
  49902. * @memberof game.building_auto_explore_award_rsp
  49903. * @instance
  49904. * @returns {Object.<string,*>} JSON object
  49905. */
  49906. building_auto_explore_award_rsp.prototype.toJSON = function toJSON() {
  49907. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  49908. };
  49909. return building_auto_explore_award_rsp;
  49910. })();
  49911. game.building_explore_battle = (function() {
  49912. /**
  49913. * Properties of a building_explore_battle.
  49914. * @memberof game
  49915. * @interface Ibuilding_explore_battle
  49916. * @property {number|Long|null} [id] building_explore_battle id
  49917. * @property {Array.<string>|null} [list] building_explore_battle list
  49918. */
  49919. /**
  49920. * Constructs a new building_explore_battle.
  49921. * @memberof game
  49922. * @classdesc Represents a building_explore_battle.
  49923. * @implements Ibuilding_explore_battle
  49924. * @constructor
  49925. * @param {game.Ibuilding_explore_battle=} [properties] Properties to set
  49926. */
  49927. function building_explore_battle(properties) {
  49928. this.list = [];
  49929. if (properties)
  49930. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  49931. if (properties[keys[i]] != null)
  49932. this[keys[i]] = properties[keys[i]];
  49933. }
  49934. /**
  49935. * building_explore_battle id.
  49936. * @member {number|Long} id
  49937. * @memberof game.building_explore_battle
  49938. * @instance
  49939. */
  49940. building_explore_battle.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  49941. /**
  49942. * building_explore_battle list.
  49943. * @member {Array.<string>} list
  49944. * @memberof game.building_explore_battle
  49945. * @instance
  49946. */
  49947. building_explore_battle.prototype.list = $util.emptyArray;
  49948. /**
  49949. * Creates a new building_explore_battle instance using the specified properties.
  49950. * @function create
  49951. * @memberof game.building_explore_battle
  49952. * @static
  49953. * @param {game.Ibuilding_explore_battle=} [properties] Properties to set
  49954. * @returns {game.building_explore_battle} building_explore_battle instance
  49955. */
  49956. building_explore_battle.create = function create(properties) {
  49957. return new building_explore_battle(properties);
  49958. };
  49959. /**
  49960. * Encodes the specified building_explore_battle message. Does not implicitly {@link game.building_explore_battle.verify|verify} messages.
  49961. * @function encode
  49962. * @memberof game.building_explore_battle
  49963. * @static
  49964. * @param {game.Ibuilding_explore_battle} message building_explore_battle message or plain object to encode
  49965. * @param {$protobuf.Writer} [writer] Writer to encode to
  49966. * @returns {$protobuf.Writer} Writer
  49967. */
  49968. building_explore_battle.encode = function encode(message, writer) {
  49969. if (!writer)
  49970. writer = $Writer.create();
  49971. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  49972. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  49973. if (message.list != null && message.list.length)
  49974. for (let i = 0; i < message.list.length; ++i)
  49975. writer.uint32(/* id 2, wireType 2 =*/18).string(message.list[i]);
  49976. return writer;
  49977. };
  49978. /**
  49979. * Encodes the specified building_explore_battle message, length delimited. Does not implicitly {@link game.building_explore_battle.verify|verify} messages.
  49980. * @function encodeDelimited
  49981. * @memberof game.building_explore_battle
  49982. * @static
  49983. * @param {game.Ibuilding_explore_battle} message building_explore_battle message or plain object to encode
  49984. * @param {$protobuf.Writer} [writer] Writer to encode to
  49985. * @returns {$protobuf.Writer} Writer
  49986. */
  49987. building_explore_battle.encodeDelimited = function encodeDelimited(message, writer) {
  49988. return this.encode(message, writer).ldelim();
  49989. };
  49990. /**
  49991. * Decodes a building_explore_battle message from the specified reader or buffer.
  49992. * @function decode
  49993. * @memberof game.building_explore_battle
  49994. * @static
  49995. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  49996. * @param {number} [length] Message length if known beforehand
  49997. * @returns {game.building_explore_battle} building_explore_battle
  49998. * @throws {Error} If the payload is not a reader or valid buffer
  49999. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  50000. */
  50001. building_explore_battle.decode = function decode(reader, length) {
  50002. if (!(reader instanceof $Reader))
  50003. reader = $Reader.create(reader);
  50004. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.building_explore_battle();
  50005. while (reader.pos < end) {
  50006. let tag = reader.uint32();
  50007. switch (tag >>> 3) {
  50008. case 1:
  50009. message.id = reader.int64();
  50010. break;
  50011. case 2:
  50012. if (!(message.list && message.list.length))
  50013. message.list = [];
  50014. message.list.push(reader.string());
  50015. break;
  50016. default:
  50017. reader.skipType(tag & 7);
  50018. break;
  50019. }
  50020. }
  50021. return message;
  50022. };
  50023. /**
  50024. * Decodes a building_explore_battle message from the specified reader or buffer, length delimited.
  50025. * @function decodeDelimited
  50026. * @memberof game.building_explore_battle
  50027. * @static
  50028. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  50029. * @returns {game.building_explore_battle} building_explore_battle
  50030. * @throws {Error} If the payload is not a reader or valid buffer
  50031. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  50032. */
  50033. building_explore_battle.decodeDelimited = function decodeDelimited(reader) {
  50034. if (!(reader instanceof $Reader))
  50035. reader = new $Reader(reader);
  50036. return this.decode(reader, reader.uint32());
  50037. };
  50038. /**
  50039. * Verifies a building_explore_battle message.
  50040. * @function verify
  50041. * @memberof game.building_explore_battle
  50042. * @static
  50043. * @param {Object.<string,*>} message Plain object to verify
  50044. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  50045. */
  50046. building_explore_battle.verify = function verify(message) {
  50047. if (typeof message !== "object" || message === null)
  50048. return "object expected";
  50049. if (message.id != null && message.hasOwnProperty("id"))
  50050. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  50051. return "id: integer|Long expected";
  50052. if (message.list != null && message.hasOwnProperty("list")) {
  50053. if (!Array.isArray(message.list))
  50054. return "list: array expected";
  50055. for (let i = 0; i < message.list.length; ++i)
  50056. if (!$util.isString(message.list[i]))
  50057. return "list: string[] expected";
  50058. }
  50059. return null;
  50060. };
  50061. /**
  50062. * Creates a building_explore_battle message from a plain object. Also converts values to their respective internal types.
  50063. * @function fromObject
  50064. * @memberof game.building_explore_battle
  50065. * @static
  50066. * @param {Object.<string,*>} object Plain object
  50067. * @returns {game.building_explore_battle} building_explore_battle
  50068. */
  50069. building_explore_battle.fromObject = function fromObject(object) {
  50070. if (object instanceof $root.game.building_explore_battle)
  50071. return object;
  50072. let message = new $root.game.building_explore_battle();
  50073. if (object.id != null)
  50074. if ($util.Long)
  50075. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  50076. else if (typeof object.id === "string")
  50077. message.id = parseInt(object.id, 10);
  50078. else if (typeof object.id === "number")
  50079. message.id = object.id;
  50080. else if (typeof object.id === "object")
  50081. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  50082. if (object.list) {
  50083. if (!Array.isArray(object.list))
  50084. throw TypeError(".game.building_explore_battle.list: array expected");
  50085. message.list = [];
  50086. for (let i = 0; i < object.list.length; ++i)
  50087. message.list[i] = String(object.list[i]);
  50088. }
  50089. return message;
  50090. };
  50091. /**
  50092. * Creates a plain object from a building_explore_battle message. Also converts values to other types if specified.
  50093. * @function toObject
  50094. * @memberof game.building_explore_battle
  50095. * @static
  50096. * @param {game.building_explore_battle} message building_explore_battle
  50097. * @param {$protobuf.IConversionOptions} [options] Conversion options
  50098. * @returns {Object.<string,*>} Plain object
  50099. */
  50100. building_explore_battle.toObject = function toObject(message, options) {
  50101. if (!options)
  50102. options = {};
  50103. let object = {};
  50104. if (options.arrays || options.defaults)
  50105. object.list = [];
  50106. if (options.defaults)
  50107. if ($util.Long) {
  50108. let long = new $util.Long(0, 0, false);
  50109. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  50110. } else
  50111. object.id = options.longs === String ? "0" : 0;
  50112. if (message.id != null && message.hasOwnProperty("id"))
  50113. if (typeof message.id === "number")
  50114. object.id = options.longs === String ? String(message.id) : message.id;
  50115. else
  50116. 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;
  50117. if (message.list && message.list.length) {
  50118. object.list = [];
  50119. for (let j = 0; j < message.list.length; ++j)
  50120. object.list[j] = message.list[j];
  50121. }
  50122. return object;
  50123. };
  50124. /**
  50125. * Converts this building_explore_battle to JSON.
  50126. * @function toJSON
  50127. * @memberof game.building_explore_battle
  50128. * @instance
  50129. * @returns {Object.<string,*>} JSON object
  50130. */
  50131. building_explore_battle.prototype.toJSON = function toJSON() {
  50132. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  50133. };
  50134. return building_explore_battle;
  50135. })();
  50136. game.building_explore_battle_rsp = (function() {
  50137. /**
  50138. * Properties of a building_explore_battle_rsp.
  50139. * @memberof game
  50140. * @interface Ibuilding_explore_battle_rsp
  50141. * @property {number|Long|null} [errno] building_explore_battle_rsp errno
  50142. * @property {game.Ibuilding|null} [data] building_explore_battle_rsp data
  50143. */
  50144. /**
  50145. * Constructs a new building_explore_battle_rsp.
  50146. * @memberof game
  50147. * @classdesc Represents a building_explore_battle_rsp.
  50148. * @implements Ibuilding_explore_battle_rsp
  50149. * @constructor
  50150. * @param {game.Ibuilding_explore_battle_rsp=} [properties] Properties to set
  50151. */
  50152. function building_explore_battle_rsp(properties) {
  50153. if (properties)
  50154. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  50155. if (properties[keys[i]] != null)
  50156. this[keys[i]] = properties[keys[i]];
  50157. }
  50158. /**
  50159. * building_explore_battle_rsp errno.
  50160. * @member {number|Long} errno
  50161. * @memberof game.building_explore_battle_rsp
  50162. * @instance
  50163. */
  50164. building_explore_battle_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  50165. /**
  50166. * building_explore_battle_rsp data.
  50167. * @member {game.Ibuilding|null|undefined} data
  50168. * @memberof game.building_explore_battle_rsp
  50169. * @instance
  50170. */
  50171. building_explore_battle_rsp.prototype.data = null;
  50172. /**
  50173. * Creates a new building_explore_battle_rsp instance using the specified properties.
  50174. * @function create
  50175. * @memberof game.building_explore_battle_rsp
  50176. * @static
  50177. * @param {game.Ibuilding_explore_battle_rsp=} [properties] Properties to set
  50178. * @returns {game.building_explore_battle_rsp} building_explore_battle_rsp instance
  50179. */
  50180. building_explore_battle_rsp.create = function create(properties) {
  50181. return new building_explore_battle_rsp(properties);
  50182. };
  50183. /**
  50184. * Encodes the specified building_explore_battle_rsp message. Does not implicitly {@link game.building_explore_battle_rsp.verify|verify} messages.
  50185. * @function encode
  50186. * @memberof game.building_explore_battle_rsp
  50187. * @static
  50188. * @param {game.Ibuilding_explore_battle_rsp} message building_explore_battle_rsp message or plain object to encode
  50189. * @param {$protobuf.Writer} [writer] Writer to encode to
  50190. * @returns {$protobuf.Writer} Writer
  50191. */
  50192. building_explore_battle_rsp.encode = function encode(message, writer) {
  50193. if (!writer)
  50194. writer = $Writer.create();
  50195. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  50196. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  50197. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  50198. $root.game.building.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  50199. return writer;
  50200. };
  50201. /**
  50202. * Encodes the specified building_explore_battle_rsp message, length delimited. Does not implicitly {@link game.building_explore_battle_rsp.verify|verify} messages.
  50203. * @function encodeDelimited
  50204. * @memberof game.building_explore_battle_rsp
  50205. * @static
  50206. * @param {game.Ibuilding_explore_battle_rsp} message building_explore_battle_rsp message or plain object to encode
  50207. * @param {$protobuf.Writer} [writer] Writer to encode to
  50208. * @returns {$protobuf.Writer} Writer
  50209. */
  50210. building_explore_battle_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  50211. return this.encode(message, writer).ldelim();
  50212. };
  50213. /**
  50214. * Decodes a building_explore_battle_rsp message from the specified reader or buffer.
  50215. * @function decode
  50216. * @memberof game.building_explore_battle_rsp
  50217. * @static
  50218. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  50219. * @param {number} [length] Message length if known beforehand
  50220. * @returns {game.building_explore_battle_rsp} building_explore_battle_rsp
  50221. * @throws {Error} If the payload is not a reader or valid buffer
  50222. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  50223. */
  50224. building_explore_battle_rsp.decode = function decode(reader, length) {
  50225. if (!(reader instanceof $Reader))
  50226. reader = $Reader.create(reader);
  50227. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.building_explore_battle_rsp();
  50228. while (reader.pos < end) {
  50229. let tag = reader.uint32();
  50230. switch (tag >>> 3) {
  50231. case 1:
  50232. message.errno = reader.int64();
  50233. break;
  50234. case 2:
  50235. message.data = $root.game.building.decode(reader, reader.uint32());
  50236. break;
  50237. default:
  50238. reader.skipType(tag & 7);
  50239. break;
  50240. }
  50241. }
  50242. return message;
  50243. };
  50244. /**
  50245. * Decodes a building_explore_battle_rsp message from the specified reader or buffer, length delimited.
  50246. * @function decodeDelimited
  50247. * @memberof game.building_explore_battle_rsp
  50248. * @static
  50249. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  50250. * @returns {game.building_explore_battle_rsp} building_explore_battle_rsp
  50251. * @throws {Error} If the payload is not a reader or valid buffer
  50252. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  50253. */
  50254. building_explore_battle_rsp.decodeDelimited = function decodeDelimited(reader) {
  50255. if (!(reader instanceof $Reader))
  50256. reader = new $Reader(reader);
  50257. return this.decode(reader, reader.uint32());
  50258. };
  50259. /**
  50260. * Verifies a building_explore_battle_rsp message.
  50261. * @function verify
  50262. * @memberof game.building_explore_battle_rsp
  50263. * @static
  50264. * @param {Object.<string,*>} message Plain object to verify
  50265. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  50266. */
  50267. building_explore_battle_rsp.verify = function verify(message) {
  50268. if (typeof message !== "object" || message === null)
  50269. return "object expected";
  50270. if (message.errno != null && message.hasOwnProperty("errno"))
  50271. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  50272. return "errno: integer|Long expected";
  50273. if (message.data != null && message.hasOwnProperty("data")) {
  50274. let error = $root.game.building.verify(message.data);
  50275. if (error)
  50276. return "data." + error;
  50277. }
  50278. return null;
  50279. };
  50280. /**
  50281. * Creates a building_explore_battle_rsp message from a plain object. Also converts values to their respective internal types.
  50282. * @function fromObject
  50283. * @memberof game.building_explore_battle_rsp
  50284. * @static
  50285. * @param {Object.<string,*>} object Plain object
  50286. * @returns {game.building_explore_battle_rsp} building_explore_battle_rsp
  50287. */
  50288. building_explore_battle_rsp.fromObject = function fromObject(object) {
  50289. if (object instanceof $root.game.building_explore_battle_rsp)
  50290. return object;
  50291. let message = new $root.game.building_explore_battle_rsp();
  50292. if (object.errno != null)
  50293. if ($util.Long)
  50294. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  50295. else if (typeof object.errno === "string")
  50296. message.errno = parseInt(object.errno, 10);
  50297. else if (typeof object.errno === "number")
  50298. message.errno = object.errno;
  50299. else if (typeof object.errno === "object")
  50300. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  50301. if (object.data != null) {
  50302. if (typeof object.data !== "object")
  50303. throw TypeError(".game.building_explore_battle_rsp.data: object expected");
  50304. message.data = $root.game.building.fromObject(object.data);
  50305. }
  50306. return message;
  50307. };
  50308. /**
  50309. * Creates a plain object from a building_explore_battle_rsp message. Also converts values to other types if specified.
  50310. * @function toObject
  50311. * @memberof game.building_explore_battle_rsp
  50312. * @static
  50313. * @param {game.building_explore_battle_rsp} message building_explore_battle_rsp
  50314. * @param {$protobuf.IConversionOptions} [options] Conversion options
  50315. * @returns {Object.<string,*>} Plain object
  50316. */
  50317. building_explore_battle_rsp.toObject = function toObject(message, options) {
  50318. if (!options)
  50319. options = {};
  50320. let object = {};
  50321. if (options.defaults) {
  50322. if ($util.Long) {
  50323. let long = new $util.Long(0, 0, false);
  50324. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  50325. } else
  50326. object.errno = options.longs === String ? "0" : 0;
  50327. object.data = null;
  50328. }
  50329. if (message.errno != null && message.hasOwnProperty("errno"))
  50330. if (typeof message.errno === "number")
  50331. object.errno = options.longs === String ? String(message.errno) : message.errno;
  50332. else
  50333. 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;
  50334. if (message.data != null && message.hasOwnProperty("data"))
  50335. object.data = $root.game.building.toObject(message.data, options);
  50336. return object;
  50337. };
  50338. /**
  50339. * Converts this building_explore_battle_rsp to JSON.
  50340. * @function toJSON
  50341. * @memberof game.building_explore_battle_rsp
  50342. * @instance
  50343. * @returns {Object.<string,*>} JSON object
  50344. */
  50345. building_explore_battle_rsp.prototype.toJSON = function toJSON() {
  50346. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  50347. };
  50348. return building_explore_battle_rsp;
  50349. })();
  50350. game.building_auto_explore_option = (function() {
  50351. /**
  50352. * Properties of a building_auto_explore_option.
  50353. * @memberof game
  50354. * @interface Ibuilding_auto_explore_option
  50355. * @property {number|Long|null} [id] building_auto_explore_option id
  50356. * @property {boolean|null} [open] building_auto_explore_option open
  50357. */
  50358. /**
  50359. * Constructs a new building_auto_explore_option.
  50360. * @memberof game
  50361. * @classdesc Represents a building_auto_explore_option.
  50362. * @implements Ibuilding_auto_explore_option
  50363. * @constructor
  50364. * @param {game.Ibuilding_auto_explore_option=} [properties] Properties to set
  50365. */
  50366. function building_auto_explore_option(properties) {
  50367. if (properties)
  50368. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  50369. if (properties[keys[i]] != null)
  50370. this[keys[i]] = properties[keys[i]];
  50371. }
  50372. /**
  50373. * building_auto_explore_option id.
  50374. * @member {number|Long} id
  50375. * @memberof game.building_auto_explore_option
  50376. * @instance
  50377. */
  50378. building_auto_explore_option.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  50379. /**
  50380. * building_auto_explore_option open.
  50381. * @member {boolean} open
  50382. * @memberof game.building_auto_explore_option
  50383. * @instance
  50384. */
  50385. building_auto_explore_option.prototype.open = false;
  50386. /**
  50387. * Creates a new building_auto_explore_option instance using the specified properties.
  50388. * @function create
  50389. * @memberof game.building_auto_explore_option
  50390. * @static
  50391. * @param {game.Ibuilding_auto_explore_option=} [properties] Properties to set
  50392. * @returns {game.building_auto_explore_option} building_auto_explore_option instance
  50393. */
  50394. building_auto_explore_option.create = function create(properties) {
  50395. return new building_auto_explore_option(properties);
  50396. };
  50397. /**
  50398. * Encodes the specified building_auto_explore_option message. Does not implicitly {@link game.building_auto_explore_option.verify|verify} messages.
  50399. * @function encode
  50400. * @memberof game.building_auto_explore_option
  50401. * @static
  50402. * @param {game.Ibuilding_auto_explore_option} message building_auto_explore_option message or plain object to encode
  50403. * @param {$protobuf.Writer} [writer] Writer to encode to
  50404. * @returns {$protobuf.Writer} Writer
  50405. */
  50406. building_auto_explore_option.encode = function encode(message, writer) {
  50407. if (!writer)
  50408. writer = $Writer.create();
  50409. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  50410. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  50411. if (message.open != null && Object.hasOwnProperty.call(message, "open"))
  50412. writer.uint32(/* id 2, wireType 0 =*/16).bool(message.open);
  50413. return writer;
  50414. };
  50415. /**
  50416. * Encodes the specified building_auto_explore_option message, length delimited. Does not implicitly {@link game.building_auto_explore_option.verify|verify} messages.
  50417. * @function encodeDelimited
  50418. * @memberof game.building_auto_explore_option
  50419. * @static
  50420. * @param {game.Ibuilding_auto_explore_option} message building_auto_explore_option message or plain object to encode
  50421. * @param {$protobuf.Writer} [writer] Writer to encode to
  50422. * @returns {$protobuf.Writer} Writer
  50423. */
  50424. building_auto_explore_option.encodeDelimited = function encodeDelimited(message, writer) {
  50425. return this.encode(message, writer).ldelim();
  50426. };
  50427. /**
  50428. * Decodes a building_auto_explore_option message from the specified reader or buffer.
  50429. * @function decode
  50430. * @memberof game.building_auto_explore_option
  50431. * @static
  50432. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  50433. * @param {number} [length] Message length if known beforehand
  50434. * @returns {game.building_auto_explore_option} building_auto_explore_option
  50435. * @throws {Error} If the payload is not a reader or valid buffer
  50436. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  50437. */
  50438. building_auto_explore_option.decode = function decode(reader, length) {
  50439. if (!(reader instanceof $Reader))
  50440. reader = $Reader.create(reader);
  50441. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.building_auto_explore_option();
  50442. while (reader.pos < end) {
  50443. let tag = reader.uint32();
  50444. switch (tag >>> 3) {
  50445. case 1:
  50446. message.id = reader.int64();
  50447. break;
  50448. case 2:
  50449. message.open = reader.bool();
  50450. break;
  50451. default:
  50452. reader.skipType(tag & 7);
  50453. break;
  50454. }
  50455. }
  50456. return message;
  50457. };
  50458. /**
  50459. * Decodes a building_auto_explore_option message from the specified reader or buffer, length delimited.
  50460. * @function decodeDelimited
  50461. * @memberof game.building_auto_explore_option
  50462. * @static
  50463. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  50464. * @returns {game.building_auto_explore_option} building_auto_explore_option
  50465. * @throws {Error} If the payload is not a reader or valid buffer
  50466. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  50467. */
  50468. building_auto_explore_option.decodeDelimited = function decodeDelimited(reader) {
  50469. if (!(reader instanceof $Reader))
  50470. reader = new $Reader(reader);
  50471. return this.decode(reader, reader.uint32());
  50472. };
  50473. /**
  50474. * Verifies a building_auto_explore_option message.
  50475. * @function verify
  50476. * @memberof game.building_auto_explore_option
  50477. * @static
  50478. * @param {Object.<string,*>} message Plain object to verify
  50479. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  50480. */
  50481. building_auto_explore_option.verify = function verify(message) {
  50482. if (typeof message !== "object" || message === null)
  50483. return "object expected";
  50484. if (message.id != null && message.hasOwnProperty("id"))
  50485. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  50486. return "id: integer|Long expected";
  50487. if (message.open != null && message.hasOwnProperty("open"))
  50488. if (typeof message.open !== "boolean")
  50489. return "open: boolean expected";
  50490. return null;
  50491. };
  50492. /**
  50493. * Creates a building_auto_explore_option message from a plain object. Also converts values to their respective internal types.
  50494. * @function fromObject
  50495. * @memberof game.building_auto_explore_option
  50496. * @static
  50497. * @param {Object.<string,*>} object Plain object
  50498. * @returns {game.building_auto_explore_option} building_auto_explore_option
  50499. */
  50500. building_auto_explore_option.fromObject = function fromObject(object) {
  50501. if (object instanceof $root.game.building_auto_explore_option)
  50502. return object;
  50503. let message = new $root.game.building_auto_explore_option();
  50504. if (object.id != null)
  50505. if ($util.Long)
  50506. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  50507. else if (typeof object.id === "string")
  50508. message.id = parseInt(object.id, 10);
  50509. else if (typeof object.id === "number")
  50510. message.id = object.id;
  50511. else if (typeof object.id === "object")
  50512. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  50513. if (object.open != null)
  50514. message.open = Boolean(object.open);
  50515. return message;
  50516. };
  50517. /**
  50518. * Creates a plain object from a building_auto_explore_option message. Also converts values to other types if specified.
  50519. * @function toObject
  50520. * @memberof game.building_auto_explore_option
  50521. * @static
  50522. * @param {game.building_auto_explore_option} message building_auto_explore_option
  50523. * @param {$protobuf.IConversionOptions} [options] Conversion options
  50524. * @returns {Object.<string,*>} Plain object
  50525. */
  50526. building_auto_explore_option.toObject = function toObject(message, options) {
  50527. if (!options)
  50528. options = {};
  50529. let object = {};
  50530. if (options.defaults) {
  50531. if ($util.Long) {
  50532. let long = new $util.Long(0, 0, false);
  50533. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  50534. } else
  50535. object.id = options.longs === String ? "0" : 0;
  50536. object.open = false;
  50537. }
  50538. if (message.id != null && message.hasOwnProperty("id"))
  50539. if (typeof message.id === "number")
  50540. object.id = options.longs === String ? String(message.id) : message.id;
  50541. else
  50542. 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;
  50543. if (message.open != null && message.hasOwnProperty("open"))
  50544. object.open = message.open;
  50545. return object;
  50546. };
  50547. /**
  50548. * Converts this building_auto_explore_option to JSON.
  50549. * @function toJSON
  50550. * @memberof game.building_auto_explore_option
  50551. * @instance
  50552. * @returns {Object.<string,*>} JSON object
  50553. */
  50554. building_auto_explore_option.prototype.toJSON = function toJSON() {
  50555. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  50556. };
  50557. return building_auto_explore_option;
  50558. })();
  50559. game.building_auto_explore_option_rsp = (function() {
  50560. /**
  50561. * Properties of a building_auto_explore_option_rsp.
  50562. * @memberof game
  50563. * @interface Ibuilding_auto_explore_option_rsp
  50564. * @property {number|Long|null} [errno] building_auto_explore_option_rsp errno
  50565. * @property {game.Ibuilding|null} [data] building_auto_explore_option_rsp data
  50566. */
  50567. /**
  50568. * Constructs a new building_auto_explore_option_rsp.
  50569. * @memberof game
  50570. * @classdesc Represents a building_auto_explore_option_rsp.
  50571. * @implements Ibuilding_auto_explore_option_rsp
  50572. * @constructor
  50573. * @param {game.Ibuilding_auto_explore_option_rsp=} [properties] Properties to set
  50574. */
  50575. function building_auto_explore_option_rsp(properties) {
  50576. if (properties)
  50577. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  50578. if (properties[keys[i]] != null)
  50579. this[keys[i]] = properties[keys[i]];
  50580. }
  50581. /**
  50582. * building_auto_explore_option_rsp errno.
  50583. * @member {number|Long} errno
  50584. * @memberof game.building_auto_explore_option_rsp
  50585. * @instance
  50586. */
  50587. building_auto_explore_option_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  50588. /**
  50589. * building_auto_explore_option_rsp data.
  50590. * @member {game.Ibuilding|null|undefined} data
  50591. * @memberof game.building_auto_explore_option_rsp
  50592. * @instance
  50593. */
  50594. building_auto_explore_option_rsp.prototype.data = null;
  50595. /**
  50596. * Creates a new building_auto_explore_option_rsp instance using the specified properties.
  50597. * @function create
  50598. * @memberof game.building_auto_explore_option_rsp
  50599. * @static
  50600. * @param {game.Ibuilding_auto_explore_option_rsp=} [properties] Properties to set
  50601. * @returns {game.building_auto_explore_option_rsp} building_auto_explore_option_rsp instance
  50602. */
  50603. building_auto_explore_option_rsp.create = function create(properties) {
  50604. return new building_auto_explore_option_rsp(properties);
  50605. };
  50606. /**
  50607. * Encodes the specified building_auto_explore_option_rsp message. Does not implicitly {@link game.building_auto_explore_option_rsp.verify|verify} messages.
  50608. * @function encode
  50609. * @memberof game.building_auto_explore_option_rsp
  50610. * @static
  50611. * @param {game.Ibuilding_auto_explore_option_rsp} message building_auto_explore_option_rsp message or plain object to encode
  50612. * @param {$protobuf.Writer} [writer] Writer to encode to
  50613. * @returns {$protobuf.Writer} Writer
  50614. */
  50615. building_auto_explore_option_rsp.encode = function encode(message, writer) {
  50616. if (!writer)
  50617. writer = $Writer.create();
  50618. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  50619. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  50620. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  50621. $root.game.building.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  50622. return writer;
  50623. };
  50624. /**
  50625. * Encodes the specified building_auto_explore_option_rsp message, length delimited. Does not implicitly {@link game.building_auto_explore_option_rsp.verify|verify} messages.
  50626. * @function encodeDelimited
  50627. * @memberof game.building_auto_explore_option_rsp
  50628. * @static
  50629. * @param {game.Ibuilding_auto_explore_option_rsp} message building_auto_explore_option_rsp message or plain object to encode
  50630. * @param {$protobuf.Writer} [writer] Writer to encode to
  50631. * @returns {$protobuf.Writer} Writer
  50632. */
  50633. building_auto_explore_option_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  50634. return this.encode(message, writer).ldelim();
  50635. };
  50636. /**
  50637. * Decodes a building_auto_explore_option_rsp message from the specified reader or buffer.
  50638. * @function decode
  50639. * @memberof game.building_auto_explore_option_rsp
  50640. * @static
  50641. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  50642. * @param {number} [length] Message length if known beforehand
  50643. * @returns {game.building_auto_explore_option_rsp} building_auto_explore_option_rsp
  50644. * @throws {Error} If the payload is not a reader or valid buffer
  50645. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  50646. */
  50647. building_auto_explore_option_rsp.decode = function decode(reader, length) {
  50648. if (!(reader instanceof $Reader))
  50649. reader = $Reader.create(reader);
  50650. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.building_auto_explore_option_rsp();
  50651. while (reader.pos < end) {
  50652. let tag = reader.uint32();
  50653. switch (tag >>> 3) {
  50654. case 1:
  50655. message.errno = reader.int64();
  50656. break;
  50657. case 2:
  50658. message.data = $root.game.building.decode(reader, reader.uint32());
  50659. break;
  50660. default:
  50661. reader.skipType(tag & 7);
  50662. break;
  50663. }
  50664. }
  50665. return message;
  50666. };
  50667. /**
  50668. * Decodes a building_auto_explore_option_rsp message from the specified reader or buffer, length delimited.
  50669. * @function decodeDelimited
  50670. * @memberof game.building_auto_explore_option_rsp
  50671. * @static
  50672. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  50673. * @returns {game.building_auto_explore_option_rsp} building_auto_explore_option_rsp
  50674. * @throws {Error} If the payload is not a reader or valid buffer
  50675. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  50676. */
  50677. building_auto_explore_option_rsp.decodeDelimited = function decodeDelimited(reader) {
  50678. if (!(reader instanceof $Reader))
  50679. reader = new $Reader(reader);
  50680. return this.decode(reader, reader.uint32());
  50681. };
  50682. /**
  50683. * Verifies a building_auto_explore_option_rsp message.
  50684. * @function verify
  50685. * @memberof game.building_auto_explore_option_rsp
  50686. * @static
  50687. * @param {Object.<string,*>} message Plain object to verify
  50688. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  50689. */
  50690. building_auto_explore_option_rsp.verify = function verify(message) {
  50691. if (typeof message !== "object" || message === null)
  50692. return "object expected";
  50693. if (message.errno != null && message.hasOwnProperty("errno"))
  50694. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  50695. return "errno: integer|Long expected";
  50696. if (message.data != null && message.hasOwnProperty("data")) {
  50697. let error = $root.game.building.verify(message.data);
  50698. if (error)
  50699. return "data." + error;
  50700. }
  50701. return null;
  50702. };
  50703. /**
  50704. * Creates a building_auto_explore_option_rsp message from a plain object. Also converts values to their respective internal types.
  50705. * @function fromObject
  50706. * @memberof game.building_auto_explore_option_rsp
  50707. * @static
  50708. * @param {Object.<string,*>} object Plain object
  50709. * @returns {game.building_auto_explore_option_rsp} building_auto_explore_option_rsp
  50710. */
  50711. building_auto_explore_option_rsp.fromObject = function fromObject(object) {
  50712. if (object instanceof $root.game.building_auto_explore_option_rsp)
  50713. return object;
  50714. let message = new $root.game.building_auto_explore_option_rsp();
  50715. if (object.errno != null)
  50716. if ($util.Long)
  50717. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  50718. else if (typeof object.errno === "string")
  50719. message.errno = parseInt(object.errno, 10);
  50720. else if (typeof object.errno === "number")
  50721. message.errno = object.errno;
  50722. else if (typeof object.errno === "object")
  50723. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  50724. if (object.data != null) {
  50725. if (typeof object.data !== "object")
  50726. throw TypeError(".game.building_auto_explore_option_rsp.data: object expected");
  50727. message.data = $root.game.building.fromObject(object.data);
  50728. }
  50729. return message;
  50730. };
  50731. /**
  50732. * Creates a plain object from a building_auto_explore_option_rsp message. Also converts values to other types if specified.
  50733. * @function toObject
  50734. * @memberof game.building_auto_explore_option_rsp
  50735. * @static
  50736. * @param {game.building_auto_explore_option_rsp} message building_auto_explore_option_rsp
  50737. * @param {$protobuf.IConversionOptions} [options] Conversion options
  50738. * @returns {Object.<string,*>} Plain object
  50739. */
  50740. building_auto_explore_option_rsp.toObject = function toObject(message, options) {
  50741. if (!options)
  50742. options = {};
  50743. let object = {};
  50744. if (options.defaults) {
  50745. if ($util.Long) {
  50746. let long = new $util.Long(0, 0, false);
  50747. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  50748. } else
  50749. object.errno = options.longs === String ? "0" : 0;
  50750. object.data = null;
  50751. }
  50752. if (message.errno != null && message.hasOwnProperty("errno"))
  50753. if (typeof message.errno === "number")
  50754. object.errno = options.longs === String ? String(message.errno) : message.errno;
  50755. else
  50756. 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;
  50757. if (message.data != null && message.hasOwnProperty("data"))
  50758. object.data = $root.game.building.toObject(message.data, options);
  50759. return object;
  50760. };
  50761. /**
  50762. * Converts this building_auto_explore_option_rsp to JSON.
  50763. * @function toJSON
  50764. * @memberof game.building_auto_explore_option_rsp
  50765. * @instance
  50766. * @returns {Object.<string,*>} JSON object
  50767. */
  50768. building_auto_explore_option_rsp.prototype.toJSON = function toJSON() {
  50769. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  50770. };
  50771. return building_auto_explore_option_rsp;
  50772. })();
  50773. game.level_gift_data = (function() {
  50774. /**
  50775. * Properties of a level_gift_data.
  50776. * @memberof game
  50777. * @interface Ilevel_gift_data
  50778. */
  50779. /**
  50780. * Constructs a new level_gift_data.
  50781. * @memberof game
  50782. * @classdesc Represents a level_gift_data.
  50783. * @implements Ilevel_gift_data
  50784. * @constructor
  50785. * @param {game.Ilevel_gift_data=} [properties] Properties to set
  50786. */
  50787. function level_gift_data(properties) {
  50788. if (properties)
  50789. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  50790. if (properties[keys[i]] != null)
  50791. this[keys[i]] = properties[keys[i]];
  50792. }
  50793. /**
  50794. * Creates a new level_gift_data instance using the specified properties.
  50795. * @function create
  50796. * @memberof game.level_gift_data
  50797. * @static
  50798. * @param {game.Ilevel_gift_data=} [properties] Properties to set
  50799. * @returns {game.level_gift_data} level_gift_data instance
  50800. */
  50801. level_gift_data.create = function create(properties) {
  50802. return new level_gift_data(properties);
  50803. };
  50804. /**
  50805. * Encodes the specified level_gift_data message. Does not implicitly {@link game.level_gift_data.verify|verify} messages.
  50806. * @function encode
  50807. * @memberof game.level_gift_data
  50808. * @static
  50809. * @param {game.Ilevel_gift_data} message level_gift_data message or plain object to encode
  50810. * @param {$protobuf.Writer} [writer] Writer to encode to
  50811. * @returns {$protobuf.Writer} Writer
  50812. */
  50813. level_gift_data.encode = function encode(message, writer) {
  50814. if (!writer)
  50815. writer = $Writer.create();
  50816. return writer;
  50817. };
  50818. /**
  50819. * Encodes the specified level_gift_data message, length delimited. Does not implicitly {@link game.level_gift_data.verify|verify} messages.
  50820. * @function encodeDelimited
  50821. * @memberof game.level_gift_data
  50822. * @static
  50823. * @param {game.Ilevel_gift_data} message level_gift_data message or plain object to encode
  50824. * @param {$protobuf.Writer} [writer] Writer to encode to
  50825. * @returns {$protobuf.Writer} Writer
  50826. */
  50827. level_gift_data.encodeDelimited = function encodeDelimited(message, writer) {
  50828. return this.encode(message, writer).ldelim();
  50829. };
  50830. /**
  50831. * Decodes a level_gift_data message from the specified reader or buffer.
  50832. * @function decode
  50833. * @memberof game.level_gift_data
  50834. * @static
  50835. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  50836. * @param {number} [length] Message length if known beforehand
  50837. * @returns {game.level_gift_data} level_gift_data
  50838. * @throws {Error} If the payload is not a reader or valid buffer
  50839. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  50840. */
  50841. level_gift_data.decode = function decode(reader, length) {
  50842. if (!(reader instanceof $Reader))
  50843. reader = $Reader.create(reader);
  50844. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.level_gift_data();
  50845. while (reader.pos < end) {
  50846. let tag = reader.uint32();
  50847. switch (tag >>> 3) {
  50848. default:
  50849. reader.skipType(tag & 7);
  50850. break;
  50851. }
  50852. }
  50853. return message;
  50854. };
  50855. /**
  50856. * Decodes a level_gift_data message from the specified reader or buffer, length delimited.
  50857. * @function decodeDelimited
  50858. * @memberof game.level_gift_data
  50859. * @static
  50860. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  50861. * @returns {game.level_gift_data} level_gift_data
  50862. * @throws {Error} If the payload is not a reader or valid buffer
  50863. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  50864. */
  50865. level_gift_data.decodeDelimited = function decodeDelimited(reader) {
  50866. if (!(reader instanceof $Reader))
  50867. reader = new $Reader(reader);
  50868. return this.decode(reader, reader.uint32());
  50869. };
  50870. /**
  50871. * Verifies a level_gift_data message.
  50872. * @function verify
  50873. * @memberof game.level_gift_data
  50874. * @static
  50875. * @param {Object.<string,*>} message Plain object to verify
  50876. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  50877. */
  50878. level_gift_data.verify = function verify(message) {
  50879. if (typeof message !== "object" || message === null)
  50880. return "object expected";
  50881. return null;
  50882. };
  50883. /**
  50884. * Creates a level_gift_data message from a plain object. Also converts values to their respective internal types.
  50885. * @function fromObject
  50886. * @memberof game.level_gift_data
  50887. * @static
  50888. * @param {Object.<string,*>} object Plain object
  50889. * @returns {game.level_gift_data} level_gift_data
  50890. */
  50891. level_gift_data.fromObject = function fromObject(object) {
  50892. if (object instanceof $root.game.level_gift_data)
  50893. return object;
  50894. return new $root.game.level_gift_data();
  50895. };
  50896. /**
  50897. * Creates a plain object from a level_gift_data message. Also converts values to other types if specified.
  50898. * @function toObject
  50899. * @memberof game.level_gift_data
  50900. * @static
  50901. * @param {game.level_gift_data} message level_gift_data
  50902. * @param {$protobuf.IConversionOptions} [options] Conversion options
  50903. * @returns {Object.<string,*>} Plain object
  50904. */
  50905. level_gift_data.toObject = function toObject() {
  50906. return {};
  50907. };
  50908. /**
  50909. * Converts this level_gift_data to JSON.
  50910. * @function toJSON
  50911. * @memberof game.level_gift_data
  50912. * @instance
  50913. * @returns {Object.<string,*>} JSON object
  50914. */
  50915. level_gift_data.prototype.toJSON = function toJSON() {
  50916. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  50917. };
  50918. return level_gift_data;
  50919. })();
  50920. game.level_gift_data_rsp = (function() {
  50921. /**
  50922. * Properties of a level_gift_data_rsp.
  50923. * @memberof game
  50924. * @interface Ilevel_gift_data_rsp
  50925. * @property {number|Long|null} [errno] level_gift_data_rsp errno
  50926. */
  50927. /**
  50928. * Constructs a new level_gift_data_rsp.
  50929. * @memberof game
  50930. * @classdesc Represents a level_gift_data_rsp.
  50931. * @implements Ilevel_gift_data_rsp
  50932. * @constructor
  50933. * @param {game.Ilevel_gift_data_rsp=} [properties] Properties to set
  50934. */
  50935. function level_gift_data_rsp(properties) {
  50936. if (properties)
  50937. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  50938. if (properties[keys[i]] != null)
  50939. this[keys[i]] = properties[keys[i]];
  50940. }
  50941. /**
  50942. * level_gift_data_rsp errno.
  50943. * @member {number|Long} errno
  50944. * @memberof game.level_gift_data_rsp
  50945. * @instance
  50946. */
  50947. level_gift_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  50948. /**
  50949. * Creates a new level_gift_data_rsp instance using the specified properties.
  50950. * @function create
  50951. * @memberof game.level_gift_data_rsp
  50952. * @static
  50953. * @param {game.Ilevel_gift_data_rsp=} [properties] Properties to set
  50954. * @returns {game.level_gift_data_rsp} level_gift_data_rsp instance
  50955. */
  50956. level_gift_data_rsp.create = function create(properties) {
  50957. return new level_gift_data_rsp(properties);
  50958. };
  50959. /**
  50960. * Encodes the specified level_gift_data_rsp message. Does not implicitly {@link game.level_gift_data_rsp.verify|verify} messages.
  50961. * @function encode
  50962. * @memberof game.level_gift_data_rsp
  50963. * @static
  50964. * @param {game.Ilevel_gift_data_rsp} message level_gift_data_rsp message or plain object to encode
  50965. * @param {$protobuf.Writer} [writer] Writer to encode to
  50966. * @returns {$protobuf.Writer} Writer
  50967. */
  50968. level_gift_data_rsp.encode = function encode(message, writer) {
  50969. if (!writer)
  50970. writer = $Writer.create();
  50971. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  50972. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  50973. return writer;
  50974. };
  50975. /**
  50976. * Encodes the specified level_gift_data_rsp message, length delimited. Does not implicitly {@link game.level_gift_data_rsp.verify|verify} messages.
  50977. * @function encodeDelimited
  50978. * @memberof game.level_gift_data_rsp
  50979. * @static
  50980. * @param {game.Ilevel_gift_data_rsp} message level_gift_data_rsp message or plain object to encode
  50981. * @param {$protobuf.Writer} [writer] Writer to encode to
  50982. * @returns {$protobuf.Writer} Writer
  50983. */
  50984. level_gift_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  50985. return this.encode(message, writer).ldelim();
  50986. };
  50987. /**
  50988. * Decodes a level_gift_data_rsp message from the specified reader or buffer.
  50989. * @function decode
  50990. * @memberof game.level_gift_data_rsp
  50991. * @static
  50992. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  50993. * @param {number} [length] Message length if known beforehand
  50994. * @returns {game.level_gift_data_rsp} level_gift_data_rsp
  50995. * @throws {Error} If the payload is not a reader or valid buffer
  50996. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  50997. */
  50998. level_gift_data_rsp.decode = function decode(reader, length) {
  50999. if (!(reader instanceof $Reader))
  51000. reader = $Reader.create(reader);
  51001. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.level_gift_data_rsp();
  51002. while (reader.pos < end) {
  51003. let tag = reader.uint32();
  51004. switch (tag >>> 3) {
  51005. case 1:
  51006. message.errno = reader.int64();
  51007. break;
  51008. default:
  51009. reader.skipType(tag & 7);
  51010. break;
  51011. }
  51012. }
  51013. return message;
  51014. };
  51015. /**
  51016. * Decodes a level_gift_data_rsp message from the specified reader or buffer, length delimited.
  51017. * @function decodeDelimited
  51018. * @memberof game.level_gift_data_rsp
  51019. * @static
  51020. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  51021. * @returns {game.level_gift_data_rsp} level_gift_data_rsp
  51022. * @throws {Error} If the payload is not a reader or valid buffer
  51023. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  51024. */
  51025. level_gift_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  51026. if (!(reader instanceof $Reader))
  51027. reader = new $Reader(reader);
  51028. return this.decode(reader, reader.uint32());
  51029. };
  51030. /**
  51031. * Verifies a level_gift_data_rsp message.
  51032. * @function verify
  51033. * @memberof game.level_gift_data_rsp
  51034. * @static
  51035. * @param {Object.<string,*>} message Plain object to verify
  51036. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  51037. */
  51038. level_gift_data_rsp.verify = function verify(message) {
  51039. if (typeof message !== "object" || message === null)
  51040. return "object expected";
  51041. if (message.errno != null && message.hasOwnProperty("errno"))
  51042. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  51043. return "errno: integer|Long expected";
  51044. return null;
  51045. };
  51046. /**
  51047. * Creates a level_gift_data_rsp message from a plain object. Also converts values to their respective internal types.
  51048. * @function fromObject
  51049. * @memberof game.level_gift_data_rsp
  51050. * @static
  51051. * @param {Object.<string,*>} object Plain object
  51052. * @returns {game.level_gift_data_rsp} level_gift_data_rsp
  51053. */
  51054. level_gift_data_rsp.fromObject = function fromObject(object) {
  51055. if (object instanceof $root.game.level_gift_data_rsp)
  51056. return object;
  51057. let message = new $root.game.level_gift_data_rsp();
  51058. if (object.errno != null)
  51059. if ($util.Long)
  51060. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  51061. else if (typeof object.errno === "string")
  51062. message.errno = parseInt(object.errno, 10);
  51063. else if (typeof object.errno === "number")
  51064. message.errno = object.errno;
  51065. else if (typeof object.errno === "object")
  51066. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  51067. return message;
  51068. };
  51069. /**
  51070. * Creates a plain object from a level_gift_data_rsp message. Also converts values to other types if specified.
  51071. * @function toObject
  51072. * @memberof game.level_gift_data_rsp
  51073. * @static
  51074. * @param {game.level_gift_data_rsp} message level_gift_data_rsp
  51075. * @param {$protobuf.IConversionOptions} [options] Conversion options
  51076. * @returns {Object.<string,*>} Plain object
  51077. */
  51078. level_gift_data_rsp.toObject = function toObject(message, options) {
  51079. if (!options)
  51080. options = {};
  51081. let object = {};
  51082. if (options.defaults)
  51083. if ($util.Long) {
  51084. let long = new $util.Long(0, 0, false);
  51085. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  51086. } else
  51087. object.errno = options.longs === String ? "0" : 0;
  51088. if (message.errno != null && message.hasOwnProperty("errno"))
  51089. if (typeof message.errno === "number")
  51090. object.errno = options.longs === String ? String(message.errno) : message.errno;
  51091. else
  51092. 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;
  51093. return object;
  51094. };
  51095. /**
  51096. * Converts this level_gift_data_rsp to JSON.
  51097. * @function toJSON
  51098. * @memberof game.level_gift_data_rsp
  51099. * @instance
  51100. * @returns {Object.<string,*>} JSON object
  51101. */
  51102. level_gift_data_rsp.prototype.toJSON = function toJSON() {
  51103. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  51104. };
  51105. return level_gift_data_rsp;
  51106. })();
  51107. game.level_gift_buy = (function() {
  51108. /**
  51109. * Properties of a level_gift_buy.
  51110. * @memberof game
  51111. * @interface Ilevel_gift_buy
  51112. * @property {number|Long|null} [id] level_gift_buy id
  51113. */
  51114. /**
  51115. * Constructs a new level_gift_buy.
  51116. * @memberof game
  51117. * @classdesc Represents a level_gift_buy.
  51118. * @implements Ilevel_gift_buy
  51119. * @constructor
  51120. * @param {game.Ilevel_gift_buy=} [properties] Properties to set
  51121. */
  51122. function level_gift_buy(properties) {
  51123. if (properties)
  51124. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  51125. if (properties[keys[i]] != null)
  51126. this[keys[i]] = properties[keys[i]];
  51127. }
  51128. /**
  51129. * level_gift_buy id.
  51130. * @member {number|Long} id
  51131. * @memberof game.level_gift_buy
  51132. * @instance
  51133. */
  51134. level_gift_buy.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  51135. /**
  51136. * Creates a new level_gift_buy instance using the specified properties.
  51137. * @function create
  51138. * @memberof game.level_gift_buy
  51139. * @static
  51140. * @param {game.Ilevel_gift_buy=} [properties] Properties to set
  51141. * @returns {game.level_gift_buy} level_gift_buy instance
  51142. */
  51143. level_gift_buy.create = function create(properties) {
  51144. return new level_gift_buy(properties);
  51145. };
  51146. /**
  51147. * Encodes the specified level_gift_buy message. Does not implicitly {@link game.level_gift_buy.verify|verify} messages.
  51148. * @function encode
  51149. * @memberof game.level_gift_buy
  51150. * @static
  51151. * @param {game.Ilevel_gift_buy} message level_gift_buy message or plain object to encode
  51152. * @param {$protobuf.Writer} [writer] Writer to encode to
  51153. * @returns {$protobuf.Writer} Writer
  51154. */
  51155. level_gift_buy.encode = function encode(message, writer) {
  51156. if (!writer)
  51157. writer = $Writer.create();
  51158. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  51159. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id);
  51160. return writer;
  51161. };
  51162. /**
  51163. * Encodes the specified level_gift_buy message, length delimited. Does not implicitly {@link game.level_gift_buy.verify|verify} messages.
  51164. * @function encodeDelimited
  51165. * @memberof game.level_gift_buy
  51166. * @static
  51167. * @param {game.Ilevel_gift_buy} message level_gift_buy message or plain object to encode
  51168. * @param {$protobuf.Writer} [writer] Writer to encode to
  51169. * @returns {$protobuf.Writer} Writer
  51170. */
  51171. level_gift_buy.encodeDelimited = function encodeDelimited(message, writer) {
  51172. return this.encode(message, writer).ldelim();
  51173. };
  51174. /**
  51175. * Decodes a level_gift_buy message from the specified reader or buffer.
  51176. * @function decode
  51177. * @memberof game.level_gift_buy
  51178. * @static
  51179. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  51180. * @param {number} [length] Message length if known beforehand
  51181. * @returns {game.level_gift_buy} level_gift_buy
  51182. * @throws {Error} If the payload is not a reader or valid buffer
  51183. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  51184. */
  51185. level_gift_buy.decode = function decode(reader, length) {
  51186. if (!(reader instanceof $Reader))
  51187. reader = $Reader.create(reader);
  51188. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.level_gift_buy();
  51189. while (reader.pos < end) {
  51190. let tag = reader.uint32();
  51191. switch (tag >>> 3) {
  51192. case 2:
  51193. message.id = reader.int64();
  51194. break;
  51195. default:
  51196. reader.skipType(tag & 7);
  51197. break;
  51198. }
  51199. }
  51200. return message;
  51201. };
  51202. /**
  51203. * Decodes a level_gift_buy message from the specified reader or buffer, length delimited.
  51204. * @function decodeDelimited
  51205. * @memberof game.level_gift_buy
  51206. * @static
  51207. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  51208. * @returns {game.level_gift_buy} level_gift_buy
  51209. * @throws {Error} If the payload is not a reader or valid buffer
  51210. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  51211. */
  51212. level_gift_buy.decodeDelimited = function decodeDelimited(reader) {
  51213. if (!(reader instanceof $Reader))
  51214. reader = new $Reader(reader);
  51215. return this.decode(reader, reader.uint32());
  51216. };
  51217. /**
  51218. * Verifies a level_gift_buy message.
  51219. * @function verify
  51220. * @memberof game.level_gift_buy
  51221. * @static
  51222. * @param {Object.<string,*>} message Plain object to verify
  51223. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  51224. */
  51225. level_gift_buy.verify = function verify(message) {
  51226. if (typeof message !== "object" || message === null)
  51227. return "object expected";
  51228. if (message.id != null && message.hasOwnProperty("id"))
  51229. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  51230. return "id: integer|Long expected";
  51231. return null;
  51232. };
  51233. /**
  51234. * Creates a level_gift_buy message from a plain object. Also converts values to their respective internal types.
  51235. * @function fromObject
  51236. * @memberof game.level_gift_buy
  51237. * @static
  51238. * @param {Object.<string,*>} object Plain object
  51239. * @returns {game.level_gift_buy} level_gift_buy
  51240. */
  51241. level_gift_buy.fromObject = function fromObject(object) {
  51242. if (object instanceof $root.game.level_gift_buy)
  51243. return object;
  51244. let message = new $root.game.level_gift_buy();
  51245. if (object.id != null)
  51246. if ($util.Long)
  51247. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  51248. else if (typeof object.id === "string")
  51249. message.id = parseInt(object.id, 10);
  51250. else if (typeof object.id === "number")
  51251. message.id = object.id;
  51252. else if (typeof object.id === "object")
  51253. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  51254. return message;
  51255. };
  51256. /**
  51257. * Creates a plain object from a level_gift_buy message. Also converts values to other types if specified.
  51258. * @function toObject
  51259. * @memberof game.level_gift_buy
  51260. * @static
  51261. * @param {game.level_gift_buy} message level_gift_buy
  51262. * @param {$protobuf.IConversionOptions} [options] Conversion options
  51263. * @returns {Object.<string,*>} Plain object
  51264. */
  51265. level_gift_buy.toObject = function toObject(message, options) {
  51266. if (!options)
  51267. options = {};
  51268. let object = {};
  51269. if (options.defaults)
  51270. if ($util.Long) {
  51271. let long = new $util.Long(0, 0, false);
  51272. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  51273. } else
  51274. object.id = options.longs === String ? "0" : 0;
  51275. if (message.id != null && message.hasOwnProperty("id"))
  51276. if (typeof message.id === "number")
  51277. object.id = options.longs === String ? String(message.id) : message.id;
  51278. else
  51279. 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;
  51280. return object;
  51281. };
  51282. /**
  51283. * Converts this level_gift_buy to JSON.
  51284. * @function toJSON
  51285. * @memberof game.level_gift_buy
  51286. * @instance
  51287. * @returns {Object.<string,*>} JSON object
  51288. */
  51289. level_gift_buy.prototype.toJSON = function toJSON() {
  51290. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  51291. };
  51292. return level_gift_buy;
  51293. })();
  51294. game.level_gift_buy_rsp = (function() {
  51295. /**
  51296. * Properties of a level_gift_buy_rsp.
  51297. * @memberof game
  51298. * @interface Ilevel_gift_buy_rsp
  51299. * @property {number|Long|null} [errno] level_gift_buy_rsp errno
  51300. */
  51301. /**
  51302. * Constructs a new level_gift_buy_rsp.
  51303. * @memberof game
  51304. * @classdesc Represents a level_gift_buy_rsp.
  51305. * @implements Ilevel_gift_buy_rsp
  51306. * @constructor
  51307. * @param {game.Ilevel_gift_buy_rsp=} [properties] Properties to set
  51308. */
  51309. function level_gift_buy_rsp(properties) {
  51310. if (properties)
  51311. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  51312. if (properties[keys[i]] != null)
  51313. this[keys[i]] = properties[keys[i]];
  51314. }
  51315. /**
  51316. * level_gift_buy_rsp errno.
  51317. * @member {number|Long} errno
  51318. * @memberof game.level_gift_buy_rsp
  51319. * @instance
  51320. */
  51321. level_gift_buy_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  51322. /**
  51323. * Creates a new level_gift_buy_rsp instance using the specified properties.
  51324. * @function create
  51325. * @memberof game.level_gift_buy_rsp
  51326. * @static
  51327. * @param {game.Ilevel_gift_buy_rsp=} [properties] Properties to set
  51328. * @returns {game.level_gift_buy_rsp} level_gift_buy_rsp instance
  51329. */
  51330. level_gift_buy_rsp.create = function create(properties) {
  51331. return new level_gift_buy_rsp(properties);
  51332. };
  51333. /**
  51334. * Encodes the specified level_gift_buy_rsp message. Does not implicitly {@link game.level_gift_buy_rsp.verify|verify} messages.
  51335. * @function encode
  51336. * @memberof game.level_gift_buy_rsp
  51337. * @static
  51338. * @param {game.Ilevel_gift_buy_rsp} message level_gift_buy_rsp message or plain object to encode
  51339. * @param {$protobuf.Writer} [writer] Writer to encode to
  51340. * @returns {$protobuf.Writer} Writer
  51341. */
  51342. level_gift_buy_rsp.encode = function encode(message, writer) {
  51343. if (!writer)
  51344. writer = $Writer.create();
  51345. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  51346. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  51347. return writer;
  51348. };
  51349. /**
  51350. * Encodes the specified level_gift_buy_rsp message, length delimited. Does not implicitly {@link game.level_gift_buy_rsp.verify|verify} messages.
  51351. * @function encodeDelimited
  51352. * @memberof game.level_gift_buy_rsp
  51353. * @static
  51354. * @param {game.Ilevel_gift_buy_rsp} message level_gift_buy_rsp message or plain object to encode
  51355. * @param {$protobuf.Writer} [writer] Writer to encode to
  51356. * @returns {$protobuf.Writer} Writer
  51357. */
  51358. level_gift_buy_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  51359. return this.encode(message, writer).ldelim();
  51360. };
  51361. /**
  51362. * Decodes a level_gift_buy_rsp message from the specified reader or buffer.
  51363. * @function decode
  51364. * @memberof game.level_gift_buy_rsp
  51365. * @static
  51366. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  51367. * @param {number} [length] Message length if known beforehand
  51368. * @returns {game.level_gift_buy_rsp} level_gift_buy_rsp
  51369. * @throws {Error} If the payload is not a reader or valid buffer
  51370. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  51371. */
  51372. level_gift_buy_rsp.decode = function decode(reader, length) {
  51373. if (!(reader instanceof $Reader))
  51374. reader = $Reader.create(reader);
  51375. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.level_gift_buy_rsp();
  51376. while (reader.pos < end) {
  51377. let tag = reader.uint32();
  51378. switch (tag >>> 3) {
  51379. case 1:
  51380. message.errno = reader.int64();
  51381. break;
  51382. default:
  51383. reader.skipType(tag & 7);
  51384. break;
  51385. }
  51386. }
  51387. return message;
  51388. };
  51389. /**
  51390. * Decodes a level_gift_buy_rsp message from the specified reader or buffer, length delimited.
  51391. * @function decodeDelimited
  51392. * @memberof game.level_gift_buy_rsp
  51393. * @static
  51394. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  51395. * @returns {game.level_gift_buy_rsp} level_gift_buy_rsp
  51396. * @throws {Error} If the payload is not a reader or valid buffer
  51397. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  51398. */
  51399. level_gift_buy_rsp.decodeDelimited = function decodeDelimited(reader) {
  51400. if (!(reader instanceof $Reader))
  51401. reader = new $Reader(reader);
  51402. return this.decode(reader, reader.uint32());
  51403. };
  51404. /**
  51405. * Verifies a level_gift_buy_rsp message.
  51406. * @function verify
  51407. * @memberof game.level_gift_buy_rsp
  51408. * @static
  51409. * @param {Object.<string,*>} message Plain object to verify
  51410. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  51411. */
  51412. level_gift_buy_rsp.verify = function verify(message) {
  51413. if (typeof message !== "object" || message === null)
  51414. return "object expected";
  51415. if (message.errno != null && message.hasOwnProperty("errno"))
  51416. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  51417. return "errno: integer|Long expected";
  51418. return null;
  51419. };
  51420. /**
  51421. * Creates a level_gift_buy_rsp message from a plain object. Also converts values to their respective internal types.
  51422. * @function fromObject
  51423. * @memberof game.level_gift_buy_rsp
  51424. * @static
  51425. * @param {Object.<string,*>} object Plain object
  51426. * @returns {game.level_gift_buy_rsp} level_gift_buy_rsp
  51427. */
  51428. level_gift_buy_rsp.fromObject = function fromObject(object) {
  51429. if (object instanceof $root.game.level_gift_buy_rsp)
  51430. return object;
  51431. let message = new $root.game.level_gift_buy_rsp();
  51432. if (object.errno != null)
  51433. if ($util.Long)
  51434. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  51435. else if (typeof object.errno === "string")
  51436. message.errno = parseInt(object.errno, 10);
  51437. else if (typeof object.errno === "number")
  51438. message.errno = object.errno;
  51439. else if (typeof object.errno === "object")
  51440. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  51441. return message;
  51442. };
  51443. /**
  51444. * Creates a plain object from a level_gift_buy_rsp message. Also converts values to other types if specified.
  51445. * @function toObject
  51446. * @memberof game.level_gift_buy_rsp
  51447. * @static
  51448. * @param {game.level_gift_buy_rsp} message level_gift_buy_rsp
  51449. * @param {$protobuf.IConversionOptions} [options] Conversion options
  51450. * @returns {Object.<string,*>} Plain object
  51451. */
  51452. level_gift_buy_rsp.toObject = function toObject(message, options) {
  51453. if (!options)
  51454. options = {};
  51455. let object = {};
  51456. if (options.defaults)
  51457. if ($util.Long) {
  51458. let long = new $util.Long(0, 0, false);
  51459. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  51460. } else
  51461. object.errno = options.longs === String ? "0" : 0;
  51462. if (message.errno != null && message.hasOwnProperty("errno"))
  51463. if (typeof message.errno === "number")
  51464. object.errno = options.longs === String ? String(message.errno) : message.errno;
  51465. else
  51466. 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;
  51467. return object;
  51468. };
  51469. /**
  51470. * Converts this level_gift_buy_rsp to JSON.
  51471. * @function toJSON
  51472. * @memberof game.level_gift_buy_rsp
  51473. * @instance
  51474. * @returns {Object.<string,*>} JSON object
  51475. */
  51476. level_gift_buy_rsp.prototype.toJSON = function toJSON() {
  51477. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  51478. };
  51479. return level_gift_buy_rsp;
  51480. })();
  51481. game.level_gift_nty = (function() {
  51482. /**
  51483. * Properties of a level_gift_nty.
  51484. * @memberof game
  51485. * @interface Ilevel_gift_nty
  51486. * @property {Array.<game.Iid_num>|null} [list] level_gift_nty list
  51487. */
  51488. /**
  51489. * Constructs a new level_gift_nty.
  51490. * @memberof game
  51491. * @classdesc Represents a level_gift_nty.
  51492. * @implements Ilevel_gift_nty
  51493. * @constructor
  51494. * @param {game.Ilevel_gift_nty=} [properties] Properties to set
  51495. */
  51496. function level_gift_nty(properties) {
  51497. this.list = [];
  51498. if (properties)
  51499. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  51500. if (properties[keys[i]] != null)
  51501. this[keys[i]] = properties[keys[i]];
  51502. }
  51503. /**
  51504. * level_gift_nty list.
  51505. * @member {Array.<game.Iid_num>} list
  51506. * @memberof game.level_gift_nty
  51507. * @instance
  51508. */
  51509. level_gift_nty.prototype.list = $util.emptyArray;
  51510. /**
  51511. * Creates a new level_gift_nty instance using the specified properties.
  51512. * @function create
  51513. * @memberof game.level_gift_nty
  51514. * @static
  51515. * @param {game.Ilevel_gift_nty=} [properties] Properties to set
  51516. * @returns {game.level_gift_nty} level_gift_nty instance
  51517. */
  51518. level_gift_nty.create = function create(properties) {
  51519. return new level_gift_nty(properties);
  51520. };
  51521. /**
  51522. * Encodes the specified level_gift_nty message. Does not implicitly {@link game.level_gift_nty.verify|verify} messages.
  51523. * @function encode
  51524. * @memberof game.level_gift_nty
  51525. * @static
  51526. * @param {game.Ilevel_gift_nty} message level_gift_nty message or plain object to encode
  51527. * @param {$protobuf.Writer} [writer] Writer to encode to
  51528. * @returns {$protobuf.Writer} Writer
  51529. */
  51530. level_gift_nty.encode = function encode(message, writer) {
  51531. if (!writer)
  51532. writer = $Writer.create();
  51533. if (message.list != null && message.list.length)
  51534. for (let i = 0; i < message.list.length; ++i)
  51535. $root.game.id_num.encode(message.list[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
  51536. return writer;
  51537. };
  51538. /**
  51539. * Encodes the specified level_gift_nty message, length delimited. Does not implicitly {@link game.level_gift_nty.verify|verify} messages.
  51540. * @function encodeDelimited
  51541. * @memberof game.level_gift_nty
  51542. * @static
  51543. * @param {game.Ilevel_gift_nty} message level_gift_nty message or plain object to encode
  51544. * @param {$protobuf.Writer} [writer] Writer to encode to
  51545. * @returns {$protobuf.Writer} Writer
  51546. */
  51547. level_gift_nty.encodeDelimited = function encodeDelimited(message, writer) {
  51548. return this.encode(message, writer).ldelim();
  51549. };
  51550. /**
  51551. * Decodes a level_gift_nty message from the specified reader or buffer.
  51552. * @function decode
  51553. * @memberof game.level_gift_nty
  51554. * @static
  51555. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  51556. * @param {number} [length] Message length if known beforehand
  51557. * @returns {game.level_gift_nty} level_gift_nty
  51558. * @throws {Error} If the payload is not a reader or valid buffer
  51559. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  51560. */
  51561. level_gift_nty.decode = function decode(reader, length) {
  51562. if (!(reader instanceof $Reader))
  51563. reader = $Reader.create(reader);
  51564. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.level_gift_nty();
  51565. while (reader.pos < end) {
  51566. let tag = reader.uint32();
  51567. switch (tag >>> 3) {
  51568. case 1:
  51569. if (!(message.list && message.list.length))
  51570. message.list = [];
  51571. message.list.push($root.game.id_num.decode(reader, reader.uint32()));
  51572. break;
  51573. default:
  51574. reader.skipType(tag & 7);
  51575. break;
  51576. }
  51577. }
  51578. return message;
  51579. };
  51580. /**
  51581. * Decodes a level_gift_nty message from the specified reader or buffer, length delimited.
  51582. * @function decodeDelimited
  51583. * @memberof game.level_gift_nty
  51584. * @static
  51585. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  51586. * @returns {game.level_gift_nty} level_gift_nty
  51587. * @throws {Error} If the payload is not a reader or valid buffer
  51588. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  51589. */
  51590. level_gift_nty.decodeDelimited = function decodeDelimited(reader) {
  51591. if (!(reader instanceof $Reader))
  51592. reader = new $Reader(reader);
  51593. return this.decode(reader, reader.uint32());
  51594. };
  51595. /**
  51596. * Verifies a level_gift_nty message.
  51597. * @function verify
  51598. * @memberof game.level_gift_nty
  51599. * @static
  51600. * @param {Object.<string,*>} message Plain object to verify
  51601. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  51602. */
  51603. level_gift_nty.verify = function verify(message) {
  51604. if (typeof message !== "object" || message === null)
  51605. return "object expected";
  51606. if (message.list != null && message.hasOwnProperty("list")) {
  51607. if (!Array.isArray(message.list))
  51608. return "list: array expected";
  51609. for (let i = 0; i < message.list.length; ++i) {
  51610. let error = $root.game.id_num.verify(message.list[i]);
  51611. if (error)
  51612. return "list." + error;
  51613. }
  51614. }
  51615. return null;
  51616. };
  51617. /**
  51618. * Creates a level_gift_nty message from a plain object. Also converts values to their respective internal types.
  51619. * @function fromObject
  51620. * @memberof game.level_gift_nty
  51621. * @static
  51622. * @param {Object.<string,*>} object Plain object
  51623. * @returns {game.level_gift_nty} level_gift_nty
  51624. */
  51625. level_gift_nty.fromObject = function fromObject(object) {
  51626. if (object instanceof $root.game.level_gift_nty)
  51627. return object;
  51628. let message = new $root.game.level_gift_nty();
  51629. if (object.list) {
  51630. if (!Array.isArray(object.list))
  51631. throw TypeError(".game.level_gift_nty.list: array expected");
  51632. message.list = [];
  51633. for (let i = 0; i < object.list.length; ++i) {
  51634. if (typeof object.list[i] !== "object")
  51635. throw TypeError(".game.level_gift_nty.list: object expected");
  51636. message.list[i] = $root.game.id_num.fromObject(object.list[i]);
  51637. }
  51638. }
  51639. return message;
  51640. };
  51641. /**
  51642. * Creates a plain object from a level_gift_nty message. Also converts values to other types if specified.
  51643. * @function toObject
  51644. * @memberof game.level_gift_nty
  51645. * @static
  51646. * @param {game.level_gift_nty} message level_gift_nty
  51647. * @param {$protobuf.IConversionOptions} [options] Conversion options
  51648. * @returns {Object.<string,*>} Plain object
  51649. */
  51650. level_gift_nty.toObject = function toObject(message, options) {
  51651. if (!options)
  51652. options = {};
  51653. let object = {};
  51654. if (options.arrays || options.defaults)
  51655. object.list = [];
  51656. if (message.list && message.list.length) {
  51657. object.list = [];
  51658. for (let j = 0; j < message.list.length; ++j)
  51659. object.list[j] = $root.game.id_num.toObject(message.list[j], options);
  51660. }
  51661. return object;
  51662. };
  51663. /**
  51664. * Converts this level_gift_nty to JSON.
  51665. * @function toJSON
  51666. * @memberof game.level_gift_nty
  51667. * @instance
  51668. * @returns {Object.<string,*>} JSON object
  51669. */
  51670. level_gift_nty.prototype.toJSON = function toJSON() {
  51671. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  51672. };
  51673. return level_gift_nty;
  51674. })();
  51675. game.level_gift_del_red_point = (function() {
  51676. /**
  51677. * Properties of a level_gift_del_red_point.
  51678. * @memberof game
  51679. * @interface Ilevel_gift_del_red_point
  51680. */
  51681. /**
  51682. * Constructs a new level_gift_del_red_point.
  51683. * @memberof game
  51684. * @classdesc Represents a level_gift_del_red_point.
  51685. * @implements Ilevel_gift_del_red_point
  51686. * @constructor
  51687. * @param {game.Ilevel_gift_del_red_point=} [properties] Properties to set
  51688. */
  51689. function level_gift_del_red_point(properties) {
  51690. if (properties)
  51691. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  51692. if (properties[keys[i]] != null)
  51693. this[keys[i]] = properties[keys[i]];
  51694. }
  51695. /**
  51696. * Creates a new level_gift_del_red_point instance using the specified properties.
  51697. * @function create
  51698. * @memberof game.level_gift_del_red_point
  51699. * @static
  51700. * @param {game.Ilevel_gift_del_red_point=} [properties] Properties to set
  51701. * @returns {game.level_gift_del_red_point} level_gift_del_red_point instance
  51702. */
  51703. level_gift_del_red_point.create = function create(properties) {
  51704. return new level_gift_del_red_point(properties);
  51705. };
  51706. /**
  51707. * Encodes the specified level_gift_del_red_point message. Does not implicitly {@link game.level_gift_del_red_point.verify|verify} messages.
  51708. * @function encode
  51709. * @memberof game.level_gift_del_red_point
  51710. * @static
  51711. * @param {game.Ilevel_gift_del_red_point} message level_gift_del_red_point message or plain object to encode
  51712. * @param {$protobuf.Writer} [writer] Writer to encode to
  51713. * @returns {$protobuf.Writer} Writer
  51714. */
  51715. level_gift_del_red_point.encode = function encode(message, writer) {
  51716. if (!writer)
  51717. writer = $Writer.create();
  51718. return writer;
  51719. };
  51720. /**
  51721. * Encodes the specified level_gift_del_red_point message, length delimited. Does not implicitly {@link game.level_gift_del_red_point.verify|verify} messages.
  51722. * @function encodeDelimited
  51723. * @memberof game.level_gift_del_red_point
  51724. * @static
  51725. * @param {game.Ilevel_gift_del_red_point} message level_gift_del_red_point message or plain object to encode
  51726. * @param {$protobuf.Writer} [writer] Writer to encode to
  51727. * @returns {$protobuf.Writer} Writer
  51728. */
  51729. level_gift_del_red_point.encodeDelimited = function encodeDelimited(message, writer) {
  51730. return this.encode(message, writer).ldelim();
  51731. };
  51732. /**
  51733. * Decodes a level_gift_del_red_point message from the specified reader or buffer.
  51734. * @function decode
  51735. * @memberof game.level_gift_del_red_point
  51736. * @static
  51737. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  51738. * @param {number} [length] Message length if known beforehand
  51739. * @returns {game.level_gift_del_red_point} level_gift_del_red_point
  51740. * @throws {Error} If the payload is not a reader or valid buffer
  51741. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  51742. */
  51743. level_gift_del_red_point.decode = function decode(reader, length) {
  51744. if (!(reader instanceof $Reader))
  51745. reader = $Reader.create(reader);
  51746. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.level_gift_del_red_point();
  51747. while (reader.pos < end) {
  51748. let tag = reader.uint32();
  51749. switch (tag >>> 3) {
  51750. default:
  51751. reader.skipType(tag & 7);
  51752. break;
  51753. }
  51754. }
  51755. return message;
  51756. };
  51757. /**
  51758. * Decodes a level_gift_del_red_point message from the specified reader or buffer, length delimited.
  51759. * @function decodeDelimited
  51760. * @memberof game.level_gift_del_red_point
  51761. * @static
  51762. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  51763. * @returns {game.level_gift_del_red_point} level_gift_del_red_point
  51764. * @throws {Error} If the payload is not a reader or valid buffer
  51765. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  51766. */
  51767. level_gift_del_red_point.decodeDelimited = function decodeDelimited(reader) {
  51768. if (!(reader instanceof $Reader))
  51769. reader = new $Reader(reader);
  51770. return this.decode(reader, reader.uint32());
  51771. };
  51772. /**
  51773. * Verifies a level_gift_del_red_point message.
  51774. * @function verify
  51775. * @memberof game.level_gift_del_red_point
  51776. * @static
  51777. * @param {Object.<string,*>} message Plain object to verify
  51778. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  51779. */
  51780. level_gift_del_red_point.verify = function verify(message) {
  51781. if (typeof message !== "object" || message === null)
  51782. return "object expected";
  51783. return null;
  51784. };
  51785. /**
  51786. * Creates a level_gift_del_red_point message from a plain object. Also converts values to their respective internal types.
  51787. * @function fromObject
  51788. * @memberof game.level_gift_del_red_point
  51789. * @static
  51790. * @param {Object.<string,*>} object Plain object
  51791. * @returns {game.level_gift_del_red_point} level_gift_del_red_point
  51792. */
  51793. level_gift_del_red_point.fromObject = function fromObject(object) {
  51794. if (object instanceof $root.game.level_gift_del_red_point)
  51795. return object;
  51796. return new $root.game.level_gift_del_red_point();
  51797. };
  51798. /**
  51799. * Creates a plain object from a level_gift_del_red_point message. Also converts values to other types if specified.
  51800. * @function toObject
  51801. * @memberof game.level_gift_del_red_point
  51802. * @static
  51803. * @param {game.level_gift_del_red_point} message level_gift_del_red_point
  51804. * @param {$protobuf.IConversionOptions} [options] Conversion options
  51805. * @returns {Object.<string,*>} Plain object
  51806. */
  51807. level_gift_del_red_point.toObject = function toObject() {
  51808. return {};
  51809. };
  51810. /**
  51811. * Converts this level_gift_del_red_point to JSON.
  51812. * @function toJSON
  51813. * @memberof game.level_gift_del_red_point
  51814. * @instance
  51815. * @returns {Object.<string,*>} JSON object
  51816. */
  51817. level_gift_del_red_point.prototype.toJSON = function toJSON() {
  51818. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  51819. };
  51820. return level_gift_del_red_point;
  51821. })();
  51822. game.level_gift_del_red_point_rsp = (function() {
  51823. /**
  51824. * Properties of a level_gift_del_red_point_rsp.
  51825. * @memberof game
  51826. * @interface Ilevel_gift_del_red_point_rsp
  51827. * @property {number|Long|null} [errno] level_gift_del_red_point_rsp errno
  51828. */
  51829. /**
  51830. * Constructs a new level_gift_del_red_point_rsp.
  51831. * @memberof game
  51832. * @classdesc Represents a level_gift_del_red_point_rsp.
  51833. * @implements Ilevel_gift_del_red_point_rsp
  51834. * @constructor
  51835. * @param {game.Ilevel_gift_del_red_point_rsp=} [properties] Properties to set
  51836. */
  51837. function level_gift_del_red_point_rsp(properties) {
  51838. if (properties)
  51839. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  51840. if (properties[keys[i]] != null)
  51841. this[keys[i]] = properties[keys[i]];
  51842. }
  51843. /**
  51844. * level_gift_del_red_point_rsp errno.
  51845. * @member {number|Long} errno
  51846. * @memberof game.level_gift_del_red_point_rsp
  51847. * @instance
  51848. */
  51849. level_gift_del_red_point_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  51850. /**
  51851. * Creates a new level_gift_del_red_point_rsp instance using the specified properties.
  51852. * @function create
  51853. * @memberof game.level_gift_del_red_point_rsp
  51854. * @static
  51855. * @param {game.Ilevel_gift_del_red_point_rsp=} [properties] Properties to set
  51856. * @returns {game.level_gift_del_red_point_rsp} level_gift_del_red_point_rsp instance
  51857. */
  51858. level_gift_del_red_point_rsp.create = function create(properties) {
  51859. return new level_gift_del_red_point_rsp(properties);
  51860. };
  51861. /**
  51862. * Encodes the specified level_gift_del_red_point_rsp message. Does not implicitly {@link game.level_gift_del_red_point_rsp.verify|verify} messages.
  51863. * @function encode
  51864. * @memberof game.level_gift_del_red_point_rsp
  51865. * @static
  51866. * @param {game.Ilevel_gift_del_red_point_rsp} message level_gift_del_red_point_rsp message or plain object to encode
  51867. * @param {$protobuf.Writer} [writer] Writer to encode to
  51868. * @returns {$protobuf.Writer} Writer
  51869. */
  51870. level_gift_del_red_point_rsp.encode = function encode(message, writer) {
  51871. if (!writer)
  51872. writer = $Writer.create();
  51873. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  51874. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  51875. return writer;
  51876. };
  51877. /**
  51878. * 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.
  51879. * @function encodeDelimited
  51880. * @memberof game.level_gift_del_red_point_rsp
  51881. * @static
  51882. * @param {game.Ilevel_gift_del_red_point_rsp} message level_gift_del_red_point_rsp message or plain object to encode
  51883. * @param {$protobuf.Writer} [writer] Writer to encode to
  51884. * @returns {$protobuf.Writer} Writer
  51885. */
  51886. level_gift_del_red_point_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  51887. return this.encode(message, writer).ldelim();
  51888. };
  51889. /**
  51890. * Decodes a level_gift_del_red_point_rsp message from the specified reader or buffer.
  51891. * @function decode
  51892. * @memberof game.level_gift_del_red_point_rsp
  51893. * @static
  51894. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  51895. * @param {number} [length] Message length if known beforehand
  51896. * @returns {game.level_gift_del_red_point_rsp} level_gift_del_red_point_rsp
  51897. * @throws {Error} If the payload is not a reader or valid buffer
  51898. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  51899. */
  51900. level_gift_del_red_point_rsp.decode = function decode(reader, length) {
  51901. if (!(reader instanceof $Reader))
  51902. reader = $Reader.create(reader);
  51903. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.level_gift_del_red_point_rsp();
  51904. while (reader.pos < end) {
  51905. let tag = reader.uint32();
  51906. switch (tag >>> 3) {
  51907. case 1:
  51908. message.errno = reader.int64();
  51909. break;
  51910. default:
  51911. reader.skipType(tag & 7);
  51912. break;
  51913. }
  51914. }
  51915. return message;
  51916. };
  51917. /**
  51918. * Decodes a level_gift_del_red_point_rsp message from the specified reader or buffer, length delimited.
  51919. * @function decodeDelimited
  51920. * @memberof game.level_gift_del_red_point_rsp
  51921. * @static
  51922. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  51923. * @returns {game.level_gift_del_red_point_rsp} level_gift_del_red_point_rsp
  51924. * @throws {Error} If the payload is not a reader or valid buffer
  51925. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  51926. */
  51927. level_gift_del_red_point_rsp.decodeDelimited = function decodeDelimited(reader) {
  51928. if (!(reader instanceof $Reader))
  51929. reader = new $Reader(reader);
  51930. return this.decode(reader, reader.uint32());
  51931. };
  51932. /**
  51933. * Verifies a level_gift_del_red_point_rsp message.
  51934. * @function verify
  51935. * @memberof game.level_gift_del_red_point_rsp
  51936. * @static
  51937. * @param {Object.<string,*>} message Plain object to verify
  51938. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  51939. */
  51940. level_gift_del_red_point_rsp.verify = function verify(message) {
  51941. if (typeof message !== "object" || message === null)
  51942. return "object expected";
  51943. if (message.errno != null && message.hasOwnProperty("errno"))
  51944. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  51945. return "errno: integer|Long expected";
  51946. return null;
  51947. };
  51948. /**
  51949. * Creates a level_gift_del_red_point_rsp message from a plain object. Also converts values to their respective internal types.
  51950. * @function fromObject
  51951. * @memberof game.level_gift_del_red_point_rsp
  51952. * @static
  51953. * @param {Object.<string,*>} object Plain object
  51954. * @returns {game.level_gift_del_red_point_rsp} level_gift_del_red_point_rsp
  51955. */
  51956. level_gift_del_red_point_rsp.fromObject = function fromObject(object) {
  51957. if (object instanceof $root.game.level_gift_del_red_point_rsp)
  51958. return object;
  51959. let message = new $root.game.level_gift_del_red_point_rsp();
  51960. if (object.errno != null)
  51961. if ($util.Long)
  51962. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  51963. else if (typeof object.errno === "string")
  51964. message.errno = parseInt(object.errno, 10);
  51965. else if (typeof object.errno === "number")
  51966. message.errno = object.errno;
  51967. else if (typeof object.errno === "object")
  51968. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  51969. return message;
  51970. };
  51971. /**
  51972. * Creates a plain object from a level_gift_del_red_point_rsp message. Also converts values to other types if specified.
  51973. * @function toObject
  51974. * @memberof game.level_gift_del_red_point_rsp
  51975. * @static
  51976. * @param {game.level_gift_del_red_point_rsp} message level_gift_del_red_point_rsp
  51977. * @param {$protobuf.IConversionOptions} [options] Conversion options
  51978. * @returns {Object.<string,*>} Plain object
  51979. */
  51980. level_gift_del_red_point_rsp.toObject = function toObject(message, options) {
  51981. if (!options)
  51982. options = {};
  51983. let object = {};
  51984. if (options.defaults)
  51985. if ($util.Long) {
  51986. let long = new $util.Long(0, 0, false);
  51987. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  51988. } else
  51989. object.errno = options.longs === String ? "0" : 0;
  51990. if (message.errno != null && message.hasOwnProperty("errno"))
  51991. if (typeof message.errno === "number")
  51992. object.errno = options.longs === String ? String(message.errno) : message.errno;
  51993. else
  51994. 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;
  51995. return object;
  51996. };
  51997. /**
  51998. * Converts this level_gift_del_red_point_rsp to JSON.
  51999. * @function toJSON
  52000. * @memberof game.level_gift_del_red_point_rsp
  52001. * @instance
  52002. * @returns {Object.<string,*>} JSON object
  52003. */
  52004. level_gift_del_red_point_rsp.prototype.toJSON = function toJSON() {
  52005. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  52006. };
  52007. return level_gift_del_red_point_rsp;
  52008. })();
  52009. game.lottery_data = (function() {
  52010. /**
  52011. * Properties of a lottery_data.
  52012. * @memberof game
  52013. * @interface Ilottery_data
  52014. */
  52015. /**
  52016. * Constructs a new lottery_data.
  52017. * @memberof game
  52018. * @classdesc Represents a lottery_data.
  52019. * @implements Ilottery_data
  52020. * @constructor
  52021. * @param {game.Ilottery_data=} [properties] Properties to set
  52022. */
  52023. function lottery_data(properties) {
  52024. if (properties)
  52025. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  52026. if (properties[keys[i]] != null)
  52027. this[keys[i]] = properties[keys[i]];
  52028. }
  52029. /**
  52030. * Creates a new lottery_data instance using the specified properties.
  52031. * @function create
  52032. * @memberof game.lottery_data
  52033. * @static
  52034. * @param {game.Ilottery_data=} [properties] Properties to set
  52035. * @returns {game.lottery_data} lottery_data instance
  52036. */
  52037. lottery_data.create = function create(properties) {
  52038. return new lottery_data(properties);
  52039. };
  52040. /**
  52041. * Encodes the specified lottery_data message. Does not implicitly {@link game.lottery_data.verify|verify} messages.
  52042. * @function encode
  52043. * @memberof game.lottery_data
  52044. * @static
  52045. * @param {game.Ilottery_data} message lottery_data message or plain object to encode
  52046. * @param {$protobuf.Writer} [writer] Writer to encode to
  52047. * @returns {$protobuf.Writer} Writer
  52048. */
  52049. lottery_data.encode = function encode(message, writer) {
  52050. if (!writer)
  52051. writer = $Writer.create();
  52052. return writer;
  52053. };
  52054. /**
  52055. * Encodes the specified lottery_data message, length delimited. Does not implicitly {@link game.lottery_data.verify|verify} messages.
  52056. * @function encodeDelimited
  52057. * @memberof game.lottery_data
  52058. * @static
  52059. * @param {game.Ilottery_data} message lottery_data message or plain object to encode
  52060. * @param {$protobuf.Writer} [writer] Writer to encode to
  52061. * @returns {$protobuf.Writer} Writer
  52062. */
  52063. lottery_data.encodeDelimited = function encodeDelimited(message, writer) {
  52064. return this.encode(message, writer).ldelim();
  52065. };
  52066. /**
  52067. * Decodes a lottery_data message from the specified reader or buffer.
  52068. * @function decode
  52069. * @memberof game.lottery_data
  52070. * @static
  52071. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  52072. * @param {number} [length] Message length if known beforehand
  52073. * @returns {game.lottery_data} lottery_data
  52074. * @throws {Error} If the payload is not a reader or valid buffer
  52075. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  52076. */
  52077. lottery_data.decode = function decode(reader, length) {
  52078. if (!(reader instanceof $Reader))
  52079. reader = $Reader.create(reader);
  52080. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.lottery_data();
  52081. while (reader.pos < end) {
  52082. let tag = reader.uint32();
  52083. switch (tag >>> 3) {
  52084. default:
  52085. reader.skipType(tag & 7);
  52086. break;
  52087. }
  52088. }
  52089. return message;
  52090. };
  52091. /**
  52092. * Decodes a lottery_data message from the specified reader or buffer, length delimited.
  52093. * @function decodeDelimited
  52094. * @memberof game.lottery_data
  52095. * @static
  52096. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  52097. * @returns {game.lottery_data} lottery_data
  52098. * @throws {Error} If the payload is not a reader or valid buffer
  52099. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  52100. */
  52101. lottery_data.decodeDelimited = function decodeDelimited(reader) {
  52102. if (!(reader instanceof $Reader))
  52103. reader = new $Reader(reader);
  52104. return this.decode(reader, reader.uint32());
  52105. };
  52106. /**
  52107. * Verifies a lottery_data message.
  52108. * @function verify
  52109. * @memberof game.lottery_data
  52110. * @static
  52111. * @param {Object.<string,*>} message Plain object to verify
  52112. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  52113. */
  52114. lottery_data.verify = function verify(message) {
  52115. if (typeof message !== "object" || message === null)
  52116. return "object expected";
  52117. return null;
  52118. };
  52119. /**
  52120. * Creates a lottery_data message from a plain object. Also converts values to their respective internal types.
  52121. * @function fromObject
  52122. * @memberof game.lottery_data
  52123. * @static
  52124. * @param {Object.<string,*>} object Plain object
  52125. * @returns {game.lottery_data} lottery_data
  52126. */
  52127. lottery_data.fromObject = function fromObject(object) {
  52128. if (object instanceof $root.game.lottery_data)
  52129. return object;
  52130. return new $root.game.lottery_data();
  52131. };
  52132. /**
  52133. * Creates a plain object from a lottery_data message. Also converts values to other types if specified.
  52134. * @function toObject
  52135. * @memberof game.lottery_data
  52136. * @static
  52137. * @param {game.lottery_data} message lottery_data
  52138. * @param {$protobuf.IConversionOptions} [options] Conversion options
  52139. * @returns {Object.<string,*>} Plain object
  52140. */
  52141. lottery_data.toObject = function toObject() {
  52142. return {};
  52143. };
  52144. /**
  52145. * Converts this lottery_data to JSON.
  52146. * @function toJSON
  52147. * @memberof game.lottery_data
  52148. * @instance
  52149. * @returns {Object.<string,*>} JSON object
  52150. */
  52151. lottery_data.prototype.toJSON = function toJSON() {
  52152. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  52153. };
  52154. return lottery_data;
  52155. })();
  52156. game.lottery_data_rsp = (function() {
  52157. /**
  52158. * Properties of a lottery_data_rsp.
  52159. * @memberof game
  52160. * @interface Ilottery_data_rsp
  52161. * @property {number|Long|null} [errno] lottery_data_rsp errno
  52162. */
  52163. /**
  52164. * Constructs a new lottery_data_rsp.
  52165. * @memberof game
  52166. * @classdesc Represents a lottery_data_rsp.
  52167. * @implements Ilottery_data_rsp
  52168. * @constructor
  52169. * @param {game.Ilottery_data_rsp=} [properties] Properties to set
  52170. */
  52171. function lottery_data_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_data_rsp errno.
  52179. * @member {number|Long} errno
  52180. * @memberof game.lottery_data_rsp
  52181. * @instance
  52182. */
  52183. lottery_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  52184. /**
  52185. * Creates a new lottery_data_rsp instance using the specified properties.
  52186. * @function create
  52187. * @memberof game.lottery_data_rsp
  52188. * @static
  52189. * @param {game.Ilottery_data_rsp=} [properties] Properties to set
  52190. * @returns {game.lottery_data_rsp} lottery_data_rsp instance
  52191. */
  52192. lottery_data_rsp.create = function create(properties) {
  52193. return new lottery_data_rsp(properties);
  52194. };
  52195. /**
  52196. * Encodes the specified lottery_data_rsp message. Does not implicitly {@link game.lottery_data_rsp.verify|verify} messages.
  52197. * @function encode
  52198. * @memberof game.lottery_data_rsp
  52199. * @static
  52200. * @param {game.Ilottery_data_rsp} message lottery_data_rsp message or plain object to encode
  52201. * @param {$protobuf.Writer} [writer] Writer to encode to
  52202. * @returns {$protobuf.Writer} Writer
  52203. */
  52204. lottery_data_rsp.encode = function encode(message, writer) {
  52205. if (!writer)
  52206. writer = $Writer.create();
  52207. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  52208. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  52209. return writer;
  52210. };
  52211. /**
  52212. * Encodes the specified lottery_data_rsp message, length delimited. Does not implicitly {@link game.lottery_data_rsp.verify|verify} messages.
  52213. * @function encodeDelimited
  52214. * @memberof game.lottery_data_rsp
  52215. * @static
  52216. * @param {game.Ilottery_data_rsp} message lottery_data_rsp message or plain object to encode
  52217. * @param {$protobuf.Writer} [writer] Writer to encode to
  52218. * @returns {$protobuf.Writer} Writer
  52219. */
  52220. lottery_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  52221. return this.encode(message, writer).ldelim();
  52222. };
  52223. /**
  52224. * Decodes a lottery_data_rsp message from the specified reader or buffer.
  52225. * @function decode
  52226. * @memberof game.lottery_data_rsp
  52227. * @static
  52228. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  52229. * @param {number} [length] Message length if known beforehand
  52230. * @returns {game.lottery_data_rsp} lottery_data_rsp
  52231. * @throws {Error} If the payload is not a reader or valid buffer
  52232. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  52233. */
  52234. lottery_data_rsp.decode = function decode(reader, length) {
  52235. if (!(reader instanceof $Reader))
  52236. reader = $Reader.create(reader);
  52237. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.lottery_data_rsp();
  52238. while (reader.pos < end) {
  52239. let tag = reader.uint32();
  52240. switch (tag >>> 3) {
  52241. case 1:
  52242. message.errno = reader.int64();
  52243. break;
  52244. default:
  52245. reader.skipType(tag & 7);
  52246. break;
  52247. }
  52248. }
  52249. return message;
  52250. };
  52251. /**
  52252. * Decodes a lottery_data_rsp message from the specified reader or buffer, length delimited.
  52253. * @function decodeDelimited
  52254. * @memberof game.lottery_data_rsp
  52255. * @static
  52256. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  52257. * @returns {game.lottery_data_rsp} lottery_data_rsp
  52258. * @throws {Error} If the payload is not a reader or valid buffer
  52259. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  52260. */
  52261. lottery_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  52262. if (!(reader instanceof $Reader))
  52263. reader = new $Reader(reader);
  52264. return this.decode(reader, reader.uint32());
  52265. };
  52266. /**
  52267. * Verifies a lottery_data_rsp message.
  52268. * @function verify
  52269. * @memberof game.lottery_data_rsp
  52270. * @static
  52271. * @param {Object.<string,*>} message Plain object to verify
  52272. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  52273. */
  52274. lottery_data_rsp.verify = function verify(message) {
  52275. if (typeof message !== "object" || message === null)
  52276. return "object expected";
  52277. if (message.errno != null && message.hasOwnProperty("errno"))
  52278. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  52279. return "errno: integer|Long expected";
  52280. return null;
  52281. };
  52282. /**
  52283. * Creates a lottery_data_rsp message from a plain object. Also converts values to their respective internal types.
  52284. * @function fromObject
  52285. * @memberof game.lottery_data_rsp
  52286. * @static
  52287. * @param {Object.<string,*>} object Plain object
  52288. * @returns {game.lottery_data_rsp} lottery_data_rsp
  52289. */
  52290. lottery_data_rsp.fromObject = function fromObject(object) {
  52291. if (object instanceof $root.game.lottery_data_rsp)
  52292. return object;
  52293. let message = new $root.game.lottery_data_rsp();
  52294. if (object.errno != null)
  52295. if ($util.Long)
  52296. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  52297. else if (typeof object.errno === "string")
  52298. message.errno = parseInt(object.errno, 10);
  52299. else if (typeof object.errno === "number")
  52300. message.errno = object.errno;
  52301. else if (typeof object.errno === "object")
  52302. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  52303. return message;
  52304. };
  52305. /**
  52306. * Creates a plain object from a lottery_data_rsp message. Also converts values to other types if specified.
  52307. * @function toObject
  52308. * @memberof game.lottery_data_rsp
  52309. * @static
  52310. * @param {game.lottery_data_rsp} message lottery_data_rsp
  52311. * @param {$protobuf.IConversionOptions} [options] Conversion options
  52312. * @returns {Object.<string,*>} Plain object
  52313. */
  52314. lottery_data_rsp.toObject = function toObject(message, options) {
  52315. if (!options)
  52316. options = {};
  52317. let object = {};
  52318. if (options.defaults)
  52319. if ($util.Long) {
  52320. let long = new $util.Long(0, 0, false);
  52321. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  52322. } else
  52323. object.errno = options.longs === String ? "0" : 0;
  52324. if (message.errno != null && message.hasOwnProperty("errno"))
  52325. if (typeof message.errno === "number")
  52326. object.errno = options.longs === String ? String(message.errno) : message.errno;
  52327. else
  52328. 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;
  52329. return object;
  52330. };
  52331. /**
  52332. * Converts this lottery_data_rsp to JSON.
  52333. * @function toJSON
  52334. * @memberof game.lottery_data_rsp
  52335. * @instance
  52336. * @returns {Object.<string,*>} JSON object
  52337. */
  52338. lottery_data_rsp.prototype.toJSON = function toJSON() {
  52339. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  52340. };
  52341. return lottery_data_rsp;
  52342. })();
  52343. game.lottery_award = (function() {
  52344. /**
  52345. * Properties of a lottery_award.
  52346. * @memberof game
  52347. * @interface Ilottery_award
  52348. * @property {boolean|null} [free] lottery_award free
  52349. */
  52350. /**
  52351. * Constructs a new lottery_award.
  52352. * @memberof game
  52353. * @classdesc Represents a lottery_award.
  52354. * @implements Ilottery_award
  52355. * @constructor
  52356. * @param {game.Ilottery_award=} [properties] Properties to set
  52357. */
  52358. function lottery_award(properties) {
  52359. if (properties)
  52360. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  52361. if (properties[keys[i]] != null)
  52362. this[keys[i]] = properties[keys[i]];
  52363. }
  52364. /**
  52365. * lottery_award free.
  52366. * @member {boolean} free
  52367. * @memberof game.lottery_award
  52368. * @instance
  52369. */
  52370. lottery_award.prototype.free = false;
  52371. /**
  52372. * Creates a new lottery_award instance using the specified properties.
  52373. * @function create
  52374. * @memberof game.lottery_award
  52375. * @static
  52376. * @param {game.Ilottery_award=} [properties] Properties to set
  52377. * @returns {game.lottery_award} lottery_award instance
  52378. */
  52379. lottery_award.create = function create(properties) {
  52380. return new lottery_award(properties);
  52381. };
  52382. /**
  52383. * Encodes the specified lottery_award message. Does not implicitly {@link game.lottery_award.verify|verify} messages.
  52384. * @function encode
  52385. * @memberof game.lottery_award
  52386. * @static
  52387. * @param {game.Ilottery_award} message lottery_award message or plain object to encode
  52388. * @param {$protobuf.Writer} [writer] Writer to encode to
  52389. * @returns {$protobuf.Writer} Writer
  52390. */
  52391. lottery_award.encode = function encode(message, writer) {
  52392. if (!writer)
  52393. writer = $Writer.create();
  52394. if (message.free != null && Object.hasOwnProperty.call(message, "free"))
  52395. writer.uint32(/* id 1, wireType 0 =*/8).bool(message.free);
  52396. return writer;
  52397. };
  52398. /**
  52399. * Encodes the specified lottery_award message, length delimited. Does not implicitly {@link game.lottery_award.verify|verify} messages.
  52400. * @function encodeDelimited
  52401. * @memberof game.lottery_award
  52402. * @static
  52403. * @param {game.Ilottery_award} message lottery_award message or plain object to encode
  52404. * @param {$protobuf.Writer} [writer] Writer to encode to
  52405. * @returns {$protobuf.Writer} Writer
  52406. */
  52407. lottery_award.encodeDelimited = function encodeDelimited(message, writer) {
  52408. return this.encode(message, writer).ldelim();
  52409. };
  52410. /**
  52411. * Decodes a lottery_award message from the specified reader or buffer.
  52412. * @function decode
  52413. * @memberof game.lottery_award
  52414. * @static
  52415. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  52416. * @param {number} [length] Message length if known beforehand
  52417. * @returns {game.lottery_award} lottery_award
  52418. * @throws {Error} If the payload is not a reader or valid buffer
  52419. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  52420. */
  52421. lottery_award.decode = function decode(reader, length) {
  52422. if (!(reader instanceof $Reader))
  52423. reader = $Reader.create(reader);
  52424. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.lottery_award();
  52425. while (reader.pos < end) {
  52426. let tag = reader.uint32();
  52427. switch (tag >>> 3) {
  52428. case 1:
  52429. message.free = reader.bool();
  52430. break;
  52431. default:
  52432. reader.skipType(tag & 7);
  52433. break;
  52434. }
  52435. }
  52436. return message;
  52437. };
  52438. /**
  52439. * Decodes a lottery_award message from the specified reader or buffer, length delimited.
  52440. * @function decodeDelimited
  52441. * @memberof game.lottery_award
  52442. * @static
  52443. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  52444. * @returns {game.lottery_award} lottery_award
  52445. * @throws {Error} If the payload is not a reader or valid buffer
  52446. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  52447. */
  52448. lottery_award.decodeDelimited = function decodeDelimited(reader) {
  52449. if (!(reader instanceof $Reader))
  52450. reader = new $Reader(reader);
  52451. return this.decode(reader, reader.uint32());
  52452. };
  52453. /**
  52454. * Verifies a lottery_award message.
  52455. * @function verify
  52456. * @memberof game.lottery_award
  52457. * @static
  52458. * @param {Object.<string,*>} message Plain object to verify
  52459. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  52460. */
  52461. lottery_award.verify = function verify(message) {
  52462. if (typeof message !== "object" || message === null)
  52463. return "object expected";
  52464. if (message.free != null && message.hasOwnProperty("free"))
  52465. if (typeof message.free !== "boolean")
  52466. return "free: boolean expected";
  52467. return null;
  52468. };
  52469. /**
  52470. * Creates a lottery_award message from a plain object. Also converts values to their respective internal types.
  52471. * @function fromObject
  52472. * @memberof game.lottery_award
  52473. * @static
  52474. * @param {Object.<string,*>} object Plain object
  52475. * @returns {game.lottery_award} lottery_award
  52476. */
  52477. lottery_award.fromObject = function fromObject(object) {
  52478. if (object instanceof $root.game.lottery_award)
  52479. return object;
  52480. let message = new $root.game.lottery_award();
  52481. if (object.free != null)
  52482. message.free = Boolean(object.free);
  52483. return message;
  52484. };
  52485. /**
  52486. * Creates a plain object from a lottery_award message. Also converts values to other types if specified.
  52487. * @function toObject
  52488. * @memberof game.lottery_award
  52489. * @static
  52490. * @param {game.lottery_award} message lottery_award
  52491. * @param {$protobuf.IConversionOptions} [options] Conversion options
  52492. * @returns {Object.<string,*>} Plain object
  52493. */
  52494. lottery_award.toObject = function toObject(message, options) {
  52495. if (!options)
  52496. options = {};
  52497. let object = {};
  52498. if (options.defaults)
  52499. object.free = false;
  52500. if (message.free != null && message.hasOwnProperty("free"))
  52501. object.free = message.free;
  52502. return object;
  52503. };
  52504. /**
  52505. * Converts this lottery_award to JSON.
  52506. * @function toJSON
  52507. * @memberof game.lottery_award
  52508. * @instance
  52509. * @returns {Object.<string,*>} JSON object
  52510. */
  52511. lottery_award.prototype.toJSON = function toJSON() {
  52512. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  52513. };
  52514. return lottery_award;
  52515. })();
  52516. game.lottery_award_rsp = (function() {
  52517. /**
  52518. * Properties of a lottery_award_rsp.
  52519. * @memberof game
  52520. * @interface Ilottery_award_rsp
  52521. * @property {number|Long|null} [errno] lottery_award_rsp errno
  52522. * @property {boolean|null} [free] lottery_award_rsp free
  52523. * @property {number|Long|null} [award] lottery_award_rsp award
  52524. */
  52525. /**
  52526. * Constructs a new lottery_award_rsp.
  52527. * @memberof game
  52528. * @classdesc Represents a lottery_award_rsp.
  52529. * @implements Ilottery_award_rsp
  52530. * @constructor
  52531. * @param {game.Ilottery_award_rsp=} [properties] Properties to set
  52532. */
  52533. function lottery_award_rsp(properties) {
  52534. if (properties)
  52535. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  52536. if (properties[keys[i]] != null)
  52537. this[keys[i]] = properties[keys[i]];
  52538. }
  52539. /**
  52540. * lottery_award_rsp errno.
  52541. * @member {number|Long} errno
  52542. * @memberof game.lottery_award_rsp
  52543. * @instance
  52544. */
  52545. lottery_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  52546. /**
  52547. * lottery_award_rsp free.
  52548. * @member {boolean} free
  52549. * @memberof game.lottery_award_rsp
  52550. * @instance
  52551. */
  52552. lottery_award_rsp.prototype.free = false;
  52553. /**
  52554. * lottery_award_rsp award.
  52555. * @member {number|Long} award
  52556. * @memberof game.lottery_award_rsp
  52557. * @instance
  52558. */
  52559. lottery_award_rsp.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  52560. /**
  52561. * Creates a new lottery_award_rsp instance using the specified properties.
  52562. * @function create
  52563. * @memberof game.lottery_award_rsp
  52564. * @static
  52565. * @param {game.Ilottery_award_rsp=} [properties] Properties to set
  52566. * @returns {game.lottery_award_rsp} lottery_award_rsp instance
  52567. */
  52568. lottery_award_rsp.create = function create(properties) {
  52569. return new lottery_award_rsp(properties);
  52570. };
  52571. /**
  52572. * Encodes the specified lottery_award_rsp message. Does not implicitly {@link game.lottery_award_rsp.verify|verify} messages.
  52573. * @function encode
  52574. * @memberof game.lottery_award_rsp
  52575. * @static
  52576. * @param {game.Ilottery_award_rsp} message lottery_award_rsp message or plain object to encode
  52577. * @param {$protobuf.Writer} [writer] Writer to encode to
  52578. * @returns {$protobuf.Writer} Writer
  52579. */
  52580. lottery_award_rsp.encode = function encode(message, writer) {
  52581. if (!writer)
  52582. writer = $Writer.create();
  52583. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  52584. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  52585. if (message.free != null && Object.hasOwnProperty.call(message, "free"))
  52586. writer.uint32(/* id 2, wireType 0 =*/16).bool(message.free);
  52587. if (message.award != null && Object.hasOwnProperty.call(message, "award"))
  52588. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.award);
  52589. return writer;
  52590. };
  52591. /**
  52592. * Encodes the specified lottery_award_rsp message, length delimited. Does not implicitly {@link game.lottery_award_rsp.verify|verify} messages.
  52593. * @function encodeDelimited
  52594. * @memberof game.lottery_award_rsp
  52595. * @static
  52596. * @param {game.Ilottery_award_rsp} message lottery_award_rsp message or plain object to encode
  52597. * @param {$protobuf.Writer} [writer] Writer to encode to
  52598. * @returns {$protobuf.Writer} Writer
  52599. */
  52600. lottery_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  52601. return this.encode(message, writer).ldelim();
  52602. };
  52603. /**
  52604. * Decodes a lottery_award_rsp message from the specified reader or buffer.
  52605. * @function decode
  52606. * @memberof game.lottery_award_rsp
  52607. * @static
  52608. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  52609. * @param {number} [length] Message length if known beforehand
  52610. * @returns {game.lottery_award_rsp} lottery_award_rsp
  52611. * @throws {Error} If the payload is not a reader or valid buffer
  52612. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  52613. */
  52614. lottery_award_rsp.decode = function decode(reader, length) {
  52615. if (!(reader instanceof $Reader))
  52616. reader = $Reader.create(reader);
  52617. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.lottery_award_rsp();
  52618. while (reader.pos < end) {
  52619. let tag = reader.uint32();
  52620. switch (tag >>> 3) {
  52621. case 1:
  52622. message.errno = reader.int64();
  52623. break;
  52624. case 2:
  52625. message.free = reader.bool();
  52626. break;
  52627. case 3:
  52628. message.award = reader.int64();
  52629. break;
  52630. default:
  52631. reader.skipType(tag & 7);
  52632. break;
  52633. }
  52634. }
  52635. return message;
  52636. };
  52637. /**
  52638. * Decodes a lottery_award_rsp message from the specified reader or buffer, length delimited.
  52639. * @function decodeDelimited
  52640. * @memberof game.lottery_award_rsp
  52641. * @static
  52642. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  52643. * @returns {game.lottery_award_rsp} lottery_award_rsp
  52644. * @throws {Error} If the payload is not a reader or valid buffer
  52645. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  52646. */
  52647. lottery_award_rsp.decodeDelimited = function decodeDelimited(reader) {
  52648. if (!(reader instanceof $Reader))
  52649. reader = new $Reader(reader);
  52650. return this.decode(reader, reader.uint32());
  52651. };
  52652. /**
  52653. * Verifies a lottery_award_rsp message.
  52654. * @function verify
  52655. * @memberof game.lottery_award_rsp
  52656. * @static
  52657. * @param {Object.<string,*>} message Plain object to verify
  52658. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  52659. */
  52660. lottery_award_rsp.verify = function verify(message) {
  52661. if (typeof message !== "object" || message === null)
  52662. return "object expected";
  52663. if (message.errno != null && message.hasOwnProperty("errno"))
  52664. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  52665. return "errno: integer|Long expected";
  52666. if (message.free != null && message.hasOwnProperty("free"))
  52667. if (typeof message.free !== "boolean")
  52668. return "free: boolean expected";
  52669. if (message.award != null && message.hasOwnProperty("award"))
  52670. if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
  52671. return "award: integer|Long expected";
  52672. return null;
  52673. };
  52674. /**
  52675. * Creates a lottery_award_rsp message from a plain object. Also converts values to their respective internal types.
  52676. * @function fromObject
  52677. * @memberof game.lottery_award_rsp
  52678. * @static
  52679. * @param {Object.<string,*>} object Plain object
  52680. * @returns {game.lottery_award_rsp} lottery_award_rsp
  52681. */
  52682. lottery_award_rsp.fromObject = function fromObject(object) {
  52683. if (object instanceof $root.game.lottery_award_rsp)
  52684. return object;
  52685. let message = new $root.game.lottery_award_rsp();
  52686. if (object.errno != null)
  52687. if ($util.Long)
  52688. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  52689. else if (typeof object.errno === "string")
  52690. message.errno = parseInt(object.errno, 10);
  52691. else if (typeof object.errno === "number")
  52692. message.errno = object.errno;
  52693. else if (typeof object.errno === "object")
  52694. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  52695. if (object.free != null)
  52696. message.free = Boolean(object.free);
  52697. if (object.award != null)
  52698. if ($util.Long)
  52699. (message.award = $util.Long.fromValue(object.award)).unsigned = false;
  52700. else if (typeof object.award === "string")
  52701. message.award = parseInt(object.award, 10);
  52702. else if (typeof object.award === "number")
  52703. message.award = object.award;
  52704. else if (typeof object.award === "object")
  52705. message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
  52706. return message;
  52707. };
  52708. /**
  52709. * Creates a plain object from a lottery_award_rsp message. Also converts values to other types if specified.
  52710. * @function toObject
  52711. * @memberof game.lottery_award_rsp
  52712. * @static
  52713. * @param {game.lottery_award_rsp} message lottery_award_rsp
  52714. * @param {$protobuf.IConversionOptions} [options] Conversion options
  52715. * @returns {Object.<string,*>} Plain object
  52716. */
  52717. lottery_award_rsp.toObject = function toObject(message, options) {
  52718. if (!options)
  52719. options = {};
  52720. let object = {};
  52721. if (options.defaults) {
  52722. if ($util.Long) {
  52723. let long = new $util.Long(0, 0, false);
  52724. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  52725. } else
  52726. object.errno = options.longs === String ? "0" : 0;
  52727. object.free = false;
  52728. if ($util.Long) {
  52729. let long = new $util.Long(0, 0, false);
  52730. object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  52731. } else
  52732. object.award = options.longs === String ? "0" : 0;
  52733. }
  52734. if (message.errno != null && message.hasOwnProperty("errno"))
  52735. if (typeof message.errno === "number")
  52736. object.errno = options.longs === String ? String(message.errno) : message.errno;
  52737. else
  52738. 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;
  52739. if (message.free != null && message.hasOwnProperty("free"))
  52740. object.free = message.free;
  52741. if (message.award != null && message.hasOwnProperty("award"))
  52742. if (typeof message.award === "number")
  52743. object.award = options.longs === String ? String(message.award) : message.award;
  52744. else
  52745. 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;
  52746. return object;
  52747. };
  52748. /**
  52749. * Converts this lottery_award_rsp to JSON.
  52750. * @function toJSON
  52751. * @memberof game.lottery_award_rsp
  52752. * @instance
  52753. * @returns {Object.<string,*>} JSON object
  52754. */
  52755. lottery_award_rsp.prototype.toJSON = function toJSON() {
  52756. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  52757. };
  52758. return lottery_award_rsp;
  52759. })();
  52760. game.lottery_buy = (function() {
  52761. /**
  52762. * Properties of a lottery_buy.
  52763. * @memberof game
  52764. * @interface Ilottery_buy
  52765. */
  52766. /**
  52767. * Constructs a new lottery_buy.
  52768. * @memberof game
  52769. * @classdesc Represents a lottery_buy.
  52770. * @implements Ilottery_buy
  52771. * @constructor
  52772. * @param {game.Ilottery_buy=} [properties] Properties to set
  52773. */
  52774. function lottery_buy(properties) {
  52775. if (properties)
  52776. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  52777. if (properties[keys[i]] != null)
  52778. this[keys[i]] = properties[keys[i]];
  52779. }
  52780. /**
  52781. * Creates a new lottery_buy instance using the specified properties.
  52782. * @function create
  52783. * @memberof game.lottery_buy
  52784. * @static
  52785. * @param {game.Ilottery_buy=} [properties] Properties to set
  52786. * @returns {game.lottery_buy} lottery_buy instance
  52787. */
  52788. lottery_buy.create = function create(properties) {
  52789. return new lottery_buy(properties);
  52790. };
  52791. /**
  52792. * Encodes the specified lottery_buy message. Does not implicitly {@link game.lottery_buy.verify|verify} messages.
  52793. * @function encode
  52794. * @memberof game.lottery_buy
  52795. * @static
  52796. * @param {game.Ilottery_buy} message lottery_buy message or plain object to encode
  52797. * @param {$protobuf.Writer} [writer] Writer to encode to
  52798. * @returns {$protobuf.Writer} Writer
  52799. */
  52800. lottery_buy.encode = function encode(message, writer) {
  52801. if (!writer)
  52802. writer = $Writer.create();
  52803. return writer;
  52804. };
  52805. /**
  52806. * Encodes the specified lottery_buy message, length delimited. Does not implicitly {@link game.lottery_buy.verify|verify} messages.
  52807. * @function encodeDelimited
  52808. * @memberof game.lottery_buy
  52809. * @static
  52810. * @param {game.Ilottery_buy} message lottery_buy message or plain object to encode
  52811. * @param {$protobuf.Writer} [writer] Writer to encode to
  52812. * @returns {$protobuf.Writer} Writer
  52813. */
  52814. lottery_buy.encodeDelimited = function encodeDelimited(message, writer) {
  52815. return this.encode(message, writer).ldelim();
  52816. };
  52817. /**
  52818. * Decodes a lottery_buy message from the specified reader or buffer.
  52819. * @function decode
  52820. * @memberof game.lottery_buy
  52821. * @static
  52822. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  52823. * @param {number} [length] Message length if known beforehand
  52824. * @returns {game.lottery_buy} lottery_buy
  52825. * @throws {Error} If the payload is not a reader or valid buffer
  52826. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  52827. */
  52828. lottery_buy.decode = function decode(reader, length) {
  52829. if (!(reader instanceof $Reader))
  52830. reader = $Reader.create(reader);
  52831. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.lottery_buy();
  52832. while (reader.pos < end) {
  52833. let tag = reader.uint32();
  52834. switch (tag >>> 3) {
  52835. default:
  52836. reader.skipType(tag & 7);
  52837. break;
  52838. }
  52839. }
  52840. return message;
  52841. };
  52842. /**
  52843. * Decodes a lottery_buy message from the specified reader or buffer, length delimited.
  52844. * @function decodeDelimited
  52845. * @memberof game.lottery_buy
  52846. * @static
  52847. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  52848. * @returns {game.lottery_buy} lottery_buy
  52849. * @throws {Error} If the payload is not a reader or valid buffer
  52850. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  52851. */
  52852. lottery_buy.decodeDelimited = function decodeDelimited(reader) {
  52853. if (!(reader instanceof $Reader))
  52854. reader = new $Reader(reader);
  52855. return this.decode(reader, reader.uint32());
  52856. };
  52857. /**
  52858. * Verifies a lottery_buy message.
  52859. * @function verify
  52860. * @memberof game.lottery_buy
  52861. * @static
  52862. * @param {Object.<string,*>} message Plain object to verify
  52863. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  52864. */
  52865. lottery_buy.verify = function verify(message) {
  52866. if (typeof message !== "object" || message === null)
  52867. return "object expected";
  52868. return null;
  52869. };
  52870. /**
  52871. * Creates a lottery_buy message from a plain object. Also converts values to their respective internal types.
  52872. * @function fromObject
  52873. * @memberof game.lottery_buy
  52874. * @static
  52875. * @param {Object.<string,*>} object Plain object
  52876. * @returns {game.lottery_buy} lottery_buy
  52877. */
  52878. lottery_buy.fromObject = function fromObject(object) {
  52879. if (object instanceof $root.game.lottery_buy)
  52880. return object;
  52881. return new $root.game.lottery_buy();
  52882. };
  52883. /**
  52884. * Creates a plain object from a lottery_buy message. Also converts values to other types if specified.
  52885. * @function toObject
  52886. * @memberof game.lottery_buy
  52887. * @static
  52888. * @param {game.lottery_buy} message lottery_buy
  52889. * @param {$protobuf.IConversionOptions} [options] Conversion options
  52890. * @returns {Object.<string,*>} Plain object
  52891. */
  52892. lottery_buy.toObject = function toObject() {
  52893. return {};
  52894. };
  52895. /**
  52896. * Converts this lottery_buy to JSON.
  52897. * @function toJSON
  52898. * @memberof game.lottery_buy
  52899. * @instance
  52900. * @returns {Object.<string,*>} JSON object
  52901. */
  52902. lottery_buy.prototype.toJSON = function toJSON() {
  52903. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  52904. };
  52905. return lottery_buy;
  52906. })();
  52907. game.lottery_buy_rsp = (function() {
  52908. /**
  52909. * Properties of a lottery_buy_rsp.
  52910. * @memberof game
  52911. * @interface Ilottery_buy_rsp
  52912. * @property {number|Long|null} [errno] lottery_buy_rsp errno
  52913. */
  52914. /**
  52915. * Constructs a new lottery_buy_rsp.
  52916. * @memberof game
  52917. * @classdesc Represents a lottery_buy_rsp.
  52918. * @implements Ilottery_buy_rsp
  52919. * @constructor
  52920. * @param {game.Ilottery_buy_rsp=} [properties] Properties to set
  52921. */
  52922. function lottery_buy_rsp(properties) {
  52923. if (properties)
  52924. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  52925. if (properties[keys[i]] != null)
  52926. this[keys[i]] = properties[keys[i]];
  52927. }
  52928. /**
  52929. * lottery_buy_rsp errno.
  52930. * @member {number|Long} errno
  52931. * @memberof game.lottery_buy_rsp
  52932. * @instance
  52933. */
  52934. lottery_buy_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  52935. /**
  52936. * Creates a new lottery_buy_rsp instance using the specified properties.
  52937. * @function create
  52938. * @memberof game.lottery_buy_rsp
  52939. * @static
  52940. * @param {game.Ilottery_buy_rsp=} [properties] Properties to set
  52941. * @returns {game.lottery_buy_rsp} lottery_buy_rsp instance
  52942. */
  52943. lottery_buy_rsp.create = function create(properties) {
  52944. return new lottery_buy_rsp(properties);
  52945. };
  52946. /**
  52947. * Encodes the specified lottery_buy_rsp message. Does not implicitly {@link game.lottery_buy_rsp.verify|verify} messages.
  52948. * @function encode
  52949. * @memberof game.lottery_buy_rsp
  52950. * @static
  52951. * @param {game.Ilottery_buy_rsp} message lottery_buy_rsp message or plain object to encode
  52952. * @param {$protobuf.Writer} [writer] Writer to encode to
  52953. * @returns {$protobuf.Writer} Writer
  52954. */
  52955. lottery_buy_rsp.encode = function encode(message, writer) {
  52956. if (!writer)
  52957. writer = $Writer.create();
  52958. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  52959. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  52960. return writer;
  52961. };
  52962. /**
  52963. * Encodes the specified lottery_buy_rsp message, length delimited. Does not implicitly {@link game.lottery_buy_rsp.verify|verify} messages.
  52964. * @function encodeDelimited
  52965. * @memberof game.lottery_buy_rsp
  52966. * @static
  52967. * @param {game.Ilottery_buy_rsp} message lottery_buy_rsp message or plain object to encode
  52968. * @param {$protobuf.Writer} [writer] Writer to encode to
  52969. * @returns {$protobuf.Writer} Writer
  52970. */
  52971. lottery_buy_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  52972. return this.encode(message, writer).ldelim();
  52973. };
  52974. /**
  52975. * Decodes a lottery_buy_rsp message from the specified reader or buffer.
  52976. * @function decode
  52977. * @memberof game.lottery_buy_rsp
  52978. * @static
  52979. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  52980. * @param {number} [length] Message length if known beforehand
  52981. * @returns {game.lottery_buy_rsp} lottery_buy_rsp
  52982. * @throws {Error} If the payload is not a reader or valid buffer
  52983. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  52984. */
  52985. lottery_buy_rsp.decode = function decode(reader, length) {
  52986. if (!(reader instanceof $Reader))
  52987. reader = $Reader.create(reader);
  52988. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.lottery_buy_rsp();
  52989. while (reader.pos < end) {
  52990. let tag = reader.uint32();
  52991. switch (tag >>> 3) {
  52992. case 1:
  52993. message.errno = reader.int64();
  52994. break;
  52995. default:
  52996. reader.skipType(tag & 7);
  52997. break;
  52998. }
  52999. }
  53000. return message;
  53001. };
  53002. /**
  53003. * Decodes a lottery_buy_rsp message from the specified reader or buffer, length delimited.
  53004. * @function decodeDelimited
  53005. * @memberof game.lottery_buy_rsp
  53006. * @static
  53007. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  53008. * @returns {game.lottery_buy_rsp} lottery_buy_rsp
  53009. * @throws {Error} If the payload is not a reader or valid buffer
  53010. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  53011. */
  53012. lottery_buy_rsp.decodeDelimited = function decodeDelimited(reader) {
  53013. if (!(reader instanceof $Reader))
  53014. reader = new $Reader(reader);
  53015. return this.decode(reader, reader.uint32());
  53016. };
  53017. /**
  53018. * Verifies a lottery_buy_rsp message.
  53019. * @function verify
  53020. * @memberof game.lottery_buy_rsp
  53021. * @static
  53022. * @param {Object.<string,*>} message Plain object to verify
  53023. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  53024. */
  53025. lottery_buy_rsp.verify = function verify(message) {
  53026. if (typeof message !== "object" || message === null)
  53027. return "object expected";
  53028. if (message.errno != null && message.hasOwnProperty("errno"))
  53029. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  53030. return "errno: integer|Long expected";
  53031. return null;
  53032. };
  53033. /**
  53034. * Creates a lottery_buy_rsp message from a plain object. Also converts values to their respective internal types.
  53035. * @function fromObject
  53036. * @memberof game.lottery_buy_rsp
  53037. * @static
  53038. * @param {Object.<string,*>} object Plain object
  53039. * @returns {game.lottery_buy_rsp} lottery_buy_rsp
  53040. */
  53041. lottery_buy_rsp.fromObject = function fromObject(object) {
  53042. if (object instanceof $root.game.lottery_buy_rsp)
  53043. return object;
  53044. let message = new $root.game.lottery_buy_rsp();
  53045. if (object.errno != null)
  53046. if ($util.Long)
  53047. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  53048. else if (typeof object.errno === "string")
  53049. message.errno = parseInt(object.errno, 10);
  53050. else if (typeof object.errno === "number")
  53051. message.errno = object.errno;
  53052. else if (typeof object.errno === "object")
  53053. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  53054. return message;
  53055. };
  53056. /**
  53057. * Creates a plain object from a lottery_buy_rsp message. Also converts values to other types if specified.
  53058. * @function toObject
  53059. * @memberof game.lottery_buy_rsp
  53060. * @static
  53061. * @param {game.lottery_buy_rsp} message lottery_buy_rsp
  53062. * @param {$protobuf.IConversionOptions} [options] Conversion options
  53063. * @returns {Object.<string,*>} Plain object
  53064. */
  53065. lottery_buy_rsp.toObject = function toObject(message, options) {
  53066. if (!options)
  53067. options = {};
  53068. let object = {};
  53069. if (options.defaults)
  53070. if ($util.Long) {
  53071. let long = new $util.Long(0, 0, false);
  53072. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  53073. } else
  53074. object.errno = options.longs === String ? "0" : 0;
  53075. if (message.errno != null && message.hasOwnProperty("errno"))
  53076. if (typeof message.errno === "number")
  53077. object.errno = options.longs === String ? String(message.errno) : message.errno;
  53078. else
  53079. 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;
  53080. return object;
  53081. };
  53082. /**
  53083. * Converts this lottery_buy_rsp to JSON.
  53084. * @function toJSON
  53085. * @memberof game.lottery_buy_rsp
  53086. * @instance
  53087. * @returns {Object.<string,*>} JSON object
  53088. */
  53089. lottery_buy_rsp.prototype.toJSON = function toJSON() {
  53090. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  53091. };
  53092. return lottery_buy_rsp;
  53093. })();
  53094. game.lottery_nty = (function() {
  53095. /**
  53096. * Properties of a lottery_nty.
  53097. * @memberof game
  53098. * @interface Ilottery_nty
  53099. * @property {number|Long|null} [state] lottery_nty state
  53100. * @property {number|Long|null} [free] lottery_nty free
  53101. * @property {number|Long|null} [award] lottery_nty award
  53102. * @property {number|Long|null} [day] lottery_nty day
  53103. */
  53104. /**
  53105. * Constructs a new lottery_nty.
  53106. * @memberof game
  53107. * @classdesc Represents a lottery_nty.
  53108. * @implements Ilottery_nty
  53109. * @constructor
  53110. * @param {game.Ilottery_nty=} [properties] Properties to set
  53111. */
  53112. function lottery_nty(properties) {
  53113. if (properties)
  53114. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  53115. if (properties[keys[i]] != null)
  53116. this[keys[i]] = properties[keys[i]];
  53117. }
  53118. /**
  53119. * lottery_nty state.
  53120. * @member {number|Long} state
  53121. * @memberof game.lottery_nty
  53122. * @instance
  53123. */
  53124. lottery_nty.prototype.state = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  53125. /**
  53126. * lottery_nty free.
  53127. * @member {number|Long} free
  53128. * @memberof game.lottery_nty
  53129. * @instance
  53130. */
  53131. lottery_nty.prototype.free = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  53132. /**
  53133. * lottery_nty award.
  53134. * @member {number|Long} award
  53135. * @memberof game.lottery_nty
  53136. * @instance
  53137. */
  53138. lottery_nty.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  53139. /**
  53140. * lottery_nty day.
  53141. * @member {number|Long} day
  53142. * @memberof game.lottery_nty
  53143. * @instance
  53144. */
  53145. lottery_nty.prototype.day = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  53146. /**
  53147. * Creates a new lottery_nty instance using the specified properties.
  53148. * @function create
  53149. * @memberof game.lottery_nty
  53150. * @static
  53151. * @param {game.Ilottery_nty=} [properties] Properties to set
  53152. * @returns {game.lottery_nty} lottery_nty instance
  53153. */
  53154. lottery_nty.create = function create(properties) {
  53155. return new lottery_nty(properties);
  53156. };
  53157. /**
  53158. * Encodes the specified lottery_nty message. Does not implicitly {@link game.lottery_nty.verify|verify} messages.
  53159. * @function encode
  53160. * @memberof game.lottery_nty
  53161. * @static
  53162. * @param {game.Ilottery_nty} message lottery_nty message or plain object to encode
  53163. * @param {$protobuf.Writer} [writer] Writer to encode to
  53164. * @returns {$protobuf.Writer} Writer
  53165. */
  53166. lottery_nty.encode = function encode(message, writer) {
  53167. if (!writer)
  53168. writer = $Writer.create();
  53169. if (message.state != null && Object.hasOwnProperty.call(message, "state"))
  53170. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.state);
  53171. if (message.free != null && Object.hasOwnProperty.call(message, "free"))
  53172. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.free);
  53173. if (message.award != null && Object.hasOwnProperty.call(message, "award"))
  53174. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.award);
  53175. if (message.day != null && Object.hasOwnProperty.call(message, "day"))
  53176. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.day);
  53177. return writer;
  53178. };
  53179. /**
  53180. * Encodes the specified lottery_nty message, length delimited. Does not implicitly {@link game.lottery_nty.verify|verify} messages.
  53181. * @function encodeDelimited
  53182. * @memberof game.lottery_nty
  53183. * @static
  53184. * @param {game.Ilottery_nty} message lottery_nty message or plain object to encode
  53185. * @param {$protobuf.Writer} [writer] Writer to encode to
  53186. * @returns {$protobuf.Writer} Writer
  53187. */
  53188. lottery_nty.encodeDelimited = function encodeDelimited(message, writer) {
  53189. return this.encode(message, writer).ldelim();
  53190. };
  53191. /**
  53192. * Decodes a lottery_nty message from the specified reader or buffer.
  53193. * @function decode
  53194. * @memberof game.lottery_nty
  53195. * @static
  53196. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  53197. * @param {number} [length] Message length if known beforehand
  53198. * @returns {game.lottery_nty} lottery_nty
  53199. * @throws {Error} If the payload is not a reader or valid buffer
  53200. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  53201. */
  53202. lottery_nty.decode = function decode(reader, length) {
  53203. if (!(reader instanceof $Reader))
  53204. reader = $Reader.create(reader);
  53205. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.lottery_nty();
  53206. while (reader.pos < end) {
  53207. let tag = reader.uint32();
  53208. switch (tag >>> 3) {
  53209. case 1:
  53210. message.state = reader.int64();
  53211. break;
  53212. case 2:
  53213. message.free = reader.int64();
  53214. break;
  53215. case 3:
  53216. message.award = reader.int64();
  53217. break;
  53218. case 4:
  53219. message.day = reader.int64();
  53220. break;
  53221. default:
  53222. reader.skipType(tag & 7);
  53223. break;
  53224. }
  53225. }
  53226. return message;
  53227. };
  53228. /**
  53229. * Decodes a lottery_nty message from the specified reader or buffer, length delimited.
  53230. * @function decodeDelimited
  53231. * @memberof game.lottery_nty
  53232. * @static
  53233. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  53234. * @returns {game.lottery_nty} lottery_nty
  53235. * @throws {Error} If the payload is not a reader or valid buffer
  53236. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  53237. */
  53238. lottery_nty.decodeDelimited = function decodeDelimited(reader) {
  53239. if (!(reader instanceof $Reader))
  53240. reader = new $Reader(reader);
  53241. return this.decode(reader, reader.uint32());
  53242. };
  53243. /**
  53244. * Verifies a lottery_nty message.
  53245. * @function verify
  53246. * @memberof game.lottery_nty
  53247. * @static
  53248. * @param {Object.<string,*>} message Plain object to verify
  53249. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  53250. */
  53251. lottery_nty.verify = function verify(message) {
  53252. if (typeof message !== "object" || message === null)
  53253. return "object expected";
  53254. if (message.state != null && message.hasOwnProperty("state"))
  53255. if (!$util.isInteger(message.state) && !(message.state && $util.isInteger(message.state.low) && $util.isInteger(message.state.high)))
  53256. return "state: integer|Long expected";
  53257. if (message.free != null && message.hasOwnProperty("free"))
  53258. if (!$util.isInteger(message.free) && !(message.free && $util.isInteger(message.free.low) && $util.isInteger(message.free.high)))
  53259. return "free: integer|Long expected";
  53260. if (message.award != null && message.hasOwnProperty("award"))
  53261. if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
  53262. return "award: integer|Long expected";
  53263. if (message.day != null && message.hasOwnProperty("day"))
  53264. if (!$util.isInteger(message.day) && !(message.day && $util.isInteger(message.day.low) && $util.isInteger(message.day.high)))
  53265. return "day: integer|Long expected";
  53266. return null;
  53267. };
  53268. /**
  53269. * Creates a lottery_nty message from a plain object. Also converts values to their respective internal types.
  53270. * @function fromObject
  53271. * @memberof game.lottery_nty
  53272. * @static
  53273. * @param {Object.<string,*>} object Plain object
  53274. * @returns {game.lottery_nty} lottery_nty
  53275. */
  53276. lottery_nty.fromObject = function fromObject(object) {
  53277. if (object instanceof $root.game.lottery_nty)
  53278. return object;
  53279. let message = new $root.game.lottery_nty();
  53280. if (object.state != null)
  53281. if ($util.Long)
  53282. (message.state = $util.Long.fromValue(object.state)).unsigned = false;
  53283. else if (typeof object.state === "string")
  53284. message.state = parseInt(object.state, 10);
  53285. else if (typeof object.state === "number")
  53286. message.state = object.state;
  53287. else if (typeof object.state === "object")
  53288. message.state = new $util.LongBits(object.state.low >>> 0, object.state.high >>> 0).toNumber();
  53289. if (object.free != null)
  53290. if ($util.Long)
  53291. (message.free = $util.Long.fromValue(object.free)).unsigned = false;
  53292. else if (typeof object.free === "string")
  53293. message.free = parseInt(object.free, 10);
  53294. else if (typeof object.free === "number")
  53295. message.free = object.free;
  53296. else if (typeof object.free === "object")
  53297. message.free = new $util.LongBits(object.free.low >>> 0, object.free.high >>> 0).toNumber();
  53298. if (object.award != null)
  53299. if ($util.Long)
  53300. (message.award = $util.Long.fromValue(object.award)).unsigned = false;
  53301. else if (typeof object.award === "string")
  53302. message.award = parseInt(object.award, 10);
  53303. else if (typeof object.award === "number")
  53304. message.award = object.award;
  53305. else if (typeof object.award === "object")
  53306. message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
  53307. if (object.day != null)
  53308. if ($util.Long)
  53309. (message.day = $util.Long.fromValue(object.day)).unsigned = false;
  53310. else if (typeof object.day === "string")
  53311. message.day = parseInt(object.day, 10);
  53312. else if (typeof object.day === "number")
  53313. message.day = object.day;
  53314. else if (typeof object.day === "object")
  53315. message.day = new $util.LongBits(object.day.low >>> 0, object.day.high >>> 0).toNumber();
  53316. return message;
  53317. };
  53318. /**
  53319. * Creates a plain object from a lottery_nty message. Also converts values to other types if specified.
  53320. * @function toObject
  53321. * @memberof game.lottery_nty
  53322. * @static
  53323. * @param {game.lottery_nty} message lottery_nty
  53324. * @param {$protobuf.IConversionOptions} [options] Conversion options
  53325. * @returns {Object.<string,*>} Plain object
  53326. */
  53327. lottery_nty.toObject = function toObject(message, options) {
  53328. if (!options)
  53329. options = {};
  53330. let object = {};
  53331. if (options.defaults) {
  53332. if ($util.Long) {
  53333. let long = new $util.Long(0, 0, false);
  53334. object.state = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  53335. } else
  53336. object.state = options.longs === String ? "0" : 0;
  53337. if ($util.Long) {
  53338. let long = new $util.Long(0, 0, false);
  53339. object.free = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  53340. } else
  53341. object.free = options.longs === String ? "0" : 0;
  53342. if ($util.Long) {
  53343. let long = new $util.Long(0, 0, false);
  53344. object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  53345. } else
  53346. object.award = options.longs === String ? "0" : 0;
  53347. if ($util.Long) {
  53348. let long = new $util.Long(0, 0, false);
  53349. object.day = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  53350. } else
  53351. object.day = options.longs === String ? "0" : 0;
  53352. }
  53353. if (message.state != null && message.hasOwnProperty("state"))
  53354. if (typeof message.state === "number")
  53355. object.state = options.longs === String ? String(message.state) : message.state;
  53356. else
  53357. 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;
  53358. if (message.free != null && message.hasOwnProperty("free"))
  53359. if (typeof message.free === "number")
  53360. object.free = options.longs === String ? String(message.free) : message.free;
  53361. else
  53362. 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;
  53363. if (message.award != null && message.hasOwnProperty("award"))
  53364. if (typeof message.award === "number")
  53365. object.award = options.longs === String ? String(message.award) : message.award;
  53366. else
  53367. 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;
  53368. if (message.day != null && message.hasOwnProperty("day"))
  53369. if (typeof message.day === "number")
  53370. object.day = options.longs === String ? String(message.day) : message.day;
  53371. else
  53372. 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;
  53373. return object;
  53374. };
  53375. /**
  53376. * Converts this lottery_nty to JSON.
  53377. * @function toJSON
  53378. * @memberof game.lottery_nty
  53379. * @instance
  53380. * @returns {Object.<string,*>} JSON object
  53381. */
  53382. lottery_nty.prototype.toJSON = function toJSON() {
  53383. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  53384. };
  53385. return lottery_nty;
  53386. })();
  53387. game.act_rank_data = (function() {
  53388. /**
  53389. * Properties of an act_rank_data.
  53390. * @memberof game
  53391. * @interface Iact_rank_data
  53392. * @property {number|Long|null} [id] act_rank_data id
  53393. */
  53394. /**
  53395. * Constructs a new act_rank_data.
  53396. * @memberof game
  53397. * @classdesc Represents an act_rank_data.
  53398. * @implements Iact_rank_data
  53399. * @constructor
  53400. * @param {game.Iact_rank_data=} [properties] Properties to set
  53401. */
  53402. function act_rank_data(properties) {
  53403. if (properties)
  53404. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  53405. if (properties[keys[i]] != null)
  53406. this[keys[i]] = properties[keys[i]];
  53407. }
  53408. /**
  53409. * act_rank_data id.
  53410. * @member {number|Long} id
  53411. * @memberof game.act_rank_data
  53412. * @instance
  53413. */
  53414. act_rank_data.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  53415. /**
  53416. * Creates a new act_rank_data instance using the specified properties.
  53417. * @function create
  53418. * @memberof game.act_rank_data
  53419. * @static
  53420. * @param {game.Iact_rank_data=} [properties] Properties to set
  53421. * @returns {game.act_rank_data} act_rank_data instance
  53422. */
  53423. act_rank_data.create = function create(properties) {
  53424. return new act_rank_data(properties);
  53425. };
  53426. /**
  53427. * Encodes the specified act_rank_data message. Does not implicitly {@link game.act_rank_data.verify|verify} messages.
  53428. * @function encode
  53429. * @memberof game.act_rank_data
  53430. * @static
  53431. * @param {game.Iact_rank_data} message act_rank_data message or plain object to encode
  53432. * @param {$protobuf.Writer} [writer] Writer to encode to
  53433. * @returns {$protobuf.Writer} Writer
  53434. */
  53435. act_rank_data.encode = function encode(message, writer) {
  53436. if (!writer)
  53437. writer = $Writer.create();
  53438. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  53439. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  53440. return writer;
  53441. };
  53442. /**
  53443. * Encodes the specified act_rank_data message, length delimited. Does not implicitly {@link game.act_rank_data.verify|verify} messages.
  53444. * @function encodeDelimited
  53445. * @memberof game.act_rank_data
  53446. * @static
  53447. * @param {game.Iact_rank_data} message act_rank_data message or plain object to encode
  53448. * @param {$protobuf.Writer} [writer] Writer to encode to
  53449. * @returns {$protobuf.Writer} Writer
  53450. */
  53451. act_rank_data.encodeDelimited = function encodeDelimited(message, writer) {
  53452. return this.encode(message, writer).ldelim();
  53453. };
  53454. /**
  53455. * Decodes an act_rank_data message from the specified reader or buffer.
  53456. * @function decode
  53457. * @memberof game.act_rank_data
  53458. * @static
  53459. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  53460. * @param {number} [length] Message length if known beforehand
  53461. * @returns {game.act_rank_data} act_rank_data
  53462. * @throws {Error} If the payload is not a reader or valid buffer
  53463. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  53464. */
  53465. act_rank_data.decode = function decode(reader, length) {
  53466. if (!(reader instanceof $Reader))
  53467. reader = $Reader.create(reader);
  53468. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.act_rank_data();
  53469. while (reader.pos < end) {
  53470. let tag = reader.uint32();
  53471. switch (tag >>> 3) {
  53472. case 1:
  53473. message.id = reader.int64();
  53474. break;
  53475. default:
  53476. reader.skipType(tag & 7);
  53477. break;
  53478. }
  53479. }
  53480. return message;
  53481. };
  53482. /**
  53483. * Decodes an act_rank_data message from the specified reader or buffer, length delimited.
  53484. * @function decodeDelimited
  53485. * @memberof game.act_rank_data
  53486. * @static
  53487. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  53488. * @returns {game.act_rank_data} act_rank_data
  53489. * @throws {Error} If the payload is not a reader or valid buffer
  53490. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  53491. */
  53492. act_rank_data.decodeDelimited = function decodeDelimited(reader) {
  53493. if (!(reader instanceof $Reader))
  53494. reader = new $Reader(reader);
  53495. return this.decode(reader, reader.uint32());
  53496. };
  53497. /**
  53498. * Verifies an act_rank_data message.
  53499. * @function verify
  53500. * @memberof game.act_rank_data
  53501. * @static
  53502. * @param {Object.<string,*>} message Plain object to verify
  53503. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  53504. */
  53505. act_rank_data.verify = function verify(message) {
  53506. if (typeof message !== "object" || message === null)
  53507. return "object expected";
  53508. if (message.id != null && message.hasOwnProperty("id"))
  53509. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  53510. return "id: integer|Long expected";
  53511. return null;
  53512. };
  53513. /**
  53514. * Creates an act_rank_data message from a plain object. Also converts values to their respective internal types.
  53515. * @function fromObject
  53516. * @memberof game.act_rank_data
  53517. * @static
  53518. * @param {Object.<string,*>} object Plain object
  53519. * @returns {game.act_rank_data} act_rank_data
  53520. */
  53521. act_rank_data.fromObject = function fromObject(object) {
  53522. if (object instanceof $root.game.act_rank_data)
  53523. return object;
  53524. let message = new $root.game.act_rank_data();
  53525. if (object.id != null)
  53526. if ($util.Long)
  53527. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  53528. else if (typeof object.id === "string")
  53529. message.id = parseInt(object.id, 10);
  53530. else if (typeof object.id === "number")
  53531. message.id = object.id;
  53532. else if (typeof object.id === "object")
  53533. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  53534. return message;
  53535. };
  53536. /**
  53537. * Creates a plain object from an act_rank_data message. Also converts values to other types if specified.
  53538. * @function toObject
  53539. * @memberof game.act_rank_data
  53540. * @static
  53541. * @param {game.act_rank_data} message act_rank_data
  53542. * @param {$protobuf.IConversionOptions} [options] Conversion options
  53543. * @returns {Object.<string,*>} Plain object
  53544. */
  53545. act_rank_data.toObject = function toObject(message, options) {
  53546. if (!options)
  53547. options = {};
  53548. let object = {};
  53549. if (options.defaults)
  53550. if ($util.Long) {
  53551. let long = new $util.Long(0, 0, false);
  53552. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  53553. } else
  53554. object.id = options.longs === String ? "0" : 0;
  53555. if (message.id != null && message.hasOwnProperty("id"))
  53556. if (typeof message.id === "number")
  53557. object.id = options.longs === String ? String(message.id) : message.id;
  53558. else
  53559. 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;
  53560. return object;
  53561. };
  53562. /**
  53563. * Converts this act_rank_data to JSON.
  53564. * @function toJSON
  53565. * @memberof game.act_rank_data
  53566. * @instance
  53567. * @returns {Object.<string,*>} JSON object
  53568. */
  53569. act_rank_data.prototype.toJSON = function toJSON() {
  53570. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  53571. };
  53572. return act_rank_data;
  53573. })();
  53574. game.act_rank_data_rsp = (function() {
  53575. /**
  53576. * Properties of an act_rank_data_rsp.
  53577. * @memberof game
  53578. * @interface Iact_rank_data_rsp
  53579. * @property {number|Long|null} [errno] act_rank_data_rsp errno
  53580. * @property {Array.<game.Iranking_info>|null} [list] act_rank_data_rsp list
  53581. */
  53582. /**
  53583. * Constructs a new act_rank_data_rsp.
  53584. * @memberof game
  53585. * @classdesc Represents an act_rank_data_rsp.
  53586. * @implements Iact_rank_data_rsp
  53587. * @constructor
  53588. * @param {game.Iact_rank_data_rsp=} [properties] Properties to set
  53589. */
  53590. function act_rank_data_rsp(properties) {
  53591. this.list = [];
  53592. if (properties)
  53593. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  53594. if (properties[keys[i]] != null)
  53595. this[keys[i]] = properties[keys[i]];
  53596. }
  53597. /**
  53598. * act_rank_data_rsp errno.
  53599. * @member {number|Long} errno
  53600. * @memberof game.act_rank_data_rsp
  53601. * @instance
  53602. */
  53603. act_rank_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  53604. /**
  53605. * act_rank_data_rsp list.
  53606. * @member {Array.<game.Iranking_info>} list
  53607. * @memberof game.act_rank_data_rsp
  53608. * @instance
  53609. */
  53610. act_rank_data_rsp.prototype.list = $util.emptyArray;
  53611. /**
  53612. * Creates a new act_rank_data_rsp instance using the specified properties.
  53613. * @function create
  53614. * @memberof game.act_rank_data_rsp
  53615. * @static
  53616. * @param {game.Iact_rank_data_rsp=} [properties] Properties to set
  53617. * @returns {game.act_rank_data_rsp} act_rank_data_rsp instance
  53618. */
  53619. act_rank_data_rsp.create = function create(properties) {
  53620. return new act_rank_data_rsp(properties);
  53621. };
  53622. /**
  53623. * Encodes the specified act_rank_data_rsp message. Does not implicitly {@link game.act_rank_data_rsp.verify|verify} messages.
  53624. * @function encode
  53625. * @memberof game.act_rank_data_rsp
  53626. * @static
  53627. * @param {game.Iact_rank_data_rsp} message act_rank_data_rsp message or plain object to encode
  53628. * @param {$protobuf.Writer} [writer] Writer to encode to
  53629. * @returns {$protobuf.Writer} Writer
  53630. */
  53631. act_rank_data_rsp.encode = function encode(message, writer) {
  53632. if (!writer)
  53633. writer = $Writer.create();
  53634. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  53635. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  53636. if (message.list != null && message.list.length)
  53637. for (let i = 0; i < message.list.length; ++i)
  53638. $root.game.ranking_info.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  53639. return writer;
  53640. };
  53641. /**
  53642. * Encodes the specified act_rank_data_rsp message, length delimited. Does not implicitly {@link game.act_rank_data_rsp.verify|verify} messages.
  53643. * @function encodeDelimited
  53644. * @memberof game.act_rank_data_rsp
  53645. * @static
  53646. * @param {game.Iact_rank_data_rsp} message act_rank_data_rsp message or plain object to encode
  53647. * @param {$protobuf.Writer} [writer] Writer to encode to
  53648. * @returns {$protobuf.Writer} Writer
  53649. */
  53650. act_rank_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  53651. return this.encode(message, writer).ldelim();
  53652. };
  53653. /**
  53654. * Decodes an act_rank_data_rsp message from the specified reader or buffer.
  53655. * @function decode
  53656. * @memberof game.act_rank_data_rsp
  53657. * @static
  53658. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  53659. * @param {number} [length] Message length if known beforehand
  53660. * @returns {game.act_rank_data_rsp} act_rank_data_rsp
  53661. * @throws {Error} If the payload is not a reader or valid buffer
  53662. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  53663. */
  53664. act_rank_data_rsp.decode = function decode(reader, length) {
  53665. if (!(reader instanceof $Reader))
  53666. reader = $Reader.create(reader);
  53667. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.act_rank_data_rsp();
  53668. while (reader.pos < end) {
  53669. let tag = reader.uint32();
  53670. switch (tag >>> 3) {
  53671. case 1:
  53672. message.errno = reader.int64();
  53673. break;
  53674. case 2:
  53675. if (!(message.list && message.list.length))
  53676. message.list = [];
  53677. message.list.push($root.game.ranking_info.decode(reader, reader.uint32()));
  53678. break;
  53679. default:
  53680. reader.skipType(tag & 7);
  53681. break;
  53682. }
  53683. }
  53684. return message;
  53685. };
  53686. /**
  53687. * Decodes an act_rank_data_rsp message from the specified reader or buffer, length delimited.
  53688. * @function decodeDelimited
  53689. * @memberof game.act_rank_data_rsp
  53690. * @static
  53691. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  53692. * @returns {game.act_rank_data_rsp} act_rank_data_rsp
  53693. * @throws {Error} If the payload is not a reader or valid buffer
  53694. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  53695. */
  53696. act_rank_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  53697. if (!(reader instanceof $Reader))
  53698. reader = new $Reader(reader);
  53699. return this.decode(reader, reader.uint32());
  53700. };
  53701. /**
  53702. * Verifies an act_rank_data_rsp message.
  53703. * @function verify
  53704. * @memberof game.act_rank_data_rsp
  53705. * @static
  53706. * @param {Object.<string,*>} message Plain object to verify
  53707. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  53708. */
  53709. act_rank_data_rsp.verify = function verify(message) {
  53710. if (typeof message !== "object" || message === null)
  53711. return "object expected";
  53712. if (message.errno != null && message.hasOwnProperty("errno"))
  53713. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  53714. return "errno: integer|Long expected";
  53715. if (message.list != null && message.hasOwnProperty("list")) {
  53716. if (!Array.isArray(message.list))
  53717. return "list: array expected";
  53718. for (let i = 0; i < message.list.length; ++i) {
  53719. let error = $root.game.ranking_info.verify(message.list[i]);
  53720. if (error)
  53721. return "list." + error;
  53722. }
  53723. }
  53724. return null;
  53725. };
  53726. /**
  53727. * Creates an act_rank_data_rsp message from a plain object. Also converts values to their respective internal types.
  53728. * @function fromObject
  53729. * @memberof game.act_rank_data_rsp
  53730. * @static
  53731. * @param {Object.<string,*>} object Plain object
  53732. * @returns {game.act_rank_data_rsp} act_rank_data_rsp
  53733. */
  53734. act_rank_data_rsp.fromObject = function fromObject(object) {
  53735. if (object instanceof $root.game.act_rank_data_rsp)
  53736. return object;
  53737. let message = new $root.game.act_rank_data_rsp();
  53738. if (object.errno != null)
  53739. if ($util.Long)
  53740. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  53741. else if (typeof object.errno === "string")
  53742. message.errno = parseInt(object.errno, 10);
  53743. else if (typeof object.errno === "number")
  53744. message.errno = object.errno;
  53745. else if (typeof object.errno === "object")
  53746. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  53747. if (object.list) {
  53748. if (!Array.isArray(object.list))
  53749. throw TypeError(".game.act_rank_data_rsp.list: array expected");
  53750. message.list = [];
  53751. for (let i = 0; i < object.list.length; ++i) {
  53752. if (typeof object.list[i] !== "object")
  53753. throw TypeError(".game.act_rank_data_rsp.list: object expected");
  53754. message.list[i] = $root.game.ranking_info.fromObject(object.list[i]);
  53755. }
  53756. }
  53757. return message;
  53758. };
  53759. /**
  53760. * Creates a plain object from an act_rank_data_rsp message. Also converts values to other types if specified.
  53761. * @function toObject
  53762. * @memberof game.act_rank_data_rsp
  53763. * @static
  53764. * @param {game.act_rank_data_rsp} message act_rank_data_rsp
  53765. * @param {$protobuf.IConversionOptions} [options] Conversion options
  53766. * @returns {Object.<string,*>} Plain object
  53767. */
  53768. act_rank_data_rsp.toObject = function toObject(message, options) {
  53769. if (!options)
  53770. options = {};
  53771. let object = {};
  53772. if (options.arrays || options.defaults)
  53773. object.list = [];
  53774. if (options.defaults)
  53775. if ($util.Long) {
  53776. let long = new $util.Long(0, 0, false);
  53777. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  53778. } else
  53779. object.errno = options.longs === String ? "0" : 0;
  53780. if (message.errno != null && message.hasOwnProperty("errno"))
  53781. if (typeof message.errno === "number")
  53782. object.errno = options.longs === String ? String(message.errno) : message.errno;
  53783. else
  53784. 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;
  53785. if (message.list && message.list.length) {
  53786. object.list = [];
  53787. for (let j = 0; j < message.list.length; ++j)
  53788. object.list[j] = $root.game.ranking_info.toObject(message.list[j], options);
  53789. }
  53790. return object;
  53791. };
  53792. /**
  53793. * Converts this act_rank_data_rsp to JSON.
  53794. * @function toJSON
  53795. * @memberof game.act_rank_data_rsp
  53796. * @instance
  53797. * @returns {Object.<string,*>} JSON object
  53798. */
  53799. act_rank_data_rsp.prototype.toJSON = function toJSON() {
  53800. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  53801. };
  53802. return act_rank_data_rsp;
  53803. })();
  53804. game.treasure_get_data = (function() {
  53805. /**
  53806. * Properties of a treasure_get_data.
  53807. * @memberof game
  53808. * @interface Itreasure_get_data
  53809. */
  53810. /**
  53811. * Constructs a new treasure_get_data.
  53812. * @memberof game
  53813. * @classdesc Represents a treasure_get_data.
  53814. * @implements Itreasure_get_data
  53815. * @constructor
  53816. * @param {game.Itreasure_get_data=} [properties] Properties to set
  53817. */
  53818. function treasure_get_data(properties) {
  53819. if (properties)
  53820. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  53821. if (properties[keys[i]] != null)
  53822. this[keys[i]] = properties[keys[i]];
  53823. }
  53824. /**
  53825. * Creates a new treasure_get_data instance using the specified properties.
  53826. * @function create
  53827. * @memberof game.treasure_get_data
  53828. * @static
  53829. * @param {game.Itreasure_get_data=} [properties] Properties to set
  53830. * @returns {game.treasure_get_data} treasure_get_data instance
  53831. */
  53832. treasure_get_data.create = function create(properties) {
  53833. return new treasure_get_data(properties);
  53834. };
  53835. /**
  53836. * Encodes the specified treasure_get_data message. Does not implicitly {@link game.treasure_get_data.verify|verify} messages.
  53837. * @function encode
  53838. * @memberof game.treasure_get_data
  53839. * @static
  53840. * @param {game.Itreasure_get_data} message treasure_get_data message or plain object to encode
  53841. * @param {$protobuf.Writer} [writer] Writer to encode to
  53842. * @returns {$protobuf.Writer} Writer
  53843. */
  53844. treasure_get_data.encode = function encode(message, writer) {
  53845. if (!writer)
  53846. writer = $Writer.create();
  53847. return writer;
  53848. };
  53849. /**
  53850. * Encodes the specified treasure_get_data message, length delimited. Does not implicitly {@link game.treasure_get_data.verify|verify} messages.
  53851. * @function encodeDelimited
  53852. * @memberof game.treasure_get_data
  53853. * @static
  53854. * @param {game.Itreasure_get_data} message treasure_get_data message or plain object to encode
  53855. * @param {$protobuf.Writer} [writer] Writer to encode to
  53856. * @returns {$protobuf.Writer} Writer
  53857. */
  53858. treasure_get_data.encodeDelimited = function encodeDelimited(message, writer) {
  53859. return this.encode(message, writer).ldelim();
  53860. };
  53861. /**
  53862. * Decodes a treasure_get_data message from the specified reader or buffer.
  53863. * @function decode
  53864. * @memberof game.treasure_get_data
  53865. * @static
  53866. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  53867. * @param {number} [length] Message length if known beforehand
  53868. * @returns {game.treasure_get_data} treasure_get_data
  53869. * @throws {Error} If the payload is not a reader or valid buffer
  53870. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  53871. */
  53872. treasure_get_data.decode = function decode(reader, length) {
  53873. if (!(reader instanceof $Reader))
  53874. reader = $Reader.create(reader);
  53875. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.treasure_get_data();
  53876. while (reader.pos < end) {
  53877. let tag = reader.uint32();
  53878. switch (tag >>> 3) {
  53879. default:
  53880. reader.skipType(tag & 7);
  53881. break;
  53882. }
  53883. }
  53884. return message;
  53885. };
  53886. /**
  53887. * Decodes a treasure_get_data message from the specified reader or buffer, length delimited.
  53888. * @function decodeDelimited
  53889. * @memberof game.treasure_get_data
  53890. * @static
  53891. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  53892. * @returns {game.treasure_get_data} treasure_get_data
  53893. * @throws {Error} If the payload is not a reader or valid buffer
  53894. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  53895. */
  53896. treasure_get_data.decodeDelimited = function decodeDelimited(reader) {
  53897. if (!(reader instanceof $Reader))
  53898. reader = new $Reader(reader);
  53899. return this.decode(reader, reader.uint32());
  53900. };
  53901. /**
  53902. * Verifies a treasure_get_data message.
  53903. * @function verify
  53904. * @memberof game.treasure_get_data
  53905. * @static
  53906. * @param {Object.<string,*>} message Plain object to verify
  53907. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  53908. */
  53909. treasure_get_data.verify = function verify(message) {
  53910. if (typeof message !== "object" || message === null)
  53911. return "object expected";
  53912. return null;
  53913. };
  53914. /**
  53915. * Creates a treasure_get_data message from a plain object. Also converts values to their respective internal types.
  53916. * @function fromObject
  53917. * @memberof game.treasure_get_data
  53918. * @static
  53919. * @param {Object.<string,*>} object Plain object
  53920. * @returns {game.treasure_get_data} treasure_get_data
  53921. */
  53922. treasure_get_data.fromObject = function fromObject(object) {
  53923. if (object instanceof $root.game.treasure_get_data)
  53924. return object;
  53925. return new $root.game.treasure_get_data();
  53926. };
  53927. /**
  53928. * Creates a plain object from a treasure_get_data message. Also converts values to other types if specified.
  53929. * @function toObject
  53930. * @memberof game.treasure_get_data
  53931. * @static
  53932. * @param {game.treasure_get_data} message treasure_get_data
  53933. * @param {$protobuf.IConversionOptions} [options] Conversion options
  53934. * @returns {Object.<string,*>} Plain object
  53935. */
  53936. treasure_get_data.toObject = function toObject() {
  53937. return {};
  53938. };
  53939. /**
  53940. * Converts this treasure_get_data to JSON.
  53941. * @function toJSON
  53942. * @memberof game.treasure_get_data
  53943. * @instance
  53944. * @returns {Object.<string,*>} JSON object
  53945. */
  53946. treasure_get_data.prototype.toJSON = function toJSON() {
  53947. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  53948. };
  53949. return treasure_get_data;
  53950. })();
  53951. game.treasure_get_data_rsp = (function() {
  53952. /**
  53953. * Properties of a treasure_get_data_rsp.
  53954. * @memberof game
  53955. * @interface Itreasure_get_data_rsp
  53956. * @property {number|Long|null} [errno] treasure_get_data_rsp errno
  53957. * @property {number|Long|null} [buy] treasure_get_data_rsp buy
  53958. * @property {number|Long|null} [sign] treasure_get_data_rsp sign
  53959. * @property {Array.<number|Long>|null} [list] treasure_get_data_rsp list
  53960. * @property {boolean|null} [treasure] treasure_get_data_rsp treasure
  53961. */
  53962. /**
  53963. * Constructs a new treasure_get_data_rsp.
  53964. * @memberof game
  53965. * @classdesc Represents a treasure_get_data_rsp.
  53966. * @implements Itreasure_get_data_rsp
  53967. * @constructor
  53968. * @param {game.Itreasure_get_data_rsp=} [properties] Properties to set
  53969. */
  53970. function treasure_get_data_rsp(properties) {
  53971. this.list = [];
  53972. if (properties)
  53973. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  53974. if (properties[keys[i]] != null)
  53975. this[keys[i]] = properties[keys[i]];
  53976. }
  53977. /**
  53978. * treasure_get_data_rsp errno.
  53979. * @member {number|Long} errno
  53980. * @memberof game.treasure_get_data_rsp
  53981. * @instance
  53982. */
  53983. treasure_get_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  53984. /**
  53985. * treasure_get_data_rsp buy.
  53986. * @member {number|Long} buy
  53987. * @memberof game.treasure_get_data_rsp
  53988. * @instance
  53989. */
  53990. treasure_get_data_rsp.prototype.buy = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  53991. /**
  53992. * treasure_get_data_rsp sign.
  53993. * @member {number|Long} sign
  53994. * @memberof game.treasure_get_data_rsp
  53995. * @instance
  53996. */
  53997. treasure_get_data_rsp.prototype.sign = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  53998. /**
  53999. * treasure_get_data_rsp list.
  54000. * @member {Array.<number|Long>} list
  54001. * @memberof game.treasure_get_data_rsp
  54002. * @instance
  54003. */
  54004. treasure_get_data_rsp.prototype.list = $util.emptyArray;
  54005. /**
  54006. * treasure_get_data_rsp treasure.
  54007. * @member {boolean} treasure
  54008. * @memberof game.treasure_get_data_rsp
  54009. * @instance
  54010. */
  54011. treasure_get_data_rsp.prototype.treasure = false;
  54012. /**
  54013. * Creates a new treasure_get_data_rsp instance using the specified properties.
  54014. * @function create
  54015. * @memberof game.treasure_get_data_rsp
  54016. * @static
  54017. * @param {game.Itreasure_get_data_rsp=} [properties] Properties to set
  54018. * @returns {game.treasure_get_data_rsp} treasure_get_data_rsp instance
  54019. */
  54020. treasure_get_data_rsp.create = function create(properties) {
  54021. return new treasure_get_data_rsp(properties);
  54022. };
  54023. /**
  54024. * Encodes the specified treasure_get_data_rsp message. Does not implicitly {@link game.treasure_get_data_rsp.verify|verify} messages.
  54025. * @function encode
  54026. * @memberof game.treasure_get_data_rsp
  54027. * @static
  54028. * @param {game.Itreasure_get_data_rsp} message treasure_get_data_rsp message or plain object to encode
  54029. * @param {$protobuf.Writer} [writer] Writer to encode to
  54030. * @returns {$protobuf.Writer} Writer
  54031. */
  54032. treasure_get_data_rsp.encode = function encode(message, writer) {
  54033. if (!writer)
  54034. writer = $Writer.create();
  54035. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  54036. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  54037. if (message.buy != null && Object.hasOwnProperty.call(message, "buy"))
  54038. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.buy);
  54039. if (message.sign != null && Object.hasOwnProperty.call(message, "sign"))
  54040. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.sign);
  54041. if (message.list != null && message.list.length) {
  54042. writer.uint32(/* id 4, wireType 2 =*/34).fork();
  54043. for (let i = 0; i < message.list.length; ++i)
  54044. writer.int64(message.list[i]);
  54045. writer.ldelim();
  54046. }
  54047. if (message.treasure != null && Object.hasOwnProperty.call(message, "treasure"))
  54048. writer.uint32(/* id 5, wireType 0 =*/40).bool(message.treasure);
  54049. return writer;
  54050. };
  54051. /**
  54052. * Encodes the specified treasure_get_data_rsp message, length delimited. Does not implicitly {@link game.treasure_get_data_rsp.verify|verify} messages.
  54053. * @function encodeDelimited
  54054. * @memberof game.treasure_get_data_rsp
  54055. * @static
  54056. * @param {game.Itreasure_get_data_rsp} message treasure_get_data_rsp message or plain object to encode
  54057. * @param {$protobuf.Writer} [writer] Writer to encode to
  54058. * @returns {$protobuf.Writer} Writer
  54059. */
  54060. treasure_get_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  54061. return this.encode(message, writer).ldelim();
  54062. };
  54063. /**
  54064. * Decodes a treasure_get_data_rsp message from the specified reader or buffer.
  54065. * @function decode
  54066. * @memberof game.treasure_get_data_rsp
  54067. * @static
  54068. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  54069. * @param {number} [length] Message length if known beforehand
  54070. * @returns {game.treasure_get_data_rsp} treasure_get_data_rsp
  54071. * @throws {Error} If the payload is not a reader or valid buffer
  54072. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  54073. */
  54074. treasure_get_data_rsp.decode = function decode(reader, length) {
  54075. if (!(reader instanceof $Reader))
  54076. reader = $Reader.create(reader);
  54077. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.treasure_get_data_rsp();
  54078. while (reader.pos < end) {
  54079. let tag = reader.uint32();
  54080. switch (tag >>> 3) {
  54081. case 1:
  54082. message.errno = reader.int64();
  54083. break;
  54084. case 2:
  54085. message.buy = reader.int64();
  54086. break;
  54087. case 3:
  54088. message.sign = reader.int64();
  54089. break;
  54090. case 4:
  54091. if (!(message.list && message.list.length))
  54092. message.list = [];
  54093. if ((tag & 7) === 2) {
  54094. let end2 = reader.uint32() + reader.pos;
  54095. while (reader.pos < end2)
  54096. message.list.push(reader.int64());
  54097. } else
  54098. message.list.push(reader.int64());
  54099. break;
  54100. case 5:
  54101. message.treasure = reader.bool();
  54102. break;
  54103. default:
  54104. reader.skipType(tag & 7);
  54105. break;
  54106. }
  54107. }
  54108. return message;
  54109. };
  54110. /**
  54111. * Decodes a treasure_get_data_rsp message from the specified reader or buffer, length delimited.
  54112. * @function decodeDelimited
  54113. * @memberof game.treasure_get_data_rsp
  54114. * @static
  54115. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  54116. * @returns {game.treasure_get_data_rsp} treasure_get_data_rsp
  54117. * @throws {Error} If the payload is not a reader or valid buffer
  54118. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  54119. */
  54120. treasure_get_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  54121. if (!(reader instanceof $Reader))
  54122. reader = new $Reader(reader);
  54123. return this.decode(reader, reader.uint32());
  54124. };
  54125. /**
  54126. * Verifies a treasure_get_data_rsp message.
  54127. * @function verify
  54128. * @memberof game.treasure_get_data_rsp
  54129. * @static
  54130. * @param {Object.<string,*>} message Plain object to verify
  54131. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  54132. */
  54133. treasure_get_data_rsp.verify = function verify(message) {
  54134. if (typeof message !== "object" || message === null)
  54135. return "object expected";
  54136. if (message.errno != null && message.hasOwnProperty("errno"))
  54137. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  54138. return "errno: integer|Long expected";
  54139. if (message.buy != null && message.hasOwnProperty("buy"))
  54140. if (!$util.isInteger(message.buy) && !(message.buy && $util.isInteger(message.buy.low) && $util.isInteger(message.buy.high)))
  54141. return "buy: integer|Long expected";
  54142. if (message.sign != null && message.hasOwnProperty("sign"))
  54143. if (!$util.isInteger(message.sign) && !(message.sign && $util.isInteger(message.sign.low) && $util.isInteger(message.sign.high)))
  54144. return "sign: integer|Long expected";
  54145. if (message.list != null && message.hasOwnProperty("list")) {
  54146. if (!Array.isArray(message.list))
  54147. return "list: array expected";
  54148. for (let i = 0; i < message.list.length; ++i)
  54149. if (!$util.isInteger(message.list[i]) && !(message.list[i] && $util.isInteger(message.list[i].low) && $util.isInteger(message.list[i].high)))
  54150. return "list: integer|Long[] expected";
  54151. }
  54152. if (message.treasure != null && message.hasOwnProperty("treasure"))
  54153. if (typeof message.treasure !== "boolean")
  54154. return "treasure: boolean expected";
  54155. return null;
  54156. };
  54157. /**
  54158. * Creates a treasure_get_data_rsp message from a plain object. Also converts values to their respective internal types.
  54159. * @function fromObject
  54160. * @memberof game.treasure_get_data_rsp
  54161. * @static
  54162. * @param {Object.<string,*>} object Plain object
  54163. * @returns {game.treasure_get_data_rsp} treasure_get_data_rsp
  54164. */
  54165. treasure_get_data_rsp.fromObject = function fromObject(object) {
  54166. if (object instanceof $root.game.treasure_get_data_rsp)
  54167. return object;
  54168. let message = new $root.game.treasure_get_data_rsp();
  54169. if (object.errno != null)
  54170. if ($util.Long)
  54171. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  54172. else if (typeof object.errno === "string")
  54173. message.errno = parseInt(object.errno, 10);
  54174. else if (typeof object.errno === "number")
  54175. message.errno = object.errno;
  54176. else if (typeof object.errno === "object")
  54177. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  54178. if (object.buy != null)
  54179. if ($util.Long)
  54180. (message.buy = $util.Long.fromValue(object.buy)).unsigned = false;
  54181. else if (typeof object.buy === "string")
  54182. message.buy = parseInt(object.buy, 10);
  54183. else if (typeof object.buy === "number")
  54184. message.buy = object.buy;
  54185. else if (typeof object.buy === "object")
  54186. message.buy = new $util.LongBits(object.buy.low >>> 0, object.buy.high >>> 0).toNumber();
  54187. if (object.sign != null)
  54188. if ($util.Long)
  54189. (message.sign = $util.Long.fromValue(object.sign)).unsigned = false;
  54190. else if (typeof object.sign === "string")
  54191. message.sign = parseInt(object.sign, 10);
  54192. else if (typeof object.sign === "number")
  54193. message.sign = object.sign;
  54194. else if (typeof object.sign === "object")
  54195. message.sign = new $util.LongBits(object.sign.low >>> 0, object.sign.high >>> 0).toNumber();
  54196. if (object.list) {
  54197. if (!Array.isArray(object.list))
  54198. throw TypeError(".game.treasure_get_data_rsp.list: array expected");
  54199. message.list = [];
  54200. for (let i = 0; i < object.list.length; ++i)
  54201. if ($util.Long)
  54202. (message.list[i] = $util.Long.fromValue(object.list[i])).unsigned = false;
  54203. else if (typeof object.list[i] === "string")
  54204. message.list[i] = parseInt(object.list[i], 10);
  54205. else if (typeof object.list[i] === "number")
  54206. message.list[i] = object.list[i];
  54207. else if (typeof object.list[i] === "object")
  54208. message.list[i] = new $util.LongBits(object.list[i].low >>> 0, object.list[i].high >>> 0).toNumber();
  54209. }
  54210. if (object.treasure != null)
  54211. message.treasure = Boolean(object.treasure);
  54212. return message;
  54213. };
  54214. /**
  54215. * Creates a plain object from a treasure_get_data_rsp message. Also converts values to other types if specified.
  54216. * @function toObject
  54217. * @memberof game.treasure_get_data_rsp
  54218. * @static
  54219. * @param {game.treasure_get_data_rsp} message treasure_get_data_rsp
  54220. * @param {$protobuf.IConversionOptions} [options] Conversion options
  54221. * @returns {Object.<string,*>} Plain object
  54222. */
  54223. treasure_get_data_rsp.toObject = function toObject(message, options) {
  54224. if (!options)
  54225. options = {};
  54226. let object = {};
  54227. if (options.arrays || options.defaults)
  54228. object.list = [];
  54229. if (options.defaults) {
  54230. if ($util.Long) {
  54231. let long = new $util.Long(0, 0, false);
  54232. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  54233. } else
  54234. object.errno = options.longs === String ? "0" : 0;
  54235. if ($util.Long) {
  54236. let long = new $util.Long(0, 0, false);
  54237. object.buy = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  54238. } else
  54239. object.buy = options.longs === String ? "0" : 0;
  54240. if ($util.Long) {
  54241. let long = new $util.Long(0, 0, false);
  54242. object.sign = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  54243. } else
  54244. object.sign = options.longs === String ? "0" : 0;
  54245. object.treasure = false;
  54246. }
  54247. if (message.errno != null && message.hasOwnProperty("errno"))
  54248. if (typeof message.errno === "number")
  54249. object.errno = options.longs === String ? String(message.errno) : message.errno;
  54250. else
  54251. 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;
  54252. if (message.buy != null && message.hasOwnProperty("buy"))
  54253. if (typeof message.buy === "number")
  54254. object.buy = options.longs === String ? String(message.buy) : message.buy;
  54255. else
  54256. 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;
  54257. if (message.sign != null && message.hasOwnProperty("sign"))
  54258. if (typeof message.sign === "number")
  54259. object.sign = options.longs === String ? String(message.sign) : message.sign;
  54260. else
  54261. 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;
  54262. if (message.list && message.list.length) {
  54263. object.list = [];
  54264. for (let j = 0; j < message.list.length; ++j)
  54265. if (typeof message.list[j] === "number")
  54266. object.list[j] = options.longs === String ? String(message.list[j]) : message.list[j];
  54267. else
  54268. 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];
  54269. }
  54270. if (message.treasure != null && message.hasOwnProperty("treasure"))
  54271. object.treasure = message.treasure;
  54272. return object;
  54273. };
  54274. /**
  54275. * Converts this treasure_get_data_rsp to JSON.
  54276. * @function toJSON
  54277. * @memberof game.treasure_get_data_rsp
  54278. * @instance
  54279. * @returns {Object.<string,*>} JSON object
  54280. */
  54281. treasure_get_data_rsp.prototype.toJSON = function toJSON() {
  54282. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  54283. };
  54284. return treasure_get_data_rsp;
  54285. })();
  54286. game.treasure_draw = (function() {
  54287. /**
  54288. * Properties of a treasure_draw.
  54289. * @memberof game
  54290. * @interface Itreasure_draw
  54291. */
  54292. /**
  54293. * Constructs a new treasure_draw.
  54294. * @memberof game
  54295. * @classdesc Represents a treasure_draw.
  54296. * @implements Itreasure_draw
  54297. * @constructor
  54298. * @param {game.Itreasure_draw=} [properties] Properties to set
  54299. */
  54300. function treasure_draw(properties) {
  54301. if (properties)
  54302. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  54303. if (properties[keys[i]] != null)
  54304. this[keys[i]] = properties[keys[i]];
  54305. }
  54306. /**
  54307. * Creates a new treasure_draw instance using the specified properties.
  54308. * @function create
  54309. * @memberof game.treasure_draw
  54310. * @static
  54311. * @param {game.Itreasure_draw=} [properties] Properties to set
  54312. * @returns {game.treasure_draw} treasure_draw instance
  54313. */
  54314. treasure_draw.create = function create(properties) {
  54315. return new treasure_draw(properties);
  54316. };
  54317. /**
  54318. * Encodes the specified treasure_draw message. Does not implicitly {@link game.treasure_draw.verify|verify} messages.
  54319. * @function encode
  54320. * @memberof game.treasure_draw
  54321. * @static
  54322. * @param {game.Itreasure_draw} message treasure_draw message or plain object to encode
  54323. * @param {$protobuf.Writer} [writer] Writer to encode to
  54324. * @returns {$protobuf.Writer} Writer
  54325. */
  54326. treasure_draw.encode = function encode(message, writer) {
  54327. if (!writer)
  54328. writer = $Writer.create();
  54329. return writer;
  54330. };
  54331. /**
  54332. * Encodes the specified treasure_draw message, length delimited. Does not implicitly {@link game.treasure_draw.verify|verify} messages.
  54333. * @function encodeDelimited
  54334. * @memberof game.treasure_draw
  54335. * @static
  54336. * @param {game.Itreasure_draw} message treasure_draw message or plain object to encode
  54337. * @param {$protobuf.Writer} [writer] Writer to encode to
  54338. * @returns {$protobuf.Writer} Writer
  54339. */
  54340. treasure_draw.encodeDelimited = function encodeDelimited(message, writer) {
  54341. return this.encode(message, writer).ldelim();
  54342. };
  54343. /**
  54344. * Decodes a treasure_draw message from the specified reader or buffer.
  54345. * @function decode
  54346. * @memberof game.treasure_draw
  54347. * @static
  54348. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  54349. * @param {number} [length] Message length if known beforehand
  54350. * @returns {game.treasure_draw} treasure_draw
  54351. * @throws {Error} If the payload is not a reader or valid buffer
  54352. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  54353. */
  54354. treasure_draw.decode = function decode(reader, length) {
  54355. if (!(reader instanceof $Reader))
  54356. reader = $Reader.create(reader);
  54357. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.treasure_draw();
  54358. while (reader.pos < end) {
  54359. let tag = reader.uint32();
  54360. switch (tag >>> 3) {
  54361. default:
  54362. reader.skipType(tag & 7);
  54363. break;
  54364. }
  54365. }
  54366. return message;
  54367. };
  54368. /**
  54369. * Decodes a treasure_draw message from the specified reader or buffer, length delimited.
  54370. * @function decodeDelimited
  54371. * @memberof game.treasure_draw
  54372. * @static
  54373. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  54374. * @returns {game.treasure_draw} treasure_draw
  54375. * @throws {Error} If the payload is not a reader or valid buffer
  54376. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  54377. */
  54378. treasure_draw.decodeDelimited = function decodeDelimited(reader) {
  54379. if (!(reader instanceof $Reader))
  54380. reader = new $Reader(reader);
  54381. return this.decode(reader, reader.uint32());
  54382. };
  54383. /**
  54384. * Verifies a treasure_draw message.
  54385. * @function verify
  54386. * @memberof game.treasure_draw
  54387. * @static
  54388. * @param {Object.<string,*>} message Plain object to verify
  54389. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  54390. */
  54391. treasure_draw.verify = function verify(message) {
  54392. if (typeof message !== "object" || message === null)
  54393. return "object expected";
  54394. return null;
  54395. };
  54396. /**
  54397. * Creates a treasure_draw message from a plain object. Also converts values to their respective internal types.
  54398. * @function fromObject
  54399. * @memberof game.treasure_draw
  54400. * @static
  54401. * @param {Object.<string,*>} object Plain object
  54402. * @returns {game.treasure_draw} treasure_draw
  54403. */
  54404. treasure_draw.fromObject = function fromObject(object) {
  54405. if (object instanceof $root.game.treasure_draw)
  54406. return object;
  54407. return new $root.game.treasure_draw();
  54408. };
  54409. /**
  54410. * Creates a plain object from a treasure_draw message. Also converts values to other types if specified.
  54411. * @function toObject
  54412. * @memberof game.treasure_draw
  54413. * @static
  54414. * @param {game.treasure_draw} message treasure_draw
  54415. * @param {$protobuf.IConversionOptions} [options] Conversion options
  54416. * @returns {Object.<string,*>} Plain object
  54417. */
  54418. treasure_draw.toObject = function toObject() {
  54419. return {};
  54420. };
  54421. /**
  54422. * Converts this treasure_draw to JSON.
  54423. * @function toJSON
  54424. * @memberof game.treasure_draw
  54425. * @instance
  54426. * @returns {Object.<string,*>} JSON object
  54427. */
  54428. treasure_draw.prototype.toJSON = function toJSON() {
  54429. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  54430. };
  54431. return treasure_draw;
  54432. })();
  54433. game.treasure_draw_rsp = (function() {
  54434. /**
  54435. * Properties of a treasure_draw_rsp.
  54436. * @memberof game
  54437. * @interface Itreasure_draw_rsp
  54438. * @property {number|Long|null} [errno] treasure_draw_rsp errno
  54439. * @property {number|Long|null} [pos] treasure_draw_rsp pos
  54440. */
  54441. /**
  54442. * Constructs a new treasure_draw_rsp.
  54443. * @memberof game
  54444. * @classdesc Represents a treasure_draw_rsp.
  54445. * @implements Itreasure_draw_rsp
  54446. * @constructor
  54447. * @param {game.Itreasure_draw_rsp=} [properties] Properties to set
  54448. */
  54449. function treasure_draw_rsp(properties) {
  54450. if (properties)
  54451. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  54452. if (properties[keys[i]] != null)
  54453. this[keys[i]] = properties[keys[i]];
  54454. }
  54455. /**
  54456. * treasure_draw_rsp errno.
  54457. * @member {number|Long} errno
  54458. * @memberof game.treasure_draw_rsp
  54459. * @instance
  54460. */
  54461. treasure_draw_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  54462. /**
  54463. * treasure_draw_rsp pos.
  54464. * @member {number|Long} pos
  54465. * @memberof game.treasure_draw_rsp
  54466. * @instance
  54467. */
  54468. treasure_draw_rsp.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  54469. /**
  54470. * Creates a new treasure_draw_rsp instance using the specified properties.
  54471. * @function create
  54472. * @memberof game.treasure_draw_rsp
  54473. * @static
  54474. * @param {game.Itreasure_draw_rsp=} [properties] Properties to set
  54475. * @returns {game.treasure_draw_rsp} treasure_draw_rsp instance
  54476. */
  54477. treasure_draw_rsp.create = function create(properties) {
  54478. return new treasure_draw_rsp(properties);
  54479. };
  54480. /**
  54481. * Encodes the specified treasure_draw_rsp message. Does not implicitly {@link game.treasure_draw_rsp.verify|verify} messages.
  54482. * @function encode
  54483. * @memberof game.treasure_draw_rsp
  54484. * @static
  54485. * @param {game.Itreasure_draw_rsp} message treasure_draw_rsp message or plain object to encode
  54486. * @param {$protobuf.Writer} [writer] Writer to encode to
  54487. * @returns {$protobuf.Writer} Writer
  54488. */
  54489. treasure_draw_rsp.encode = function encode(message, writer) {
  54490. if (!writer)
  54491. writer = $Writer.create();
  54492. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  54493. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  54494. if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
  54495. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.pos);
  54496. return writer;
  54497. };
  54498. /**
  54499. * Encodes the specified treasure_draw_rsp message, length delimited. Does not implicitly {@link game.treasure_draw_rsp.verify|verify} messages.
  54500. * @function encodeDelimited
  54501. * @memberof game.treasure_draw_rsp
  54502. * @static
  54503. * @param {game.Itreasure_draw_rsp} message treasure_draw_rsp message or plain object to encode
  54504. * @param {$protobuf.Writer} [writer] Writer to encode to
  54505. * @returns {$protobuf.Writer} Writer
  54506. */
  54507. treasure_draw_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  54508. return this.encode(message, writer).ldelim();
  54509. };
  54510. /**
  54511. * Decodes a treasure_draw_rsp message from the specified reader or buffer.
  54512. * @function decode
  54513. * @memberof game.treasure_draw_rsp
  54514. * @static
  54515. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  54516. * @param {number} [length] Message length if known beforehand
  54517. * @returns {game.treasure_draw_rsp} treasure_draw_rsp
  54518. * @throws {Error} If the payload is not a reader or valid buffer
  54519. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  54520. */
  54521. treasure_draw_rsp.decode = function decode(reader, length) {
  54522. if (!(reader instanceof $Reader))
  54523. reader = $Reader.create(reader);
  54524. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.treasure_draw_rsp();
  54525. while (reader.pos < end) {
  54526. let tag = reader.uint32();
  54527. switch (tag >>> 3) {
  54528. case 1:
  54529. message.errno = reader.int64();
  54530. break;
  54531. case 2:
  54532. message.pos = reader.int64();
  54533. break;
  54534. default:
  54535. reader.skipType(tag & 7);
  54536. break;
  54537. }
  54538. }
  54539. return message;
  54540. };
  54541. /**
  54542. * Decodes a treasure_draw_rsp message from the specified reader or buffer, length delimited.
  54543. * @function decodeDelimited
  54544. * @memberof game.treasure_draw_rsp
  54545. * @static
  54546. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  54547. * @returns {game.treasure_draw_rsp} treasure_draw_rsp
  54548. * @throws {Error} If the payload is not a reader or valid buffer
  54549. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  54550. */
  54551. treasure_draw_rsp.decodeDelimited = function decodeDelimited(reader) {
  54552. if (!(reader instanceof $Reader))
  54553. reader = new $Reader(reader);
  54554. return this.decode(reader, reader.uint32());
  54555. };
  54556. /**
  54557. * Verifies a treasure_draw_rsp message.
  54558. * @function verify
  54559. * @memberof game.treasure_draw_rsp
  54560. * @static
  54561. * @param {Object.<string,*>} message Plain object to verify
  54562. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  54563. */
  54564. treasure_draw_rsp.verify = function verify(message) {
  54565. if (typeof message !== "object" || message === null)
  54566. return "object expected";
  54567. if (message.errno != null && message.hasOwnProperty("errno"))
  54568. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  54569. return "errno: integer|Long expected";
  54570. if (message.pos != null && message.hasOwnProperty("pos"))
  54571. if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
  54572. return "pos: integer|Long expected";
  54573. return null;
  54574. };
  54575. /**
  54576. * Creates a treasure_draw_rsp message from a plain object. Also converts values to their respective internal types.
  54577. * @function fromObject
  54578. * @memberof game.treasure_draw_rsp
  54579. * @static
  54580. * @param {Object.<string,*>} object Plain object
  54581. * @returns {game.treasure_draw_rsp} treasure_draw_rsp
  54582. */
  54583. treasure_draw_rsp.fromObject = function fromObject(object) {
  54584. if (object instanceof $root.game.treasure_draw_rsp)
  54585. return object;
  54586. let message = new $root.game.treasure_draw_rsp();
  54587. if (object.errno != null)
  54588. if ($util.Long)
  54589. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  54590. else if (typeof object.errno === "string")
  54591. message.errno = parseInt(object.errno, 10);
  54592. else if (typeof object.errno === "number")
  54593. message.errno = object.errno;
  54594. else if (typeof object.errno === "object")
  54595. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  54596. if (object.pos != null)
  54597. if ($util.Long)
  54598. (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
  54599. else if (typeof object.pos === "string")
  54600. message.pos = parseInt(object.pos, 10);
  54601. else if (typeof object.pos === "number")
  54602. message.pos = object.pos;
  54603. else if (typeof object.pos === "object")
  54604. message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
  54605. return message;
  54606. };
  54607. /**
  54608. * Creates a plain object from a treasure_draw_rsp message. Also converts values to other types if specified.
  54609. * @function toObject
  54610. * @memberof game.treasure_draw_rsp
  54611. * @static
  54612. * @param {game.treasure_draw_rsp} message treasure_draw_rsp
  54613. * @param {$protobuf.IConversionOptions} [options] Conversion options
  54614. * @returns {Object.<string,*>} Plain object
  54615. */
  54616. treasure_draw_rsp.toObject = function toObject(message, options) {
  54617. if (!options)
  54618. options = {};
  54619. let object = {};
  54620. if (options.defaults) {
  54621. if ($util.Long) {
  54622. let long = new $util.Long(0, 0, false);
  54623. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  54624. } else
  54625. object.errno = options.longs === String ? "0" : 0;
  54626. if ($util.Long) {
  54627. let long = new $util.Long(0, 0, false);
  54628. object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  54629. } else
  54630. object.pos = options.longs === String ? "0" : 0;
  54631. }
  54632. if (message.errno != null && message.hasOwnProperty("errno"))
  54633. if (typeof message.errno === "number")
  54634. object.errno = options.longs === String ? String(message.errno) : message.errno;
  54635. else
  54636. 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;
  54637. if (message.pos != null && message.hasOwnProperty("pos"))
  54638. if (typeof message.pos === "number")
  54639. object.pos = options.longs === String ? String(message.pos) : message.pos;
  54640. else
  54641. 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;
  54642. return object;
  54643. };
  54644. /**
  54645. * Converts this treasure_draw_rsp to JSON.
  54646. * @function toJSON
  54647. * @memberof game.treasure_draw_rsp
  54648. * @instance
  54649. * @returns {Object.<string,*>} JSON object
  54650. */
  54651. treasure_draw_rsp.prototype.toJSON = function toJSON() {
  54652. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  54653. };
  54654. return treasure_draw_rsp;
  54655. })();
  54656. game.treasure_sign = (function() {
  54657. /**
  54658. * Properties of a treasure_sign.
  54659. * @memberof game
  54660. * @interface Itreasure_sign
  54661. */
  54662. /**
  54663. * Constructs a new treasure_sign.
  54664. * @memberof game
  54665. * @classdesc Represents a treasure_sign.
  54666. * @implements Itreasure_sign
  54667. * @constructor
  54668. * @param {game.Itreasure_sign=} [properties] Properties to set
  54669. */
  54670. function treasure_sign(properties) {
  54671. if (properties)
  54672. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  54673. if (properties[keys[i]] != null)
  54674. this[keys[i]] = properties[keys[i]];
  54675. }
  54676. /**
  54677. * Creates a new treasure_sign instance using the specified properties.
  54678. * @function create
  54679. * @memberof game.treasure_sign
  54680. * @static
  54681. * @param {game.Itreasure_sign=} [properties] Properties to set
  54682. * @returns {game.treasure_sign} treasure_sign instance
  54683. */
  54684. treasure_sign.create = function create(properties) {
  54685. return new treasure_sign(properties);
  54686. };
  54687. /**
  54688. * Encodes the specified treasure_sign message. Does not implicitly {@link game.treasure_sign.verify|verify} messages.
  54689. * @function encode
  54690. * @memberof game.treasure_sign
  54691. * @static
  54692. * @param {game.Itreasure_sign} message treasure_sign message or plain object to encode
  54693. * @param {$protobuf.Writer} [writer] Writer to encode to
  54694. * @returns {$protobuf.Writer} Writer
  54695. */
  54696. treasure_sign.encode = function encode(message, writer) {
  54697. if (!writer)
  54698. writer = $Writer.create();
  54699. return writer;
  54700. };
  54701. /**
  54702. * Encodes the specified treasure_sign message, length delimited. Does not implicitly {@link game.treasure_sign.verify|verify} messages.
  54703. * @function encodeDelimited
  54704. * @memberof game.treasure_sign
  54705. * @static
  54706. * @param {game.Itreasure_sign} message treasure_sign message or plain object to encode
  54707. * @param {$protobuf.Writer} [writer] Writer to encode to
  54708. * @returns {$protobuf.Writer} Writer
  54709. */
  54710. treasure_sign.encodeDelimited = function encodeDelimited(message, writer) {
  54711. return this.encode(message, writer).ldelim();
  54712. };
  54713. /**
  54714. * Decodes a treasure_sign message from the specified reader or buffer.
  54715. * @function decode
  54716. * @memberof game.treasure_sign
  54717. * @static
  54718. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  54719. * @param {number} [length] Message length if known beforehand
  54720. * @returns {game.treasure_sign} treasure_sign
  54721. * @throws {Error} If the payload is not a reader or valid buffer
  54722. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  54723. */
  54724. treasure_sign.decode = function decode(reader, length) {
  54725. if (!(reader instanceof $Reader))
  54726. reader = $Reader.create(reader);
  54727. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.treasure_sign();
  54728. while (reader.pos < end) {
  54729. let tag = reader.uint32();
  54730. switch (tag >>> 3) {
  54731. default:
  54732. reader.skipType(tag & 7);
  54733. break;
  54734. }
  54735. }
  54736. return message;
  54737. };
  54738. /**
  54739. * Decodes a treasure_sign message from the specified reader or buffer, length delimited.
  54740. * @function decodeDelimited
  54741. * @memberof game.treasure_sign
  54742. * @static
  54743. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  54744. * @returns {game.treasure_sign} treasure_sign
  54745. * @throws {Error} If the payload is not a reader or valid buffer
  54746. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  54747. */
  54748. treasure_sign.decodeDelimited = function decodeDelimited(reader) {
  54749. if (!(reader instanceof $Reader))
  54750. reader = new $Reader(reader);
  54751. return this.decode(reader, reader.uint32());
  54752. };
  54753. /**
  54754. * Verifies a treasure_sign message.
  54755. * @function verify
  54756. * @memberof game.treasure_sign
  54757. * @static
  54758. * @param {Object.<string,*>} message Plain object to verify
  54759. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  54760. */
  54761. treasure_sign.verify = function verify(message) {
  54762. if (typeof message !== "object" || message === null)
  54763. return "object expected";
  54764. return null;
  54765. };
  54766. /**
  54767. * Creates a treasure_sign message from a plain object. Also converts values to their respective internal types.
  54768. * @function fromObject
  54769. * @memberof game.treasure_sign
  54770. * @static
  54771. * @param {Object.<string,*>} object Plain object
  54772. * @returns {game.treasure_sign} treasure_sign
  54773. */
  54774. treasure_sign.fromObject = function fromObject(object) {
  54775. if (object instanceof $root.game.treasure_sign)
  54776. return object;
  54777. return new $root.game.treasure_sign();
  54778. };
  54779. /**
  54780. * Creates a plain object from a treasure_sign message. Also converts values to other types if specified.
  54781. * @function toObject
  54782. * @memberof game.treasure_sign
  54783. * @static
  54784. * @param {game.treasure_sign} message treasure_sign
  54785. * @param {$protobuf.IConversionOptions} [options] Conversion options
  54786. * @returns {Object.<string,*>} Plain object
  54787. */
  54788. treasure_sign.toObject = function toObject() {
  54789. return {};
  54790. };
  54791. /**
  54792. * Converts this treasure_sign to JSON.
  54793. * @function toJSON
  54794. * @memberof game.treasure_sign
  54795. * @instance
  54796. * @returns {Object.<string,*>} JSON object
  54797. */
  54798. treasure_sign.prototype.toJSON = function toJSON() {
  54799. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  54800. };
  54801. return treasure_sign;
  54802. })();
  54803. game.treasure_sign_rsp = (function() {
  54804. /**
  54805. * Properties of a treasure_sign_rsp.
  54806. * @memberof game
  54807. * @interface Itreasure_sign_rsp
  54808. * @property {number|Long|null} [errno] treasure_sign_rsp errno
  54809. * @property {number|Long|null} [sign] treasure_sign_rsp sign
  54810. */
  54811. /**
  54812. * Constructs a new treasure_sign_rsp.
  54813. * @memberof game
  54814. * @classdesc Represents a treasure_sign_rsp.
  54815. * @implements Itreasure_sign_rsp
  54816. * @constructor
  54817. * @param {game.Itreasure_sign_rsp=} [properties] Properties to set
  54818. */
  54819. function treasure_sign_rsp(properties) {
  54820. if (properties)
  54821. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  54822. if (properties[keys[i]] != null)
  54823. this[keys[i]] = properties[keys[i]];
  54824. }
  54825. /**
  54826. * treasure_sign_rsp errno.
  54827. * @member {number|Long} errno
  54828. * @memberof game.treasure_sign_rsp
  54829. * @instance
  54830. */
  54831. treasure_sign_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  54832. /**
  54833. * treasure_sign_rsp sign.
  54834. * @member {number|Long} sign
  54835. * @memberof game.treasure_sign_rsp
  54836. * @instance
  54837. */
  54838. treasure_sign_rsp.prototype.sign = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  54839. /**
  54840. * Creates a new treasure_sign_rsp instance using the specified properties.
  54841. * @function create
  54842. * @memberof game.treasure_sign_rsp
  54843. * @static
  54844. * @param {game.Itreasure_sign_rsp=} [properties] Properties to set
  54845. * @returns {game.treasure_sign_rsp} treasure_sign_rsp instance
  54846. */
  54847. treasure_sign_rsp.create = function create(properties) {
  54848. return new treasure_sign_rsp(properties);
  54849. };
  54850. /**
  54851. * Encodes the specified treasure_sign_rsp message. Does not implicitly {@link game.treasure_sign_rsp.verify|verify} messages.
  54852. * @function encode
  54853. * @memberof game.treasure_sign_rsp
  54854. * @static
  54855. * @param {game.Itreasure_sign_rsp} message treasure_sign_rsp message or plain object to encode
  54856. * @param {$protobuf.Writer} [writer] Writer to encode to
  54857. * @returns {$protobuf.Writer} Writer
  54858. */
  54859. treasure_sign_rsp.encode = function encode(message, writer) {
  54860. if (!writer)
  54861. writer = $Writer.create();
  54862. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  54863. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  54864. if (message.sign != null && Object.hasOwnProperty.call(message, "sign"))
  54865. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.sign);
  54866. return writer;
  54867. };
  54868. /**
  54869. * Encodes the specified treasure_sign_rsp message, length delimited. Does not implicitly {@link game.treasure_sign_rsp.verify|verify} messages.
  54870. * @function encodeDelimited
  54871. * @memberof game.treasure_sign_rsp
  54872. * @static
  54873. * @param {game.Itreasure_sign_rsp} message treasure_sign_rsp message or plain object to encode
  54874. * @param {$protobuf.Writer} [writer] Writer to encode to
  54875. * @returns {$protobuf.Writer} Writer
  54876. */
  54877. treasure_sign_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  54878. return this.encode(message, writer).ldelim();
  54879. };
  54880. /**
  54881. * Decodes a treasure_sign_rsp message from the specified reader or buffer.
  54882. * @function decode
  54883. * @memberof game.treasure_sign_rsp
  54884. * @static
  54885. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  54886. * @param {number} [length] Message length if known beforehand
  54887. * @returns {game.treasure_sign_rsp} treasure_sign_rsp
  54888. * @throws {Error} If the payload is not a reader or valid buffer
  54889. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  54890. */
  54891. treasure_sign_rsp.decode = function decode(reader, length) {
  54892. if (!(reader instanceof $Reader))
  54893. reader = $Reader.create(reader);
  54894. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.treasure_sign_rsp();
  54895. while (reader.pos < end) {
  54896. let tag = reader.uint32();
  54897. switch (tag >>> 3) {
  54898. case 1:
  54899. message.errno = reader.int64();
  54900. break;
  54901. case 2:
  54902. message.sign = reader.int64();
  54903. break;
  54904. default:
  54905. reader.skipType(tag & 7);
  54906. break;
  54907. }
  54908. }
  54909. return message;
  54910. };
  54911. /**
  54912. * Decodes a treasure_sign_rsp message from the specified reader or buffer, length delimited.
  54913. * @function decodeDelimited
  54914. * @memberof game.treasure_sign_rsp
  54915. * @static
  54916. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  54917. * @returns {game.treasure_sign_rsp} treasure_sign_rsp
  54918. * @throws {Error} If the payload is not a reader or valid buffer
  54919. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  54920. */
  54921. treasure_sign_rsp.decodeDelimited = function decodeDelimited(reader) {
  54922. if (!(reader instanceof $Reader))
  54923. reader = new $Reader(reader);
  54924. return this.decode(reader, reader.uint32());
  54925. };
  54926. /**
  54927. * Verifies a treasure_sign_rsp message.
  54928. * @function verify
  54929. * @memberof game.treasure_sign_rsp
  54930. * @static
  54931. * @param {Object.<string,*>} message Plain object to verify
  54932. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  54933. */
  54934. treasure_sign_rsp.verify = function verify(message) {
  54935. if (typeof message !== "object" || message === null)
  54936. return "object expected";
  54937. if (message.errno != null && message.hasOwnProperty("errno"))
  54938. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  54939. return "errno: integer|Long expected";
  54940. if (message.sign != null && message.hasOwnProperty("sign"))
  54941. if (!$util.isInteger(message.sign) && !(message.sign && $util.isInteger(message.sign.low) && $util.isInteger(message.sign.high)))
  54942. return "sign: integer|Long expected";
  54943. return null;
  54944. };
  54945. /**
  54946. * Creates a treasure_sign_rsp message from a plain object. Also converts values to their respective internal types.
  54947. * @function fromObject
  54948. * @memberof game.treasure_sign_rsp
  54949. * @static
  54950. * @param {Object.<string,*>} object Plain object
  54951. * @returns {game.treasure_sign_rsp} treasure_sign_rsp
  54952. */
  54953. treasure_sign_rsp.fromObject = function fromObject(object) {
  54954. if (object instanceof $root.game.treasure_sign_rsp)
  54955. return object;
  54956. let message = new $root.game.treasure_sign_rsp();
  54957. if (object.errno != null)
  54958. if ($util.Long)
  54959. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  54960. else if (typeof object.errno === "string")
  54961. message.errno = parseInt(object.errno, 10);
  54962. else if (typeof object.errno === "number")
  54963. message.errno = object.errno;
  54964. else if (typeof object.errno === "object")
  54965. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  54966. if (object.sign != null)
  54967. if ($util.Long)
  54968. (message.sign = $util.Long.fromValue(object.sign)).unsigned = false;
  54969. else if (typeof object.sign === "string")
  54970. message.sign = parseInt(object.sign, 10);
  54971. else if (typeof object.sign === "number")
  54972. message.sign = object.sign;
  54973. else if (typeof object.sign === "object")
  54974. message.sign = new $util.LongBits(object.sign.low >>> 0, object.sign.high >>> 0).toNumber();
  54975. return message;
  54976. };
  54977. /**
  54978. * Creates a plain object from a treasure_sign_rsp message. Also converts values to other types if specified.
  54979. * @function toObject
  54980. * @memberof game.treasure_sign_rsp
  54981. * @static
  54982. * @param {game.treasure_sign_rsp} message treasure_sign_rsp
  54983. * @param {$protobuf.IConversionOptions} [options] Conversion options
  54984. * @returns {Object.<string,*>} Plain object
  54985. */
  54986. treasure_sign_rsp.toObject = function toObject(message, options) {
  54987. if (!options)
  54988. options = {};
  54989. let object = {};
  54990. if (options.defaults) {
  54991. if ($util.Long) {
  54992. let long = new $util.Long(0, 0, false);
  54993. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  54994. } else
  54995. object.errno = options.longs === String ? "0" : 0;
  54996. if ($util.Long) {
  54997. let long = new $util.Long(0, 0, false);
  54998. object.sign = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  54999. } else
  55000. object.sign = options.longs === String ? "0" : 0;
  55001. }
  55002. if (message.errno != null && message.hasOwnProperty("errno"))
  55003. if (typeof message.errno === "number")
  55004. object.errno = options.longs === String ? String(message.errno) : message.errno;
  55005. else
  55006. 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;
  55007. if (message.sign != null && message.hasOwnProperty("sign"))
  55008. if (typeof message.sign === "number")
  55009. object.sign = options.longs === String ? String(message.sign) : message.sign;
  55010. else
  55011. 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;
  55012. return object;
  55013. };
  55014. /**
  55015. * Converts this treasure_sign_rsp to JSON.
  55016. * @function toJSON
  55017. * @memberof game.treasure_sign_rsp
  55018. * @instance
  55019. * @returns {Object.<string,*>} JSON object
  55020. */
  55021. treasure_sign_rsp.prototype.toJSON = function toJSON() {
  55022. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  55023. };
  55024. return treasure_sign_rsp;
  55025. })();
  55026. game.treasure_buy = (function() {
  55027. /**
  55028. * Properties of a treasure_buy.
  55029. * @memberof game
  55030. * @interface Itreasure_buy
  55031. */
  55032. /**
  55033. * Constructs a new treasure_buy.
  55034. * @memberof game
  55035. * @classdesc Represents a treasure_buy.
  55036. * @implements Itreasure_buy
  55037. * @constructor
  55038. * @param {game.Itreasure_buy=} [properties] Properties to set
  55039. */
  55040. function treasure_buy(properties) {
  55041. if (properties)
  55042. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  55043. if (properties[keys[i]] != null)
  55044. this[keys[i]] = properties[keys[i]];
  55045. }
  55046. /**
  55047. * Creates a new treasure_buy instance using the specified properties.
  55048. * @function create
  55049. * @memberof game.treasure_buy
  55050. * @static
  55051. * @param {game.Itreasure_buy=} [properties] Properties to set
  55052. * @returns {game.treasure_buy} treasure_buy instance
  55053. */
  55054. treasure_buy.create = function create(properties) {
  55055. return new treasure_buy(properties);
  55056. };
  55057. /**
  55058. * Encodes the specified treasure_buy message. Does not implicitly {@link game.treasure_buy.verify|verify} messages.
  55059. * @function encode
  55060. * @memberof game.treasure_buy
  55061. * @static
  55062. * @param {game.Itreasure_buy} message treasure_buy message or plain object to encode
  55063. * @param {$protobuf.Writer} [writer] Writer to encode to
  55064. * @returns {$protobuf.Writer} Writer
  55065. */
  55066. treasure_buy.encode = function encode(message, writer) {
  55067. if (!writer)
  55068. writer = $Writer.create();
  55069. return writer;
  55070. };
  55071. /**
  55072. * Encodes the specified treasure_buy message, length delimited. Does not implicitly {@link game.treasure_buy.verify|verify} messages.
  55073. * @function encodeDelimited
  55074. * @memberof game.treasure_buy
  55075. * @static
  55076. * @param {game.Itreasure_buy} message treasure_buy message or plain object to encode
  55077. * @param {$protobuf.Writer} [writer] Writer to encode to
  55078. * @returns {$protobuf.Writer} Writer
  55079. */
  55080. treasure_buy.encodeDelimited = function encodeDelimited(message, writer) {
  55081. return this.encode(message, writer).ldelim();
  55082. };
  55083. /**
  55084. * Decodes a treasure_buy message from the specified reader or buffer.
  55085. * @function decode
  55086. * @memberof game.treasure_buy
  55087. * @static
  55088. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  55089. * @param {number} [length] Message length if known beforehand
  55090. * @returns {game.treasure_buy} treasure_buy
  55091. * @throws {Error} If the payload is not a reader or valid buffer
  55092. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  55093. */
  55094. treasure_buy.decode = function decode(reader, length) {
  55095. if (!(reader instanceof $Reader))
  55096. reader = $Reader.create(reader);
  55097. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.treasure_buy();
  55098. while (reader.pos < end) {
  55099. let tag = reader.uint32();
  55100. switch (tag >>> 3) {
  55101. default:
  55102. reader.skipType(tag & 7);
  55103. break;
  55104. }
  55105. }
  55106. return message;
  55107. };
  55108. /**
  55109. * Decodes a treasure_buy message from the specified reader or buffer, length delimited.
  55110. * @function decodeDelimited
  55111. * @memberof game.treasure_buy
  55112. * @static
  55113. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  55114. * @returns {game.treasure_buy} treasure_buy
  55115. * @throws {Error} If the payload is not a reader or valid buffer
  55116. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  55117. */
  55118. treasure_buy.decodeDelimited = function decodeDelimited(reader) {
  55119. if (!(reader instanceof $Reader))
  55120. reader = new $Reader(reader);
  55121. return this.decode(reader, reader.uint32());
  55122. };
  55123. /**
  55124. * Verifies a treasure_buy message.
  55125. * @function verify
  55126. * @memberof game.treasure_buy
  55127. * @static
  55128. * @param {Object.<string,*>} message Plain object to verify
  55129. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  55130. */
  55131. treasure_buy.verify = function verify(message) {
  55132. if (typeof message !== "object" || message === null)
  55133. return "object expected";
  55134. return null;
  55135. };
  55136. /**
  55137. * Creates a treasure_buy message from a plain object. Also converts values to their respective internal types.
  55138. * @function fromObject
  55139. * @memberof game.treasure_buy
  55140. * @static
  55141. * @param {Object.<string,*>} object Plain object
  55142. * @returns {game.treasure_buy} treasure_buy
  55143. */
  55144. treasure_buy.fromObject = function fromObject(object) {
  55145. if (object instanceof $root.game.treasure_buy)
  55146. return object;
  55147. return new $root.game.treasure_buy();
  55148. };
  55149. /**
  55150. * Creates a plain object from a treasure_buy message. Also converts values to other types if specified.
  55151. * @function toObject
  55152. * @memberof game.treasure_buy
  55153. * @static
  55154. * @param {game.treasure_buy} message treasure_buy
  55155. * @param {$protobuf.IConversionOptions} [options] Conversion options
  55156. * @returns {Object.<string,*>} Plain object
  55157. */
  55158. treasure_buy.toObject = function toObject() {
  55159. return {};
  55160. };
  55161. /**
  55162. * Converts this treasure_buy to JSON.
  55163. * @function toJSON
  55164. * @memberof game.treasure_buy
  55165. * @instance
  55166. * @returns {Object.<string,*>} JSON object
  55167. */
  55168. treasure_buy.prototype.toJSON = function toJSON() {
  55169. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  55170. };
  55171. return treasure_buy;
  55172. })();
  55173. game.treasure_buy_rsp = (function() {
  55174. /**
  55175. * Properties of a treasure_buy_rsp.
  55176. * @memberof game
  55177. * @interface Itreasure_buy_rsp
  55178. * @property {number|Long|null} [errno] treasure_buy_rsp errno
  55179. * @property {number|Long|null} [buy] treasure_buy_rsp buy
  55180. */
  55181. /**
  55182. * Constructs a new treasure_buy_rsp.
  55183. * @memberof game
  55184. * @classdesc Represents a treasure_buy_rsp.
  55185. * @implements Itreasure_buy_rsp
  55186. * @constructor
  55187. * @param {game.Itreasure_buy_rsp=} [properties] Properties to set
  55188. */
  55189. function treasure_buy_rsp(properties) {
  55190. if (properties)
  55191. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  55192. if (properties[keys[i]] != null)
  55193. this[keys[i]] = properties[keys[i]];
  55194. }
  55195. /**
  55196. * treasure_buy_rsp errno.
  55197. * @member {number|Long} errno
  55198. * @memberof game.treasure_buy_rsp
  55199. * @instance
  55200. */
  55201. treasure_buy_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  55202. /**
  55203. * treasure_buy_rsp buy.
  55204. * @member {number|Long} buy
  55205. * @memberof game.treasure_buy_rsp
  55206. * @instance
  55207. */
  55208. treasure_buy_rsp.prototype.buy = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  55209. /**
  55210. * Creates a new treasure_buy_rsp instance using the specified properties.
  55211. * @function create
  55212. * @memberof game.treasure_buy_rsp
  55213. * @static
  55214. * @param {game.Itreasure_buy_rsp=} [properties] Properties to set
  55215. * @returns {game.treasure_buy_rsp} treasure_buy_rsp instance
  55216. */
  55217. treasure_buy_rsp.create = function create(properties) {
  55218. return new treasure_buy_rsp(properties);
  55219. };
  55220. /**
  55221. * Encodes the specified treasure_buy_rsp message. Does not implicitly {@link game.treasure_buy_rsp.verify|verify} messages.
  55222. * @function encode
  55223. * @memberof game.treasure_buy_rsp
  55224. * @static
  55225. * @param {game.Itreasure_buy_rsp} message treasure_buy_rsp message or plain object to encode
  55226. * @param {$protobuf.Writer} [writer] Writer to encode to
  55227. * @returns {$protobuf.Writer} Writer
  55228. */
  55229. treasure_buy_rsp.encode = function encode(message, writer) {
  55230. if (!writer)
  55231. writer = $Writer.create();
  55232. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  55233. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  55234. if (message.buy != null && Object.hasOwnProperty.call(message, "buy"))
  55235. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.buy);
  55236. return writer;
  55237. };
  55238. /**
  55239. * Encodes the specified treasure_buy_rsp message, length delimited. Does not implicitly {@link game.treasure_buy_rsp.verify|verify} messages.
  55240. * @function encodeDelimited
  55241. * @memberof game.treasure_buy_rsp
  55242. * @static
  55243. * @param {game.Itreasure_buy_rsp} message treasure_buy_rsp message or plain object to encode
  55244. * @param {$protobuf.Writer} [writer] Writer to encode to
  55245. * @returns {$protobuf.Writer} Writer
  55246. */
  55247. treasure_buy_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  55248. return this.encode(message, writer).ldelim();
  55249. };
  55250. /**
  55251. * Decodes a treasure_buy_rsp message from the specified reader or buffer.
  55252. * @function decode
  55253. * @memberof game.treasure_buy_rsp
  55254. * @static
  55255. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  55256. * @param {number} [length] Message length if known beforehand
  55257. * @returns {game.treasure_buy_rsp} treasure_buy_rsp
  55258. * @throws {Error} If the payload is not a reader or valid buffer
  55259. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  55260. */
  55261. treasure_buy_rsp.decode = function decode(reader, length) {
  55262. if (!(reader instanceof $Reader))
  55263. reader = $Reader.create(reader);
  55264. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.treasure_buy_rsp();
  55265. while (reader.pos < end) {
  55266. let tag = reader.uint32();
  55267. switch (tag >>> 3) {
  55268. case 1:
  55269. message.errno = reader.int64();
  55270. break;
  55271. case 2:
  55272. message.buy = reader.int64();
  55273. break;
  55274. default:
  55275. reader.skipType(tag & 7);
  55276. break;
  55277. }
  55278. }
  55279. return message;
  55280. };
  55281. /**
  55282. * Decodes a treasure_buy_rsp message from the specified reader or buffer, length delimited.
  55283. * @function decodeDelimited
  55284. * @memberof game.treasure_buy_rsp
  55285. * @static
  55286. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  55287. * @returns {game.treasure_buy_rsp} treasure_buy_rsp
  55288. * @throws {Error} If the payload is not a reader or valid buffer
  55289. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  55290. */
  55291. treasure_buy_rsp.decodeDelimited = function decodeDelimited(reader) {
  55292. if (!(reader instanceof $Reader))
  55293. reader = new $Reader(reader);
  55294. return this.decode(reader, reader.uint32());
  55295. };
  55296. /**
  55297. * Verifies a treasure_buy_rsp message.
  55298. * @function verify
  55299. * @memberof game.treasure_buy_rsp
  55300. * @static
  55301. * @param {Object.<string,*>} message Plain object to verify
  55302. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  55303. */
  55304. treasure_buy_rsp.verify = function verify(message) {
  55305. if (typeof message !== "object" || message === null)
  55306. return "object expected";
  55307. if (message.errno != null && message.hasOwnProperty("errno"))
  55308. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  55309. return "errno: integer|Long expected";
  55310. if (message.buy != null && message.hasOwnProperty("buy"))
  55311. if (!$util.isInteger(message.buy) && !(message.buy && $util.isInteger(message.buy.low) && $util.isInteger(message.buy.high)))
  55312. return "buy: integer|Long expected";
  55313. return null;
  55314. };
  55315. /**
  55316. * Creates a treasure_buy_rsp message from a plain object. Also converts values to their respective internal types.
  55317. * @function fromObject
  55318. * @memberof game.treasure_buy_rsp
  55319. * @static
  55320. * @param {Object.<string,*>} object Plain object
  55321. * @returns {game.treasure_buy_rsp} treasure_buy_rsp
  55322. */
  55323. treasure_buy_rsp.fromObject = function fromObject(object) {
  55324. if (object instanceof $root.game.treasure_buy_rsp)
  55325. return object;
  55326. let message = new $root.game.treasure_buy_rsp();
  55327. if (object.errno != null)
  55328. if ($util.Long)
  55329. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  55330. else if (typeof object.errno === "string")
  55331. message.errno = parseInt(object.errno, 10);
  55332. else if (typeof object.errno === "number")
  55333. message.errno = object.errno;
  55334. else if (typeof object.errno === "object")
  55335. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  55336. if (object.buy != null)
  55337. if ($util.Long)
  55338. (message.buy = $util.Long.fromValue(object.buy)).unsigned = false;
  55339. else if (typeof object.buy === "string")
  55340. message.buy = parseInt(object.buy, 10);
  55341. else if (typeof object.buy === "number")
  55342. message.buy = object.buy;
  55343. else if (typeof object.buy === "object")
  55344. message.buy = new $util.LongBits(object.buy.low >>> 0, object.buy.high >>> 0).toNumber();
  55345. return message;
  55346. };
  55347. /**
  55348. * Creates a plain object from a treasure_buy_rsp message. Also converts values to other types if specified.
  55349. * @function toObject
  55350. * @memberof game.treasure_buy_rsp
  55351. * @static
  55352. * @param {game.treasure_buy_rsp} message treasure_buy_rsp
  55353. * @param {$protobuf.IConversionOptions} [options] Conversion options
  55354. * @returns {Object.<string,*>} Plain object
  55355. */
  55356. treasure_buy_rsp.toObject = function toObject(message, options) {
  55357. if (!options)
  55358. options = {};
  55359. let object = {};
  55360. if (options.defaults) {
  55361. if ($util.Long) {
  55362. let long = new $util.Long(0, 0, false);
  55363. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  55364. } else
  55365. object.errno = options.longs === String ? "0" : 0;
  55366. if ($util.Long) {
  55367. let long = new $util.Long(0, 0, false);
  55368. object.buy = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  55369. } else
  55370. object.buy = options.longs === String ? "0" : 0;
  55371. }
  55372. if (message.errno != null && message.hasOwnProperty("errno"))
  55373. if (typeof message.errno === "number")
  55374. object.errno = options.longs === String ? String(message.errno) : message.errno;
  55375. else
  55376. 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;
  55377. if (message.buy != null && message.hasOwnProperty("buy"))
  55378. if (typeof message.buy === "number")
  55379. object.buy = options.longs === String ? String(message.buy) : message.buy;
  55380. else
  55381. 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;
  55382. return object;
  55383. };
  55384. /**
  55385. * Converts this treasure_buy_rsp to JSON.
  55386. * @function toJSON
  55387. * @memberof game.treasure_buy_rsp
  55388. * @instance
  55389. * @returns {Object.<string,*>} JSON object
  55390. */
  55391. treasure_buy_rsp.prototype.toJSON = function toJSON() {
  55392. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  55393. };
  55394. return treasure_buy_rsp;
  55395. })();
  55396. game.pvp_data = (function() {
  55397. /**
  55398. * Properties of a pvp_data.
  55399. * @memberof game
  55400. * @interface Ipvp_data
  55401. */
  55402. /**
  55403. * Constructs a new pvp_data.
  55404. * @memberof game
  55405. * @classdesc Represents a pvp_data.
  55406. * @implements Ipvp_data
  55407. * @constructor
  55408. * @param {game.Ipvp_data=} [properties] Properties to set
  55409. */
  55410. function pvp_data(properties) {
  55411. if (properties)
  55412. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  55413. if (properties[keys[i]] != null)
  55414. this[keys[i]] = properties[keys[i]];
  55415. }
  55416. /**
  55417. * Creates a new pvp_data instance using the specified properties.
  55418. * @function create
  55419. * @memberof game.pvp_data
  55420. * @static
  55421. * @param {game.Ipvp_data=} [properties] Properties to set
  55422. * @returns {game.pvp_data} pvp_data instance
  55423. */
  55424. pvp_data.create = function create(properties) {
  55425. return new pvp_data(properties);
  55426. };
  55427. /**
  55428. * Encodes the specified pvp_data message. Does not implicitly {@link game.pvp_data.verify|verify} messages.
  55429. * @function encode
  55430. * @memberof game.pvp_data
  55431. * @static
  55432. * @param {game.Ipvp_data} message pvp_data message or plain object to encode
  55433. * @param {$protobuf.Writer} [writer] Writer to encode to
  55434. * @returns {$protobuf.Writer} Writer
  55435. */
  55436. pvp_data.encode = function encode(message, writer) {
  55437. if (!writer)
  55438. writer = $Writer.create();
  55439. return writer;
  55440. };
  55441. /**
  55442. * Encodes the specified pvp_data message, length delimited. Does not implicitly {@link game.pvp_data.verify|verify} messages.
  55443. * @function encodeDelimited
  55444. * @memberof game.pvp_data
  55445. * @static
  55446. * @param {game.Ipvp_data} message pvp_data message or plain object to encode
  55447. * @param {$protobuf.Writer} [writer] Writer to encode to
  55448. * @returns {$protobuf.Writer} Writer
  55449. */
  55450. pvp_data.encodeDelimited = function encodeDelimited(message, writer) {
  55451. return this.encode(message, writer).ldelim();
  55452. };
  55453. /**
  55454. * Decodes a pvp_data message from the specified reader or buffer.
  55455. * @function decode
  55456. * @memberof game.pvp_data
  55457. * @static
  55458. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  55459. * @param {number} [length] Message length if known beforehand
  55460. * @returns {game.pvp_data} pvp_data
  55461. * @throws {Error} If the payload is not a reader or valid buffer
  55462. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  55463. */
  55464. pvp_data.decode = function decode(reader, length) {
  55465. if (!(reader instanceof $Reader))
  55466. reader = $Reader.create(reader);
  55467. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pvp_data();
  55468. while (reader.pos < end) {
  55469. let tag = reader.uint32();
  55470. switch (tag >>> 3) {
  55471. default:
  55472. reader.skipType(tag & 7);
  55473. break;
  55474. }
  55475. }
  55476. return message;
  55477. };
  55478. /**
  55479. * Decodes a pvp_data message from the specified reader or buffer, length delimited.
  55480. * @function decodeDelimited
  55481. * @memberof game.pvp_data
  55482. * @static
  55483. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  55484. * @returns {game.pvp_data} pvp_data
  55485. * @throws {Error} If the payload is not a reader or valid buffer
  55486. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  55487. */
  55488. pvp_data.decodeDelimited = function decodeDelimited(reader) {
  55489. if (!(reader instanceof $Reader))
  55490. reader = new $Reader(reader);
  55491. return this.decode(reader, reader.uint32());
  55492. };
  55493. /**
  55494. * Verifies a pvp_data message.
  55495. * @function verify
  55496. * @memberof game.pvp_data
  55497. * @static
  55498. * @param {Object.<string,*>} message Plain object to verify
  55499. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  55500. */
  55501. pvp_data.verify = function verify(message) {
  55502. if (typeof message !== "object" || message === null)
  55503. return "object expected";
  55504. return null;
  55505. };
  55506. /**
  55507. * Creates a pvp_data message from a plain object. Also converts values to their respective internal types.
  55508. * @function fromObject
  55509. * @memberof game.pvp_data
  55510. * @static
  55511. * @param {Object.<string,*>} object Plain object
  55512. * @returns {game.pvp_data} pvp_data
  55513. */
  55514. pvp_data.fromObject = function fromObject(object) {
  55515. if (object instanceof $root.game.pvp_data)
  55516. return object;
  55517. return new $root.game.pvp_data();
  55518. };
  55519. /**
  55520. * Creates a plain object from a pvp_data message. Also converts values to other types if specified.
  55521. * @function toObject
  55522. * @memberof game.pvp_data
  55523. * @static
  55524. * @param {game.pvp_data} message pvp_data
  55525. * @param {$protobuf.IConversionOptions} [options] Conversion options
  55526. * @returns {Object.<string,*>} Plain object
  55527. */
  55528. pvp_data.toObject = function toObject() {
  55529. return {};
  55530. };
  55531. /**
  55532. * Converts this pvp_data to JSON.
  55533. * @function toJSON
  55534. * @memberof game.pvp_data
  55535. * @instance
  55536. * @returns {Object.<string,*>} JSON object
  55537. */
  55538. pvp_data.prototype.toJSON = function toJSON() {
  55539. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  55540. };
  55541. return pvp_data;
  55542. })();
  55543. game.pvp_data_rsp = (function() {
  55544. /**
  55545. * Properties of a pvp_data_rsp.
  55546. * @memberof game
  55547. * @interface Ipvp_data_rsp
  55548. * @property {number|Long|null} [errno] pvp_data_rsp errno
  55549. * @property {Array.<game.Iembattle_info>|null} [embattleList] pvp_data_rsp embattleList
  55550. * @property {Array.<game.Iranking_info>|null} [rankingList] pvp_data_rsp rankingList
  55551. */
  55552. /**
  55553. * Constructs a new pvp_data_rsp.
  55554. * @memberof game
  55555. * @classdesc Represents a pvp_data_rsp.
  55556. * @implements Ipvp_data_rsp
  55557. * @constructor
  55558. * @param {game.Ipvp_data_rsp=} [properties] Properties to set
  55559. */
  55560. function pvp_data_rsp(properties) {
  55561. this.embattleList = [];
  55562. this.rankingList = [];
  55563. if (properties)
  55564. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  55565. if (properties[keys[i]] != null)
  55566. this[keys[i]] = properties[keys[i]];
  55567. }
  55568. /**
  55569. * pvp_data_rsp errno.
  55570. * @member {number|Long} errno
  55571. * @memberof game.pvp_data_rsp
  55572. * @instance
  55573. */
  55574. pvp_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  55575. /**
  55576. * pvp_data_rsp embattleList.
  55577. * @member {Array.<game.Iembattle_info>} embattleList
  55578. * @memberof game.pvp_data_rsp
  55579. * @instance
  55580. */
  55581. pvp_data_rsp.prototype.embattleList = $util.emptyArray;
  55582. /**
  55583. * pvp_data_rsp rankingList.
  55584. * @member {Array.<game.Iranking_info>} rankingList
  55585. * @memberof game.pvp_data_rsp
  55586. * @instance
  55587. */
  55588. pvp_data_rsp.prototype.rankingList = $util.emptyArray;
  55589. /**
  55590. * Creates a new pvp_data_rsp instance using the specified properties.
  55591. * @function create
  55592. * @memberof game.pvp_data_rsp
  55593. * @static
  55594. * @param {game.Ipvp_data_rsp=} [properties] Properties to set
  55595. * @returns {game.pvp_data_rsp} pvp_data_rsp instance
  55596. */
  55597. pvp_data_rsp.create = function create(properties) {
  55598. return new pvp_data_rsp(properties);
  55599. };
  55600. /**
  55601. * Encodes the specified pvp_data_rsp message. Does not implicitly {@link game.pvp_data_rsp.verify|verify} messages.
  55602. * @function encode
  55603. * @memberof game.pvp_data_rsp
  55604. * @static
  55605. * @param {game.Ipvp_data_rsp} message pvp_data_rsp message or plain object to encode
  55606. * @param {$protobuf.Writer} [writer] Writer to encode to
  55607. * @returns {$protobuf.Writer} Writer
  55608. */
  55609. pvp_data_rsp.encode = function encode(message, writer) {
  55610. if (!writer)
  55611. writer = $Writer.create();
  55612. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  55613. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  55614. if (message.embattleList != null && message.embattleList.length)
  55615. for (let i = 0; i < message.embattleList.length; ++i)
  55616. $root.game.embattle_info.encode(message.embattleList[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  55617. if (message.rankingList != null && message.rankingList.length)
  55618. for (let i = 0; i < message.rankingList.length; ++i)
  55619. $root.game.ranking_info.encode(message.rankingList[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
  55620. return writer;
  55621. };
  55622. /**
  55623. * Encodes the specified pvp_data_rsp message, length delimited. Does not implicitly {@link game.pvp_data_rsp.verify|verify} messages.
  55624. * @function encodeDelimited
  55625. * @memberof game.pvp_data_rsp
  55626. * @static
  55627. * @param {game.Ipvp_data_rsp} message pvp_data_rsp message or plain object to encode
  55628. * @param {$protobuf.Writer} [writer] Writer to encode to
  55629. * @returns {$protobuf.Writer} Writer
  55630. */
  55631. pvp_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  55632. return this.encode(message, writer).ldelim();
  55633. };
  55634. /**
  55635. * Decodes a pvp_data_rsp message from the specified reader or buffer.
  55636. * @function decode
  55637. * @memberof game.pvp_data_rsp
  55638. * @static
  55639. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  55640. * @param {number} [length] Message length if known beforehand
  55641. * @returns {game.pvp_data_rsp} pvp_data_rsp
  55642. * @throws {Error} If the payload is not a reader or valid buffer
  55643. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  55644. */
  55645. pvp_data_rsp.decode = function decode(reader, length) {
  55646. if (!(reader instanceof $Reader))
  55647. reader = $Reader.create(reader);
  55648. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pvp_data_rsp();
  55649. while (reader.pos < end) {
  55650. let tag = reader.uint32();
  55651. switch (tag >>> 3) {
  55652. case 1:
  55653. message.errno = reader.int64();
  55654. break;
  55655. case 2:
  55656. if (!(message.embattleList && message.embattleList.length))
  55657. message.embattleList = [];
  55658. message.embattleList.push($root.game.embattle_info.decode(reader, reader.uint32()));
  55659. break;
  55660. case 3:
  55661. if (!(message.rankingList && message.rankingList.length))
  55662. message.rankingList = [];
  55663. message.rankingList.push($root.game.ranking_info.decode(reader, reader.uint32()));
  55664. break;
  55665. default:
  55666. reader.skipType(tag & 7);
  55667. break;
  55668. }
  55669. }
  55670. return message;
  55671. };
  55672. /**
  55673. * Decodes a pvp_data_rsp message from the specified reader or buffer, length delimited.
  55674. * @function decodeDelimited
  55675. * @memberof game.pvp_data_rsp
  55676. * @static
  55677. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  55678. * @returns {game.pvp_data_rsp} pvp_data_rsp
  55679. * @throws {Error} If the payload is not a reader or valid buffer
  55680. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  55681. */
  55682. pvp_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  55683. if (!(reader instanceof $Reader))
  55684. reader = new $Reader(reader);
  55685. return this.decode(reader, reader.uint32());
  55686. };
  55687. /**
  55688. * Verifies a pvp_data_rsp message.
  55689. * @function verify
  55690. * @memberof game.pvp_data_rsp
  55691. * @static
  55692. * @param {Object.<string,*>} message Plain object to verify
  55693. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  55694. */
  55695. pvp_data_rsp.verify = function verify(message) {
  55696. if (typeof message !== "object" || message === null)
  55697. return "object expected";
  55698. if (message.errno != null && message.hasOwnProperty("errno"))
  55699. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  55700. return "errno: integer|Long expected";
  55701. if (message.embattleList != null && message.hasOwnProperty("embattleList")) {
  55702. if (!Array.isArray(message.embattleList))
  55703. return "embattleList: array expected";
  55704. for (let i = 0; i < message.embattleList.length; ++i) {
  55705. let error = $root.game.embattle_info.verify(message.embattleList[i]);
  55706. if (error)
  55707. return "embattleList." + error;
  55708. }
  55709. }
  55710. if (message.rankingList != null && message.hasOwnProperty("rankingList")) {
  55711. if (!Array.isArray(message.rankingList))
  55712. return "rankingList: array expected";
  55713. for (let i = 0; i < message.rankingList.length; ++i) {
  55714. let error = $root.game.ranking_info.verify(message.rankingList[i]);
  55715. if (error)
  55716. return "rankingList." + error;
  55717. }
  55718. }
  55719. return null;
  55720. };
  55721. /**
  55722. * Creates a pvp_data_rsp message from a plain object. Also converts values to their respective internal types.
  55723. * @function fromObject
  55724. * @memberof game.pvp_data_rsp
  55725. * @static
  55726. * @param {Object.<string,*>} object Plain object
  55727. * @returns {game.pvp_data_rsp} pvp_data_rsp
  55728. */
  55729. pvp_data_rsp.fromObject = function fromObject(object) {
  55730. if (object instanceof $root.game.pvp_data_rsp)
  55731. return object;
  55732. let message = new $root.game.pvp_data_rsp();
  55733. if (object.errno != null)
  55734. if ($util.Long)
  55735. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  55736. else if (typeof object.errno === "string")
  55737. message.errno = parseInt(object.errno, 10);
  55738. else if (typeof object.errno === "number")
  55739. message.errno = object.errno;
  55740. else if (typeof object.errno === "object")
  55741. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  55742. if (object.embattleList) {
  55743. if (!Array.isArray(object.embattleList))
  55744. throw TypeError(".game.pvp_data_rsp.embattleList: array expected");
  55745. message.embattleList = [];
  55746. for (let i = 0; i < object.embattleList.length; ++i) {
  55747. if (typeof object.embattleList[i] !== "object")
  55748. throw TypeError(".game.pvp_data_rsp.embattleList: object expected");
  55749. message.embattleList[i] = $root.game.embattle_info.fromObject(object.embattleList[i]);
  55750. }
  55751. }
  55752. if (object.rankingList) {
  55753. if (!Array.isArray(object.rankingList))
  55754. throw TypeError(".game.pvp_data_rsp.rankingList: array expected");
  55755. message.rankingList = [];
  55756. for (let i = 0; i < object.rankingList.length; ++i) {
  55757. if (typeof object.rankingList[i] !== "object")
  55758. throw TypeError(".game.pvp_data_rsp.rankingList: object expected");
  55759. message.rankingList[i] = $root.game.ranking_info.fromObject(object.rankingList[i]);
  55760. }
  55761. }
  55762. return message;
  55763. };
  55764. /**
  55765. * Creates a plain object from a pvp_data_rsp message. Also converts values to other types if specified.
  55766. * @function toObject
  55767. * @memberof game.pvp_data_rsp
  55768. * @static
  55769. * @param {game.pvp_data_rsp} message pvp_data_rsp
  55770. * @param {$protobuf.IConversionOptions} [options] Conversion options
  55771. * @returns {Object.<string,*>} Plain object
  55772. */
  55773. pvp_data_rsp.toObject = function toObject(message, options) {
  55774. if (!options)
  55775. options = {};
  55776. let object = {};
  55777. if (options.arrays || options.defaults) {
  55778. object.embattleList = [];
  55779. object.rankingList = [];
  55780. }
  55781. if (options.defaults)
  55782. if ($util.Long) {
  55783. let long = new $util.Long(0, 0, false);
  55784. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  55785. } else
  55786. object.errno = options.longs === String ? "0" : 0;
  55787. if (message.errno != null && message.hasOwnProperty("errno"))
  55788. if (typeof message.errno === "number")
  55789. object.errno = options.longs === String ? String(message.errno) : message.errno;
  55790. else
  55791. 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;
  55792. if (message.embattleList && message.embattleList.length) {
  55793. object.embattleList = [];
  55794. for (let j = 0; j < message.embattleList.length; ++j)
  55795. object.embattleList[j] = $root.game.embattle_info.toObject(message.embattleList[j], options);
  55796. }
  55797. if (message.rankingList && message.rankingList.length) {
  55798. object.rankingList = [];
  55799. for (let j = 0; j < message.rankingList.length; ++j)
  55800. object.rankingList[j] = $root.game.ranking_info.toObject(message.rankingList[j], options);
  55801. }
  55802. return object;
  55803. };
  55804. /**
  55805. * Converts this pvp_data_rsp to JSON.
  55806. * @function toJSON
  55807. * @memberof game.pvp_data_rsp
  55808. * @instance
  55809. * @returns {Object.<string,*>} JSON object
  55810. */
  55811. pvp_data_rsp.prototype.toJSON = function toJSON() {
  55812. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  55813. };
  55814. return pvp_data_rsp;
  55815. })();
  55816. game.pvp_match = (function() {
  55817. /**
  55818. * Properties of a pvp_match.
  55819. * @memberof game
  55820. * @interface Ipvp_match
  55821. */
  55822. /**
  55823. * Constructs a new pvp_match.
  55824. * @memberof game
  55825. * @classdesc Represents a pvp_match.
  55826. * @implements Ipvp_match
  55827. * @constructor
  55828. * @param {game.Ipvp_match=} [properties] Properties to set
  55829. */
  55830. function pvp_match(properties) {
  55831. if (properties)
  55832. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  55833. if (properties[keys[i]] != null)
  55834. this[keys[i]] = properties[keys[i]];
  55835. }
  55836. /**
  55837. * Creates a new pvp_match instance using the specified properties.
  55838. * @function create
  55839. * @memberof game.pvp_match
  55840. * @static
  55841. * @param {game.Ipvp_match=} [properties] Properties to set
  55842. * @returns {game.pvp_match} pvp_match instance
  55843. */
  55844. pvp_match.create = function create(properties) {
  55845. return new pvp_match(properties);
  55846. };
  55847. /**
  55848. * Encodes the specified pvp_match message. Does not implicitly {@link game.pvp_match.verify|verify} messages.
  55849. * @function encode
  55850. * @memberof game.pvp_match
  55851. * @static
  55852. * @param {game.Ipvp_match} message pvp_match message or plain object to encode
  55853. * @param {$protobuf.Writer} [writer] Writer to encode to
  55854. * @returns {$protobuf.Writer} Writer
  55855. */
  55856. pvp_match.encode = function encode(message, writer) {
  55857. if (!writer)
  55858. writer = $Writer.create();
  55859. return writer;
  55860. };
  55861. /**
  55862. * Encodes the specified pvp_match message, length delimited. Does not implicitly {@link game.pvp_match.verify|verify} messages.
  55863. * @function encodeDelimited
  55864. * @memberof game.pvp_match
  55865. * @static
  55866. * @param {game.Ipvp_match} message pvp_match message or plain object to encode
  55867. * @param {$protobuf.Writer} [writer] Writer to encode to
  55868. * @returns {$protobuf.Writer} Writer
  55869. */
  55870. pvp_match.encodeDelimited = function encodeDelimited(message, writer) {
  55871. return this.encode(message, writer).ldelim();
  55872. };
  55873. /**
  55874. * Decodes a pvp_match message from the specified reader or buffer.
  55875. * @function decode
  55876. * @memberof game.pvp_match
  55877. * @static
  55878. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  55879. * @param {number} [length] Message length if known beforehand
  55880. * @returns {game.pvp_match} pvp_match
  55881. * @throws {Error} If the payload is not a reader or valid buffer
  55882. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  55883. */
  55884. pvp_match.decode = function decode(reader, length) {
  55885. if (!(reader instanceof $Reader))
  55886. reader = $Reader.create(reader);
  55887. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pvp_match();
  55888. while (reader.pos < end) {
  55889. let tag = reader.uint32();
  55890. switch (tag >>> 3) {
  55891. default:
  55892. reader.skipType(tag & 7);
  55893. break;
  55894. }
  55895. }
  55896. return message;
  55897. };
  55898. /**
  55899. * Decodes a pvp_match message from the specified reader or buffer, length delimited.
  55900. * @function decodeDelimited
  55901. * @memberof game.pvp_match
  55902. * @static
  55903. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  55904. * @returns {game.pvp_match} pvp_match
  55905. * @throws {Error} If the payload is not a reader or valid buffer
  55906. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  55907. */
  55908. pvp_match.decodeDelimited = function decodeDelimited(reader) {
  55909. if (!(reader instanceof $Reader))
  55910. reader = new $Reader(reader);
  55911. return this.decode(reader, reader.uint32());
  55912. };
  55913. /**
  55914. * Verifies a pvp_match message.
  55915. * @function verify
  55916. * @memberof game.pvp_match
  55917. * @static
  55918. * @param {Object.<string,*>} message Plain object to verify
  55919. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  55920. */
  55921. pvp_match.verify = function verify(message) {
  55922. if (typeof message !== "object" || message === null)
  55923. return "object expected";
  55924. return null;
  55925. };
  55926. /**
  55927. * Creates a pvp_match message from a plain object. Also converts values to their respective internal types.
  55928. * @function fromObject
  55929. * @memberof game.pvp_match
  55930. * @static
  55931. * @param {Object.<string,*>} object Plain object
  55932. * @returns {game.pvp_match} pvp_match
  55933. */
  55934. pvp_match.fromObject = function fromObject(object) {
  55935. if (object instanceof $root.game.pvp_match)
  55936. return object;
  55937. return new $root.game.pvp_match();
  55938. };
  55939. /**
  55940. * Creates a plain object from a pvp_match message. Also converts values to other types if specified.
  55941. * @function toObject
  55942. * @memberof game.pvp_match
  55943. * @static
  55944. * @param {game.pvp_match} message pvp_match
  55945. * @param {$protobuf.IConversionOptions} [options] Conversion options
  55946. * @returns {Object.<string,*>} Plain object
  55947. */
  55948. pvp_match.toObject = function toObject() {
  55949. return {};
  55950. };
  55951. /**
  55952. * Converts this pvp_match to JSON.
  55953. * @function toJSON
  55954. * @memberof game.pvp_match
  55955. * @instance
  55956. * @returns {Object.<string,*>} JSON object
  55957. */
  55958. pvp_match.prototype.toJSON = function toJSON() {
  55959. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  55960. };
  55961. return pvp_match;
  55962. })();
  55963. game.pvp_match_rsp = (function() {
  55964. /**
  55965. * Properties of a pvp_match_rsp.
  55966. * @memberof game
  55967. * @interface Ipvp_match_rsp
  55968. * @property {number|Long|null} [errno] pvp_match_rsp errno
  55969. * @property {Array.<game.Iembattle_info>|null} [embattleList] pvp_match_rsp embattleList
  55970. * @property {Array.<game.Ihero>|null} [heroList] pvp_match_rsp heroList
  55971. * @property {Array.<game.Icard>|null} [cardList] pvp_match_rsp cardList
  55972. * @property {Array.<game.Iequip>|null} [equipList] pvp_match_rsp equipList
  55973. * @property {game.Italent_info|null} [talentData] pvp_match_rsp talentData
  55974. */
  55975. /**
  55976. * Constructs a new pvp_match_rsp.
  55977. * @memberof game
  55978. * @classdesc Represents a pvp_match_rsp.
  55979. * @implements Ipvp_match_rsp
  55980. * @constructor
  55981. * @param {game.Ipvp_match_rsp=} [properties] Properties to set
  55982. */
  55983. function pvp_match_rsp(properties) {
  55984. this.embattleList = [];
  55985. this.heroList = [];
  55986. this.cardList = [];
  55987. this.equipList = [];
  55988. if (properties)
  55989. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  55990. if (properties[keys[i]] != null)
  55991. this[keys[i]] = properties[keys[i]];
  55992. }
  55993. /**
  55994. * pvp_match_rsp errno.
  55995. * @member {number|Long} errno
  55996. * @memberof game.pvp_match_rsp
  55997. * @instance
  55998. */
  55999. pvp_match_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  56000. /**
  56001. * pvp_match_rsp embattleList.
  56002. * @member {Array.<game.Iembattle_info>} embattleList
  56003. * @memberof game.pvp_match_rsp
  56004. * @instance
  56005. */
  56006. pvp_match_rsp.prototype.embattleList = $util.emptyArray;
  56007. /**
  56008. * pvp_match_rsp heroList.
  56009. * @member {Array.<game.Ihero>} heroList
  56010. * @memberof game.pvp_match_rsp
  56011. * @instance
  56012. */
  56013. pvp_match_rsp.prototype.heroList = $util.emptyArray;
  56014. /**
  56015. * pvp_match_rsp cardList.
  56016. * @member {Array.<game.Icard>} cardList
  56017. * @memberof game.pvp_match_rsp
  56018. * @instance
  56019. */
  56020. pvp_match_rsp.prototype.cardList = $util.emptyArray;
  56021. /**
  56022. * pvp_match_rsp equipList.
  56023. * @member {Array.<game.Iequip>} equipList
  56024. * @memberof game.pvp_match_rsp
  56025. * @instance
  56026. */
  56027. pvp_match_rsp.prototype.equipList = $util.emptyArray;
  56028. /**
  56029. * pvp_match_rsp talentData.
  56030. * @member {game.Italent_info|null|undefined} talentData
  56031. * @memberof game.pvp_match_rsp
  56032. * @instance
  56033. */
  56034. pvp_match_rsp.prototype.talentData = null;
  56035. /**
  56036. * Creates a new pvp_match_rsp instance using the specified properties.
  56037. * @function create
  56038. * @memberof game.pvp_match_rsp
  56039. * @static
  56040. * @param {game.Ipvp_match_rsp=} [properties] Properties to set
  56041. * @returns {game.pvp_match_rsp} pvp_match_rsp instance
  56042. */
  56043. pvp_match_rsp.create = function create(properties) {
  56044. return new pvp_match_rsp(properties);
  56045. };
  56046. /**
  56047. * Encodes the specified pvp_match_rsp message. Does not implicitly {@link game.pvp_match_rsp.verify|verify} messages.
  56048. * @function encode
  56049. * @memberof game.pvp_match_rsp
  56050. * @static
  56051. * @param {game.Ipvp_match_rsp} message pvp_match_rsp message or plain object to encode
  56052. * @param {$protobuf.Writer} [writer] Writer to encode to
  56053. * @returns {$protobuf.Writer} Writer
  56054. */
  56055. pvp_match_rsp.encode = function encode(message, writer) {
  56056. if (!writer)
  56057. writer = $Writer.create();
  56058. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  56059. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  56060. if (message.embattleList != null && message.embattleList.length)
  56061. for (let i = 0; i < message.embattleList.length; ++i)
  56062. $root.game.embattle_info.encode(message.embattleList[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  56063. if (message.heroList != null && message.heroList.length)
  56064. for (let i = 0; i < message.heroList.length; ++i)
  56065. $root.game.hero.encode(message.heroList[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
  56066. if (message.cardList != null && message.cardList.length)
  56067. for (let i = 0; i < message.cardList.length; ++i)
  56068. $root.game.card.encode(message.cardList[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
  56069. if (message.equipList != null && message.equipList.length)
  56070. for (let i = 0; i < message.equipList.length; ++i)
  56071. $root.game.equip.encode(message.equipList[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
  56072. if (message.talentData != null && Object.hasOwnProperty.call(message, "talentData"))
  56073. $root.game.talent_info.encode(message.talentData, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
  56074. return writer;
  56075. };
  56076. /**
  56077. * Encodes the specified pvp_match_rsp message, length delimited. Does not implicitly {@link game.pvp_match_rsp.verify|verify} messages.
  56078. * @function encodeDelimited
  56079. * @memberof game.pvp_match_rsp
  56080. * @static
  56081. * @param {game.Ipvp_match_rsp} message pvp_match_rsp message or plain object to encode
  56082. * @param {$protobuf.Writer} [writer] Writer to encode to
  56083. * @returns {$protobuf.Writer} Writer
  56084. */
  56085. pvp_match_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  56086. return this.encode(message, writer).ldelim();
  56087. };
  56088. /**
  56089. * Decodes a pvp_match_rsp message from the specified reader or buffer.
  56090. * @function decode
  56091. * @memberof game.pvp_match_rsp
  56092. * @static
  56093. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  56094. * @param {number} [length] Message length if known beforehand
  56095. * @returns {game.pvp_match_rsp} pvp_match_rsp
  56096. * @throws {Error} If the payload is not a reader or valid buffer
  56097. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  56098. */
  56099. pvp_match_rsp.decode = function decode(reader, length) {
  56100. if (!(reader instanceof $Reader))
  56101. reader = $Reader.create(reader);
  56102. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pvp_match_rsp();
  56103. while (reader.pos < end) {
  56104. let tag = reader.uint32();
  56105. switch (tag >>> 3) {
  56106. case 1:
  56107. message.errno = reader.int64();
  56108. break;
  56109. case 2:
  56110. if (!(message.embattleList && message.embattleList.length))
  56111. message.embattleList = [];
  56112. message.embattleList.push($root.game.embattle_info.decode(reader, reader.uint32()));
  56113. break;
  56114. case 3:
  56115. if (!(message.heroList && message.heroList.length))
  56116. message.heroList = [];
  56117. message.heroList.push($root.game.hero.decode(reader, reader.uint32()));
  56118. break;
  56119. case 4:
  56120. if (!(message.cardList && message.cardList.length))
  56121. message.cardList = [];
  56122. message.cardList.push($root.game.card.decode(reader, reader.uint32()));
  56123. break;
  56124. case 5:
  56125. if (!(message.equipList && message.equipList.length))
  56126. message.equipList = [];
  56127. message.equipList.push($root.game.equip.decode(reader, reader.uint32()));
  56128. break;
  56129. case 6:
  56130. message.talentData = $root.game.talent_info.decode(reader, reader.uint32());
  56131. break;
  56132. default:
  56133. reader.skipType(tag & 7);
  56134. break;
  56135. }
  56136. }
  56137. return message;
  56138. };
  56139. /**
  56140. * Decodes a pvp_match_rsp message from the specified reader or buffer, length delimited.
  56141. * @function decodeDelimited
  56142. * @memberof game.pvp_match_rsp
  56143. * @static
  56144. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  56145. * @returns {game.pvp_match_rsp} pvp_match_rsp
  56146. * @throws {Error} If the payload is not a reader or valid buffer
  56147. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  56148. */
  56149. pvp_match_rsp.decodeDelimited = function decodeDelimited(reader) {
  56150. if (!(reader instanceof $Reader))
  56151. reader = new $Reader(reader);
  56152. return this.decode(reader, reader.uint32());
  56153. };
  56154. /**
  56155. * Verifies a pvp_match_rsp message.
  56156. * @function verify
  56157. * @memberof game.pvp_match_rsp
  56158. * @static
  56159. * @param {Object.<string,*>} message Plain object to verify
  56160. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  56161. */
  56162. pvp_match_rsp.verify = function verify(message) {
  56163. if (typeof message !== "object" || message === null)
  56164. return "object expected";
  56165. if (message.errno != null && message.hasOwnProperty("errno"))
  56166. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  56167. return "errno: integer|Long expected";
  56168. if (message.embattleList != null && message.hasOwnProperty("embattleList")) {
  56169. if (!Array.isArray(message.embattleList))
  56170. return "embattleList: array expected";
  56171. for (let i = 0; i < message.embattleList.length; ++i) {
  56172. let error = $root.game.embattle_info.verify(message.embattleList[i]);
  56173. if (error)
  56174. return "embattleList." + error;
  56175. }
  56176. }
  56177. if (message.heroList != null && message.hasOwnProperty("heroList")) {
  56178. if (!Array.isArray(message.heroList))
  56179. return "heroList: array expected";
  56180. for (let i = 0; i < message.heroList.length; ++i) {
  56181. let error = $root.game.hero.verify(message.heroList[i]);
  56182. if (error)
  56183. return "heroList." + error;
  56184. }
  56185. }
  56186. if (message.cardList != null && message.hasOwnProperty("cardList")) {
  56187. if (!Array.isArray(message.cardList))
  56188. return "cardList: array expected";
  56189. for (let i = 0; i < message.cardList.length; ++i) {
  56190. let error = $root.game.card.verify(message.cardList[i]);
  56191. if (error)
  56192. return "cardList." + error;
  56193. }
  56194. }
  56195. if (message.equipList != null && message.hasOwnProperty("equipList")) {
  56196. if (!Array.isArray(message.equipList))
  56197. return "equipList: array expected";
  56198. for (let i = 0; i < message.equipList.length; ++i) {
  56199. let error = $root.game.equip.verify(message.equipList[i]);
  56200. if (error)
  56201. return "equipList." + error;
  56202. }
  56203. }
  56204. if (message.talentData != null && message.hasOwnProperty("talentData")) {
  56205. let error = $root.game.talent_info.verify(message.talentData);
  56206. if (error)
  56207. return "talentData." + error;
  56208. }
  56209. return null;
  56210. };
  56211. /**
  56212. * Creates a pvp_match_rsp message from a plain object. Also converts values to their respective internal types.
  56213. * @function fromObject
  56214. * @memberof game.pvp_match_rsp
  56215. * @static
  56216. * @param {Object.<string,*>} object Plain object
  56217. * @returns {game.pvp_match_rsp} pvp_match_rsp
  56218. */
  56219. pvp_match_rsp.fromObject = function fromObject(object) {
  56220. if (object instanceof $root.game.pvp_match_rsp)
  56221. return object;
  56222. let message = new $root.game.pvp_match_rsp();
  56223. if (object.errno != null)
  56224. if ($util.Long)
  56225. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  56226. else if (typeof object.errno === "string")
  56227. message.errno = parseInt(object.errno, 10);
  56228. else if (typeof object.errno === "number")
  56229. message.errno = object.errno;
  56230. else if (typeof object.errno === "object")
  56231. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  56232. if (object.embattleList) {
  56233. if (!Array.isArray(object.embattleList))
  56234. throw TypeError(".game.pvp_match_rsp.embattleList: array expected");
  56235. message.embattleList = [];
  56236. for (let i = 0; i < object.embattleList.length; ++i) {
  56237. if (typeof object.embattleList[i] !== "object")
  56238. throw TypeError(".game.pvp_match_rsp.embattleList: object expected");
  56239. message.embattleList[i] = $root.game.embattle_info.fromObject(object.embattleList[i]);
  56240. }
  56241. }
  56242. if (object.heroList) {
  56243. if (!Array.isArray(object.heroList))
  56244. throw TypeError(".game.pvp_match_rsp.heroList: array expected");
  56245. message.heroList = [];
  56246. for (let i = 0; i < object.heroList.length; ++i) {
  56247. if (typeof object.heroList[i] !== "object")
  56248. throw TypeError(".game.pvp_match_rsp.heroList: object expected");
  56249. message.heroList[i] = $root.game.hero.fromObject(object.heroList[i]);
  56250. }
  56251. }
  56252. if (object.cardList) {
  56253. if (!Array.isArray(object.cardList))
  56254. throw TypeError(".game.pvp_match_rsp.cardList: array expected");
  56255. message.cardList = [];
  56256. for (let i = 0; i < object.cardList.length; ++i) {
  56257. if (typeof object.cardList[i] !== "object")
  56258. throw TypeError(".game.pvp_match_rsp.cardList: object expected");
  56259. message.cardList[i] = $root.game.card.fromObject(object.cardList[i]);
  56260. }
  56261. }
  56262. if (object.equipList) {
  56263. if (!Array.isArray(object.equipList))
  56264. throw TypeError(".game.pvp_match_rsp.equipList: array expected");
  56265. message.equipList = [];
  56266. for (let i = 0; i < object.equipList.length; ++i) {
  56267. if (typeof object.equipList[i] !== "object")
  56268. throw TypeError(".game.pvp_match_rsp.equipList: object expected");
  56269. message.equipList[i] = $root.game.equip.fromObject(object.equipList[i]);
  56270. }
  56271. }
  56272. if (object.talentData != null) {
  56273. if (typeof object.talentData !== "object")
  56274. throw TypeError(".game.pvp_match_rsp.talentData: object expected");
  56275. message.talentData = $root.game.talent_info.fromObject(object.talentData);
  56276. }
  56277. return message;
  56278. };
  56279. /**
  56280. * Creates a plain object from a pvp_match_rsp message. Also converts values to other types if specified.
  56281. * @function toObject
  56282. * @memberof game.pvp_match_rsp
  56283. * @static
  56284. * @param {game.pvp_match_rsp} message pvp_match_rsp
  56285. * @param {$protobuf.IConversionOptions} [options] Conversion options
  56286. * @returns {Object.<string,*>} Plain object
  56287. */
  56288. pvp_match_rsp.toObject = function toObject(message, options) {
  56289. if (!options)
  56290. options = {};
  56291. let object = {};
  56292. if (options.arrays || options.defaults) {
  56293. object.embattleList = [];
  56294. object.heroList = [];
  56295. object.cardList = [];
  56296. object.equipList = [];
  56297. }
  56298. if (options.defaults) {
  56299. if ($util.Long) {
  56300. let long = new $util.Long(0, 0, false);
  56301. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  56302. } else
  56303. object.errno = options.longs === String ? "0" : 0;
  56304. object.talentData = null;
  56305. }
  56306. if (message.errno != null && message.hasOwnProperty("errno"))
  56307. if (typeof message.errno === "number")
  56308. object.errno = options.longs === String ? String(message.errno) : message.errno;
  56309. else
  56310. 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;
  56311. if (message.embattleList && message.embattleList.length) {
  56312. object.embattleList = [];
  56313. for (let j = 0; j < message.embattleList.length; ++j)
  56314. object.embattleList[j] = $root.game.embattle_info.toObject(message.embattleList[j], options);
  56315. }
  56316. if (message.heroList && message.heroList.length) {
  56317. object.heroList = [];
  56318. for (let j = 0; j < message.heroList.length; ++j)
  56319. object.heroList[j] = $root.game.hero.toObject(message.heroList[j], options);
  56320. }
  56321. if (message.cardList && message.cardList.length) {
  56322. object.cardList = [];
  56323. for (let j = 0; j < message.cardList.length; ++j)
  56324. object.cardList[j] = $root.game.card.toObject(message.cardList[j], options);
  56325. }
  56326. if (message.equipList && message.equipList.length) {
  56327. object.equipList = [];
  56328. for (let j = 0; j < message.equipList.length; ++j)
  56329. object.equipList[j] = $root.game.equip.toObject(message.equipList[j], options);
  56330. }
  56331. if (message.talentData != null && message.hasOwnProperty("talentData"))
  56332. object.talentData = $root.game.talent_info.toObject(message.talentData, options);
  56333. return object;
  56334. };
  56335. /**
  56336. * Converts this pvp_match_rsp to JSON.
  56337. * @function toJSON
  56338. * @memberof game.pvp_match_rsp
  56339. * @instance
  56340. * @returns {Object.<string,*>} JSON object
  56341. */
  56342. pvp_match_rsp.prototype.toJSON = function toJSON() {
  56343. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  56344. };
  56345. return pvp_match_rsp;
  56346. })();
  56347. game.pvp_reslut = (function() {
  56348. /**
  56349. * Properties of a pvp_reslut.
  56350. * @memberof game
  56351. * @interface Ipvp_reslut
  56352. * @property {number|Long|null} [win] pvp_reslut win
  56353. */
  56354. /**
  56355. * Constructs a new pvp_reslut.
  56356. * @memberof game
  56357. * @classdesc Represents a pvp_reslut.
  56358. * @implements Ipvp_reslut
  56359. * @constructor
  56360. * @param {game.Ipvp_reslut=} [properties] Properties to set
  56361. */
  56362. function pvp_reslut(properties) {
  56363. if (properties)
  56364. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  56365. if (properties[keys[i]] != null)
  56366. this[keys[i]] = properties[keys[i]];
  56367. }
  56368. /**
  56369. * pvp_reslut win.
  56370. * @member {number|Long} win
  56371. * @memberof game.pvp_reslut
  56372. * @instance
  56373. */
  56374. pvp_reslut.prototype.win = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  56375. /**
  56376. * Creates a new pvp_reslut instance using the specified properties.
  56377. * @function create
  56378. * @memberof game.pvp_reslut
  56379. * @static
  56380. * @param {game.Ipvp_reslut=} [properties] Properties to set
  56381. * @returns {game.pvp_reslut} pvp_reslut instance
  56382. */
  56383. pvp_reslut.create = function create(properties) {
  56384. return new pvp_reslut(properties);
  56385. };
  56386. /**
  56387. * Encodes the specified pvp_reslut message. Does not implicitly {@link game.pvp_reslut.verify|verify} messages.
  56388. * @function encode
  56389. * @memberof game.pvp_reslut
  56390. * @static
  56391. * @param {game.Ipvp_reslut} message pvp_reslut message or plain object to encode
  56392. * @param {$protobuf.Writer} [writer] Writer to encode to
  56393. * @returns {$protobuf.Writer} Writer
  56394. */
  56395. pvp_reslut.encode = function encode(message, writer) {
  56396. if (!writer)
  56397. writer = $Writer.create();
  56398. if (message.win != null && Object.hasOwnProperty.call(message, "win"))
  56399. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.win);
  56400. return writer;
  56401. };
  56402. /**
  56403. * Encodes the specified pvp_reslut message, length delimited. Does not implicitly {@link game.pvp_reslut.verify|verify} messages.
  56404. * @function encodeDelimited
  56405. * @memberof game.pvp_reslut
  56406. * @static
  56407. * @param {game.Ipvp_reslut} message pvp_reslut message or plain object to encode
  56408. * @param {$protobuf.Writer} [writer] Writer to encode to
  56409. * @returns {$protobuf.Writer} Writer
  56410. */
  56411. pvp_reslut.encodeDelimited = function encodeDelimited(message, writer) {
  56412. return this.encode(message, writer).ldelim();
  56413. };
  56414. /**
  56415. * Decodes a pvp_reslut message from the specified reader or buffer.
  56416. * @function decode
  56417. * @memberof game.pvp_reslut
  56418. * @static
  56419. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  56420. * @param {number} [length] Message length if known beforehand
  56421. * @returns {game.pvp_reslut} pvp_reslut
  56422. * @throws {Error} If the payload is not a reader or valid buffer
  56423. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  56424. */
  56425. pvp_reslut.decode = function decode(reader, length) {
  56426. if (!(reader instanceof $Reader))
  56427. reader = $Reader.create(reader);
  56428. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pvp_reslut();
  56429. while (reader.pos < end) {
  56430. let tag = reader.uint32();
  56431. switch (tag >>> 3) {
  56432. case 1:
  56433. message.win = reader.int64();
  56434. break;
  56435. default:
  56436. reader.skipType(tag & 7);
  56437. break;
  56438. }
  56439. }
  56440. return message;
  56441. };
  56442. /**
  56443. * Decodes a pvp_reslut message from the specified reader or buffer, length delimited.
  56444. * @function decodeDelimited
  56445. * @memberof game.pvp_reslut
  56446. * @static
  56447. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  56448. * @returns {game.pvp_reslut} pvp_reslut
  56449. * @throws {Error} If the payload is not a reader or valid buffer
  56450. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  56451. */
  56452. pvp_reslut.decodeDelimited = function decodeDelimited(reader) {
  56453. if (!(reader instanceof $Reader))
  56454. reader = new $Reader(reader);
  56455. return this.decode(reader, reader.uint32());
  56456. };
  56457. /**
  56458. * Verifies a pvp_reslut message.
  56459. * @function verify
  56460. * @memberof game.pvp_reslut
  56461. * @static
  56462. * @param {Object.<string,*>} message Plain object to verify
  56463. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  56464. */
  56465. pvp_reslut.verify = function verify(message) {
  56466. if (typeof message !== "object" || message === null)
  56467. return "object expected";
  56468. if (message.win != null && message.hasOwnProperty("win"))
  56469. if (!$util.isInteger(message.win) && !(message.win && $util.isInteger(message.win.low) && $util.isInteger(message.win.high)))
  56470. return "win: integer|Long expected";
  56471. return null;
  56472. };
  56473. /**
  56474. * Creates a pvp_reslut message from a plain object. Also converts values to their respective internal types.
  56475. * @function fromObject
  56476. * @memberof game.pvp_reslut
  56477. * @static
  56478. * @param {Object.<string,*>} object Plain object
  56479. * @returns {game.pvp_reslut} pvp_reslut
  56480. */
  56481. pvp_reslut.fromObject = function fromObject(object) {
  56482. if (object instanceof $root.game.pvp_reslut)
  56483. return object;
  56484. let message = new $root.game.pvp_reslut();
  56485. if (object.win != null)
  56486. if ($util.Long)
  56487. (message.win = $util.Long.fromValue(object.win)).unsigned = false;
  56488. else if (typeof object.win === "string")
  56489. message.win = parseInt(object.win, 10);
  56490. else if (typeof object.win === "number")
  56491. message.win = object.win;
  56492. else if (typeof object.win === "object")
  56493. message.win = new $util.LongBits(object.win.low >>> 0, object.win.high >>> 0).toNumber();
  56494. return message;
  56495. };
  56496. /**
  56497. * Creates a plain object from a pvp_reslut message. Also converts values to other types if specified.
  56498. * @function toObject
  56499. * @memberof game.pvp_reslut
  56500. * @static
  56501. * @param {game.pvp_reslut} message pvp_reslut
  56502. * @param {$protobuf.IConversionOptions} [options] Conversion options
  56503. * @returns {Object.<string,*>} Plain object
  56504. */
  56505. pvp_reslut.toObject = function toObject(message, options) {
  56506. if (!options)
  56507. options = {};
  56508. let object = {};
  56509. if (options.defaults)
  56510. if ($util.Long) {
  56511. let long = new $util.Long(0, 0, false);
  56512. object.win = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  56513. } else
  56514. object.win = options.longs === String ? "0" : 0;
  56515. if (message.win != null && message.hasOwnProperty("win"))
  56516. if (typeof message.win === "number")
  56517. object.win = options.longs === String ? String(message.win) : message.win;
  56518. else
  56519. object.win = options.longs === String ? $util.Long.prototype.toString.call(message.win) : options.longs === Number ? new $util.LongBits(message.win.low >>> 0, message.win.high >>> 0).toNumber() : message.win;
  56520. return object;
  56521. };
  56522. /**
  56523. * Converts this pvp_reslut to JSON.
  56524. * @function toJSON
  56525. * @memberof game.pvp_reslut
  56526. * @instance
  56527. * @returns {Object.<string,*>} JSON object
  56528. */
  56529. pvp_reslut.prototype.toJSON = function toJSON() {
  56530. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  56531. };
  56532. return pvp_reslut;
  56533. })();
  56534. game.pvp_reslut_rsp = (function() {
  56535. /**
  56536. * Properties of a pvp_reslut_rsp.
  56537. * @memberof game
  56538. * @interface Ipvp_reslut_rsp
  56539. * @property {number|Long|null} [errno] pvp_reslut_rsp errno
  56540. */
  56541. /**
  56542. * Constructs a new pvp_reslut_rsp.
  56543. * @memberof game
  56544. * @classdesc Represents a pvp_reslut_rsp.
  56545. * @implements Ipvp_reslut_rsp
  56546. * @constructor
  56547. * @param {game.Ipvp_reslut_rsp=} [properties] Properties to set
  56548. */
  56549. function pvp_reslut_rsp(properties) {
  56550. if (properties)
  56551. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  56552. if (properties[keys[i]] != null)
  56553. this[keys[i]] = properties[keys[i]];
  56554. }
  56555. /**
  56556. * pvp_reslut_rsp errno.
  56557. * @member {number|Long} errno
  56558. * @memberof game.pvp_reslut_rsp
  56559. * @instance
  56560. */
  56561. pvp_reslut_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  56562. /**
  56563. * Creates a new pvp_reslut_rsp instance using the specified properties.
  56564. * @function create
  56565. * @memberof game.pvp_reslut_rsp
  56566. * @static
  56567. * @param {game.Ipvp_reslut_rsp=} [properties] Properties to set
  56568. * @returns {game.pvp_reslut_rsp} pvp_reslut_rsp instance
  56569. */
  56570. pvp_reslut_rsp.create = function create(properties) {
  56571. return new pvp_reslut_rsp(properties);
  56572. };
  56573. /**
  56574. * Encodes the specified pvp_reslut_rsp message. Does not implicitly {@link game.pvp_reslut_rsp.verify|verify} messages.
  56575. * @function encode
  56576. * @memberof game.pvp_reslut_rsp
  56577. * @static
  56578. * @param {game.Ipvp_reslut_rsp} message pvp_reslut_rsp message or plain object to encode
  56579. * @param {$protobuf.Writer} [writer] Writer to encode to
  56580. * @returns {$protobuf.Writer} Writer
  56581. */
  56582. pvp_reslut_rsp.encode = function encode(message, writer) {
  56583. if (!writer)
  56584. writer = $Writer.create();
  56585. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  56586. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  56587. return writer;
  56588. };
  56589. /**
  56590. * Encodes the specified pvp_reslut_rsp message, length delimited. Does not implicitly {@link game.pvp_reslut_rsp.verify|verify} messages.
  56591. * @function encodeDelimited
  56592. * @memberof game.pvp_reslut_rsp
  56593. * @static
  56594. * @param {game.Ipvp_reslut_rsp} message pvp_reslut_rsp message or plain object to encode
  56595. * @param {$protobuf.Writer} [writer] Writer to encode to
  56596. * @returns {$protobuf.Writer} Writer
  56597. */
  56598. pvp_reslut_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  56599. return this.encode(message, writer).ldelim();
  56600. };
  56601. /**
  56602. * Decodes a pvp_reslut_rsp message from the specified reader or buffer.
  56603. * @function decode
  56604. * @memberof game.pvp_reslut_rsp
  56605. * @static
  56606. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  56607. * @param {number} [length] Message length if known beforehand
  56608. * @returns {game.pvp_reslut_rsp} pvp_reslut_rsp
  56609. * @throws {Error} If the payload is not a reader or valid buffer
  56610. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  56611. */
  56612. pvp_reslut_rsp.decode = function decode(reader, length) {
  56613. if (!(reader instanceof $Reader))
  56614. reader = $Reader.create(reader);
  56615. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pvp_reslut_rsp();
  56616. while (reader.pos < end) {
  56617. let tag = reader.uint32();
  56618. switch (tag >>> 3) {
  56619. case 1:
  56620. message.errno = reader.int64();
  56621. break;
  56622. default:
  56623. reader.skipType(tag & 7);
  56624. break;
  56625. }
  56626. }
  56627. return message;
  56628. };
  56629. /**
  56630. * Decodes a pvp_reslut_rsp message from the specified reader or buffer, length delimited.
  56631. * @function decodeDelimited
  56632. * @memberof game.pvp_reslut_rsp
  56633. * @static
  56634. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  56635. * @returns {game.pvp_reslut_rsp} pvp_reslut_rsp
  56636. * @throws {Error} If the payload is not a reader or valid buffer
  56637. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  56638. */
  56639. pvp_reslut_rsp.decodeDelimited = function decodeDelimited(reader) {
  56640. if (!(reader instanceof $Reader))
  56641. reader = new $Reader(reader);
  56642. return this.decode(reader, reader.uint32());
  56643. };
  56644. /**
  56645. * Verifies a pvp_reslut_rsp message.
  56646. * @function verify
  56647. * @memberof game.pvp_reslut_rsp
  56648. * @static
  56649. * @param {Object.<string,*>} message Plain object to verify
  56650. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  56651. */
  56652. pvp_reslut_rsp.verify = function verify(message) {
  56653. if (typeof message !== "object" || message === null)
  56654. return "object expected";
  56655. if (message.errno != null && message.hasOwnProperty("errno"))
  56656. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  56657. return "errno: integer|Long expected";
  56658. return null;
  56659. };
  56660. /**
  56661. * Creates a pvp_reslut_rsp message from a plain object. Also converts values to their respective internal types.
  56662. * @function fromObject
  56663. * @memberof game.pvp_reslut_rsp
  56664. * @static
  56665. * @param {Object.<string,*>} object Plain object
  56666. * @returns {game.pvp_reslut_rsp} pvp_reslut_rsp
  56667. */
  56668. pvp_reslut_rsp.fromObject = function fromObject(object) {
  56669. if (object instanceof $root.game.pvp_reslut_rsp)
  56670. return object;
  56671. let message = new $root.game.pvp_reslut_rsp();
  56672. if (object.errno != null)
  56673. if ($util.Long)
  56674. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  56675. else if (typeof object.errno === "string")
  56676. message.errno = parseInt(object.errno, 10);
  56677. else if (typeof object.errno === "number")
  56678. message.errno = object.errno;
  56679. else if (typeof object.errno === "object")
  56680. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  56681. return message;
  56682. };
  56683. /**
  56684. * Creates a plain object from a pvp_reslut_rsp message. Also converts values to other types if specified.
  56685. * @function toObject
  56686. * @memberof game.pvp_reslut_rsp
  56687. * @static
  56688. * @param {game.pvp_reslut_rsp} message pvp_reslut_rsp
  56689. * @param {$protobuf.IConversionOptions} [options] Conversion options
  56690. * @returns {Object.<string,*>} Plain object
  56691. */
  56692. pvp_reslut_rsp.toObject = function toObject(message, options) {
  56693. if (!options)
  56694. options = {};
  56695. let object = {};
  56696. if (options.defaults)
  56697. if ($util.Long) {
  56698. let long = new $util.Long(0, 0, false);
  56699. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  56700. } else
  56701. object.errno = options.longs === String ? "0" : 0;
  56702. if (message.errno != null && message.hasOwnProperty("errno"))
  56703. if (typeof message.errno === "number")
  56704. object.errno = options.longs === String ? String(message.errno) : message.errno;
  56705. else
  56706. 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;
  56707. return object;
  56708. };
  56709. /**
  56710. * Converts this pvp_reslut_rsp to JSON.
  56711. * @function toJSON
  56712. * @memberof game.pvp_reslut_rsp
  56713. * @instance
  56714. * @returns {Object.<string,*>} JSON object
  56715. */
  56716. pvp_reslut_rsp.prototype.toJSON = function toJSON() {
  56717. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  56718. };
  56719. return pvp_reslut_rsp;
  56720. })();
  56721. game.pvp_embattle = (function() {
  56722. /**
  56723. * Properties of a pvp_embattle.
  56724. * @memberof game
  56725. * @interface Ipvp_embattle
  56726. * @property {game.Iembattle_info|null} [data] pvp_embattle data
  56727. */
  56728. /**
  56729. * Constructs a new pvp_embattle.
  56730. * @memberof game
  56731. * @classdesc Represents a pvp_embattle.
  56732. * @implements Ipvp_embattle
  56733. * @constructor
  56734. * @param {game.Ipvp_embattle=} [properties] Properties to set
  56735. */
  56736. function pvp_embattle(properties) {
  56737. if (properties)
  56738. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  56739. if (properties[keys[i]] != null)
  56740. this[keys[i]] = properties[keys[i]];
  56741. }
  56742. /**
  56743. * pvp_embattle data.
  56744. * @member {game.Iembattle_info|null|undefined} data
  56745. * @memberof game.pvp_embattle
  56746. * @instance
  56747. */
  56748. pvp_embattle.prototype.data = null;
  56749. /**
  56750. * Creates a new pvp_embattle instance using the specified properties.
  56751. * @function create
  56752. * @memberof game.pvp_embattle
  56753. * @static
  56754. * @param {game.Ipvp_embattle=} [properties] Properties to set
  56755. * @returns {game.pvp_embattle} pvp_embattle instance
  56756. */
  56757. pvp_embattle.create = function create(properties) {
  56758. return new pvp_embattle(properties);
  56759. };
  56760. /**
  56761. * Encodes the specified pvp_embattle message. Does not implicitly {@link game.pvp_embattle.verify|verify} messages.
  56762. * @function encode
  56763. * @memberof game.pvp_embattle
  56764. * @static
  56765. * @param {game.Ipvp_embattle} message pvp_embattle message or plain object to encode
  56766. * @param {$protobuf.Writer} [writer] Writer to encode to
  56767. * @returns {$protobuf.Writer} Writer
  56768. */
  56769. pvp_embattle.encode = function encode(message, writer) {
  56770. if (!writer)
  56771. writer = $Writer.create();
  56772. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  56773. $root.game.embattle_info.encode(message.data, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
  56774. return writer;
  56775. };
  56776. /**
  56777. * Encodes the specified pvp_embattle message, length delimited. Does not implicitly {@link game.pvp_embattle.verify|verify} messages.
  56778. * @function encodeDelimited
  56779. * @memberof game.pvp_embattle
  56780. * @static
  56781. * @param {game.Ipvp_embattle} message pvp_embattle message or plain object to encode
  56782. * @param {$protobuf.Writer} [writer] Writer to encode to
  56783. * @returns {$protobuf.Writer} Writer
  56784. */
  56785. pvp_embattle.encodeDelimited = function encodeDelimited(message, writer) {
  56786. return this.encode(message, writer).ldelim();
  56787. };
  56788. /**
  56789. * Decodes a pvp_embattle message from the specified reader or buffer.
  56790. * @function decode
  56791. * @memberof game.pvp_embattle
  56792. * @static
  56793. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  56794. * @param {number} [length] Message length if known beforehand
  56795. * @returns {game.pvp_embattle} pvp_embattle
  56796. * @throws {Error} If the payload is not a reader or valid buffer
  56797. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  56798. */
  56799. pvp_embattle.decode = function decode(reader, length) {
  56800. if (!(reader instanceof $Reader))
  56801. reader = $Reader.create(reader);
  56802. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pvp_embattle();
  56803. while (reader.pos < end) {
  56804. let tag = reader.uint32();
  56805. switch (tag >>> 3) {
  56806. case 1:
  56807. message.data = $root.game.embattle_info.decode(reader, reader.uint32());
  56808. break;
  56809. default:
  56810. reader.skipType(tag & 7);
  56811. break;
  56812. }
  56813. }
  56814. return message;
  56815. };
  56816. /**
  56817. * Decodes a pvp_embattle message from the specified reader or buffer, length delimited.
  56818. * @function decodeDelimited
  56819. * @memberof game.pvp_embattle
  56820. * @static
  56821. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  56822. * @returns {game.pvp_embattle} pvp_embattle
  56823. * @throws {Error} If the payload is not a reader or valid buffer
  56824. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  56825. */
  56826. pvp_embattle.decodeDelimited = function decodeDelimited(reader) {
  56827. if (!(reader instanceof $Reader))
  56828. reader = new $Reader(reader);
  56829. return this.decode(reader, reader.uint32());
  56830. };
  56831. /**
  56832. * Verifies a pvp_embattle message.
  56833. * @function verify
  56834. * @memberof game.pvp_embattle
  56835. * @static
  56836. * @param {Object.<string,*>} message Plain object to verify
  56837. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  56838. */
  56839. pvp_embattle.verify = function verify(message) {
  56840. if (typeof message !== "object" || message === null)
  56841. return "object expected";
  56842. if (message.data != null && message.hasOwnProperty("data")) {
  56843. let error = $root.game.embattle_info.verify(message.data);
  56844. if (error)
  56845. return "data." + error;
  56846. }
  56847. return null;
  56848. };
  56849. /**
  56850. * Creates a pvp_embattle message from a plain object. Also converts values to their respective internal types.
  56851. * @function fromObject
  56852. * @memberof game.pvp_embattle
  56853. * @static
  56854. * @param {Object.<string,*>} object Plain object
  56855. * @returns {game.pvp_embattle} pvp_embattle
  56856. */
  56857. pvp_embattle.fromObject = function fromObject(object) {
  56858. if (object instanceof $root.game.pvp_embattle)
  56859. return object;
  56860. let message = new $root.game.pvp_embattle();
  56861. if (object.data != null) {
  56862. if (typeof object.data !== "object")
  56863. throw TypeError(".game.pvp_embattle.data: object expected");
  56864. message.data = $root.game.embattle_info.fromObject(object.data);
  56865. }
  56866. return message;
  56867. };
  56868. /**
  56869. * Creates a plain object from a pvp_embattle message. Also converts values to other types if specified.
  56870. * @function toObject
  56871. * @memberof game.pvp_embattle
  56872. * @static
  56873. * @param {game.pvp_embattle} message pvp_embattle
  56874. * @param {$protobuf.IConversionOptions} [options] Conversion options
  56875. * @returns {Object.<string,*>} Plain object
  56876. */
  56877. pvp_embattle.toObject = function toObject(message, options) {
  56878. if (!options)
  56879. options = {};
  56880. let object = {};
  56881. if (options.defaults)
  56882. object.data = null;
  56883. if (message.data != null && message.hasOwnProperty("data"))
  56884. object.data = $root.game.embattle_info.toObject(message.data, options);
  56885. return object;
  56886. };
  56887. /**
  56888. * Converts this pvp_embattle to JSON.
  56889. * @function toJSON
  56890. * @memberof game.pvp_embattle
  56891. * @instance
  56892. * @returns {Object.<string,*>} JSON object
  56893. */
  56894. pvp_embattle.prototype.toJSON = function toJSON() {
  56895. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  56896. };
  56897. return pvp_embattle;
  56898. })();
  56899. game.pvp_embattle_rsp = (function() {
  56900. /**
  56901. * Properties of a pvp_embattle_rsp.
  56902. * @memberof game
  56903. * @interface Ipvp_embattle_rsp
  56904. * @property {number|Long|null} [errno] pvp_embattle_rsp errno
  56905. */
  56906. /**
  56907. * Constructs a new pvp_embattle_rsp.
  56908. * @memberof game
  56909. * @classdesc Represents a pvp_embattle_rsp.
  56910. * @implements Ipvp_embattle_rsp
  56911. * @constructor
  56912. * @param {game.Ipvp_embattle_rsp=} [properties] Properties to set
  56913. */
  56914. function pvp_embattle_rsp(properties) {
  56915. if (properties)
  56916. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  56917. if (properties[keys[i]] != null)
  56918. this[keys[i]] = properties[keys[i]];
  56919. }
  56920. /**
  56921. * pvp_embattle_rsp errno.
  56922. * @member {number|Long} errno
  56923. * @memberof game.pvp_embattle_rsp
  56924. * @instance
  56925. */
  56926. pvp_embattle_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  56927. /**
  56928. * Creates a new pvp_embattle_rsp instance using the specified properties.
  56929. * @function create
  56930. * @memberof game.pvp_embattle_rsp
  56931. * @static
  56932. * @param {game.Ipvp_embattle_rsp=} [properties] Properties to set
  56933. * @returns {game.pvp_embattle_rsp} pvp_embattle_rsp instance
  56934. */
  56935. pvp_embattle_rsp.create = function create(properties) {
  56936. return new pvp_embattle_rsp(properties);
  56937. };
  56938. /**
  56939. * Encodes the specified pvp_embattle_rsp message. Does not implicitly {@link game.pvp_embattle_rsp.verify|verify} messages.
  56940. * @function encode
  56941. * @memberof game.pvp_embattle_rsp
  56942. * @static
  56943. * @param {game.Ipvp_embattle_rsp} message pvp_embattle_rsp message or plain object to encode
  56944. * @param {$protobuf.Writer} [writer] Writer to encode to
  56945. * @returns {$protobuf.Writer} Writer
  56946. */
  56947. pvp_embattle_rsp.encode = function encode(message, writer) {
  56948. if (!writer)
  56949. writer = $Writer.create();
  56950. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  56951. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  56952. return writer;
  56953. };
  56954. /**
  56955. * Encodes the specified pvp_embattle_rsp message, length delimited. Does not implicitly {@link game.pvp_embattle_rsp.verify|verify} messages.
  56956. * @function encodeDelimited
  56957. * @memberof game.pvp_embattle_rsp
  56958. * @static
  56959. * @param {game.Ipvp_embattle_rsp} message pvp_embattle_rsp message or plain object to encode
  56960. * @param {$protobuf.Writer} [writer] Writer to encode to
  56961. * @returns {$protobuf.Writer} Writer
  56962. */
  56963. pvp_embattle_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  56964. return this.encode(message, writer).ldelim();
  56965. };
  56966. /**
  56967. * Decodes a pvp_embattle_rsp message from the specified reader or buffer.
  56968. * @function decode
  56969. * @memberof game.pvp_embattle_rsp
  56970. * @static
  56971. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  56972. * @param {number} [length] Message length if known beforehand
  56973. * @returns {game.pvp_embattle_rsp} pvp_embattle_rsp
  56974. * @throws {Error} If the payload is not a reader or valid buffer
  56975. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  56976. */
  56977. pvp_embattle_rsp.decode = function decode(reader, length) {
  56978. if (!(reader instanceof $Reader))
  56979. reader = $Reader.create(reader);
  56980. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pvp_embattle_rsp();
  56981. while (reader.pos < end) {
  56982. let tag = reader.uint32();
  56983. switch (tag >>> 3) {
  56984. case 1:
  56985. message.errno = reader.int64();
  56986. break;
  56987. default:
  56988. reader.skipType(tag & 7);
  56989. break;
  56990. }
  56991. }
  56992. return message;
  56993. };
  56994. /**
  56995. * Decodes a pvp_embattle_rsp message from the specified reader or buffer, length delimited.
  56996. * @function decodeDelimited
  56997. * @memberof game.pvp_embattle_rsp
  56998. * @static
  56999. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  57000. * @returns {game.pvp_embattle_rsp} pvp_embattle_rsp
  57001. * @throws {Error} If the payload is not a reader or valid buffer
  57002. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  57003. */
  57004. pvp_embattle_rsp.decodeDelimited = function decodeDelimited(reader) {
  57005. if (!(reader instanceof $Reader))
  57006. reader = new $Reader(reader);
  57007. return this.decode(reader, reader.uint32());
  57008. };
  57009. /**
  57010. * Verifies a pvp_embattle_rsp message.
  57011. * @function verify
  57012. * @memberof game.pvp_embattle_rsp
  57013. * @static
  57014. * @param {Object.<string,*>} message Plain object to verify
  57015. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  57016. */
  57017. pvp_embattle_rsp.verify = function verify(message) {
  57018. if (typeof message !== "object" || message === null)
  57019. return "object expected";
  57020. if (message.errno != null && message.hasOwnProperty("errno"))
  57021. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  57022. return "errno: integer|Long expected";
  57023. return null;
  57024. };
  57025. /**
  57026. * Creates a pvp_embattle_rsp message from a plain object. Also converts values to their respective internal types.
  57027. * @function fromObject
  57028. * @memberof game.pvp_embattle_rsp
  57029. * @static
  57030. * @param {Object.<string,*>} object Plain object
  57031. * @returns {game.pvp_embattle_rsp} pvp_embattle_rsp
  57032. */
  57033. pvp_embattle_rsp.fromObject = function fromObject(object) {
  57034. if (object instanceof $root.game.pvp_embattle_rsp)
  57035. return object;
  57036. let message = new $root.game.pvp_embattle_rsp();
  57037. if (object.errno != null)
  57038. if ($util.Long)
  57039. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  57040. else if (typeof object.errno === "string")
  57041. message.errno = parseInt(object.errno, 10);
  57042. else if (typeof object.errno === "number")
  57043. message.errno = object.errno;
  57044. else if (typeof object.errno === "object")
  57045. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  57046. return message;
  57047. };
  57048. /**
  57049. * Creates a plain object from a pvp_embattle_rsp message. Also converts values to other types if specified.
  57050. * @function toObject
  57051. * @memberof game.pvp_embattle_rsp
  57052. * @static
  57053. * @param {game.pvp_embattle_rsp} message pvp_embattle_rsp
  57054. * @param {$protobuf.IConversionOptions} [options] Conversion options
  57055. * @returns {Object.<string,*>} Plain object
  57056. */
  57057. pvp_embattle_rsp.toObject = function toObject(message, options) {
  57058. if (!options)
  57059. options = {};
  57060. let object = {};
  57061. if (options.defaults)
  57062. if ($util.Long) {
  57063. let long = new $util.Long(0, 0, false);
  57064. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  57065. } else
  57066. object.errno = options.longs === String ? "0" : 0;
  57067. if (message.errno != null && message.hasOwnProperty("errno"))
  57068. if (typeof message.errno === "number")
  57069. object.errno = options.longs === String ? String(message.errno) : message.errno;
  57070. else
  57071. 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;
  57072. return object;
  57073. };
  57074. /**
  57075. * Converts this pvp_embattle_rsp to JSON.
  57076. * @function toJSON
  57077. * @memberof game.pvp_embattle_rsp
  57078. * @instance
  57079. * @returns {Object.<string,*>} JSON object
  57080. */
  57081. pvp_embattle_rsp.prototype.toJSON = function toJSON() {
  57082. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  57083. };
  57084. return pvp_embattle_rsp;
  57085. })();
  57086. game.time_box_data = (function() {
  57087. /**
  57088. * Properties of a time_box_data.
  57089. * @memberof game
  57090. * @interface Itime_box_data
  57091. */
  57092. /**
  57093. * Constructs a new time_box_data.
  57094. * @memberof game
  57095. * @classdesc Represents a time_box_data.
  57096. * @implements Itime_box_data
  57097. * @constructor
  57098. * @param {game.Itime_box_data=} [properties] Properties to set
  57099. */
  57100. function time_box_data(properties) {
  57101. if (properties)
  57102. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  57103. if (properties[keys[i]] != null)
  57104. this[keys[i]] = properties[keys[i]];
  57105. }
  57106. /**
  57107. * Creates a new time_box_data instance using the specified properties.
  57108. * @function create
  57109. * @memberof game.time_box_data
  57110. * @static
  57111. * @param {game.Itime_box_data=} [properties] Properties to set
  57112. * @returns {game.time_box_data} time_box_data instance
  57113. */
  57114. time_box_data.create = function create(properties) {
  57115. return new time_box_data(properties);
  57116. };
  57117. /**
  57118. * Encodes the specified time_box_data message. Does not implicitly {@link game.time_box_data.verify|verify} messages.
  57119. * @function encode
  57120. * @memberof game.time_box_data
  57121. * @static
  57122. * @param {game.Itime_box_data} message time_box_data message or plain object to encode
  57123. * @param {$protobuf.Writer} [writer] Writer to encode to
  57124. * @returns {$protobuf.Writer} Writer
  57125. */
  57126. time_box_data.encode = function encode(message, writer) {
  57127. if (!writer)
  57128. writer = $Writer.create();
  57129. return writer;
  57130. };
  57131. /**
  57132. * Encodes the specified time_box_data message, length delimited. Does not implicitly {@link game.time_box_data.verify|verify} messages.
  57133. * @function encodeDelimited
  57134. * @memberof game.time_box_data
  57135. * @static
  57136. * @param {game.Itime_box_data} message time_box_data message or plain object to encode
  57137. * @param {$protobuf.Writer} [writer] Writer to encode to
  57138. * @returns {$protobuf.Writer} Writer
  57139. */
  57140. time_box_data.encodeDelimited = function encodeDelimited(message, writer) {
  57141. return this.encode(message, writer).ldelim();
  57142. };
  57143. /**
  57144. * Decodes a time_box_data message from the specified reader or buffer.
  57145. * @function decode
  57146. * @memberof game.time_box_data
  57147. * @static
  57148. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  57149. * @param {number} [length] Message length if known beforehand
  57150. * @returns {game.time_box_data} time_box_data
  57151. * @throws {Error} If the payload is not a reader or valid buffer
  57152. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  57153. */
  57154. time_box_data.decode = function decode(reader, length) {
  57155. if (!(reader instanceof $Reader))
  57156. reader = $Reader.create(reader);
  57157. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.time_box_data();
  57158. while (reader.pos < end) {
  57159. let tag = reader.uint32();
  57160. switch (tag >>> 3) {
  57161. default:
  57162. reader.skipType(tag & 7);
  57163. break;
  57164. }
  57165. }
  57166. return message;
  57167. };
  57168. /**
  57169. * Decodes a time_box_data message from the specified reader or buffer, length delimited.
  57170. * @function decodeDelimited
  57171. * @memberof game.time_box_data
  57172. * @static
  57173. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  57174. * @returns {game.time_box_data} time_box_data
  57175. * @throws {Error} If the payload is not a reader or valid buffer
  57176. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  57177. */
  57178. time_box_data.decodeDelimited = function decodeDelimited(reader) {
  57179. if (!(reader instanceof $Reader))
  57180. reader = new $Reader(reader);
  57181. return this.decode(reader, reader.uint32());
  57182. };
  57183. /**
  57184. * Verifies a time_box_data message.
  57185. * @function verify
  57186. * @memberof game.time_box_data
  57187. * @static
  57188. * @param {Object.<string,*>} message Plain object to verify
  57189. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  57190. */
  57191. time_box_data.verify = function verify(message) {
  57192. if (typeof message !== "object" || message === null)
  57193. return "object expected";
  57194. return null;
  57195. };
  57196. /**
  57197. * Creates a time_box_data message from a plain object. Also converts values to their respective internal types.
  57198. * @function fromObject
  57199. * @memberof game.time_box_data
  57200. * @static
  57201. * @param {Object.<string,*>} object Plain object
  57202. * @returns {game.time_box_data} time_box_data
  57203. */
  57204. time_box_data.fromObject = function fromObject(object) {
  57205. if (object instanceof $root.game.time_box_data)
  57206. return object;
  57207. return new $root.game.time_box_data();
  57208. };
  57209. /**
  57210. * Creates a plain object from a time_box_data message. Also converts values to other types if specified.
  57211. * @function toObject
  57212. * @memberof game.time_box_data
  57213. * @static
  57214. * @param {game.time_box_data} message time_box_data
  57215. * @param {$protobuf.IConversionOptions} [options] Conversion options
  57216. * @returns {Object.<string,*>} Plain object
  57217. */
  57218. time_box_data.toObject = function toObject() {
  57219. return {};
  57220. };
  57221. /**
  57222. * Converts this time_box_data to JSON.
  57223. * @function toJSON
  57224. * @memberof game.time_box_data
  57225. * @instance
  57226. * @returns {Object.<string,*>} JSON object
  57227. */
  57228. time_box_data.prototype.toJSON = function toJSON() {
  57229. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  57230. };
  57231. return time_box_data;
  57232. })();
  57233. game.time_box_data_rsp = (function() {
  57234. /**
  57235. * Properties of a time_box_data_rsp.
  57236. * @memberof game
  57237. * @interface Itime_box_data_rsp
  57238. * @property {number|Long|null} [errno] time_box_data_rsp errno
  57239. * @property {Array.<game.Itime_box>|null} [list] time_box_data_rsp list
  57240. */
  57241. /**
  57242. * Constructs a new time_box_data_rsp.
  57243. * @memberof game
  57244. * @classdesc Represents a time_box_data_rsp.
  57245. * @implements Itime_box_data_rsp
  57246. * @constructor
  57247. * @param {game.Itime_box_data_rsp=} [properties] Properties to set
  57248. */
  57249. function time_box_data_rsp(properties) {
  57250. this.list = [];
  57251. if (properties)
  57252. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  57253. if (properties[keys[i]] != null)
  57254. this[keys[i]] = properties[keys[i]];
  57255. }
  57256. /**
  57257. * time_box_data_rsp errno.
  57258. * @member {number|Long} errno
  57259. * @memberof game.time_box_data_rsp
  57260. * @instance
  57261. */
  57262. time_box_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  57263. /**
  57264. * time_box_data_rsp list.
  57265. * @member {Array.<game.Itime_box>} list
  57266. * @memberof game.time_box_data_rsp
  57267. * @instance
  57268. */
  57269. time_box_data_rsp.prototype.list = $util.emptyArray;
  57270. /**
  57271. * Creates a new time_box_data_rsp instance using the specified properties.
  57272. * @function create
  57273. * @memberof game.time_box_data_rsp
  57274. * @static
  57275. * @param {game.Itime_box_data_rsp=} [properties] Properties to set
  57276. * @returns {game.time_box_data_rsp} time_box_data_rsp instance
  57277. */
  57278. time_box_data_rsp.create = function create(properties) {
  57279. return new time_box_data_rsp(properties);
  57280. };
  57281. /**
  57282. * Encodes the specified time_box_data_rsp message. Does not implicitly {@link game.time_box_data_rsp.verify|verify} messages.
  57283. * @function encode
  57284. * @memberof game.time_box_data_rsp
  57285. * @static
  57286. * @param {game.Itime_box_data_rsp} message time_box_data_rsp message or plain object to encode
  57287. * @param {$protobuf.Writer} [writer] Writer to encode to
  57288. * @returns {$protobuf.Writer} Writer
  57289. */
  57290. time_box_data_rsp.encode = function encode(message, writer) {
  57291. if (!writer)
  57292. writer = $Writer.create();
  57293. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  57294. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  57295. if (message.list != null && message.list.length)
  57296. for (let i = 0; i < message.list.length; ++i)
  57297. $root.game.time_box.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  57298. return writer;
  57299. };
  57300. /**
  57301. * Encodes the specified time_box_data_rsp message, length delimited. Does not implicitly {@link game.time_box_data_rsp.verify|verify} messages.
  57302. * @function encodeDelimited
  57303. * @memberof game.time_box_data_rsp
  57304. * @static
  57305. * @param {game.Itime_box_data_rsp} message time_box_data_rsp message or plain object to encode
  57306. * @param {$protobuf.Writer} [writer] Writer to encode to
  57307. * @returns {$protobuf.Writer} Writer
  57308. */
  57309. time_box_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  57310. return this.encode(message, writer).ldelim();
  57311. };
  57312. /**
  57313. * Decodes a time_box_data_rsp message from the specified reader or buffer.
  57314. * @function decode
  57315. * @memberof game.time_box_data_rsp
  57316. * @static
  57317. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  57318. * @param {number} [length] Message length if known beforehand
  57319. * @returns {game.time_box_data_rsp} time_box_data_rsp
  57320. * @throws {Error} If the payload is not a reader or valid buffer
  57321. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  57322. */
  57323. time_box_data_rsp.decode = function decode(reader, length) {
  57324. if (!(reader instanceof $Reader))
  57325. reader = $Reader.create(reader);
  57326. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.time_box_data_rsp();
  57327. while (reader.pos < end) {
  57328. let tag = reader.uint32();
  57329. switch (tag >>> 3) {
  57330. case 1:
  57331. message.errno = reader.int64();
  57332. break;
  57333. case 2:
  57334. if (!(message.list && message.list.length))
  57335. message.list = [];
  57336. message.list.push($root.game.time_box.decode(reader, reader.uint32()));
  57337. break;
  57338. default:
  57339. reader.skipType(tag & 7);
  57340. break;
  57341. }
  57342. }
  57343. return message;
  57344. };
  57345. /**
  57346. * Decodes a time_box_data_rsp message from the specified reader or buffer, length delimited.
  57347. * @function decodeDelimited
  57348. * @memberof game.time_box_data_rsp
  57349. * @static
  57350. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  57351. * @returns {game.time_box_data_rsp} time_box_data_rsp
  57352. * @throws {Error} If the payload is not a reader or valid buffer
  57353. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  57354. */
  57355. time_box_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  57356. if (!(reader instanceof $Reader))
  57357. reader = new $Reader(reader);
  57358. return this.decode(reader, reader.uint32());
  57359. };
  57360. /**
  57361. * Verifies a time_box_data_rsp message.
  57362. * @function verify
  57363. * @memberof game.time_box_data_rsp
  57364. * @static
  57365. * @param {Object.<string,*>} message Plain object to verify
  57366. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  57367. */
  57368. time_box_data_rsp.verify = function verify(message) {
  57369. if (typeof message !== "object" || message === null)
  57370. return "object expected";
  57371. if (message.errno != null && message.hasOwnProperty("errno"))
  57372. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  57373. return "errno: integer|Long expected";
  57374. if (message.list != null && message.hasOwnProperty("list")) {
  57375. if (!Array.isArray(message.list))
  57376. return "list: array expected";
  57377. for (let i = 0; i < message.list.length; ++i) {
  57378. let error = $root.game.time_box.verify(message.list[i]);
  57379. if (error)
  57380. return "list." + error;
  57381. }
  57382. }
  57383. return null;
  57384. };
  57385. /**
  57386. * Creates a time_box_data_rsp message from a plain object. Also converts values to their respective internal types.
  57387. * @function fromObject
  57388. * @memberof game.time_box_data_rsp
  57389. * @static
  57390. * @param {Object.<string,*>} object Plain object
  57391. * @returns {game.time_box_data_rsp} time_box_data_rsp
  57392. */
  57393. time_box_data_rsp.fromObject = function fromObject(object) {
  57394. if (object instanceof $root.game.time_box_data_rsp)
  57395. return object;
  57396. let message = new $root.game.time_box_data_rsp();
  57397. if (object.errno != null)
  57398. if ($util.Long)
  57399. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  57400. else if (typeof object.errno === "string")
  57401. message.errno = parseInt(object.errno, 10);
  57402. else if (typeof object.errno === "number")
  57403. message.errno = object.errno;
  57404. else if (typeof object.errno === "object")
  57405. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  57406. if (object.list) {
  57407. if (!Array.isArray(object.list))
  57408. throw TypeError(".game.time_box_data_rsp.list: array expected");
  57409. message.list = [];
  57410. for (let i = 0; i < object.list.length; ++i) {
  57411. if (typeof object.list[i] !== "object")
  57412. throw TypeError(".game.time_box_data_rsp.list: object expected");
  57413. message.list[i] = $root.game.time_box.fromObject(object.list[i]);
  57414. }
  57415. }
  57416. return message;
  57417. };
  57418. /**
  57419. * Creates a plain object from a time_box_data_rsp message. Also converts values to other types if specified.
  57420. * @function toObject
  57421. * @memberof game.time_box_data_rsp
  57422. * @static
  57423. * @param {game.time_box_data_rsp} message time_box_data_rsp
  57424. * @param {$protobuf.IConversionOptions} [options] Conversion options
  57425. * @returns {Object.<string,*>} Plain object
  57426. */
  57427. time_box_data_rsp.toObject = function toObject(message, options) {
  57428. if (!options)
  57429. options = {};
  57430. let object = {};
  57431. if (options.arrays || options.defaults)
  57432. object.list = [];
  57433. if (options.defaults)
  57434. if ($util.Long) {
  57435. let long = new $util.Long(0, 0, false);
  57436. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  57437. } else
  57438. object.errno = options.longs === String ? "0" : 0;
  57439. if (message.errno != null && message.hasOwnProperty("errno"))
  57440. if (typeof message.errno === "number")
  57441. object.errno = options.longs === String ? String(message.errno) : message.errno;
  57442. else
  57443. 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;
  57444. if (message.list && message.list.length) {
  57445. object.list = [];
  57446. for (let j = 0; j < message.list.length; ++j)
  57447. object.list[j] = $root.game.time_box.toObject(message.list[j], options);
  57448. }
  57449. return object;
  57450. };
  57451. /**
  57452. * Converts this time_box_data_rsp to JSON.
  57453. * @function toJSON
  57454. * @memberof game.time_box_data_rsp
  57455. * @instance
  57456. * @returns {Object.<string,*>} JSON object
  57457. */
  57458. time_box_data_rsp.prototype.toJSON = function toJSON() {
  57459. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  57460. };
  57461. return time_box_data_rsp;
  57462. })();
  57463. game.time_box_unlock = (function() {
  57464. /**
  57465. * Properties of a time_box_unlock.
  57466. * @memberof game
  57467. * @interface Itime_box_unlock
  57468. * @property {number|Long|null} [pos] time_box_unlock pos
  57469. */
  57470. /**
  57471. * Constructs a new time_box_unlock.
  57472. * @memberof game
  57473. * @classdesc Represents a time_box_unlock.
  57474. * @implements Itime_box_unlock
  57475. * @constructor
  57476. * @param {game.Itime_box_unlock=} [properties] Properties to set
  57477. */
  57478. function time_box_unlock(properties) {
  57479. if (properties)
  57480. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  57481. if (properties[keys[i]] != null)
  57482. this[keys[i]] = properties[keys[i]];
  57483. }
  57484. /**
  57485. * time_box_unlock pos.
  57486. * @member {number|Long} pos
  57487. * @memberof game.time_box_unlock
  57488. * @instance
  57489. */
  57490. time_box_unlock.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  57491. /**
  57492. * Creates a new time_box_unlock instance using the specified properties.
  57493. * @function create
  57494. * @memberof game.time_box_unlock
  57495. * @static
  57496. * @param {game.Itime_box_unlock=} [properties] Properties to set
  57497. * @returns {game.time_box_unlock} time_box_unlock instance
  57498. */
  57499. time_box_unlock.create = function create(properties) {
  57500. return new time_box_unlock(properties);
  57501. };
  57502. /**
  57503. * Encodes the specified time_box_unlock message. Does not implicitly {@link game.time_box_unlock.verify|verify} messages.
  57504. * @function encode
  57505. * @memberof game.time_box_unlock
  57506. * @static
  57507. * @param {game.Itime_box_unlock} message time_box_unlock message or plain object to encode
  57508. * @param {$protobuf.Writer} [writer] Writer to encode to
  57509. * @returns {$protobuf.Writer} Writer
  57510. */
  57511. time_box_unlock.encode = function encode(message, writer) {
  57512. if (!writer)
  57513. writer = $Writer.create();
  57514. if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
  57515. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.pos);
  57516. return writer;
  57517. };
  57518. /**
  57519. * Encodes the specified time_box_unlock message, length delimited. Does not implicitly {@link game.time_box_unlock.verify|verify} messages.
  57520. * @function encodeDelimited
  57521. * @memberof game.time_box_unlock
  57522. * @static
  57523. * @param {game.Itime_box_unlock} message time_box_unlock message or plain object to encode
  57524. * @param {$protobuf.Writer} [writer] Writer to encode to
  57525. * @returns {$protobuf.Writer} Writer
  57526. */
  57527. time_box_unlock.encodeDelimited = function encodeDelimited(message, writer) {
  57528. return this.encode(message, writer).ldelim();
  57529. };
  57530. /**
  57531. * Decodes a time_box_unlock message from the specified reader or buffer.
  57532. * @function decode
  57533. * @memberof game.time_box_unlock
  57534. * @static
  57535. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  57536. * @param {number} [length] Message length if known beforehand
  57537. * @returns {game.time_box_unlock} time_box_unlock
  57538. * @throws {Error} If the payload is not a reader or valid buffer
  57539. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  57540. */
  57541. time_box_unlock.decode = function decode(reader, length) {
  57542. if (!(reader instanceof $Reader))
  57543. reader = $Reader.create(reader);
  57544. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.time_box_unlock();
  57545. while (reader.pos < end) {
  57546. let tag = reader.uint32();
  57547. switch (tag >>> 3) {
  57548. case 1:
  57549. message.pos = reader.int64();
  57550. break;
  57551. default:
  57552. reader.skipType(tag & 7);
  57553. break;
  57554. }
  57555. }
  57556. return message;
  57557. };
  57558. /**
  57559. * Decodes a time_box_unlock message from the specified reader or buffer, length delimited.
  57560. * @function decodeDelimited
  57561. * @memberof game.time_box_unlock
  57562. * @static
  57563. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  57564. * @returns {game.time_box_unlock} time_box_unlock
  57565. * @throws {Error} If the payload is not a reader or valid buffer
  57566. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  57567. */
  57568. time_box_unlock.decodeDelimited = function decodeDelimited(reader) {
  57569. if (!(reader instanceof $Reader))
  57570. reader = new $Reader(reader);
  57571. return this.decode(reader, reader.uint32());
  57572. };
  57573. /**
  57574. * Verifies a time_box_unlock message.
  57575. * @function verify
  57576. * @memberof game.time_box_unlock
  57577. * @static
  57578. * @param {Object.<string,*>} message Plain object to verify
  57579. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  57580. */
  57581. time_box_unlock.verify = function verify(message) {
  57582. if (typeof message !== "object" || message === null)
  57583. return "object expected";
  57584. if (message.pos != null && message.hasOwnProperty("pos"))
  57585. if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
  57586. return "pos: integer|Long expected";
  57587. return null;
  57588. };
  57589. /**
  57590. * Creates a time_box_unlock message from a plain object. Also converts values to their respective internal types.
  57591. * @function fromObject
  57592. * @memberof game.time_box_unlock
  57593. * @static
  57594. * @param {Object.<string,*>} object Plain object
  57595. * @returns {game.time_box_unlock} time_box_unlock
  57596. */
  57597. time_box_unlock.fromObject = function fromObject(object) {
  57598. if (object instanceof $root.game.time_box_unlock)
  57599. return object;
  57600. let message = new $root.game.time_box_unlock();
  57601. if (object.pos != null)
  57602. if ($util.Long)
  57603. (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
  57604. else if (typeof object.pos === "string")
  57605. message.pos = parseInt(object.pos, 10);
  57606. else if (typeof object.pos === "number")
  57607. message.pos = object.pos;
  57608. else if (typeof object.pos === "object")
  57609. message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
  57610. return message;
  57611. };
  57612. /**
  57613. * Creates a plain object from a time_box_unlock message. Also converts values to other types if specified.
  57614. * @function toObject
  57615. * @memberof game.time_box_unlock
  57616. * @static
  57617. * @param {game.time_box_unlock} message time_box_unlock
  57618. * @param {$protobuf.IConversionOptions} [options] Conversion options
  57619. * @returns {Object.<string,*>} Plain object
  57620. */
  57621. time_box_unlock.toObject = function toObject(message, options) {
  57622. if (!options)
  57623. options = {};
  57624. let object = {};
  57625. if (options.defaults)
  57626. if ($util.Long) {
  57627. let long = new $util.Long(0, 0, false);
  57628. object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  57629. } else
  57630. object.pos = options.longs === String ? "0" : 0;
  57631. if (message.pos != null && message.hasOwnProperty("pos"))
  57632. if (typeof message.pos === "number")
  57633. object.pos = options.longs === String ? String(message.pos) : message.pos;
  57634. else
  57635. 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;
  57636. return object;
  57637. };
  57638. /**
  57639. * Converts this time_box_unlock to JSON.
  57640. * @function toJSON
  57641. * @memberof game.time_box_unlock
  57642. * @instance
  57643. * @returns {Object.<string,*>} JSON object
  57644. */
  57645. time_box_unlock.prototype.toJSON = function toJSON() {
  57646. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  57647. };
  57648. return time_box_unlock;
  57649. })();
  57650. game.time_box_unlock_rsp = (function() {
  57651. /**
  57652. * Properties of a time_box_unlock_rsp.
  57653. * @memberof game
  57654. * @interface Itime_box_unlock_rsp
  57655. * @property {number|Long|null} [errno] time_box_unlock_rsp errno
  57656. * @property {game.Itime_box|null} [data] time_box_unlock_rsp data
  57657. */
  57658. /**
  57659. * Constructs a new time_box_unlock_rsp.
  57660. * @memberof game
  57661. * @classdesc Represents a time_box_unlock_rsp.
  57662. * @implements Itime_box_unlock_rsp
  57663. * @constructor
  57664. * @param {game.Itime_box_unlock_rsp=} [properties] Properties to set
  57665. */
  57666. function time_box_unlock_rsp(properties) {
  57667. if (properties)
  57668. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  57669. if (properties[keys[i]] != null)
  57670. this[keys[i]] = properties[keys[i]];
  57671. }
  57672. /**
  57673. * time_box_unlock_rsp errno.
  57674. * @member {number|Long} errno
  57675. * @memberof game.time_box_unlock_rsp
  57676. * @instance
  57677. */
  57678. time_box_unlock_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  57679. /**
  57680. * time_box_unlock_rsp data.
  57681. * @member {game.Itime_box|null|undefined} data
  57682. * @memberof game.time_box_unlock_rsp
  57683. * @instance
  57684. */
  57685. time_box_unlock_rsp.prototype.data = null;
  57686. /**
  57687. * Creates a new time_box_unlock_rsp instance using the specified properties.
  57688. * @function create
  57689. * @memberof game.time_box_unlock_rsp
  57690. * @static
  57691. * @param {game.Itime_box_unlock_rsp=} [properties] Properties to set
  57692. * @returns {game.time_box_unlock_rsp} time_box_unlock_rsp instance
  57693. */
  57694. time_box_unlock_rsp.create = function create(properties) {
  57695. return new time_box_unlock_rsp(properties);
  57696. };
  57697. /**
  57698. * Encodes the specified time_box_unlock_rsp message. Does not implicitly {@link game.time_box_unlock_rsp.verify|verify} messages.
  57699. * @function encode
  57700. * @memberof game.time_box_unlock_rsp
  57701. * @static
  57702. * @param {game.Itime_box_unlock_rsp} message time_box_unlock_rsp message or plain object to encode
  57703. * @param {$protobuf.Writer} [writer] Writer to encode to
  57704. * @returns {$protobuf.Writer} Writer
  57705. */
  57706. time_box_unlock_rsp.encode = function encode(message, writer) {
  57707. if (!writer)
  57708. writer = $Writer.create();
  57709. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  57710. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  57711. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  57712. $root.game.time_box.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  57713. return writer;
  57714. };
  57715. /**
  57716. * Encodes the specified time_box_unlock_rsp message, length delimited. Does not implicitly {@link game.time_box_unlock_rsp.verify|verify} messages.
  57717. * @function encodeDelimited
  57718. * @memberof game.time_box_unlock_rsp
  57719. * @static
  57720. * @param {game.Itime_box_unlock_rsp} message time_box_unlock_rsp message or plain object to encode
  57721. * @param {$protobuf.Writer} [writer] Writer to encode to
  57722. * @returns {$protobuf.Writer} Writer
  57723. */
  57724. time_box_unlock_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  57725. return this.encode(message, writer).ldelim();
  57726. };
  57727. /**
  57728. * Decodes a time_box_unlock_rsp message from the specified reader or buffer.
  57729. * @function decode
  57730. * @memberof game.time_box_unlock_rsp
  57731. * @static
  57732. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  57733. * @param {number} [length] Message length if known beforehand
  57734. * @returns {game.time_box_unlock_rsp} time_box_unlock_rsp
  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. time_box_unlock_rsp.decode = function decode(reader, length) {
  57739. if (!(reader instanceof $Reader))
  57740. reader = $Reader.create(reader);
  57741. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.time_box_unlock_rsp();
  57742. while (reader.pos < end) {
  57743. let tag = reader.uint32();
  57744. switch (tag >>> 3) {
  57745. case 1:
  57746. message.errno = reader.int64();
  57747. break;
  57748. case 2:
  57749. message.data = $root.game.time_box.decode(reader, reader.uint32());
  57750. break;
  57751. default:
  57752. reader.skipType(tag & 7);
  57753. break;
  57754. }
  57755. }
  57756. return message;
  57757. };
  57758. /**
  57759. * Decodes a time_box_unlock_rsp message from the specified reader or buffer, length delimited.
  57760. * @function decodeDelimited
  57761. * @memberof game.time_box_unlock_rsp
  57762. * @static
  57763. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  57764. * @returns {game.time_box_unlock_rsp} time_box_unlock_rsp
  57765. * @throws {Error} If the payload is not a reader or valid buffer
  57766. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  57767. */
  57768. time_box_unlock_rsp.decodeDelimited = function decodeDelimited(reader) {
  57769. if (!(reader instanceof $Reader))
  57770. reader = new $Reader(reader);
  57771. return this.decode(reader, reader.uint32());
  57772. };
  57773. /**
  57774. * Verifies a time_box_unlock_rsp message.
  57775. * @function verify
  57776. * @memberof game.time_box_unlock_rsp
  57777. * @static
  57778. * @param {Object.<string,*>} message Plain object to verify
  57779. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  57780. */
  57781. time_box_unlock_rsp.verify = function verify(message) {
  57782. if (typeof message !== "object" || message === null)
  57783. return "object expected";
  57784. if (message.errno != null && message.hasOwnProperty("errno"))
  57785. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  57786. return "errno: integer|Long expected";
  57787. if (message.data != null && message.hasOwnProperty("data")) {
  57788. let error = $root.game.time_box.verify(message.data);
  57789. if (error)
  57790. return "data." + error;
  57791. }
  57792. return null;
  57793. };
  57794. /**
  57795. * Creates a time_box_unlock_rsp message from a plain object. Also converts values to their respective internal types.
  57796. * @function fromObject
  57797. * @memberof game.time_box_unlock_rsp
  57798. * @static
  57799. * @param {Object.<string,*>} object Plain object
  57800. * @returns {game.time_box_unlock_rsp} time_box_unlock_rsp
  57801. */
  57802. time_box_unlock_rsp.fromObject = function fromObject(object) {
  57803. if (object instanceof $root.game.time_box_unlock_rsp)
  57804. return object;
  57805. let message = new $root.game.time_box_unlock_rsp();
  57806. if (object.errno != null)
  57807. if ($util.Long)
  57808. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  57809. else if (typeof object.errno === "string")
  57810. message.errno = parseInt(object.errno, 10);
  57811. else if (typeof object.errno === "number")
  57812. message.errno = object.errno;
  57813. else if (typeof object.errno === "object")
  57814. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  57815. if (object.data != null) {
  57816. if (typeof object.data !== "object")
  57817. throw TypeError(".game.time_box_unlock_rsp.data: object expected");
  57818. message.data = $root.game.time_box.fromObject(object.data);
  57819. }
  57820. return message;
  57821. };
  57822. /**
  57823. * Creates a plain object from a time_box_unlock_rsp message. Also converts values to other types if specified.
  57824. * @function toObject
  57825. * @memberof game.time_box_unlock_rsp
  57826. * @static
  57827. * @param {game.time_box_unlock_rsp} message time_box_unlock_rsp
  57828. * @param {$protobuf.IConversionOptions} [options] Conversion options
  57829. * @returns {Object.<string,*>} Plain object
  57830. */
  57831. time_box_unlock_rsp.toObject = function toObject(message, options) {
  57832. if (!options)
  57833. options = {};
  57834. let object = {};
  57835. if (options.defaults) {
  57836. if ($util.Long) {
  57837. let long = new $util.Long(0, 0, false);
  57838. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  57839. } else
  57840. object.errno = options.longs === String ? "0" : 0;
  57841. object.data = null;
  57842. }
  57843. if (message.errno != null && message.hasOwnProperty("errno"))
  57844. if (typeof message.errno === "number")
  57845. object.errno = options.longs === String ? String(message.errno) : message.errno;
  57846. else
  57847. 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;
  57848. if (message.data != null && message.hasOwnProperty("data"))
  57849. object.data = $root.game.time_box.toObject(message.data, options);
  57850. return object;
  57851. };
  57852. /**
  57853. * Converts this time_box_unlock_rsp to JSON.
  57854. * @function toJSON
  57855. * @memberof game.time_box_unlock_rsp
  57856. * @instance
  57857. * @returns {Object.<string,*>} JSON object
  57858. */
  57859. time_box_unlock_rsp.prototype.toJSON = function toJSON() {
  57860. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  57861. };
  57862. return time_box_unlock_rsp;
  57863. })();
  57864. game.time_box_get_award = (function() {
  57865. /**
  57866. * Properties of a time_box_get_award.
  57867. * @memberof game
  57868. * @interface Itime_box_get_award
  57869. * @property {number|Long|null} [pos] time_box_get_award pos
  57870. */
  57871. /**
  57872. * Constructs a new time_box_get_award.
  57873. * @memberof game
  57874. * @classdesc Represents a time_box_get_award.
  57875. * @implements Itime_box_get_award
  57876. * @constructor
  57877. * @param {game.Itime_box_get_award=} [properties] Properties to set
  57878. */
  57879. function time_box_get_award(properties) {
  57880. if (properties)
  57881. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  57882. if (properties[keys[i]] != null)
  57883. this[keys[i]] = properties[keys[i]];
  57884. }
  57885. /**
  57886. * time_box_get_award pos.
  57887. * @member {number|Long} pos
  57888. * @memberof game.time_box_get_award
  57889. * @instance
  57890. */
  57891. time_box_get_award.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  57892. /**
  57893. * Creates a new time_box_get_award instance using the specified properties.
  57894. * @function create
  57895. * @memberof game.time_box_get_award
  57896. * @static
  57897. * @param {game.Itime_box_get_award=} [properties] Properties to set
  57898. * @returns {game.time_box_get_award} time_box_get_award instance
  57899. */
  57900. time_box_get_award.create = function create(properties) {
  57901. return new time_box_get_award(properties);
  57902. };
  57903. /**
  57904. * Encodes the specified time_box_get_award message. Does not implicitly {@link game.time_box_get_award.verify|verify} messages.
  57905. * @function encode
  57906. * @memberof game.time_box_get_award
  57907. * @static
  57908. * @param {game.Itime_box_get_award} message time_box_get_award message or plain object to encode
  57909. * @param {$protobuf.Writer} [writer] Writer to encode to
  57910. * @returns {$protobuf.Writer} Writer
  57911. */
  57912. time_box_get_award.encode = function encode(message, writer) {
  57913. if (!writer)
  57914. writer = $Writer.create();
  57915. if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
  57916. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.pos);
  57917. return writer;
  57918. };
  57919. /**
  57920. * Encodes the specified time_box_get_award message, length delimited. Does not implicitly {@link game.time_box_get_award.verify|verify} messages.
  57921. * @function encodeDelimited
  57922. * @memberof game.time_box_get_award
  57923. * @static
  57924. * @param {game.Itime_box_get_award} message time_box_get_award message or plain object to encode
  57925. * @param {$protobuf.Writer} [writer] Writer to encode to
  57926. * @returns {$protobuf.Writer} Writer
  57927. */
  57928. time_box_get_award.encodeDelimited = function encodeDelimited(message, writer) {
  57929. return this.encode(message, writer).ldelim();
  57930. };
  57931. /**
  57932. * Decodes a time_box_get_award message from the specified reader or buffer.
  57933. * @function decode
  57934. * @memberof game.time_box_get_award
  57935. * @static
  57936. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  57937. * @param {number} [length] Message length if known beforehand
  57938. * @returns {game.time_box_get_award} time_box_get_award
  57939. * @throws {Error} If the payload is not a reader or valid buffer
  57940. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  57941. */
  57942. time_box_get_award.decode = function decode(reader, length) {
  57943. if (!(reader instanceof $Reader))
  57944. reader = $Reader.create(reader);
  57945. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.time_box_get_award();
  57946. while (reader.pos < end) {
  57947. let tag = reader.uint32();
  57948. switch (tag >>> 3) {
  57949. case 1:
  57950. message.pos = reader.int64();
  57951. break;
  57952. default:
  57953. reader.skipType(tag & 7);
  57954. break;
  57955. }
  57956. }
  57957. return message;
  57958. };
  57959. /**
  57960. * Decodes a time_box_get_award message from the specified reader or buffer, length delimited.
  57961. * @function decodeDelimited
  57962. * @memberof game.time_box_get_award
  57963. * @static
  57964. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  57965. * @returns {game.time_box_get_award} time_box_get_award
  57966. * @throws {Error} If the payload is not a reader or valid buffer
  57967. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  57968. */
  57969. time_box_get_award.decodeDelimited = function decodeDelimited(reader) {
  57970. if (!(reader instanceof $Reader))
  57971. reader = new $Reader(reader);
  57972. return this.decode(reader, reader.uint32());
  57973. };
  57974. /**
  57975. * Verifies a time_box_get_award message.
  57976. * @function verify
  57977. * @memberof game.time_box_get_award
  57978. * @static
  57979. * @param {Object.<string,*>} message Plain object to verify
  57980. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  57981. */
  57982. time_box_get_award.verify = function verify(message) {
  57983. if (typeof message !== "object" || message === null)
  57984. return "object expected";
  57985. if (message.pos != null && message.hasOwnProperty("pos"))
  57986. if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
  57987. return "pos: integer|Long expected";
  57988. return null;
  57989. };
  57990. /**
  57991. * Creates a time_box_get_award message from a plain object. Also converts values to their respective internal types.
  57992. * @function fromObject
  57993. * @memberof game.time_box_get_award
  57994. * @static
  57995. * @param {Object.<string,*>} object Plain object
  57996. * @returns {game.time_box_get_award} time_box_get_award
  57997. */
  57998. time_box_get_award.fromObject = function fromObject(object) {
  57999. if (object instanceof $root.game.time_box_get_award)
  58000. return object;
  58001. let message = new $root.game.time_box_get_award();
  58002. if (object.pos != null)
  58003. if ($util.Long)
  58004. (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
  58005. else if (typeof object.pos === "string")
  58006. message.pos = parseInt(object.pos, 10);
  58007. else if (typeof object.pos === "number")
  58008. message.pos = object.pos;
  58009. else if (typeof object.pos === "object")
  58010. message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
  58011. return message;
  58012. };
  58013. /**
  58014. * Creates a plain object from a time_box_get_award message. Also converts values to other types if specified.
  58015. * @function toObject
  58016. * @memberof game.time_box_get_award
  58017. * @static
  58018. * @param {game.time_box_get_award} message time_box_get_award
  58019. * @param {$protobuf.IConversionOptions} [options] Conversion options
  58020. * @returns {Object.<string,*>} Plain object
  58021. */
  58022. time_box_get_award.toObject = function toObject(message, options) {
  58023. if (!options)
  58024. options = {};
  58025. let object = {};
  58026. if (options.defaults)
  58027. if ($util.Long) {
  58028. let long = new $util.Long(0, 0, false);
  58029. object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  58030. } else
  58031. object.pos = options.longs === String ? "0" : 0;
  58032. if (message.pos != null && message.hasOwnProperty("pos"))
  58033. if (typeof message.pos === "number")
  58034. object.pos = options.longs === String ? String(message.pos) : message.pos;
  58035. else
  58036. 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;
  58037. return object;
  58038. };
  58039. /**
  58040. * Converts this time_box_get_award to JSON.
  58041. * @function toJSON
  58042. * @memberof game.time_box_get_award
  58043. * @instance
  58044. * @returns {Object.<string,*>} JSON object
  58045. */
  58046. time_box_get_award.prototype.toJSON = function toJSON() {
  58047. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  58048. };
  58049. return time_box_get_award;
  58050. })();
  58051. game.time_box_get_award_rsp = (function() {
  58052. /**
  58053. * Properties of a time_box_get_award_rsp.
  58054. * @memberof game
  58055. * @interface Itime_box_get_award_rsp
  58056. * @property {number|Long|null} [errno] time_box_get_award_rsp errno
  58057. * @property {number|Long|null} [pos] time_box_get_award_rsp pos
  58058. */
  58059. /**
  58060. * Constructs a new time_box_get_award_rsp.
  58061. * @memberof game
  58062. * @classdesc Represents a time_box_get_award_rsp.
  58063. * @implements Itime_box_get_award_rsp
  58064. * @constructor
  58065. * @param {game.Itime_box_get_award_rsp=} [properties] Properties to set
  58066. */
  58067. function time_box_get_award_rsp(properties) {
  58068. if (properties)
  58069. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  58070. if (properties[keys[i]] != null)
  58071. this[keys[i]] = properties[keys[i]];
  58072. }
  58073. /**
  58074. * time_box_get_award_rsp errno.
  58075. * @member {number|Long} errno
  58076. * @memberof game.time_box_get_award_rsp
  58077. * @instance
  58078. */
  58079. time_box_get_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  58080. /**
  58081. * time_box_get_award_rsp pos.
  58082. * @member {number|Long} pos
  58083. * @memberof game.time_box_get_award_rsp
  58084. * @instance
  58085. */
  58086. time_box_get_award_rsp.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  58087. /**
  58088. * Creates a new time_box_get_award_rsp instance using the specified properties.
  58089. * @function create
  58090. * @memberof game.time_box_get_award_rsp
  58091. * @static
  58092. * @param {game.Itime_box_get_award_rsp=} [properties] Properties to set
  58093. * @returns {game.time_box_get_award_rsp} time_box_get_award_rsp instance
  58094. */
  58095. time_box_get_award_rsp.create = function create(properties) {
  58096. return new time_box_get_award_rsp(properties);
  58097. };
  58098. /**
  58099. * Encodes the specified time_box_get_award_rsp message. Does not implicitly {@link game.time_box_get_award_rsp.verify|verify} messages.
  58100. * @function encode
  58101. * @memberof game.time_box_get_award_rsp
  58102. * @static
  58103. * @param {game.Itime_box_get_award_rsp} message time_box_get_award_rsp message or plain object to encode
  58104. * @param {$protobuf.Writer} [writer] Writer to encode to
  58105. * @returns {$protobuf.Writer} Writer
  58106. */
  58107. time_box_get_award_rsp.encode = function encode(message, writer) {
  58108. if (!writer)
  58109. writer = $Writer.create();
  58110. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  58111. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  58112. if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
  58113. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.pos);
  58114. return writer;
  58115. };
  58116. /**
  58117. * Encodes the specified time_box_get_award_rsp message, length delimited. Does not implicitly {@link game.time_box_get_award_rsp.verify|verify} messages.
  58118. * @function encodeDelimited
  58119. * @memberof game.time_box_get_award_rsp
  58120. * @static
  58121. * @param {game.Itime_box_get_award_rsp} message time_box_get_award_rsp message or plain object to encode
  58122. * @param {$protobuf.Writer} [writer] Writer to encode to
  58123. * @returns {$protobuf.Writer} Writer
  58124. */
  58125. time_box_get_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  58126. return this.encode(message, writer).ldelim();
  58127. };
  58128. /**
  58129. * Decodes a time_box_get_award_rsp message from the specified reader or buffer.
  58130. * @function decode
  58131. * @memberof game.time_box_get_award_rsp
  58132. * @static
  58133. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  58134. * @param {number} [length] Message length if known beforehand
  58135. * @returns {game.time_box_get_award_rsp} time_box_get_award_rsp
  58136. * @throws {Error} If the payload is not a reader or valid buffer
  58137. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  58138. */
  58139. time_box_get_award_rsp.decode = function decode(reader, length) {
  58140. if (!(reader instanceof $Reader))
  58141. reader = $Reader.create(reader);
  58142. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.time_box_get_award_rsp();
  58143. while (reader.pos < end) {
  58144. let tag = reader.uint32();
  58145. switch (tag >>> 3) {
  58146. case 1:
  58147. message.errno = reader.int64();
  58148. break;
  58149. case 2:
  58150. message.pos = reader.int64();
  58151. break;
  58152. default:
  58153. reader.skipType(tag & 7);
  58154. break;
  58155. }
  58156. }
  58157. return message;
  58158. };
  58159. /**
  58160. * Decodes a time_box_get_award_rsp message from the specified reader or buffer, length delimited.
  58161. * @function decodeDelimited
  58162. * @memberof game.time_box_get_award_rsp
  58163. * @static
  58164. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  58165. * @returns {game.time_box_get_award_rsp} time_box_get_award_rsp
  58166. * @throws {Error} If the payload is not a reader or valid buffer
  58167. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  58168. */
  58169. time_box_get_award_rsp.decodeDelimited = function decodeDelimited(reader) {
  58170. if (!(reader instanceof $Reader))
  58171. reader = new $Reader(reader);
  58172. return this.decode(reader, reader.uint32());
  58173. };
  58174. /**
  58175. * Verifies a time_box_get_award_rsp message.
  58176. * @function verify
  58177. * @memberof game.time_box_get_award_rsp
  58178. * @static
  58179. * @param {Object.<string,*>} message Plain object to verify
  58180. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  58181. */
  58182. time_box_get_award_rsp.verify = function verify(message) {
  58183. if (typeof message !== "object" || message === null)
  58184. return "object expected";
  58185. if (message.errno != null && message.hasOwnProperty("errno"))
  58186. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  58187. return "errno: integer|Long expected";
  58188. if (message.pos != null && message.hasOwnProperty("pos"))
  58189. if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
  58190. return "pos: integer|Long expected";
  58191. return null;
  58192. };
  58193. /**
  58194. * Creates a time_box_get_award_rsp message from a plain object. Also converts values to their respective internal types.
  58195. * @function fromObject
  58196. * @memberof game.time_box_get_award_rsp
  58197. * @static
  58198. * @param {Object.<string,*>} object Plain object
  58199. * @returns {game.time_box_get_award_rsp} time_box_get_award_rsp
  58200. */
  58201. time_box_get_award_rsp.fromObject = function fromObject(object) {
  58202. if (object instanceof $root.game.time_box_get_award_rsp)
  58203. return object;
  58204. let message = new $root.game.time_box_get_award_rsp();
  58205. if (object.errno != null)
  58206. if ($util.Long)
  58207. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  58208. else if (typeof object.errno === "string")
  58209. message.errno = parseInt(object.errno, 10);
  58210. else if (typeof object.errno === "number")
  58211. message.errno = object.errno;
  58212. else if (typeof object.errno === "object")
  58213. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  58214. if (object.pos != null)
  58215. if ($util.Long)
  58216. (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
  58217. else if (typeof object.pos === "string")
  58218. message.pos = parseInt(object.pos, 10);
  58219. else if (typeof object.pos === "number")
  58220. message.pos = object.pos;
  58221. else if (typeof object.pos === "object")
  58222. message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
  58223. return message;
  58224. };
  58225. /**
  58226. * Creates a plain object from a time_box_get_award_rsp message. Also converts values to other types if specified.
  58227. * @function toObject
  58228. * @memberof game.time_box_get_award_rsp
  58229. * @static
  58230. * @param {game.time_box_get_award_rsp} message time_box_get_award_rsp
  58231. * @param {$protobuf.IConversionOptions} [options] Conversion options
  58232. * @returns {Object.<string,*>} Plain object
  58233. */
  58234. time_box_get_award_rsp.toObject = function toObject(message, options) {
  58235. if (!options)
  58236. options = {};
  58237. let object = {};
  58238. if (options.defaults) {
  58239. if ($util.Long) {
  58240. let long = new $util.Long(0, 0, false);
  58241. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  58242. } else
  58243. object.errno = options.longs === String ? "0" : 0;
  58244. if ($util.Long) {
  58245. let long = new $util.Long(0, 0, false);
  58246. object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  58247. } else
  58248. object.pos = options.longs === String ? "0" : 0;
  58249. }
  58250. if (message.errno != null && message.hasOwnProperty("errno"))
  58251. if (typeof message.errno === "number")
  58252. object.errno = options.longs === String ? String(message.errno) : message.errno;
  58253. else
  58254. 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;
  58255. if (message.pos != null && message.hasOwnProperty("pos"))
  58256. if (typeof message.pos === "number")
  58257. object.pos = options.longs === String ? String(message.pos) : message.pos;
  58258. else
  58259. 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;
  58260. return object;
  58261. };
  58262. /**
  58263. * Converts this time_box_get_award_rsp to JSON.
  58264. * @function toJSON
  58265. * @memberof game.time_box_get_award_rsp
  58266. * @instance
  58267. * @returns {Object.<string,*>} JSON object
  58268. */
  58269. time_box_get_award_rsp.prototype.toJSON = function toJSON() {
  58270. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  58271. };
  58272. return time_box_get_award_rsp;
  58273. })();
  58274. game.id_num = (function() {
  58275. /**
  58276. * Properties of an id_num.
  58277. * @memberof game
  58278. * @interface Iid_num
  58279. * @property {number|Long|null} [id] id_num id
  58280. * @property {number|Long|null} [num] id_num num
  58281. */
  58282. /**
  58283. * Constructs a new id_num.
  58284. * @memberof game
  58285. * @classdesc Represents an id_num.
  58286. * @implements Iid_num
  58287. * @constructor
  58288. * @param {game.Iid_num=} [properties] Properties to set
  58289. */
  58290. function id_num(properties) {
  58291. if (properties)
  58292. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  58293. if (properties[keys[i]] != null)
  58294. this[keys[i]] = properties[keys[i]];
  58295. }
  58296. /**
  58297. * id_num id.
  58298. * @member {number|Long} id
  58299. * @memberof game.id_num
  58300. * @instance
  58301. */
  58302. id_num.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  58303. /**
  58304. * id_num num.
  58305. * @member {number|Long} num
  58306. * @memberof game.id_num
  58307. * @instance
  58308. */
  58309. id_num.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  58310. /**
  58311. * Creates a new id_num instance using the specified properties.
  58312. * @function create
  58313. * @memberof game.id_num
  58314. * @static
  58315. * @param {game.Iid_num=} [properties] Properties to set
  58316. * @returns {game.id_num} id_num instance
  58317. */
  58318. id_num.create = function create(properties) {
  58319. return new id_num(properties);
  58320. };
  58321. /**
  58322. * Encodes the specified id_num message. Does not implicitly {@link game.id_num.verify|verify} messages.
  58323. * @function encode
  58324. * @memberof game.id_num
  58325. * @static
  58326. * @param {game.Iid_num} message id_num message or plain object to encode
  58327. * @param {$protobuf.Writer} [writer] Writer to encode to
  58328. * @returns {$protobuf.Writer} Writer
  58329. */
  58330. id_num.encode = function encode(message, writer) {
  58331. if (!writer)
  58332. writer = $Writer.create();
  58333. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  58334. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  58335. if (message.num != null && Object.hasOwnProperty.call(message, "num"))
  58336. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.num);
  58337. return writer;
  58338. };
  58339. /**
  58340. * Encodes the specified id_num message, length delimited. Does not implicitly {@link game.id_num.verify|verify} messages.
  58341. * @function encodeDelimited
  58342. * @memberof game.id_num
  58343. * @static
  58344. * @param {game.Iid_num} message id_num message or plain object to encode
  58345. * @param {$protobuf.Writer} [writer] Writer to encode to
  58346. * @returns {$protobuf.Writer} Writer
  58347. */
  58348. id_num.encodeDelimited = function encodeDelimited(message, writer) {
  58349. return this.encode(message, writer).ldelim();
  58350. };
  58351. /**
  58352. * Decodes an id_num message from the specified reader or buffer.
  58353. * @function decode
  58354. * @memberof game.id_num
  58355. * @static
  58356. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  58357. * @param {number} [length] Message length if known beforehand
  58358. * @returns {game.id_num} id_num
  58359. * @throws {Error} If the payload is not a reader or valid buffer
  58360. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  58361. */
  58362. id_num.decode = function decode(reader, length) {
  58363. if (!(reader instanceof $Reader))
  58364. reader = $Reader.create(reader);
  58365. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.id_num();
  58366. while (reader.pos < end) {
  58367. let tag = reader.uint32();
  58368. switch (tag >>> 3) {
  58369. case 1:
  58370. message.id = reader.int64();
  58371. break;
  58372. case 2:
  58373. message.num = reader.int64();
  58374. break;
  58375. default:
  58376. reader.skipType(tag & 7);
  58377. break;
  58378. }
  58379. }
  58380. return message;
  58381. };
  58382. /**
  58383. * Decodes an id_num message from the specified reader or buffer, length delimited.
  58384. * @function decodeDelimited
  58385. * @memberof game.id_num
  58386. * @static
  58387. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  58388. * @returns {game.id_num} id_num
  58389. * @throws {Error} If the payload is not a reader or valid buffer
  58390. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  58391. */
  58392. id_num.decodeDelimited = function decodeDelimited(reader) {
  58393. if (!(reader instanceof $Reader))
  58394. reader = new $Reader(reader);
  58395. return this.decode(reader, reader.uint32());
  58396. };
  58397. /**
  58398. * Verifies an id_num message.
  58399. * @function verify
  58400. * @memberof game.id_num
  58401. * @static
  58402. * @param {Object.<string,*>} message Plain object to verify
  58403. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  58404. */
  58405. id_num.verify = function verify(message) {
  58406. if (typeof message !== "object" || message === null)
  58407. return "object expected";
  58408. if (message.id != null && message.hasOwnProperty("id"))
  58409. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  58410. return "id: integer|Long expected";
  58411. if (message.num != null && message.hasOwnProperty("num"))
  58412. if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
  58413. return "num: integer|Long expected";
  58414. return null;
  58415. };
  58416. /**
  58417. * Creates an id_num message from a plain object. Also converts values to their respective internal types.
  58418. * @function fromObject
  58419. * @memberof game.id_num
  58420. * @static
  58421. * @param {Object.<string,*>} object Plain object
  58422. * @returns {game.id_num} id_num
  58423. */
  58424. id_num.fromObject = function fromObject(object) {
  58425. if (object instanceof $root.game.id_num)
  58426. return object;
  58427. let message = new $root.game.id_num();
  58428. if (object.id != null)
  58429. if ($util.Long)
  58430. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  58431. else if (typeof object.id === "string")
  58432. message.id = parseInt(object.id, 10);
  58433. else if (typeof object.id === "number")
  58434. message.id = object.id;
  58435. else if (typeof object.id === "object")
  58436. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  58437. if (object.num != null)
  58438. if ($util.Long)
  58439. (message.num = $util.Long.fromValue(object.num)).unsigned = false;
  58440. else if (typeof object.num === "string")
  58441. message.num = parseInt(object.num, 10);
  58442. else if (typeof object.num === "number")
  58443. message.num = object.num;
  58444. else if (typeof object.num === "object")
  58445. message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
  58446. return message;
  58447. };
  58448. /**
  58449. * Creates a plain object from an id_num message. Also converts values to other types if specified.
  58450. * @function toObject
  58451. * @memberof game.id_num
  58452. * @static
  58453. * @param {game.id_num} message id_num
  58454. * @param {$protobuf.IConversionOptions} [options] Conversion options
  58455. * @returns {Object.<string,*>} Plain object
  58456. */
  58457. id_num.toObject = function toObject(message, options) {
  58458. if (!options)
  58459. options = {};
  58460. let object = {};
  58461. if (options.defaults) {
  58462. if ($util.Long) {
  58463. let long = new $util.Long(0, 0, false);
  58464. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  58465. } else
  58466. object.id = options.longs === String ? "0" : 0;
  58467. if ($util.Long) {
  58468. let long = new $util.Long(0, 0, false);
  58469. object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  58470. } else
  58471. object.num = options.longs === String ? "0" : 0;
  58472. }
  58473. if (message.id != null && message.hasOwnProperty("id"))
  58474. if (typeof message.id === "number")
  58475. object.id = options.longs === String ? String(message.id) : message.id;
  58476. else
  58477. 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;
  58478. if (message.num != null && message.hasOwnProperty("num"))
  58479. if (typeof message.num === "number")
  58480. object.num = options.longs === String ? String(message.num) : message.num;
  58481. else
  58482. 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;
  58483. return object;
  58484. };
  58485. /**
  58486. * Converts this id_num to JSON.
  58487. * @function toJSON
  58488. * @memberof game.id_num
  58489. * @instance
  58490. * @returns {Object.<string,*>} JSON object
  58491. */
  58492. id_num.prototype.toJSON = function toJSON() {
  58493. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  58494. };
  58495. return id_num;
  58496. })();
  58497. game.sid_pos = (function() {
  58498. /**
  58499. * Properties of a sid_pos.
  58500. * @memberof game
  58501. * @interface Isid_pos
  58502. * @property {string|null} [sid] sid_pos sid
  58503. * @property {number|Long|null} [pos] sid_pos pos
  58504. */
  58505. /**
  58506. * Constructs a new sid_pos.
  58507. * @memberof game
  58508. * @classdesc Represents a sid_pos.
  58509. * @implements Isid_pos
  58510. * @constructor
  58511. * @param {game.Isid_pos=} [properties] Properties to set
  58512. */
  58513. function sid_pos(properties) {
  58514. if (properties)
  58515. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  58516. if (properties[keys[i]] != null)
  58517. this[keys[i]] = properties[keys[i]];
  58518. }
  58519. /**
  58520. * sid_pos sid.
  58521. * @member {string} sid
  58522. * @memberof game.sid_pos
  58523. * @instance
  58524. */
  58525. sid_pos.prototype.sid = "";
  58526. /**
  58527. * sid_pos pos.
  58528. * @member {number|Long} pos
  58529. * @memberof game.sid_pos
  58530. * @instance
  58531. */
  58532. sid_pos.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  58533. /**
  58534. * Creates a new sid_pos instance using the specified properties.
  58535. * @function create
  58536. * @memberof game.sid_pos
  58537. * @static
  58538. * @param {game.Isid_pos=} [properties] Properties to set
  58539. * @returns {game.sid_pos} sid_pos instance
  58540. */
  58541. sid_pos.create = function create(properties) {
  58542. return new sid_pos(properties);
  58543. };
  58544. /**
  58545. * Encodes the specified sid_pos message. Does not implicitly {@link game.sid_pos.verify|verify} messages.
  58546. * @function encode
  58547. * @memberof game.sid_pos
  58548. * @static
  58549. * @param {game.Isid_pos} message sid_pos message or plain object to encode
  58550. * @param {$protobuf.Writer} [writer] Writer to encode to
  58551. * @returns {$protobuf.Writer} Writer
  58552. */
  58553. sid_pos.encode = function encode(message, writer) {
  58554. if (!writer)
  58555. writer = $Writer.create();
  58556. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  58557. writer.uint32(/* id 1, wireType 2 =*/10).string(message.sid);
  58558. if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
  58559. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.pos);
  58560. return writer;
  58561. };
  58562. /**
  58563. * Encodes the specified sid_pos message, length delimited. Does not implicitly {@link game.sid_pos.verify|verify} messages.
  58564. * @function encodeDelimited
  58565. * @memberof game.sid_pos
  58566. * @static
  58567. * @param {game.Isid_pos} message sid_pos message or plain object to encode
  58568. * @param {$protobuf.Writer} [writer] Writer to encode to
  58569. * @returns {$protobuf.Writer} Writer
  58570. */
  58571. sid_pos.encodeDelimited = function encodeDelimited(message, writer) {
  58572. return this.encode(message, writer).ldelim();
  58573. };
  58574. /**
  58575. * Decodes a sid_pos message from the specified reader or buffer.
  58576. * @function decode
  58577. * @memberof game.sid_pos
  58578. * @static
  58579. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  58580. * @param {number} [length] Message length if known beforehand
  58581. * @returns {game.sid_pos} sid_pos
  58582. * @throws {Error} If the payload is not a reader or valid buffer
  58583. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  58584. */
  58585. sid_pos.decode = function decode(reader, length) {
  58586. if (!(reader instanceof $Reader))
  58587. reader = $Reader.create(reader);
  58588. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.sid_pos();
  58589. while (reader.pos < end) {
  58590. let tag = reader.uint32();
  58591. switch (tag >>> 3) {
  58592. case 1:
  58593. message.sid = reader.string();
  58594. break;
  58595. case 2:
  58596. message.pos = reader.int64();
  58597. break;
  58598. default:
  58599. reader.skipType(tag & 7);
  58600. break;
  58601. }
  58602. }
  58603. return message;
  58604. };
  58605. /**
  58606. * Decodes a sid_pos message from the specified reader or buffer, length delimited.
  58607. * @function decodeDelimited
  58608. * @memberof game.sid_pos
  58609. * @static
  58610. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  58611. * @returns {game.sid_pos} sid_pos
  58612. * @throws {Error} If the payload is not a reader or valid buffer
  58613. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  58614. */
  58615. sid_pos.decodeDelimited = function decodeDelimited(reader) {
  58616. if (!(reader instanceof $Reader))
  58617. reader = new $Reader(reader);
  58618. return this.decode(reader, reader.uint32());
  58619. };
  58620. /**
  58621. * Verifies a sid_pos message.
  58622. * @function verify
  58623. * @memberof game.sid_pos
  58624. * @static
  58625. * @param {Object.<string,*>} message Plain object to verify
  58626. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  58627. */
  58628. sid_pos.verify = function verify(message) {
  58629. if (typeof message !== "object" || message === null)
  58630. return "object expected";
  58631. if (message.sid != null && message.hasOwnProperty("sid"))
  58632. if (!$util.isString(message.sid))
  58633. return "sid: string expected";
  58634. if (message.pos != null && message.hasOwnProperty("pos"))
  58635. if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
  58636. return "pos: integer|Long expected";
  58637. return null;
  58638. };
  58639. /**
  58640. * Creates a sid_pos message from a plain object. Also converts values to their respective internal types.
  58641. * @function fromObject
  58642. * @memberof game.sid_pos
  58643. * @static
  58644. * @param {Object.<string,*>} object Plain object
  58645. * @returns {game.sid_pos} sid_pos
  58646. */
  58647. sid_pos.fromObject = function fromObject(object) {
  58648. if (object instanceof $root.game.sid_pos)
  58649. return object;
  58650. let message = new $root.game.sid_pos();
  58651. if (object.sid != null)
  58652. message.sid = String(object.sid);
  58653. if (object.pos != null)
  58654. if ($util.Long)
  58655. (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
  58656. else if (typeof object.pos === "string")
  58657. message.pos = parseInt(object.pos, 10);
  58658. else if (typeof object.pos === "number")
  58659. message.pos = object.pos;
  58660. else if (typeof object.pos === "object")
  58661. message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
  58662. return message;
  58663. };
  58664. /**
  58665. * Creates a plain object from a sid_pos message. Also converts values to other types if specified.
  58666. * @function toObject
  58667. * @memberof game.sid_pos
  58668. * @static
  58669. * @param {game.sid_pos} message sid_pos
  58670. * @param {$protobuf.IConversionOptions} [options] Conversion options
  58671. * @returns {Object.<string,*>} Plain object
  58672. */
  58673. sid_pos.toObject = function toObject(message, options) {
  58674. if (!options)
  58675. options = {};
  58676. let object = {};
  58677. if (options.defaults) {
  58678. object.sid = "";
  58679. if ($util.Long) {
  58680. let long = new $util.Long(0, 0, false);
  58681. object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  58682. } else
  58683. object.pos = options.longs === String ? "0" : 0;
  58684. }
  58685. if (message.sid != null && message.hasOwnProperty("sid"))
  58686. object.sid = message.sid;
  58687. if (message.pos != null && message.hasOwnProperty("pos"))
  58688. if (typeof message.pos === "number")
  58689. object.pos = options.longs === String ? String(message.pos) : message.pos;
  58690. else
  58691. 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;
  58692. return object;
  58693. };
  58694. /**
  58695. * Converts this sid_pos to JSON.
  58696. * @function toJSON
  58697. * @memberof game.sid_pos
  58698. * @instance
  58699. * @returns {Object.<string,*>} JSON object
  58700. */
  58701. sid_pos.prototype.toJSON = function toJSON() {
  58702. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  58703. };
  58704. return sid_pos;
  58705. })();
  58706. game.hero = (function() {
  58707. /**
  58708. * Properties of a hero.
  58709. * @memberof game
  58710. * @interface Ihero
  58711. * @property {string|null} [sid] hero sid
  58712. * @property {number|Long|null} [id] hero id
  58713. * @property {number|Long|null} [lv] hero lv
  58714. * @property {Array.<string>|null} [equip] hero equip
  58715. * @property {number|Long|null} [num] hero num
  58716. */
  58717. /**
  58718. * Constructs a new hero.
  58719. * @memberof game
  58720. * @classdesc Represents a hero.
  58721. * @implements Ihero
  58722. * @constructor
  58723. * @param {game.Ihero=} [properties] Properties to set
  58724. */
  58725. function hero(properties) {
  58726. this.equip = [];
  58727. if (properties)
  58728. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  58729. if (properties[keys[i]] != null)
  58730. this[keys[i]] = properties[keys[i]];
  58731. }
  58732. /**
  58733. * hero sid.
  58734. * @member {string} sid
  58735. * @memberof game.hero
  58736. * @instance
  58737. */
  58738. hero.prototype.sid = "";
  58739. /**
  58740. * hero id.
  58741. * @member {number|Long} id
  58742. * @memberof game.hero
  58743. * @instance
  58744. */
  58745. hero.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  58746. /**
  58747. * hero lv.
  58748. * @member {number|Long} lv
  58749. * @memberof game.hero
  58750. * @instance
  58751. */
  58752. hero.prototype.lv = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  58753. /**
  58754. * hero equip.
  58755. * @member {Array.<string>} equip
  58756. * @memberof game.hero
  58757. * @instance
  58758. */
  58759. hero.prototype.equip = $util.emptyArray;
  58760. /**
  58761. * hero num.
  58762. * @member {number|Long} num
  58763. * @memberof game.hero
  58764. * @instance
  58765. */
  58766. hero.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  58767. /**
  58768. * Creates a new hero instance using the specified properties.
  58769. * @function create
  58770. * @memberof game.hero
  58771. * @static
  58772. * @param {game.Ihero=} [properties] Properties to set
  58773. * @returns {game.hero} hero instance
  58774. */
  58775. hero.create = function create(properties) {
  58776. return new hero(properties);
  58777. };
  58778. /**
  58779. * Encodes the specified hero message. Does not implicitly {@link game.hero.verify|verify} messages.
  58780. * @function encode
  58781. * @memberof game.hero
  58782. * @static
  58783. * @param {game.Ihero} message hero message or plain object to encode
  58784. * @param {$protobuf.Writer} [writer] Writer to encode to
  58785. * @returns {$protobuf.Writer} Writer
  58786. */
  58787. hero.encode = function encode(message, writer) {
  58788. if (!writer)
  58789. writer = $Writer.create();
  58790. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  58791. writer.uint32(/* id 1, wireType 2 =*/10).string(message.sid);
  58792. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  58793. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id);
  58794. if (message.lv != null && Object.hasOwnProperty.call(message, "lv"))
  58795. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.lv);
  58796. if (message.equip != null && message.equip.length)
  58797. for (let i = 0; i < message.equip.length; ++i)
  58798. writer.uint32(/* id 4, wireType 2 =*/34).string(message.equip[i]);
  58799. if (message.num != null && Object.hasOwnProperty.call(message, "num"))
  58800. writer.uint32(/* id 5, wireType 0 =*/40).int64(message.num);
  58801. return writer;
  58802. };
  58803. /**
  58804. * Encodes the specified hero message, length delimited. Does not implicitly {@link game.hero.verify|verify} messages.
  58805. * @function encodeDelimited
  58806. * @memberof game.hero
  58807. * @static
  58808. * @param {game.Ihero} message hero message or plain object to encode
  58809. * @param {$protobuf.Writer} [writer] Writer to encode to
  58810. * @returns {$protobuf.Writer} Writer
  58811. */
  58812. hero.encodeDelimited = function encodeDelimited(message, writer) {
  58813. return this.encode(message, writer).ldelim();
  58814. };
  58815. /**
  58816. * Decodes a hero message from the specified reader or buffer.
  58817. * @function decode
  58818. * @memberof game.hero
  58819. * @static
  58820. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  58821. * @param {number} [length] Message length if known beforehand
  58822. * @returns {game.hero} hero
  58823. * @throws {Error} If the payload is not a reader or valid buffer
  58824. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  58825. */
  58826. hero.decode = function decode(reader, length) {
  58827. if (!(reader instanceof $Reader))
  58828. reader = $Reader.create(reader);
  58829. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero();
  58830. while (reader.pos < end) {
  58831. let tag = reader.uint32();
  58832. switch (tag >>> 3) {
  58833. case 1:
  58834. message.sid = reader.string();
  58835. break;
  58836. case 2:
  58837. message.id = reader.int64();
  58838. break;
  58839. case 3:
  58840. message.lv = reader.int64();
  58841. break;
  58842. case 4:
  58843. if (!(message.equip && message.equip.length))
  58844. message.equip = [];
  58845. message.equip.push(reader.string());
  58846. break;
  58847. case 5:
  58848. message.num = reader.int64();
  58849. break;
  58850. default:
  58851. reader.skipType(tag & 7);
  58852. break;
  58853. }
  58854. }
  58855. return message;
  58856. };
  58857. /**
  58858. * Decodes a hero message from the specified reader or buffer, length delimited.
  58859. * @function decodeDelimited
  58860. * @memberof game.hero
  58861. * @static
  58862. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  58863. * @returns {game.hero} hero
  58864. * @throws {Error} If the payload is not a reader or valid buffer
  58865. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  58866. */
  58867. hero.decodeDelimited = function decodeDelimited(reader) {
  58868. if (!(reader instanceof $Reader))
  58869. reader = new $Reader(reader);
  58870. return this.decode(reader, reader.uint32());
  58871. };
  58872. /**
  58873. * Verifies a hero message.
  58874. * @function verify
  58875. * @memberof game.hero
  58876. * @static
  58877. * @param {Object.<string,*>} message Plain object to verify
  58878. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  58879. */
  58880. hero.verify = function verify(message) {
  58881. if (typeof message !== "object" || message === null)
  58882. return "object expected";
  58883. if (message.sid != null && message.hasOwnProperty("sid"))
  58884. if (!$util.isString(message.sid))
  58885. return "sid: string expected";
  58886. if (message.id != null && message.hasOwnProperty("id"))
  58887. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  58888. return "id: integer|Long expected";
  58889. if (message.lv != null && message.hasOwnProperty("lv"))
  58890. if (!$util.isInteger(message.lv) && !(message.lv && $util.isInteger(message.lv.low) && $util.isInteger(message.lv.high)))
  58891. return "lv: integer|Long expected";
  58892. if (message.equip != null && message.hasOwnProperty("equip")) {
  58893. if (!Array.isArray(message.equip))
  58894. return "equip: array expected";
  58895. for (let i = 0; i < message.equip.length; ++i)
  58896. if (!$util.isString(message.equip[i]))
  58897. return "equip: string[] expected";
  58898. }
  58899. if (message.num != null && message.hasOwnProperty("num"))
  58900. if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
  58901. return "num: integer|Long expected";
  58902. return null;
  58903. };
  58904. /**
  58905. * Creates a hero message from a plain object. Also converts values to their respective internal types.
  58906. * @function fromObject
  58907. * @memberof game.hero
  58908. * @static
  58909. * @param {Object.<string,*>} object Plain object
  58910. * @returns {game.hero} hero
  58911. */
  58912. hero.fromObject = function fromObject(object) {
  58913. if (object instanceof $root.game.hero)
  58914. return object;
  58915. let message = new $root.game.hero();
  58916. if (object.sid != null)
  58917. message.sid = String(object.sid);
  58918. if (object.id != null)
  58919. if ($util.Long)
  58920. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  58921. else if (typeof object.id === "string")
  58922. message.id = parseInt(object.id, 10);
  58923. else if (typeof object.id === "number")
  58924. message.id = object.id;
  58925. else if (typeof object.id === "object")
  58926. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  58927. if (object.lv != null)
  58928. if ($util.Long)
  58929. (message.lv = $util.Long.fromValue(object.lv)).unsigned = false;
  58930. else if (typeof object.lv === "string")
  58931. message.lv = parseInt(object.lv, 10);
  58932. else if (typeof object.lv === "number")
  58933. message.lv = object.lv;
  58934. else if (typeof object.lv === "object")
  58935. message.lv = new $util.LongBits(object.lv.low >>> 0, object.lv.high >>> 0).toNumber();
  58936. if (object.equip) {
  58937. if (!Array.isArray(object.equip))
  58938. throw TypeError(".game.hero.equip: array expected");
  58939. message.equip = [];
  58940. for (let i = 0; i < object.equip.length; ++i)
  58941. message.equip[i] = String(object.equip[i]);
  58942. }
  58943. if (object.num != null)
  58944. if ($util.Long)
  58945. (message.num = $util.Long.fromValue(object.num)).unsigned = false;
  58946. else if (typeof object.num === "string")
  58947. message.num = parseInt(object.num, 10);
  58948. else if (typeof object.num === "number")
  58949. message.num = object.num;
  58950. else if (typeof object.num === "object")
  58951. message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
  58952. return message;
  58953. };
  58954. /**
  58955. * Creates a plain object from a hero message. Also converts values to other types if specified.
  58956. * @function toObject
  58957. * @memberof game.hero
  58958. * @static
  58959. * @param {game.hero} message hero
  58960. * @param {$protobuf.IConversionOptions} [options] Conversion options
  58961. * @returns {Object.<string,*>} Plain object
  58962. */
  58963. hero.toObject = function toObject(message, options) {
  58964. if (!options)
  58965. options = {};
  58966. let object = {};
  58967. if (options.arrays || options.defaults)
  58968. object.equip = [];
  58969. if (options.defaults) {
  58970. object.sid = "";
  58971. if ($util.Long) {
  58972. let long = new $util.Long(0, 0, false);
  58973. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  58974. } else
  58975. object.id = options.longs === String ? "0" : 0;
  58976. if ($util.Long) {
  58977. let long = new $util.Long(0, 0, false);
  58978. object.lv = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  58979. } else
  58980. object.lv = options.longs === String ? "0" : 0;
  58981. if ($util.Long) {
  58982. let long = new $util.Long(0, 0, false);
  58983. object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  58984. } else
  58985. object.num = options.longs === String ? "0" : 0;
  58986. }
  58987. if (message.sid != null && message.hasOwnProperty("sid"))
  58988. object.sid = message.sid;
  58989. if (message.id != null && message.hasOwnProperty("id"))
  58990. if (typeof message.id === "number")
  58991. object.id = options.longs === String ? String(message.id) : message.id;
  58992. else
  58993. 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;
  58994. if (message.lv != null && message.hasOwnProperty("lv"))
  58995. if (typeof message.lv === "number")
  58996. object.lv = options.longs === String ? String(message.lv) : message.lv;
  58997. else
  58998. 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;
  58999. if (message.equip && message.equip.length) {
  59000. object.equip = [];
  59001. for (let j = 0; j < message.equip.length; ++j)
  59002. object.equip[j] = message.equip[j];
  59003. }
  59004. if (message.num != null && message.hasOwnProperty("num"))
  59005. if (typeof message.num === "number")
  59006. object.num = options.longs === String ? String(message.num) : message.num;
  59007. else
  59008. 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;
  59009. return object;
  59010. };
  59011. /**
  59012. * Converts this hero to JSON.
  59013. * @function toJSON
  59014. * @memberof game.hero
  59015. * @instance
  59016. * @returns {Object.<string,*>} JSON object
  59017. */
  59018. hero.prototype.toJSON = function toJSON() {
  59019. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  59020. };
  59021. return hero;
  59022. })();
  59023. game.card = (function() {
  59024. /**
  59025. * Properties of a card.
  59026. * @memberof game
  59027. * @interface Icard
  59028. * @property {string|null} [sid] card sid
  59029. * @property {number|Long|null} [id] card id
  59030. * @property {number|Long|null} [lv] card lv
  59031. */
  59032. /**
  59033. * Constructs a new card.
  59034. * @memberof game
  59035. * @classdesc Represents a card.
  59036. * @implements Icard
  59037. * @constructor
  59038. * @param {game.Icard=} [properties] Properties to set
  59039. */
  59040. function card(properties) {
  59041. if (properties)
  59042. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  59043. if (properties[keys[i]] != null)
  59044. this[keys[i]] = properties[keys[i]];
  59045. }
  59046. /**
  59047. * card sid.
  59048. * @member {string} sid
  59049. * @memberof game.card
  59050. * @instance
  59051. */
  59052. card.prototype.sid = "";
  59053. /**
  59054. * card id.
  59055. * @member {number|Long} id
  59056. * @memberof game.card
  59057. * @instance
  59058. */
  59059. card.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  59060. /**
  59061. * card lv.
  59062. * @member {number|Long} lv
  59063. * @memberof game.card
  59064. * @instance
  59065. */
  59066. card.prototype.lv = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  59067. /**
  59068. * Creates a new card instance using the specified properties.
  59069. * @function create
  59070. * @memberof game.card
  59071. * @static
  59072. * @param {game.Icard=} [properties] Properties to set
  59073. * @returns {game.card} card instance
  59074. */
  59075. card.create = function create(properties) {
  59076. return new card(properties);
  59077. };
  59078. /**
  59079. * Encodes the specified card message. Does not implicitly {@link game.card.verify|verify} messages.
  59080. * @function encode
  59081. * @memberof game.card
  59082. * @static
  59083. * @param {game.Icard} message card message or plain object to encode
  59084. * @param {$protobuf.Writer} [writer] Writer to encode to
  59085. * @returns {$protobuf.Writer} Writer
  59086. */
  59087. card.encode = function encode(message, writer) {
  59088. if (!writer)
  59089. writer = $Writer.create();
  59090. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  59091. writer.uint32(/* id 1, wireType 2 =*/10).string(message.sid);
  59092. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  59093. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id);
  59094. if (message.lv != null && Object.hasOwnProperty.call(message, "lv"))
  59095. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.lv);
  59096. return writer;
  59097. };
  59098. /**
  59099. * Encodes the specified card message, length delimited. Does not implicitly {@link game.card.verify|verify} messages.
  59100. * @function encodeDelimited
  59101. * @memberof game.card
  59102. * @static
  59103. * @param {game.Icard} message card message or plain object to encode
  59104. * @param {$protobuf.Writer} [writer] Writer to encode to
  59105. * @returns {$protobuf.Writer} Writer
  59106. */
  59107. card.encodeDelimited = function encodeDelimited(message, writer) {
  59108. return this.encode(message, writer).ldelim();
  59109. };
  59110. /**
  59111. * Decodes a card message from the specified reader or buffer.
  59112. * @function decode
  59113. * @memberof game.card
  59114. * @static
  59115. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  59116. * @param {number} [length] Message length if known beforehand
  59117. * @returns {game.card} card
  59118. * @throws {Error} If the payload is not a reader or valid buffer
  59119. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  59120. */
  59121. card.decode = function decode(reader, length) {
  59122. if (!(reader instanceof $Reader))
  59123. reader = $Reader.create(reader);
  59124. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.card();
  59125. while (reader.pos < end) {
  59126. let tag = reader.uint32();
  59127. switch (tag >>> 3) {
  59128. case 1:
  59129. message.sid = reader.string();
  59130. break;
  59131. case 2:
  59132. message.id = reader.int64();
  59133. break;
  59134. case 3:
  59135. message.lv = reader.int64();
  59136. break;
  59137. default:
  59138. reader.skipType(tag & 7);
  59139. break;
  59140. }
  59141. }
  59142. return message;
  59143. };
  59144. /**
  59145. * Decodes a card message from the specified reader or buffer, length delimited.
  59146. * @function decodeDelimited
  59147. * @memberof game.card
  59148. * @static
  59149. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  59150. * @returns {game.card} card
  59151. * @throws {Error} If the payload is not a reader or valid buffer
  59152. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  59153. */
  59154. card.decodeDelimited = function decodeDelimited(reader) {
  59155. if (!(reader instanceof $Reader))
  59156. reader = new $Reader(reader);
  59157. return this.decode(reader, reader.uint32());
  59158. };
  59159. /**
  59160. * Verifies a card message.
  59161. * @function verify
  59162. * @memberof game.card
  59163. * @static
  59164. * @param {Object.<string,*>} message Plain object to verify
  59165. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  59166. */
  59167. card.verify = function verify(message) {
  59168. if (typeof message !== "object" || message === null)
  59169. return "object expected";
  59170. if (message.sid != null && message.hasOwnProperty("sid"))
  59171. if (!$util.isString(message.sid))
  59172. return "sid: string expected";
  59173. if (message.id != null && message.hasOwnProperty("id"))
  59174. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  59175. return "id: integer|Long expected";
  59176. if (message.lv != null && message.hasOwnProperty("lv"))
  59177. if (!$util.isInteger(message.lv) && !(message.lv && $util.isInteger(message.lv.low) && $util.isInteger(message.lv.high)))
  59178. return "lv: integer|Long expected";
  59179. return null;
  59180. };
  59181. /**
  59182. * Creates a card message from a plain object. Also converts values to their respective internal types.
  59183. * @function fromObject
  59184. * @memberof game.card
  59185. * @static
  59186. * @param {Object.<string,*>} object Plain object
  59187. * @returns {game.card} card
  59188. */
  59189. card.fromObject = function fromObject(object) {
  59190. if (object instanceof $root.game.card)
  59191. return object;
  59192. let message = new $root.game.card();
  59193. if (object.sid != null)
  59194. message.sid = String(object.sid);
  59195. if (object.id != null)
  59196. if ($util.Long)
  59197. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  59198. else if (typeof object.id === "string")
  59199. message.id = parseInt(object.id, 10);
  59200. else if (typeof object.id === "number")
  59201. message.id = object.id;
  59202. else if (typeof object.id === "object")
  59203. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  59204. if (object.lv != null)
  59205. if ($util.Long)
  59206. (message.lv = $util.Long.fromValue(object.lv)).unsigned = false;
  59207. else if (typeof object.lv === "string")
  59208. message.lv = parseInt(object.lv, 10);
  59209. else if (typeof object.lv === "number")
  59210. message.lv = object.lv;
  59211. else if (typeof object.lv === "object")
  59212. message.lv = new $util.LongBits(object.lv.low >>> 0, object.lv.high >>> 0).toNumber();
  59213. return message;
  59214. };
  59215. /**
  59216. * Creates a plain object from a card message. Also converts values to other types if specified.
  59217. * @function toObject
  59218. * @memberof game.card
  59219. * @static
  59220. * @param {game.card} message card
  59221. * @param {$protobuf.IConversionOptions} [options] Conversion options
  59222. * @returns {Object.<string,*>} Plain object
  59223. */
  59224. card.toObject = function toObject(message, options) {
  59225. if (!options)
  59226. options = {};
  59227. let object = {};
  59228. if (options.defaults) {
  59229. object.sid = "";
  59230. if ($util.Long) {
  59231. let long = new $util.Long(0, 0, false);
  59232. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  59233. } else
  59234. object.id = options.longs === String ? "0" : 0;
  59235. if ($util.Long) {
  59236. let long = new $util.Long(0, 0, false);
  59237. object.lv = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  59238. } else
  59239. object.lv = options.longs === String ? "0" : 0;
  59240. }
  59241. if (message.sid != null && message.hasOwnProperty("sid"))
  59242. object.sid = message.sid;
  59243. if (message.id != null && message.hasOwnProperty("id"))
  59244. if (typeof message.id === "number")
  59245. object.id = options.longs === String ? String(message.id) : message.id;
  59246. else
  59247. 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;
  59248. if (message.lv != null && message.hasOwnProperty("lv"))
  59249. if (typeof message.lv === "number")
  59250. object.lv = options.longs === String ? String(message.lv) : message.lv;
  59251. else
  59252. 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;
  59253. return object;
  59254. };
  59255. /**
  59256. * Converts this card to JSON.
  59257. * @function toJSON
  59258. * @memberof game.card
  59259. * @instance
  59260. * @returns {Object.<string,*>} JSON object
  59261. */
  59262. card.prototype.toJSON = function toJSON() {
  59263. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  59264. };
  59265. return card;
  59266. })();
  59267. game.equip = (function() {
  59268. /**
  59269. * Properties of an equip.
  59270. * @memberof game
  59271. * @interface Iequip
  59272. * @property {string|null} [sid] equip sid
  59273. * @property {number|Long|null} [id] equip id
  59274. * @property {number|Long|null} [lv] equip lv
  59275. * @property {string|null} [hero] equip hero
  59276. */
  59277. /**
  59278. * Constructs a new equip.
  59279. * @memberof game
  59280. * @classdesc Represents an equip.
  59281. * @implements Iequip
  59282. * @constructor
  59283. * @param {game.Iequip=} [properties] Properties to set
  59284. */
  59285. function equip(properties) {
  59286. if (properties)
  59287. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  59288. if (properties[keys[i]] != null)
  59289. this[keys[i]] = properties[keys[i]];
  59290. }
  59291. /**
  59292. * equip sid.
  59293. * @member {string} sid
  59294. * @memberof game.equip
  59295. * @instance
  59296. */
  59297. equip.prototype.sid = "";
  59298. /**
  59299. * equip id.
  59300. * @member {number|Long} id
  59301. * @memberof game.equip
  59302. * @instance
  59303. */
  59304. equip.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  59305. /**
  59306. * equip lv.
  59307. * @member {number|Long} lv
  59308. * @memberof game.equip
  59309. * @instance
  59310. */
  59311. equip.prototype.lv = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  59312. /**
  59313. * equip hero.
  59314. * @member {string} hero
  59315. * @memberof game.equip
  59316. * @instance
  59317. */
  59318. equip.prototype.hero = "";
  59319. /**
  59320. * Creates a new equip instance using the specified properties.
  59321. * @function create
  59322. * @memberof game.equip
  59323. * @static
  59324. * @param {game.Iequip=} [properties] Properties to set
  59325. * @returns {game.equip} equip instance
  59326. */
  59327. equip.create = function create(properties) {
  59328. return new equip(properties);
  59329. };
  59330. /**
  59331. * Encodes the specified equip message. Does not implicitly {@link game.equip.verify|verify} messages.
  59332. * @function encode
  59333. * @memberof game.equip
  59334. * @static
  59335. * @param {game.Iequip} message equip message or plain object to encode
  59336. * @param {$protobuf.Writer} [writer] Writer to encode to
  59337. * @returns {$protobuf.Writer} Writer
  59338. */
  59339. equip.encode = function encode(message, writer) {
  59340. if (!writer)
  59341. writer = $Writer.create();
  59342. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  59343. writer.uint32(/* id 1, wireType 2 =*/10).string(message.sid);
  59344. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  59345. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id);
  59346. if (message.lv != null && Object.hasOwnProperty.call(message, "lv"))
  59347. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.lv);
  59348. if (message.hero != null && Object.hasOwnProperty.call(message, "hero"))
  59349. writer.uint32(/* id 4, wireType 2 =*/34).string(message.hero);
  59350. return writer;
  59351. };
  59352. /**
  59353. * Encodes the specified equip message, length delimited. Does not implicitly {@link game.equip.verify|verify} messages.
  59354. * @function encodeDelimited
  59355. * @memberof game.equip
  59356. * @static
  59357. * @param {game.Iequip} message equip message or plain object to encode
  59358. * @param {$protobuf.Writer} [writer] Writer to encode to
  59359. * @returns {$protobuf.Writer} Writer
  59360. */
  59361. equip.encodeDelimited = function encodeDelimited(message, writer) {
  59362. return this.encode(message, writer).ldelim();
  59363. };
  59364. /**
  59365. * Decodes an equip message from the specified reader or buffer.
  59366. * @function decode
  59367. * @memberof game.equip
  59368. * @static
  59369. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  59370. * @param {number} [length] Message length if known beforehand
  59371. * @returns {game.equip} equip
  59372. * @throws {Error} If the payload is not a reader or valid buffer
  59373. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  59374. */
  59375. equip.decode = function decode(reader, length) {
  59376. if (!(reader instanceof $Reader))
  59377. reader = $Reader.create(reader);
  59378. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.equip();
  59379. while (reader.pos < end) {
  59380. let tag = reader.uint32();
  59381. switch (tag >>> 3) {
  59382. case 1:
  59383. message.sid = reader.string();
  59384. break;
  59385. case 2:
  59386. message.id = reader.int64();
  59387. break;
  59388. case 3:
  59389. message.lv = reader.int64();
  59390. break;
  59391. case 4:
  59392. message.hero = reader.string();
  59393. break;
  59394. default:
  59395. reader.skipType(tag & 7);
  59396. break;
  59397. }
  59398. }
  59399. return message;
  59400. };
  59401. /**
  59402. * Decodes an equip message from the specified reader or buffer, length delimited.
  59403. * @function decodeDelimited
  59404. * @memberof game.equip
  59405. * @static
  59406. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  59407. * @returns {game.equip} equip
  59408. * @throws {Error} If the payload is not a reader or valid buffer
  59409. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  59410. */
  59411. equip.decodeDelimited = function decodeDelimited(reader) {
  59412. if (!(reader instanceof $Reader))
  59413. reader = new $Reader(reader);
  59414. return this.decode(reader, reader.uint32());
  59415. };
  59416. /**
  59417. * Verifies an equip message.
  59418. * @function verify
  59419. * @memberof game.equip
  59420. * @static
  59421. * @param {Object.<string,*>} message Plain object to verify
  59422. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  59423. */
  59424. equip.verify = function verify(message) {
  59425. if (typeof message !== "object" || message === null)
  59426. return "object expected";
  59427. if (message.sid != null && message.hasOwnProperty("sid"))
  59428. if (!$util.isString(message.sid))
  59429. return "sid: string expected";
  59430. if (message.id != null && message.hasOwnProperty("id"))
  59431. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  59432. return "id: integer|Long expected";
  59433. if (message.lv != null && message.hasOwnProperty("lv"))
  59434. if (!$util.isInteger(message.lv) && !(message.lv && $util.isInteger(message.lv.low) && $util.isInteger(message.lv.high)))
  59435. return "lv: integer|Long expected";
  59436. if (message.hero != null && message.hasOwnProperty("hero"))
  59437. if (!$util.isString(message.hero))
  59438. return "hero: string expected";
  59439. return null;
  59440. };
  59441. /**
  59442. * Creates an equip message from a plain object. Also converts values to their respective internal types.
  59443. * @function fromObject
  59444. * @memberof game.equip
  59445. * @static
  59446. * @param {Object.<string,*>} object Plain object
  59447. * @returns {game.equip} equip
  59448. */
  59449. equip.fromObject = function fromObject(object) {
  59450. if (object instanceof $root.game.equip)
  59451. return object;
  59452. let message = new $root.game.equip();
  59453. if (object.sid != null)
  59454. message.sid = String(object.sid);
  59455. if (object.id != null)
  59456. if ($util.Long)
  59457. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  59458. else if (typeof object.id === "string")
  59459. message.id = parseInt(object.id, 10);
  59460. else if (typeof object.id === "number")
  59461. message.id = object.id;
  59462. else if (typeof object.id === "object")
  59463. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  59464. if (object.lv != null)
  59465. if ($util.Long)
  59466. (message.lv = $util.Long.fromValue(object.lv)).unsigned = false;
  59467. else if (typeof object.lv === "string")
  59468. message.lv = parseInt(object.lv, 10);
  59469. else if (typeof object.lv === "number")
  59470. message.lv = object.lv;
  59471. else if (typeof object.lv === "object")
  59472. message.lv = new $util.LongBits(object.lv.low >>> 0, object.lv.high >>> 0).toNumber();
  59473. if (object.hero != null)
  59474. message.hero = String(object.hero);
  59475. return message;
  59476. };
  59477. /**
  59478. * Creates a plain object from an equip message. Also converts values to other types if specified.
  59479. * @function toObject
  59480. * @memberof game.equip
  59481. * @static
  59482. * @param {game.equip} message equip
  59483. * @param {$protobuf.IConversionOptions} [options] Conversion options
  59484. * @returns {Object.<string,*>} Plain object
  59485. */
  59486. equip.toObject = function toObject(message, options) {
  59487. if (!options)
  59488. options = {};
  59489. let object = {};
  59490. if (options.defaults) {
  59491. object.sid = "";
  59492. if ($util.Long) {
  59493. let long = new $util.Long(0, 0, false);
  59494. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  59495. } else
  59496. object.id = options.longs === String ? "0" : 0;
  59497. if ($util.Long) {
  59498. let long = new $util.Long(0, 0, false);
  59499. object.lv = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  59500. } else
  59501. object.lv = options.longs === String ? "0" : 0;
  59502. object.hero = "";
  59503. }
  59504. if (message.sid != null && message.hasOwnProperty("sid"))
  59505. object.sid = message.sid;
  59506. if (message.id != null && message.hasOwnProperty("id"))
  59507. if (typeof message.id === "number")
  59508. object.id = options.longs === String ? String(message.id) : message.id;
  59509. else
  59510. 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;
  59511. if (message.lv != null && message.hasOwnProperty("lv"))
  59512. if (typeof message.lv === "number")
  59513. object.lv = options.longs === String ? String(message.lv) : message.lv;
  59514. else
  59515. 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;
  59516. if (message.hero != null && message.hasOwnProperty("hero"))
  59517. object.hero = message.hero;
  59518. return object;
  59519. };
  59520. /**
  59521. * Converts this equip to JSON.
  59522. * @function toJSON
  59523. * @memberof game.equip
  59524. * @instance
  59525. * @returns {Object.<string,*>} JSON object
  59526. */
  59527. equip.prototype.toJSON = function toJSON() {
  59528. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  59529. };
  59530. return equip;
  59531. })();
  59532. game.time_box = (function() {
  59533. /**
  59534. * Properties of a time_box.
  59535. * @memberof game
  59536. * @interface Itime_box
  59537. * @property {number|Long|null} [id] time_box id
  59538. * @property {number|Long|null} [tm] time_box tm
  59539. * @property {number|Long|null} [pos] time_box pos
  59540. */
  59541. /**
  59542. * Constructs a new time_box.
  59543. * @memberof game
  59544. * @classdesc Represents a time_box.
  59545. * @implements Itime_box
  59546. * @constructor
  59547. * @param {game.Itime_box=} [properties] Properties to set
  59548. */
  59549. function time_box(properties) {
  59550. if (properties)
  59551. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  59552. if (properties[keys[i]] != null)
  59553. this[keys[i]] = properties[keys[i]];
  59554. }
  59555. /**
  59556. * time_box id.
  59557. * @member {number|Long} id
  59558. * @memberof game.time_box
  59559. * @instance
  59560. */
  59561. time_box.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  59562. /**
  59563. * time_box tm.
  59564. * @member {number|Long} tm
  59565. * @memberof game.time_box
  59566. * @instance
  59567. */
  59568. time_box.prototype.tm = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  59569. /**
  59570. * time_box pos.
  59571. * @member {number|Long} pos
  59572. * @memberof game.time_box
  59573. * @instance
  59574. */
  59575. time_box.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  59576. /**
  59577. * Creates a new time_box instance using the specified properties.
  59578. * @function create
  59579. * @memberof game.time_box
  59580. * @static
  59581. * @param {game.Itime_box=} [properties] Properties to set
  59582. * @returns {game.time_box} time_box instance
  59583. */
  59584. time_box.create = function create(properties) {
  59585. return new time_box(properties);
  59586. };
  59587. /**
  59588. * Encodes the specified time_box message. Does not implicitly {@link game.time_box.verify|verify} messages.
  59589. * @function encode
  59590. * @memberof game.time_box
  59591. * @static
  59592. * @param {game.Itime_box} message time_box message or plain object to encode
  59593. * @param {$protobuf.Writer} [writer] Writer to encode to
  59594. * @returns {$protobuf.Writer} Writer
  59595. */
  59596. time_box.encode = function encode(message, writer) {
  59597. if (!writer)
  59598. writer = $Writer.create();
  59599. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  59600. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id);
  59601. if (message.tm != null && Object.hasOwnProperty.call(message, "tm"))
  59602. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.tm);
  59603. if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
  59604. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.pos);
  59605. return writer;
  59606. };
  59607. /**
  59608. * Encodes the specified time_box message, length delimited. Does not implicitly {@link game.time_box.verify|verify} messages.
  59609. * @function encodeDelimited
  59610. * @memberof game.time_box
  59611. * @static
  59612. * @param {game.Itime_box} message time_box message or plain object to encode
  59613. * @param {$protobuf.Writer} [writer] Writer to encode to
  59614. * @returns {$protobuf.Writer} Writer
  59615. */
  59616. time_box.encodeDelimited = function encodeDelimited(message, writer) {
  59617. return this.encode(message, writer).ldelim();
  59618. };
  59619. /**
  59620. * Decodes a time_box message from the specified reader or buffer.
  59621. * @function decode
  59622. * @memberof game.time_box
  59623. * @static
  59624. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  59625. * @param {number} [length] Message length if known beforehand
  59626. * @returns {game.time_box} time_box
  59627. * @throws {Error} If the payload is not a reader or valid buffer
  59628. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  59629. */
  59630. time_box.decode = function decode(reader, length) {
  59631. if (!(reader instanceof $Reader))
  59632. reader = $Reader.create(reader);
  59633. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.time_box();
  59634. while (reader.pos < end) {
  59635. let tag = reader.uint32();
  59636. switch (tag >>> 3) {
  59637. case 2:
  59638. message.id = reader.int64();
  59639. break;
  59640. case 3:
  59641. message.tm = reader.int64();
  59642. break;
  59643. case 4:
  59644. message.pos = reader.int64();
  59645. break;
  59646. default:
  59647. reader.skipType(tag & 7);
  59648. break;
  59649. }
  59650. }
  59651. return message;
  59652. };
  59653. /**
  59654. * Decodes a time_box message from the specified reader or buffer, length delimited.
  59655. * @function decodeDelimited
  59656. * @memberof game.time_box
  59657. * @static
  59658. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  59659. * @returns {game.time_box} time_box
  59660. * @throws {Error} If the payload is not a reader or valid buffer
  59661. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  59662. */
  59663. time_box.decodeDelimited = function decodeDelimited(reader) {
  59664. if (!(reader instanceof $Reader))
  59665. reader = new $Reader(reader);
  59666. return this.decode(reader, reader.uint32());
  59667. };
  59668. /**
  59669. * Verifies a time_box message.
  59670. * @function verify
  59671. * @memberof game.time_box
  59672. * @static
  59673. * @param {Object.<string,*>} message Plain object to verify
  59674. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  59675. */
  59676. time_box.verify = function verify(message) {
  59677. if (typeof message !== "object" || message === null)
  59678. return "object expected";
  59679. if (message.id != null && message.hasOwnProperty("id"))
  59680. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  59681. return "id: integer|Long expected";
  59682. if (message.tm != null && message.hasOwnProperty("tm"))
  59683. if (!$util.isInteger(message.tm) && !(message.tm && $util.isInteger(message.tm.low) && $util.isInteger(message.tm.high)))
  59684. return "tm: integer|Long expected";
  59685. if (message.pos != null && message.hasOwnProperty("pos"))
  59686. if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
  59687. return "pos: integer|Long expected";
  59688. return null;
  59689. };
  59690. /**
  59691. * Creates a time_box message from a plain object. Also converts values to their respective internal types.
  59692. * @function fromObject
  59693. * @memberof game.time_box
  59694. * @static
  59695. * @param {Object.<string,*>} object Plain object
  59696. * @returns {game.time_box} time_box
  59697. */
  59698. time_box.fromObject = function fromObject(object) {
  59699. if (object instanceof $root.game.time_box)
  59700. return object;
  59701. let message = new $root.game.time_box();
  59702. if (object.id != null)
  59703. if ($util.Long)
  59704. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  59705. else if (typeof object.id === "string")
  59706. message.id = parseInt(object.id, 10);
  59707. else if (typeof object.id === "number")
  59708. message.id = object.id;
  59709. else if (typeof object.id === "object")
  59710. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  59711. if (object.tm != null)
  59712. if ($util.Long)
  59713. (message.tm = $util.Long.fromValue(object.tm)).unsigned = false;
  59714. else if (typeof object.tm === "string")
  59715. message.tm = parseInt(object.tm, 10);
  59716. else if (typeof object.tm === "number")
  59717. message.tm = object.tm;
  59718. else if (typeof object.tm === "object")
  59719. message.tm = new $util.LongBits(object.tm.low >>> 0, object.tm.high >>> 0).toNumber();
  59720. if (object.pos != null)
  59721. if ($util.Long)
  59722. (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
  59723. else if (typeof object.pos === "string")
  59724. message.pos = parseInt(object.pos, 10);
  59725. else if (typeof object.pos === "number")
  59726. message.pos = object.pos;
  59727. else if (typeof object.pos === "object")
  59728. message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
  59729. return message;
  59730. };
  59731. /**
  59732. * Creates a plain object from a time_box message. Also converts values to other types if specified.
  59733. * @function toObject
  59734. * @memberof game.time_box
  59735. * @static
  59736. * @param {game.time_box} message time_box
  59737. * @param {$protobuf.IConversionOptions} [options] Conversion options
  59738. * @returns {Object.<string,*>} Plain object
  59739. */
  59740. time_box.toObject = function toObject(message, options) {
  59741. if (!options)
  59742. options = {};
  59743. let object = {};
  59744. if (options.defaults) {
  59745. if ($util.Long) {
  59746. let long = new $util.Long(0, 0, false);
  59747. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  59748. } else
  59749. object.id = options.longs === String ? "0" : 0;
  59750. if ($util.Long) {
  59751. let long = new $util.Long(0, 0, false);
  59752. object.tm = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  59753. } else
  59754. object.tm = options.longs === String ? "0" : 0;
  59755. if ($util.Long) {
  59756. let long = new $util.Long(0, 0, false);
  59757. object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  59758. } else
  59759. object.pos = options.longs === String ? "0" : 0;
  59760. }
  59761. if (message.id != null && message.hasOwnProperty("id"))
  59762. if (typeof message.id === "number")
  59763. object.id = options.longs === String ? String(message.id) : message.id;
  59764. else
  59765. 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;
  59766. if (message.tm != null && message.hasOwnProperty("tm"))
  59767. if (typeof message.tm === "number")
  59768. object.tm = options.longs === String ? String(message.tm) : message.tm;
  59769. else
  59770. object.tm = options.longs === String ? $util.Long.prototype.toString.call(message.tm) : options.longs === Number ? new $util.LongBits(message.tm.low >>> 0, message.tm.high >>> 0).toNumber() : message.tm;
  59771. if (message.pos != null && message.hasOwnProperty("pos"))
  59772. if (typeof message.pos === "number")
  59773. object.pos = options.longs === String ? String(message.pos) : message.pos;
  59774. else
  59775. 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;
  59776. return object;
  59777. };
  59778. /**
  59779. * Converts this time_box to JSON.
  59780. * @function toJSON
  59781. * @memberof game.time_box
  59782. * @instance
  59783. * @returns {Object.<string,*>} JSON object
  59784. */
  59785. time_box.prototype.toJSON = function toJSON() {
  59786. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  59787. };
  59788. return time_box;
  59789. })();
  59790. game.reward = (function() {
  59791. /**
  59792. * Properties of a reward.
  59793. * @memberof game
  59794. * @interface Ireward
  59795. * @property {Array.<game.Iid_num>|null} [currency] reward currency
  59796. * @property {Array.<game.Ihero>|null} [heroes] reward heroes
  59797. * @property {Array.<game.Icard>|null} [skillCard] reward skillCard
  59798. * @property {Array.<game.Iid_num>|null} [debris] reward debris
  59799. * @property {Array.<game.Iequip>|null} [equip] reward equip
  59800. * @property {Array.<game.Itime_box>|null} [box] reward box
  59801. */
  59802. /**
  59803. * Constructs a new reward.
  59804. * @memberof game
  59805. * @classdesc Represents a reward.
  59806. * @implements Ireward
  59807. * @constructor
  59808. * @param {game.Ireward=} [properties] Properties to set
  59809. */
  59810. function reward(properties) {
  59811. this.currency = [];
  59812. this.heroes = [];
  59813. this.skillCard = [];
  59814. this.debris = [];
  59815. this.equip = [];
  59816. this.box = [];
  59817. if (properties)
  59818. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  59819. if (properties[keys[i]] != null)
  59820. this[keys[i]] = properties[keys[i]];
  59821. }
  59822. /**
  59823. * reward currency.
  59824. * @member {Array.<game.Iid_num>} currency
  59825. * @memberof game.reward
  59826. * @instance
  59827. */
  59828. reward.prototype.currency = $util.emptyArray;
  59829. /**
  59830. * reward heroes.
  59831. * @member {Array.<game.Ihero>} heroes
  59832. * @memberof game.reward
  59833. * @instance
  59834. */
  59835. reward.prototype.heroes = $util.emptyArray;
  59836. /**
  59837. * reward skillCard.
  59838. * @member {Array.<game.Icard>} skillCard
  59839. * @memberof game.reward
  59840. * @instance
  59841. */
  59842. reward.prototype.skillCard = $util.emptyArray;
  59843. /**
  59844. * reward debris.
  59845. * @member {Array.<game.Iid_num>} debris
  59846. * @memberof game.reward
  59847. * @instance
  59848. */
  59849. reward.prototype.debris = $util.emptyArray;
  59850. /**
  59851. * reward equip.
  59852. * @member {Array.<game.Iequip>} equip
  59853. * @memberof game.reward
  59854. * @instance
  59855. */
  59856. reward.prototype.equip = $util.emptyArray;
  59857. /**
  59858. * reward box.
  59859. * @member {Array.<game.Itime_box>} box
  59860. * @memberof game.reward
  59861. * @instance
  59862. */
  59863. reward.prototype.box = $util.emptyArray;
  59864. /**
  59865. * Creates a new reward instance using the specified properties.
  59866. * @function create
  59867. * @memberof game.reward
  59868. * @static
  59869. * @param {game.Ireward=} [properties] Properties to set
  59870. * @returns {game.reward} reward instance
  59871. */
  59872. reward.create = function create(properties) {
  59873. return new reward(properties);
  59874. };
  59875. /**
  59876. * Encodes the specified reward message. Does not implicitly {@link game.reward.verify|verify} messages.
  59877. * @function encode
  59878. * @memberof game.reward
  59879. * @static
  59880. * @param {game.Ireward} message reward message or plain object to encode
  59881. * @param {$protobuf.Writer} [writer] Writer to encode to
  59882. * @returns {$protobuf.Writer} Writer
  59883. */
  59884. reward.encode = function encode(message, writer) {
  59885. if (!writer)
  59886. writer = $Writer.create();
  59887. if (message.currency != null && message.currency.length)
  59888. for (let i = 0; i < message.currency.length; ++i)
  59889. $root.game.id_num.encode(message.currency[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
  59890. if (message.heroes != null && message.heroes.length)
  59891. for (let i = 0; i < message.heroes.length; ++i)
  59892. $root.game.hero.encode(message.heroes[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  59893. if (message.skillCard != null && message.skillCard.length)
  59894. for (let i = 0; i < message.skillCard.length; ++i)
  59895. $root.game.card.encode(message.skillCard[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
  59896. if (message.debris != null && message.debris.length)
  59897. for (let i = 0; i < message.debris.length; ++i)
  59898. $root.game.id_num.encode(message.debris[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
  59899. if (message.equip != null && message.equip.length)
  59900. for (let i = 0; i < message.equip.length; ++i)
  59901. $root.game.equip.encode(message.equip[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
  59902. if (message.box != null && message.box.length)
  59903. for (let i = 0; i < message.box.length; ++i)
  59904. $root.game.time_box.encode(message.box[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
  59905. return writer;
  59906. };
  59907. /**
  59908. * Encodes the specified reward message, length delimited. Does not implicitly {@link game.reward.verify|verify} messages.
  59909. * @function encodeDelimited
  59910. * @memberof game.reward
  59911. * @static
  59912. * @param {game.Ireward} message reward message or plain object to encode
  59913. * @param {$protobuf.Writer} [writer] Writer to encode to
  59914. * @returns {$protobuf.Writer} Writer
  59915. */
  59916. reward.encodeDelimited = function encodeDelimited(message, writer) {
  59917. return this.encode(message, writer).ldelim();
  59918. };
  59919. /**
  59920. * Decodes a reward message from the specified reader or buffer.
  59921. * @function decode
  59922. * @memberof game.reward
  59923. * @static
  59924. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  59925. * @param {number} [length] Message length if known beforehand
  59926. * @returns {game.reward} reward
  59927. * @throws {Error} If the payload is not a reader or valid buffer
  59928. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  59929. */
  59930. reward.decode = function decode(reader, length) {
  59931. if (!(reader instanceof $Reader))
  59932. reader = $Reader.create(reader);
  59933. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.reward();
  59934. while (reader.pos < end) {
  59935. let tag = reader.uint32();
  59936. switch (tag >>> 3) {
  59937. case 1:
  59938. if (!(message.currency && message.currency.length))
  59939. message.currency = [];
  59940. message.currency.push($root.game.id_num.decode(reader, reader.uint32()));
  59941. break;
  59942. case 2:
  59943. if (!(message.heroes && message.heroes.length))
  59944. message.heroes = [];
  59945. message.heroes.push($root.game.hero.decode(reader, reader.uint32()));
  59946. break;
  59947. case 3:
  59948. if (!(message.skillCard && message.skillCard.length))
  59949. message.skillCard = [];
  59950. message.skillCard.push($root.game.card.decode(reader, reader.uint32()));
  59951. break;
  59952. case 4:
  59953. if (!(message.debris && message.debris.length))
  59954. message.debris = [];
  59955. message.debris.push($root.game.id_num.decode(reader, reader.uint32()));
  59956. break;
  59957. case 5:
  59958. if (!(message.equip && message.equip.length))
  59959. message.equip = [];
  59960. message.equip.push($root.game.equip.decode(reader, reader.uint32()));
  59961. break;
  59962. case 6:
  59963. if (!(message.box && message.box.length))
  59964. message.box = [];
  59965. message.box.push($root.game.time_box.decode(reader, reader.uint32()));
  59966. break;
  59967. default:
  59968. reader.skipType(tag & 7);
  59969. break;
  59970. }
  59971. }
  59972. return message;
  59973. };
  59974. /**
  59975. * Decodes a reward message from the specified reader or buffer, length delimited.
  59976. * @function decodeDelimited
  59977. * @memberof game.reward
  59978. * @static
  59979. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  59980. * @returns {game.reward} reward
  59981. * @throws {Error} If the payload is not a reader or valid buffer
  59982. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  59983. */
  59984. reward.decodeDelimited = function decodeDelimited(reader) {
  59985. if (!(reader instanceof $Reader))
  59986. reader = new $Reader(reader);
  59987. return this.decode(reader, reader.uint32());
  59988. };
  59989. /**
  59990. * Verifies a reward message.
  59991. * @function verify
  59992. * @memberof game.reward
  59993. * @static
  59994. * @param {Object.<string,*>} message Plain object to verify
  59995. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  59996. */
  59997. reward.verify = function verify(message) {
  59998. if (typeof message !== "object" || message === null)
  59999. return "object expected";
  60000. if (message.currency != null && message.hasOwnProperty("currency")) {
  60001. if (!Array.isArray(message.currency))
  60002. return "currency: array expected";
  60003. for (let i = 0; i < message.currency.length; ++i) {
  60004. let error = $root.game.id_num.verify(message.currency[i]);
  60005. if (error)
  60006. return "currency." + error;
  60007. }
  60008. }
  60009. if (message.heroes != null && message.hasOwnProperty("heroes")) {
  60010. if (!Array.isArray(message.heroes))
  60011. return "heroes: array expected";
  60012. for (let i = 0; i < message.heroes.length; ++i) {
  60013. let error = $root.game.hero.verify(message.heroes[i]);
  60014. if (error)
  60015. return "heroes." + error;
  60016. }
  60017. }
  60018. if (message.skillCard != null && message.hasOwnProperty("skillCard")) {
  60019. if (!Array.isArray(message.skillCard))
  60020. return "skillCard: array expected";
  60021. for (let i = 0; i < message.skillCard.length; ++i) {
  60022. let error = $root.game.card.verify(message.skillCard[i]);
  60023. if (error)
  60024. return "skillCard." + error;
  60025. }
  60026. }
  60027. if (message.debris != null && message.hasOwnProperty("debris")) {
  60028. if (!Array.isArray(message.debris))
  60029. return "debris: array expected";
  60030. for (let i = 0; i < message.debris.length; ++i) {
  60031. let error = $root.game.id_num.verify(message.debris[i]);
  60032. if (error)
  60033. return "debris." + error;
  60034. }
  60035. }
  60036. if (message.equip != null && message.hasOwnProperty("equip")) {
  60037. if (!Array.isArray(message.equip))
  60038. return "equip: array expected";
  60039. for (let i = 0; i < message.equip.length; ++i) {
  60040. let error = $root.game.equip.verify(message.equip[i]);
  60041. if (error)
  60042. return "equip." + error;
  60043. }
  60044. }
  60045. if (message.box != null && message.hasOwnProperty("box")) {
  60046. if (!Array.isArray(message.box))
  60047. return "box: array expected";
  60048. for (let i = 0; i < message.box.length; ++i) {
  60049. let error = $root.game.time_box.verify(message.box[i]);
  60050. if (error)
  60051. return "box." + error;
  60052. }
  60053. }
  60054. return null;
  60055. };
  60056. /**
  60057. * Creates a reward message from a plain object. Also converts values to their respective internal types.
  60058. * @function fromObject
  60059. * @memberof game.reward
  60060. * @static
  60061. * @param {Object.<string,*>} object Plain object
  60062. * @returns {game.reward} reward
  60063. */
  60064. reward.fromObject = function fromObject(object) {
  60065. if (object instanceof $root.game.reward)
  60066. return object;
  60067. let message = new $root.game.reward();
  60068. if (object.currency) {
  60069. if (!Array.isArray(object.currency))
  60070. throw TypeError(".game.reward.currency: array expected");
  60071. message.currency = [];
  60072. for (let i = 0; i < object.currency.length; ++i) {
  60073. if (typeof object.currency[i] !== "object")
  60074. throw TypeError(".game.reward.currency: object expected");
  60075. message.currency[i] = $root.game.id_num.fromObject(object.currency[i]);
  60076. }
  60077. }
  60078. if (object.heroes) {
  60079. if (!Array.isArray(object.heroes))
  60080. throw TypeError(".game.reward.heroes: array expected");
  60081. message.heroes = [];
  60082. for (let i = 0; i < object.heroes.length; ++i) {
  60083. if (typeof object.heroes[i] !== "object")
  60084. throw TypeError(".game.reward.heroes: object expected");
  60085. message.heroes[i] = $root.game.hero.fromObject(object.heroes[i]);
  60086. }
  60087. }
  60088. if (object.skillCard) {
  60089. if (!Array.isArray(object.skillCard))
  60090. throw TypeError(".game.reward.skillCard: array expected");
  60091. message.skillCard = [];
  60092. for (let i = 0; i < object.skillCard.length; ++i) {
  60093. if (typeof object.skillCard[i] !== "object")
  60094. throw TypeError(".game.reward.skillCard: object expected");
  60095. message.skillCard[i] = $root.game.card.fromObject(object.skillCard[i]);
  60096. }
  60097. }
  60098. if (object.debris) {
  60099. if (!Array.isArray(object.debris))
  60100. throw TypeError(".game.reward.debris: array expected");
  60101. message.debris = [];
  60102. for (let i = 0; i < object.debris.length; ++i) {
  60103. if (typeof object.debris[i] !== "object")
  60104. throw TypeError(".game.reward.debris: object expected");
  60105. message.debris[i] = $root.game.id_num.fromObject(object.debris[i]);
  60106. }
  60107. }
  60108. if (object.equip) {
  60109. if (!Array.isArray(object.equip))
  60110. throw TypeError(".game.reward.equip: array expected");
  60111. message.equip = [];
  60112. for (let i = 0; i < object.equip.length; ++i) {
  60113. if (typeof object.equip[i] !== "object")
  60114. throw TypeError(".game.reward.equip: object expected");
  60115. message.equip[i] = $root.game.equip.fromObject(object.equip[i]);
  60116. }
  60117. }
  60118. if (object.box) {
  60119. if (!Array.isArray(object.box))
  60120. throw TypeError(".game.reward.box: array expected");
  60121. message.box = [];
  60122. for (let i = 0; i < object.box.length; ++i) {
  60123. if (typeof object.box[i] !== "object")
  60124. throw TypeError(".game.reward.box: object expected");
  60125. message.box[i] = $root.game.time_box.fromObject(object.box[i]);
  60126. }
  60127. }
  60128. return message;
  60129. };
  60130. /**
  60131. * Creates a plain object from a reward message. Also converts values to other types if specified.
  60132. * @function toObject
  60133. * @memberof game.reward
  60134. * @static
  60135. * @param {game.reward} message reward
  60136. * @param {$protobuf.IConversionOptions} [options] Conversion options
  60137. * @returns {Object.<string,*>} Plain object
  60138. */
  60139. reward.toObject = function toObject(message, options) {
  60140. if (!options)
  60141. options = {};
  60142. let object = {};
  60143. if (options.arrays || options.defaults) {
  60144. object.currency = [];
  60145. object.heroes = [];
  60146. object.skillCard = [];
  60147. object.debris = [];
  60148. object.equip = [];
  60149. object.box = [];
  60150. }
  60151. if (message.currency && message.currency.length) {
  60152. object.currency = [];
  60153. for (let j = 0; j < message.currency.length; ++j)
  60154. object.currency[j] = $root.game.id_num.toObject(message.currency[j], options);
  60155. }
  60156. if (message.heroes && message.heroes.length) {
  60157. object.heroes = [];
  60158. for (let j = 0; j < message.heroes.length; ++j)
  60159. object.heroes[j] = $root.game.hero.toObject(message.heroes[j], options);
  60160. }
  60161. if (message.skillCard && message.skillCard.length) {
  60162. object.skillCard = [];
  60163. for (let j = 0; j < message.skillCard.length; ++j)
  60164. object.skillCard[j] = $root.game.card.toObject(message.skillCard[j], options);
  60165. }
  60166. if (message.debris && message.debris.length) {
  60167. object.debris = [];
  60168. for (let j = 0; j < message.debris.length; ++j)
  60169. object.debris[j] = $root.game.id_num.toObject(message.debris[j], options);
  60170. }
  60171. if (message.equip && message.equip.length) {
  60172. object.equip = [];
  60173. for (let j = 0; j < message.equip.length; ++j)
  60174. object.equip[j] = $root.game.equip.toObject(message.equip[j], options);
  60175. }
  60176. if (message.box && message.box.length) {
  60177. object.box = [];
  60178. for (let j = 0; j < message.box.length; ++j)
  60179. object.box[j] = $root.game.time_box.toObject(message.box[j], options);
  60180. }
  60181. return object;
  60182. };
  60183. /**
  60184. * Converts this reward to JSON.
  60185. * @function toJSON
  60186. * @memberof game.reward
  60187. * @instance
  60188. * @returns {Object.<string,*>} JSON object
  60189. */
  60190. reward.prototype.toJSON = function toJSON() {
  60191. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  60192. };
  60193. return reward;
  60194. })();
  60195. game.building = (function() {
  60196. /**
  60197. * Properties of a building.
  60198. * @memberof game
  60199. * @interface Ibuilding
  60200. * @property {number|Long|null} [id] building id
  60201. * @property {number|Long|null} [level] building level
  60202. * @property {number|Long|null} [time] building time
  60203. * @property {Array.<string>|null} [list] building list
  60204. * @property {boolean|null} [autoExploreOption] building autoExploreOption
  60205. * @property {number|Long|null} [exploreTime] building exploreTime
  60206. * @property {number|Long|null} [exploreTimes] building exploreTimes
  60207. * @property {number|Long|null} [autoExploreTimes] building autoExploreTimes
  60208. */
  60209. /**
  60210. * Constructs a new building.
  60211. * @memberof game
  60212. * @classdesc Represents a building.
  60213. * @implements Ibuilding
  60214. * @constructor
  60215. * @param {game.Ibuilding=} [properties] Properties to set
  60216. */
  60217. function building(properties) {
  60218. this.list = [];
  60219. if (properties)
  60220. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  60221. if (properties[keys[i]] != null)
  60222. this[keys[i]] = properties[keys[i]];
  60223. }
  60224. /**
  60225. * building id.
  60226. * @member {number|Long} id
  60227. * @memberof game.building
  60228. * @instance
  60229. */
  60230. building.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  60231. /**
  60232. * building level.
  60233. * @member {number|Long} level
  60234. * @memberof game.building
  60235. * @instance
  60236. */
  60237. building.prototype.level = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  60238. /**
  60239. * building time.
  60240. * @member {number|Long} time
  60241. * @memberof game.building
  60242. * @instance
  60243. */
  60244. building.prototype.time = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  60245. /**
  60246. * building list.
  60247. * @member {Array.<string>} list
  60248. * @memberof game.building
  60249. * @instance
  60250. */
  60251. building.prototype.list = $util.emptyArray;
  60252. /**
  60253. * building autoExploreOption.
  60254. * @member {boolean} autoExploreOption
  60255. * @memberof game.building
  60256. * @instance
  60257. */
  60258. building.prototype.autoExploreOption = false;
  60259. /**
  60260. * building exploreTime.
  60261. * @member {number|Long} exploreTime
  60262. * @memberof game.building
  60263. * @instance
  60264. */
  60265. building.prototype.exploreTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  60266. /**
  60267. * building exploreTimes.
  60268. * @member {number|Long} exploreTimes
  60269. * @memberof game.building
  60270. * @instance
  60271. */
  60272. building.prototype.exploreTimes = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  60273. /**
  60274. * building autoExploreTimes.
  60275. * @member {number|Long} autoExploreTimes
  60276. * @memberof game.building
  60277. * @instance
  60278. */
  60279. building.prototype.autoExploreTimes = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  60280. /**
  60281. * Creates a new building instance using the specified properties.
  60282. * @function create
  60283. * @memberof game.building
  60284. * @static
  60285. * @param {game.Ibuilding=} [properties] Properties to set
  60286. * @returns {game.building} building instance
  60287. */
  60288. building.create = function create(properties) {
  60289. return new building(properties);
  60290. };
  60291. /**
  60292. * Encodes the specified building message. Does not implicitly {@link game.building.verify|verify} messages.
  60293. * @function encode
  60294. * @memberof game.building
  60295. * @static
  60296. * @param {game.Ibuilding} message building message or plain object to encode
  60297. * @param {$protobuf.Writer} [writer] Writer to encode to
  60298. * @returns {$protobuf.Writer} Writer
  60299. */
  60300. building.encode = function encode(message, writer) {
  60301. if (!writer)
  60302. writer = $Writer.create();
  60303. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  60304. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  60305. if (message.level != null && Object.hasOwnProperty.call(message, "level"))
  60306. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.level);
  60307. if (message.time != null && Object.hasOwnProperty.call(message, "time"))
  60308. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.time);
  60309. if (message.list != null && message.list.length)
  60310. for (let i = 0; i < message.list.length; ++i)
  60311. writer.uint32(/* id 4, wireType 2 =*/34).string(message.list[i]);
  60312. if (message.autoExploreOption != null && Object.hasOwnProperty.call(message, "autoExploreOption"))
  60313. writer.uint32(/* id 5, wireType 0 =*/40).bool(message.autoExploreOption);
  60314. if (message.exploreTime != null && Object.hasOwnProperty.call(message, "exploreTime"))
  60315. writer.uint32(/* id 6, wireType 0 =*/48).int64(message.exploreTime);
  60316. if (message.exploreTimes != null && Object.hasOwnProperty.call(message, "exploreTimes"))
  60317. writer.uint32(/* id 7, wireType 0 =*/56).int64(message.exploreTimes);
  60318. if (message.autoExploreTimes != null && Object.hasOwnProperty.call(message, "autoExploreTimes"))
  60319. writer.uint32(/* id 8, wireType 0 =*/64).int64(message.autoExploreTimes);
  60320. return writer;
  60321. };
  60322. /**
  60323. * Encodes the specified building message, length delimited. Does not implicitly {@link game.building.verify|verify} messages.
  60324. * @function encodeDelimited
  60325. * @memberof game.building
  60326. * @static
  60327. * @param {game.Ibuilding} message building message or plain object to encode
  60328. * @param {$protobuf.Writer} [writer] Writer to encode to
  60329. * @returns {$protobuf.Writer} Writer
  60330. */
  60331. building.encodeDelimited = function encodeDelimited(message, writer) {
  60332. return this.encode(message, writer).ldelim();
  60333. };
  60334. /**
  60335. * Decodes a building message from the specified reader or buffer.
  60336. * @function decode
  60337. * @memberof game.building
  60338. * @static
  60339. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  60340. * @param {number} [length] Message length if known beforehand
  60341. * @returns {game.building} building
  60342. * @throws {Error} If the payload is not a reader or valid buffer
  60343. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  60344. */
  60345. building.decode = function decode(reader, length) {
  60346. if (!(reader instanceof $Reader))
  60347. reader = $Reader.create(reader);
  60348. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.building();
  60349. while (reader.pos < end) {
  60350. let tag = reader.uint32();
  60351. switch (tag >>> 3) {
  60352. case 1:
  60353. message.id = reader.int64();
  60354. break;
  60355. case 2:
  60356. message.level = reader.int64();
  60357. break;
  60358. case 3:
  60359. message.time = reader.int64();
  60360. break;
  60361. case 4:
  60362. if (!(message.list && message.list.length))
  60363. message.list = [];
  60364. message.list.push(reader.string());
  60365. break;
  60366. case 5:
  60367. message.autoExploreOption = reader.bool();
  60368. break;
  60369. case 6:
  60370. message.exploreTime = reader.int64();
  60371. break;
  60372. case 7:
  60373. message.exploreTimes = reader.int64();
  60374. break;
  60375. case 8:
  60376. message.autoExploreTimes = reader.int64();
  60377. break;
  60378. default:
  60379. reader.skipType(tag & 7);
  60380. break;
  60381. }
  60382. }
  60383. return message;
  60384. };
  60385. /**
  60386. * Decodes a building message from the specified reader or buffer, length delimited.
  60387. * @function decodeDelimited
  60388. * @memberof game.building
  60389. * @static
  60390. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  60391. * @returns {game.building} building
  60392. * @throws {Error} If the payload is not a reader or valid buffer
  60393. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  60394. */
  60395. building.decodeDelimited = function decodeDelimited(reader) {
  60396. if (!(reader instanceof $Reader))
  60397. reader = new $Reader(reader);
  60398. return this.decode(reader, reader.uint32());
  60399. };
  60400. /**
  60401. * Verifies a building message.
  60402. * @function verify
  60403. * @memberof game.building
  60404. * @static
  60405. * @param {Object.<string,*>} message Plain object to verify
  60406. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  60407. */
  60408. building.verify = function verify(message) {
  60409. if (typeof message !== "object" || message === null)
  60410. return "object expected";
  60411. if (message.id != null && message.hasOwnProperty("id"))
  60412. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  60413. return "id: integer|Long expected";
  60414. if (message.level != null && message.hasOwnProperty("level"))
  60415. if (!$util.isInteger(message.level) && !(message.level && $util.isInteger(message.level.low) && $util.isInteger(message.level.high)))
  60416. return "level: integer|Long expected";
  60417. if (message.time != null && message.hasOwnProperty("time"))
  60418. if (!$util.isInteger(message.time) && !(message.time && $util.isInteger(message.time.low) && $util.isInteger(message.time.high)))
  60419. return "time: integer|Long expected";
  60420. if (message.list != null && message.hasOwnProperty("list")) {
  60421. if (!Array.isArray(message.list))
  60422. return "list: array expected";
  60423. for (let i = 0; i < message.list.length; ++i)
  60424. if (!$util.isString(message.list[i]))
  60425. return "list: string[] expected";
  60426. }
  60427. if (message.autoExploreOption != null && message.hasOwnProperty("autoExploreOption"))
  60428. if (typeof message.autoExploreOption !== "boolean")
  60429. return "autoExploreOption: boolean expected";
  60430. if (message.exploreTime != null && message.hasOwnProperty("exploreTime"))
  60431. if (!$util.isInteger(message.exploreTime) && !(message.exploreTime && $util.isInteger(message.exploreTime.low) && $util.isInteger(message.exploreTime.high)))
  60432. return "exploreTime: integer|Long expected";
  60433. if (message.exploreTimes != null && message.hasOwnProperty("exploreTimes"))
  60434. if (!$util.isInteger(message.exploreTimes) && !(message.exploreTimes && $util.isInteger(message.exploreTimes.low) && $util.isInteger(message.exploreTimes.high)))
  60435. return "exploreTimes: integer|Long expected";
  60436. if (message.autoExploreTimes != null && message.hasOwnProperty("autoExploreTimes"))
  60437. if (!$util.isInteger(message.autoExploreTimes) && !(message.autoExploreTimes && $util.isInteger(message.autoExploreTimes.low) && $util.isInteger(message.autoExploreTimes.high)))
  60438. return "autoExploreTimes: integer|Long expected";
  60439. return null;
  60440. };
  60441. /**
  60442. * Creates a building message from a plain object. Also converts values to their respective internal types.
  60443. * @function fromObject
  60444. * @memberof game.building
  60445. * @static
  60446. * @param {Object.<string,*>} object Plain object
  60447. * @returns {game.building} building
  60448. */
  60449. building.fromObject = function fromObject(object) {
  60450. if (object instanceof $root.game.building)
  60451. return object;
  60452. let message = new $root.game.building();
  60453. if (object.id != null)
  60454. if ($util.Long)
  60455. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  60456. else if (typeof object.id === "string")
  60457. message.id = parseInt(object.id, 10);
  60458. else if (typeof object.id === "number")
  60459. message.id = object.id;
  60460. else if (typeof object.id === "object")
  60461. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  60462. if (object.level != null)
  60463. if ($util.Long)
  60464. (message.level = $util.Long.fromValue(object.level)).unsigned = false;
  60465. else if (typeof object.level === "string")
  60466. message.level = parseInt(object.level, 10);
  60467. else if (typeof object.level === "number")
  60468. message.level = object.level;
  60469. else if (typeof object.level === "object")
  60470. message.level = new $util.LongBits(object.level.low >>> 0, object.level.high >>> 0).toNumber();
  60471. if (object.time != null)
  60472. if ($util.Long)
  60473. (message.time = $util.Long.fromValue(object.time)).unsigned = false;
  60474. else if (typeof object.time === "string")
  60475. message.time = parseInt(object.time, 10);
  60476. else if (typeof object.time === "number")
  60477. message.time = object.time;
  60478. else if (typeof object.time === "object")
  60479. message.time = new $util.LongBits(object.time.low >>> 0, object.time.high >>> 0).toNumber();
  60480. if (object.list) {
  60481. if (!Array.isArray(object.list))
  60482. throw TypeError(".game.building.list: array expected");
  60483. message.list = [];
  60484. for (let i = 0; i < object.list.length; ++i)
  60485. message.list[i] = String(object.list[i]);
  60486. }
  60487. if (object.autoExploreOption != null)
  60488. message.autoExploreOption = Boolean(object.autoExploreOption);
  60489. if (object.exploreTime != null)
  60490. if ($util.Long)
  60491. (message.exploreTime = $util.Long.fromValue(object.exploreTime)).unsigned = false;
  60492. else if (typeof object.exploreTime === "string")
  60493. message.exploreTime = parseInt(object.exploreTime, 10);
  60494. else if (typeof object.exploreTime === "number")
  60495. message.exploreTime = object.exploreTime;
  60496. else if (typeof object.exploreTime === "object")
  60497. message.exploreTime = new $util.LongBits(object.exploreTime.low >>> 0, object.exploreTime.high >>> 0).toNumber();
  60498. if (object.exploreTimes != null)
  60499. if ($util.Long)
  60500. (message.exploreTimes = $util.Long.fromValue(object.exploreTimes)).unsigned = false;
  60501. else if (typeof object.exploreTimes === "string")
  60502. message.exploreTimes = parseInt(object.exploreTimes, 10);
  60503. else if (typeof object.exploreTimes === "number")
  60504. message.exploreTimes = object.exploreTimes;
  60505. else if (typeof object.exploreTimes === "object")
  60506. message.exploreTimes = new $util.LongBits(object.exploreTimes.low >>> 0, object.exploreTimes.high >>> 0).toNumber();
  60507. if (object.autoExploreTimes != null)
  60508. if ($util.Long)
  60509. (message.autoExploreTimes = $util.Long.fromValue(object.autoExploreTimes)).unsigned = false;
  60510. else if (typeof object.autoExploreTimes === "string")
  60511. message.autoExploreTimes = parseInt(object.autoExploreTimes, 10);
  60512. else if (typeof object.autoExploreTimes === "number")
  60513. message.autoExploreTimes = object.autoExploreTimes;
  60514. else if (typeof object.autoExploreTimes === "object")
  60515. message.autoExploreTimes = new $util.LongBits(object.autoExploreTimes.low >>> 0, object.autoExploreTimes.high >>> 0).toNumber();
  60516. return message;
  60517. };
  60518. /**
  60519. * Creates a plain object from a building message. Also converts values to other types if specified.
  60520. * @function toObject
  60521. * @memberof game.building
  60522. * @static
  60523. * @param {game.building} message building
  60524. * @param {$protobuf.IConversionOptions} [options] Conversion options
  60525. * @returns {Object.<string,*>} Plain object
  60526. */
  60527. building.toObject = function toObject(message, options) {
  60528. if (!options)
  60529. options = {};
  60530. let object = {};
  60531. if (options.arrays || options.defaults)
  60532. object.list = [];
  60533. if (options.defaults) {
  60534. if ($util.Long) {
  60535. let long = new $util.Long(0, 0, false);
  60536. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  60537. } else
  60538. object.id = options.longs === String ? "0" : 0;
  60539. if ($util.Long) {
  60540. let long = new $util.Long(0, 0, false);
  60541. object.level = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  60542. } else
  60543. object.level = options.longs === String ? "0" : 0;
  60544. if ($util.Long) {
  60545. let long = new $util.Long(0, 0, false);
  60546. object.time = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  60547. } else
  60548. object.time = options.longs === String ? "0" : 0;
  60549. object.autoExploreOption = false;
  60550. if ($util.Long) {
  60551. let long = new $util.Long(0, 0, false);
  60552. object.exploreTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  60553. } else
  60554. object.exploreTime = options.longs === String ? "0" : 0;
  60555. if ($util.Long) {
  60556. let long = new $util.Long(0, 0, false);
  60557. object.exploreTimes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  60558. } else
  60559. object.exploreTimes = options.longs === String ? "0" : 0;
  60560. if ($util.Long) {
  60561. let long = new $util.Long(0, 0, false);
  60562. object.autoExploreTimes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  60563. } else
  60564. object.autoExploreTimes = options.longs === String ? "0" : 0;
  60565. }
  60566. if (message.id != null && message.hasOwnProperty("id"))
  60567. if (typeof message.id === "number")
  60568. object.id = options.longs === String ? String(message.id) : message.id;
  60569. else
  60570. 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;
  60571. if (message.level != null && message.hasOwnProperty("level"))
  60572. if (typeof message.level === "number")
  60573. object.level = options.longs === String ? String(message.level) : message.level;
  60574. else
  60575. 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;
  60576. if (message.time != null && message.hasOwnProperty("time"))
  60577. if (typeof message.time === "number")
  60578. object.time = options.longs === String ? String(message.time) : message.time;
  60579. else
  60580. 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;
  60581. if (message.list && message.list.length) {
  60582. object.list = [];
  60583. for (let j = 0; j < message.list.length; ++j)
  60584. object.list[j] = message.list[j];
  60585. }
  60586. if (message.autoExploreOption != null && message.hasOwnProperty("autoExploreOption"))
  60587. object.autoExploreOption = message.autoExploreOption;
  60588. if (message.exploreTime != null && message.hasOwnProperty("exploreTime"))
  60589. if (typeof message.exploreTime === "number")
  60590. object.exploreTime = options.longs === String ? String(message.exploreTime) : message.exploreTime;
  60591. else
  60592. 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;
  60593. if (message.exploreTimes != null && message.hasOwnProperty("exploreTimes"))
  60594. if (typeof message.exploreTimes === "number")
  60595. object.exploreTimes = options.longs === String ? String(message.exploreTimes) : message.exploreTimes;
  60596. else
  60597. 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;
  60598. if (message.autoExploreTimes != null && message.hasOwnProperty("autoExploreTimes"))
  60599. if (typeof message.autoExploreTimes === "number")
  60600. object.autoExploreTimes = options.longs === String ? String(message.autoExploreTimes) : message.autoExploreTimes;
  60601. else
  60602. 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;
  60603. return object;
  60604. };
  60605. /**
  60606. * Converts this building to JSON.
  60607. * @function toJSON
  60608. * @memberof game.building
  60609. * @instance
  60610. * @returns {Object.<string,*>} JSON object
  60611. */
  60612. building.prototype.toJSON = function toJSON() {
  60613. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  60614. };
  60615. return building;
  60616. })();
  60617. game.packageMail = (function() {
  60618. /**
  60619. * Properties of a packageMail.
  60620. * @memberof game
  60621. * @interface IpackageMail
  60622. * @property {Array.<game.Iid_num>|null} [currency] packageMail currency
  60623. */
  60624. /**
  60625. * Constructs a new packageMail.
  60626. * @memberof game
  60627. * @classdesc Represents a packageMail.
  60628. * @implements IpackageMail
  60629. * @constructor
  60630. * @param {game.IpackageMail=} [properties] Properties to set
  60631. */
  60632. function packageMail(properties) {
  60633. this.currency = [];
  60634. if (properties)
  60635. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  60636. if (properties[keys[i]] != null)
  60637. this[keys[i]] = properties[keys[i]];
  60638. }
  60639. /**
  60640. * packageMail currency.
  60641. * @member {Array.<game.Iid_num>} currency
  60642. * @memberof game.packageMail
  60643. * @instance
  60644. */
  60645. packageMail.prototype.currency = $util.emptyArray;
  60646. /**
  60647. * Creates a new packageMail instance using the specified properties.
  60648. * @function create
  60649. * @memberof game.packageMail
  60650. * @static
  60651. * @param {game.IpackageMail=} [properties] Properties to set
  60652. * @returns {game.packageMail} packageMail instance
  60653. */
  60654. packageMail.create = function create(properties) {
  60655. return new packageMail(properties);
  60656. };
  60657. /**
  60658. * Encodes the specified packageMail message. Does not implicitly {@link game.packageMail.verify|verify} messages.
  60659. * @function encode
  60660. * @memberof game.packageMail
  60661. * @static
  60662. * @param {game.IpackageMail} message packageMail message or plain object to encode
  60663. * @param {$protobuf.Writer} [writer] Writer to encode to
  60664. * @returns {$protobuf.Writer} Writer
  60665. */
  60666. packageMail.encode = function encode(message, writer) {
  60667. if (!writer)
  60668. writer = $Writer.create();
  60669. if (message.currency != null && message.currency.length)
  60670. for (let i = 0; i < message.currency.length; ++i)
  60671. $root.game.id_num.encode(message.currency[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
  60672. return writer;
  60673. };
  60674. /**
  60675. * Encodes the specified packageMail message, length delimited. Does not implicitly {@link game.packageMail.verify|verify} messages.
  60676. * @function encodeDelimited
  60677. * @memberof game.packageMail
  60678. * @static
  60679. * @param {game.IpackageMail} message packageMail message or plain object to encode
  60680. * @param {$protobuf.Writer} [writer] Writer to encode to
  60681. * @returns {$protobuf.Writer} Writer
  60682. */
  60683. packageMail.encodeDelimited = function encodeDelimited(message, writer) {
  60684. return this.encode(message, writer).ldelim();
  60685. };
  60686. /**
  60687. * Decodes a packageMail message from the specified reader or buffer.
  60688. * @function decode
  60689. * @memberof game.packageMail
  60690. * @static
  60691. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  60692. * @param {number} [length] Message length if known beforehand
  60693. * @returns {game.packageMail} packageMail
  60694. * @throws {Error} If the payload is not a reader or valid buffer
  60695. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  60696. */
  60697. packageMail.decode = function decode(reader, length) {
  60698. if (!(reader instanceof $Reader))
  60699. reader = $Reader.create(reader);
  60700. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.packageMail();
  60701. while (reader.pos < end) {
  60702. let tag = reader.uint32();
  60703. switch (tag >>> 3) {
  60704. case 1:
  60705. if (!(message.currency && message.currency.length))
  60706. message.currency = [];
  60707. message.currency.push($root.game.id_num.decode(reader, reader.uint32()));
  60708. break;
  60709. default:
  60710. reader.skipType(tag & 7);
  60711. break;
  60712. }
  60713. }
  60714. return message;
  60715. };
  60716. /**
  60717. * Decodes a packageMail message from the specified reader or buffer, length delimited.
  60718. * @function decodeDelimited
  60719. * @memberof game.packageMail
  60720. * @static
  60721. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  60722. * @returns {game.packageMail} packageMail
  60723. * @throws {Error} If the payload is not a reader or valid buffer
  60724. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  60725. */
  60726. packageMail.decodeDelimited = function decodeDelimited(reader) {
  60727. if (!(reader instanceof $Reader))
  60728. reader = new $Reader(reader);
  60729. return this.decode(reader, reader.uint32());
  60730. };
  60731. /**
  60732. * Verifies a packageMail message.
  60733. * @function verify
  60734. * @memberof game.packageMail
  60735. * @static
  60736. * @param {Object.<string,*>} message Plain object to verify
  60737. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  60738. */
  60739. packageMail.verify = function verify(message) {
  60740. if (typeof message !== "object" || message === null)
  60741. return "object expected";
  60742. if (message.currency != null && message.hasOwnProperty("currency")) {
  60743. if (!Array.isArray(message.currency))
  60744. return "currency: array expected";
  60745. for (let i = 0; i < message.currency.length; ++i) {
  60746. let error = $root.game.id_num.verify(message.currency[i]);
  60747. if (error)
  60748. return "currency." + error;
  60749. }
  60750. }
  60751. return null;
  60752. };
  60753. /**
  60754. * Creates a packageMail message from a plain object. Also converts values to their respective internal types.
  60755. * @function fromObject
  60756. * @memberof game.packageMail
  60757. * @static
  60758. * @param {Object.<string,*>} object Plain object
  60759. * @returns {game.packageMail} packageMail
  60760. */
  60761. packageMail.fromObject = function fromObject(object) {
  60762. if (object instanceof $root.game.packageMail)
  60763. return object;
  60764. let message = new $root.game.packageMail();
  60765. if (object.currency) {
  60766. if (!Array.isArray(object.currency))
  60767. throw TypeError(".game.packageMail.currency: array expected");
  60768. message.currency = [];
  60769. for (let i = 0; i < object.currency.length; ++i) {
  60770. if (typeof object.currency[i] !== "object")
  60771. throw TypeError(".game.packageMail.currency: object expected");
  60772. message.currency[i] = $root.game.id_num.fromObject(object.currency[i]);
  60773. }
  60774. }
  60775. return message;
  60776. };
  60777. /**
  60778. * Creates a plain object from a packageMail message. Also converts values to other types if specified.
  60779. * @function toObject
  60780. * @memberof game.packageMail
  60781. * @static
  60782. * @param {game.packageMail} message packageMail
  60783. * @param {$protobuf.IConversionOptions} [options] Conversion options
  60784. * @returns {Object.<string,*>} Plain object
  60785. */
  60786. packageMail.toObject = function toObject(message, options) {
  60787. if (!options)
  60788. options = {};
  60789. let object = {};
  60790. if (options.arrays || options.defaults)
  60791. object.currency = [];
  60792. if (message.currency && message.currency.length) {
  60793. object.currency = [];
  60794. for (let j = 0; j < message.currency.length; ++j)
  60795. object.currency[j] = $root.game.id_num.toObject(message.currency[j], options);
  60796. }
  60797. return object;
  60798. };
  60799. /**
  60800. * Converts this packageMail to JSON.
  60801. * @function toJSON
  60802. * @memberof game.packageMail
  60803. * @instance
  60804. * @returns {Object.<string,*>} JSON object
  60805. */
  60806. packageMail.prototype.toJSON = function toJSON() {
  60807. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  60808. };
  60809. return packageMail;
  60810. })();
  60811. game.mail = (function() {
  60812. /**
  60813. * Properties of a mail.
  60814. * @memberof game
  60815. * @interface Imail
  60816. * @property {string|null} [id] mail id
  60817. * @property {number|Long|null} [date] mail date
  60818. * @property {number|Long|null} [subject] mail subject
  60819. * @property {string|null} [body] mail body
  60820. * @property {Array.<game.Iid_num>|null} [attachment] mail attachment
  60821. * @property {boolean|null} [attach] mail attach
  60822. * @property {boolean|null} [read] mail read
  60823. * @property {boolean|null} [receive] mail receive
  60824. */
  60825. /**
  60826. * Constructs a new mail.
  60827. * @memberof game
  60828. * @classdesc Represents a mail.
  60829. * @implements Imail
  60830. * @constructor
  60831. * @param {game.Imail=} [properties] Properties to set
  60832. */
  60833. function mail(properties) {
  60834. this.attachment = [];
  60835. if (properties)
  60836. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  60837. if (properties[keys[i]] != null)
  60838. this[keys[i]] = properties[keys[i]];
  60839. }
  60840. /**
  60841. * mail id.
  60842. * @member {string} id
  60843. * @memberof game.mail
  60844. * @instance
  60845. */
  60846. mail.prototype.id = "";
  60847. /**
  60848. * mail date.
  60849. * @member {number|Long} date
  60850. * @memberof game.mail
  60851. * @instance
  60852. */
  60853. mail.prototype.date = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  60854. /**
  60855. * mail subject.
  60856. * @member {number|Long} subject
  60857. * @memberof game.mail
  60858. * @instance
  60859. */
  60860. mail.prototype.subject = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  60861. /**
  60862. * mail body.
  60863. * @member {string} body
  60864. * @memberof game.mail
  60865. * @instance
  60866. */
  60867. mail.prototype.body = "";
  60868. /**
  60869. * mail attachment.
  60870. * @member {Array.<game.Iid_num>} attachment
  60871. * @memberof game.mail
  60872. * @instance
  60873. */
  60874. mail.prototype.attachment = $util.emptyArray;
  60875. /**
  60876. * mail attach.
  60877. * @member {boolean} attach
  60878. * @memberof game.mail
  60879. * @instance
  60880. */
  60881. mail.prototype.attach = false;
  60882. /**
  60883. * mail read.
  60884. * @member {boolean} read
  60885. * @memberof game.mail
  60886. * @instance
  60887. */
  60888. mail.prototype.read = false;
  60889. /**
  60890. * mail receive.
  60891. * @member {boolean} receive
  60892. * @memberof game.mail
  60893. * @instance
  60894. */
  60895. mail.prototype.receive = false;
  60896. /**
  60897. * Creates a new mail instance using the specified properties.
  60898. * @function create
  60899. * @memberof game.mail
  60900. * @static
  60901. * @param {game.Imail=} [properties] Properties to set
  60902. * @returns {game.mail} mail instance
  60903. */
  60904. mail.create = function create(properties) {
  60905. return new mail(properties);
  60906. };
  60907. /**
  60908. * Encodes the specified mail message. Does not implicitly {@link game.mail.verify|verify} messages.
  60909. * @function encode
  60910. * @memberof game.mail
  60911. * @static
  60912. * @param {game.Imail} message mail message or plain object to encode
  60913. * @param {$protobuf.Writer} [writer] Writer to encode to
  60914. * @returns {$protobuf.Writer} Writer
  60915. */
  60916. mail.encode = function encode(message, writer) {
  60917. if (!writer)
  60918. writer = $Writer.create();
  60919. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  60920. writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
  60921. if (message.date != null && Object.hasOwnProperty.call(message, "date"))
  60922. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.date);
  60923. if (message.subject != null && Object.hasOwnProperty.call(message, "subject"))
  60924. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.subject);
  60925. if (message.body != null && Object.hasOwnProperty.call(message, "body"))
  60926. writer.uint32(/* id 4, wireType 2 =*/34).string(message.body);
  60927. if (message.attachment != null && message.attachment.length)
  60928. for (let i = 0; i < message.attachment.length; ++i)
  60929. $root.game.id_num.encode(message.attachment[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
  60930. if (message.attach != null && Object.hasOwnProperty.call(message, "attach"))
  60931. writer.uint32(/* id 6, wireType 0 =*/48).bool(message.attach);
  60932. if (message.read != null && Object.hasOwnProperty.call(message, "read"))
  60933. writer.uint32(/* id 7, wireType 0 =*/56).bool(message.read);
  60934. if (message.receive != null && Object.hasOwnProperty.call(message, "receive"))
  60935. writer.uint32(/* id 8, wireType 0 =*/64).bool(message.receive);
  60936. return writer;
  60937. };
  60938. /**
  60939. * Encodes the specified mail message, length delimited. Does not implicitly {@link game.mail.verify|verify} messages.
  60940. * @function encodeDelimited
  60941. * @memberof game.mail
  60942. * @static
  60943. * @param {game.Imail} message mail message or plain object to encode
  60944. * @param {$protobuf.Writer} [writer] Writer to encode to
  60945. * @returns {$protobuf.Writer} Writer
  60946. */
  60947. mail.encodeDelimited = function encodeDelimited(message, writer) {
  60948. return this.encode(message, writer).ldelim();
  60949. };
  60950. /**
  60951. * Decodes a mail message from the specified reader or buffer.
  60952. * @function decode
  60953. * @memberof game.mail
  60954. * @static
  60955. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  60956. * @param {number} [length] Message length if known beforehand
  60957. * @returns {game.mail} mail
  60958. * @throws {Error} If the payload is not a reader or valid buffer
  60959. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  60960. */
  60961. mail.decode = function decode(reader, length) {
  60962. if (!(reader instanceof $Reader))
  60963. reader = $Reader.create(reader);
  60964. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.mail();
  60965. while (reader.pos < end) {
  60966. let tag = reader.uint32();
  60967. switch (tag >>> 3) {
  60968. case 1:
  60969. message.id = reader.string();
  60970. break;
  60971. case 2:
  60972. message.date = reader.int64();
  60973. break;
  60974. case 3:
  60975. message.subject = reader.int64();
  60976. break;
  60977. case 4:
  60978. message.body = reader.string();
  60979. break;
  60980. case 5:
  60981. if (!(message.attachment && message.attachment.length))
  60982. message.attachment = [];
  60983. message.attachment.push($root.game.id_num.decode(reader, reader.uint32()));
  60984. break;
  60985. case 6:
  60986. message.attach = reader.bool();
  60987. break;
  60988. case 7:
  60989. message.read = reader.bool();
  60990. break;
  60991. case 8:
  60992. message.receive = reader.bool();
  60993. break;
  60994. default:
  60995. reader.skipType(tag & 7);
  60996. break;
  60997. }
  60998. }
  60999. return message;
  61000. };
  61001. /**
  61002. * Decodes a mail message from the specified reader or buffer, length delimited.
  61003. * @function decodeDelimited
  61004. * @memberof game.mail
  61005. * @static
  61006. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  61007. * @returns {game.mail} mail
  61008. * @throws {Error} If the payload is not a reader or valid buffer
  61009. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  61010. */
  61011. mail.decodeDelimited = function decodeDelimited(reader) {
  61012. if (!(reader instanceof $Reader))
  61013. reader = new $Reader(reader);
  61014. return this.decode(reader, reader.uint32());
  61015. };
  61016. /**
  61017. * Verifies a mail message.
  61018. * @function verify
  61019. * @memberof game.mail
  61020. * @static
  61021. * @param {Object.<string,*>} message Plain object to verify
  61022. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  61023. */
  61024. mail.verify = function verify(message) {
  61025. if (typeof message !== "object" || message === null)
  61026. return "object expected";
  61027. if (message.id != null && message.hasOwnProperty("id"))
  61028. if (!$util.isString(message.id))
  61029. return "id: string expected";
  61030. if (message.date != null && message.hasOwnProperty("date"))
  61031. if (!$util.isInteger(message.date) && !(message.date && $util.isInteger(message.date.low) && $util.isInteger(message.date.high)))
  61032. return "date: integer|Long expected";
  61033. if (message.subject != null && message.hasOwnProperty("subject"))
  61034. if (!$util.isInteger(message.subject) && !(message.subject && $util.isInteger(message.subject.low) && $util.isInteger(message.subject.high)))
  61035. return "subject: integer|Long expected";
  61036. if (message.body != null && message.hasOwnProperty("body"))
  61037. if (!$util.isString(message.body))
  61038. return "body: string expected";
  61039. if (message.attachment != null && message.hasOwnProperty("attachment")) {
  61040. if (!Array.isArray(message.attachment))
  61041. return "attachment: array expected";
  61042. for (let i = 0; i < message.attachment.length; ++i) {
  61043. let error = $root.game.id_num.verify(message.attachment[i]);
  61044. if (error)
  61045. return "attachment." + error;
  61046. }
  61047. }
  61048. if (message.attach != null && message.hasOwnProperty("attach"))
  61049. if (typeof message.attach !== "boolean")
  61050. return "attach: boolean expected";
  61051. if (message.read != null && message.hasOwnProperty("read"))
  61052. if (typeof message.read !== "boolean")
  61053. return "read: boolean expected";
  61054. if (message.receive != null && message.hasOwnProperty("receive"))
  61055. if (typeof message.receive !== "boolean")
  61056. return "receive: boolean expected";
  61057. return null;
  61058. };
  61059. /**
  61060. * Creates a mail message from a plain object. Also converts values to their respective internal types.
  61061. * @function fromObject
  61062. * @memberof game.mail
  61063. * @static
  61064. * @param {Object.<string,*>} object Plain object
  61065. * @returns {game.mail} mail
  61066. */
  61067. mail.fromObject = function fromObject(object) {
  61068. if (object instanceof $root.game.mail)
  61069. return object;
  61070. let message = new $root.game.mail();
  61071. if (object.id != null)
  61072. message.id = String(object.id);
  61073. if (object.date != null)
  61074. if ($util.Long)
  61075. (message.date = $util.Long.fromValue(object.date)).unsigned = false;
  61076. else if (typeof object.date === "string")
  61077. message.date = parseInt(object.date, 10);
  61078. else if (typeof object.date === "number")
  61079. message.date = object.date;
  61080. else if (typeof object.date === "object")
  61081. message.date = new $util.LongBits(object.date.low >>> 0, object.date.high >>> 0).toNumber();
  61082. if (object.subject != null)
  61083. if ($util.Long)
  61084. (message.subject = $util.Long.fromValue(object.subject)).unsigned = false;
  61085. else if (typeof object.subject === "string")
  61086. message.subject = parseInt(object.subject, 10);
  61087. else if (typeof object.subject === "number")
  61088. message.subject = object.subject;
  61089. else if (typeof object.subject === "object")
  61090. message.subject = new $util.LongBits(object.subject.low >>> 0, object.subject.high >>> 0).toNumber();
  61091. if (object.body != null)
  61092. message.body = String(object.body);
  61093. if (object.attachment) {
  61094. if (!Array.isArray(object.attachment))
  61095. throw TypeError(".game.mail.attachment: array expected");
  61096. message.attachment = [];
  61097. for (let i = 0; i < object.attachment.length; ++i) {
  61098. if (typeof object.attachment[i] !== "object")
  61099. throw TypeError(".game.mail.attachment: object expected");
  61100. message.attachment[i] = $root.game.id_num.fromObject(object.attachment[i]);
  61101. }
  61102. }
  61103. if (object.attach != null)
  61104. message.attach = Boolean(object.attach);
  61105. if (object.read != null)
  61106. message.read = Boolean(object.read);
  61107. if (object.receive != null)
  61108. message.receive = Boolean(object.receive);
  61109. return message;
  61110. };
  61111. /**
  61112. * Creates a plain object from a mail message. Also converts values to other types if specified.
  61113. * @function toObject
  61114. * @memberof game.mail
  61115. * @static
  61116. * @param {game.mail} message mail
  61117. * @param {$protobuf.IConversionOptions} [options] Conversion options
  61118. * @returns {Object.<string,*>} Plain object
  61119. */
  61120. mail.toObject = function toObject(message, options) {
  61121. if (!options)
  61122. options = {};
  61123. let object = {};
  61124. if (options.arrays || options.defaults)
  61125. object.attachment = [];
  61126. if (options.defaults) {
  61127. object.id = "";
  61128. if ($util.Long) {
  61129. let long = new $util.Long(0, 0, false);
  61130. object.date = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  61131. } else
  61132. object.date = options.longs === String ? "0" : 0;
  61133. if ($util.Long) {
  61134. let long = new $util.Long(0, 0, false);
  61135. object.subject = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  61136. } else
  61137. object.subject = options.longs === String ? "0" : 0;
  61138. object.body = "";
  61139. object.attach = false;
  61140. object.read = false;
  61141. object.receive = false;
  61142. }
  61143. if (message.id != null && message.hasOwnProperty("id"))
  61144. object.id = message.id;
  61145. if (message.date != null && message.hasOwnProperty("date"))
  61146. if (typeof message.date === "number")
  61147. object.date = options.longs === String ? String(message.date) : message.date;
  61148. else
  61149. 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;
  61150. if (message.subject != null && message.hasOwnProperty("subject"))
  61151. if (typeof message.subject === "number")
  61152. object.subject = options.longs === String ? String(message.subject) : message.subject;
  61153. else
  61154. 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;
  61155. if (message.body != null && message.hasOwnProperty("body"))
  61156. object.body = message.body;
  61157. if (message.attachment && message.attachment.length) {
  61158. object.attachment = [];
  61159. for (let j = 0; j < message.attachment.length; ++j)
  61160. object.attachment[j] = $root.game.id_num.toObject(message.attachment[j], options);
  61161. }
  61162. if (message.attach != null && message.hasOwnProperty("attach"))
  61163. object.attach = message.attach;
  61164. if (message.read != null && message.hasOwnProperty("read"))
  61165. object.read = message.read;
  61166. if (message.receive != null && message.hasOwnProperty("receive"))
  61167. object.receive = message.receive;
  61168. return object;
  61169. };
  61170. /**
  61171. * Converts this mail to JSON.
  61172. * @function toJSON
  61173. * @memberof game.mail
  61174. * @instance
  61175. * @returns {Object.<string,*>} JSON object
  61176. */
  61177. mail.prototype.toJSON = function toJSON() {
  61178. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  61179. };
  61180. return mail;
  61181. })();
  61182. game.quest = (function() {
  61183. /**
  61184. * Properties of a quest.
  61185. * @memberof game
  61186. * @interface Iquest
  61187. * @property {number|Long|null} [id] quest id
  61188. * @property {number|Long|null} [progress] quest progress
  61189. * @property {number|Long|null} [state] quest state
  61190. */
  61191. /**
  61192. * Constructs a new quest.
  61193. * @memberof game
  61194. * @classdesc Represents a quest.
  61195. * @implements Iquest
  61196. * @constructor
  61197. * @param {game.Iquest=} [properties] Properties to set
  61198. */
  61199. function quest(properties) {
  61200. if (properties)
  61201. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  61202. if (properties[keys[i]] != null)
  61203. this[keys[i]] = properties[keys[i]];
  61204. }
  61205. /**
  61206. * quest id.
  61207. * @member {number|Long} id
  61208. * @memberof game.quest
  61209. * @instance
  61210. */
  61211. quest.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  61212. /**
  61213. * quest progress.
  61214. * @member {number|Long} progress
  61215. * @memberof game.quest
  61216. * @instance
  61217. */
  61218. quest.prototype.progress = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  61219. /**
  61220. * quest state.
  61221. * @member {number|Long} state
  61222. * @memberof game.quest
  61223. * @instance
  61224. */
  61225. quest.prototype.state = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  61226. /**
  61227. * Creates a new quest instance using the specified properties.
  61228. * @function create
  61229. * @memberof game.quest
  61230. * @static
  61231. * @param {game.Iquest=} [properties] Properties to set
  61232. * @returns {game.quest} quest instance
  61233. */
  61234. quest.create = function create(properties) {
  61235. return new quest(properties);
  61236. };
  61237. /**
  61238. * Encodes the specified quest message. Does not implicitly {@link game.quest.verify|verify} messages.
  61239. * @function encode
  61240. * @memberof game.quest
  61241. * @static
  61242. * @param {game.Iquest} message quest message or plain object to encode
  61243. * @param {$protobuf.Writer} [writer] Writer to encode to
  61244. * @returns {$protobuf.Writer} Writer
  61245. */
  61246. quest.encode = function encode(message, writer) {
  61247. if (!writer)
  61248. writer = $Writer.create();
  61249. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  61250. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  61251. if (message.progress != null && Object.hasOwnProperty.call(message, "progress"))
  61252. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.progress);
  61253. if (message.state != null && Object.hasOwnProperty.call(message, "state"))
  61254. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.state);
  61255. return writer;
  61256. };
  61257. /**
  61258. * Encodes the specified quest message, length delimited. Does not implicitly {@link game.quest.verify|verify} messages.
  61259. * @function encodeDelimited
  61260. * @memberof game.quest
  61261. * @static
  61262. * @param {game.Iquest} message quest message or plain object to encode
  61263. * @param {$protobuf.Writer} [writer] Writer to encode to
  61264. * @returns {$protobuf.Writer} Writer
  61265. */
  61266. quest.encodeDelimited = function encodeDelimited(message, writer) {
  61267. return this.encode(message, writer).ldelim();
  61268. };
  61269. /**
  61270. * Decodes a quest message from the specified reader or buffer.
  61271. * @function decode
  61272. * @memberof game.quest
  61273. * @static
  61274. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  61275. * @param {number} [length] Message length if known beforehand
  61276. * @returns {game.quest} quest
  61277. * @throws {Error} If the payload is not a reader or valid buffer
  61278. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  61279. */
  61280. quest.decode = function decode(reader, length) {
  61281. if (!(reader instanceof $Reader))
  61282. reader = $Reader.create(reader);
  61283. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.quest();
  61284. while (reader.pos < end) {
  61285. let tag = reader.uint32();
  61286. switch (tag >>> 3) {
  61287. case 1:
  61288. message.id = reader.int64();
  61289. break;
  61290. case 2:
  61291. message.progress = reader.int64();
  61292. break;
  61293. case 3:
  61294. message.state = reader.int64();
  61295. break;
  61296. default:
  61297. reader.skipType(tag & 7);
  61298. break;
  61299. }
  61300. }
  61301. return message;
  61302. };
  61303. /**
  61304. * Decodes a quest message from the specified reader or buffer, length delimited.
  61305. * @function decodeDelimited
  61306. * @memberof game.quest
  61307. * @static
  61308. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  61309. * @returns {game.quest} quest
  61310. * @throws {Error} If the payload is not a reader or valid buffer
  61311. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  61312. */
  61313. quest.decodeDelimited = function decodeDelimited(reader) {
  61314. if (!(reader instanceof $Reader))
  61315. reader = new $Reader(reader);
  61316. return this.decode(reader, reader.uint32());
  61317. };
  61318. /**
  61319. * Verifies a quest message.
  61320. * @function verify
  61321. * @memberof game.quest
  61322. * @static
  61323. * @param {Object.<string,*>} message Plain object to verify
  61324. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  61325. */
  61326. quest.verify = function verify(message) {
  61327. if (typeof message !== "object" || message === null)
  61328. return "object expected";
  61329. if (message.id != null && message.hasOwnProperty("id"))
  61330. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  61331. return "id: integer|Long expected";
  61332. if (message.progress != null && message.hasOwnProperty("progress"))
  61333. if (!$util.isInteger(message.progress) && !(message.progress && $util.isInteger(message.progress.low) && $util.isInteger(message.progress.high)))
  61334. return "progress: integer|Long expected";
  61335. if (message.state != null && message.hasOwnProperty("state"))
  61336. if (!$util.isInteger(message.state) && !(message.state && $util.isInteger(message.state.low) && $util.isInteger(message.state.high)))
  61337. return "state: integer|Long expected";
  61338. return null;
  61339. };
  61340. /**
  61341. * Creates a quest message from a plain object. Also converts values to their respective internal types.
  61342. * @function fromObject
  61343. * @memberof game.quest
  61344. * @static
  61345. * @param {Object.<string,*>} object Plain object
  61346. * @returns {game.quest} quest
  61347. */
  61348. quest.fromObject = function fromObject(object) {
  61349. if (object instanceof $root.game.quest)
  61350. return object;
  61351. let message = new $root.game.quest();
  61352. if (object.id != null)
  61353. if ($util.Long)
  61354. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  61355. else if (typeof object.id === "string")
  61356. message.id = parseInt(object.id, 10);
  61357. else if (typeof object.id === "number")
  61358. message.id = object.id;
  61359. else if (typeof object.id === "object")
  61360. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  61361. if (object.progress != null)
  61362. if ($util.Long)
  61363. (message.progress = $util.Long.fromValue(object.progress)).unsigned = false;
  61364. else if (typeof object.progress === "string")
  61365. message.progress = parseInt(object.progress, 10);
  61366. else if (typeof object.progress === "number")
  61367. message.progress = object.progress;
  61368. else if (typeof object.progress === "object")
  61369. message.progress = new $util.LongBits(object.progress.low >>> 0, object.progress.high >>> 0).toNumber();
  61370. if (object.state != null)
  61371. if ($util.Long)
  61372. (message.state = $util.Long.fromValue(object.state)).unsigned = false;
  61373. else if (typeof object.state === "string")
  61374. message.state = parseInt(object.state, 10);
  61375. else if (typeof object.state === "number")
  61376. message.state = object.state;
  61377. else if (typeof object.state === "object")
  61378. message.state = new $util.LongBits(object.state.low >>> 0, object.state.high >>> 0).toNumber();
  61379. return message;
  61380. };
  61381. /**
  61382. * Creates a plain object from a quest message. Also converts values to other types if specified.
  61383. * @function toObject
  61384. * @memberof game.quest
  61385. * @static
  61386. * @param {game.quest} message quest
  61387. * @param {$protobuf.IConversionOptions} [options] Conversion options
  61388. * @returns {Object.<string,*>} Plain object
  61389. */
  61390. quest.toObject = function toObject(message, options) {
  61391. if (!options)
  61392. options = {};
  61393. let object = {};
  61394. if (options.defaults) {
  61395. if ($util.Long) {
  61396. let long = new $util.Long(0, 0, false);
  61397. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  61398. } else
  61399. object.id = options.longs === String ? "0" : 0;
  61400. if ($util.Long) {
  61401. let long = new $util.Long(0, 0, false);
  61402. object.progress = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  61403. } else
  61404. object.progress = options.longs === String ? "0" : 0;
  61405. if ($util.Long) {
  61406. let long = new $util.Long(0, 0, false);
  61407. object.state = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  61408. } else
  61409. object.state = options.longs === String ? "0" : 0;
  61410. }
  61411. if (message.id != null && message.hasOwnProperty("id"))
  61412. if (typeof message.id === "number")
  61413. object.id = options.longs === String ? String(message.id) : message.id;
  61414. else
  61415. 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;
  61416. if (message.progress != null && message.hasOwnProperty("progress"))
  61417. if (typeof message.progress === "number")
  61418. object.progress = options.longs === String ? String(message.progress) : message.progress;
  61419. else
  61420. 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;
  61421. if (message.state != null && message.hasOwnProperty("state"))
  61422. if (typeof message.state === "number")
  61423. object.state = options.longs === String ? String(message.state) : message.state;
  61424. else
  61425. 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;
  61426. return object;
  61427. };
  61428. /**
  61429. * Converts this quest to JSON.
  61430. * @function toJSON
  61431. * @memberof game.quest
  61432. * @instance
  61433. * @returns {Object.<string,*>} JSON object
  61434. */
  61435. quest.prototype.toJSON = function toJSON() {
  61436. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  61437. };
  61438. return quest;
  61439. })();
  61440. game.manual = (function() {
  61441. /**
  61442. * Properties of a manual.
  61443. * @memberof game
  61444. * @interface Imanual
  61445. * @property {boolean|null} [lock] manual lock
  61446. * @property {number|Long|null} [award] manual award
  61447. */
  61448. /**
  61449. * Constructs a new manual.
  61450. * @memberof game
  61451. * @classdesc Represents a manual.
  61452. * @implements Imanual
  61453. * @constructor
  61454. * @param {game.Imanual=} [properties] Properties to set
  61455. */
  61456. function manual(properties) {
  61457. if (properties)
  61458. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  61459. if (properties[keys[i]] != null)
  61460. this[keys[i]] = properties[keys[i]];
  61461. }
  61462. /**
  61463. * manual lock.
  61464. * @member {boolean} lock
  61465. * @memberof game.manual
  61466. * @instance
  61467. */
  61468. manual.prototype.lock = false;
  61469. /**
  61470. * manual award.
  61471. * @member {number|Long} award
  61472. * @memberof game.manual
  61473. * @instance
  61474. */
  61475. manual.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  61476. /**
  61477. * Creates a new manual instance using the specified properties.
  61478. * @function create
  61479. * @memberof game.manual
  61480. * @static
  61481. * @param {game.Imanual=} [properties] Properties to set
  61482. * @returns {game.manual} manual instance
  61483. */
  61484. manual.create = function create(properties) {
  61485. return new manual(properties);
  61486. };
  61487. /**
  61488. * Encodes the specified manual message. Does not implicitly {@link game.manual.verify|verify} messages.
  61489. * @function encode
  61490. * @memberof game.manual
  61491. * @static
  61492. * @param {game.Imanual} message manual message or plain object to encode
  61493. * @param {$protobuf.Writer} [writer] Writer to encode to
  61494. * @returns {$protobuf.Writer} Writer
  61495. */
  61496. manual.encode = function encode(message, writer) {
  61497. if (!writer)
  61498. writer = $Writer.create();
  61499. if (message.lock != null && Object.hasOwnProperty.call(message, "lock"))
  61500. writer.uint32(/* id 1, wireType 0 =*/8).bool(message.lock);
  61501. if (message.award != null && Object.hasOwnProperty.call(message, "award"))
  61502. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.award);
  61503. return writer;
  61504. };
  61505. /**
  61506. * Encodes the specified manual message, length delimited. Does not implicitly {@link game.manual.verify|verify} messages.
  61507. * @function encodeDelimited
  61508. * @memberof game.manual
  61509. * @static
  61510. * @param {game.Imanual} message manual message or plain object to encode
  61511. * @param {$protobuf.Writer} [writer] Writer to encode to
  61512. * @returns {$protobuf.Writer} Writer
  61513. */
  61514. manual.encodeDelimited = function encodeDelimited(message, writer) {
  61515. return this.encode(message, writer).ldelim();
  61516. };
  61517. /**
  61518. * Decodes a manual message from the specified reader or buffer.
  61519. * @function decode
  61520. * @memberof game.manual
  61521. * @static
  61522. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  61523. * @param {number} [length] Message length if known beforehand
  61524. * @returns {game.manual} manual
  61525. * @throws {Error} If the payload is not a reader or valid buffer
  61526. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  61527. */
  61528. manual.decode = function decode(reader, length) {
  61529. if (!(reader instanceof $Reader))
  61530. reader = $Reader.create(reader);
  61531. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.manual();
  61532. while (reader.pos < end) {
  61533. let tag = reader.uint32();
  61534. switch (tag >>> 3) {
  61535. case 1:
  61536. message.lock = reader.bool();
  61537. break;
  61538. case 2:
  61539. message.award = reader.int64();
  61540. break;
  61541. default:
  61542. reader.skipType(tag & 7);
  61543. break;
  61544. }
  61545. }
  61546. return message;
  61547. };
  61548. /**
  61549. * Decodes a manual message from the specified reader or buffer, length delimited.
  61550. * @function decodeDelimited
  61551. * @memberof game.manual
  61552. * @static
  61553. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  61554. * @returns {game.manual} manual
  61555. * @throws {Error} If the payload is not a reader or valid buffer
  61556. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  61557. */
  61558. manual.decodeDelimited = function decodeDelimited(reader) {
  61559. if (!(reader instanceof $Reader))
  61560. reader = new $Reader(reader);
  61561. return this.decode(reader, reader.uint32());
  61562. };
  61563. /**
  61564. * Verifies a manual message.
  61565. * @function verify
  61566. * @memberof game.manual
  61567. * @static
  61568. * @param {Object.<string,*>} message Plain object to verify
  61569. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  61570. */
  61571. manual.verify = function verify(message) {
  61572. if (typeof message !== "object" || message === null)
  61573. return "object expected";
  61574. if (message.lock != null && message.hasOwnProperty("lock"))
  61575. if (typeof message.lock !== "boolean")
  61576. return "lock: boolean expected";
  61577. if (message.award != null && message.hasOwnProperty("award"))
  61578. if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
  61579. return "award: integer|Long expected";
  61580. return null;
  61581. };
  61582. /**
  61583. * Creates a manual message from a plain object. Also converts values to their respective internal types.
  61584. * @function fromObject
  61585. * @memberof game.manual
  61586. * @static
  61587. * @param {Object.<string,*>} object Plain object
  61588. * @returns {game.manual} manual
  61589. */
  61590. manual.fromObject = function fromObject(object) {
  61591. if (object instanceof $root.game.manual)
  61592. return object;
  61593. let message = new $root.game.manual();
  61594. if (object.lock != null)
  61595. message.lock = Boolean(object.lock);
  61596. if (object.award != null)
  61597. if ($util.Long)
  61598. (message.award = $util.Long.fromValue(object.award)).unsigned = false;
  61599. else if (typeof object.award === "string")
  61600. message.award = parseInt(object.award, 10);
  61601. else if (typeof object.award === "number")
  61602. message.award = object.award;
  61603. else if (typeof object.award === "object")
  61604. message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
  61605. return message;
  61606. };
  61607. /**
  61608. * Creates a plain object from a manual message. Also converts values to other types if specified.
  61609. * @function toObject
  61610. * @memberof game.manual
  61611. * @static
  61612. * @param {game.manual} message manual
  61613. * @param {$protobuf.IConversionOptions} [options] Conversion options
  61614. * @returns {Object.<string,*>} Plain object
  61615. */
  61616. manual.toObject = function toObject(message, options) {
  61617. if (!options)
  61618. options = {};
  61619. let object = {};
  61620. if (options.defaults) {
  61621. object.lock = false;
  61622. if ($util.Long) {
  61623. let long = new $util.Long(0, 0, false);
  61624. object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  61625. } else
  61626. object.award = options.longs === String ? "0" : 0;
  61627. }
  61628. if (message.lock != null && message.hasOwnProperty("lock"))
  61629. object.lock = message.lock;
  61630. if (message.award != null && message.hasOwnProperty("award"))
  61631. if (typeof message.award === "number")
  61632. object.award = options.longs === String ? String(message.award) : message.award;
  61633. else
  61634. 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;
  61635. return object;
  61636. };
  61637. /**
  61638. * Converts this manual to JSON.
  61639. * @function toJSON
  61640. * @memberof game.manual
  61641. * @instance
  61642. * @returns {Object.<string,*>} JSON object
  61643. */
  61644. manual.prototype.toJSON = function toJSON() {
  61645. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  61646. };
  61647. return manual;
  61648. })();
  61649. game.draw_award_info = (function() {
  61650. /**
  61651. * Properties of a draw_award_info.
  61652. * @memberof game
  61653. * @interface Idraw_award_info
  61654. * @property {number|Long|null} [id] draw_award_info id
  61655. * @property {number|Long|null} [num] draw_award_info num
  61656. * @property {number|Long|null} [quality] draw_award_info quality
  61657. */
  61658. /**
  61659. * Constructs a new draw_award_info.
  61660. * @memberof game
  61661. * @classdesc Represents a draw_award_info.
  61662. * @implements Idraw_award_info
  61663. * @constructor
  61664. * @param {game.Idraw_award_info=} [properties] Properties to set
  61665. */
  61666. function draw_award_info(properties) {
  61667. if (properties)
  61668. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  61669. if (properties[keys[i]] != null)
  61670. this[keys[i]] = properties[keys[i]];
  61671. }
  61672. /**
  61673. * draw_award_info id.
  61674. * @member {number|Long} id
  61675. * @memberof game.draw_award_info
  61676. * @instance
  61677. */
  61678. draw_award_info.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  61679. /**
  61680. * draw_award_info num.
  61681. * @member {number|Long} num
  61682. * @memberof game.draw_award_info
  61683. * @instance
  61684. */
  61685. draw_award_info.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  61686. /**
  61687. * draw_award_info quality.
  61688. * @member {number|Long} quality
  61689. * @memberof game.draw_award_info
  61690. * @instance
  61691. */
  61692. draw_award_info.prototype.quality = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  61693. /**
  61694. * Creates a new draw_award_info instance using the specified properties.
  61695. * @function create
  61696. * @memberof game.draw_award_info
  61697. * @static
  61698. * @param {game.Idraw_award_info=} [properties] Properties to set
  61699. * @returns {game.draw_award_info} draw_award_info instance
  61700. */
  61701. draw_award_info.create = function create(properties) {
  61702. return new draw_award_info(properties);
  61703. };
  61704. /**
  61705. * Encodes the specified draw_award_info message. Does not implicitly {@link game.draw_award_info.verify|verify} messages.
  61706. * @function encode
  61707. * @memberof game.draw_award_info
  61708. * @static
  61709. * @param {game.Idraw_award_info} message draw_award_info message or plain object to encode
  61710. * @param {$protobuf.Writer} [writer] Writer to encode to
  61711. * @returns {$protobuf.Writer} Writer
  61712. */
  61713. draw_award_info.encode = function encode(message, writer) {
  61714. if (!writer)
  61715. writer = $Writer.create();
  61716. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  61717. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  61718. if (message.num != null && Object.hasOwnProperty.call(message, "num"))
  61719. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.num);
  61720. if (message.quality != null && Object.hasOwnProperty.call(message, "quality"))
  61721. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.quality);
  61722. return writer;
  61723. };
  61724. /**
  61725. * Encodes the specified draw_award_info message, length delimited. Does not implicitly {@link game.draw_award_info.verify|verify} messages.
  61726. * @function encodeDelimited
  61727. * @memberof game.draw_award_info
  61728. * @static
  61729. * @param {game.Idraw_award_info} message draw_award_info message or plain object to encode
  61730. * @param {$protobuf.Writer} [writer] Writer to encode to
  61731. * @returns {$protobuf.Writer} Writer
  61732. */
  61733. draw_award_info.encodeDelimited = function encodeDelimited(message, writer) {
  61734. return this.encode(message, writer).ldelim();
  61735. };
  61736. /**
  61737. * Decodes a draw_award_info message from the specified reader or buffer.
  61738. * @function decode
  61739. * @memberof game.draw_award_info
  61740. * @static
  61741. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  61742. * @param {number} [length] Message length if known beforehand
  61743. * @returns {game.draw_award_info} draw_award_info
  61744. * @throws {Error} If the payload is not a reader or valid buffer
  61745. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  61746. */
  61747. draw_award_info.decode = function decode(reader, length) {
  61748. if (!(reader instanceof $Reader))
  61749. reader = $Reader.create(reader);
  61750. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.draw_award_info();
  61751. while (reader.pos < end) {
  61752. let tag = reader.uint32();
  61753. switch (tag >>> 3) {
  61754. case 1:
  61755. message.id = reader.int64();
  61756. break;
  61757. case 2:
  61758. message.num = reader.int64();
  61759. break;
  61760. case 3:
  61761. message.quality = reader.int64();
  61762. break;
  61763. default:
  61764. reader.skipType(tag & 7);
  61765. break;
  61766. }
  61767. }
  61768. return message;
  61769. };
  61770. /**
  61771. * Decodes a draw_award_info message from the specified reader or buffer, length delimited.
  61772. * @function decodeDelimited
  61773. * @memberof game.draw_award_info
  61774. * @static
  61775. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  61776. * @returns {game.draw_award_info} draw_award_info
  61777. * @throws {Error} If the payload is not a reader or valid buffer
  61778. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  61779. */
  61780. draw_award_info.decodeDelimited = function decodeDelimited(reader) {
  61781. if (!(reader instanceof $Reader))
  61782. reader = new $Reader(reader);
  61783. return this.decode(reader, reader.uint32());
  61784. };
  61785. /**
  61786. * Verifies a draw_award_info message.
  61787. * @function verify
  61788. * @memberof game.draw_award_info
  61789. * @static
  61790. * @param {Object.<string,*>} message Plain object to verify
  61791. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  61792. */
  61793. draw_award_info.verify = function verify(message) {
  61794. if (typeof message !== "object" || message === null)
  61795. return "object expected";
  61796. if (message.id != null && message.hasOwnProperty("id"))
  61797. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  61798. return "id: integer|Long expected";
  61799. if (message.num != null && message.hasOwnProperty("num"))
  61800. if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
  61801. return "num: integer|Long expected";
  61802. if (message.quality != null && message.hasOwnProperty("quality"))
  61803. if (!$util.isInteger(message.quality) && !(message.quality && $util.isInteger(message.quality.low) && $util.isInteger(message.quality.high)))
  61804. return "quality: integer|Long expected";
  61805. return null;
  61806. };
  61807. /**
  61808. * Creates a draw_award_info message from a plain object. Also converts values to their respective internal types.
  61809. * @function fromObject
  61810. * @memberof game.draw_award_info
  61811. * @static
  61812. * @param {Object.<string,*>} object Plain object
  61813. * @returns {game.draw_award_info} draw_award_info
  61814. */
  61815. draw_award_info.fromObject = function fromObject(object) {
  61816. if (object instanceof $root.game.draw_award_info)
  61817. return object;
  61818. let message = new $root.game.draw_award_info();
  61819. if (object.id != null)
  61820. if ($util.Long)
  61821. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  61822. else if (typeof object.id === "string")
  61823. message.id = parseInt(object.id, 10);
  61824. else if (typeof object.id === "number")
  61825. message.id = object.id;
  61826. else if (typeof object.id === "object")
  61827. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  61828. if (object.num != null)
  61829. if ($util.Long)
  61830. (message.num = $util.Long.fromValue(object.num)).unsigned = false;
  61831. else if (typeof object.num === "string")
  61832. message.num = parseInt(object.num, 10);
  61833. else if (typeof object.num === "number")
  61834. message.num = object.num;
  61835. else if (typeof object.num === "object")
  61836. message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
  61837. if (object.quality != null)
  61838. if ($util.Long)
  61839. (message.quality = $util.Long.fromValue(object.quality)).unsigned = false;
  61840. else if (typeof object.quality === "string")
  61841. message.quality = parseInt(object.quality, 10);
  61842. else if (typeof object.quality === "number")
  61843. message.quality = object.quality;
  61844. else if (typeof object.quality === "object")
  61845. message.quality = new $util.LongBits(object.quality.low >>> 0, object.quality.high >>> 0).toNumber();
  61846. return message;
  61847. };
  61848. /**
  61849. * Creates a plain object from a draw_award_info message. Also converts values to other types if specified.
  61850. * @function toObject
  61851. * @memberof game.draw_award_info
  61852. * @static
  61853. * @param {game.draw_award_info} message draw_award_info
  61854. * @param {$protobuf.IConversionOptions} [options] Conversion options
  61855. * @returns {Object.<string,*>} Plain object
  61856. */
  61857. draw_award_info.toObject = function toObject(message, options) {
  61858. if (!options)
  61859. options = {};
  61860. let object = {};
  61861. if (options.defaults) {
  61862. if ($util.Long) {
  61863. let long = new $util.Long(0, 0, false);
  61864. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  61865. } else
  61866. object.id = options.longs === String ? "0" : 0;
  61867. if ($util.Long) {
  61868. let long = new $util.Long(0, 0, false);
  61869. object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  61870. } else
  61871. object.num = options.longs === String ? "0" : 0;
  61872. if ($util.Long) {
  61873. let long = new $util.Long(0, 0, false);
  61874. object.quality = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  61875. } else
  61876. object.quality = options.longs === String ? "0" : 0;
  61877. }
  61878. if (message.id != null && message.hasOwnProperty("id"))
  61879. if (typeof message.id === "number")
  61880. object.id = options.longs === String ? String(message.id) : message.id;
  61881. else
  61882. 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;
  61883. if (message.num != null && message.hasOwnProperty("num"))
  61884. if (typeof message.num === "number")
  61885. object.num = options.longs === String ? String(message.num) : message.num;
  61886. else
  61887. 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;
  61888. if (message.quality != null && message.hasOwnProperty("quality"))
  61889. if (typeof message.quality === "number")
  61890. object.quality = options.longs === String ? String(message.quality) : message.quality;
  61891. else
  61892. 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;
  61893. return object;
  61894. };
  61895. /**
  61896. * Converts this draw_award_info to JSON.
  61897. * @function toJSON
  61898. * @memberof game.draw_award_info
  61899. * @instance
  61900. * @returns {Object.<string,*>} JSON object
  61901. */
  61902. draw_award_info.prototype.toJSON = function toJSON() {
  61903. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  61904. };
  61905. return draw_award_info;
  61906. })();
  61907. game.draw_info = (function() {
  61908. /**
  61909. * Properties of a draw_info.
  61910. * @memberof game
  61911. * @interface Idraw_info
  61912. * @property {number|Long|null} [daily] draw_info daily
  61913. * @property {number|Long|null} [free] draw_info free
  61914. * @property {Array.<number|Long>|null} [list] draw_info list
  61915. */
  61916. /**
  61917. * Constructs a new draw_info.
  61918. * @memberof game
  61919. * @classdesc Represents a draw_info.
  61920. * @implements Idraw_info
  61921. * @constructor
  61922. * @param {game.Idraw_info=} [properties] Properties to set
  61923. */
  61924. function draw_info(properties) {
  61925. this.list = [];
  61926. if (properties)
  61927. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  61928. if (properties[keys[i]] != null)
  61929. this[keys[i]] = properties[keys[i]];
  61930. }
  61931. /**
  61932. * draw_info daily.
  61933. * @member {number|Long} daily
  61934. * @memberof game.draw_info
  61935. * @instance
  61936. */
  61937. draw_info.prototype.daily = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  61938. /**
  61939. * draw_info free.
  61940. * @member {number|Long} free
  61941. * @memberof game.draw_info
  61942. * @instance
  61943. */
  61944. draw_info.prototype.free = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  61945. /**
  61946. * draw_info list.
  61947. * @member {Array.<number|Long>} list
  61948. * @memberof game.draw_info
  61949. * @instance
  61950. */
  61951. draw_info.prototype.list = $util.emptyArray;
  61952. /**
  61953. * Creates a new draw_info instance using the specified properties.
  61954. * @function create
  61955. * @memberof game.draw_info
  61956. * @static
  61957. * @param {game.Idraw_info=} [properties] Properties to set
  61958. * @returns {game.draw_info} draw_info instance
  61959. */
  61960. draw_info.create = function create(properties) {
  61961. return new draw_info(properties);
  61962. };
  61963. /**
  61964. * Encodes the specified draw_info message. Does not implicitly {@link game.draw_info.verify|verify} messages.
  61965. * @function encode
  61966. * @memberof game.draw_info
  61967. * @static
  61968. * @param {game.Idraw_info} message draw_info message or plain object to encode
  61969. * @param {$protobuf.Writer} [writer] Writer to encode to
  61970. * @returns {$protobuf.Writer} Writer
  61971. */
  61972. draw_info.encode = function encode(message, writer) {
  61973. if (!writer)
  61974. writer = $Writer.create();
  61975. if (message.daily != null && Object.hasOwnProperty.call(message, "daily"))
  61976. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.daily);
  61977. if (message.free != null && Object.hasOwnProperty.call(message, "free"))
  61978. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.free);
  61979. if (message.list != null && message.list.length) {
  61980. writer.uint32(/* id 3, wireType 2 =*/26).fork();
  61981. for (let i = 0; i < message.list.length; ++i)
  61982. writer.int64(message.list[i]);
  61983. writer.ldelim();
  61984. }
  61985. return writer;
  61986. };
  61987. /**
  61988. * Encodes the specified draw_info message, length delimited. Does not implicitly {@link game.draw_info.verify|verify} messages.
  61989. * @function encodeDelimited
  61990. * @memberof game.draw_info
  61991. * @static
  61992. * @param {game.Idraw_info} message draw_info message or plain object to encode
  61993. * @param {$protobuf.Writer} [writer] Writer to encode to
  61994. * @returns {$protobuf.Writer} Writer
  61995. */
  61996. draw_info.encodeDelimited = function encodeDelimited(message, writer) {
  61997. return this.encode(message, writer).ldelim();
  61998. };
  61999. /**
  62000. * Decodes a draw_info message from the specified reader or buffer.
  62001. * @function decode
  62002. * @memberof game.draw_info
  62003. * @static
  62004. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  62005. * @param {number} [length] Message length if known beforehand
  62006. * @returns {game.draw_info} draw_info
  62007. * @throws {Error} If the payload is not a reader or valid buffer
  62008. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  62009. */
  62010. draw_info.decode = function decode(reader, length) {
  62011. if (!(reader instanceof $Reader))
  62012. reader = $Reader.create(reader);
  62013. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.draw_info();
  62014. while (reader.pos < end) {
  62015. let tag = reader.uint32();
  62016. switch (tag >>> 3) {
  62017. case 1:
  62018. message.daily = reader.int64();
  62019. break;
  62020. case 2:
  62021. message.free = reader.int64();
  62022. break;
  62023. case 3:
  62024. if (!(message.list && message.list.length))
  62025. message.list = [];
  62026. if ((tag & 7) === 2) {
  62027. let end2 = reader.uint32() + reader.pos;
  62028. while (reader.pos < end2)
  62029. message.list.push(reader.int64());
  62030. } else
  62031. message.list.push(reader.int64());
  62032. break;
  62033. default:
  62034. reader.skipType(tag & 7);
  62035. break;
  62036. }
  62037. }
  62038. return message;
  62039. };
  62040. /**
  62041. * Decodes a draw_info message from the specified reader or buffer, length delimited.
  62042. * @function decodeDelimited
  62043. * @memberof game.draw_info
  62044. * @static
  62045. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  62046. * @returns {game.draw_info} draw_info
  62047. * @throws {Error} If the payload is not a reader or valid buffer
  62048. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  62049. */
  62050. draw_info.decodeDelimited = function decodeDelimited(reader) {
  62051. if (!(reader instanceof $Reader))
  62052. reader = new $Reader(reader);
  62053. return this.decode(reader, reader.uint32());
  62054. };
  62055. /**
  62056. * Verifies a draw_info message.
  62057. * @function verify
  62058. * @memberof game.draw_info
  62059. * @static
  62060. * @param {Object.<string,*>} message Plain object to verify
  62061. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  62062. */
  62063. draw_info.verify = function verify(message) {
  62064. if (typeof message !== "object" || message === null)
  62065. return "object expected";
  62066. if (message.daily != null && message.hasOwnProperty("daily"))
  62067. if (!$util.isInteger(message.daily) && !(message.daily && $util.isInteger(message.daily.low) && $util.isInteger(message.daily.high)))
  62068. return "daily: integer|Long expected";
  62069. if (message.free != null && message.hasOwnProperty("free"))
  62070. if (!$util.isInteger(message.free) && !(message.free && $util.isInteger(message.free.low) && $util.isInteger(message.free.high)))
  62071. return "free: integer|Long expected";
  62072. if (message.list != null && message.hasOwnProperty("list")) {
  62073. if (!Array.isArray(message.list))
  62074. return "list: array expected";
  62075. for (let i = 0; i < message.list.length; ++i)
  62076. if (!$util.isInteger(message.list[i]) && !(message.list[i] && $util.isInteger(message.list[i].low) && $util.isInteger(message.list[i].high)))
  62077. return "list: integer|Long[] expected";
  62078. }
  62079. return null;
  62080. };
  62081. /**
  62082. * Creates a draw_info message from a plain object. Also converts values to their respective internal types.
  62083. * @function fromObject
  62084. * @memberof game.draw_info
  62085. * @static
  62086. * @param {Object.<string,*>} object Plain object
  62087. * @returns {game.draw_info} draw_info
  62088. */
  62089. draw_info.fromObject = function fromObject(object) {
  62090. if (object instanceof $root.game.draw_info)
  62091. return object;
  62092. let message = new $root.game.draw_info();
  62093. if (object.daily != null)
  62094. if ($util.Long)
  62095. (message.daily = $util.Long.fromValue(object.daily)).unsigned = false;
  62096. else if (typeof object.daily === "string")
  62097. message.daily = parseInt(object.daily, 10);
  62098. else if (typeof object.daily === "number")
  62099. message.daily = object.daily;
  62100. else if (typeof object.daily === "object")
  62101. message.daily = new $util.LongBits(object.daily.low >>> 0, object.daily.high >>> 0).toNumber();
  62102. if (object.free != null)
  62103. if ($util.Long)
  62104. (message.free = $util.Long.fromValue(object.free)).unsigned = false;
  62105. else if (typeof object.free === "string")
  62106. message.free = parseInt(object.free, 10);
  62107. else if (typeof object.free === "number")
  62108. message.free = object.free;
  62109. else if (typeof object.free === "object")
  62110. message.free = new $util.LongBits(object.free.low >>> 0, object.free.high >>> 0).toNumber();
  62111. if (object.list) {
  62112. if (!Array.isArray(object.list))
  62113. throw TypeError(".game.draw_info.list: array expected");
  62114. message.list = [];
  62115. for (let i = 0; i < object.list.length; ++i)
  62116. if ($util.Long)
  62117. (message.list[i] = $util.Long.fromValue(object.list[i])).unsigned = false;
  62118. else if (typeof object.list[i] === "string")
  62119. message.list[i] = parseInt(object.list[i], 10);
  62120. else if (typeof object.list[i] === "number")
  62121. message.list[i] = object.list[i];
  62122. else if (typeof object.list[i] === "object")
  62123. message.list[i] = new $util.LongBits(object.list[i].low >>> 0, object.list[i].high >>> 0).toNumber();
  62124. }
  62125. return message;
  62126. };
  62127. /**
  62128. * Creates a plain object from a draw_info message. Also converts values to other types if specified.
  62129. * @function toObject
  62130. * @memberof game.draw_info
  62131. * @static
  62132. * @param {game.draw_info} message draw_info
  62133. * @param {$protobuf.IConversionOptions} [options] Conversion options
  62134. * @returns {Object.<string,*>} Plain object
  62135. */
  62136. draw_info.toObject = function toObject(message, options) {
  62137. if (!options)
  62138. options = {};
  62139. let object = {};
  62140. if (options.arrays || options.defaults)
  62141. object.list = [];
  62142. if (options.defaults) {
  62143. if ($util.Long) {
  62144. let long = new $util.Long(0, 0, false);
  62145. object.daily = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  62146. } else
  62147. object.daily = options.longs === String ? "0" : 0;
  62148. if ($util.Long) {
  62149. let long = new $util.Long(0, 0, false);
  62150. object.free = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  62151. } else
  62152. object.free = options.longs === String ? "0" : 0;
  62153. }
  62154. if (message.daily != null && message.hasOwnProperty("daily"))
  62155. if (typeof message.daily === "number")
  62156. object.daily = options.longs === String ? String(message.daily) : message.daily;
  62157. else
  62158. 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;
  62159. if (message.free != null && message.hasOwnProperty("free"))
  62160. if (typeof message.free === "number")
  62161. object.free = options.longs === String ? String(message.free) : message.free;
  62162. else
  62163. 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;
  62164. if (message.list && message.list.length) {
  62165. object.list = [];
  62166. for (let j = 0; j < message.list.length; ++j)
  62167. if (typeof message.list[j] === "number")
  62168. object.list[j] = options.longs === String ? String(message.list[j]) : message.list[j];
  62169. else
  62170. 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];
  62171. }
  62172. return object;
  62173. };
  62174. /**
  62175. * Converts this draw_info to JSON.
  62176. * @function toJSON
  62177. * @memberof game.draw_info
  62178. * @instance
  62179. * @returns {Object.<string,*>} JSON object
  62180. */
  62181. draw_info.prototype.toJSON = function toJSON() {
  62182. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  62183. };
  62184. return draw_info;
  62185. })();
  62186. game.shop_info = (function() {
  62187. /**
  62188. * Properties of a shop_info.
  62189. * @memberof game
  62190. * @interface Ishop_info
  62191. * @property {number|Long|null} [type] shop_info type
  62192. * @property {Array.<game.Iid_num>|null} [list] shop_info list
  62193. */
  62194. /**
  62195. * Constructs a new shop_info.
  62196. * @memberof game
  62197. * @classdesc Represents a shop_info.
  62198. * @implements Ishop_info
  62199. * @constructor
  62200. * @param {game.Ishop_info=} [properties] Properties to set
  62201. */
  62202. function shop_info(properties) {
  62203. this.list = [];
  62204. if (properties)
  62205. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  62206. if (properties[keys[i]] != null)
  62207. this[keys[i]] = properties[keys[i]];
  62208. }
  62209. /**
  62210. * shop_info type.
  62211. * @member {number|Long} type
  62212. * @memberof game.shop_info
  62213. * @instance
  62214. */
  62215. shop_info.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  62216. /**
  62217. * shop_info list.
  62218. * @member {Array.<game.Iid_num>} list
  62219. * @memberof game.shop_info
  62220. * @instance
  62221. */
  62222. shop_info.prototype.list = $util.emptyArray;
  62223. /**
  62224. * Creates a new shop_info instance using the specified properties.
  62225. * @function create
  62226. * @memberof game.shop_info
  62227. * @static
  62228. * @param {game.Ishop_info=} [properties] Properties to set
  62229. * @returns {game.shop_info} shop_info instance
  62230. */
  62231. shop_info.create = function create(properties) {
  62232. return new shop_info(properties);
  62233. };
  62234. /**
  62235. * Encodes the specified shop_info message. Does not implicitly {@link game.shop_info.verify|verify} messages.
  62236. * @function encode
  62237. * @memberof game.shop_info
  62238. * @static
  62239. * @param {game.Ishop_info} message shop_info message or plain object to encode
  62240. * @param {$protobuf.Writer} [writer] Writer to encode to
  62241. * @returns {$protobuf.Writer} Writer
  62242. */
  62243. shop_info.encode = function encode(message, writer) {
  62244. if (!writer)
  62245. writer = $Writer.create();
  62246. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  62247. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
  62248. if (message.list != null && message.list.length)
  62249. for (let i = 0; i < message.list.length; ++i)
  62250. $root.game.id_num.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  62251. return writer;
  62252. };
  62253. /**
  62254. * Encodes the specified shop_info message, length delimited. Does not implicitly {@link game.shop_info.verify|verify} messages.
  62255. * @function encodeDelimited
  62256. * @memberof game.shop_info
  62257. * @static
  62258. * @param {game.Ishop_info} message shop_info message or plain object to encode
  62259. * @param {$protobuf.Writer} [writer] Writer to encode to
  62260. * @returns {$protobuf.Writer} Writer
  62261. */
  62262. shop_info.encodeDelimited = function encodeDelimited(message, writer) {
  62263. return this.encode(message, writer).ldelim();
  62264. };
  62265. /**
  62266. * Decodes a shop_info message from the specified reader or buffer.
  62267. * @function decode
  62268. * @memberof game.shop_info
  62269. * @static
  62270. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  62271. * @param {number} [length] Message length if known beforehand
  62272. * @returns {game.shop_info} shop_info
  62273. * @throws {Error} If the payload is not a reader or valid buffer
  62274. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  62275. */
  62276. shop_info.decode = function decode(reader, length) {
  62277. if (!(reader instanceof $Reader))
  62278. reader = $Reader.create(reader);
  62279. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.shop_info();
  62280. while (reader.pos < end) {
  62281. let tag = reader.uint32();
  62282. switch (tag >>> 3) {
  62283. case 1:
  62284. message.type = reader.int64();
  62285. break;
  62286. case 2:
  62287. if (!(message.list && message.list.length))
  62288. message.list = [];
  62289. message.list.push($root.game.id_num.decode(reader, reader.uint32()));
  62290. break;
  62291. default:
  62292. reader.skipType(tag & 7);
  62293. break;
  62294. }
  62295. }
  62296. return message;
  62297. };
  62298. /**
  62299. * Decodes a shop_info message from the specified reader or buffer, length delimited.
  62300. * @function decodeDelimited
  62301. * @memberof game.shop_info
  62302. * @static
  62303. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  62304. * @returns {game.shop_info} shop_info
  62305. * @throws {Error} If the payload is not a reader or valid buffer
  62306. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  62307. */
  62308. shop_info.decodeDelimited = function decodeDelimited(reader) {
  62309. if (!(reader instanceof $Reader))
  62310. reader = new $Reader(reader);
  62311. return this.decode(reader, reader.uint32());
  62312. };
  62313. /**
  62314. * Verifies a shop_info message.
  62315. * @function verify
  62316. * @memberof game.shop_info
  62317. * @static
  62318. * @param {Object.<string,*>} message Plain object to verify
  62319. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  62320. */
  62321. shop_info.verify = function verify(message) {
  62322. if (typeof message !== "object" || message === null)
  62323. return "object expected";
  62324. if (message.type != null && message.hasOwnProperty("type"))
  62325. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  62326. return "type: integer|Long expected";
  62327. if (message.list != null && message.hasOwnProperty("list")) {
  62328. if (!Array.isArray(message.list))
  62329. return "list: array expected";
  62330. for (let i = 0; i < message.list.length; ++i) {
  62331. let error = $root.game.id_num.verify(message.list[i]);
  62332. if (error)
  62333. return "list." + error;
  62334. }
  62335. }
  62336. return null;
  62337. };
  62338. /**
  62339. * Creates a shop_info message from a plain object. Also converts values to their respective internal types.
  62340. * @function fromObject
  62341. * @memberof game.shop_info
  62342. * @static
  62343. * @param {Object.<string,*>} object Plain object
  62344. * @returns {game.shop_info} shop_info
  62345. */
  62346. shop_info.fromObject = function fromObject(object) {
  62347. if (object instanceof $root.game.shop_info)
  62348. return object;
  62349. let message = new $root.game.shop_info();
  62350. if (object.type != null)
  62351. if ($util.Long)
  62352. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  62353. else if (typeof object.type === "string")
  62354. message.type = parseInt(object.type, 10);
  62355. else if (typeof object.type === "number")
  62356. message.type = object.type;
  62357. else if (typeof object.type === "object")
  62358. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  62359. if (object.list) {
  62360. if (!Array.isArray(object.list))
  62361. throw TypeError(".game.shop_info.list: array expected");
  62362. message.list = [];
  62363. for (let i = 0; i < object.list.length; ++i) {
  62364. if (typeof object.list[i] !== "object")
  62365. throw TypeError(".game.shop_info.list: object expected");
  62366. message.list[i] = $root.game.id_num.fromObject(object.list[i]);
  62367. }
  62368. }
  62369. return message;
  62370. };
  62371. /**
  62372. * Creates a plain object from a shop_info message. Also converts values to other types if specified.
  62373. * @function toObject
  62374. * @memberof game.shop_info
  62375. * @static
  62376. * @param {game.shop_info} message shop_info
  62377. * @param {$protobuf.IConversionOptions} [options] Conversion options
  62378. * @returns {Object.<string,*>} Plain object
  62379. */
  62380. shop_info.toObject = function toObject(message, options) {
  62381. if (!options)
  62382. options = {};
  62383. let object = {};
  62384. if (options.arrays || options.defaults)
  62385. object.list = [];
  62386. if (options.defaults)
  62387. if ($util.Long) {
  62388. let long = new $util.Long(0, 0, false);
  62389. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  62390. } else
  62391. object.type = options.longs === String ? "0" : 0;
  62392. if (message.type != null && message.hasOwnProperty("type"))
  62393. if (typeof message.type === "number")
  62394. object.type = options.longs === String ? String(message.type) : message.type;
  62395. else
  62396. 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;
  62397. if (message.list && message.list.length) {
  62398. object.list = [];
  62399. for (let j = 0; j < message.list.length; ++j)
  62400. object.list[j] = $root.game.id_num.toObject(message.list[j], options);
  62401. }
  62402. return object;
  62403. };
  62404. /**
  62405. * Converts this shop_info to JSON.
  62406. * @function toJSON
  62407. * @memberof game.shop_info
  62408. * @instance
  62409. * @returns {Object.<string,*>} JSON object
  62410. */
  62411. shop_info.prototype.toJSON = function toJSON() {
  62412. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  62413. };
  62414. return shop_info;
  62415. })();
  62416. game.role_info = (function() {
  62417. /**
  62418. * Properties of a role_info.
  62419. * @memberof game
  62420. * @interface Irole_info
  62421. * @property {string|null} [uid] role_info uid
  62422. * @property {string|null} [nickname] role_info nickname
  62423. * @property {number|Long|null} [avatar] role_info avatar
  62424. * @property {number|Long|null} [level] role_info level
  62425. */
  62426. /**
  62427. * Constructs a new role_info.
  62428. * @memberof game
  62429. * @classdesc Represents a role_info.
  62430. * @implements Irole_info
  62431. * @constructor
  62432. * @param {game.Irole_info=} [properties] Properties to set
  62433. */
  62434. function role_info(properties) {
  62435. if (properties)
  62436. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  62437. if (properties[keys[i]] != null)
  62438. this[keys[i]] = properties[keys[i]];
  62439. }
  62440. /**
  62441. * role_info uid.
  62442. * @member {string} uid
  62443. * @memberof game.role_info
  62444. * @instance
  62445. */
  62446. role_info.prototype.uid = "";
  62447. /**
  62448. * role_info nickname.
  62449. * @member {string} nickname
  62450. * @memberof game.role_info
  62451. * @instance
  62452. */
  62453. role_info.prototype.nickname = "";
  62454. /**
  62455. * role_info avatar.
  62456. * @member {number|Long} avatar
  62457. * @memberof game.role_info
  62458. * @instance
  62459. */
  62460. role_info.prototype.avatar = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  62461. /**
  62462. * role_info level.
  62463. * @member {number|Long} level
  62464. * @memberof game.role_info
  62465. * @instance
  62466. */
  62467. role_info.prototype.level = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  62468. /**
  62469. * Creates a new role_info instance using the specified properties.
  62470. * @function create
  62471. * @memberof game.role_info
  62472. * @static
  62473. * @param {game.Irole_info=} [properties] Properties to set
  62474. * @returns {game.role_info} role_info instance
  62475. */
  62476. role_info.create = function create(properties) {
  62477. return new role_info(properties);
  62478. };
  62479. /**
  62480. * Encodes the specified role_info message. Does not implicitly {@link game.role_info.verify|verify} messages.
  62481. * @function encode
  62482. * @memberof game.role_info
  62483. * @static
  62484. * @param {game.Irole_info} message role_info message or plain object to encode
  62485. * @param {$protobuf.Writer} [writer] Writer to encode to
  62486. * @returns {$protobuf.Writer} Writer
  62487. */
  62488. role_info.encode = function encode(message, writer) {
  62489. if (!writer)
  62490. writer = $Writer.create();
  62491. if (message.uid != null && Object.hasOwnProperty.call(message, "uid"))
  62492. writer.uint32(/* id 1, wireType 2 =*/10).string(message.uid);
  62493. if (message.nickname != null && Object.hasOwnProperty.call(message, "nickname"))
  62494. writer.uint32(/* id 2, wireType 2 =*/18).string(message.nickname);
  62495. if (message.avatar != null && Object.hasOwnProperty.call(message, "avatar"))
  62496. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.avatar);
  62497. if (message.level != null && Object.hasOwnProperty.call(message, "level"))
  62498. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.level);
  62499. return writer;
  62500. };
  62501. /**
  62502. * Encodes the specified role_info message, length delimited. Does not implicitly {@link game.role_info.verify|verify} messages.
  62503. * @function encodeDelimited
  62504. * @memberof game.role_info
  62505. * @static
  62506. * @param {game.Irole_info} message role_info message or plain object to encode
  62507. * @param {$protobuf.Writer} [writer] Writer to encode to
  62508. * @returns {$protobuf.Writer} Writer
  62509. */
  62510. role_info.encodeDelimited = function encodeDelimited(message, writer) {
  62511. return this.encode(message, writer).ldelim();
  62512. };
  62513. /**
  62514. * Decodes a role_info message from the specified reader or buffer.
  62515. * @function decode
  62516. * @memberof game.role_info
  62517. * @static
  62518. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  62519. * @param {number} [length] Message length if known beforehand
  62520. * @returns {game.role_info} role_info
  62521. * @throws {Error} If the payload is not a reader or valid buffer
  62522. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  62523. */
  62524. role_info.decode = function decode(reader, length) {
  62525. if (!(reader instanceof $Reader))
  62526. reader = $Reader.create(reader);
  62527. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.role_info();
  62528. while (reader.pos < end) {
  62529. let tag = reader.uint32();
  62530. switch (tag >>> 3) {
  62531. case 1:
  62532. message.uid = reader.string();
  62533. break;
  62534. case 2:
  62535. message.nickname = reader.string();
  62536. break;
  62537. case 3:
  62538. message.avatar = reader.int64();
  62539. break;
  62540. case 4:
  62541. message.level = reader.int64();
  62542. break;
  62543. default:
  62544. reader.skipType(tag & 7);
  62545. break;
  62546. }
  62547. }
  62548. return message;
  62549. };
  62550. /**
  62551. * Decodes a role_info message from the specified reader or buffer, length delimited.
  62552. * @function decodeDelimited
  62553. * @memberof game.role_info
  62554. * @static
  62555. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  62556. * @returns {game.role_info} role_info
  62557. * @throws {Error} If the payload is not a reader or valid buffer
  62558. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  62559. */
  62560. role_info.decodeDelimited = function decodeDelimited(reader) {
  62561. if (!(reader instanceof $Reader))
  62562. reader = new $Reader(reader);
  62563. return this.decode(reader, reader.uint32());
  62564. };
  62565. /**
  62566. * Verifies a role_info message.
  62567. * @function verify
  62568. * @memberof game.role_info
  62569. * @static
  62570. * @param {Object.<string,*>} message Plain object to verify
  62571. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  62572. */
  62573. role_info.verify = function verify(message) {
  62574. if (typeof message !== "object" || message === null)
  62575. return "object expected";
  62576. if (message.uid != null && message.hasOwnProperty("uid"))
  62577. if (!$util.isString(message.uid))
  62578. return "uid: string expected";
  62579. if (message.nickname != null && message.hasOwnProperty("nickname"))
  62580. if (!$util.isString(message.nickname))
  62581. return "nickname: string expected";
  62582. if (message.avatar != null && message.hasOwnProperty("avatar"))
  62583. if (!$util.isInteger(message.avatar) && !(message.avatar && $util.isInteger(message.avatar.low) && $util.isInteger(message.avatar.high)))
  62584. return "avatar: integer|Long expected";
  62585. if (message.level != null && message.hasOwnProperty("level"))
  62586. if (!$util.isInteger(message.level) && !(message.level && $util.isInteger(message.level.low) && $util.isInteger(message.level.high)))
  62587. return "level: integer|Long expected";
  62588. return null;
  62589. };
  62590. /**
  62591. * Creates a role_info message from a plain object. Also converts values to their respective internal types.
  62592. * @function fromObject
  62593. * @memberof game.role_info
  62594. * @static
  62595. * @param {Object.<string,*>} object Plain object
  62596. * @returns {game.role_info} role_info
  62597. */
  62598. role_info.fromObject = function fromObject(object) {
  62599. if (object instanceof $root.game.role_info)
  62600. return object;
  62601. let message = new $root.game.role_info();
  62602. if (object.uid != null)
  62603. message.uid = String(object.uid);
  62604. if (object.nickname != null)
  62605. message.nickname = String(object.nickname);
  62606. if (object.avatar != null)
  62607. if ($util.Long)
  62608. (message.avatar = $util.Long.fromValue(object.avatar)).unsigned = false;
  62609. else if (typeof object.avatar === "string")
  62610. message.avatar = parseInt(object.avatar, 10);
  62611. else if (typeof object.avatar === "number")
  62612. message.avatar = object.avatar;
  62613. else if (typeof object.avatar === "object")
  62614. message.avatar = new $util.LongBits(object.avatar.low >>> 0, object.avatar.high >>> 0).toNumber();
  62615. if (object.level != null)
  62616. if ($util.Long)
  62617. (message.level = $util.Long.fromValue(object.level)).unsigned = false;
  62618. else if (typeof object.level === "string")
  62619. message.level = parseInt(object.level, 10);
  62620. else if (typeof object.level === "number")
  62621. message.level = object.level;
  62622. else if (typeof object.level === "object")
  62623. message.level = new $util.LongBits(object.level.low >>> 0, object.level.high >>> 0).toNumber();
  62624. return message;
  62625. };
  62626. /**
  62627. * Creates a plain object from a role_info message. Also converts values to other types if specified.
  62628. * @function toObject
  62629. * @memberof game.role_info
  62630. * @static
  62631. * @param {game.role_info} message role_info
  62632. * @param {$protobuf.IConversionOptions} [options] Conversion options
  62633. * @returns {Object.<string,*>} Plain object
  62634. */
  62635. role_info.toObject = function toObject(message, options) {
  62636. if (!options)
  62637. options = {};
  62638. let object = {};
  62639. if (options.defaults) {
  62640. object.uid = "";
  62641. object.nickname = "";
  62642. if ($util.Long) {
  62643. let long = new $util.Long(0, 0, false);
  62644. object.avatar = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  62645. } else
  62646. object.avatar = options.longs === String ? "0" : 0;
  62647. if ($util.Long) {
  62648. let long = new $util.Long(0, 0, false);
  62649. object.level = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  62650. } else
  62651. object.level = options.longs === String ? "0" : 0;
  62652. }
  62653. if (message.uid != null && message.hasOwnProperty("uid"))
  62654. object.uid = message.uid;
  62655. if (message.nickname != null && message.hasOwnProperty("nickname"))
  62656. object.nickname = message.nickname;
  62657. if (message.avatar != null && message.hasOwnProperty("avatar"))
  62658. if (typeof message.avatar === "number")
  62659. object.avatar = options.longs === String ? String(message.avatar) : message.avatar;
  62660. else
  62661. 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;
  62662. if (message.level != null && message.hasOwnProperty("level"))
  62663. if (typeof message.level === "number")
  62664. object.level = options.longs === String ? String(message.level) : message.level;
  62665. else
  62666. 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;
  62667. return object;
  62668. };
  62669. /**
  62670. * Converts this role_info to JSON.
  62671. * @function toJSON
  62672. * @memberof game.role_info
  62673. * @instance
  62674. * @returns {Object.<string,*>} JSON object
  62675. */
  62676. role_info.prototype.toJSON = function toJSON() {
  62677. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  62678. };
  62679. return role_info;
  62680. })();
  62681. game.hero_info = (function() {
  62682. /**
  62683. * Properties of a hero_info.
  62684. * @memberof game
  62685. * @interface Ihero_info
  62686. * @property {number|Long|null} [id] hero_info id
  62687. * @property {number|Long|null} [lv] hero_info lv
  62688. */
  62689. /**
  62690. * Constructs a new hero_info.
  62691. * @memberof game
  62692. * @classdesc Represents a hero_info.
  62693. * @implements Ihero_info
  62694. * @constructor
  62695. * @param {game.Ihero_info=} [properties] Properties to set
  62696. */
  62697. function hero_info(properties) {
  62698. if (properties)
  62699. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  62700. if (properties[keys[i]] != null)
  62701. this[keys[i]] = properties[keys[i]];
  62702. }
  62703. /**
  62704. * hero_info id.
  62705. * @member {number|Long} id
  62706. * @memberof game.hero_info
  62707. * @instance
  62708. */
  62709. hero_info.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  62710. /**
  62711. * hero_info lv.
  62712. * @member {number|Long} lv
  62713. * @memberof game.hero_info
  62714. * @instance
  62715. */
  62716. hero_info.prototype.lv = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  62717. /**
  62718. * Creates a new hero_info instance using the specified properties.
  62719. * @function create
  62720. * @memberof game.hero_info
  62721. * @static
  62722. * @param {game.Ihero_info=} [properties] Properties to set
  62723. * @returns {game.hero_info} hero_info instance
  62724. */
  62725. hero_info.create = function create(properties) {
  62726. return new hero_info(properties);
  62727. };
  62728. /**
  62729. * Encodes the specified hero_info message. Does not implicitly {@link game.hero_info.verify|verify} messages.
  62730. * @function encode
  62731. * @memberof game.hero_info
  62732. * @static
  62733. * @param {game.Ihero_info} message hero_info message or plain object to encode
  62734. * @param {$protobuf.Writer} [writer] Writer to encode to
  62735. * @returns {$protobuf.Writer} Writer
  62736. */
  62737. hero_info.encode = function encode(message, writer) {
  62738. if (!writer)
  62739. writer = $Writer.create();
  62740. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  62741. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  62742. if (message.lv != null && Object.hasOwnProperty.call(message, "lv"))
  62743. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.lv);
  62744. return writer;
  62745. };
  62746. /**
  62747. * Encodes the specified hero_info message, length delimited. Does not implicitly {@link game.hero_info.verify|verify} messages.
  62748. * @function encodeDelimited
  62749. * @memberof game.hero_info
  62750. * @static
  62751. * @param {game.Ihero_info} message hero_info message or plain object to encode
  62752. * @param {$protobuf.Writer} [writer] Writer to encode to
  62753. * @returns {$protobuf.Writer} Writer
  62754. */
  62755. hero_info.encodeDelimited = function encodeDelimited(message, writer) {
  62756. return this.encode(message, writer).ldelim();
  62757. };
  62758. /**
  62759. * Decodes a hero_info message from the specified reader or buffer.
  62760. * @function decode
  62761. * @memberof game.hero_info
  62762. * @static
  62763. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  62764. * @param {number} [length] Message length if known beforehand
  62765. * @returns {game.hero_info} hero_info
  62766. * @throws {Error} If the payload is not a reader or valid buffer
  62767. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  62768. */
  62769. hero_info.decode = function decode(reader, length) {
  62770. if (!(reader instanceof $Reader))
  62771. reader = $Reader.create(reader);
  62772. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_info();
  62773. while (reader.pos < end) {
  62774. let tag = reader.uint32();
  62775. switch (tag >>> 3) {
  62776. case 1:
  62777. message.id = reader.int64();
  62778. break;
  62779. case 2:
  62780. message.lv = reader.int64();
  62781. break;
  62782. default:
  62783. reader.skipType(tag & 7);
  62784. break;
  62785. }
  62786. }
  62787. return message;
  62788. };
  62789. /**
  62790. * Decodes a hero_info message from the specified reader or buffer, length delimited.
  62791. * @function decodeDelimited
  62792. * @memberof game.hero_info
  62793. * @static
  62794. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  62795. * @returns {game.hero_info} hero_info
  62796. * @throws {Error} If the payload is not a reader or valid buffer
  62797. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  62798. */
  62799. hero_info.decodeDelimited = function decodeDelimited(reader) {
  62800. if (!(reader instanceof $Reader))
  62801. reader = new $Reader(reader);
  62802. return this.decode(reader, reader.uint32());
  62803. };
  62804. /**
  62805. * Verifies a hero_info message.
  62806. * @function verify
  62807. * @memberof game.hero_info
  62808. * @static
  62809. * @param {Object.<string,*>} message Plain object to verify
  62810. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  62811. */
  62812. hero_info.verify = function verify(message) {
  62813. if (typeof message !== "object" || message === null)
  62814. return "object expected";
  62815. if (message.id != null && message.hasOwnProperty("id"))
  62816. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  62817. return "id: integer|Long expected";
  62818. if (message.lv != null && message.hasOwnProperty("lv"))
  62819. if (!$util.isInteger(message.lv) && !(message.lv && $util.isInteger(message.lv.low) && $util.isInteger(message.lv.high)))
  62820. return "lv: integer|Long expected";
  62821. return null;
  62822. };
  62823. /**
  62824. * Creates a hero_info message from a plain object. Also converts values to their respective internal types.
  62825. * @function fromObject
  62826. * @memberof game.hero_info
  62827. * @static
  62828. * @param {Object.<string,*>} object Plain object
  62829. * @returns {game.hero_info} hero_info
  62830. */
  62831. hero_info.fromObject = function fromObject(object) {
  62832. if (object instanceof $root.game.hero_info)
  62833. return object;
  62834. let message = new $root.game.hero_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.lv != null)
  62845. if ($util.Long)
  62846. (message.lv = $util.Long.fromValue(object.lv)).unsigned = false;
  62847. else if (typeof object.lv === "string")
  62848. message.lv = parseInt(object.lv, 10);
  62849. else if (typeof object.lv === "number")
  62850. message.lv = object.lv;
  62851. else if (typeof object.lv === "object")
  62852. message.lv = new $util.LongBits(object.lv.low >>> 0, object.lv.high >>> 0).toNumber();
  62853. return message;
  62854. };
  62855. /**
  62856. * Creates a plain object from a hero_info message. Also converts values to other types if specified.
  62857. * @function toObject
  62858. * @memberof game.hero_info
  62859. * @static
  62860. * @param {game.hero_info} message hero_info
  62861. * @param {$protobuf.IConversionOptions} [options] Conversion options
  62862. * @returns {Object.<string,*>} Plain object
  62863. */
  62864. hero_info.toObject = function toObject(message, options) {
  62865. if (!options)
  62866. options = {};
  62867. let object = {};
  62868. if (options.defaults) {
  62869. if ($util.Long) {
  62870. let long = new $util.Long(0, 0, false);
  62871. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  62872. } else
  62873. object.id = options.longs === String ? "0" : 0;
  62874. if ($util.Long) {
  62875. let long = new $util.Long(0, 0, false);
  62876. object.lv = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  62877. } else
  62878. object.lv = options.longs === String ? "0" : 0;
  62879. }
  62880. if (message.id != null && message.hasOwnProperty("id"))
  62881. if (typeof message.id === "number")
  62882. object.id = options.longs === String ? String(message.id) : message.id;
  62883. else
  62884. 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;
  62885. if (message.lv != null && message.hasOwnProperty("lv"))
  62886. if (typeof message.lv === "number")
  62887. object.lv = options.longs === String ? String(message.lv) : message.lv;
  62888. else
  62889. 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;
  62890. return object;
  62891. };
  62892. /**
  62893. * Converts this hero_info to JSON.
  62894. * @function toJSON
  62895. * @memberof game.hero_info
  62896. * @instance
  62897. * @returns {Object.<string,*>} JSON object
  62898. */
  62899. hero_info.prototype.toJSON = function toJSON() {
  62900. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  62901. };
  62902. return hero_info;
  62903. })();
  62904. game.talent_info = (function() {
  62905. /**
  62906. * Properties of a talent_info.
  62907. * @memberof game
  62908. * @interface Italent_info
  62909. * @property {number|Long|null} [id1] talent_info id1
  62910. * @property {number|Long|null} [id2] talent_info id2
  62911. */
  62912. /**
  62913. * Constructs a new talent_info.
  62914. * @memberof game
  62915. * @classdesc Represents a talent_info.
  62916. * @implements Italent_info
  62917. * @constructor
  62918. * @param {game.Italent_info=} [properties] Properties to set
  62919. */
  62920. function talent_info(properties) {
  62921. if (properties)
  62922. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  62923. if (properties[keys[i]] != null)
  62924. this[keys[i]] = properties[keys[i]];
  62925. }
  62926. /**
  62927. * talent_info id1.
  62928. * @member {number|Long} id1
  62929. * @memberof game.talent_info
  62930. * @instance
  62931. */
  62932. talent_info.prototype.id1 = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  62933. /**
  62934. * talent_info id2.
  62935. * @member {number|Long} id2
  62936. * @memberof game.talent_info
  62937. * @instance
  62938. */
  62939. talent_info.prototype.id2 = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  62940. /**
  62941. * Creates a new talent_info instance using the specified properties.
  62942. * @function create
  62943. * @memberof game.talent_info
  62944. * @static
  62945. * @param {game.Italent_info=} [properties] Properties to set
  62946. * @returns {game.talent_info} talent_info instance
  62947. */
  62948. talent_info.create = function create(properties) {
  62949. return new talent_info(properties);
  62950. };
  62951. /**
  62952. * Encodes the specified talent_info message. Does not implicitly {@link game.talent_info.verify|verify} messages.
  62953. * @function encode
  62954. * @memberof game.talent_info
  62955. * @static
  62956. * @param {game.Italent_info} message talent_info message or plain object to encode
  62957. * @param {$protobuf.Writer} [writer] Writer to encode to
  62958. * @returns {$protobuf.Writer} Writer
  62959. */
  62960. talent_info.encode = function encode(message, writer) {
  62961. if (!writer)
  62962. writer = $Writer.create();
  62963. if (message.id1 != null && Object.hasOwnProperty.call(message, "id1"))
  62964. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id1);
  62965. if (message.id2 != null && Object.hasOwnProperty.call(message, "id2"))
  62966. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id2);
  62967. return writer;
  62968. };
  62969. /**
  62970. * Encodes the specified talent_info message, length delimited. Does not implicitly {@link game.talent_info.verify|verify} messages.
  62971. * @function encodeDelimited
  62972. * @memberof game.talent_info
  62973. * @static
  62974. * @param {game.Italent_info} message talent_info message or plain object to encode
  62975. * @param {$protobuf.Writer} [writer] Writer to encode to
  62976. * @returns {$protobuf.Writer} Writer
  62977. */
  62978. talent_info.encodeDelimited = function encodeDelimited(message, writer) {
  62979. return this.encode(message, writer).ldelim();
  62980. };
  62981. /**
  62982. * Decodes a talent_info message from the specified reader or buffer.
  62983. * @function decode
  62984. * @memberof game.talent_info
  62985. * @static
  62986. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  62987. * @param {number} [length] Message length if known beforehand
  62988. * @returns {game.talent_info} talent_info
  62989. * @throws {Error} If the payload is not a reader or valid buffer
  62990. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  62991. */
  62992. talent_info.decode = function decode(reader, length) {
  62993. if (!(reader instanceof $Reader))
  62994. reader = $Reader.create(reader);
  62995. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.talent_info();
  62996. while (reader.pos < end) {
  62997. let tag = reader.uint32();
  62998. switch (tag >>> 3) {
  62999. case 1:
  63000. message.id1 = reader.int64();
  63001. break;
  63002. case 2:
  63003. message.id2 = reader.int64();
  63004. break;
  63005. default:
  63006. reader.skipType(tag & 7);
  63007. break;
  63008. }
  63009. }
  63010. return message;
  63011. };
  63012. /**
  63013. * Decodes a talent_info message from the specified reader or buffer, length delimited.
  63014. * @function decodeDelimited
  63015. * @memberof game.talent_info
  63016. * @static
  63017. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  63018. * @returns {game.talent_info} talent_info
  63019. * @throws {Error} If the payload is not a reader or valid buffer
  63020. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  63021. */
  63022. talent_info.decodeDelimited = function decodeDelimited(reader) {
  63023. if (!(reader instanceof $Reader))
  63024. reader = new $Reader(reader);
  63025. return this.decode(reader, reader.uint32());
  63026. };
  63027. /**
  63028. * Verifies a talent_info message.
  63029. * @function verify
  63030. * @memberof game.talent_info
  63031. * @static
  63032. * @param {Object.<string,*>} message Plain object to verify
  63033. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  63034. */
  63035. talent_info.verify = function verify(message) {
  63036. if (typeof message !== "object" || message === null)
  63037. return "object expected";
  63038. if (message.id1 != null && message.hasOwnProperty("id1"))
  63039. if (!$util.isInteger(message.id1) && !(message.id1 && $util.isInteger(message.id1.low) && $util.isInteger(message.id1.high)))
  63040. return "id1: integer|Long expected";
  63041. if (message.id2 != null && message.hasOwnProperty("id2"))
  63042. if (!$util.isInteger(message.id2) && !(message.id2 && $util.isInteger(message.id2.low) && $util.isInteger(message.id2.high)))
  63043. return "id2: integer|Long expected";
  63044. return null;
  63045. };
  63046. /**
  63047. * Creates a talent_info message from a plain object. Also converts values to their respective internal types.
  63048. * @function fromObject
  63049. * @memberof game.talent_info
  63050. * @static
  63051. * @param {Object.<string,*>} object Plain object
  63052. * @returns {game.talent_info} talent_info
  63053. */
  63054. talent_info.fromObject = function fromObject(object) {
  63055. if (object instanceof $root.game.talent_info)
  63056. return object;
  63057. let message = new $root.game.talent_info();
  63058. if (object.id1 != null)
  63059. if ($util.Long)
  63060. (message.id1 = $util.Long.fromValue(object.id1)).unsigned = false;
  63061. else if (typeof object.id1 === "string")
  63062. message.id1 = parseInt(object.id1, 10);
  63063. else if (typeof object.id1 === "number")
  63064. message.id1 = object.id1;
  63065. else if (typeof object.id1 === "object")
  63066. message.id1 = new $util.LongBits(object.id1.low >>> 0, object.id1.high >>> 0).toNumber();
  63067. if (object.id2 != null)
  63068. if ($util.Long)
  63069. (message.id2 = $util.Long.fromValue(object.id2)).unsigned = false;
  63070. else if (typeof object.id2 === "string")
  63071. message.id2 = parseInt(object.id2, 10);
  63072. else if (typeof object.id2 === "number")
  63073. message.id2 = object.id2;
  63074. else if (typeof object.id2 === "object")
  63075. message.id2 = new $util.LongBits(object.id2.low >>> 0, object.id2.high >>> 0).toNumber();
  63076. return message;
  63077. };
  63078. /**
  63079. * Creates a plain object from a talent_info message. Also converts values to other types if specified.
  63080. * @function toObject
  63081. * @memberof game.talent_info
  63082. * @static
  63083. * @param {game.talent_info} message talent_info
  63084. * @param {$protobuf.IConversionOptions} [options] Conversion options
  63085. * @returns {Object.<string,*>} Plain object
  63086. */
  63087. talent_info.toObject = function toObject(message, options) {
  63088. if (!options)
  63089. options = {};
  63090. let object = {};
  63091. if (options.defaults) {
  63092. if ($util.Long) {
  63093. let long = new $util.Long(0, 0, false);
  63094. object.id1 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  63095. } else
  63096. object.id1 = options.longs === String ? "0" : 0;
  63097. if ($util.Long) {
  63098. let long = new $util.Long(0, 0, false);
  63099. object.id2 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  63100. } else
  63101. object.id2 = options.longs === String ? "0" : 0;
  63102. }
  63103. if (message.id1 != null && message.hasOwnProperty("id1"))
  63104. if (typeof message.id1 === "number")
  63105. object.id1 = options.longs === String ? String(message.id1) : message.id1;
  63106. else
  63107. 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;
  63108. if (message.id2 != null && message.hasOwnProperty("id2"))
  63109. if (typeof message.id2 === "number")
  63110. object.id2 = options.longs === String ? String(message.id2) : message.id2;
  63111. else
  63112. 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;
  63113. return object;
  63114. };
  63115. /**
  63116. * Converts this talent_info to JSON.
  63117. * @function toJSON
  63118. * @memberof game.talent_info
  63119. * @instance
  63120. * @returns {Object.<string,*>} JSON object
  63121. */
  63122. talent_info.prototype.toJSON = function toJSON() {
  63123. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  63124. };
  63125. return talent_info;
  63126. })();
  63127. game.ranking_info = (function() {
  63128. /**
  63129. * Properties of a ranking_info.
  63130. * @memberof game
  63131. * @interface Iranking_info
  63132. * @property {number|Long|null} [ranking] ranking_info ranking
  63133. * @property {number|Long|null} [num] ranking_info num
  63134. * @property {game.Irole_info|null} [role] ranking_info role
  63135. * @property {game.Ihero_info|null} [hero] ranking_info hero
  63136. */
  63137. /**
  63138. * Constructs a new ranking_info.
  63139. * @memberof game
  63140. * @classdesc Represents a ranking_info.
  63141. * @implements Iranking_info
  63142. * @constructor
  63143. * @param {game.Iranking_info=} [properties] Properties to set
  63144. */
  63145. function ranking_info(properties) {
  63146. if (properties)
  63147. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  63148. if (properties[keys[i]] != null)
  63149. this[keys[i]] = properties[keys[i]];
  63150. }
  63151. /**
  63152. * ranking_info ranking.
  63153. * @member {number|Long} ranking
  63154. * @memberof game.ranking_info
  63155. * @instance
  63156. */
  63157. ranking_info.prototype.ranking = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  63158. /**
  63159. * ranking_info num.
  63160. * @member {number|Long} num
  63161. * @memberof game.ranking_info
  63162. * @instance
  63163. */
  63164. ranking_info.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  63165. /**
  63166. * ranking_info role.
  63167. * @member {game.Irole_info|null|undefined} role
  63168. * @memberof game.ranking_info
  63169. * @instance
  63170. */
  63171. ranking_info.prototype.role = null;
  63172. /**
  63173. * ranking_info hero.
  63174. * @member {game.Ihero_info|null|undefined} hero
  63175. * @memberof game.ranking_info
  63176. * @instance
  63177. */
  63178. ranking_info.prototype.hero = null;
  63179. /**
  63180. * Creates a new ranking_info instance using the specified properties.
  63181. * @function create
  63182. * @memberof game.ranking_info
  63183. * @static
  63184. * @param {game.Iranking_info=} [properties] Properties to set
  63185. * @returns {game.ranking_info} ranking_info instance
  63186. */
  63187. ranking_info.create = function create(properties) {
  63188. return new ranking_info(properties);
  63189. };
  63190. /**
  63191. * Encodes the specified ranking_info message. Does not implicitly {@link game.ranking_info.verify|verify} messages.
  63192. * @function encode
  63193. * @memberof game.ranking_info
  63194. * @static
  63195. * @param {game.Iranking_info} message ranking_info message or plain object to encode
  63196. * @param {$protobuf.Writer} [writer] Writer to encode to
  63197. * @returns {$protobuf.Writer} Writer
  63198. */
  63199. ranking_info.encode = function encode(message, writer) {
  63200. if (!writer)
  63201. writer = $Writer.create();
  63202. if (message.ranking != null && Object.hasOwnProperty.call(message, "ranking"))
  63203. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.ranking);
  63204. if (message.num != null && Object.hasOwnProperty.call(message, "num"))
  63205. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.num);
  63206. if (message.role != null && Object.hasOwnProperty.call(message, "role"))
  63207. $root.game.role_info.encode(message.role, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
  63208. if (message.hero != null && Object.hasOwnProperty.call(message, "hero"))
  63209. $root.game.hero_info.encode(message.hero, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
  63210. return writer;
  63211. };
  63212. /**
  63213. * Encodes the specified ranking_info message, length delimited. Does not implicitly {@link game.ranking_info.verify|verify} messages.
  63214. * @function encodeDelimited
  63215. * @memberof game.ranking_info
  63216. * @static
  63217. * @param {game.Iranking_info} message ranking_info message or plain object to encode
  63218. * @param {$protobuf.Writer} [writer] Writer to encode to
  63219. * @returns {$protobuf.Writer} Writer
  63220. */
  63221. ranking_info.encodeDelimited = function encodeDelimited(message, writer) {
  63222. return this.encode(message, writer).ldelim();
  63223. };
  63224. /**
  63225. * Decodes a ranking_info message from the specified reader or buffer.
  63226. * @function decode
  63227. * @memberof game.ranking_info
  63228. * @static
  63229. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  63230. * @param {number} [length] Message length if known beforehand
  63231. * @returns {game.ranking_info} ranking_info
  63232. * @throws {Error} If the payload is not a reader or valid buffer
  63233. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  63234. */
  63235. ranking_info.decode = function decode(reader, length) {
  63236. if (!(reader instanceof $Reader))
  63237. reader = $Reader.create(reader);
  63238. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.ranking_info();
  63239. while (reader.pos < end) {
  63240. let tag = reader.uint32();
  63241. switch (tag >>> 3) {
  63242. case 1:
  63243. message.ranking = reader.int64();
  63244. break;
  63245. case 2:
  63246. message.num = reader.int64();
  63247. break;
  63248. case 3:
  63249. message.role = $root.game.role_info.decode(reader, reader.uint32());
  63250. break;
  63251. case 4:
  63252. message.hero = $root.game.hero_info.decode(reader, reader.uint32());
  63253. break;
  63254. default:
  63255. reader.skipType(tag & 7);
  63256. break;
  63257. }
  63258. }
  63259. return message;
  63260. };
  63261. /**
  63262. * Decodes a ranking_info message from the specified reader or buffer, length delimited.
  63263. * @function decodeDelimited
  63264. * @memberof game.ranking_info
  63265. * @static
  63266. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  63267. * @returns {game.ranking_info} ranking_info
  63268. * @throws {Error} If the payload is not a reader or valid buffer
  63269. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  63270. */
  63271. ranking_info.decodeDelimited = function decodeDelimited(reader) {
  63272. if (!(reader instanceof $Reader))
  63273. reader = new $Reader(reader);
  63274. return this.decode(reader, reader.uint32());
  63275. };
  63276. /**
  63277. * Verifies a ranking_info message.
  63278. * @function verify
  63279. * @memberof game.ranking_info
  63280. * @static
  63281. * @param {Object.<string,*>} message Plain object to verify
  63282. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  63283. */
  63284. ranking_info.verify = function verify(message) {
  63285. if (typeof message !== "object" || message === null)
  63286. return "object expected";
  63287. if (message.ranking != null && message.hasOwnProperty("ranking"))
  63288. if (!$util.isInteger(message.ranking) && !(message.ranking && $util.isInteger(message.ranking.low) && $util.isInteger(message.ranking.high)))
  63289. return "ranking: integer|Long expected";
  63290. if (message.num != null && message.hasOwnProperty("num"))
  63291. if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
  63292. return "num: integer|Long expected";
  63293. if (message.role != null && message.hasOwnProperty("role")) {
  63294. let error = $root.game.role_info.verify(message.role);
  63295. if (error)
  63296. return "role." + error;
  63297. }
  63298. if (message.hero != null && message.hasOwnProperty("hero")) {
  63299. let error = $root.game.hero_info.verify(message.hero);
  63300. if (error)
  63301. return "hero." + error;
  63302. }
  63303. return null;
  63304. };
  63305. /**
  63306. * Creates a ranking_info message from a plain object. Also converts values to their respective internal types.
  63307. * @function fromObject
  63308. * @memberof game.ranking_info
  63309. * @static
  63310. * @param {Object.<string,*>} object Plain object
  63311. * @returns {game.ranking_info} ranking_info
  63312. */
  63313. ranking_info.fromObject = function fromObject(object) {
  63314. if (object instanceof $root.game.ranking_info)
  63315. return object;
  63316. let message = new $root.game.ranking_info();
  63317. if (object.ranking != null)
  63318. if ($util.Long)
  63319. (message.ranking = $util.Long.fromValue(object.ranking)).unsigned = false;
  63320. else if (typeof object.ranking === "string")
  63321. message.ranking = parseInt(object.ranking, 10);
  63322. else if (typeof object.ranking === "number")
  63323. message.ranking = object.ranking;
  63324. else if (typeof object.ranking === "object")
  63325. message.ranking = new $util.LongBits(object.ranking.low >>> 0, object.ranking.high >>> 0).toNumber();
  63326. if (object.num != null)
  63327. if ($util.Long)
  63328. (message.num = $util.Long.fromValue(object.num)).unsigned = false;
  63329. else if (typeof object.num === "string")
  63330. message.num = parseInt(object.num, 10);
  63331. else if (typeof object.num === "number")
  63332. message.num = object.num;
  63333. else if (typeof object.num === "object")
  63334. message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
  63335. if (object.role != null) {
  63336. if (typeof object.role !== "object")
  63337. throw TypeError(".game.ranking_info.role: object expected");
  63338. message.role = $root.game.role_info.fromObject(object.role);
  63339. }
  63340. if (object.hero != null) {
  63341. if (typeof object.hero !== "object")
  63342. throw TypeError(".game.ranking_info.hero: object expected");
  63343. message.hero = $root.game.hero_info.fromObject(object.hero);
  63344. }
  63345. return message;
  63346. };
  63347. /**
  63348. * Creates a plain object from a ranking_info message. Also converts values to other types if specified.
  63349. * @function toObject
  63350. * @memberof game.ranking_info
  63351. * @static
  63352. * @param {game.ranking_info} message ranking_info
  63353. * @param {$protobuf.IConversionOptions} [options] Conversion options
  63354. * @returns {Object.<string,*>} Plain object
  63355. */
  63356. ranking_info.toObject = function toObject(message, options) {
  63357. if (!options)
  63358. options = {};
  63359. let object = {};
  63360. if (options.defaults) {
  63361. if ($util.Long) {
  63362. let long = new $util.Long(0, 0, false);
  63363. object.ranking = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  63364. } else
  63365. object.ranking = options.longs === String ? "0" : 0;
  63366. if ($util.Long) {
  63367. let long = new $util.Long(0, 0, false);
  63368. object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  63369. } else
  63370. object.num = options.longs === String ? "0" : 0;
  63371. object.role = null;
  63372. object.hero = null;
  63373. }
  63374. if (message.ranking != null && message.hasOwnProperty("ranking"))
  63375. if (typeof message.ranking === "number")
  63376. object.ranking = options.longs === String ? String(message.ranking) : message.ranking;
  63377. else
  63378. 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;
  63379. if (message.num != null && message.hasOwnProperty("num"))
  63380. if (typeof message.num === "number")
  63381. object.num = options.longs === String ? String(message.num) : message.num;
  63382. else
  63383. 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;
  63384. if (message.role != null && message.hasOwnProperty("role"))
  63385. object.role = $root.game.role_info.toObject(message.role, options);
  63386. if (message.hero != null && message.hasOwnProperty("hero"))
  63387. object.hero = $root.game.hero_info.toObject(message.hero, options);
  63388. return object;
  63389. };
  63390. /**
  63391. * Converts this ranking_info to JSON.
  63392. * @function toJSON
  63393. * @memberof game.ranking_info
  63394. * @instance
  63395. * @returns {Object.<string,*>} JSON object
  63396. */
  63397. ranking_info.prototype.toJSON = function toJSON() {
  63398. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  63399. };
  63400. return ranking_info;
  63401. })();
  63402. game.grocery_info = (function() {
  63403. /**
  63404. * Properties of a grocery_info.
  63405. * @memberof game
  63406. * @interface Igrocery_info
  63407. * @property {number|Long|null} [type] grocery_info type
  63408. * @property {number|Long|null} [freeTime] grocery_info freeTime
  63409. * @property {number|Long|null} [freeNum] grocery_info freeNum
  63410. * @property {number|Long|null} [buyNum] grocery_info buyNum
  63411. */
  63412. /**
  63413. * Constructs a new grocery_info.
  63414. * @memberof game
  63415. * @classdesc Represents a grocery_info.
  63416. * @implements Igrocery_info
  63417. * @constructor
  63418. * @param {game.Igrocery_info=} [properties] Properties to set
  63419. */
  63420. function grocery_info(properties) {
  63421. if (properties)
  63422. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  63423. if (properties[keys[i]] != null)
  63424. this[keys[i]] = properties[keys[i]];
  63425. }
  63426. /**
  63427. * grocery_info type.
  63428. * @member {number|Long} type
  63429. * @memberof game.grocery_info
  63430. * @instance
  63431. */
  63432. grocery_info.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  63433. /**
  63434. * grocery_info freeTime.
  63435. * @member {number|Long} freeTime
  63436. * @memberof game.grocery_info
  63437. * @instance
  63438. */
  63439. grocery_info.prototype.freeTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  63440. /**
  63441. * grocery_info freeNum.
  63442. * @member {number|Long} freeNum
  63443. * @memberof game.grocery_info
  63444. * @instance
  63445. */
  63446. grocery_info.prototype.freeNum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  63447. /**
  63448. * grocery_info buyNum.
  63449. * @member {number|Long} buyNum
  63450. * @memberof game.grocery_info
  63451. * @instance
  63452. */
  63453. grocery_info.prototype.buyNum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  63454. /**
  63455. * Creates a new grocery_info instance using the specified properties.
  63456. * @function create
  63457. * @memberof game.grocery_info
  63458. * @static
  63459. * @param {game.Igrocery_info=} [properties] Properties to set
  63460. * @returns {game.grocery_info} grocery_info instance
  63461. */
  63462. grocery_info.create = function create(properties) {
  63463. return new grocery_info(properties);
  63464. };
  63465. /**
  63466. * Encodes the specified grocery_info message. Does not implicitly {@link game.grocery_info.verify|verify} messages.
  63467. * @function encode
  63468. * @memberof game.grocery_info
  63469. * @static
  63470. * @param {game.Igrocery_info} message grocery_info message or plain object to encode
  63471. * @param {$protobuf.Writer} [writer] Writer to encode to
  63472. * @returns {$protobuf.Writer} Writer
  63473. */
  63474. grocery_info.encode = function encode(message, writer) {
  63475. if (!writer)
  63476. writer = $Writer.create();
  63477. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  63478. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
  63479. if (message.freeTime != null && Object.hasOwnProperty.call(message, "freeTime"))
  63480. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.freeTime);
  63481. if (message.freeNum != null && Object.hasOwnProperty.call(message, "freeNum"))
  63482. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.freeNum);
  63483. if (message.buyNum != null && Object.hasOwnProperty.call(message, "buyNum"))
  63484. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.buyNum);
  63485. return writer;
  63486. };
  63487. /**
  63488. * Encodes the specified grocery_info message, length delimited. Does not implicitly {@link game.grocery_info.verify|verify} messages.
  63489. * @function encodeDelimited
  63490. * @memberof game.grocery_info
  63491. * @static
  63492. * @param {game.Igrocery_info} message grocery_info message or plain object to encode
  63493. * @param {$protobuf.Writer} [writer] Writer to encode to
  63494. * @returns {$protobuf.Writer} Writer
  63495. */
  63496. grocery_info.encodeDelimited = function encodeDelimited(message, writer) {
  63497. return this.encode(message, writer).ldelim();
  63498. };
  63499. /**
  63500. * Decodes a grocery_info message from the specified reader or buffer.
  63501. * @function decode
  63502. * @memberof game.grocery_info
  63503. * @static
  63504. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  63505. * @param {number} [length] Message length if known beforehand
  63506. * @returns {game.grocery_info} grocery_info
  63507. * @throws {Error} If the payload is not a reader or valid buffer
  63508. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  63509. */
  63510. grocery_info.decode = function decode(reader, length) {
  63511. if (!(reader instanceof $Reader))
  63512. reader = $Reader.create(reader);
  63513. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.grocery_info();
  63514. while (reader.pos < end) {
  63515. let tag = reader.uint32();
  63516. switch (tag >>> 3) {
  63517. case 1:
  63518. message.type = reader.int64();
  63519. break;
  63520. case 2:
  63521. message.freeTime = reader.int64();
  63522. break;
  63523. case 3:
  63524. message.freeNum = reader.int64();
  63525. break;
  63526. case 4:
  63527. message.buyNum = reader.int64();
  63528. break;
  63529. default:
  63530. reader.skipType(tag & 7);
  63531. break;
  63532. }
  63533. }
  63534. return message;
  63535. };
  63536. /**
  63537. * Decodes a grocery_info message from the specified reader or buffer, length delimited.
  63538. * @function decodeDelimited
  63539. * @memberof game.grocery_info
  63540. * @static
  63541. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  63542. * @returns {game.grocery_info} grocery_info
  63543. * @throws {Error} If the payload is not a reader or valid buffer
  63544. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  63545. */
  63546. grocery_info.decodeDelimited = function decodeDelimited(reader) {
  63547. if (!(reader instanceof $Reader))
  63548. reader = new $Reader(reader);
  63549. return this.decode(reader, reader.uint32());
  63550. };
  63551. /**
  63552. * Verifies a grocery_info message.
  63553. * @function verify
  63554. * @memberof game.grocery_info
  63555. * @static
  63556. * @param {Object.<string,*>} message Plain object to verify
  63557. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  63558. */
  63559. grocery_info.verify = function verify(message) {
  63560. if (typeof message !== "object" || message === null)
  63561. return "object expected";
  63562. if (message.type != null && message.hasOwnProperty("type"))
  63563. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  63564. return "type: integer|Long expected";
  63565. if (message.freeTime != null && message.hasOwnProperty("freeTime"))
  63566. if (!$util.isInteger(message.freeTime) && !(message.freeTime && $util.isInteger(message.freeTime.low) && $util.isInteger(message.freeTime.high)))
  63567. return "freeTime: integer|Long expected";
  63568. if (message.freeNum != null && message.hasOwnProperty("freeNum"))
  63569. if (!$util.isInteger(message.freeNum) && !(message.freeNum && $util.isInteger(message.freeNum.low) && $util.isInteger(message.freeNum.high)))
  63570. return "freeNum: integer|Long expected";
  63571. if (message.buyNum != null && message.hasOwnProperty("buyNum"))
  63572. if (!$util.isInteger(message.buyNum) && !(message.buyNum && $util.isInteger(message.buyNum.low) && $util.isInteger(message.buyNum.high)))
  63573. return "buyNum: integer|Long expected";
  63574. return null;
  63575. };
  63576. /**
  63577. * Creates a grocery_info message from a plain object. Also converts values to their respective internal types.
  63578. * @function fromObject
  63579. * @memberof game.grocery_info
  63580. * @static
  63581. * @param {Object.<string,*>} object Plain object
  63582. * @returns {game.grocery_info} grocery_info
  63583. */
  63584. grocery_info.fromObject = function fromObject(object) {
  63585. if (object instanceof $root.game.grocery_info)
  63586. return object;
  63587. let message = new $root.game.grocery_info();
  63588. if (object.type != null)
  63589. if ($util.Long)
  63590. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  63591. else if (typeof object.type === "string")
  63592. message.type = parseInt(object.type, 10);
  63593. else if (typeof object.type === "number")
  63594. message.type = object.type;
  63595. else if (typeof object.type === "object")
  63596. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  63597. if (object.freeTime != null)
  63598. if ($util.Long)
  63599. (message.freeTime = $util.Long.fromValue(object.freeTime)).unsigned = false;
  63600. else if (typeof object.freeTime === "string")
  63601. message.freeTime = parseInt(object.freeTime, 10);
  63602. else if (typeof object.freeTime === "number")
  63603. message.freeTime = object.freeTime;
  63604. else if (typeof object.freeTime === "object")
  63605. message.freeTime = new $util.LongBits(object.freeTime.low >>> 0, object.freeTime.high >>> 0).toNumber();
  63606. if (object.freeNum != null)
  63607. if ($util.Long)
  63608. (message.freeNum = $util.Long.fromValue(object.freeNum)).unsigned = false;
  63609. else if (typeof object.freeNum === "string")
  63610. message.freeNum = parseInt(object.freeNum, 10);
  63611. else if (typeof object.freeNum === "number")
  63612. message.freeNum = object.freeNum;
  63613. else if (typeof object.freeNum === "object")
  63614. message.freeNum = new $util.LongBits(object.freeNum.low >>> 0, object.freeNum.high >>> 0).toNumber();
  63615. if (object.buyNum != null)
  63616. if ($util.Long)
  63617. (message.buyNum = $util.Long.fromValue(object.buyNum)).unsigned = false;
  63618. else if (typeof object.buyNum === "string")
  63619. message.buyNum = parseInt(object.buyNum, 10);
  63620. else if (typeof object.buyNum === "number")
  63621. message.buyNum = object.buyNum;
  63622. else if (typeof object.buyNum === "object")
  63623. message.buyNum = new $util.LongBits(object.buyNum.low >>> 0, object.buyNum.high >>> 0).toNumber();
  63624. return message;
  63625. };
  63626. /**
  63627. * Creates a plain object from a grocery_info message. Also converts values to other types if specified.
  63628. * @function toObject
  63629. * @memberof game.grocery_info
  63630. * @static
  63631. * @param {game.grocery_info} message grocery_info
  63632. * @param {$protobuf.IConversionOptions} [options] Conversion options
  63633. * @returns {Object.<string,*>} Plain object
  63634. */
  63635. grocery_info.toObject = function toObject(message, options) {
  63636. if (!options)
  63637. options = {};
  63638. let object = {};
  63639. if (options.defaults) {
  63640. if ($util.Long) {
  63641. let long = new $util.Long(0, 0, false);
  63642. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  63643. } else
  63644. object.type = options.longs === String ? "0" : 0;
  63645. if ($util.Long) {
  63646. let long = new $util.Long(0, 0, false);
  63647. object.freeTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  63648. } else
  63649. object.freeTime = options.longs === String ? "0" : 0;
  63650. if ($util.Long) {
  63651. let long = new $util.Long(0, 0, false);
  63652. object.freeNum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  63653. } else
  63654. object.freeNum = options.longs === String ? "0" : 0;
  63655. if ($util.Long) {
  63656. let long = new $util.Long(0, 0, false);
  63657. object.buyNum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  63658. } else
  63659. object.buyNum = options.longs === String ? "0" : 0;
  63660. }
  63661. if (message.type != null && message.hasOwnProperty("type"))
  63662. if (typeof message.type === "number")
  63663. object.type = options.longs === String ? String(message.type) : message.type;
  63664. else
  63665. 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;
  63666. if (message.freeTime != null && message.hasOwnProperty("freeTime"))
  63667. if (typeof message.freeTime === "number")
  63668. object.freeTime = options.longs === String ? String(message.freeTime) : message.freeTime;
  63669. else
  63670. 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;
  63671. if (message.freeNum != null && message.hasOwnProperty("freeNum"))
  63672. if (typeof message.freeNum === "number")
  63673. object.freeNum = options.longs === String ? String(message.freeNum) : message.freeNum;
  63674. else
  63675. 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;
  63676. if (message.buyNum != null && message.hasOwnProperty("buyNum"))
  63677. if (typeof message.buyNum === "number")
  63678. object.buyNum = options.longs === String ? String(message.buyNum) : message.buyNum;
  63679. else
  63680. 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;
  63681. return object;
  63682. };
  63683. /**
  63684. * Converts this grocery_info to JSON.
  63685. * @function toJSON
  63686. * @memberof game.grocery_info
  63687. * @instance
  63688. * @returns {Object.<string,*>} JSON object
  63689. */
  63690. grocery_info.prototype.toJSON = function toJSON() {
  63691. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  63692. };
  63693. return grocery_info;
  63694. })();
  63695. game.altar_info = (function() {
  63696. /**
  63697. * Properties of an altar_info.
  63698. * @memberof game
  63699. * @interface Ialtar_info
  63700. * @property {string|null} [sid] altar_info sid
  63701. * @property {number|Long|null} [time] altar_info time
  63702. * @property {number|Long|null} [level] altar_info level
  63703. * @property {number|Long|null} [id] altar_info id
  63704. */
  63705. /**
  63706. * Constructs a new altar_info.
  63707. * @memberof game
  63708. * @classdesc Represents an altar_info.
  63709. * @implements Ialtar_info
  63710. * @constructor
  63711. * @param {game.Ialtar_info=} [properties] Properties to set
  63712. */
  63713. function altar_info(properties) {
  63714. if (properties)
  63715. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  63716. if (properties[keys[i]] != null)
  63717. this[keys[i]] = properties[keys[i]];
  63718. }
  63719. /**
  63720. * altar_info sid.
  63721. * @member {string} sid
  63722. * @memberof game.altar_info
  63723. * @instance
  63724. */
  63725. altar_info.prototype.sid = "";
  63726. /**
  63727. * altar_info time.
  63728. * @member {number|Long} time
  63729. * @memberof game.altar_info
  63730. * @instance
  63731. */
  63732. altar_info.prototype.time = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  63733. /**
  63734. * altar_info level.
  63735. * @member {number|Long} level
  63736. * @memberof game.altar_info
  63737. * @instance
  63738. */
  63739. altar_info.prototype.level = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  63740. /**
  63741. * altar_info id.
  63742. * @member {number|Long} id
  63743. * @memberof game.altar_info
  63744. * @instance
  63745. */
  63746. altar_info.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  63747. /**
  63748. * Creates a new altar_info instance using the specified properties.
  63749. * @function create
  63750. * @memberof game.altar_info
  63751. * @static
  63752. * @param {game.Ialtar_info=} [properties] Properties to set
  63753. * @returns {game.altar_info} altar_info instance
  63754. */
  63755. altar_info.create = function create(properties) {
  63756. return new altar_info(properties);
  63757. };
  63758. /**
  63759. * Encodes the specified altar_info message. Does not implicitly {@link game.altar_info.verify|verify} messages.
  63760. * @function encode
  63761. * @memberof game.altar_info
  63762. * @static
  63763. * @param {game.Ialtar_info} message altar_info message or plain object to encode
  63764. * @param {$protobuf.Writer} [writer] Writer to encode to
  63765. * @returns {$protobuf.Writer} Writer
  63766. */
  63767. altar_info.encode = function encode(message, writer) {
  63768. if (!writer)
  63769. writer = $Writer.create();
  63770. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  63771. writer.uint32(/* id 2, wireType 2 =*/18).string(message.sid);
  63772. if (message.time != null && Object.hasOwnProperty.call(message, "time"))
  63773. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.time);
  63774. if (message.level != null && Object.hasOwnProperty.call(message, "level"))
  63775. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.level);
  63776. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  63777. writer.uint32(/* id 5, wireType 0 =*/40).int64(message.id);
  63778. return writer;
  63779. };
  63780. /**
  63781. * Encodes the specified altar_info message, length delimited. Does not implicitly {@link game.altar_info.verify|verify} messages.
  63782. * @function encodeDelimited
  63783. * @memberof game.altar_info
  63784. * @static
  63785. * @param {game.Ialtar_info} message altar_info message or plain object to encode
  63786. * @param {$protobuf.Writer} [writer] Writer to encode to
  63787. * @returns {$protobuf.Writer} Writer
  63788. */
  63789. altar_info.encodeDelimited = function encodeDelimited(message, writer) {
  63790. return this.encode(message, writer).ldelim();
  63791. };
  63792. /**
  63793. * Decodes an altar_info message from the specified reader or buffer.
  63794. * @function decode
  63795. * @memberof game.altar_info
  63796. * @static
  63797. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  63798. * @param {number} [length] Message length if known beforehand
  63799. * @returns {game.altar_info} altar_info
  63800. * @throws {Error} If the payload is not a reader or valid buffer
  63801. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  63802. */
  63803. altar_info.decode = function decode(reader, length) {
  63804. if (!(reader instanceof $Reader))
  63805. reader = $Reader.create(reader);
  63806. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.altar_info();
  63807. while (reader.pos < end) {
  63808. let tag = reader.uint32();
  63809. switch (tag >>> 3) {
  63810. case 2:
  63811. message.sid = reader.string();
  63812. break;
  63813. case 3:
  63814. message.time = reader.int64();
  63815. break;
  63816. case 4:
  63817. message.level = reader.int64();
  63818. break;
  63819. case 5:
  63820. message.id = reader.int64();
  63821. break;
  63822. default:
  63823. reader.skipType(tag & 7);
  63824. break;
  63825. }
  63826. }
  63827. return message;
  63828. };
  63829. /**
  63830. * Decodes an altar_info message from the specified reader or buffer, length delimited.
  63831. * @function decodeDelimited
  63832. * @memberof game.altar_info
  63833. * @static
  63834. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  63835. * @returns {game.altar_info} altar_info
  63836. * @throws {Error} If the payload is not a reader or valid buffer
  63837. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  63838. */
  63839. altar_info.decodeDelimited = function decodeDelimited(reader) {
  63840. if (!(reader instanceof $Reader))
  63841. reader = new $Reader(reader);
  63842. return this.decode(reader, reader.uint32());
  63843. };
  63844. /**
  63845. * Verifies an altar_info message.
  63846. * @function verify
  63847. * @memberof game.altar_info
  63848. * @static
  63849. * @param {Object.<string,*>} message Plain object to verify
  63850. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  63851. */
  63852. altar_info.verify = function verify(message) {
  63853. if (typeof message !== "object" || message === null)
  63854. return "object expected";
  63855. if (message.sid != null && message.hasOwnProperty("sid"))
  63856. if (!$util.isString(message.sid))
  63857. return "sid: string expected";
  63858. if (message.time != null && message.hasOwnProperty("time"))
  63859. if (!$util.isInteger(message.time) && !(message.time && $util.isInteger(message.time.low) && $util.isInteger(message.time.high)))
  63860. return "time: integer|Long expected";
  63861. if (message.level != null && message.hasOwnProperty("level"))
  63862. if (!$util.isInteger(message.level) && !(message.level && $util.isInteger(message.level.low) && $util.isInteger(message.level.high)))
  63863. return "level: integer|Long expected";
  63864. if (message.id != null && message.hasOwnProperty("id"))
  63865. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  63866. return "id: integer|Long expected";
  63867. return null;
  63868. };
  63869. /**
  63870. * Creates an altar_info message from a plain object. Also converts values to their respective internal types.
  63871. * @function fromObject
  63872. * @memberof game.altar_info
  63873. * @static
  63874. * @param {Object.<string,*>} object Plain object
  63875. * @returns {game.altar_info} altar_info
  63876. */
  63877. altar_info.fromObject = function fromObject(object) {
  63878. if (object instanceof $root.game.altar_info)
  63879. return object;
  63880. let message = new $root.game.altar_info();
  63881. if (object.sid != null)
  63882. message.sid = String(object.sid);
  63883. if (object.time != null)
  63884. if ($util.Long)
  63885. (message.time = $util.Long.fromValue(object.time)).unsigned = false;
  63886. else if (typeof object.time === "string")
  63887. message.time = parseInt(object.time, 10);
  63888. else if (typeof object.time === "number")
  63889. message.time = object.time;
  63890. else if (typeof object.time === "object")
  63891. message.time = new $util.LongBits(object.time.low >>> 0, object.time.high >>> 0).toNumber();
  63892. if (object.level != null)
  63893. if ($util.Long)
  63894. (message.level = $util.Long.fromValue(object.level)).unsigned = false;
  63895. else if (typeof object.level === "string")
  63896. message.level = parseInt(object.level, 10);
  63897. else if (typeof object.level === "number")
  63898. message.level = object.level;
  63899. else if (typeof object.level === "object")
  63900. message.level = new $util.LongBits(object.level.low >>> 0, object.level.high >>> 0).toNumber();
  63901. if (object.id != null)
  63902. if ($util.Long)
  63903. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  63904. else if (typeof object.id === "string")
  63905. message.id = parseInt(object.id, 10);
  63906. else if (typeof object.id === "number")
  63907. message.id = object.id;
  63908. else if (typeof object.id === "object")
  63909. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  63910. return message;
  63911. };
  63912. /**
  63913. * Creates a plain object from an altar_info message. Also converts values to other types if specified.
  63914. * @function toObject
  63915. * @memberof game.altar_info
  63916. * @static
  63917. * @param {game.altar_info} message altar_info
  63918. * @param {$protobuf.IConversionOptions} [options] Conversion options
  63919. * @returns {Object.<string,*>} Plain object
  63920. */
  63921. altar_info.toObject = function toObject(message, options) {
  63922. if (!options)
  63923. options = {};
  63924. let object = {};
  63925. if (options.defaults) {
  63926. object.sid = "";
  63927. if ($util.Long) {
  63928. let long = new $util.Long(0, 0, false);
  63929. object.time = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  63930. } else
  63931. object.time = options.longs === String ? "0" : 0;
  63932. if ($util.Long) {
  63933. let long = new $util.Long(0, 0, false);
  63934. object.level = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  63935. } else
  63936. object.level = options.longs === String ? "0" : 0;
  63937. if ($util.Long) {
  63938. let long = new $util.Long(0, 0, false);
  63939. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  63940. } else
  63941. object.id = options.longs === String ? "0" : 0;
  63942. }
  63943. if (message.sid != null && message.hasOwnProperty("sid"))
  63944. object.sid = message.sid;
  63945. if (message.time != null && message.hasOwnProperty("time"))
  63946. if (typeof message.time === "number")
  63947. object.time = options.longs === String ? String(message.time) : message.time;
  63948. else
  63949. 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;
  63950. if (message.level != null && message.hasOwnProperty("level"))
  63951. if (typeof message.level === "number")
  63952. object.level = options.longs === String ? String(message.level) : message.level;
  63953. else
  63954. 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;
  63955. if (message.id != null && message.hasOwnProperty("id"))
  63956. if (typeof message.id === "number")
  63957. object.id = options.longs === String ? String(message.id) : message.id;
  63958. else
  63959. 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;
  63960. return object;
  63961. };
  63962. /**
  63963. * Converts this altar_info to JSON.
  63964. * @function toJSON
  63965. * @memberof game.altar_info
  63966. * @instance
  63967. * @returns {Object.<string,*>} JSON object
  63968. */
  63969. altar_info.prototype.toJSON = function toJSON() {
  63970. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  63971. };
  63972. return altar_info;
  63973. })();
  63974. game.activity_time_info = (function() {
  63975. /**
  63976. * Properties of an activity_time_info.
  63977. * @memberof game
  63978. * @interface Iactivity_time_info
  63979. * @property {number|Long|null} [type] activity_time_info type
  63980. * @property {number|Long|null} [state] activity_time_info state
  63981. * @property {number|Long|null} [opentime] activity_time_info opentime
  63982. * @property {number|Long|null} [endtime] activity_time_info endtime
  63983. * @property {string|null} [name] activity_time_info name
  63984. * @property {number|Long|null} [sort] activity_time_info sort
  63985. * @property {string|null} [icon] activity_time_info icon
  63986. */
  63987. /**
  63988. * Constructs a new activity_time_info.
  63989. * @memberof game
  63990. * @classdesc Represents an activity_time_info.
  63991. * @implements Iactivity_time_info
  63992. * @constructor
  63993. * @param {game.Iactivity_time_info=} [properties] Properties to set
  63994. */
  63995. function activity_time_info(properties) {
  63996. if (properties)
  63997. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  63998. if (properties[keys[i]] != null)
  63999. this[keys[i]] = properties[keys[i]];
  64000. }
  64001. /**
  64002. * activity_time_info type.
  64003. * @member {number|Long} type
  64004. * @memberof game.activity_time_info
  64005. * @instance
  64006. */
  64007. activity_time_info.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  64008. /**
  64009. * activity_time_info state.
  64010. * @member {number|Long} state
  64011. * @memberof game.activity_time_info
  64012. * @instance
  64013. */
  64014. activity_time_info.prototype.state = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  64015. /**
  64016. * activity_time_info opentime.
  64017. * @member {number|Long} opentime
  64018. * @memberof game.activity_time_info
  64019. * @instance
  64020. */
  64021. activity_time_info.prototype.opentime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  64022. /**
  64023. * activity_time_info endtime.
  64024. * @member {number|Long} endtime
  64025. * @memberof game.activity_time_info
  64026. * @instance
  64027. */
  64028. activity_time_info.prototype.endtime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  64029. /**
  64030. * activity_time_info name.
  64031. * @member {string} name
  64032. * @memberof game.activity_time_info
  64033. * @instance
  64034. */
  64035. activity_time_info.prototype.name = "";
  64036. /**
  64037. * activity_time_info sort.
  64038. * @member {number|Long} sort
  64039. * @memberof game.activity_time_info
  64040. * @instance
  64041. */
  64042. activity_time_info.prototype.sort = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  64043. /**
  64044. * activity_time_info icon.
  64045. * @member {string} icon
  64046. * @memberof game.activity_time_info
  64047. * @instance
  64048. */
  64049. activity_time_info.prototype.icon = "";
  64050. /**
  64051. * Creates a new activity_time_info instance using the specified properties.
  64052. * @function create
  64053. * @memberof game.activity_time_info
  64054. * @static
  64055. * @param {game.Iactivity_time_info=} [properties] Properties to set
  64056. * @returns {game.activity_time_info} activity_time_info instance
  64057. */
  64058. activity_time_info.create = function create(properties) {
  64059. return new activity_time_info(properties);
  64060. };
  64061. /**
  64062. * Encodes the specified activity_time_info message. Does not implicitly {@link game.activity_time_info.verify|verify} messages.
  64063. * @function encode
  64064. * @memberof game.activity_time_info
  64065. * @static
  64066. * @param {game.Iactivity_time_info} message activity_time_info message or plain object to encode
  64067. * @param {$protobuf.Writer} [writer] Writer to encode to
  64068. * @returns {$protobuf.Writer} Writer
  64069. */
  64070. activity_time_info.encode = function encode(message, writer) {
  64071. if (!writer)
  64072. writer = $Writer.create();
  64073. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  64074. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
  64075. if (message.state != null && Object.hasOwnProperty.call(message, "state"))
  64076. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.state);
  64077. if (message.opentime != null && Object.hasOwnProperty.call(message, "opentime"))
  64078. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.opentime);
  64079. if (message.endtime != null && Object.hasOwnProperty.call(message, "endtime"))
  64080. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.endtime);
  64081. if (message.name != null && Object.hasOwnProperty.call(message, "name"))
  64082. writer.uint32(/* id 5, wireType 2 =*/42).string(message.name);
  64083. if (message.sort != null && Object.hasOwnProperty.call(message, "sort"))
  64084. writer.uint32(/* id 6, wireType 0 =*/48).int64(message.sort);
  64085. if (message.icon != null && Object.hasOwnProperty.call(message, "icon"))
  64086. writer.uint32(/* id 7, wireType 2 =*/58).string(message.icon);
  64087. return writer;
  64088. };
  64089. /**
  64090. * Encodes the specified activity_time_info message, length delimited. Does not implicitly {@link game.activity_time_info.verify|verify} messages.
  64091. * @function encodeDelimited
  64092. * @memberof game.activity_time_info
  64093. * @static
  64094. * @param {game.Iactivity_time_info} message activity_time_info message or plain object to encode
  64095. * @param {$protobuf.Writer} [writer] Writer to encode to
  64096. * @returns {$protobuf.Writer} Writer
  64097. */
  64098. activity_time_info.encodeDelimited = function encodeDelimited(message, writer) {
  64099. return this.encode(message, writer).ldelim();
  64100. };
  64101. /**
  64102. * Decodes an activity_time_info message from the specified reader or buffer.
  64103. * @function decode
  64104. * @memberof game.activity_time_info
  64105. * @static
  64106. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  64107. * @param {number} [length] Message length if known beforehand
  64108. * @returns {game.activity_time_info} activity_time_info
  64109. * @throws {Error} If the payload is not a reader or valid buffer
  64110. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  64111. */
  64112. activity_time_info.decode = function decode(reader, length) {
  64113. if (!(reader instanceof $Reader))
  64114. reader = $Reader.create(reader);
  64115. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.activity_time_info();
  64116. while (reader.pos < end) {
  64117. let tag = reader.uint32();
  64118. switch (tag >>> 3) {
  64119. case 1:
  64120. message.type = reader.int64();
  64121. break;
  64122. case 2:
  64123. message.state = reader.int64();
  64124. break;
  64125. case 3:
  64126. message.opentime = reader.int64();
  64127. break;
  64128. case 4:
  64129. message.endtime = reader.int64();
  64130. break;
  64131. case 5:
  64132. message.name = reader.string();
  64133. break;
  64134. case 6:
  64135. message.sort = reader.int64();
  64136. break;
  64137. case 7:
  64138. message.icon = reader.string();
  64139. break;
  64140. default:
  64141. reader.skipType(tag & 7);
  64142. break;
  64143. }
  64144. }
  64145. return message;
  64146. };
  64147. /**
  64148. * Decodes an activity_time_info message from the specified reader or buffer, length delimited.
  64149. * @function decodeDelimited
  64150. * @memberof game.activity_time_info
  64151. * @static
  64152. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  64153. * @returns {game.activity_time_info} activity_time_info
  64154. * @throws {Error} If the payload is not a reader or valid buffer
  64155. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  64156. */
  64157. activity_time_info.decodeDelimited = function decodeDelimited(reader) {
  64158. if (!(reader instanceof $Reader))
  64159. reader = new $Reader(reader);
  64160. return this.decode(reader, reader.uint32());
  64161. };
  64162. /**
  64163. * Verifies an activity_time_info message.
  64164. * @function verify
  64165. * @memberof game.activity_time_info
  64166. * @static
  64167. * @param {Object.<string,*>} message Plain object to verify
  64168. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  64169. */
  64170. activity_time_info.verify = function verify(message) {
  64171. if (typeof message !== "object" || message === null)
  64172. return "object expected";
  64173. if (message.type != null && message.hasOwnProperty("type"))
  64174. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  64175. return "type: integer|Long expected";
  64176. if (message.state != null && message.hasOwnProperty("state"))
  64177. if (!$util.isInteger(message.state) && !(message.state && $util.isInteger(message.state.low) && $util.isInteger(message.state.high)))
  64178. return "state: integer|Long expected";
  64179. if (message.opentime != null && message.hasOwnProperty("opentime"))
  64180. if (!$util.isInteger(message.opentime) && !(message.opentime && $util.isInteger(message.opentime.low) && $util.isInteger(message.opentime.high)))
  64181. return "opentime: integer|Long expected";
  64182. if (message.endtime != null && message.hasOwnProperty("endtime"))
  64183. if (!$util.isInteger(message.endtime) && !(message.endtime && $util.isInteger(message.endtime.low) && $util.isInteger(message.endtime.high)))
  64184. return "endtime: integer|Long expected";
  64185. if (message.name != null && message.hasOwnProperty("name"))
  64186. if (!$util.isString(message.name))
  64187. return "name: string expected";
  64188. if (message.sort != null && message.hasOwnProperty("sort"))
  64189. if (!$util.isInteger(message.sort) && !(message.sort && $util.isInteger(message.sort.low) && $util.isInteger(message.sort.high)))
  64190. return "sort: integer|Long expected";
  64191. if (message.icon != null && message.hasOwnProperty("icon"))
  64192. if (!$util.isString(message.icon))
  64193. return "icon: string expected";
  64194. return null;
  64195. };
  64196. /**
  64197. * Creates an activity_time_info message from a plain object. Also converts values to their respective internal types.
  64198. * @function fromObject
  64199. * @memberof game.activity_time_info
  64200. * @static
  64201. * @param {Object.<string,*>} object Plain object
  64202. * @returns {game.activity_time_info} activity_time_info
  64203. */
  64204. activity_time_info.fromObject = function fromObject(object) {
  64205. if (object instanceof $root.game.activity_time_info)
  64206. return object;
  64207. let message = new $root.game.activity_time_info();
  64208. if (object.type != null)
  64209. if ($util.Long)
  64210. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  64211. else if (typeof object.type === "string")
  64212. message.type = parseInt(object.type, 10);
  64213. else if (typeof object.type === "number")
  64214. message.type = object.type;
  64215. else if (typeof object.type === "object")
  64216. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  64217. if (object.state != null)
  64218. if ($util.Long)
  64219. (message.state = $util.Long.fromValue(object.state)).unsigned = false;
  64220. else if (typeof object.state === "string")
  64221. message.state = parseInt(object.state, 10);
  64222. else if (typeof object.state === "number")
  64223. message.state = object.state;
  64224. else if (typeof object.state === "object")
  64225. message.state = new $util.LongBits(object.state.low >>> 0, object.state.high >>> 0).toNumber();
  64226. if (object.opentime != null)
  64227. if ($util.Long)
  64228. (message.opentime = $util.Long.fromValue(object.opentime)).unsigned = false;
  64229. else if (typeof object.opentime === "string")
  64230. message.opentime = parseInt(object.opentime, 10);
  64231. else if (typeof object.opentime === "number")
  64232. message.opentime = object.opentime;
  64233. else if (typeof object.opentime === "object")
  64234. message.opentime = new $util.LongBits(object.opentime.low >>> 0, object.opentime.high >>> 0).toNumber();
  64235. if (object.endtime != null)
  64236. if ($util.Long)
  64237. (message.endtime = $util.Long.fromValue(object.endtime)).unsigned = false;
  64238. else if (typeof object.endtime === "string")
  64239. message.endtime = parseInt(object.endtime, 10);
  64240. else if (typeof object.endtime === "number")
  64241. message.endtime = object.endtime;
  64242. else if (typeof object.endtime === "object")
  64243. message.endtime = new $util.LongBits(object.endtime.low >>> 0, object.endtime.high >>> 0).toNumber();
  64244. if (object.name != null)
  64245. message.name = String(object.name);
  64246. if (object.sort != null)
  64247. if ($util.Long)
  64248. (message.sort = $util.Long.fromValue(object.sort)).unsigned = false;
  64249. else if (typeof object.sort === "string")
  64250. message.sort = parseInt(object.sort, 10);
  64251. else if (typeof object.sort === "number")
  64252. message.sort = object.sort;
  64253. else if (typeof object.sort === "object")
  64254. message.sort = new $util.LongBits(object.sort.low >>> 0, object.sort.high >>> 0).toNumber();
  64255. if (object.icon != null)
  64256. message.icon = String(object.icon);
  64257. return message;
  64258. };
  64259. /**
  64260. * Creates a plain object from an activity_time_info message. Also converts values to other types if specified.
  64261. * @function toObject
  64262. * @memberof game.activity_time_info
  64263. * @static
  64264. * @param {game.activity_time_info} message activity_time_info
  64265. * @param {$protobuf.IConversionOptions} [options] Conversion options
  64266. * @returns {Object.<string,*>} Plain object
  64267. */
  64268. activity_time_info.toObject = function toObject(message, options) {
  64269. if (!options)
  64270. options = {};
  64271. let object = {};
  64272. if (options.defaults) {
  64273. if ($util.Long) {
  64274. let long = new $util.Long(0, 0, false);
  64275. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  64276. } else
  64277. object.type = options.longs === String ? "0" : 0;
  64278. if ($util.Long) {
  64279. let long = new $util.Long(0, 0, false);
  64280. object.state = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  64281. } else
  64282. object.state = options.longs === String ? "0" : 0;
  64283. if ($util.Long) {
  64284. let long = new $util.Long(0, 0, false);
  64285. object.opentime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  64286. } else
  64287. object.opentime = options.longs === String ? "0" : 0;
  64288. if ($util.Long) {
  64289. let long = new $util.Long(0, 0, false);
  64290. object.endtime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  64291. } else
  64292. object.endtime = options.longs === String ? "0" : 0;
  64293. object.name = "";
  64294. if ($util.Long) {
  64295. let long = new $util.Long(0, 0, false);
  64296. object.sort = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  64297. } else
  64298. object.sort = options.longs === String ? "0" : 0;
  64299. object.icon = "";
  64300. }
  64301. if (message.type != null && message.hasOwnProperty("type"))
  64302. if (typeof message.type === "number")
  64303. object.type = options.longs === String ? String(message.type) : message.type;
  64304. else
  64305. 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;
  64306. if (message.state != null && message.hasOwnProperty("state"))
  64307. if (typeof message.state === "number")
  64308. object.state = options.longs === String ? String(message.state) : message.state;
  64309. else
  64310. 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;
  64311. if (message.opentime != null && message.hasOwnProperty("opentime"))
  64312. if (typeof message.opentime === "number")
  64313. object.opentime = options.longs === String ? String(message.opentime) : message.opentime;
  64314. else
  64315. 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;
  64316. if (message.endtime != null && message.hasOwnProperty("endtime"))
  64317. if (typeof message.endtime === "number")
  64318. object.endtime = options.longs === String ? String(message.endtime) : message.endtime;
  64319. else
  64320. 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;
  64321. if (message.name != null && message.hasOwnProperty("name"))
  64322. object.name = message.name;
  64323. if (message.sort != null && message.hasOwnProperty("sort"))
  64324. if (typeof message.sort === "number")
  64325. object.sort = options.longs === String ? String(message.sort) : message.sort;
  64326. else
  64327. 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;
  64328. if (message.icon != null && message.hasOwnProperty("icon"))
  64329. object.icon = message.icon;
  64330. return object;
  64331. };
  64332. /**
  64333. * Converts this activity_time_info to JSON.
  64334. * @function toJSON
  64335. * @memberof game.activity_time_info
  64336. * @instance
  64337. * @returns {Object.<string,*>} JSON object
  64338. */
  64339. activity_time_info.prototype.toJSON = function toJSON() {
  64340. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  64341. };
  64342. return activity_time_info;
  64343. })();
  64344. game.gift_conf_info = (function() {
  64345. /**
  64346. * Properties of a gift_conf_info.
  64347. * @memberof game
  64348. * @interface Igift_conf_info
  64349. * @property {number|Long|null} [ID] gift_conf_info ID
  64350. * @property {Array.<number|Long>|null} [library] gift_conf_info library
  64351. * @property {number|Long|null} [sort] gift_conf_info sort
  64352. * @property {number|Long|null} [spendtype] gift_conf_info spendtype
  64353. * @property {number|Long|null} [spend] gift_conf_info spend
  64354. * @property {number|Long|null} [num] gift_conf_info num
  64355. * @property {number|Long|null} [daylimit] gift_conf_info daylimit
  64356. * @property {number|Long|null} [weeklimit] gift_conf_info weeklimit
  64357. * @property {number|Long|null} [video] gift_conf_info video
  64358. * @property {number|Long|null} [icon] gift_conf_info icon
  64359. * @property {Array.<number|Long>|null} [parameter] gift_conf_info parameter
  64360. */
  64361. /**
  64362. * Constructs a new gift_conf_info.
  64363. * @memberof game
  64364. * @classdesc Represents a gift_conf_info.
  64365. * @implements Igift_conf_info
  64366. * @constructor
  64367. * @param {game.Igift_conf_info=} [properties] Properties to set
  64368. */
  64369. function gift_conf_info(properties) {
  64370. this.library = [];
  64371. this.parameter = [];
  64372. if (properties)
  64373. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  64374. if (properties[keys[i]] != null)
  64375. this[keys[i]] = properties[keys[i]];
  64376. }
  64377. /**
  64378. * gift_conf_info ID.
  64379. * @member {number|Long} ID
  64380. * @memberof game.gift_conf_info
  64381. * @instance
  64382. */
  64383. gift_conf_info.prototype.ID = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  64384. /**
  64385. * gift_conf_info library.
  64386. * @member {Array.<number|Long>} library
  64387. * @memberof game.gift_conf_info
  64388. * @instance
  64389. */
  64390. gift_conf_info.prototype.library = $util.emptyArray;
  64391. /**
  64392. * gift_conf_info sort.
  64393. * @member {number|Long} sort
  64394. * @memberof game.gift_conf_info
  64395. * @instance
  64396. */
  64397. gift_conf_info.prototype.sort = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  64398. /**
  64399. * gift_conf_info spendtype.
  64400. * @member {number|Long} spendtype
  64401. * @memberof game.gift_conf_info
  64402. * @instance
  64403. */
  64404. gift_conf_info.prototype.spendtype = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  64405. /**
  64406. * gift_conf_info spend.
  64407. * @member {number|Long} spend
  64408. * @memberof game.gift_conf_info
  64409. * @instance
  64410. */
  64411. gift_conf_info.prototype.spend = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  64412. /**
  64413. * gift_conf_info num.
  64414. * @member {number|Long} num
  64415. * @memberof game.gift_conf_info
  64416. * @instance
  64417. */
  64418. gift_conf_info.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  64419. /**
  64420. * gift_conf_info daylimit.
  64421. * @member {number|Long} daylimit
  64422. * @memberof game.gift_conf_info
  64423. * @instance
  64424. */
  64425. gift_conf_info.prototype.daylimit = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  64426. /**
  64427. * gift_conf_info weeklimit.
  64428. * @member {number|Long} weeklimit
  64429. * @memberof game.gift_conf_info
  64430. * @instance
  64431. */
  64432. gift_conf_info.prototype.weeklimit = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  64433. /**
  64434. * gift_conf_info video.
  64435. * @member {number|Long} video
  64436. * @memberof game.gift_conf_info
  64437. * @instance
  64438. */
  64439. gift_conf_info.prototype.video = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  64440. /**
  64441. * gift_conf_info icon.
  64442. * @member {number|Long} icon
  64443. * @memberof game.gift_conf_info
  64444. * @instance
  64445. */
  64446. gift_conf_info.prototype.icon = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  64447. /**
  64448. * gift_conf_info parameter.
  64449. * @member {Array.<number|Long>} parameter
  64450. * @memberof game.gift_conf_info
  64451. * @instance
  64452. */
  64453. gift_conf_info.prototype.parameter = $util.emptyArray;
  64454. /**
  64455. * Creates a new gift_conf_info instance using the specified properties.
  64456. * @function create
  64457. * @memberof game.gift_conf_info
  64458. * @static
  64459. * @param {game.Igift_conf_info=} [properties] Properties to set
  64460. * @returns {game.gift_conf_info} gift_conf_info instance
  64461. */
  64462. gift_conf_info.create = function create(properties) {
  64463. return new gift_conf_info(properties);
  64464. };
  64465. /**
  64466. * Encodes the specified gift_conf_info message. Does not implicitly {@link game.gift_conf_info.verify|verify} messages.
  64467. * @function encode
  64468. * @memberof game.gift_conf_info
  64469. * @static
  64470. * @param {game.Igift_conf_info} message gift_conf_info message or plain object to encode
  64471. * @param {$protobuf.Writer} [writer] Writer to encode to
  64472. * @returns {$protobuf.Writer} Writer
  64473. */
  64474. gift_conf_info.encode = function encode(message, writer) {
  64475. if (!writer)
  64476. writer = $Writer.create();
  64477. if (message.ID != null && Object.hasOwnProperty.call(message, "ID"))
  64478. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.ID);
  64479. if (message.library != null && message.library.length) {
  64480. writer.uint32(/* id 2, wireType 2 =*/18).fork();
  64481. for (let i = 0; i < message.library.length; ++i)
  64482. writer.int64(message.library[i]);
  64483. writer.ldelim();
  64484. }
  64485. if (message.sort != null && Object.hasOwnProperty.call(message, "sort"))
  64486. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.sort);
  64487. if (message.spendtype != null && Object.hasOwnProperty.call(message, "spendtype"))
  64488. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.spendtype);
  64489. if (message.spend != null && Object.hasOwnProperty.call(message, "spend"))
  64490. writer.uint32(/* id 5, wireType 0 =*/40).int64(message.spend);
  64491. if (message.num != null && Object.hasOwnProperty.call(message, "num"))
  64492. writer.uint32(/* id 6, wireType 0 =*/48).int64(message.num);
  64493. if (message.daylimit != null && Object.hasOwnProperty.call(message, "daylimit"))
  64494. writer.uint32(/* id 7, wireType 0 =*/56).int64(message.daylimit);
  64495. if (message.weeklimit != null && Object.hasOwnProperty.call(message, "weeklimit"))
  64496. writer.uint32(/* id 8, wireType 0 =*/64).int64(message.weeklimit);
  64497. if (message.video != null && Object.hasOwnProperty.call(message, "video"))
  64498. writer.uint32(/* id 9, wireType 0 =*/72).int64(message.video);
  64499. if (message.icon != null && Object.hasOwnProperty.call(message, "icon"))
  64500. writer.uint32(/* id 10, wireType 0 =*/80).int64(message.icon);
  64501. if (message.parameter != null && message.parameter.length) {
  64502. writer.uint32(/* id 11, wireType 2 =*/90).fork();
  64503. for (let i = 0; i < message.parameter.length; ++i)
  64504. writer.int64(message.parameter[i]);
  64505. writer.ldelim();
  64506. }
  64507. return writer;
  64508. };
  64509. /**
  64510. * Encodes the specified gift_conf_info message, length delimited. Does not implicitly {@link game.gift_conf_info.verify|verify} messages.
  64511. * @function encodeDelimited
  64512. * @memberof game.gift_conf_info
  64513. * @static
  64514. * @param {game.Igift_conf_info} message gift_conf_info message or plain object to encode
  64515. * @param {$protobuf.Writer} [writer] Writer to encode to
  64516. * @returns {$protobuf.Writer} Writer
  64517. */
  64518. gift_conf_info.encodeDelimited = function encodeDelimited(message, writer) {
  64519. return this.encode(message, writer).ldelim();
  64520. };
  64521. /**
  64522. * Decodes a gift_conf_info message from the specified reader or buffer.
  64523. * @function decode
  64524. * @memberof game.gift_conf_info
  64525. * @static
  64526. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  64527. * @param {number} [length] Message length if known beforehand
  64528. * @returns {game.gift_conf_info} gift_conf_info
  64529. * @throws {Error} If the payload is not a reader or valid buffer
  64530. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  64531. */
  64532. gift_conf_info.decode = function decode(reader, length) {
  64533. if (!(reader instanceof $Reader))
  64534. reader = $Reader.create(reader);
  64535. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.gift_conf_info();
  64536. while (reader.pos < end) {
  64537. let tag = reader.uint32();
  64538. switch (tag >>> 3) {
  64539. case 1:
  64540. message.ID = reader.int64();
  64541. break;
  64542. case 2:
  64543. if (!(message.library && message.library.length))
  64544. message.library = [];
  64545. if ((tag & 7) === 2) {
  64546. let end2 = reader.uint32() + reader.pos;
  64547. while (reader.pos < end2)
  64548. message.library.push(reader.int64());
  64549. } else
  64550. message.library.push(reader.int64());
  64551. break;
  64552. case 3:
  64553. message.sort = reader.int64();
  64554. break;
  64555. case 4:
  64556. message.spendtype = reader.int64();
  64557. break;
  64558. case 5:
  64559. message.spend = reader.int64();
  64560. break;
  64561. case 6:
  64562. message.num = reader.int64();
  64563. break;
  64564. case 7:
  64565. message.daylimit = reader.int64();
  64566. break;
  64567. case 8:
  64568. message.weeklimit = reader.int64();
  64569. break;
  64570. case 9:
  64571. message.video = reader.int64();
  64572. break;
  64573. case 10:
  64574. message.icon = reader.int64();
  64575. break;
  64576. case 11:
  64577. if (!(message.parameter && message.parameter.length))
  64578. message.parameter = [];
  64579. if ((tag & 7) === 2) {
  64580. let end2 = reader.uint32() + reader.pos;
  64581. while (reader.pos < end2)
  64582. message.parameter.push(reader.int64());
  64583. } else
  64584. message.parameter.push(reader.int64());
  64585. break;
  64586. default:
  64587. reader.skipType(tag & 7);
  64588. break;
  64589. }
  64590. }
  64591. return message;
  64592. };
  64593. /**
  64594. * Decodes a gift_conf_info message from the specified reader or buffer, length delimited.
  64595. * @function decodeDelimited
  64596. * @memberof game.gift_conf_info
  64597. * @static
  64598. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  64599. * @returns {game.gift_conf_info} gift_conf_info
  64600. * @throws {Error} If the payload is not a reader or valid buffer
  64601. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  64602. */
  64603. gift_conf_info.decodeDelimited = function decodeDelimited(reader) {
  64604. if (!(reader instanceof $Reader))
  64605. reader = new $Reader(reader);
  64606. return this.decode(reader, reader.uint32());
  64607. };
  64608. /**
  64609. * Verifies a gift_conf_info message.
  64610. * @function verify
  64611. * @memberof game.gift_conf_info
  64612. * @static
  64613. * @param {Object.<string,*>} message Plain object to verify
  64614. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  64615. */
  64616. gift_conf_info.verify = function verify(message) {
  64617. if (typeof message !== "object" || message === null)
  64618. return "object expected";
  64619. if (message.ID != null && message.hasOwnProperty("ID"))
  64620. if (!$util.isInteger(message.ID) && !(message.ID && $util.isInteger(message.ID.low) && $util.isInteger(message.ID.high)))
  64621. return "ID: integer|Long expected";
  64622. if (message.library != null && message.hasOwnProperty("library")) {
  64623. if (!Array.isArray(message.library))
  64624. return "library: array expected";
  64625. for (let i = 0; i < message.library.length; ++i)
  64626. if (!$util.isInteger(message.library[i]) && !(message.library[i] && $util.isInteger(message.library[i].low) && $util.isInteger(message.library[i].high)))
  64627. return "library: integer|Long[] expected";
  64628. }
  64629. if (message.sort != null && message.hasOwnProperty("sort"))
  64630. if (!$util.isInteger(message.sort) && !(message.sort && $util.isInteger(message.sort.low) && $util.isInteger(message.sort.high)))
  64631. return "sort: integer|Long expected";
  64632. if (message.spendtype != null && message.hasOwnProperty("spendtype"))
  64633. if (!$util.isInteger(message.spendtype) && !(message.spendtype && $util.isInteger(message.spendtype.low) && $util.isInteger(message.spendtype.high)))
  64634. return "spendtype: integer|Long expected";
  64635. if (message.spend != null && message.hasOwnProperty("spend"))
  64636. if (!$util.isInteger(message.spend) && !(message.spend && $util.isInteger(message.spend.low) && $util.isInteger(message.spend.high)))
  64637. return "spend: integer|Long expected";
  64638. if (message.num != null && message.hasOwnProperty("num"))
  64639. if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
  64640. return "num: integer|Long expected";
  64641. if (message.daylimit != null && message.hasOwnProperty("daylimit"))
  64642. if (!$util.isInteger(message.daylimit) && !(message.daylimit && $util.isInteger(message.daylimit.low) && $util.isInteger(message.daylimit.high)))
  64643. return "daylimit: integer|Long expected";
  64644. if (message.weeklimit != null && message.hasOwnProperty("weeklimit"))
  64645. if (!$util.isInteger(message.weeklimit) && !(message.weeklimit && $util.isInteger(message.weeklimit.low) && $util.isInteger(message.weeklimit.high)))
  64646. return "weeklimit: integer|Long expected";
  64647. if (message.video != null && message.hasOwnProperty("video"))
  64648. if (!$util.isInteger(message.video) && !(message.video && $util.isInteger(message.video.low) && $util.isInteger(message.video.high)))
  64649. return "video: integer|Long expected";
  64650. if (message.icon != null && message.hasOwnProperty("icon"))
  64651. if (!$util.isInteger(message.icon) && !(message.icon && $util.isInteger(message.icon.low) && $util.isInteger(message.icon.high)))
  64652. return "icon: integer|Long expected";
  64653. if (message.parameter != null && message.hasOwnProperty("parameter")) {
  64654. if (!Array.isArray(message.parameter))
  64655. return "parameter: array expected";
  64656. for (let i = 0; i < message.parameter.length; ++i)
  64657. if (!$util.isInteger(message.parameter[i]) && !(message.parameter[i] && $util.isInteger(message.parameter[i].low) && $util.isInteger(message.parameter[i].high)))
  64658. return "parameter: integer|Long[] expected";
  64659. }
  64660. return null;
  64661. };
  64662. /**
  64663. * Creates a gift_conf_info message from a plain object. Also converts values to their respective internal types.
  64664. * @function fromObject
  64665. * @memberof game.gift_conf_info
  64666. * @static
  64667. * @param {Object.<string,*>} object Plain object
  64668. * @returns {game.gift_conf_info} gift_conf_info
  64669. */
  64670. gift_conf_info.fromObject = function fromObject(object) {
  64671. if (object instanceof $root.game.gift_conf_info)
  64672. return object;
  64673. let message = new $root.game.gift_conf_info();
  64674. if (object.ID != null)
  64675. if ($util.Long)
  64676. (message.ID = $util.Long.fromValue(object.ID)).unsigned = false;
  64677. else if (typeof object.ID === "string")
  64678. message.ID = parseInt(object.ID, 10);
  64679. else if (typeof object.ID === "number")
  64680. message.ID = object.ID;
  64681. else if (typeof object.ID === "object")
  64682. message.ID = new $util.LongBits(object.ID.low >>> 0, object.ID.high >>> 0).toNumber();
  64683. if (object.library) {
  64684. if (!Array.isArray(object.library))
  64685. throw TypeError(".game.gift_conf_info.library: array expected");
  64686. message.library = [];
  64687. for (let i = 0; i < object.library.length; ++i)
  64688. if ($util.Long)
  64689. (message.library[i] = $util.Long.fromValue(object.library[i])).unsigned = false;
  64690. else if (typeof object.library[i] === "string")
  64691. message.library[i] = parseInt(object.library[i], 10);
  64692. else if (typeof object.library[i] === "number")
  64693. message.library[i] = object.library[i];
  64694. else if (typeof object.library[i] === "object")
  64695. message.library[i] = new $util.LongBits(object.library[i].low >>> 0, object.library[i].high >>> 0).toNumber();
  64696. }
  64697. if (object.sort != null)
  64698. if ($util.Long)
  64699. (message.sort = $util.Long.fromValue(object.sort)).unsigned = false;
  64700. else if (typeof object.sort === "string")
  64701. message.sort = parseInt(object.sort, 10);
  64702. else if (typeof object.sort === "number")
  64703. message.sort = object.sort;
  64704. else if (typeof object.sort === "object")
  64705. message.sort = new $util.LongBits(object.sort.low >>> 0, object.sort.high >>> 0).toNumber();
  64706. if (object.spendtype != null)
  64707. if ($util.Long)
  64708. (message.spendtype = $util.Long.fromValue(object.spendtype)).unsigned = false;
  64709. else if (typeof object.spendtype === "string")
  64710. message.spendtype = parseInt(object.spendtype, 10);
  64711. else if (typeof object.spendtype === "number")
  64712. message.spendtype = object.spendtype;
  64713. else if (typeof object.spendtype === "object")
  64714. message.spendtype = new $util.LongBits(object.spendtype.low >>> 0, object.spendtype.high >>> 0).toNumber();
  64715. if (object.spend != null)
  64716. if ($util.Long)
  64717. (message.spend = $util.Long.fromValue(object.spend)).unsigned = false;
  64718. else if (typeof object.spend === "string")
  64719. message.spend = parseInt(object.spend, 10);
  64720. else if (typeof object.spend === "number")
  64721. message.spend = object.spend;
  64722. else if (typeof object.spend === "object")
  64723. message.spend = new $util.LongBits(object.spend.low >>> 0, object.spend.high >>> 0).toNumber();
  64724. if (object.num != null)
  64725. if ($util.Long)
  64726. (message.num = $util.Long.fromValue(object.num)).unsigned = false;
  64727. else if (typeof object.num === "string")
  64728. message.num = parseInt(object.num, 10);
  64729. else if (typeof object.num === "number")
  64730. message.num = object.num;
  64731. else if (typeof object.num === "object")
  64732. message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
  64733. if (object.daylimit != null)
  64734. if ($util.Long)
  64735. (message.daylimit = $util.Long.fromValue(object.daylimit)).unsigned = false;
  64736. else if (typeof object.daylimit === "string")
  64737. message.daylimit = parseInt(object.daylimit, 10);
  64738. else if (typeof object.daylimit === "number")
  64739. message.daylimit = object.daylimit;
  64740. else if (typeof object.daylimit === "object")
  64741. message.daylimit = new $util.LongBits(object.daylimit.low >>> 0, object.daylimit.high >>> 0).toNumber();
  64742. if (object.weeklimit != null)
  64743. if ($util.Long)
  64744. (message.weeklimit = $util.Long.fromValue(object.weeklimit)).unsigned = false;
  64745. else if (typeof object.weeklimit === "string")
  64746. message.weeklimit = parseInt(object.weeklimit, 10);
  64747. else if (typeof object.weeklimit === "number")
  64748. message.weeklimit = object.weeklimit;
  64749. else if (typeof object.weeklimit === "object")
  64750. message.weeklimit = new $util.LongBits(object.weeklimit.low >>> 0, object.weeklimit.high >>> 0).toNumber();
  64751. if (object.video != null)
  64752. if ($util.Long)
  64753. (message.video = $util.Long.fromValue(object.video)).unsigned = false;
  64754. else if (typeof object.video === "string")
  64755. message.video = parseInt(object.video, 10);
  64756. else if (typeof object.video === "number")
  64757. message.video = object.video;
  64758. else if (typeof object.video === "object")
  64759. message.video = new $util.LongBits(object.video.low >>> 0, object.video.high >>> 0).toNumber();
  64760. if (object.icon != null)
  64761. if ($util.Long)
  64762. (message.icon = $util.Long.fromValue(object.icon)).unsigned = false;
  64763. else if (typeof object.icon === "string")
  64764. message.icon = parseInt(object.icon, 10);
  64765. else if (typeof object.icon === "number")
  64766. message.icon = object.icon;
  64767. else if (typeof object.icon === "object")
  64768. message.icon = new $util.LongBits(object.icon.low >>> 0, object.icon.high >>> 0).toNumber();
  64769. if (object.parameter) {
  64770. if (!Array.isArray(object.parameter))
  64771. throw TypeError(".game.gift_conf_info.parameter: array expected");
  64772. message.parameter = [];
  64773. for (let i = 0; i < object.parameter.length; ++i)
  64774. if ($util.Long)
  64775. (message.parameter[i] = $util.Long.fromValue(object.parameter[i])).unsigned = false;
  64776. else if (typeof object.parameter[i] === "string")
  64777. message.parameter[i] = parseInt(object.parameter[i], 10);
  64778. else if (typeof object.parameter[i] === "number")
  64779. message.parameter[i] = object.parameter[i];
  64780. else if (typeof object.parameter[i] === "object")
  64781. message.parameter[i] = new $util.LongBits(object.parameter[i].low >>> 0, object.parameter[i].high >>> 0).toNumber();
  64782. }
  64783. return message;
  64784. };
  64785. /**
  64786. * Creates a plain object from a gift_conf_info message. Also converts values to other types if specified.
  64787. * @function toObject
  64788. * @memberof game.gift_conf_info
  64789. * @static
  64790. * @param {game.gift_conf_info} message gift_conf_info
  64791. * @param {$protobuf.IConversionOptions} [options] Conversion options
  64792. * @returns {Object.<string,*>} Plain object
  64793. */
  64794. gift_conf_info.toObject = function toObject(message, options) {
  64795. if (!options)
  64796. options = {};
  64797. let object = {};
  64798. if (options.arrays || options.defaults) {
  64799. object.library = [];
  64800. object.parameter = [];
  64801. }
  64802. if (options.defaults) {
  64803. if ($util.Long) {
  64804. let long = new $util.Long(0, 0, false);
  64805. object.ID = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  64806. } else
  64807. object.ID = options.longs === String ? "0" : 0;
  64808. if ($util.Long) {
  64809. let long = new $util.Long(0, 0, false);
  64810. object.sort = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  64811. } else
  64812. object.sort = options.longs === String ? "0" : 0;
  64813. if ($util.Long) {
  64814. let long = new $util.Long(0, 0, false);
  64815. object.spendtype = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  64816. } else
  64817. object.spendtype = options.longs === String ? "0" : 0;
  64818. if ($util.Long) {
  64819. let long = new $util.Long(0, 0, false);
  64820. object.spend = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  64821. } else
  64822. object.spend = options.longs === String ? "0" : 0;
  64823. if ($util.Long) {
  64824. let long = new $util.Long(0, 0, false);
  64825. object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  64826. } else
  64827. object.num = options.longs === String ? "0" : 0;
  64828. if ($util.Long) {
  64829. let long = new $util.Long(0, 0, false);
  64830. object.daylimit = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  64831. } else
  64832. object.daylimit = options.longs === String ? "0" : 0;
  64833. if ($util.Long) {
  64834. let long = new $util.Long(0, 0, false);
  64835. object.weeklimit = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  64836. } else
  64837. object.weeklimit = options.longs === String ? "0" : 0;
  64838. if ($util.Long) {
  64839. let long = new $util.Long(0, 0, false);
  64840. object.video = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  64841. } else
  64842. object.video = options.longs === String ? "0" : 0;
  64843. if ($util.Long) {
  64844. let long = new $util.Long(0, 0, false);
  64845. object.icon = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  64846. } else
  64847. object.icon = options.longs === String ? "0" : 0;
  64848. }
  64849. if (message.ID != null && message.hasOwnProperty("ID"))
  64850. if (typeof message.ID === "number")
  64851. object.ID = options.longs === String ? String(message.ID) : message.ID;
  64852. else
  64853. 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;
  64854. if (message.library && message.library.length) {
  64855. object.library = [];
  64856. for (let j = 0; j < message.library.length; ++j)
  64857. if (typeof message.library[j] === "number")
  64858. object.library[j] = options.longs === String ? String(message.library[j]) : message.library[j];
  64859. else
  64860. 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];
  64861. }
  64862. if (message.sort != null && message.hasOwnProperty("sort"))
  64863. if (typeof message.sort === "number")
  64864. object.sort = options.longs === String ? String(message.sort) : message.sort;
  64865. else
  64866. 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;
  64867. if (message.spendtype != null && message.hasOwnProperty("spendtype"))
  64868. if (typeof message.spendtype === "number")
  64869. object.spendtype = options.longs === String ? String(message.spendtype) : message.spendtype;
  64870. else
  64871. 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;
  64872. if (message.spend != null && message.hasOwnProperty("spend"))
  64873. if (typeof message.spend === "number")
  64874. object.spend = options.longs === String ? String(message.spend) : message.spend;
  64875. else
  64876. 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;
  64877. if (message.num != null && message.hasOwnProperty("num"))
  64878. if (typeof message.num === "number")
  64879. object.num = options.longs === String ? String(message.num) : message.num;
  64880. else
  64881. 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;
  64882. if (message.daylimit != null && message.hasOwnProperty("daylimit"))
  64883. if (typeof message.daylimit === "number")
  64884. object.daylimit = options.longs === String ? String(message.daylimit) : message.daylimit;
  64885. else
  64886. 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;
  64887. if (message.weeklimit != null && message.hasOwnProperty("weeklimit"))
  64888. if (typeof message.weeklimit === "number")
  64889. object.weeklimit = options.longs === String ? String(message.weeklimit) : message.weeklimit;
  64890. else
  64891. 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;
  64892. if (message.video != null && message.hasOwnProperty("video"))
  64893. if (typeof message.video === "number")
  64894. object.video = options.longs === String ? String(message.video) : message.video;
  64895. else
  64896. 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;
  64897. if (message.icon != null && message.hasOwnProperty("icon"))
  64898. if (typeof message.icon === "number")
  64899. object.icon = options.longs === String ? String(message.icon) : message.icon;
  64900. else
  64901. 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;
  64902. if (message.parameter && message.parameter.length) {
  64903. object.parameter = [];
  64904. for (let j = 0; j < message.parameter.length; ++j)
  64905. if (typeof message.parameter[j] === "number")
  64906. object.parameter[j] = options.longs === String ? String(message.parameter[j]) : message.parameter[j];
  64907. else
  64908. 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];
  64909. }
  64910. return object;
  64911. };
  64912. /**
  64913. * Converts this gift_conf_info to JSON.
  64914. * @function toJSON
  64915. * @memberof game.gift_conf_info
  64916. * @instance
  64917. * @returns {Object.<string,*>} JSON object
  64918. */
  64919. gift_conf_info.prototype.toJSON = function toJSON() {
  64920. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  64921. };
  64922. return gift_conf_info;
  64923. })();
  64924. game.award_conf_info = (function() {
  64925. /**
  64926. * Properties of an award_conf_info.
  64927. * @memberof game
  64928. * @interface Iaward_conf_info
  64929. * @property {number|Long|null} [id] award_conf_info id
  64930. * @property {Array.<game.Iid_num>|null} [list] award_conf_info list
  64931. */
  64932. /**
  64933. * Constructs a new award_conf_info.
  64934. * @memberof game
  64935. * @classdesc Represents an award_conf_info.
  64936. * @implements Iaward_conf_info
  64937. * @constructor
  64938. * @param {game.Iaward_conf_info=} [properties] Properties to set
  64939. */
  64940. function award_conf_info(properties) {
  64941. this.list = [];
  64942. if (properties)
  64943. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  64944. if (properties[keys[i]] != null)
  64945. this[keys[i]] = properties[keys[i]];
  64946. }
  64947. /**
  64948. * award_conf_info id.
  64949. * @member {number|Long} id
  64950. * @memberof game.award_conf_info
  64951. * @instance
  64952. */
  64953. award_conf_info.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  64954. /**
  64955. * award_conf_info list.
  64956. * @member {Array.<game.Iid_num>} list
  64957. * @memberof game.award_conf_info
  64958. * @instance
  64959. */
  64960. award_conf_info.prototype.list = $util.emptyArray;
  64961. /**
  64962. * Creates a new award_conf_info instance using the specified properties.
  64963. * @function create
  64964. * @memberof game.award_conf_info
  64965. * @static
  64966. * @param {game.Iaward_conf_info=} [properties] Properties to set
  64967. * @returns {game.award_conf_info} award_conf_info instance
  64968. */
  64969. award_conf_info.create = function create(properties) {
  64970. return new award_conf_info(properties);
  64971. };
  64972. /**
  64973. * Encodes the specified award_conf_info message. Does not implicitly {@link game.award_conf_info.verify|verify} messages.
  64974. * @function encode
  64975. * @memberof game.award_conf_info
  64976. * @static
  64977. * @param {game.Iaward_conf_info} message award_conf_info message or plain object to encode
  64978. * @param {$protobuf.Writer} [writer] Writer to encode to
  64979. * @returns {$protobuf.Writer} Writer
  64980. */
  64981. award_conf_info.encode = function encode(message, writer) {
  64982. if (!writer)
  64983. writer = $Writer.create();
  64984. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  64985. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  64986. if (message.list != null && message.list.length)
  64987. for (let i = 0; i < message.list.length; ++i)
  64988. $root.game.id_num.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  64989. return writer;
  64990. };
  64991. /**
  64992. * Encodes the specified award_conf_info message, length delimited. Does not implicitly {@link game.award_conf_info.verify|verify} messages.
  64993. * @function encodeDelimited
  64994. * @memberof game.award_conf_info
  64995. * @static
  64996. * @param {game.Iaward_conf_info} message award_conf_info message or plain object to encode
  64997. * @param {$protobuf.Writer} [writer] Writer to encode to
  64998. * @returns {$protobuf.Writer} Writer
  64999. */
  65000. award_conf_info.encodeDelimited = function encodeDelimited(message, writer) {
  65001. return this.encode(message, writer).ldelim();
  65002. };
  65003. /**
  65004. * Decodes an award_conf_info message from the specified reader or buffer.
  65005. * @function decode
  65006. * @memberof game.award_conf_info
  65007. * @static
  65008. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  65009. * @param {number} [length] Message length if known beforehand
  65010. * @returns {game.award_conf_info} award_conf_info
  65011. * @throws {Error} If the payload is not a reader or valid buffer
  65012. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  65013. */
  65014. award_conf_info.decode = function decode(reader, length) {
  65015. if (!(reader instanceof $Reader))
  65016. reader = $Reader.create(reader);
  65017. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.award_conf_info();
  65018. while (reader.pos < end) {
  65019. let tag = reader.uint32();
  65020. switch (tag >>> 3) {
  65021. case 1:
  65022. message.id = reader.int64();
  65023. break;
  65024. case 2:
  65025. if (!(message.list && message.list.length))
  65026. message.list = [];
  65027. message.list.push($root.game.id_num.decode(reader, reader.uint32()));
  65028. break;
  65029. default:
  65030. reader.skipType(tag & 7);
  65031. break;
  65032. }
  65033. }
  65034. return message;
  65035. };
  65036. /**
  65037. * Decodes an award_conf_info message from the specified reader or buffer, length delimited.
  65038. * @function decodeDelimited
  65039. * @memberof game.award_conf_info
  65040. * @static
  65041. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  65042. * @returns {game.award_conf_info} award_conf_info
  65043. * @throws {Error} If the payload is not a reader or valid buffer
  65044. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  65045. */
  65046. award_conf_info.decodeDelimited = function decodeDelimited(reader) {
  65047. if (!(reader instanceof $Reader))
  65048. reader = new $Reader(reader);
  65049. return this.decode(reader, reader.uint32());
  65050. };
  65051. /**
  65052. * Verifies an award_conf_info message.
  65053. * @function verify
  65054. * @memberof game.award_conf_info
  65055. * @static
  65056. * @param {Object.<string,*>} message Plain object to verify
  65057. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  65058. */
  65059. award_conf_info.verify = function verify(message) {
  65060. if (typeof message !== "object" || message === null)
  65061. return "object expected";
  65062. if (message.id != null && message.hasOwnProperty("id"))
  65063. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  65064. return "id: integer|Long expected";
  65065. if (message.list != null && message.hasOwnProperty("list")) {
  65066. if (!Array.isArray(message.list))
  65067. return "list: array expected";
  65068. for (let i = 0; i < message.list.length; ++i) {
  65069. let error = $root.game.id_num.verify(message.list[i]);
  65070. if (error)
  65071. return "list." + error;
  65072. }
  65073. }
  65074. return null;
  65075. };
  65076. /**
  65077. * Creates an award_conf_info message from a plain object. Also converts values to their respective internal types.
  65078. * @function fromObject
  65079. * @memberof game.award_conf_info
  65080. * @static
  65081. * @param {Object.<string,*>} object Plain object
  65082. * @returns {game.award_conf_info} award_conf_info
  65083. */
  65084. award_conf_info.fromObject = function fromObject(object) {
  65085. if (object instanceof $root.game.award_conf_info)
  65086. return object;
  65087. let message = new $root.game.award_conf_info();
  65088. if (object.id != null)
  65089. if ($util.Long)
  65090. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  65091. else if (typeof object.id === "string")
  65092. message.id = parseInt(object.id, 10);
  65093. else if (typeof object.id === "number")
  65094. message.id = object.id;
  65095. else if (typeof object.id === "object")
  65096. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  65097. if (object.list) {
  65098. if (!Array.isArray(object.list))
  65099. throw TypeError(".game.award_conf_info.list: array expected");
  65100. message.list = [];
  65101. for (let i = 0; i < object.list.length; ++i) {
  65102. if (typeof object.list[i] !== "object")
  65103. throw TypeError(".game.award_conf_info.list: object expected");
  65104. message.list[i] = $root.game.id_num.fromObject(object.list[i]);
  65105. }
  65106. }
  65107. return message;
  65108. };
  65109. /**
  65110. * Creates a plain object from an award_conf_info message. Also converts values to other types if specified.
  65111. * @function toObject
  65112. * @memberof game.award_conf_info
  65113. * @static
  65114. * @param {game.award_conf_info} message award_conf_info
  65115. * @param {$protobuf.IConversionOptions} [options] Conversion options
  65116. * @returns {Object.<string,*>} Plain object
  65117. */
  65118. award_conf_info.toObject = function toObject(message, options) {
  65119. if (!options)
  65120. options = {};
  65121. let object = {};
  65122. if (options.arrays || options.defaults)
  65123. object.list = [];
  65124. if (options.defaults)
  65125. if ($util.Long) {
  65126. let long = new $util.Long(0, 0, false);
  65127. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  65128. } else
  65129. object.id = options.longs === String ? "0" : 0;
  65130. if (message.id != null && message.hasOwnProperty("id"))
  65131. if (typeof message.id === "number")
  65132. object.id = options.longs === String ? String(message.id) : message.id;
  65133. else
  65134. 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;
  65135. if (message.list && message.list.length) {
  65136. object.list = [];
  65137. for (let j = 0; j < message.list.length; ++j)
  65138. object.list[j] = $root.game.id_num.toObject(message.list[j], options);
  65139. }
  65140. return object;
  65141. };
  65142. /**
  65143. * Converts this award_conf_info to JSON.
  65144. * @function toJSON
  65145. * @memberof game.award_conf_info
  65146. * @instance
  65147. * @returns {Object.<string,*>} JSON object
  65148. */
  65149. award_conf_info.prototype.toJSON = function toJSON() {
  65150. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  65151. };
  65152. return award_conf_info;
  65153. })();
  65154. game.activity_conf_info = (function() {
  65155. /**
  65156. * Properties of an activity_conf_info.
  65157. * @memberof game
  65158. * @interface Iactivity_conf_info
  65159. * @property {number|Long|null} [type] activity_conf_info type
  65160. * @property {Array.<string>|null} [describe] activity_conf_info describe
  65161. * @property {Array.<number|Long>|null} [parameter1] activity_conf_info parameter1
  65162. * @property {Array.<number|Long>|null} [parameter2] activity_conf_info parameter2
  65163. * @property {Array.<number|Long>|null} [parameter3] activity_conf_info parameter3
  65164. * @property {Array.<game.Igift_conf_info>|null} [giftList] activity_conf_info giftList
  65165. * @property {Array.<game.Iaward_conf_info>|null} [rewardList] activity_conf_info rewardList
  65166. */
  65167. /**
  65168. * Constructs a new activity_conf_info.
  65169. * @memberof game
  65170. * @classdesc Represents an activity_conf_info.
  65171. * @implements Iactivity_conf_info
  65172. * @constructor
  65173. * @param {game.Iactivity_conf_info=} [properties] Properties to set
  65174. */
  65175. function activity_conf_info(properties) {
  65176. this.describe = [];
  65177. this.parameter1 = [];
  65178. this.parameter2 = [];
  65179. this.parameter3 = [];
  65180. this.giftList = [];
  65181. this.rewardList = [];
  65182. if (properties)
  65183. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  65184. if (properties[keys[i]] != null)
  65185. this[keys[i]] = properties[keys[i]];
  65186. }
  65187. /**
  65188. * activity_conf_info type.
  65189. * @member {number|Long} type
  65190. * @memberof game.activity_conf_info
  65191. * @instance
  65192. */
  65193. activity_conf_info.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  65194. /**
  65195. * activity_conf_info describe.
  65196. * @member {Array.<string>} describe
  65197. * @memberof game.activity_conf_info
  65198. * @instance
  65199. */
  65200. activity_conf_info.prototype.describe = $util.emptyArray;
  65201. /**
  65202. * activity_conf_info parameter1.
  65203. * @member {Array.<number|Long>} parameter1
  65204. * @memberof game.activity_conf_info
  65205. * @instance
  65206. */
  65207. activity_conf_info.prototype.parameter1 = $util.emptyArray;
  65208. /**
  65209. * activity_conf_info parameter2.
  65210. * @member {Array.<number|Long>} parameter2
  65211. * @memberof game.activity_conf_info
  65212. * @instance
  65213. */
  65214. activity_conf_info.prototype.parameter2 = $util.emptyArray;
  65215. /**
  65216. * activity_conf_info parameter3.
  65217. * @member {Array.<number|Long>} parameter3
  65218. * @memberof game.activity_conf_info
  65219. * @instance
  65220. */
  65221. activity_conf_info.prototype.parameter3 = $util.emptyArray;
  65222. /**
  65223. * activity_conf_info giftList.
  65224. * @member {Array.<game.Igift_conf_info>} giftList
  65225. * @memberof game.activity_conf_info
  65226. * @instance
  65227. */
  65228. activity_conf_info.prototype.giftList = $util.emptyArray;
  65229. /**
  65230. * activity_conf_info rewardList.
  65231. * @member {Array.<game.Iaward_conf_info>} rewardList
  65232. * @memberof game.activity_conf_info
  65233. * @instance
  65234. */
  65235. activity_conf_info.prototype.rewardList = $util.emptyArray;
  65236. /**
  65237. * Creates a new activity_conf_info instance using the specified properties.
  65238. * @function create
  65239. * @memberof game.activity_conf_info
  65240. * @static
  65241. * @param {game.Iactivity_conf_info=} [properties] Properties to set
  65242. * @returns {game.activity_conf_info} activity_conf_info instance
  65243. */
  65244. activity_conf_info.create = function create(properties) {
  65245. return new activity_conf_info(properties);
  65246. };
  65247. /**
  65248. * Encodes the specified activity_conf_info message. Does not implicitly {@link game.activity_conf_info.verify|verify} messages.
  65249. * @function encode
  65250. * @memberof game.activity_conf_info
  65251. * @static
  65252. * @param {game.Iactivity_conf_info} message activity_conf_info message or plain object to encode
  65253. * @param {$protobuf.Writer} [writer] Writer to encode to
  65254. * @returns {$protobuf.Writer} Writer
  65255. */
  65256. activity_conf_info.encode = function encode(message, writer) {
  65257. if (!writer)
  65258. writer = $Writer.create();
  65259. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  65260. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
  65261. if (message.describe != null && message.describe.length)
  65262. for (let i = 0; i < message.describe.length; ++i)
  65263. writer.uint32(/* id 2, wireType 2 =*/18).string(message.describe[i]);
  65264. if (message.parameter1 != null && message.parameter1.length) {
  65265. writer.uint32(/* id 3, wireType 2 =*/26).fork();
  65266. for (let i = 0; i < message.parameter1.length; ++i)
  65267. writer.int64(message.parameter1[i]);
  65268. writer.ldelim();
  65269. }
  65270. if (message.parameter2 != null && message.parameter2.length) {
  65271. writer.uint32(/* id 4, wireType 2 =*/34).fork();
  65272. for (let i = 0; i < message.parameter2.length; ++i)
  65273. writer.int64(message.parameter2[i]);
  65274. writer.ldelim();
  65275. }
  65276. if (message.parameter3 != null && message.parameter3.length) {
  65277. writer.uint32(/* id 5, wireType 2 =*/42).fork();
  65278. for (let i = 0; i < message.parameter3.length; ++i)
  65279. writer.int64(message.parameter3[i]);
  65280. writer.ldelim();
  65281. }
  65282. if (message.giftList != null && message.giftList.length)
  65283. for (let i = 0; i < message.giftList.length; ++i)
  65284. $root.game.gift_conf_info.encode(message.giftList[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
  65285. if (message.rewardList != null && message.rewardList.length)
  65286. for (let i = 0; i < message.rewardList.length; ++i)
  65287. $root.game.award_conf_info.encode(message.rewardList[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
  65288. return writer;
  65289. };
  65290. /**
  65291. * Encodes the specified activity_conf_info message, length delimited. Does not implicitly {@link game.activity_conf_info.verify|verify} messages.
  65292. * @function encodeDelimited
  65293. * @memberof game.activity_conf_info
  65294. * @static
  65295. * @param {game.Iactivity_conf_info} message activity_conf_info message or plain object to encode
  65296. * @param {$protobuf.Writer} [writer] Writer to encode to
  65297. * @returns {$protobuf.Writer} Writer
  65298. */
  65299. activity_conf_info.encodeDelimited = function encodeDelimited(message, writer) {
  65300. return this.encode(message, writer).ldelim();
  65301. };
  65302. /**
  65303. * Decodes an activity_conf_info message from the specified reader or buffer.
  65304. * @function decode
  65305. * @memberof game.activity_conf_info
  65306. * @static
  65307. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  65308. * @param {number} [length] Message length if known beforehand
  65309. * @returns {game.activity_conf_info} activity_conf_info
  65310. * @throws {Error} If the payload is not a reader or valid buffer
  65311. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  65312. */
  65313. activity_conf_info.decode = function decode(reader, length) {
  65314. if (!(reader instanceof $Reader))
  65315. reader = $Reader.create(reader);
  65316. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.activity_conf_info();
  65317. while (reader.pos < end) {
  65318. let tag = reader.uint32();
  65319. switch (tag >>> 3) {
  65320. case 1:
  65321. message.type = reader.int64();
  65322. break;
  65323. case 2:
  65324. if (!(message.describe && message.describe.length))
  65325. message.describe = [];
  65326. message.describe.push(reader.string());
  65327. break;
  65328. case 3:
  65329. if (!(message.parameter1 && message.parameter1.length))
  65330. message.parameter1 = [];
  65331. if ((tag & 7) === 2) {
  65332. let end2 = reader.uint32() + reader.pos;
  65333. while (reader.pos < end2)
  65334. message.parameter1.push(reader.int64());
  65335. } else
  65336. message.parameter1.push(reader.int64());
  65337. break;
  65338. case 4:
  65339. if (!(message.parameter2 && message.parameter2.length))
  65340. message.parameter2 = [];
  65341. if ((tag & 7) === 2) {
  65342. let end2 = reader.uint32() + reader.pos;
  65343. while (reader.pos < end2)
  65344. message.parameter2.push(reader.int64());
  65345. } else
  65346. message.parameter2.push(reader.int64());
  65347. break;
  65348. case 5:
  65349. if (!(message.parameter3 && message.parameter3.length))
  65350. message.parameter3 = [];
  65351. if ((tag & 7) === 2) {
  65352. let end2 = reader.uint32() + reader.pos;
  65353. while (reader.pos < end2)
  65354. message.parameter3.push(reader.int64());
  65355. } else
  65356. message.parameter3.push(reader.int64());
  65357. break;
  65358. case 6:
  65359. if (!(message.giftList && message.giftList.length))
  65360. message.giftList = [];
  65361. message.giftList.push($root.game.gift_conf_info.decode(reader, reader.uint32()));
  65362. break;
  65363. case 7:
  65364. if (!(message.rewardList && message.rewardList.length))
  65365. message.rewardList = [];
  65366. message.rewardList.push($root.game.award_conf_info.decode(reader, reader.uint32()));
  65367. break;
  65368. default:
  65369. reader.skipType(tag & 7);
  65370. break;
  65371. }
  65372. }
  65373. return message;
  65374. };
  65375. /**
  65376. * Decodes an activity_conf_info message from the specified reader or buffer, length delimited.
  65377. * @function decodeDelimited
  65378. * @memberof game.activity_conf_info
  65379. * @static
  65380. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  65381. * @returns {game.activity_conf_info} activity_conf_info
  65382. * @throws {Error} If the payload is not a reader or valid buffer
  65383. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  65384. */
  65385. activity_conf_info.decodeDelimited = function decodeDelimited(reader) {
  65386. if (!(reader instanceof $Reader))
  65387. reader = new $Reader(reader);
  65388. return this.decode(reader, reader.uint32());
  65389. };
  65390. /**
  65391. * Verifies an activity_conf_info message.
  65392. * @function verify
  65393. * @memberof game.activity_conf_info
  65394. * @static
  65395. * @param {Object.<string,*>} message Plain object to verify
  65396. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  65397. */
  65398. activity_conf_info.verify = function verify(message) {
  65399. if (typeof message !== "object" || message === null)
  65400. return "object expected";
  65401. if (message.type != null && message.hasOwnProperty("type"))
  65402. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  65403. return "type: integer|Long expected";
  65404. if (message.describe != null && message.hasOwnProperty("describe")) {
  65405. if (!Array.isArray(message.describe))
  65406. return "describe: array expected";
  65407. for (let i = 0; i < message.describe.length; ++i)
  65408. if (!$util.isString(message.describe[i]))
  65409. return "describe: string[] expected";
  65410. }
  65411. if (message.parameter1 != null && message.hasOwnProperty("parameter1")) {
  65412. if (!Array.isArray(message.parameter1))
  65413. return "parameter1: array expected";
  65414. for (let i = 0; i < message.parameter1.length; ++i)
  65415. if (!$util.isInteger(message.parameter1[i]) && !(message.parameter1[i] && $util.isInteger(message.parameter1[i].low) && $util.isInteger(message.parameter1[i].high)))
  65416. return "parameter1: integer|Long[] expected";
  65417. }
  65418. if (message.parameter2 != null && message.hasOwnProperty("parameter2")) {
  65419. if (!Array.isArray(message.parameter2))
  65420. return "parameter2: array expected";
  65421. for (let i = 0; i < message.parameter2.length; ++i)
  65422. if (!$util.isInteger(message.parameter2[i]) && !(message.parameter2[i] && $util.isInteger(message.parameter2[i].low) && $util.isInteger(message.parameter2[i].high)))
  65423. return "parameter2: integer|Long[] expected";
  65424. }
  65425. if (message.parameter3 != null && message.hasOwnProperty("parameter3")) {
  65426. if (!Array.isArray(message.parameter3))
  65427. return "parameter3: array expected";
  65428. for (let i = 0; i < message.parameter3.length; ++i)
  65429. if (!$util.isInteger(message.parameter3[i]) && !(message.parameter3[i] && $util.isInteger(message.parameter3[i].low) && $util.isInteger(message.parameter3[i].high)))
  65430. return "parameter3: integer|Long[] expected";
  65431. }
  65432. if (message.giftList != null && message.hasOwnProperty("giftList")) {
  65433. if (!Array.isArray(message.giftList))
  65434. return "giftList: array expected";
  65435. for (let i = 0; i < message.giftList.length; ++i) {
  65436. let error = $root.game.gift_conf_info.verify(message.giftList[i]);
  65437. if (error)
  65438. return "giftList." + error;
  65439. }
  65440. }
  65441. if (message.rewardList != null && message.hasOwnProperty("rewardList")) {
  65442. if (!Array.isArray(message.rewardList))
  65443. return "rewardList: array expected";
  65444. for (let i = 0; i < message.rewardList.length; ++i) {
  65445. let error = $root.game.award_conf_info.verify(message.rewardList[i]);
  65446. if (error)
  65447. return "rewardList." + error;
  65448. }
  65449. }
  65450. return null;
  65451. };
  65452. /**
  65453. * Creates an activity_conf_info message from a plain object. Also converts values to their respective internal types.
  65454. * @function fromObject
  65455. * @memberof game.activity_conf_info
  65456. * @static
  65457. * @param {Object.<string,*>} object Plain object
  65458. * @returns {game.activity_conf_info} activity_conf_info
  65459. */
  65460. activity_conf_info.fromObject = function fromObject(object) {
  65461. if (object instanceof $root.game.activity_conf_info)
  65462. return object;
  65463. let message = new $root.game.activity_conf_info();
  65464. if (object.type != null)
  65465. if ($util.Long)
  65466. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  65467. else if (typeof object.type === "string")
  65468. message.type = parseInt(object.type, 10);
  65469. else if (typeof object.type === "number")
  65470. message.type = object.type;
  65471. else if (typeof object.type === "object")
  65472. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  65473. if (object.describe) {
  65474. if (!Array.isArray(object.describe))
  65475. throw TypeError(".game.activity_conf_info.describe: array expected");
  65476. message.describe = [];
  65477. for (let i = 0; i < object.describe.length; ++i)
  65478. message.describe[i] = String(object.describe[i]);
  65479. }
  65480. if (object.parameter1) {
  65481. if (!Array.isArray(object.parameter1))
  65482. throw TypeError(".game.activity_conf_info.parameter1: array expected");
  65483. message.parameter1 = [];
  65484. for (let i = 0; i < object.parameter1.length; ++i)
  65485. if ($util.Long)
  65486. (message.parameter1[i] = $util.Long.fromValue(object.parameter1[i])).unsigned = false;
  65487. else if (typeof object.parameter1[i] === "string")
  65488. message.parameter1[i] = parseInt(object.parameter1[i], 10);
  65489. else if (typeof object.parameter1[i] === "number")
  65490. message.parameter1[i] = object.parameter1[i];
  65491. else if (typeof object.parameter1[i] === "object")
  65492. message.parameter1[i] = new $util.LongBits(object.parameter1[i].low >>> 0, object.parameter1[i].high >>> 0).toNumber();
  65493. }
  65494. if (object.parameter2) {
  65495. if (!Array.isArray(object.parameter2))
  65496. throw TypeError(".game.activity_conf_info.parameter2: array expected");
  65497. message.parameter2 = [];
  65498. for (let i = 0; i < object.parameter2.length; ++i)
  65499. if ($util.Long)
  65500. (message.parameter2[i] = $util.Long.fromValue(object.parameter2[i])).unsigned = false;
  65501. else if (typeof object.parameter2[i] === "string")
  65502. message.parameter2[i] = parseInt(object.parameter2[i], 10);
  65503. else if (typeof object.parameter2[i] === "number")
  65504. message.parameter2[i] = object.parameter2[i];
  65505. else if (typeof object.parameter2[i] === "object")
  65506. message.parameter2[i] = new $util.LongBits(object.parameter2[i].low >>> 0, object.parameter2[i].high >>> 0).toNumber();
  65507. }
  65508. if (object.parameter3) {
  65509. if (!Array.isArray(object.parameter3))
  65510. throw TypeError(".game.activity_conf_info.parameter3: array expected");
  65511. message.parameter3 = [];
  65512. for (let i = 0; i < object.parameter3.length; ++i)
  65513. if ($util.Long)
  65514. (message.parameter3[i] = $util.Long.fromValue(object.parameter3[i])).unsigned = false;
  65515. else if (typeof object.parameter3[i] === "string")
  65516. message.parameter3[i] = parseInt(object.parameter3[i], 10);
  65517. else if (typeof object.parameter3[i] === "number")
  65518. message.parameter3[i] = object.parameter3[i];
  65519. else if (typeof object.parameter3[i] === "object")
  65520. message.parameter3[i] = new $util.LongBits(object.parameter3[i].low >>> 0, object.parameter3[i].high >>> 0).toNumber();
  65521. }
  65522. if (object.giftList) {
  65523. if (!Array.isArray(object.giftList))
  65524. throw TypeError(".game.activity_conf_info.giftList: array expected");
  65525. message.giftList = [];
  65526. for (let i = 0; i < object.giftList.length; ++i) {
  65527. if (typeof object.giftList[i] !== "object")
  65528. throw TypeError(".game.activity_conf_info.giftList: object expected");
  65529. message.giftList[i] = $root.game.gift_conf_info.fromObject(object.giftList[i]);
  65530. }
  65531. }
  65532. if (object.rewardList) {
  65533. if (!Array.isArray(object.rewardList))
  65534. throw TypeError(".game.activity_conf_info.rewardList: array expected");
  65535. message.rewardList = [];
  65536. for (let i = 0; i < object.rewardList.length; ++i) {
  65537. if (typeof object.rewardList[i] !== "object")
  65538. throw TypeError(".game.activity_conf_info.rewardList: object expected");
  65539. message.rewardList[i] = $root.game.award_conf_info.fromObject(object.rewardList[i]);
  65540. }
  65541. }
  65542. return message;
  65543. };
  65544. /**
  65545. * Creates a plain object from an activity_conf_info message. Also converts values to other types if specified.
  65546. * @function toObject
  65547. * @memberof game.activity_conf_info
  65548. * @static
  65549. * @param {game.activity_conf_info} message activity_conf_info
  65550. * @param {$protobuf.IConversionOptions} [options] Conversion options
  65551. * @returns {Object.<string,*>} Plain object
  65552. */
  65553. activity_conf_info.toObject = function toObject(message, options) {
  65554. if (!options)
  65555. options = {};
  65556. let object = {};
  65557. if (options.arrays || options.defaults) {
  65558. object.describe = [];
  65559. object.parameter1 = [];
  65560. object.parameter2 = [];
  65561. object.parameter3 = [];
  65562. object.giftList = [];
  65563. object.rewardList = [];
  65564. }
  65565. if (options.defaults)
  65566. if ($util.Long) {
  65567. let long = new $util.Long(0, 0, false);
  65568. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  65569. } else
  65570. object.type = options.longs === String ? "0" : 0;
  65571. if (message.type != null && message.hasOwnProperty("type"))
  65572. if (typeof message.type === "number")
  65573. object.type = options.longs === String ? String(message.type) : message.type;
  65574. else
  65575. 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;
  65576. if (message.describe && message.describe.length) {
  65577. object.describe = [];
  65578. for (let j = 0; j < message.describe.length; ++j)
  65579. object.describe[j] = message.describe[j];
  65580. }
  65581. if (message.parameter1 && message.parameter1.length) {
  65582. object.parameter1 = [];
  65583. for (let j = 0; j < message.parameter1.length; ++j)
  65584. if (typeof message.parameter1[j] === "number")
  65585. object.parameter1[j] = options.longs === String ? String(message.parameter1[j]) : message.parameter1[j];
  65586. else
  65587. 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];
  65588. }
  65589. if (message.parameter2 && message.parameter2.length) {
  65590. object.parameter2 = [];
  65591. for (let j = 0; j < message.parameter2.length; ++j)
  65592. if (typeof message.parameter2[j] === "number")
  65593. object.parameter2[j] = options.longs === String ? String(message.parameter2[j]) : message.parameter2[j];
  65594. else
  65595. 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];
  65596. }
  65597. if (message.parameter3 && message.parameter3.length) {
  65598. object.parameter3 = [];
  65599. for (let j = 0; j < message.parameter3.length; ++j)
  65600. if (typeof message.parameter3[j] === "number")
  65601. object.parameter3[j] = options.longs === String ? String(message.parameter3[j]) : message.parameter3[j];
  65602. else
  65603. 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];
  65604. }
  65605. if (message.giftList && message.giftList.length) {
  65606. object.giftList = [];
  65607. for (let j = 0; j < message.giftList.length; ++j)
  65608. object.giftList[j] = $root.game.gift_conf_info.toObject(message.giftList[j], options);
  65609. }
  65610. if (message.rewardList && message.rewardList.length) {
  65611. object.rewardList = [];
  65612. for (let j = 0; j < message.rewardList.length; ++j)
  65613. object.rewardList[j] = $root.game.award_conf_info.toObject(message.rewardList[j], options);
  65614. }
  65615. return object;
  65616. };
  65617. /**
  65618. * Converts this activity_conf_info to JSON.
  65619. * @function toJSON
  65620. * @memberof game.activity_conf_info
  65621. * @instance
  65622. * @returns {Object.<string,*>} JSON object
  65623. */
  65624. activity_conf_info.prototype.toJSON = function toJSON() {
  65625. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  65626. };
  65627. return activity_conf_info;
  65628. })();
  65629. game.privilege_card_info = (function() {
  65630. /**
  65631. * Properties of a privilege_card_info.
  65632. * @memberof game
  65633. * @interface Iprivilege_card_info
  65634. * @property {number|Long|null} [moduleid] privilege_card_info moduleid
  65635. * @property {boolean|null} [state] privilege_card_info state
  65636. * @property {number|Long|null} [startTime] privilege_card_info startTime
  65637. * @property {boolean|null} [award] privilege_card_info award
  65638. */
  65639. /**
  65640. * Constructs a new privilege_card_info.
  65641. * @memberof game
  65642. * @classdesc Represents a privilege_card_info.
  65643. * @implements Iprivilege_card_info
  65644. * @constructor
  65645. * @param {game.Iprivilege_card_info=} [properties] Properties to set
  65646. */
  65647. function privilege_card_info(properties) {
  65648. if (properties)
  65649. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  65650. if (properties[keys[i]] != null)
  65651. this[keys[i]] = properties[keys[i]];
  65652. }
  65653. /**
  65654. * privilege_card_info moduleid.
  65655. * @member {number|Long} moduleid
  65656. * @memberof game.privilege_card_info
  65657. * @instance
  65658. */
  65659. privilege_card_info.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  65660. /**
  65661. * privilege_card_info state.
  65662. * @member {boolean} state
  65663. * @memberof game.privilege_card_info
  65664. * @instance
  65665. */
  65666. privilege_card_info.prototype.state = false;
  65667. /**
  65668. * privilege_card_info startTime.
  65669. * @member {number|Long} startTime
  65670. * @memberof game.privilege_card_info
  65671. * @instance
  65672. */
  65673. privilege_card_info.prototype.startTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  65674. /**
  65675. * privilege_card_info award.
  65676. * @member {boolean} award
  65677. * @memberof game.privilege_card_info
  65678. * @instance
  65679. */
  65680. privilege_card_info.prototype.award = false;
  65681. /**
  65682. * Creates a new privilege_card_info instance using the specified properties.
  65683. * @function create
  65684. * @memberof game.privilege_card_info
  65685. * @static
  65686. * @param {game.Iprivilege_card_info=} [properties] Properties to set
  65687. * @returns {game.privilege_card_info} privilege_card_info instance
  65688. */
  65689. privilege_card_info.create = function create(properties) {
  65690. return new privilege_card_info(properties);
  65691. };
  65692. /**
  65693. * Encodes the specified privilege_card_info message. Does not implicitly {@link game.privilege_card_info.verify|verify} messages.
  65694. * @function encode
  65695. * @memberof game.privilege_card_info
  65696. * @static
  65697. * @param {game.Iprivilege_card_info} message privilege_card_info message or plain object to encode
  65698. * @param {$protobuf.Writer} [writer] Writer to encode to
  65699. * @returns {$protobuf.Writer} Writer
  65700. */
  65701. privilege_card_info.encode = function encode(message, writer) {
  65702. if (!writer)
  65703. writer = $Writer.create();
  65704. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  65705. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.moduleid);
  65706. if (message.state != null && Object.hasOwnProperty.call(message, "state"))
  65707. writer.uint32(/* id 2, wireType 0 =*/16).bool(message.state);
  65708. if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime"))
  65709. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.startTime);
  65710. if (message.award != null && Object.hasOwnProperty.call(message, "award"))
  65711. writer.uint32(/* id 4, wireType 0 =*/32).bool(message.award);
  65712. return writer;
  65713. };
  65714. /**
  65715. * Encodes the specified privilege_card_info message, length delimited. Does not implicitly {@link game.privilege_card_info.verify|verify} messages.
  65716. * @function encodeDelimited
  65717. * @memberof game.privilege_card_info
  65718. * @static
  65719. * @param {game.Iprivilege_card_info} message privilege_card_info message or plain object to encode
  65720. * @param {$protobuf.Writer} [writer] Writer to encode to
  65721. * @returns {$protobuf.Writer} Writer
  65722. */
  65723. privilege_card_info.encodeDelimited = function encodeDelimited(message, writer) {
  65724. return this.encode(message, writer).ldelim();
  65725. };
  65726. /**
  65727. * Decodes a privilege_card_info message from the specified reader or buffer.
  65728. * @function decode
  65729. * @memberof game.privilege_card_info
  65730. * @static
  65731. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  65732. * @param {number} [length] Message length if known beforehand
  65733. * @returns {game.privilege_card_info} privilege_card_info
  65734. * @throws {Error} If the payload is not a reader or valid buffer
  65735. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  65736. */
  65737. privilege_card_info.decode = function decode(reader, length) {
  65738. if (!(reader instanceof $Reader))
  65739. reader = $Reader.create(reader);
  65740. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.privilege_card_info();
  65741. while (reader.pos < end) {
  65742. let tag = reader.uint32();
  65743. switch (tag >>> 3) {
  65744. case 1:
  65745. message.moduleid = reader.int64();
  65746. break;
  65747. case 2:
  65748. message.state = reader.bool();
  65749. break;
  65750. case 3:
  65751. message.startTime = reader.int64();
  65752. break;
  65753. case 4:
  65754. message.award = reader.bool();
  65755. break;
  65756. default:
  65757. reader.skipType(tag & 7);
  65758. break;
  65759. }
  65760. }
  65761. return message;
  65762. };
  65763. /**
  65764. * Decodes a privilege_card_info message from the specified reader or buffer, length delimited.
  65765. * @function decodeDelimited
  65766. * @memberof game.privilege_card_info
  65767. * @static
  65768. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  65769. * @returns {game.privilege_card_info} privilege_card_info
  65770. * @throws {Error} If the payload is not a reader or valid buffer
  65771. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  65772. */
  65773. privilege_card_info.decodeDelimited = function decodeDelimited(reader) {
  65774. if (!(reader instanceof $Reader))
  65775. reader = new $Reader(reader);
  65776. return this.decode(reader, reader.uint32());
  65777. };
  65778. /**
  65779. * Verifies a privilege_card_info message.
  65780. * @function verify
  65781. * @memberof game.privilege_card_info
  65782. * @static
  65783. * @param {Object.<string,*>} message Plain object to verify
  65784. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  65785. */
  65786. privilege_card_info.verify = function verify(message) {
  65787. if (typeof message !== "object" || message === null)
  65788. return "object expected";
  65789. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  65790. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  65791. return "moduleid: integer|Long expected";
  65792. if (message.state != null && message.hasOwnProperty("state"))
  65793. if (typeof message.state !== "boolean")
  65794. return "state: boolean expected";
  65795. if (message.startTime != null && message.hasOwnProperty("startTime"))
  65796. if (!$util.isInteger(message.startTime) && !(message.startTime && $util.isInteger(message.startTime.low) && $util.isInteger(message.startTime.high)))
  65797. return "startTime: integer|Long expected";
  65798. if (message.award != null && message.hasOwnProperty("award"))
  65799. if (typeof message.award !== "boolean")
  65800. return "award: boolean expected";
  65801. return null;
  65802. };
  65803. /**
  65804. * Creates a privilege_card_info message from a plain object. Also converts values to their respective internal types.
  65805. * @function fromObject
  65806. * @memberof game.privilege_card_info
  65807. * @static
  65808. * @param {Object.<string,*>} object Plain object
  65809. * @returns {game.privilege_card_info} privilege_card_info
  65810. */
  65811. privilege_card_info.fromObject = function fromObject(object) {
  65812. if (object instanceof $root.game.privilege_card_info)
  65813. return object;
  65814. let message = new $root.game.privilege_card_info();
  65815. if (object.moduleid != null)
  65816. if ($util.Long)
  65817. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  65818. else if (typeof object.moduleid === "string")
  65819. message.moduleid = parseInt(object.moduleid, 10);
  65820. else if (typeof object.moduleid === "number")
  65821. message.moduleid = object.moduleid;
  65822. else if (typeof object.moduleid === "object")
  65823. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  65824. if (object.state != null)
  65825. message.state = Boolean(object.state);
  65826. if (object.startTime != null)
  65827. if ($util.Long)
  65828. (message.startTime = $util.Long.fromValue(object.startTime)).unsigned = false;
  65829. else if (typeof object.startTime === "string")
  65830. message.startTime = parseInt(object.startTime, 10);
  65831. else if (typeof object.startTime === "number")
  65832. message.startTime = object.startTime;
  65833. else if (typeof object.startTime === "object")
  65834. message.startTime = new $util.LongBits(object.startTime.low >>> 0, object.startTime.high >>> 0).toNumber();
  65835. if (object.award != null)
  65836. message.award = Boolean(object.award);
  65837. return message;
  65838. };
  65839. /**
  65840. * Creates a plain object from a privilege_card_info message. Also converts values to other types if specified.
  65841. * @function toObject
  65842. * @memberof game.privilege_card_info
  65843. * @static
  65844. * @param {game.privilege_card_info} message privilege_card_info
  65845. * @param {$protobuf.IConversionOptions} [options] Conversion options
  65846. * @returns {Object.<string,*>} Plain object
  65847. */
  65848. privilege_card_info.toObject = function toObject(message, options) {
  65849. if (!options)
  65850. options = {};
  65851. let object = {};
  65852. if (options.defaults) {
  65853. if ($util.Long) {
  65854. let long = new $util.Long(0, 0, false);
  65855. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  65856. } else
  65857. object.moduleid = options.longs === String ? "0" : 0;
  65858. object.state = false;
  65859. if ($util.Long) {
  65860. let long = new $util.Long(0, 0, false);
  65861. object.startTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  65862. } else
  65863. object.startTime = options.longs === String ? "0" : 0;
  65864. object.award = false;
  65865. }
  65866. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  65867. if (typeof message.moduleid === "number")
  65868. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  65869. else
  65870. 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;
  65871. if (message.state != null && message.hasOwnProperty("state"))
  65872. object.state = message.state;
  65873. if (message.startTime != null && message.hasOwnProperty("startTime"))
  65874. if (typeof message.startTime === "number")
  65875. object.startTime = options.longs === String ? String(message.startTime) : message.startTime;
  65876. else
  65877. 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;
  65878. if (message.award != null && message.hasOwnProperty("award"))
  65879. object.award = message.award;
  65880. return object;
  65881. };
  65882. /**
  65883. * Converts this privilege_card_info to JSON.
  65884. * @function toJSON
  65885. * @memberof game.privilege_card_info
  65886. * @instance
  65887. * @returns {Object.<string,*>} JSON object
  65888. */
  65889. privilege_card_info.prototype.toJSON = function toJSON() {
  65890. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  65891. };
  65892. return privilege_card_info;
  65893. })();
  65894. game.daily_dungeons_info = (function() {
  65895. /**
  65896. * Properties of a daily_dungeons_info.
  65897. * @memberof game
  65898. * @interface Idaily_dungeons_info
  65899. * @property {number|Long|null} [type] daily_dungeons_info type
  65900. * @property {number|Long|null} [diff] daily_dungeons_info diff
  65901. * @property {number|Long|null} [num] daily_dungeons_info num
  65902. */
  65903. /**
  65904. * Constructs a new daily_dungeons_info.
  65905. * @memberof game
  65906. * @classdesc Represents a daily_dungeons_info.
  65907. * @implements Idaily_dungeons_info
  65908. * @constructor
  65909. * @param {game.Idaily_dungeons_info=} [properties] Properties to set
  65910. */
  65911. function daily_dungeons_info(properties) {
  65912. if (properties)
  65913. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  65914. if (properties[keys[i]] != null)
  65915. this[keys[i]] = properties[keys[i]];
  65916. }
  65917. /**
  65918. * daily_dungeons_info type.
  65919. * @member {number|Long} type
  65920. * @memberof game.daily_dungeons_info
  65921. * @instance
  65922. */
  65923. daily_dungeons_info.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  65924. /**
  65925. * daily_dungeons_info diff.
  65926. * @member {number|Long} diff
  65927. * @memberof game.daily_dungeons_info
  65928. * @instance
  65929. */
  65930. daily_dungeons_info.prototype.diff = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  65931. /**
  65932. * daily_dungeons_info num.
  65933. * @member {number|Long} num
  65934. * @memberof game.daily_dungeons_info
  65935. * @instance
  65936. */
  65937. daily_dungeons_info.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  65938. /**
  65939. * Creates a new daily_dungeons_info instance using the specified properties.
  65940. * @function create
  65941. * @memberof game.daily_dungeons_info
  65942. * @static
  65943. * @param {game.Idaily_dungeons_info=} [properties] Properties to set
  65944. * @returns {game.daily_dungeons_info} daily_dungeons_info instance
  65945. */
  65946. daily_dungeons_info.create = function create(properties) {
  65947. return new daily_dungeons_info(properties);
  65948. };
  65949. /**
  65950. * Encodes the specified daily_dungeons_info message. Does not implicitly {@link game.daily_dungeons_info.verify|verify} messages.
  65951. * @function encode
  65952. * @memberof game.daily_dungeons_info
  65953. * @static
  65954. * @param {game.Idaily_dungeons_info} message daily_dungeons_info message or plain object to encode
  65955. * @param {$protobuf.Writer} [writer] Writer to encode to
  65956. * @returns {$protobuf.Writer} Writer
  65957. */
  65958. daily_dungeons_info.encode = function encode(message, writer) {
  65959. if (!writer)
  65960. writer = $Writer.create();
  65961. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  65962. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
  65963. if (message.diff != null && Object.hasOwnProperty.call(message, "diff"))
  65964. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.diff);
  65965. if (message.num != null && Object.hasOwnProperty.call(message, "num"))
  65966. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.num);
  65967. return writer;
  65968. };
  65969. /**
  65970. * Encodes the specified daily_dungeons_info message, length delimited. Does not implicitly {@link game.daily_dungeons_info.verify|verify} messages.
  65971. * @function encodeDelimited
  65972. * @memberof game.daily_dungeons_info
  65973. * @static
  65974. * @param {game.Idaily_dungeons_info} message daily_dungeons_info message or plain object to encode
  65975. * @param {$protobuf.Writer} [writer] Writer to encode to
  65976. * @returns {$protobuf.Writer} Writer
  65977. */
  65978. daily_dungeons_info.encodeDelimited = function encodeDelimited(message, writer) {
  65979. return this.encode(message, writer).ldelim();
  65980. };
  65981. /**
  65982. * Decodes a daily_dungeons_info message from the specified reader or buffer.
  65983. * @function decode
  65984. * @memberof game.daily_dungeons_info
  65985. * @static
  65986. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  65987. * @param {number} [length] Message length if known beforehand
  65988. * @returns {game.daily_dungeons_info} daily_dungeons_info
  65989. * @throws {Error} If the payload is not a reader or valid buffer
  65990. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  65991. */
  65992. daily_dungeons_info.decode = function decode(reader, length) {
  65993. if (!(reader instanceof $Reader))
  65994. reader = $Reader.create(reader);
  65995. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.daily_dungeons_info();
  65996. while (reader.pos < end) {
  65997. let tag = reader.uint32();
  65998. switch (tag >>> 3) {
  65999. case 1:
  66000. message.type = reader.int64();
  66001. break;
  66002. case 2:
  66003. message.diff = reader.int64();
  66004. break;
  66005. case 3:
  66006. message.num = reader.int64();
  66007. break;
  66008. default:
  66009. reader.skipType(tag & 7);
  66010. break;
  66011. }
  66012. }
  66013. return message;
  66014. };
  66015. /**
  66016. * Decodes a daily_dungeons_info message from the specified reader or buffer, length delimited.
  66017. * @function decodeDelimited
  66018. * @memberof game.daily_dungeons_info
  66019. * @static
  66020. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  66021. * @returns {game.daily_dungeons_info} daily_dungeons_info
  66022. * @throws {Error} If the payload is not a reader or valid buffer
  66023. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  66024. */
  66025. daily_dungeons_info.decodeDelimited = function decodeDelimited(reader) {
  66026. if (!(reader instanceof $Reader))
  66027. reader = new $Reader(reader);
  66028. return this.decode(reader, reader.uint32());
  66029. };
  66030. /**
  66031. * Verifies a daily_dungeons_info message.
  66032. * @function verify
  66033. * @memberof game.daily_dungeons_info
  66034. * @static
  66035. * @param {Object.<string,*>} message Plain object to verify
  66036. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  66037. */
  66038. daily_dungeons_info.verify = function verify(message) {
  66039. if (typeof message !== "object" || message === null)
  66040. return "object expected";
  66041. if (message.type != null && message.hasOwnProperty("type"))
  66042. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  66043. return "type: integer|Long expected";
  66044. if (message.diff != null && message.hasOwnProperty("diff"))
  66045. if (!$util.isInteger(message.diff) && !(message.diff && $util.isInteger(message.diff.low) && $util.isInteger(message.diff.high)))
  66046. return "diff: integer|Long expected";
  66047. if (message.num != null && message.hasOwnProperty("num"))
  66048. if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
  66049. return "num: integer|Long expected";
  66050. return null;
  66051. };
  66052. /**
  66053. * Creates a daily_dungeons_info message from a plain object. Also converts values to their respective internal types.
  66054. * @function fromObject
  66055. * @memberof game.daily_dungeons_info
  66056. * @static
  66057. * @param {Object.<string,*>} object Plain object
  66058. * @returns {game.daily_dungeons_info} daily_dungeons_info
  66059. */
  66060. daily_dungeons_info.fromObject = function fromObject(object) {
  66061. if (object instanceof $root.game.daily_dungeons_info)
  66062. return object;
  66063. let message = new $root.game.daily_dungeons_info();
  66064. if (object.type != null)
  66065. if ($util.Long)
  66066. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  66067. else if (typeof object.type === "string")
  66068. message.type = parseInt(object.type, 10);
  66069. else if (typeof object.type === "number")
  66070. message.type = object.type;
  66071. else if (typeof object.type === "object")
  66072. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  66073. if (object.diff != null)
  66074. if ($util.Long)
  66075. (message.diff = $util.Long.fromValue(object.diff)).unsigned = false;
  66076. else if (typeof object.diff === "string")
  66077. message.diff = parseInt(object.diff, 10);
  66078. else if (typeof object.diff === "number")
  66079. message.diff = object.diff;
  66080. else if (typeof object.diff === "object")
  66081. message.diff = new $util.LongBits(object.diff.low >>> 0, object.diff.high >>> 0).toNumber();
  66082. if (object.num != null)
  66083. if ($util.Long)
  66084. (message.num = $util.Long.fromValue(object.num)).unsigned = false;
  66085. else if (typeof object.num === "string")
  66086. message.num = parseInt(object.num, 10);
  66087. else if (typeof object.num === "number")
  66088. message.num = object.num;
  66089. else if (typeof object.num === "object")
  66090. message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
  66091. return message;
  66092. };
  66093. /**
  66094. * Creates a plain object from a daily_dungeons_info message. Also converts values to other types if specified.
  66095. * @function toObject
  66096. * @memberof game.daily_dungeons_info
  66097. * @static
  66098. * @param {game.daily_dungeons_info} message daily_dungeons_info
  66099. * @param {$protobuf.IConversionOptions} [options] Conversion options
  66100. * @returns {Object.<string,*>} Plain object
  66101. */
  66102. daily_dungeons_info.toObject = function toObject(message, options) {
  66103. if (!options)
  66104. options = {};
  66105. let object = {};
  66106. if (options.defaults) {
  66107. if ($util.Long) {
  66108. let long = new $util.Long(0, 0, false);
  66109. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  66110. } else
  66111. object.type = options.longs === String ? "0" : 0;
  66112. if ($util.Long) {
  66113. let long = new $util.Long(0, 0, false);
  66114. object.diff = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  66115. } else
  66116. object.diff = options.longs === String ? "0" : 0;
  66117. if ($util.Long) {
  66118. let long = new $util.Long(0, 0, false);
  66119. object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  66120. } else
  66121. object.num = options.longs === String ? "0" : 0;
  66122. }
  66123. if (message.type != null && message.hasOwnProperty("type"))
  66124. if (typeof message.type === "number")
  66125. object.type = options.longs === String ? String(message.type) : message.type;
  66126. else
  66127. 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;
  66128. if (message.diff != null && message.hasOwnProperty("diff"))
  66129. if (typeof message.diff === "number")
  66130. object.diff = options.longs === String ? String(message.diff) : message.diff;
  66131. else
  66132. 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;
  66133. if (message.num != null && message.hasOwnProperty("num"))
  66134. if (typeof message.num === "number")
  66135. object.num = options.longs === String ? String(message.num) : message.num;
  66136. else
  66137. 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;
  66138. return object;
  66139. };
  66140. /**
  66141. * Converts this daily_dungeons_info to JSON.
  66142. * @function toJSON
  66143. * @memberof game.daily_dungeons_info
  66144. * @instance
  66145. * @returns {Object.<string,*>} JSON object
  66146. */
  66147. daily_dungeons_info.prototype.toJSON = function toJSON() {
  66148. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  66149. };
  66150. return daily_dungeons_info;
  66151. })();
  66152. game.pop_gift_conf = (function() {
  66153. /**
  66154. * Properties of a pop_gift_conf.
  66155. * @memberof game
  66156. * @interface Ipop_gift_conf
  66157. * @property {number|Long|null} [spendtype] pop_gift_conf spendtype
  66158. * @property {number|Long|null} [spend] pop_gift_conf spend
  66159. * @property {number|Long|null} [num] pop_gift_conf num
  66160. * @property {number|Long|null} [library] pop_gift_conf library
  66161. */
  66162. /**
  66163. * Constructs a new pop_gift_conf.
  66164. * @memberof game
  66165. * @classdesc Represents a pop_gift_conf.
  66166. * @implements Ipop_gift_conf
  66167. * @constructor
  66168. * @param {game.Ipop_gift_conf=} [properties] Properties to set
  66169. */
  66170. function pop_gift_conf(properties) {
  66171. if (properties)
  66172. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  66173. if (properties[keys[i]] != null)
  66174. this[keys[i]] = properties[keys[i]];
  66175. }
  66176. /**
  66177. * pop_gift_conf spendtype.
  66178. * @member {number|Long} spendtype
  66179. * @memberof game.pop_gift_conf
  66180. * @instance
  66181. */
  66182. pop_gift_conf.prototype.spendtype = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  66183. /**
  66184. * pop_gift_conf spend.
  66185. * @member {number|Long} spend
  66186. * @memberof game.pop_gift_conf
  66187. * @instance
  66188. */
  66189. pop_gift_conf.prototype.spend = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  66190. /**
  66191. * pop_gift_conf num.
  66192. * @member {number|Long} num
  66193. * @memberof game.pop_gift_conf
  66194. * @instance
  66195. */
  66196. pop_gift_conf.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  66197. /**
  66198. * pop_gift_conf library.
  66199. * @member {number|Long} library
  66200. * @memberof game.pop_gift_conf
  66201. * @instance
  66202. */
  66203. pop_gift_conf.prototype.library = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  66204. /**
  66205. * Creates a new pop_gift_conf instance using the specified properties.
  66206. * @function create
  66207. * @memberof game.pop_gift_conf
  66208. * @static
  66209. * @param {game.Ipop_gift_conf=} [properties] Properties to set
  66210. * @returns {game.pop_gift_conf} pop_gift_conf instance
  66211. */
  66212. pop_gift_conf.create = function create(properties) {
  66213. return new pop_gift_conf(properties);
  66214. };
  66215. /**
  66216. * Encodes the specified pop_gift_conf message. Does not implicitly {@link game.pop_gift_conf.verify|verify} messages.
  66217. * @function encode
  66218. * @memberof game.pop_gift_conf
  66219. * @static
  66220. * @param {game.Ipop_gift_conf} message pop_gift_conf message or plain object to encode
  66221. * @param {$protobuf.Writer} [writer] Writer to encode to
  66222. * @returns {$protobuf.Writer} Writer
  66223. */
  66224. pop_gift_conf.encode = function encode(message, writer) {
  66225. if (!writer)
  66226. writer = $Writer.create();
  66227. if (message.spendtype != null && Object.hasOwnProperty.call(message, "spendtype"))
  66228. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.spendtype);
  66229. if (message.spend != null && Object.hasOwnProperty.call(message, "spend"))
  66230. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.spend);
  66231. if (message.num != null && Object.hasOwnProperty.call(message, "num"))
  66232. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.num);
  66233. if (message.library != null && Object.hasOwnProperty.call(message, "library"))
  66234. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.library);
  66235. return writer;
  66236. };
  66237. /**
  66238. * Encodes the specified pop_gift_conf message, length delimited. Does not implicitly {@link game.pop_gift_conf.verify|verify} messages.
  66239. * @function encodeDelimited
  66240. * @memberof game.pop_gift_conf
  66241. * @static
  66242. * @param {game.Ipop_gift_conf} message pop_gift_conf message or plain object to encode
  66243. * @param {$protobuf.Writer} [writer] Writer to encode to
  66244. * @returns {$protobuf.Writer} Writer
  66245. */
  66246. pop_gift_conf.encodeDelimited = function encodeDelimited(message, writer) {
  66247. return this.encode(message, writer).ldelim();
  66248. };
  66249. /**
  66250. * Decodes a pop_gift_conf message from the specified reader or buffer.
  66251. * @function decode
  66252. * @memberof game.pop_gift_conf
  66253. * @static
  66254. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  66255. * @param {number} [length] Message length if known beforehand
  66256. * @returns {game.pop_gift_conf} pop_gift_conf
  66257. * @throws {Error} If the payload is not a reader or valid buffer
  66258. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  66259. */
  66260. pop_gift_conf.decode = function decode(reader, length) {
  66261. if (!(reader instanceof $Reader))
  66262. reader = $Reader.create(reader);
  66263. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pop_gift_conf();
  66264. while (reader.pos < end) {
  66265. let tag = reader.uint32();
  66266. switch (tag >>> 3) {
  66267. case 1:
  66268. message.spendtype = reader.int64();
  66269. break;
  66270. case 2:
  66271. message.spend = reader.int64();
  66272. break;
  66273. case 3:
  66274. message.num = reader.int64();
  66275. break;
  66276. case 4:
  66277. message.library = reader.int64();
  66278. break;
  66279. default:
  66280. reader.skipType(tag & 7);
  66281. break;
  66282. }
  66283. }
  66284. return message;
  66285. };
  66286. /**
  66287. * Decodes a pop_gift_conf message from the specified reader or buffer, length delimited.
  66288. * @function decodeDelimited
  66289. * @memberof game.pop_gift_conf
  66290. * @static
  66291. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  66292. * @returns {game.pop_gift_conf} pop_gift_conf
  66293. * @throws {Error} If the payload is not a reader or valid buffer
  66294. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  66295. */
  66296. pop_gift_conf.decodeDelimited = function decodeDelimited(reader) {
  66297. if (!(reader instanceof $Reader))
  66298. reader = new $Reader(reader);
  66299. return this.decode(reader, reader.uint32());
  66300. };
  66301. /**
  66302. * Verifies a pop_gift_conf message.
  66303. * @function verify
  66304. * @memberof game.pop_gift_conf
  66305. * @static
  66306. * @param {Object.<string,*>} message Plain object to verify
  66307. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  66308. */
  66309. pop_gift_conf.verify = function verify(message) {
  66310. if (typeof message !== "object" || message === null)
  66311. return "object expected";
  66312. if (message.spendtype != null && message.hasOwnProperty("spendtype"))
  66313. if (!$util.isInteger(message.spendtype) && !(message.spendtype && $util.isInteger(message.spendtype.low) && $util.isInteger(message.spendtype.high)))
  66314. return "spendtype: integer|Long expected";
  66315. if (message.spend != null && message.hasOwnProperty("spend"))
  66316. if (!$util.isInteger(message.spend) && !(message.spend && $util.isInteger(message.spend.low) && $util.isInteger(message.spend.high)))
  66317. return "spend: integer|Long expected";
  66318. if (message.num != null && message.hasOwnProperty("num"))
  66319. if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
  66320. return "num: integer|Long expected";
  66321. if (message.library != null && message.hasOwnProperty("library"))
  66322. if (!$util.isInteger(message.library) && !(message.library && $util.isInteger(message.library.low) && $util.isInteger(message.library.high)))
  66323. return "library: integer|Long expected";
  66324. return null;
  66325. };
  66326. /**
  66327. * Creates a pop_gift_conf message from a plain object. Also converts values to their respective internal types.
  66328. * @function fromObject
  66329. * @memberof game.pop_gift_conf
  66330. * @static
  66331. * @param {Object.<string,*>} object Plain object
  66332. * @returns {game.pop_gift_conf} pop_gift_conf
  66333. */
  66334. pop_gift_conf.fromObject = function fromObject(object) {
  66335. if (object instanceof $root.game.pop_gift_conf)
  66336. return object;
  66337. let message = new $root.game.pop_gift_conf();
  66338. if (object.spendtype != null)
  66339. if ($util.Long)
  66340. (message.spendtype = $util.Long.fromValue(object.spendtype)).unsigned = false;
  66341. else if (typeof object.spendtype === "string")
  66342. message.spendtype = parseInt(object.spendtype, 10);
  66343. else if (typeof object.spendtype === "number")
  66344. message.spendtype = object.spendtype;
  66345. else if (typeof object.spendtype === "object")
  66346. message.spendtype = new $util.LongBits(object.spendtype.low >>> 0, object.spendtype.high >>> 0).toNumber();
  66347. if (object.spend != null)
  66348. if ($util.Long)
  66349. (message.spend = $util.Long.fromValue(object.spend)).unsigned = false;
  66350. else if (typeof object.spend === "string")
  66351. message.spend = parseInt(object.spend, 10);
  66352. else if (typeof object.spend === "number")
  66353. message.spend = object.spend;
  66354. else if (typeof object.spend === "object")
  66355. message.spend = new $util.LongBits(object.spend.low >>> 0, object.spend.high >>> 0).toNumber();
  66356. if (object.num != null)
  66357. if ($util.Long)
  66358. (message.num = $util.Long.fromValue(object.num)).unsigned = false;
  66359. else if (typeof object.num === "string")
  66360. message.num = parseInt(object.num, 10);
  66361. else if (typeof object.num === "number")
  66362. message.num = object.num;
  66363. else if (typeof object.num === "object")
  66364. message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
  66365. if (object.library != null)
  66366. if ($util.Long)
  66367. (message.library = $util.Long.fromValue(object.library)).unsigned = false;
  66368. else if (typeof object.library === "string")
  66369. message.library = parseInt(object.library, 10);
  66370. else if (typeof object.library === "number")
  66371. message.library = object.library;
  66372. else if (typeof object.library === "object")
  66373. message.library = new $util.LongBits(object.library.low >>> 0, object.library.high >>> 0).toNumber();
  66374. return message;
  66375. };
  66376. /**
  66377. * Creates a plain object from a pop_gift_conf message. Also converts values to other types if specified.
  66378. * @function toObject
  66379. * @memberof game.pop_gift_conf
  66380. * @static
  66381. * @param {game.pop_gift_conf} message pop_gift_conf
  66382. * @param {$protobuf.IConversionOptions} [options] Conversion options
  66383. * @returns {Object.<string,*>} Plain object
  66384. */
  66385. pop_gift_conf.toObject = function toObject(message, options) {
  66386. if (!options)
  66387. options = {};
  66388. let object = {};
  66389. if (options.defaults) {
  66390. if ($util.Long) {
  66391. let long = new $util.Long(0, 0, false);
  66392. object.spendtype = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  66393. } else
  66394. object.spendtype = options.longs === String ? "0" : 0;
  66395. if ($util.Long) {
  66396. let long = new $util.Long(0, 0, false);
  66397. object.spend = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  66398. } else
  66399. object.spend = options.longs === String ? "0" : 0;
  66400. if ($util.Long) {
  66401. let long = new $util.Long(0, 0, false);
  66402. object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  66403. } else
  66404. object.num = options.longs === String ? "0" : 0;
  66405. if ($util.Long) {
  66406. let long = new $util.Long(0, 0, false);
  66407. object.library = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  66408. } else
  66409. object.library = options.longs === String ? "0" : 0;
  66410. }
  66411. if (message.spendtype != null && message.hasOwnProperty("spendtype"))
  66412. if (typeof message.spendtype === "number")
  66413. object.spendtype = options.longs === String ? String(message.spendtype) : message.spendtype;
  66414. else
  66415. 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;
  66416. if (message.spend != null && message.hasOwnProperty("spend"))
  66417. if (typeof message.spend === "number")
  66418. object.spend = options.longs === String ? String(message.spend) : message.spend;
  66419. else
  66420. 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;
  66421. if (message.num != null && message.hasOwnProperty("num"))
  66422. if (typeof message.num === "number")
  66423. object.num = options.longs === String ? String(message.num) : message.num;
  66424. else
  66425. 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;
  66426. if (message.library != null && message.hasOwnProperty("library"))
  66427. if (typeof message.library === "number")
  66428. object.library = options.longs === String ? String(message.library) : message.library;
  66429. else
  66430. 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;
  66431. return object;
  66432. };
  66433. /**
  66434. * Converts this pop_gift_conf to JSON.
  66435. * @function toJSON
  66436. * @memberof game.pop_gift_conf
  66437. * @instance
  66438. * @returns {Object.<string,*>} JSON object
  66439. */
  66440. pop_gift_conf.prototype.toJSON = function toJSON() {
  66441. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  66442. };
  66443. return pop_gift_conf;
  66444. })();
  66445. game.pop_gift_info = (function() {
  66446. /**
  66447. * Properties of a pop_gift_info.
  66448. * @memberof game
  66449. * @interface Ipop_gift_info
  66450. * @property {number|Long|null} [id] pop_gift_info id
  66451. * @property {number|Long|null} [num] pop_gift_info num
  66452. * @property {number|Long|null} [time] pop_gift_info time
  66453. * @property {game.Ipop_gift_conf|null} [conf] pop_gift_info conf
  66454. */
  66455. /**
  66456. * Constructs a new pop_gift_info.
  66457. * @memberof game
  66458. * @classdesc Represents a pop_gift_info.
  66459. * @implements Ipop_gift_info
  66460. * @constructor
  66461. * @param {game.Ipop_gift_info=} [properties] Properties to set
  66462. */
  66463. function pop_gift_info(properties) {
  66464. if (properties)
  66465. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  66466. if (properties[keys[i]] != null)
  66467. this[keys[i]] = properties[keys[i]];
  66468. }
  66469. /**
  66470. * pop_gift_info id.
  66471. * @member {number|Long} id
  66472. * @memberof game.pop_gift_info
  66473. * @instance
  66474. */
  66475. pop_gift_info.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  66476. /**
  66477. * pop_gift_info num.
  66478. * @member {number|Long} num
  66479. * @memberof game.pop_gift_info
  66480. * @instance
  66481. */
  66482. pop_gift_info.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  66483. /**
  66484. * pop_gift_info time.
  66485. * @member {number|Long} time
  66486. * @memberof game.pop_gift_info
  66487. * @instance
  66488. */
  66489. pop_gift_info.prototype.time = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  66490. /**
  66491. * pop_gift_info conf.
  66492. * @member {game.Ipop_gift_conf|null|undefined} conf
  66493. * @memberof game.pop_gift_info
  66494. * @instance
  66495. */
  66496. pop_gift_info.prototype.conf = null;
  66497. /**
  66498. * Creates a new pop_gift_info instance using the specified properties.
  66499. * @function create
  66500. * @memberof game.pop_gift_info
  66501. * @static
  66502. * @param {game.Ipop_gift_info=} [properties] Properties to set
  66503. * @returns {game.pop_gift_info} pop_gift_info instance
  66504. */
  66505. pop_gift_info.create = function create(properties) {
  66506. return new pop_gift_info(properties);
  66507. };
  66508. /**
  66509. * Encodes the specified pop_gift_info message. Does not implicitly {@link game.pop_gift_info.verify|verify} messages.
  66510. * @function encode
  66511. * @memberof game.pop_gift_info
  66512. * @static
  66513. * @param {game.Ipop_gift_info} message pop_gift_info message or plain object to encode
  66514. * @param {$protobuf.Writer} [writer] Writer to encode to
  66515. * @returns {$protobuf.Writer} Writer
  66516. */
  66517. pop_gift_info.encode = function encode(message, writer) {
  66518. if (!writer)
  66519. writer = $Writer.create();
  66520. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  66521. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  66522. if (message.num != null && Object.hasOwnProperty.call(message, "num"))
  66523. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.num);
  66524. if (message.time != null && Object.hasOwnProperty.call(message, "time"))
  66525. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.time);
  66526. if (message.conf != null && Object.hasOwnProperty.call(message, "conf"))
  66527. $root.game.pop_gift_conf.encode(message.conf, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
  66528. return writer;
  66529. };
  66530. /**
  66531. * Encodes the specified pop_gift_info message, length delimited. Does not implicitly {@link game.pop_gift_info.verify|verify} messages.
  66532. * @function encodeDelimited
  66533. * @memberof game.pop_gift_info
  66534. * @static
  66535. * @param {game.Ipop_gift_info} message pop_gift_info message or plain object to encode
  66536. * @param {$protobuf.Writer} [writer] Writer to encode to
  66537. * @returns {$protobuf.Writer} Writer
  66538. */
  66539. pop_gift_info.encodeDelimited = function encodeDelimited(message, writer) {
  66540. return this.encode(message, writer).ldelim();
  66541. };
  66542. /**
  66543. * Decodes a pop_gift_info message from the specified reader or buffer.
  66544. * @function decode
  66545. * @memberof game.pop_gift_info
  66546. * @static
  66547. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  66548. * @param {number} [length] Message length if known beforehand
  66549. * @returns {game.pop_gift_info} pop_gift_info
  66550. * @throws {Error} If the payload is not a reader or valid buffer
  66551. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  66552. */
  66553. pop_gift_info.decode = function decode(reader, length) {
  66554. if (!(reader instanceof $Reader))
  66555. reader = $Reader.create(reader);
  66556. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pop_gift_info();
  66557. while (reader.pos < end) {
  66558. let tag = reader.uint32();
  66559. switch (tag >>> 3) {
  66560. case 1:
  66561. message.id = reader.int64();
  66562. break;
  66563. case 2:
  66564. message.num = reader.int64();
  66565. break;
  66566. case 3:
  66567. message.time = reader.int64();
  66568. break;
  66569. case 4:
  66570. message.conf = $root.game.pop_gift_conf.decode(reader, reader.uint32());
  66571. break;
  66572. default:
  66573. reader.skipType(tag & 7);
  66574. break;
  66575. }
  66576. }
  66577. return message;
  66578. };
  66579. /**
  66580. * Decodes a pop_gift_info message from the specified reader or buffer, length delimited.
  66581. * @function decodeDelimited
  66582. * @memberof game.pop_gift_info
  66583. * @static
  66584. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  66585. * @returns {game.pop_gift_info} pop_gift_info
  66586. * @throws {Error} If the payload is not a reader or valid buffer
  66587. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  66588. */
  66589. pop_gift_info.decodeDelimited = function decodeDelimited(reader) {
  66590. if (!(reader instanceof $Reader))
  66591. reader = new $Reader(reader);
  66592. return this.decode(reader, reader.uint32());
  66593. };
  66594. /**
  66595. * Verifies a pop_gift_info message.
  66596. * @function verify
  66597. * @memberof game.pop_gift_info
  66598. * @static
  66599. * @param {Object.<string,*>} message Plain object to verify
  66600. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  66601. */
  66602. pop_gift_info.verify = function verify(message) {
  66603. if (typeof message !== "object" || message === null)
  66604. return "object expected";
  66605. if (message.id != null && message.hasOwnProperty("id"))
  66606. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  66607. return "id: integer|Long expected";
  66608. if (message.num != null && message.hasOwnProperty("num"))
  66609. if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
  66610. return "num: integer|Long expected";
  66611. if (message.time != null && message.hasOwnProperty("time"))
  66612. if (!$util.isInteger(message.time) && !(message.time && $util.isInteger(message.time.low) && $util.isInteger(message.time.high)))
  66613. return "time: integer|Long expected";
  66614. if (message.conf != null && message.hasOwnProperty("conf")) {
  66615. let error = $root.game.pop_gift_conf.verify(message.conf);
  66616. if (error)
  66617. return "conf." + error;
  66618. }
  66619. return null;
  66620. };
  66621. /**
  66622. * Creates a pop_gift_info message from a plain object. Also converts values to their respective internal types.
  66623. * @function fromObject
  66624. * @memberof game.pop_gift_info
  66625. * @static
  66626. * @param {Object.<string,*>} object Plain object
  66627. * @returns {game.pop_gift_info} pop_gift_info
  66628. */
  66629. pop_gift_info.fromObject = function fromObject(object) {
  66630. if (object instanceof $root.game.pop_gift_info)
  66631. return object;
  66632. let message = new $root.game.pop_gift_info();
  66633. if (object.id != null)
  66634. if ($util.Long)
  66635. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  66636. else if (typeof object.id === "string")
  66637. message.id = parseInt(object.id, 10);
  66638. else if (typeof object.id === "number")
  66639. message.id = object.id;
  66640. else if (typeof object.id === "object")
  66641. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  66642. if (object.num != null)
  66643. if ($util.Long)
  66644. (message.num = $util.Long.fromValue(object.num)).unsigned = false;
  66645. else if (typeof object.num === "string")
  66646. message.num = parseInt(object.num, 10);
  66647. else if (typeof object.num === "number")
  66648. message.num = object.num;
  66649. else if (typeof object.num === "object")
  66650. message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
  66651. if (object.time != null)
  66652. if ($util.Long)
  66653. (message.time = $util.Long.fromValue(object.time)).unsigned = false;
  66654. else if (typeof object.time === "string")
  66655. message.time = parseInt(object.time, 10);
  66656. else if (typeof object.time === "number")
  66657. message.time = object.time;
  66658. else if (typeof object.time === "object")
  66659. message.time = new $util.LongBits(object.time.low >>> 0, object.time.high >>> 0).toNumber();
  66660. if (object.conf != null) {
  66661. if (typeof object.conf !== "object")
  66662. throw TypeError(".game.pop_gift_info.conf: object expected");
  66663. message.conf = $root.game.pop_gift_conf.fromObject(object.conf);
  66664. }
  66665. return message;
  66666. };
  66667. /**
  66668. * Creates a plain object from a pop_gift_info message. Also converts values to other types if specified.
  66669. * @function toObject
  66670. * @memberof game.pop_gift_info
  66671. * @static
  66672. * @param {game.pop_gift_info} message pop_gift_info
  66673. * @param {$protobuf.IConversionOptions} [options] Conversion options
  66674. * @returns {Object.<string,*>} Plain object
  66675. */
  66676. pop_gift_info.toObject = function toObject(message, options) {
  66677. if (!options)
  66678. options = {};
  66679. let object = {};
  66680. if (options.defaults) {
  66681. if ($util.Long) {
  66682. let long = new $util.Long(0, 0, false);
  66683. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  66684. } else
  66685. object.id = options.longs === String ? "0" : 0;
  66686. if ($util.Long) {
  66687. let long = new $util.Long(0, 0, false);
  66688. object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  66689. } else
  66690. object.num = options.longs === String ? "0" : 0;
  66691. if ($util.Long) {
  66692. let long = new $util.Long(0, 0, false);
  66693. object.time = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  66694. } else
  66695. object.time = options.longs === String ? "0" : 0;
  66696. object.conf = null;
  66697. }
  66698. if (message.id != null && message.hasOwnProperty("id"))
  66699. if (typeof message.id === "number")
  66700. object.id = options.longs === String ? String(message.id) : message.id;
  66701. else
  66702. 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;
  66703. if (message.num != null && message.hasOwnProperty("num"))
  66704. if (typeof message.num === "number")
  66705. object.num = options.longs === String ? String(message.num) : message.num;
  66706. else
  66707. 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;
  66708. if (message.time != null && message.hasOwnProperty("time"))
  66709. if (typeof message.time === "number")
  66710. object.time = options.longs === String ? String(message.time) : message.time;
  66711. else
  66712. 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;
  66713. if (message.conf != null && message.hasOwnProperty("conf"))
  66714. object.conf = $root.game.pop_gift_conf.toObject(message.conf, options);
  66715. return object;
  66716. };
  66717. /**
  66718. * Converts this pop_gift_info to JSON.
  66719. * @function toJSON
  66720. * @memberof game.pop_gift_info
  66721. * @instance
  66722. * @returns {Object.<string,*>} JSON object
  66723. */
  66724. pop_gift_info.prototype.toJSON = function toJSON() {
  66725. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  66726. };
  66727. return pop_gift_info;
  66728. })();
  66729. game.red_point_info = (function() {
  66730. /**
  66731. * Properties of a red_point_info.
  66732. * @memberof game
  66733. * @interface Ired_point_info
  66734. * @property {number|Long|null} [id] red_point_info id
  66735. * @property {boolean|null} [red] red_point_info red
  66736. */
  66737. /**
  66738. * Constructs a new red_point_info.
  66739. * @memberof game
  66740. * @classdesc Represents a red_point_info.
  66741. * @implements Ired_point_info
  66742. * @constructor
  66743. * @param {game.Ired_point_info=} [properties] Properties to set
  66744. */
  66745. function red_point_info(properties) {
  66746. if (properties)
  66747. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  66748. if (properties[keys[i]] != null)
  66749. this[keys[i]] = properties[keys[i]];
  66750. }
  66751. /**
  66752. * red_point_info id.
  66753. * @member {number|Long} id
  66754. * @memberof game.red_point_info
  66755. * @instance
  66756. */
  66757. red_point_info.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  66758. /**
  66759. * red_point_info red.
  66760. * @member {boolean} red
  66761. * @memberof game.red_point_info
  66762. * @instance
  66763. */
  66764. red_point_info.prototype.red = false;
  66765. /**
  66766. * Creates a new red_point_info instance using the specified properties.
  66767. * @function create
  66768. * @memberof game.red_point_info
  66769. * @static
  66770. * @param {game.Ired_point_info=} [properties] Properties to set
  66771. * @returns {game.red_point_info} red_point_info instance
  66772. */
  66773. red_point_info.create = function create(properties) {
  66774. return new red_point_info(properties);
  66775. };
  66776. /**
  66777. * Encodes the specified red_point_info message. Does not implicitly {@link game.red_point_info.verify|verify} messages.
  66778. * @function encode
  66779. * @memberof game.red_point_info
  66780. * @static
  66781. * @param {game.Ired_point_info} message red_point_info message or plain object to encode
  66782. * @param {$protobuf.Writer} [writer] Writer to encode to
  66783. * @returns {$protobuf.Writer} Writer
  66784. */
  66785. red_point_info.encode = function encode(message, writer) {
  66786. if (!writer)
  66787. writer = $Writer.create();
  66788. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  66789. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  66790. if (message.red != null && Object.hasOwnProperty.call(message, "red"))
  66791. writer.uint32(/* id 2, wireType 0 =*/16).bool(message.red);
  66792. return writer;
  66793. };
  66794. /**
  66795. * Encodes the specified red_point_info message, length delimited. Does not implicitly {@link game.red_point_info.verify|verify} messages.
  66796. * @function encodeDelimited
  66797. * @memberof game.red_point_info
  66798. * @static
  66799. * @param {game.Ired_point_info} message red_point_info message or plain object to encode
  66800. * @param {$protobuf.Writer} [writer] Writer to encode to
  66801. * @returns {$protobuf.Writer} Writer
  66802. */
  66803. red_point_info.encodeDelimited = function encodeDelimited(message, writer) {
  66804. return this.encode(message, writer).ldelim();
  66805. };
  66806. /**
  66807. * Decodes a red_point_info message from the specified reader or buffer.
  66808. * @function decode
  66809. * @memberof game.red_point_info
  66810. * @static
  66811. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  66812. * @param {number} [length] Message length if known beforehand
  66813. * @returns {game.red_point_info} red_point_info
  66814. * @throws {Error} If the payload is not a reader or valid buffer
  66815. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  66816. */
  66817. red_point_info.decode = function decode(reader, length) {
  66818. if (!(reader instanceof $Reader))
  66819. reader = $Reader.create(reader);
  66820. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.red_point_info();
  66821. while (reader.pos < end) {
  66822. let tag = reader.uint32();
  66823. switch (tag >>> 3) {
  66824. case 1:
  66825. message.id = reader.int64();
  66826. break;
  66827. case 2:
  66828. message.red = reader.bool();
  66829. break;
  66830. default:
  66831. reader.skipType(tag & 7);
  66832. break;
  66833. }
  66834. }
  66835. return message;
  66836. };
  66837. /**
  66838. * Decodes a red_point_info message from the specified reader or buffer, length delimited.
  66839. * @function decodeDelimited
  66840. * @memberof game.red_point_info
  66841. * @static
  66842. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  66843. * @returns {game.red_point_info} red_point_info
  66844. * @throws {Error} If the payload is not a reader or valid buffer
  66845. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  66846. */
  66847. red_point_info.decodeDelimited = function decodeDelimited(reader) {
  66848. if (!(reader instanceof $Reader))
  66849. reader = new $Reader(reader);
  66850. return this.decode(reader, reader.uint32());
  66851. };
  66852. /**
  66853. * Verifies a red_point_info message.
  66854. * @function verify
  66855. * @memberof game.red_point_info
  66856. * @static
  66857. * @param {Object.<string,*>} message Plain object to verify
  66858. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  66859. */
  66860. red_point_info.verify = function verify(message) {
  66861. if (typeof message !== "object" || message === null)
  66862. return "object expected";
  66863. if (message.id != null && message.hasOwnProperty("id"))
  66864. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  66865. return "id: integer|Long expected";
  66866. if (message.red != null && message.hasOwnProperty("red"))
  66867. if (typeof message.red !== "boolean")
  66868. return "red: boolean expected";
  66869. return null;
  66870. };
  66871. /**
  66872. * Creates a red_point_info message from a plain object. Also converts values to their respective internal types.
  66873. * @function fromObject
  66874. * @memberof game.red_point_info
  66875. * @static
  66876. * @param {Object.<string,*>} object Plain object
  66877. * @returns {game.red_point_info} red_point_info
  66878. */
  66879. red_point_info.fromObject = function fromObject(object) {
  66880. if (object instanceof $root.game.red_point_info)
  66881. return object;
  66882. let message = new $root.game.red_point_info();
  66883. if (object.id != null)
  66884. if ($util.Long)
  66885. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  66886. else if (typeof object.id === "string")
  66887. message.id = parseInt(object.id, 10);
  66888. else if (typeof object.id === "number")
  66889. message.id = object.id;
  66890. else if (typeof object.id === "object")
  66891. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  66892. if (object.red != null)
  66893. message.red = Boolean(object.red);
  66894. return message;
  66895. };
  66896. /**
  66897. * Creates a plain object from a red_point_info message. Also converts values to other types if specified.
  66898. * @function toObject
  66899. * @memberof game.red_point_info
  66900. * @static
  66901. * @param {game.red_point_info} message red_point_info
  66902. * @param {$protobuf.IConversionOptions} [options] Conversion options
  66903. * @returns {Object.<string,*>} Plain object
  66904. */
  66905. red_point_info.toObject = function toObject(message, options) {
  66906. if (!options)
  66907. options = {};
  66908. let object = {};
  66909. if (options.defaults) {
  66910. if ($util.Long) {
  66911. let long = new $util.Long(0, 0, false);
  66912. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  66913. } else
  66914. object.id = options.longs === String ? "0" : 0;
  66915. object.red = false;
  66916. }
  66917. if (message.id != null && message.hasOwnProperty("id"))
  66918. if (typeof message.id === "number")
  66919. object.id = options.longs === String ? String(message.id) : message.id;
  66920. else
  66921. 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;
  66922. if (message.red != null && message.hasOwnProperty("red"))
  66923. object.red = message.red;
  66924. return object;
  66925. };
  66926. /**
  66927. * Converts this red_point_info to JSON.
  66928. * @function toJSON
  66929. * @memberof game.red_point_info
  66930. * @instance
  66931. * @returns {Object.<string,*>} JSON object
  66932. */
  66933. red_point_info.prototype.toJSON = function toJSON() {
  66934. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  66935. };
  66936. return red_point_info;
  66937. })();
  66938. game.embattle_info = (function() {
  66939. /**
  66940. * Properties of an embattle_info.
  66941. * @memberof game
  66942. * @interface Iembattle_info
  66943. * @property {number|Long|null} [team] embattle_info team
  66944. * @property {Array.<game.Isid_pos>|null} [list] embattle_info list
  66945. * @property {Array.<game.Isid_pos>|null} [cardList] embattle_info cardList
  66946. */
  66947. /**
  66948. * Constructs a new embattle_info.
  66949. * @memberof game
  66950. * @classdesc Represents an embattle_info.
  66951. * @implements Iembattle_info
  66952. * @constructor
  66953. * @param {game.Iembattle_info=} [properties] Properties to set
  66954. */
  66955. function embattle_info(properties) {
  66956. this.list = [];
  66957. this.cardList = [];
  66958. if (properties)
  66959. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  66960. if (properties[keys[i]] != null)
  66961. this[keys[i]] = properties[keys[i]];
  66962. }
  66963. /**
  66964. * embattle_info team.
  66965. * @member {number|Long} team
  66966. * @memberof game.embattle_info
  66967. * @instance
  66968. */
  66969. embattle_info.prototype.team = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  66970. /**
  66971. * embattle_info list.
  66972. * @member {Array.<game.Isid_pos>} list
  66973. * @memberof game.embattle_info
  66974. * @instance
  66975. */
  66976. embattle_info.prototype.list = $util.emptyArray;
  66977. /**
  66978. * embattle_info cardList.
  66979. * @member {Array.<game.Isid_pos>} cardList
  66980. * @memberof game.embattle_info
  66981. * @instance
  66982. */
  66983. embattle_info.prototype.cardList = $util.emptyArray;
  66984. /**
  66985. * Creates a new embattle_info instance using the specified properties.
  66986. * @function create
  66987. * @memberof game.embattle_info
  66988. * @static
  66989. * @param {game.Iembattle_info=} [properties] Properties to set
  66990. * @returns {game.embattle_info} embattle_info instance
  66991. */
  66992. embattle_info.create = function create(properties) {
  66993. return new embattle_info(properties);
  66994. };
  66995. /**
  66996. * Encodes the specified embattle_info message. Does not implicitly {@link game.embattle_info.verify|verify} messages.
  66997. * @function encode
  66998. * @memberof game.embattle_info
  66999. * @static
  67000. * @param {game.Iembattle_info} message embattle_info message or plain object to encode
  67001. * @param {$protobuf.Writer} [writer] Writer to encode to
  67002. * @returns {$protobuf.Writer} Writer
  67003. */
  67004. embattle_info.encode = function encode(message, writer) {
  67005. if (!writer)
  67006. writer = $Writer.create();
  67007. if (message.team != null && Object.hasOwnProperty.call(message, "team"))
  67008. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.team);
  67009. if (message.list != null && message.list.length)
  67010. for (let i = 0; i < message.list.length; ++i)
  67011. $root.game.sid_pos.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  67012. if (message.cardList != null && message.cardList.length)
  67013. for (let i = 0; i < message.cardList.length; ++i)
  67014. $root.game.sid_pos.encode(message.cardList[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
  67015. return writer;
  67016. };
  67017. /**
  67018. * Encodes the specified embattle_info message, length delimited. Does not implicitly {@link game.embattle_info.verify|verify} messages.
  67019. * @function encodeDelimited
  67020. * @memberof game.embattle_info
  67021. * @static
  67022. * @param {game.Iembattle_info} message embattle_info message or plain object to encode
  67023. * @param {$protobuf.Writer} [writer] Writer to encode to
  67024. * @returns {$protobuf.Writer} Writer
  67025. */
  67026. embattle_info.encodeDelimited = function encodeDelimited(message, writer) {
  67027. return this.encode(message, writer).ldelim();
  67028. };
  67029. /**
  67030. * Decodes an embattle_info message from the specified reader or buffer.
  67031. * @function decode
  67032. * @memberof game.embattle_info
  67033. * @static
  67034. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  67035. * @param {number} [length] Message length if known beforehand
  67036. * @returns {game.embattle_info} embattle_info
  67037. * @throws {Error} If the payload is not a reader or valid buffer
  67038. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  67039. */
  67040. embattle_info.decode = function decode(reader, length) {
  67041. if (!(reader instanceof $Reader))
  67042. reader = $Reader.create(reader);
  67043. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.embattle_info();
  67044. while (reader.pos < end) {
  67045. let tag = reader.uint32();
  67046. switch (tag >>> 3) {
  67047. case 1:
  67048. message.team = reader.int64();
  67049. break;
  67050. case 2:
  67051. if (!(message.list && message.list.length))
  67052. message.list = [];
  67053. message.list.push($root.game.sid_pos.decode(reader, reader.uint32()));
  67054. break;
  67055. case 3:
  67056. if (!(message.cardList && message.cardList.length))
  67057. message.cardList = [];
  67058. message.cardList.push($root.game.sid_pos.decode(reader, reader.uint32()));
  67059. break;
  67060. default:
  67061. reader.skipType(tag & 7);
  67062. break;
  67063. }
  67064. }
  67065. return message;
  67066. };
  67067. /**
  67068. * Decodes an embattle_info message from the specified reader or buffer, length delimited.
  67069. * @function decodeDelimited
  67070. * @memberof game.embattle_info
  67071. * @static
  67072. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  67073. * @returns {game.embattle_info} embattle_info
  67074. * @throws {Error} If the payload is not a reader or valid buffer
  67075. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  67076. */
  67077. embattle_info.decodeDelimited = function decodeDelimited(reader) {
  67078. if (!(reader instanceof $Reader))
  67079. reader = new $Reader(reader);
  67080. return this.decode(reader, reader.uint32());
  67081. };
  67082. /**
  67083. * Verifies an embattle_info message.
  67084. * @function verify
  67085. * @memberof game.embattle_info
  67086. * @static
  67087. * @param {Object.<string,*>} message Plain object to verify
  67088. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  67089. */
  67090. embattle_info.verify = function verify(message) {
  67091. if (typeof message !== "object" || message === null)
  67092. return "object expected";
  67093. if (message.team != null && message.hasOwnProperty("team"))
  67094. if (!$util.isInteger(message.team) && !(message.team && $util.isInteger(message.team.low) && $util.isInteger(message.team.high)))
  67095. return "team: integer|Long expected";
  67096. if (message.list != null && message.hasOwnProperty("list")) {
  67097. if (!Array.isArray(message.list))
  67098. return "list: array expected";
  67099. for (let i = 0; i < message.list.length; ++i) {
  67100. let error = $root.game.sid_pos.verify(message.list[i]);
  67101. if (error)
  67102. return "list." + error;
  67103. }
  67104. }
  67105. if (message.cardList != null && message.hasOwnProperty("cardList")) {
  67106. if (!Array.isArray(message.cardList))
  67107. return "cardList: array expected";
  67108. for (let i = 0; i < message.cardList.length; ++i) {
  67109. let error = $root.game.sid_pos.verify(message.cardList[i]);
  67110. if (error)
  67111. return "cardList." + error;
  67112. }
  67113. }
  67114. return null;
  67115. };
  67116. /**
  67117. * Creates an embattle_info message from a plain object. Also converts values to their respective internal types.
  67118. * @function fromObject
  67119. * @memberof game.embattle_info
  67120. * @static
  67121. * @param {Object.<string,*>} object Plain object
  67122. * @returns {game.embattle_info} embattle_info
  67123. */
  67124. embattle_info.fromObject = function fromObject(object) {
  67125. if (object instanceof $root.game.embattle_info)
  67126. return object;
  67127. let message = new $root.game.embattle_info();
  67128. if (object.team != null)
  67129. if ($util.Long)
  67130. (message.team = $util.Long.fromValue(object.team)).unsigned = false;
  67131. else if (typeof object.team === "string")
  67132. message.team = parseInt(object.team, 10);
  67133. else if (typeof object.team === "number")
  67134. message.team = object.team;
  67135. else if (typeof object.team === "object")
  67136. message.team = new $util.LongBits(object.team.low >>> 0, object.team.high >>> 0).toNumber();
  67137. if (object.list) {
  67138. if (!Array.isArray(object.list))
  67139. throw TypeError(".game.embattle_info.list: array expected");
  67140. message.list = [];
  67141. for (let i = 0; i < object.list.length; ++i) {
  67142. if (typeof object.list[i] !== "object")
  67143. throw TypeError(".game.embattle_info.list: object expected");
  67144. message.list[i] = $root.game.sid_pos.fromObject(object.list[i]);
  67145. }
  67146. }
  67147. if (object.cardList) {
  67148. if (!Array.isArray(object.cardList))
  67149. throw TypeError(".game.embattle_info.cardList: array expected");
  67150. message.cardList = [];
  67151. for (let i = 0; i < object.cardList.length; ++i) {
  67152. if (typeof object.cardList[i] !== "object")
  67153. throw TypeError(".game.embattle_info.cardList: object expected");
  67154. message.cardList[i] = $root.game.sid_pos.fromObject(object.cardList[i]);
  67155. }
  67156. }
  67157. return message;
  67158. };
  67159. /**
  67160. * Creates a plain object from an embattle_info message. Also converts values to other types if specified.
  67161. * @function toObject
  67162. * @memberof game.embattle_info
  67163. * @static
  67164. * @param {game.embattle_info} message embattle_info
  67165. * @param {$protobuf.IConversionOptions} [options] Conversion options
  67166. * @returns {Object.<string,*>} Plain object
  67167. */
  67168. embattle_info.toObject = function toObject(message, options) {
  67169. if (!options)
  67170. options = {};
  67171. let object = {};
  67172. if (options.arrays || options.defaults) {
  67173. object.list = [];
  67174. object.cardList = [];
  67175. }
  67176. if (options.defaults)
  67177. if ($util.Long) {
  67178. let long = new $util.Long(0, 0, false);
  67179. object.team = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  67180. } else
  67181. object.team = options.longs === String ? "0" : 0;
  67182. if (message.team != null && message.hasOwnProperty("team"))
  67183. if (typeof message.team === "number")
  67184. object.team = options.longs === String ? String(message.team) : message.team;
  67185. else
  67186. object.team = options.longs === String ? $util.Long.prototype.toString.call(message.team) : options.longs === Number ? new $util.LongBits(message.team.low >>> 0, message.team.high >>> 0).toNumber() : message.team;
  67187. if (message.list && message.list.length) {
  67188. object.list = [];
  67189. for (let j = 0; j < message.list.length; ++j)
  67190. object.list[j] = $root.game.sid_pos.toObject(message.list[j], options);
  67191. }
  67192. if (message.cardList && message.cardList.length) {
  67193. object.cardList = [];
  67194. for (let j = 0; j < message.cardList.length; ++j)
  67195. object.cardList[j] = $root.game.sid_pos.toObject(message.cardList[j], options);
  67196. }
  67197. return object;
  67198. };
  67199. /**
  67200. * Converts this embattle_info to JSON.
  67201. * @function toJSON
  67202. * @memberof game.embattle_info
  67203. * @instance
  67204. * @returns {Object.<string,*>} JSON object
  67205. */
  67206. embattle_info.prototype.toJSON = function toJSON() {
  67207. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  67208. };
  67209. return embattle_info;
  67210. })();
  67211. /**
  67212. * msg_cmd enum.
  67213. * @name game.msg_cmd
  67214. * @enum {number}
  67215. * @property {number} cmd_ping=0 cmd_ping value
  67216. * @property {number} cmd_ping_rsp=1 cmd_ping_rsp value
  67217. * @property {number} cmd_login=2 cmd_login value
  67218. * @property {number} cmd_login_rsp=3 cmd_login_rsp value
  67219. * @property {number} cmd_create=4 cmd_create value
  67220. * @property {number} cmd_create_rsp=5 cmd_create_rsp value
  67221. * @property {number} cmd_reward_info=6 cmd_reward_info value
  67222. * @property {number} cmd_user=7 cmd_user value
  67223. * @property {number} cmd_pay_currency=8 cmd_pay_currency value
  67224. * @property {number} cmd_pay_debris_nty=9 cmd_pay_debris_nty value
  67225. * @property {number} cmd_exception_nty=10 cmd_exception_nty value
  67226. * @property {number} cmd_create_order_nty=11 cmd_create_order_nty value
  67227. * @property {number} cmd_recharge_result=100 cmd_recharge_result value
  67228. * @property {number} cmd_recharge_result_rsp=101 cmd_recharge_result_rsp value
  67229. * @property {number} cmd_recharge_success=150 cmd_recharge_success value
  67230. * @property {number} cmd_city_change=1000 cmd_city_change value
  67231. * @property {number} cmd_city_data=1001 cmd_city_data value
  67232. * @property {number} cmd_city_data_rsp=1002 cmd_city_data_rsp value
  67233. * @property {number} cmd_building_upgrade=1003 cmd_building_upgrade value
  67234. * @property {number} cmd_building_upgrade_rsp=1004 cmd_building_upgrade_rsp value
  67235. * @property {number} cmd_building_one_key=1005 cmd_building_one_key value
  67236. * @property {number} cmd_building_one_key_rsp=1006 cmd_building_one_key_rsp value
  67237. * @property {number} cmd_city_data_send=1007 cmd_city_data_send value
  67238. * @property {number} cmd_city_skill_upgrade=1010 cmd_city_skill_upgrade value
  67239. * @property {number} cmd_city_skill_upgrade_rsp=1011 cmd_city_skill_upgrade_rsp value
  67240. * @property {number} cmd_city_skill_battle=1012 cmd_city_skill_battle value
  67241. * @property {number} cmd_city_skill_battle_rsp=1013 cmd_city_skill_battle_rsp value
  67242. * @property {number} cmd_building_explore=1020 cmd_building_explore value
  67243. * @property {number} cmd_building_explore_rsp=1021 cmd_building_explore_rsp value
  67244. * @property {number} cmd_building_auto_explore_award=1022 cmd_building_auto_explore_award value
  67245. * @property {number} cmd_building_auto_explore_award_rsp=1023 cmd_building_auto_explore_award_rsp value
  67246. * @property {number} cmd_building_explore_battle=1024 cmd_building_explore_battle value
  67247. * @property {number} cmd_building_explore_battle_rsp=1025 cmd_building_explore_battle_rsp value
  67248. * @property {number} cmd_building_auto_explore_option=1026 cmd_building_auto_explore_option value
  67249. * @property {number} cmd_building_auto_explore_option_rsp=1027 cmd_building_auto_explore_option_rsp value
  67250. * @property {number} cmd_adventure_data=1100 cmd_adventure_data value
  67251. * @property {number} cmd_adventure_data_rsp=1101 cmd_adventure_data_rsp value
  67252. * @property {number} cmd_adventure_start=1102 cmd_adventure_start value
  67253. * @property {number} cmd_adventure_start_rsp=1103 cmd_adventure_start_rsp value
  67254. * @property {number} cmd_adventure_end=1104 cmd_adventure_end value
  67255. * @property {number} cmd_adventure_end_rsp=1105 cmd_adventure_end_rsp value
  67256. * @property {number} cmd_adventure_layer=1106 cmd_adventure_layer value
  67257. * @property {number} cmd_adventure_layer_rsp=1107 cmd_adventure_layer_rsp value
  67258. * @property {number} cmd_adventure_sweep=1108 cmd_adventure_sweep value
  67259. * @property {number} cmd_adventure_sweep_rsp=1109 cmd_adventure_sweep_rsp value
  67260. * @property {number} cmd_adventure_pass_award=1110 cmd_adventure_pass_award value
  67261. * @property {number} cmd_adventure_pass_award_rsp=1111 cmd_adventure_pass_award_rsp value
  67262. * @property {number} cmd_adventure_ad_award=1112 cmd_adventure_ad_award value
  67263. * @property {number} cmd_adventure_ad_award_rsp=1113 cmd_adventure_ad_award_rsp value
  67264. * @property {number} cmd_adventure_trial=1114 cmd_adventure_trial value
  67265. * @property {number} cmd_adventure_trial_rsp=1115 cmd_adventure_trial_rsp value
  67266. * @property {number} cmd_get_mail=1200 cmd_get_mail value
  67267. * @property {number} cmd_get_mail_rsp=1201 cmd_get_mail_rsp value
  67268. * @property {number} cmd_get_mail_goods=1202 cmd_get_mail_goods value
  67269. * @property {number} cmd_get_mail_goods_rsp=1203 cmd_get_mail_goods_rsp value
  67270. * @property {number} cmd_del_mail=1204 cmd_del_mail value
  67271. * @property {number} cmd_del_mail_rsp=1205 cmd_del_mail_rsp value
  67272. * @property {number} cmd_flag_mail=1206 cmd_flag_mail value
  67273. * @property {number} cmd_flag_mail_rsp=1207 cmd_flag_mail_rsp value
  67274. * @property {number} cmd_send_mail=1208 cmd_send_mail value
  67275. * @property {number} cmd_simple_mail=1209 cmd_simple_mail value
  67276. * @property {number} cmd_embattle_get_data=1300 cmd_embattle_get_data value
  67277. * @property {number} cmd_embattle_get_data_rsp=1301 cmd_embattle_get_data_rsp value
  67278. * @property {number} cmd_embattle_battle=1302 cmd_embattle_battle value
  67279. * @property {number} cmd_embattle_battle_rsp=1303 cmd_embattle_battle_rsp value
  67280. * @property {number} cmd_hero_get_data=1400 cmd_hero_get_data value
  67281. * @property {number} cmd_hero_get_data_rsp=1401 cmd_hero_get_data_rsp value
  67282. * @property {number} cmd_hero_upgrade=1402 cmd_hero_upgrade value
  67283. * @property {number} cmd_hero_upgrade_rsp=1403 cmd_hero_upgrade_rsp value
  67284. * @property {number} cmd_hero_upgrade_star=1404 cmd_hero_upgrade_star value
  67285. * @property {number} cmd_hero_upgrade_star_rsp=1405 cmd_hero_upgrade_star_rsp value
  67286. * @property {number} cmd_hero_onekey_upgrade_star=1406 cmd_hero_onekey_upgrade_star value
  67287. * @property {number} cmd_hero_onekey_upgrade_star_rsp=1407 cmd_hero_onekey_upgrade_star_rsp value
  67288. * @property {number} cmd_hero_reset=1408 cmd_hero_reset value
  67289. * @property {number} cmd_hero_reset_rsp=1409 cmd_hero_reset_rsp value
  67290. * @property {number} cmd_hero_wear_equip=1410 cmd_hero_wear_equip value
  67291. * @property {number} cmd_hero_wear_equip_rsp=1411 cmd_hero_wear_equip_rsp value
  67292. * @property {number} cmd_hero_change_nty=1450 cmd_hero_change_nty value
  67293. * @property {number} cmd_skill_card_get_data=1500 cmd_skill_card_get_data value
  67294. * @property {number} cmd_skill_card_get_data_rsp=1501 cmd_skill_card_get_data_rsp value
  67295. * @property {number} cmd_skill_card_upgrade=1502 cmd_skill_card_upgrade value
  67296. * @property {number} cmd_skill_card_upgrade_rsp=1503 cmd_skill_card_upgrade_rsp value
  67297. * @property {number} cmd_skill_card_upgrade_star=1504 cmd_skill_card_upgrade_star value
  67298. * @property {number} cmd_skill_card_upgrade_star_rsp=1505 cmd_skill_card_upgrade_star_rsp value
  67299. * @property {number} cmd_role_get_data=1600 cmd_role_get_data value
  67300. * @property {number} cmd_role_get_data_rsp=1601 cmd_role_get_data_rsp value
  67301. * @property {number} cmd_role_upgrade=1602 cmd_role_upgrade value
  67302. * @property {number} cmd_role_upgrade_rsp=1603 cmd_role_upgrade_rsp value
  67303. * @property {number} cmd_role_rename=1604 cmd_role_rename value
  67304. * @property {number} cmd_role_rename_rsp=1605 cmd_role_rename_rsp value
  67305. * @property {number} cmd_equip_get_data=1700 cmd_equip_get_data value
  67306. * @property {number} cmd_equip_get_data_rsp=1701 cmd_equip_get_data_rsp value
  67307. * @property {number} cmd_equip_upgrade=1702 cmd_equip_upgrade value
  67308. * @property {number} cmd_equip_upgrade_rsp=1703 cmd_equip_upgrade_rsp value
  67309. * @property {number} cmd_equip_upgrade_star=1704 cmd_equip_upgrade_star value
  67310. * @property {number} cmd_equip_upgrade_star_rsp=1705 cmd_equip_upgrade_star_rsp value
  67311. * @property {number} cmd_equip_onekey_upgrade_star=1706 cmd_equip_onekey_upgrade_star value
  67312. * @property {number} cmd_equip_onekey_upgrade_star_rsp=1707 cmd_equip_onekey_upgrade_star_rsp value
  67313. * @property {number} cmd_equip_reset=1708 cmd_equip_reset value
  67314. * @property {number} cmd_equip_reset_rsp=1709 cmd_equip_reset_rsp value
  67315. * @property {number} cmd_equip_change_nty=1750 cmd_equip_change_nty value
  67316. * @property {number} cmd_debris_get_data=1800 cmd_debris_get_data value
  67317. * @property {number} cmd_debris_get_data_rsp=1801 cmd_debris_get_data_rsp value
  67318. * @property {number} cmd_debris_merge=1802 cmd_debris_merge value
  67319. * @property {number} cmd_debris_merge_rsp=1803 cmd_debris_merge_rsp value
  67320. * @property {number} cmd_talent_get_data=1900 cmd_talent_get_data value
  67321. * @property {number} cmd_talent_get_data_rsp=1901 cmd_talent_get_data_rsp value
  67322. * @property {number} cmd_talent_activate=1902 cmd_talent_activate value
  67323. * @property {number} cmd_talent_activate_rsp=1903 cmd_talent_activate_rsp value
  67324. * @property {number} cmd_sign_in_get_data=2000 cmd_sign_in_get_data value
  67325. * @property {number} cmd_sign_in_get_data_rsp=2001 cmd_sign_in_get_data_rsp value
  67326. * @property {number} cmd_sign_in_award=2002 cmd_sign_in_award value
  67327. * @property {number} cmd_sign_in_award_rsp=2003 cmd_sign_in_award_rsp value
  67328. * @property {number} cmd_sign_in_nty=2004 cmd_sign_in_nty value
  67329. * @property {number} cmd_quest_get_data=2100 cmd_quest_get_data value
  67330. * @property {number} cmd_quest_get_data_rsp=2101 cmd_quest_get_data_rsp value
  67331. * @property {number} cmd_quest_get_award=2102 cmd_quest_get_award value
  67332. * @property {number} cmd_quest_get_award_rsp=2103 cmd_quest_get_award_rsp value
  67333. * @property {number} cmd_quest_active_award=2104 cmd_quest_active_award value
  67334. * @property {number} cmd_quest_active_award_rsp=2105 cmd_quest_active_award_rsp value
  67335. * @property {number} cmd_quest_cmplate_notify=2150 cmd_quest_cmplate_notify value
  67336. * @property {number} cmd_manual_get_data=2200 cmd_manual_get_data value
  67337. * @property {number} cmd_manual_get_data_rsp=2201 cmd_manual_get_data_rsp value
  67338. * @property {number} cmd_manual_buy_exp=2202 cmd_manual_buy_exp value
  67339. * @property {number} cmd_manual_buy_exp_rsp=2203 cmd_manual_buy_exp_rsp value
  67340. * @property {number} cmd_manual_get_award=2204 cmd_manual_get_award value
  67341. * @property {number} cmd_manual_get_award_rsp=2205 cmd_manual_get_award_rsp value
  67342. * @property {number} cmd_manual_buy=2206 cmd_manual_buy value
  67343. * @property {number} cmd_manual_buy_rsp=2207 cmd_manual_buy_rsp value
  67344. * @property {number} cmd_manual_notify=2250 cmd_manual_notify value
  67345. * @property {number} cmd_draw=2300 cmd_draw value
  67346. * @property {number} cmd_draw_rsp=2301 cmd_draw_rsp value
  67347. * @property {number} cmd_draw_get_data=2302 cmd_draw_get_data value
  67348. * @property {number} cmd_draw_get_data_rsp=2303 cmd_draw_get_data_rsp value
  67349. * @property {number} cmd_shop_data=2400 cmd_shop_data value
  67350. * @property {number} cmd_shop_data_rsp=2401 cmd_shop_data_rsp value
  67351. * @property {number} cmd_shop_buy=2402 cmd_shop_buy value
  67352. * @property {number} cmd_shop_buy_rsp=2403 cmd_shop_buy_rsp value
  67353. * @property {number} cmd_shop_notify=2450 cmd_shop_notify value
  67354. * @property {number} cmd_ranking_data=2501 cmd_ranking_data value
  67355. * @property {number} cmd_ranking_data_rsp=2502 cmd_ranking_data_rsp value
  67356. * @property {number} cmd_grocery_data=2601 cmd_grocery_data value
  67357. * @property {number} cmd_grocery_data_rsp=2602 cmd_grocery_data_rsp value
  67358. * @property {number} cmd_grocery_buy=2603 cmd_grocery_buy value
  67359. * @property {number} cmd_grocery_buy_rsp=2604 cmd_grocery_buy_rsp value
  67360. * @property {number} cmd_box_get_award=2605 cmd_box_get_award value
  67361. * @property {number} cmd_box_get_award_rsp=2606 cmd_box_get_award_rsp value
  67362. * @property {number} cmd_altar_data=2701 cmd_altar_data value
  67363. * @property {number} cmd_altar_data_rsp=2702 cmd_altar_data_rsp value
  67364. * @property {number} cmd_altar_battle=2703 cmd_altar_battle value
  67365. * @property {number} cmd_altar_battle_rsp=2704 cmd_altar_battle_rsp value
  67366. * @property {number} cmd_altar_exchange=2705 cmd_altar_exchange value
  67367. * @property {number} cmd_altar_exchange_rsp=2706 cmd_altar_exchange_rsp value
  67368. * @property {number} cmd_altar_exchange_confirm=2707 cmd_altar_exchange_confirm value
  67369. * @property {number} cmd_altar_exchange_confirm_rsp=2708 cmd_altar_exchange_confirm_rsp value
  67370. * @property {number} cmd_altar_buy_battle_space=2709 cmd_altar_buy_battle_space value
  67371. * @property {number} cmd_altar_buy_battle_space_rsp=2710 cmd_altar_buy_battle_space_rsp value
  67372. * @property {number} cmd_altar_reset_cd=2711 cmd_altar_reset_cd value
  67373. * @property {number} cmd_altar_reset_cd_rsp=2712 cmd_altar_reset_cd_rsp value
  67374. * @property {number} cmd_relic_data=2801 cmd_relic_data value
  67375. * @property {number} cmd_relic_data_rsp=2802 cmd_relic_data_rsp value
  67376. * @property {number} cmd_relic_next_pos=2803 cmd_relic_next_pos value
  67377. * @property {number} cmd_relic_next_pos_rsp=2804 cmd_relic_next_pos_rsp value
  67378. * @property {number} cmd_relic_next_layer=2805 cmd_relic_next_layer value
  67379. * @property {number} cmd_relic_next_layer_rsp=2806 cmd_relic_next_layer_rsp value
  67380. * @property {number} cmd_relic_select_buff=2807 cmd_relic_select_buff value
  67381. * @property {number} cmd_relic_select_buff_rsp=2808 cmd_relic_select_buff_rsp value
  67382. * @property {number} cmd_relic_reset=2809 cmd_relic_reset value
  67383. * @property {number} cmd_relic_reset_rsp=2810 cmd_relic_reset_rsp value
  67384. * @property {number} cmd_relic_event_select=2811 cmd_relic_event_select value
  67385. * @property {number} cmd_relic_event_select_rsp=2812 cmd_relic_event_select_rsp value
  67386. * @property {number} cmd_relic_event_nty=2850 cmd_relic_event_nty value
  67387. * @property {number} cmd_relic_data_nty=2851 cmd_relic_data_nty value
  67388. * @property {number} cmd_activity_get_conf_list=2900 cmd_activity_get_conf_list value
  67389. * @property {number} cmd_activity_get_conf_list_rsp=2901 cmd_activity_get_conf_list_rsp value
  67390. * @property {number} cmd_activity_time_list_nty=2950 cmd_activity_time_list_nty value
  67391. * @property {number} cmd_activity_get_conf_nty=2951 cmd_activity_get_conf_nty value
  67392. * @property {number} cmd_privilege_card_data=3000 cmd_privilege_card_data value
  67393. * @property {number} cmd_privilege_card_data_rsp=3001 cmd_privilege_card_data_rsp value
  67394. * @property {number} cmd_privilege_card_buy=3002 cmd_privilege_card_buy value
  67395. * @property {number} cmd_privilege_card_buy_rsp=3003 cmd_privilege_card_buy_rsp value
  67396. * @property {number} cmd_privilege_card_award=3004 cmd_privilege_card_award value
  67397. * @property {number} cmd_privilege_card_award_rsp=3005 cmd_privilege_card_award_rsp value
  67398. * @property {number} cmd_privilege_card_unlock_nty=3050 cmd_privilege_card_unlock_nty value
  67399. * @property {number} cmd_first_recharge_data=3100 cmd_first_recharge_data value
  67400. * @property {number} cmd_first_recharge_data_rsp=3101 cmd_first_recharge_data_rsp value
  67401. * @property {number} cmd_first_recharge_buy=3102 cmd_first_recharge_buy value
  67402. * @property {number} cmd_first_recharge_buy_rsp=3103 cmd_first_recharge_buy_rsp value
  67403. * @property {number} cmd_first_recharge_award=3104 cmd_first_recharge_award value
  67404. * @property {number} cmd_first_recharge_award_rsp=3105 cmd_first_recharge_award_rsp value
  67405. * @property {number} cmd_first_recharge_nty=3150 cmd_first_recharge_nty value
  67406. * @property {number} cmd_daily_dungeons_data=3200 cmd_daily_dungeons_data value
  67407. * @property {number} cmd_daily_dungeons_data_rsp=3201 cmd_daily_dungeons_data_rsp value
  67408. * @property {number} cmd_daily_dungeons_start=3202 cmd_daily_dungeons_start value
  67409. * @property {number} cmd_daily_dungeons_start_rsp=3203 cmd_daily_dungeons_start_rsp value
  67410. * @property {number} cmd_daily_dungeons_end=3204 cmd_daily_dungeons_end value
  67411. * @property {number} cmd_daily_dungeons_end_rsp=3205 cmd_daily_dungeons_end_rsp value
  67412. * @property {number} cmd_daily_dungeons_sweep=3206 cmd_daily_dungeons_sweep value
  67413. * @property {number} cmd_daily_dungeons_sweep_rsp=3207 cmd_daily_dungeons_sweep_rsp value
  67414. * @property {number} cmd_adv_gift_data=3300 cmd_adv_gift_data value
  67415. * @property {number} cmd_adv_gift_data_rsp=3301 cmd_adv_gift_data_rsp value
  67416. * @property {number} cmd_adv_gift_buy=3302 cmd_adv_gift_buy value
  67417. * @property {number} cmd_adv_gift_buy_rsp=3303 cmd_adv_gift_buy_rsp value
  67418. * @property {number} cmd_adv_gift_nty=3350 cmd_adv_gift_nty value
  67419. * @property {number} cmd_pop_gift_data=3400 cmd_pop_gift_data value
  67420. * @property {number} cmd_pop_gift_data_rsp=3401 cmd_pop_gift_data_rsp value
  67421. * @property {number} cmd_pop_gift_buy=3402 cmd_pop_gift_buy value
  67422. * @property {number} cmd_pop_gift_buy_rsp=3403 cmd_pop_gift_buy_rsp value
  67423. * @property {number} cmd_pop_gift_nty=3450 cmd_pop_gift_nty value
  67424. * @property {number} cmd_pop_gift_change_nty=3451 cmd_pop_gift_change_nty value
  67425. * @property {number} cmd_fund_data=3500 cmd_fund_data value
  67426. * @property {number} cmd_fund_data_rsp=3501 cmd_fund_data_rsp value
  67427. * @property {number} cmd_fund_buy=3502 cmd_fund_buy value
  67428. * @property {number} cmd_fund_buy_rsp=3503 cmd_fund_buy_rsp value
  67429. * @property {number} cmd_fund_award=3504 cmd_fund_award value
  67430. * @property {number} cmd_fund_award_rsp=3505 cmd_fund_award_rsp value
  67431. * @property {number} cmd_fund_nty=3550 cmd_fund_nty value
  67432. * @property {number} cmd_keep_recharge_data=3600 cmd_keep_recharge_data value
  67433. * @property {number} cmd_keep_recharge_data_rsp=3601 cmd_keep_recharge_data_rsp value
  67434. * @property {number} cmd_keep_recharge_award=3602 cmd_keep_recharge_award value
  67435. * @property {number} cmd_keep_recharge_award_rsp=3603 cmd_keep_recharge_award_rsp value
  67436. * @property {number} cmd_get_red_point_list=3710 cmd_get_red_point_list value
  67437. * @property {number} cmd_get_red_point_list_rsp=3711 cmd_get_red_point_list_rsp value
  67438. * @property {number} cmd_online_award_get_award=3800 cmd_online_award_get_award value
  67439. * @property {number} cmd_online_award_get_award_rsp=3801 cmd_online_award_get_award_rsp value
  67440. * @property {number} cmd_online_award_get_data=3802 cmd_online_award_get_data value
  67441. * @property {number} cmd_online_award_get_data_rsp=3803 cmd_online_award_get_data_rsp value
  67442. * @property {number} cmd_online_award_nty=3850 cmd_online_award_nty value
  67443. * @property {number} cmd_speed_up_data=3900 cmd_speed_up_data value
  67444. * @property {number} cmd_speed_up_data_rsp=3901 cmd_speed_up_data_rsp value
  67445. * @property {number} cmd_speed_up_buy=3902 cmd_speed_up_buy value
  67446. * @property {number} cmd_speed_up_buy_rsp=3903 cmd_speed_up_buy_rsp value
  67447. * @property {number} cmd_level_gift_data=4000 cmd_level_gift_data value
  67448. * @property {number} cmd_level_gift_data_rsp=4001 cmd_level_gift_data_rsp value
  67449. * @property {number} cmd_level_gift_buy=4002 cmd_level_gift_buy value
  67450. * @property {number} cmd_level_gift_buy_rsp=4003 cmd_level_gift_buy_rsp value
  67451. * @property {number} cmd_level_gift_del_red_point=4004 cmd_level_gift_del_red_point value
  67452. * @property {number} cmd_level_gift_del_red_point_rsp=4005 cmd_level_gift_del_red_point_rsp value
  67453. * @property {number} cmd_level_gift_nty=4050 cmd_level_gift_nty value
  67454. * @property {number} cmd_lottery_data=4100 cmd_lottery_data value
  67455. * @property {number} cmd_lottery_data_rsp=4101 cmd_lottery_data_rsp value
  67456. * @property {number} cmd_lottery_award=4102 cmd_lottery_award value
  67457. * @property {number} cmd_lottery_award_rsp=4103 cmd_lottery_award_rsp value
  67458. * @property {number} cmd_lottery_buy=4104 cmd_lottery_buy value
  67459. * @property {number} cmd_lottery_buy_rsp=4105 cmd_lottery_buy_rsp value
  67460. * @property {number} cmd_lottery_nty=4150 cmd_lottery_nty value
  67461. * @property {number} cmd_act_rank_data=4200 cmd_act_rank_data value
  67462. * @property {number} cmd_act_rank_data_rsp=4201 cmd_act_rank_data_rsp value
  67463. * @property {number} cmd_treasure_get_data=4300 cmd_treasure_get_data value
  67464. * @property {number} cmd_treasure_get_data_rsp=4301 cmd_treasure_get_data_rsp value
  67465. * @property {number} cmd_treasure_draw=4302 cmd_treasure_draw value
  67466. * @property {number} cmd_treasure_draw_rsp=4303 cmd_treasure_draw_rsp value
  67467. * @property {number} cmd_treasure_sign=4304 cmd_treasure_sign value
  67468. * @property {number} cmd_treasure_sign_rsp=4305 cmd_treasure_sign_rsp value
  67469. * @property {number} cmd_treasure_buy=4306 cmd_treasure_buy value
  67470. * @property {number} cmd_treasure_buy_rsp=4307 cmd_treasure_buy_rsp value
  67471. * @property {number} cmd_pvp_data=4400 cmd_pvp_data value
  67472. * @property {number} cmd_pvp_data_rsp=4401 cmd_pvp_data_rsp value
  67473. * @property {number} cmd_pvp_match=4402 cmd_pvp_match value
  67474. * @property {number} cmd_pvp_match_rsp=4403 cmd_pvp_match_rsp value
  67475. * @property {number} cmd_pvp_reslut=4404 cmd_pvp_reslut value
  67476. * @property {number} cmd_pvp_reslut_rsp=4405 cmd_pvp_reslut_rsp value
  67477. * @property {number} cmd_pvp_embattle=4406 cmd_pvp_embattle value
  67478. * @property {number} cmd_pvp_embattle_rsp=4407 cmd_pvp_embattle_rsp value
  67479. * @property {number} cmd_time_box_data=4500 cmd_time_box_data value
  67480. * @property {number} cmd_time_box_data_rsp=4501 cmd_time_box_data_rsp value
  67481. * @property {number} cmd_time_box_unlock=4502 cmd_time_box_unlock value
  67482. * @property {number} cmd_time_box_unlock_rsp=4503 cmd_time_box_unlock_rsp value
  67483. * @property {number} cmd_time_box_get_award=4504 cmd_time_box_get_award value
  67484. * @property {number} cmd_time_box_get_award_rsp=4505 cmd_time_box_get_award_rsp value
  67485. */
  67486. game.msg_cmd = (function() {
  67487. const valuesById = {}, values = Object.create(valuesById);
  67488. values[valuesById[0] = "cmd_ping"] = 0;
  67489. values[valuesById[1] = "cmd_ping_rsp"] = 1;
  67490. values[valuesById[2] = "cmd_login"] = 2;
  67491. values[valuesById[3] = "cmd_login_rsp"] = 3;
  67492. values[valuesById[4] = "cmd_create"] = 4;
  67493. values[valuesById[5] = "cmd_create_rsp"] = 5;
  67494. values[valuesById[6] = "cmd_reward_info"] = 6;
  67495. values[valuesById[7] = "cmd_user"] = 7;
  67496. values[valuesById[8] = "cmd_pay_currency"] = 8;
  67497. values[valuesById[9] = "cmd_pay_debris_nty"] = 9;
  67498. values[valuesById[10] = "cmd_exception_nty"] = 10;
  67499. values[valuesById[11] = "cmd_create_order_nty"] = 11;
  67500. values[valuesById[100] = "cmd_recharge_result"] = 100;
  67501. values[valuesById[101] = "cmd_recharge_result_rsp"] = 101;
  67502. values[valuesById[150] = "cmd_recharge_success"] = 150;
  67503. values[valuesById[1000] = "cmd_city_change"] = 1000;
  67504. values[valuesById[1001] = "cmd_city_data"] = 1001;
  67505. values[valuesById[1002] = "cmd_city_data_rsp"] = 1002;
  67506. values[valuesById[1003] = "cmd_building_upgrade"] = 1003;
  67507. values[valuesById[1004] = "cmd_building_upgrade_rsp"] = 1004;
  67508. values[valuesById[1005] = "cmd_building_one_key"] = 1005;
  67509. values[valuesById[1006] = "cmd_building_one_key_rsp"] = 1006;
  67510. values[valuesById[1007] = "cmd_city_data_send"] = 1007;
  67511. values[valuesById[1010] = "cmd_city_skill_upgrade"] = 1010;
  67512. values[valuesById[1011] = "cmd_city_skill_upgrade_rsp"] = 1011;
  67513. values[valuesById[1012] = "cmd_city_skill_battle"] = 1012;
  67514. values[valuesById[1013] = "cmd_city_skill_battle_rsp"] = 1013;
  67515. values[valuesById[1020] = "cmd_building_explore"] = 1020;
  67516. values[valuesById[1021] = "cmd_building_explore_rsp"] = 1021;
  67517. values[valuesById[1022] = "cmd_building_auto_explore_award"] = 1022;
  67518. values[valuesById[1023] = "cmd_building_auto_explore_award_rsp"] = 1023;
  67519. values[valuesById[1024] = "cmd_building_explore_battle"] = 1024;
  67520. values[valuesById[1025] = "cmd_building_explore_battle_rsp"] = 1025;
  67521. values[valuesById[1026] = "cmd_building_auto_explore_option"] = 1026;
  67522. values[valuesById[1027] = "cmd_building_auto_explore_option_rsp"] = 1027;
  67523. values[valuesById[1100] = "cmd_adventure_data"] = 1100;
  67524. values[valuesById[1101] = "cmd_adventure_data_rsp"] = 1101;
  67525. values[valuesById[1102] = "cmd_adventure_start"] = 1102;
  67526. values[valuesById[1103] = "cmd_adventure_start_rsp"] = 1103;
  67527. values[valuesById[1104] = "cmd_adventure_end"] = 1104;
  67528. values[valuesById[1105] = "cmd_adventure_end_rsp"] = 1105;
  67529. values[valuesById[1106] = "cmd_adventure_layer"] = 1106;
  67530. values[valuesById[1107] = "cmd_adventure_layer_rsp"] = 1107;
  67531. values[valuesById[1108] = "cmd_adventure_sweep"] = 1108;
  67532. values[valuesById[1109] = "cmd_adventure_sweep_rsp"] = 1109;
  67533. values[valuesById[1110] = "cmd_adventure_pass_award"] = 1110;
  67534. values[valuesById[1111] = "cmd_adventure_pass_award_rsp"] = 1111;
  67535. values[valuesById[1112] = "cmd_adventure_ad_award"] = 1112;
  67536. values[valuesById[1113] = "cmd_adventure_ad_award_rsp"] = 1113;
  67537. values[valuesById[1114] = "cmd_adventure_trial"] = 1114;
  67538. values[valuesById[1115] = "cmd_adventure_trial_rsp"] = 1115;
  67539. values[valuesById[1200] = "cmd_get_mail"] = 1200;
  67540. values[valuesById[1201] = "cmd_get_mail_rsp"] = 1201;
  67541. values[valuesById[1202] = "cmd_get_mail_goods"] = 1202;
  67542. values[valuesById[1203] = "cmd_get_mail_goods_rsp"] = 1203;
  67543. values[valuesById[1204] = "cmd_del_mail"] = 1204;
  67544. values[valuesById[1205] = "cmd_del_mail_rsp"] = 1205;
  67545. values[valuesById[1206] = "cmd_flag_mail"] = 1206;
  67546. values[valuesById[1207] = "cmd_flag_mail_rsp"] = 1207;
  67547. values[valuesById[1208] = "cmd_send_mail"] = 1208;
  67548. values[valuesById[1209] = "cmd_simple_mail"] = 1209;
  67549. values[valuesById[1300] = "cmd_embattle_get_data"] = 1300;
  67550. values[valuesById[1301] = "cmd_embattle_get_data_rsp"] = 1301;
  67551. values[valuesById[1302] = "cmd_embattle_battle"] = 1302;
  67552. values[valuesById[1303] = "cmd_embattle_battle_rsp"] = 1303;
  67553. values[valuesById[1400] = "cmd_hero_get_data"] = 1400;
  67554. values[valuesById[1401] = "cmd_hero_get_data_rsp"] = 1401;
  67555. values[valuesById[1402] = "cmd_hero_upgrade"] = 1402;
  67556. values[valuesById[1403] = "cmd_hero_upgrade_rsp"] = 1403;
  67557. values[valuesById[1404] = "cmd_hero_upgrade_star"] = 1404;
  67558. values[valuesById[1405] = "cmd_hero_upgrade_star_rsp"] = 1405;
  67559. values[valuesById[1406] = "cmd_hero_onekey_upgrade_star"] = 1406;
  67560. values[valuesById[1407] = "cmd_hero_onekey_upgrade_star_rsp"] = 1407;
  67561. values[valuesById[1408] = "cmd_hero_reset"] = 1408;
  67562. values[valuesById[1409] = "cmd_hero_reset_rsp"] = 1409;
  67563. values[valuesById[1410] = "cmd_hero_wear_equip"] = 1410;
  67564. values[valuesById[1411] = "cmd_hero_wear_equip_rsp"] = 1411;
  67565. values[valuesById[1450] = "cmd_hero_change_nty"] = 1450;
  67566. values[valuesById[1500] = "cmd_skill_card_get_data"] = 1500;
  67567. values[valuesById[1501] = "cmd_skill_card_get_data_rsp"] = 1501;
  67568. values[valuesById[1502] = "cmd_skill_card_upgrade"] = 1502;
  67569. values[valuesById[1503] = "cmd_skill_card_upgrade_rsp"] = 1503;
  67570. values[valuesById[1504] = "cmd_skill_card_upgrade_star"] = 1504;
  67571. values[valuesById[1505] = "cmd_skill_card_upgrade_star_rsp"] = 1505;
  67572. values[valuesById[1600] = "cmd_role_get_data"] = 1600;
  67573. values[valuesById[1601] = "cmd_role_get_data_rsp"] = 1601;
  67574. values[valuesById[1602] = "cmd_role_upgrade"] = 1602;
  67575. values[valuesById[1603] = "cmd_role_upgrade_rsp"] = 1603;
  67576. values[valuesById[1604] = "cmd_role_rename"] = 1604;
  67577. values[valuesById[1605] = "cmd_role_rename_rsp"] = 1605;
  67578. values[valuesById[1700] = "cmd_equip_get_data"] = 1700;
  67579. values[valuesById[1701] = "cmd_equip_get_data_rsp"] = 1701;
  67580. values[valuesById[1702] = "cmd_equip_upgrade"] = 1702;
  67581. values[valuesById[1703] = "cmd_equip_upgrade_rsp"] = 1703;
  67582. values[valuesById[1704] = "cmd_equip_upgrade_star"] = 1704;
  67583. values[valuesById[1705] = "cmd_equip_upgrade_star_rsp"] = 1705;
  67584. values[valuesById[1706] = "cmd_equip_onekey_upgrade_star"] = 1706;
  67585. values[valuesById[1707] = "cmd_equip_onekey_upgrade_star_rsp"] = 1707;
  67586. values[valuesById[1708] = "cmd_equip_reset"] = 1708;
  67587. values[valuesById[1709] = "cmd_equip_reset_rsp"] = 1709;
  67588. values[valuesById[1750] = "cmd_equip_change_nty"] = 1750;
  67589. values[valuesById[1800] = "cmd_debris_get_data"] = 1800;
  67590. values[valuesById[1801] = "cmd_debris_get_data_rsp"] = 1801;
  67591. values[valuesById[1802] = "cmd_debris_merge"] = 1802;
  67592. values[valuesById[1803] = "cmd_debris_merge_rsp"] = 1803;
  67593. values[valuesById[1900] = "cmd_talent_get_data"] = 1900;
  67594. values[valuesById[1901] = "cmd_talent_get_data_rsp"] = 1901;
  67595. values[valuesById[1902] = "cmd_talent_activate"] = 1902;
  67596. values[valuesById[1903] = "cmd_talent_activate_rsp"] = 1903;
  67597. values[valuesById[2000] = "cmd_sign_in_get_data"] = 2000;
  67598. values[valuesById[2001] = "cmd_sign_in_get_data_rsp"] = 2001;
  67599. values[valuesById[2002] = "cmd_sign_in_award"] = 2002;
  67600. values[valuesById[2003] = "cmd_sign_in_award_rsp"] = 2003;
  67601. values[valuesById[2004] = "cmd_sign_in_nty"] = 2004;
  67602. values[valuesById[2100] = "cmd_quest_get_data"] = 2100;
  67603. values[valuesById[2101] = "cmd_quest_get_data_rsp"] = 2101;
  67604. values[valuesById[2102] = "cmd_quest_get_award"] = 2102;
  67605. values[valuesById[2103] = "cmd_quest_get_award_rsp"] = 2103;
  67606. values[valuesById[2104] = "cmd_quest_active_award"] = 2104;
  67607. values[valuesById[2105] = "cmd_quest_active_award_rsp"] = 2105;
  67608. values[valuesById[2150] = "cmd_quest_cmplate_notify"] = 2150;
  67609. values[valuesById[2200] = "cmd_manual_get_data"] = 2200;
  67610. values[valuesById[2201] = "cmd_manual_get_data_rsp"] = 2201;
  67611. values[valuesById[2202] = "cmd_manual_buy_exp"] = 2202;
  67612. values[valuesById[2203] = "cmd_manual_buy_exp_rsp"] = 2203;
  67613. values[valuesById[2204] = "cmd_manual_get_award"] = 2204;
  67614. values[valuesById[2205] = "cmd_manual_get_award_rsp"] = 2205;
  67615. values[valuesById[2206] = "cmd_manual_buy"] = 2206;
  67616. values[valuesById[2207] = "cmd_manual_buy_rsp"] = 2207;
  67617. values[valuesById[2250] = "cmd_manual_notify"] = 2250;
  67618. values[valuesById[2300] = "cmd_draw"] = 2300;
  67619. values[valuesById[2301] = "cmd_draw_rsp"] = 2301;
  67620. values[valuesById[2302] = "cmd_draw_get_data"] = 2302;
  67621. values[valuesById[2303] = "cmd_draw_get_data_rsp"] = 2303;
  67622. values[valuesById[2400] = "cmd_shop_data"] = 2400;
  67623. values[valuesById[2401] = "cmd_shop_data_rsp"] = 2401;
  67624. values[valuesById[2402] = "cmd_shop_buy"] = 2402;
  67625. values[valuesById[2403] = "cmd_shop_buy_rsp"] = 2403;
  67626. values[valuesById[2450] = "cmd_shop_notify"] = 2450;
  67627. values[valuesById[2501] = "cmd_ranking_data"] = 2501;
  67628. values[valuesById[2502] = "cmd_ranking_data_rsp"] = 2502;
  67629. values[valuesById[2601] = "cmd_grocery_data"] = 2601;
  67630. values[valuesById[2602] = "cmd_grocery_data_rsp"] = 2602;
  67631. values[valuesById[2603] = "cmd_grocery_buy"] = 2603;
  67632. values[valuesById[2604] = "cmd_grocery_buy_rsp"] = 2604;
  67633. values[valuesById[2605] = "cmd_box_get_award"] = 2605;
  67634. values[valuesById[2606] = "cmd_box_get_award_rsp"] = 2606;
  67635. values[valuesById[2701] = "cmd_altar_data"] = 2701;
  67636. values[valuesById[2702] = "cmd_altar_data_rsp"] = 2702;
  67637. values[valuesById[2703] = "cmd_altar_battle"] = 2703;
  67638. values[valuesById[2704] = "cmd_altar_battle_rsp"] = 2704;
  67639. values[valuesById[2705] = "cmd_altar_exchange"] = 2705;
  67640. values[valuesById[2706] = "cmd_altar_exchange_rsp"] = 2706;
  67641. values[valuesById[2707] = "cmd_altar_exchange_confirm"] = 2707;
  67642. values[valuesById[2708] = "cmd_altar_exchange_confirm_rsp"] = 2708;
  67643. values[valuesById[2709] = "cmd_altar_buy_battle_space"] = 2709;
  67644. values[valuesById[2710] = "cmd_altar_buy_battle_space_rsp"] = 2710;
  67645. values[valuesById[2711] = "cmd_altar_reset_cd"] = 2711;
  67646. values[valuesById[2712] = "cmd_altar_reset_cd_rsp"] = 2712;
  67647. values[valuesById[2801] = "cmd_relic_data"] = 2801;
  67648. values[valuesById[2802] = "cmd_relic_data_rsp"] = 2802;
  67649. values[valuesById[2803] = "cmd_relic_next_pos"] = 2803;
  67650. values[valuesById[2804] = "cmd_relic_next_pos_rsp"] = 2804;
  67651. values[valuesById[2805] = "cmd_relic_next_layer"] = 2805;
  67652. values[valuesById[2806] = "cmd_relic_next_layer_rsp"] = 2806;
  67653. values[valuesById[2807] = "cmd_relic_select_buff"] = 2807;
  67654. values[valuesById[2808] = "cmd_relic_select_buff_rsp"] = 2808;
  67655. values[valuesById[2809] = "cmd_relic_reset"] = 2809;
  67656. values[valuesById[2810] = "cmd_relic_reset_rsp"] = 2810;
  67657. values[valuesById[2811] = "cmd_relic_event_select"] = 2811;
  67658. values[valuesById[2812] = "cmd_relic_event_select_rsp"] = 2812;
  67659. values[valuesById[2850] = "cmd_relic_event_nty"] = 2850;
  67660. values[valuesById[2851] = "cmd_relic_data_nty"] = 2851;
  67661. values[valuesById[2900] = "cmd_activity_get_conf_list"] = 2900;
  67662. values[valuesById[2901] = "cmd_activity_get_conf_list_rsp"] = 2901;
  67663. values[valuesById[2950] = "cmd_activity_time_list_nty"] = 2950;
  67664. values[valuesById[2951] = "cmd_activity_get_conf_nty"] = 2951;
  67665. values[valuesById[3000] = "cmd_privilege_card_data"] = 3000;
  67666. values[valuesById[3001] = "cmd_privilege_card_data_rsp"] = 3001;
  67667. values[valuesById[3002] = "cmd_privilege_card_buy"] = 3002;
  67668. values[valuesById[3003] = "cmd_privilege_card_buy_rsp"] = 3003;
  67669. values[valuesById[3004] = "cmd_privilege_card_award"] = 3004;
  67670. values[valuesById[3005] = "cmd_privilege_card_award_rsp"] = 3005;
  67671. values[valuesById[3050] = "cmd_privilege_card_unlock_nty"] = 3050;
  67672. values[valuesById[3100] = "cmd_first_recharge_data"] = 3100;
  67673. values[valuesById[3101] = "cmd_first_recharge_data_rsp"] = 3101;
  67674. values[valuesById[3102] = "cmd_first_recharge_buy"] = 3102;
  67675. values[valuesById[3103] = "cmd_first_recharge_buy_rsp"] = 3103;
  67676. values[valuesById[3104] = "cmd_first_recharge_award"] = 3104;
  67677. values[valuesById[3105] = "cmd_first_recharge_award_rsp"] = 3105;
  67678. values[valuesById[3150] = "cmd_first_recharge_nty"] = 3150;
  67679. values[valuesById[3200] = "cmd_daily_dungeons_data"] = 3200;
  67680. values[valuesById[3201] = "cmd_daily_dungeons_data_rsp"] = 3201;
  67681. values[valuesById[3202] = "cmd_daily_dungeons_start"] = 3202;
  67682. values[valuesById[3203] = "cmd_daily_dungeons_start_rsp"] = 3203;
  67683. values[valuesById[3204] = "cmd_daily_dungeons_end"] = 3204;
  67684. values[valuesById[3205] = "cmd_daily_dungeons_end_rsp"] = 3205;
  67685. values[valuesById[3206] = "cmd_daily_dungeons_sweep"] = 3206;
  67686. values[valuesById[3207] = "cmd_daily_dungeons_sweep_rsp"] = 3207;
  67687. values[valuesById[3300] = "cmd_adv_gift_data"] = 3300;
  67688. values[valuesById[3301] = "cmd_adv_gift_data_rsp"] = 3301;
  67689. values[valuesById[3302] = "cmd_adv_gift_buy"] = 3302;
  67690. values[valuesById[3303] = "cmd_adv_gift_buy_rsp"] = 3303;
  67691. values[valuesById[3350] = "cmd_adv_gift_nty"] = 3350;
  67692. values[valuesById[3400] = "cmd_pop_gift_data"] = 3400;
  67693. values[valuesById[3401] = "cmd_pop_gift_data_rsp"] = 3401;
  67694. values[valuesById[3402] = "cmd_pop_gift_buy"] = 3402;
  67695. values[valuesById[3403] = "cmd_pop_gift_buy_rsp"] = 3403;
  67696. values[valuesById[3450] = "cmd_pop_gift_nty"] = 3450;
  67697. values[valuesById[3451] = "cmd_pop_gift_change_nty"] = 3451;
  67698. values[valuesById[3500] = "cmd_fund_data"] = 3500;
  67699. values[valuesById[3501] = "cmd_fund_data_rsp"] = 3501;
  67700. values[valuesById[3502] = "cmd_fund_buy"] = 3502;
  67701. values[valuesById[3503] = "cmd_fund_buy_rsp"] = 3503;
  67702. values[valuesById[3504] = "cmd_fund_award"] = 3504;
  67703. values[valuesById[3505] = "cmd_fund_award_rsp"] = 3505;
  67704. values[valuesById[3550] = "cmd_fund_nty"] = 3550;
  67705. values[valuesById[3600] = "cmd_keep_recharge_data"] = 3600;
  67706. values[valuesById[3601] = "cmd_keep_recharge_data_rsp"] = 3601;
  67707. values[valuesById[3602] = "cmd_keep_recharge_award"] = 3602;
  67708. values[valuesById[3603] = "cmd_keep_recharge_award_rsp"] = 3603;
  67709. values[valuesById[3710] = "cmd_get_red_point_list"] = 3710;
  67710. values[valuesById[3711] = "cmd_get_red_point_list_rsp"] = 3711;
  67711. values[valuesById[3800] = "cmd_online_award_get_award"] = 3800;
  67712. values[valuesById[3801] = "cmd_online_award_get_award_rsp"] = 3801;
  67713. values[valuesById[3802] = "cmd_online_award_get_data"] = 3802;
  67714. values[valuesById[3803] = "cmd_online_award_get_data_rsp"] = 3803;
  67715. values[valuesById[3850] = "cmd_online_award_nty"] = 3850;
  67716. values[valuesById[3900] = "cmd_speed_up_data"] = 3900;
  67717. values[valuesById[3901] = "cmd_speed_up_data_rsp"] = 3901;
  67718. values[valuesById[3902] = "cmd_speed_up_buy"] = 3902;
  67719. values[valuesById[3903] = "cmd_speed_up_buy_rsp"] = 3903;
  67720. values[valuesById[4000] = "cmd_level_gift_data"] = 4000;
  67721. values[valuesById[4001] = "cmd_level_gift_data_rsp"] = 4001;
  67722. values[valuesById[4002] = "cmd_level_gift_buy"] = 4002;
  67723. values[valuesById[4003] = "cmd_level_gift_buy_rsp"] = 4003;
  67724. values[valuesById[4004] = "cmd_level_gift_del_red_point"] = 4004;
  67725. values[valuesById[4005] = "cmd_level_gift_del_red_point_rsp"] = 4005;
  67726. values[valuesById[4050] = "cmd_level_gift_nty"] = 4050;
  67727. values[valuesById[4100] = "cmd_lottery_data"] = 4100;
  67728. values[valuesById[4101] = "cmd_lottery_data_rsp"] = 4101;
  67729. values[valuesById[4102] = "cmd_lottery_award"] = 4102;
  67730. values[valuesById[4103] = "cmd_lottery_award_rsp"] = 4103;
  67731. values[valuesById[4104] = "cmd_lottery_buy"] = 4104;
  67732. values[valuesById[4105] = "cmd_lottery_buy_rsp"] = 4105;
  67733. values[valuesById[4150] = "cmd_lottery_nty"] = 4150;
  67734. values[valuesById[4200] = "cmd_act_rank_data"] = 4200;
  67735. values[valuesById[4201] = "cmd_act_rank_data_rsp"] = 4201;
  67736. values[valuesById[4300] = "cmd_treasure_get_data"] = 4300;
  67737. values[valuesById[4301] = "cmd_treasure_get_data_rsp"] = 4301;
  67738. values[valuesById[4302] = "cmd_treasure_draw"] = 4302;
  67739. values[valuesById[4303] = "cmd_treasure_draw_rsp"] = 4303;
  67740. values[valuesById[4304] = "cmd_treasure_sign"] = 4304;
  67741. values[valuesById[4305] = "cmd_treasure_sign_rsp"] = 4305;
  67742. values[valuesById[4306] = "cmd_treasure_buy"] = 4306;
  67743. values[valuesById[4307] = "cmd_treasure_buy_rsp"] = 4307;
  67744. values[valuesById[4400] = "cmd_pvp_data"] = 4400;
  67745. values[valuesById[4401] = "cmd_pvp_data_rsp"] = 4401;
  67746. values[valuesById[4402] = "cmd_pvp_match"] = 4402;
  67747. values[valuesById[4403] = "cmd_pvp_match_rsp"] = 4403;
  67748. values[valuesById[4404] = "cmd_pvp_reslut"] = 4404;
  67749. values[valuesById[4405] = "cmd_pvp_reslut_rsp"] = 4405;
  67750. values[valuesById[4406] = "cmd_pvp_embattle"] = 4406;
  67751. values[valuesById[4407] = "cmd_pvp_embattle_rsp"] = 4407;
  67752. values[valuesById[4500] = "cmd_time_box_data"] = 4500;
  67753. values[valuesById[4501] = "cmd_time_box_data_rsp"] = 4501;
  67754. values[valuesById[4502] = "cmd_time_box_unlock"] = 4502;
  67755. values[valuesById[4503] = "cmd_time_box_unlock_rsp"] = 4503;
  67756. values[valuesById[4504] = "cmd_time_box_get_award"] = 4504;
  67757. values[valuesById[4505] = "cmd_time_box_get_award_rsp"] = 4505;
  67758. return values;
  67759. })();
  67760. return game;
  67761. })();
  67762. export { $root as default };