proto.js 926 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737
  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. "use strict";
  3. var $protobuf = protobuf;
  4. // Common aliases
  5. var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;
  6. // Exported root namespace
  7. var $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {});
  8. $root.pb = (function() {
  9. /**
  10. * Namespace pb.
  11. * @exports pb
  12. * @namespace
  13. */
  14. var pb = {};
  15. pb.Message = (function() {
  16. /**
  17. * Properties of a Message.
  18. * @memberof pb
  19. * @interface IMessage
  20. * @property {number} messageType Message messageType
  21. * @property {guandan.ICGJoinRoom|null} [".guandan.cgJoinRoom"] Message .guandan.cgJoinRoom
  22. * @property {guandan.IGCJoinRoom|null} [".guandan.gcJoinRoom"] Message .guandan.gcJoinRoom
  23. * @property {guandan.IGCJoinRoomBroadcast|null} [".guandan.gcJoinRoomBroadcast"] Message .guandan.gcJoinRoomBroadcast
  24. * @property {guandan.IGCSelectBankerBroadcast|null} [".guandan.gcSelectBankerBroadcast"] Message .guandan.gcSelectBankerBroadcast
  25. * @property {guandan.IGCDealCards|null} [".guandan.gcDealCards"] Message .guandan.gcDealCards
  26. * @property {guandan.IGCClearCircleBroadcast|null} [".guandan.gclearCircleBroadcast"] Message .guandan.gclearCircleBroadcast
  27. * @property {guandan.ICGPlayerPlayCard|null} [".guandan.cgPlayerPlayCard"] Message .guandan.cgPlayerPlayCard
  28. * @property {guandan.IGCPlayerPlayCard|null} [".guandan.gcPlayerPlayCard"] Message .guandan.gcPlayerPlayCard
  29. * @property {guandan.IGCPlayerPlayCardBroadcast|null} [".guandan.gcPlayerPlayCardBroadcast"] Message .guandan.gcPlayerPlayCardBroadcast
  30. * @property {guandan.IGCPlayerOperations|null} [".guandan.gcPlayerOperations"] Message .guandan.gcPlayerOperations
  31. * @property {guandan.IGCWaitPlayerPlayCard|null} [".guandan.gcWaitPlayerPlayCard"] Message .guandan.gcWaitPlayerPlayCard
  32. * @property {guandan.IGCWaitPlayerPlayCardBroadcast|null} [".guandan.gcWaitPlayerPlayCardBroadcast"] Message .guandan.gcWaitPlayerPlayCardBroadcast
  33. * @property {guandan.ICGPlayerJinGong|null} [".guandan.cgPlayerJinGong"] Message .guandan.cgPlayerJinGong
  34. * @property {guandan.IGCPlayerJinGongBroadcast|null} [".guandan.gcPlayerJinGongBroadcast"] Message .guandan.gcPlayerJinGongBroadcast
  35. * @property {guandan.ICGPlayerHuanGong|null} [".guandan.cgPlayerHuanGong"] Message .guandan.cgPlayerHuanGong
  36. * @property {guandan.IGCPlayerHuanGongBroadcast|null} [".guandan.gcPlayerHuanGongBroadcast"] Message .guandan.gcPlayerHuanGongBroadcast
  37. * @property {guandan.IGCPlayerKangGongBroadcast|null} [".guandan.gcPlayerKangGongBroadcast"] Message .guandan.gcPlayerKangGongBroadcast
  38. * @property {guandan.IGCWaitPlayerJinGongBroadcast|null} [".guandan.gcWaitPlayerJinGongBroadcast"] Message .guandan.gcWaitPlayerJinGongBroadcast
  39. * @property {guandan.IGCWaitPlayerHuanGongBroadcast|null} [".guandan.gcWaitPlayerHuanGongBroadcast"] Message .guandan.gcWaitPlayerHuanGongBroadcast
  40. * @property {guandan.IGCPlayerYou|null} [".guandan.gcPlayerYou"] Message .guandan.gcPlayerYou
  41. * @property {guandan.IGCPlayerEmptyBroadcast|null} [".guandan.gcPlayerEmptyBroadcast"] Message .guandan.gcPlayerEmptyBroadcast
  42. * @property {guandan.ICGPlayerOperate|null} [".guandan.cgPlayerOpreate"] Message .guandan.cgPlayerOpreate
  43. * @property {guandan.IGCClear|null} [".guandan.gcClear"] Message .guandan.gcClear
  44. * @property {guandan.IGCReconnectPlayer|null} [".guandan.gcReconnectPlayer"] Message .guandan.gcReconnectPlayer
  45. * @property {guandan.IGCDisconnectPlayer|null} [".guandan.gcDisconnectPlayer"] Message .guandan.gcDisconnectPlayer
  46. * @property {guandan.ICGPlayerLeave|null} [".guandan.cgPlayerLeave"] Message .guandan.cgPlayerLeave
  47. * @property {guandan.IGCPlayerLeave|null} [".guandan.gcPlayerLeave"] Message .guandan.gcPlayerLeave
  48. * @property {guandan.ICGPlayerStart|null} [".guandan.cgPlayerStart"] Message .guandan.cgPlayerStart
  49. * @property {guandan.IGCLastBroadcast|null} [".guandan.gcLastBroadcast"] Message .guandan.gcLastBroadcast
  50. * @property {guandan.IGCPlayerStart|null} [".guandan.gcPlayerStart"] Message .guandan.gcPlayerStart
  51. * @property {guandan.ICGPlayerDissolve|null} [".guandan.cgPlayerDissolve"] Message .guandan.cgPlayerDissolve
  52. * @property {guandan.IGCPlayerDissolve|null} [".guandan.gcPlayerDissolve"] Message .guandan.gcPlayerDissolve
  53. * @property {guandan.ICGPlayerDissolveAgree|null} [".guandan.cgPlayerDissolveAgree"] Message .guandan.cgPlayerDissolveAgree
  54. * @property {guandan.IGCPlayerDissolveAgree|null} [".guandan.gcPlayerDissolveAgree"] Message .guandan.gcPlayerDissolveAgree
  55. * @property {guandan.IGCLiuJu|null} [".guandan.gcLiuJu"] Message .guandan.gcLiuJu
  56. * @property {guandan.IGCTotalSettle|null} [".guandan.gcTotalSettle"] Message .guandan.gcTotalSettle
  57. * @property {guandan.IGCKaiJin|null} [".guandan.gcKaiJin"] Message .guandan.gcKaiJin
  58. * @property {guandan.ICGDisconnectPlayer|null} [".guandan.cgDisconnectPlayer"] Message .guandan.cgDisconnectPlayer
  59. * @property {guandan.IGCPlayerTuoGuan|null} [".guandan.gcPlayerTuoGuan"] Message .guandan.gcPlayerTuoGuan
  60. * @property {guandan.ICGPlayerCancelTuoGuan|null} [".guandan.cgPlayerCancelTuoGuan"] Message .guandan.cgPlayerCancelTuoGuan
  61. * @property {guandan.IGCPlayerCancelTuoGuan|null} [".guandan.gcPlayerCancelTuoGuan"] Message .guandan.gcPlayerCancelTuoGuan
  62. * @property {guandan.IGCRoomRoundStart|null} [".guandan.gcRoomRoundStart"] Message .guandan.gcRoomRoundStart
  63. * @property {guandan.IGCPlayerRemainCardBroadcast|null} [".guandan.gcPlayerRemainCardBroadcast"] Message .guandan.gcPlayerRemainCardBroadcast
  64. * @property {guandan.IGCPlayerDoubleBroadcast|null} [".guandan.gcPlayerDoubleBroadcast"] Message .guandan.gcPlayerDoubleBroadcast
  65. * @property {guandan.IGCTuanTuanZhuanShowCardBroadcast|null} [".guandan.gcTuanTuanZhuanShowCardBroadcast"] Message .guandan.gcTuanTuanZhuanShowCardBroadcast
  66. * @property {guandan.IGCOppositePlayerCard|null} [".guandan.gcOppositePlayerCard"] Message .guandan.gcOppositePlayerCard
  67. * @property {guandan.ICGPlayerDouble|null} [".guandan.cgPlayerDouble"] Message .guandan.cgPlayerDouble
  68. * @property {guandan.IGCWaitPlayerDouble|null} [".guandan.gcWaitPlayerDouble"] Message .guandan.gcWaitPlayerDouble
  69. * @property {guandan.IGCBombDoubleBroadcast|null} [".guandan.gcBombDoubleBroadcast"] Message .guandan.gcBombDoubleBroadcast
  70. * @property {guandan.IGCJieFengBroadcast|null} [".guandan.gcJieFengBroadcast"] Message .guandan.gcJieFengBroadcast
  71. * @property {guandan.IGCStartArrangeCardBroadcast|null} [".guandan.gcStartArrangeCardBroadcast"] Message .guandan.gcStartArrangeCardBroadcast
  72. * @property {guandan.IGCEndArrangeCardBroadcast|null} [".guandan.gcEndArrangeCardBroadcast"] Message .guandan.gcEndArrangeCardBroadcast
  73. * @property {guandan.IGCRestCardBroadcast|null} [".guandan.gcRestCardBroadcast"] Message .guandan.gcRestCardBroadcast
  74. * @property {guandan.ICGChat|null} [".guandan.cgChat"] Message .guandan.cgChat
  75. * @property {guandan.IGCChat|null} [".guandan.gcChat"] Message .guandan.gcChat
  76. * @property {guandan.IGCErrorNotice|null} [".guandan.gcErrorNotice"] Message .guandan.gcErrorNotice
  77. * @property {guandan.IGCKickOutReason|null} [".guandan.gcKickOutReason"] Message .guandan.gcKickOutReason
  78. * @property {pb.ICGLogin|null} [".pb.cgLogin"] Message .pb.cgLogin
  79. * @property {pb.IGCLogin|null} [".pb.gcLogin"] Message .pb.gcLogin
  80. * @property {pb.ICGPing|null} [".pb.cgPing"] Message .pb.cgPing
  81. * @property {pb.IGCPing|null} [".pb.gcPing"] Message .pb.gcPing
  82. */
  83. /**
  84. * Constructs a new Message.
  85. * @memberof pb
  86. * @classdesc Represents a Message.
  87. * @implements IMessage
  88. * @constructor
  89. * @param {pb.IMessage=} [properties] Properties to set
  90. */
  91. function Message(properties) {
  92. if (properties)
  93. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  94. if (properties[keys[i]] != null)
  95. this[keys[i]] = properties[keys[i]];
  96. }
  97. /**
  98. * Message messageType.
  99. * @member {number} messageType
  100. * @memberof pb.Message
  101. * @instance
  102. */
  103. Message.prototype.messageType = 0;
  104. /**
  105. * Message .guandan.cgJoinRoom.
  106. * @member {guandan.ICGJoinRoom|null|undefined} .guandan.cgJoinRoom
  107. * @memberof pb.Message
  108. * @instance
  109. */
  110. Message.prototype[".guandan.cgJoinRoom"] = null;
  111. /**
  112. * Message .guandan.gcJoinRoom.
  113. * @member {guandan.IGCJoinRoom|null|undefined} .guandan.gcJoinRoom
  114. * @memberof pb.Message
  115. * @instance
  116. */
  117. Message.prototype[".guandan.gcJoinRoom"] = null;
  118. /**
  119. * Message .guandan.gcJoinRoomBroadcast.
  120. * @member {guandan.IGCJoinRoomBroadcast|null|undefined} .guandan.gcJoinRoomBroadcast
  121. * @memberof pb.Message
  122. * @instance
  123. */
  124. Message.prototype[".guandan.gcJoinRoomBroadcast"] = null;
  125. /**
  126. * Message .guandan.gcSelectBankerBroadcast.
  127. * @member {guandan.IGCSelectBankerBroadcast|null|undefined} .guandan.gcSelectBankerBroadcast
  128. * @memberof pb.Message
  129. * @instance
  130. */
  131. Message.prototype[".guandan.gcSelectBankerBroadcast"] = null;
  132. /**
  133. * Message .guandan.gcDealCards.
  134. * @member {guandan.IGCDealCards|null|undefined} .guandan.gcDealCards
  135. * @memberof pb.Message
  136. * @instance
  137. */
  138. Message.prototype[".guandan.gcDealCards"] = null;
  139. /**
  140. * Message .guandan.gclearCircleBroadcast.
  141. * @member {guandan.IGCClearCircleBroadcast|null|undefined} .guandan.gclearCircleBroadcast
  142. * @memberof pb.Message
  143. * @instance
  144. */
  145. Message.prototype[".guandan.gclearCircleBroadcast"] = null;
  146. /**
  147. * Message .guandan.cgPlayerPlayCard.
  148. * @member {guandan.ICGPlayerPlayCard|null|undefined} .guandan.cgPlayerPlayCard
  149. * @memberof pb.Message
  150. * @instance
  151. */
  152. Message.prototype[".guandan.cgPlayerPlayCard"] = null;
  153. /**
  154. * Message .guandan.gcPlayerPlayCard.
  155. * @member {guandan.IGCPlayerPlayCard|null|undefined} .guandan.gcPlayerPlayCard
  156. * @memberof pb.Message
  157. * @instance
  158. */
  159. Message.prototype[".guandan.gcPlayerPlayCard"] = null;
  160. /**
  161. * Message .guandan.gcPlayerPlayCardBroadcast.
  162. * @member {guandan.IGCPlayerPlayCardBroadcast|null|undefined} .guandan.gcPlayerPlayCardBroadcast
  163. * @memberof pb.Message
  164. * @instance
  165. */
  166. Message.prototype[".guandan.gcPlayerPlayCardBroadcast"] = null;
  167. /**
  168. * Message .guandan.gcPlayerOperations.
  169. * @member {guandan.IGCPlayerOperations|null|undefined} .guandan.gcPlayerOperations
  170. * @memberof pb.Message
  171. * @instance
  172. */
  173. Message.prototype[".guandan.gcPlayerOperations"] = null;
  174. /**
  175. * Message .guandan.gcWaitPlayerPlayCard.
  176. * @member {guandan.IGCWaitPlayerPlayCard|null|undefined} .guandan.gcWaitPlayerPlayCard
  177. * @memberof pb.Message
  178. * @instance
  179. */
  180. Message.prototype[".guandan.gcWaitPlayerPlayCard"] = null;
  181. /**
  182. * Message .guandan.gcWaitPlayerPlayCardBroadcast.
  183. * @member {guandan.IGCWaitPlayerPlayCardBroadcast|null|undefined} .guandan.gcWaitPlayerPlayCardBroadcast
  184. * @memberof pb.Message
  185. * @instance
  186. */
  187. Message.prototype[".guandan.gcWaitPlayerPlayCardBroadcast"] = null;
  188. /**
  189. * Message .guandan.cgPlayerJinGong.
  190. * @member {guandan.ICGPlayerJinGong|null|undefined} .guandan.cgPlayerJinGong
  191. * @memberof pb.Message
  192. * @instance
  193. */
  194. Message.prototype[".guandan.cgPlayerJinGong"] = null;
  195. /**
  196. * Message .guandan.gcPlayerJinGongBroadcast.
  197. * @member {guandan.IGCPlayerJinGongBroadcast|null|undefined} .guandan.gcPlayerJinGongBroadcast
  198. * @memberof pb.Message
  199. * @instance
  200. */
  201. Message.prototype[".guandan.gcPlayerJinGongBroadcast"] = null;
  202. /**
  203. * Message .guandan.cgPlayerHuanGong.
  204. * @member {guandan.ICGPlayerHuanGong|null|undefined} .guandan.cgPlayerHuanGong
  205. * @memberof pb.Message
  206. * @instance
  207. */
  208. Message.prototype[".guandan.cgPlayerHuanGong"] = null;
  209. /**
  210. * Message .guandan.gcPlayerHuanGongBroadcast.
  211. * @member {guandan.IGCPlayerHuanGongBroadcast|null|undefined} .guandan.gcPlayerHuanGongBroadcast
  212. * @memberof pb.Message
  213. * @instance
  214. */
  215. Message.prototype[".guandan.gcPlayerHuanGongBroadcast"] = null;
  216. /**
  217. * Message .guandan.gcPlayerKangGongBroadcast.
  218. * @member {guandan.IGCPlayerKangGongBroadcast|null|undefined} .guandan.gcPlayerKangGongBroadcast
  219. * @memberof pb.Message
  220. * @instance
  221. */
  222. Message.prototype[".guandan.gcPlayerKangGongBroadcast"] = null;
  223. /**
  224. * Message .guandan.gcWaitPlayerJinGongBroadcast.
  225. * @member {guandan.IGCWaitPlayerJinGongBroadcast|null|undefined} .guandan.gcWaitPlayerJinGongBroadcast
  226. * @memberof pb.Message
  227. * @instance
  228. */
  229. Message.prototype[".guandan.gcWaitPlayerJinGongBroadcast"] = null;
  230. /**
  231. * Message .guandan.gcWaitPlayerHuanGongBroadcast.
  232. * @member {guandan.IGCWaitPlayerHuanGongBroadcast|null|undefined} .guandan.gcWaitPlayerHuanGongBroadcast
  233. * @memberof pb.Message
  234. * @instance
  235. */
  236. Message.prototype[".guandan.gcWaitPlayerHuanGongBroadcast"] = null;
  237. /**
  238. * Message .guandan.gcPlayerYou.
  239. * @member {guandan.IGCPlayerYou|null|undefined} .guandan.gcPlayerYou
  240. * @memberof pb.Message
  241. * @instance
  242. */
  243. Message.prototype[".guandan.gcPlayerYou"] = null;
  244. /**
  245. * Message .guandan.gcPlayerEmptyBroadcast.
  246. * @member {guandan.IGCPlayerEmptyBroadcast|null|undefined} .guandan.gcPlayerEmptyBroadcast
  247. * @memberof pb.Message
  248. * @instance
  249. */
  250. Message.prototype[".guandan.gcPlayerEmptyBroadcast"] = null;
  251. /**
  252. * Message .guandan.cgPlayerOpreate.
  253. * @member {guandan.ICGPlayerOperate|null|undefined} .guandan.cgPlayerOpreate
  254. * @memberof pb.Message
  255. * @instance
  256. */
  257. Message.prototype[".guandan.cgPlayerOpreate"] = null;
  258. /**
  259. * Message .guandan.gcClear.
  260. * @member {guandan.IGCClear|null|undefined} .guandan.gcClear
  261. * @memberof pb.Message
  262. * @instance
  263. */
  264. Message.prototype[".guandan.gcClear"] = null;
  265. /**
  266. * Message .guandan.gcReconnectPlayer.
  267. * @member {guandan.IGCReconnectPlayer|null|undefined} .guandan.gcReconnectPlayer
  268. * @memberof pb.Message
  269. * @instance
  270. */
  271. Message.prototype[".guandan.gcReconnectPlayer"] = null;
  272. /**
  273. * Message .guandan.gcDisconnectPlayer.
  274. * @member {guandan.IGCDisconnectPlayer|null|undefined} .guandan.gcDisconnectPlayer
  275. * @memberof pb.Message
  276. * @instance
  277. */
  278. Message.prototype[".guandan.gcDisconnectPlayer"] = null;
  279. /**
  280. * Message .guandan.cgPlayerLeave.
  281. * @member {guandan.ICGPlayerLeave|null|undefined} .guandan.cgPlayerLeave
  282. * @memberof pb.Message
  283. * @instance
  284. */
  285. Message.prototype[".guandan.cgPlayerLeave"] = null;
  286. /**
  287. * Message .guandan.gcPlayerLeave.
  288. * @member {guandan.IGCPlayerLeave|null|undefined} .guandan.gcPlayerLeave
  289. * @memberof pb.Message
  290. * @instance
  291. */
  292. Message.prototype[".guandan.gcPlayerLeave"] = null;
  293. /**
  294. * Message .guandan.cgPlayerStart.
  295. * @member {guandan.ICGPlayerStart|null|undefined} .guandan.cgPlayerStart
  296. * @memberof pb.Message
  297. * @instance
  298. */
  299. Message.prototype[".guandan.cgPlayerStart"] = null;
  300. /**
  301. * Message .guandan.gcLastBroadcast.
  302. * @member {guandan.IGCLastBroadcast|null|undefined} .guandan.gcLastBroadcast
  303. * @memberof pb.Message
  304. * @instance
  305. */
  306. Message.prototype[".guandan.gcLastBroadcast"] = null;
  307. /**
  308. * Message .guandan.gcPlayerStart.
  309. * @member {guandan.IGCPlayerStart|null|undefined} .guandan.gcPlayerStart
  310. * @memberof pb.Message
  311. * @instance
  312. */
  313. Message.prototype[".guandan.gcPlayerStart"] = null;
  314. /**
  315. * Message .guandan.cgPlayerDissolve.
  316. * @member {guandan.ICGPlayerDissolve|null|undefined} .guandan.cgPlayerDissolve
  317. * @memberof pb.Message
  318. * @instance
  319. */
  320. Message.prototype[".guandan.cgPlayerDissolve"] = null;
  321. /**
  322. * Message .guandan.gcPlayerDissolve.
  323. * @member {guandan.IGCPlayerDissolve|null|undefined} .guandan.gcPlayerDissolve
  324. * @memberof pb.Message
  325. * @instance
  326. */
  327. Message.prototype[".guandan.gcPlayerDissolve"] = null;
  328. /**
  329. * Message .guandan.cgPlayerDissolveAgree.
  330. * @member {guandan.ICGPlayerDissolveAgree|null|undefined} .guandan.cgPlayerDissolveAgree
  331. * @memberof pb.Message
  332. * @instance
  333. */
  334. Message.prototype[".guandan.cgPlayerDissolveAgree"] = null;
  335. /**
  336. * Message .guandan.gcPlayerDissolveAgree.
  337. * @member {guandan.IGCPlayerDissolveAgree|null|undefined} .guandan.gcPlayerDissolveAgree
  338. * @memberof pb.Message
  339. * @instance
  340. */
  341. Message.prototype[".guandan.gcPlayerDissolveAgree"] = null;
  342. /**
  343. * Message .guandan.gcLiuJu.
  344. * @member {guandan.IGCLiuJu|null|undefined} .guandan.gcLiuJu
  345. * @memberof pb.Message
  346. * @instance
  347. */
  348. Message.prototype[".guandan.gcLiuJu"] = null;
  349. /**
  350. * Message .guandan.gcTotalSettle.
  351. * @member {guandan.IGCTotalSettle|null|undefined} .guandan.gcTotalSettle
  352. * @memberof pb.Message
  353. * @instance
  354. */
  355. Message.prototype[".guandan.gcTotalSettle"] = null;
  356. /**
  357. * Message .guandan.gcKaiJin.
  358. * @member {guandan.IGCKaiJin|null|undefined} .guandan.gcKaiJin
  359. * @memberof pb.Message
  360. * @instance
  361. */
  362. Message.prototype[".guandan.gcKaiJin"] = null;
  363. /**
  364. * Message .guandan.cgDisconnectPlayer.
  365. * @member {guandan.ICGDisconnectPlayer|null|undefined} .guandan.cgDisconnectPlayer
  366. * @memberof pb.Message
  367. * @instance
  368. */
  369. Message.prototype[".guandan.cgDisconnectPlayer"] = null;
  370. /**
  371. * Message .guandan.gcPlayerTuoGuan.
  372. * @member {guandan.IGCPlayerTuoGuan|null|undefined} .guandan.gcPlayerTuoGuan
  373. * @memberof pb.Message
  374. * @instance
  375. */
  376. Message.prototype[".guandan.gcPlayerTuoGuan"] = null;
  377. /**
  378. * Message .guandan.cgPlayerCancelTuoGuan.
  379. * @member {guandan.ICGPlayerCancelTuoGuan|null|undefined} .guandan.cgPlayerCancelTuoGuan
  380. * @memberof pb.Message
  381. * @instance
  382. */
  383. Message.prototype[".guandan.cgPlayerCancelTuoGuan"] = null;
  384. /**
  385. * Message .guandan.gcPlayerCancelTuoGuan.
  386. * @member {guandan.IGCPlayerCancelTuoGuan|null|undefined} .guandan.gcPlayerCancelTuoGuan
  387. * @memberof pb.Message
  388. * @instance
  389. */
  390. Message.prototype[".guandan.gcPlayerCancelTuoGuan"] = null;
  391. /**
  392. * Message .guandan.gcRoomRoundStart.
  393. * @member {guandan.IGCRoomRoundStart|null|undefined} .guandan.gcRoomRoundStart
  394. * @memberof pb.Message
  395. * @instance
  396. */
  397. Message.prototype[".guandan.gcRoomRoundStart"] = null;
  398. /**
  399. * Message .guandan.gcPlayerRemainCardBroadcast.
  400. * @member {guandan.IGCPlayerRemainCardBroadcast|null|undefined} .guandan.gcPlayerRemainCardBroadcast
  401. * @memberof pb.Message
  402. * @instance
  403. */
  404. Message.prototype[".guandan.gcPlayerRemainCardBroadcast"] = null;
  405. /**
  406. * Message .guandan.gcPlayerDoubleBroadcast.
  407. * @member {guandan.IGCPlayerDoubleBroadcast|null|undefined} .guandan.gcPlayerDoubleBroadcast
  408. * @memberof pb.Message
  409. * @instance
  410. */
  411. Message.prototype[".guandan.gcPlayerDoubleBroadcast"] = null;
  412. /**
  413. * Message .guandan.gcTuanTuanZhuanShowCardBroadcast.
  414. * @member {guandan.IGCTuanTuanZhuanShowCardBroadcast|null|undefined} .guandan.gcTuanTuanZhuanShowCardBroadcast
  415. * @memberof pb.Message
  416. * @instance
  417. */
  418. Message.prototype[".guandan.gcTuanTuanZhuanShowCardBroadcast"] = null;
  419. /**
  420. * Message .guandan.gcOppositePlayerCard.
  421. * @member {guandan.IGCOppositePlayerCard|null|undefined} .guandan.gcOppositePlayerCard
  422. * @memberof pb.Message
  423. * @instance
  424. */
  425. Message.prototype[".guandan.gcOppositePlayerCard"] = null;
  426. /**
  427. * Message .guandan.cgPlayerDouble.
  428. * @member {guandan.ICGPlayerDouble|null|undefined} .guandan.cgPlayerDouble
  429. * @memberof pb.Message
  430. * @instance
  431. */
  432. Message.prototype[".guandan.cgPlayerDouble"] = null;
  433. /**
  434. * Message .guandan.gcWaitPlayerDouble.
  435. * @member {guandan.IGCWaitPlayerDouble|null|undefined} .guandan.gcWaitPlayerDouble
  436. * @memberof pb.Message
  437. * @instance
  438. */
  439. Message.prototype[".guandan.gcWaitPlayerDouble"] = null;
  440. /**
  441. * Message .guandan.gcBombDoubleBroadcast.
  442. * @member {guandan.IGCBombDoubleBroadcast|null|undefined} .guandan.gcBombDoubleBroadcast
  443. * @memberof pb.Message
  444. * @instance
  445. */
  446. Message.prototype[".guandan.gcBombDoubleBroadcast"] = null;
  447. /**
  448. * Message .guandan.gcJieFengBroadcast.
  449. * @member {guandan.IGCJieFengBroadcast|null|undefined} .guandan.gcJieFengBroadcast
  450. * @memberof pb.Message
  451. * @instance
  452. */
  453. Message.prototype[".guandan.gcJieFengBroadcast"] = null;
  454. /**
  455. * Message .guandan.gcStartArrangeCardBroadcast.
  456. * @member {guandan.IGCStartArrangeCardBroadcast|null|undefined} .guandan.gcStartArrangeCardBroadcast
  457. * @memberof pb.Message
  458. * @instance
  459. */
  460. Message.prototype[".guandan.gcStartArrangeCardBroadcast"] = null;
  461. /**
  462. * Message .guandan.gcEndArrangeCardBroadcast.
  463. * @member {guandan.IGCEndArrangeCardBroadcast|null|undefined} .guandan.gcEndArrangeCardBroadcast
  464. * @memberof pb.Message
  465. * @instance
  466. */
  467. Message.prototype[".guandan.gcEndArrangeCardBroadcast"] = null;
  468. /**
  469. * Message .guandan.gcRestCardBroadcast.
  470. * @member {guandan.IGCRestCardBroadcast|null|undefined} .guandan.gcRestCardBroadcast
  471. * @memberof pb.Message
  472. * @instance
  473. */
  474. Message.prototype[".guandan.gcRestCardBroadcast"] = null;
  475. /**
  476. * Message .guandan.cgChat.
  477. * @member {guandan.ICGChat|null|undefined} .guandan.cgChat
  478. * @memberof pb.Message
  479. * @instance
  480. */
  481. Message.prototype[".guandan.cgChat"] = null;
  482. /**
  483. * Message .guandan.gcChat.
  484. * @member {guandan.IGCChat|null|undefined} .guandan.gcChat
  485. * @memberof pb.Message
  486. * @instance
  487. */
  488. Message.prototype[".guandan.gcChat"] = null;
  489. /**
  490. * Message .guandan.gcErrorNotice.
  491. * @member {guandan.IGCErrorNotice|null|undefined} .guandan.gcErrorNotice
  492. * @memberof pb.Message
  493. * @instance
  494. */
  495. Message.prototype[".guandan.gcErrorNotice"] = null;
  496. /**
  497. * Message .guandan.gcKickOutReason.
  498. * @member {guandan.IGCKickOutReason|null|undefined} .guandan.gcKickOutReason
  499. * @memberof pb.Message
  500. * @instance
  501. */
  502. Message.prototype[".guandan.gcKickOutReason"] = null;
  503. /**
  504. * Message .pb.cgLogin.
  505. * @member {pb.ICGLogin|null|undefined} .pb.cgLogin
  506. * @memberof pb.Message
  507. * @instance
  508. */
  509. Message.prototype[".pb.cgLogin"] = null;
  510. /**
  511. * Message .pb.gcLogin.
  512. * @member {pb.IGCLogin|null|undefined} .pb.gcLogin
  513. * @memberof pb.Message
  514. * @instance
  515. */
  516. Message.prototype[".pb.gcLogin"] = null;
  517. /**
  518. * Message .pb.cgPing.
  519. * @member {pb.ICGPing|null|undefined} .pb.cgPing
  520. * @memberof pb.Message
  521. * @instance
  522. */
  523. Message.prototype[".pb.cgPing"] = null;
  524. /**
  525. * Message .pb.gcPing.
  526. * @member {pb.IGCPing|null|undefined} .pb.gcPing
  527. * @memberof pb.Message
  528. * @instance
  529. */
  530. Message.prototype[".pb.gcPing"] = null;
  531. /**
  532. * Creates a new Message instance using the specified properties.
  533. * @function create
  534. * @memberof pb.Message
  535. * @static
  536. * @param {pb.IMessage=} [properties] Properties to set
  537. * @returns {pb.Message} Message instance
  538. */
  539. Message.create = function create(properties) {
  540. return new Message(properties);
  541. };
  542. /**
  543. * Encodes the specified Message message. Does not implicitly {@link pb.Message.verify|verify} messages.
  544. * @function encode
  545. * @memberof pb.Message
  546. * @static
  547. * @param {pb.IMessage} message Message message or plain object to encode
  548. * @param {$protobuf.Writer} [writer] Writer to encode to
  549. * @returns {$protobuf.Writer} Writer
  550. */
  551. Message.encode = function encode(message, writer) {
  552. if (!writer)
  553. writer = $Writer.create();
  554. writer.uint32(/* id 1, wireType 0 =*/8).int32(message.messageType);
  555. if (message[".pb.cgLogin"] != null && Object.hasOwnProperty.call(message, ".pb.cgLogin"))
  556. $root.pb.CGLogin.encode(message[".pb.cgLogin"], writer.uint32(/* id 101, wireType 2 =*/810).fork()).ldelim();
  557. if (message[".pb.gcLogin"] != null && Object.hasOwnProperty.call(message, ".pb.gcLogin"))
  558. $root.pb.GCLogin.encode(message[".pb.gcLogin"], writer.uint32(/* id 102, wireType 2 =*/818).fork()).ldelim();
  559. if (message[".pb.cgPing"] != null && Object.hasOwnProperty.call(message, ".pb.cgPing"))
  560. $root.pb.CGPing.encode(message[".pb.cgPing"], writer.uint32(/* id 103, wireType 2 =*/826).fork()).ldelim();
  561. if (message[".pb.gcPing"] != null && Object.hasOwnProperty.call(message, ".pb.gcPing"))
  562. $root.pb.GCPing.encode(message[".pb.gcPing"], writer.uint32(/* id 104, wireType 2 =*/834).fork()).ldelim();
  563. if (message[".guandan.cgJoinRoom"] != null && Object.hasOwnProperty.call(message, ".guandan.cgJoinRoom"))
  564. $root.guandan.CGJoinRoom.encode(message[".guandan.cgJoinRoom"], writer.uint32(/* id 2001, wireType 2 =*/16010).fork()).ldelim();
  565. if (message[".guandan.gcJoinRoom"] != null && Object.hasOwnProperty.call(message, ".guandan.gcJoinRoom"))
  566. $root.guandan.GCJoinRoom.encode(message[".guandan.gcJoinRoom"], writer.uint32(/* id 2002, wireType 2 =*/16018).fork()).ldelim();
  567. if (message[".guandan.gcJoinRoomBroadcast"] != null && Object.hasOwnProperty.call(message, ".guandan.gcJoinRoomBroadcast"))
  568. $root.guandan.GCJoinRoomBroadcast.encode(message[".guandan.gcJoinRoomBroadcast"], writer.uint32(/* id 2003, wireType 2 =*/16026).fork()).ldelim();
  569. if (message[".guandan.gcSelectBankerBroadcast"] != null && Object.hasOwnProperty.call(message, ".guandan.gcSelectBankerBroadcast"))
  570. $root.guandan.GCSelectBankerBroadcast.encode(message[".guandan.gcSelectBankerBroadcast"], writer.uint32(/* id 2004, wireType 2 =*/16034).fork()).ldelim();
  571. if (message[".guandan.gcDealCards"] != null && Object.hasOwnProperty.call(message, ".guandan.gcDealCards"))
  572. $root.guandan.GCDealCards.encode(message[".guandan.gcDealCards"], writer.uint32(/* id 2005, wireType 2 =*/16042).fork()).ldelim();
  573. if (message[".guandan.gclearCircleBroadcast"] != null && Object.hasOwnProperty.call(message, ".guandan.gclearCircleBroadcast"))
  574. $root.guandan.GCClearCircleBroadcast.encode(message[".guandan.gclearCircleBroadcast"], writer.uint32(/* id 2006, wireType 2 =*/16050).fork()).ldelim();
  575. if (message[".guandan.cgPlayerPlayCard"] != null && Object.hasOwnProperty.call(message, ".guandan.cgPlayerPlayCard"))
  576. $root.guandan.CGPlayerPlayCard.encode(message[".guandan.cgPlayerPlayCard"], writer.uint32(/* id 2007, wireType 2 =*/16058).fork()).ldelim();
  577. if (message[".guandan.gcPlayerPlayCard"] != null && Object.hasOwnProperty.call(message, ".guandan.gcPlayerPlayCard"))
  578. $root.guandan.GCPlayerPlayCard.encode(message[".guandan.gcPlayerPlayCard"], writer.uint32(/* id 2008, wireType 2 =*/16066).fork()).ldelim();
  579. if (message[".guandan.gcPlayerOperations"] != null && Object.hasOwnProperty.call(message, ".guandan.gcPlayerOperations"))
  580. $root.guandan.GCPlayerOperations.encode(message[".guandan.gcPlayerOperations"], writer.uint32(/* id 2009, wireType 2 =*/16074).fork()).ldelim();
  581. if (message[".guandan.gcWaitPlayerPlayCard"] != null && Object.hasOwnProperty.call(message, ".guandan.gcWaitPlayerPlayCard"))
  582. $root.guandan.GCWaitPlayerPlayCard.encode(message[".guandan.gcWaitPlayerPlayCard"], writer.uint32(/* id 2010, wireType 2 =*/16082).fork()).ldelim();
  583. if (message[".guandan.gcWaitPlayerPlayCardBroadcast"] != null && Object.hasOwnProperty.call(message, ".guandan.gcWaitPlayerPlayCardBroadcast"))
  584. $root.guandan.GCWaitPlayerPlayCardBroadcast.encode(message[".guandan.gcWaitPlayerPlayCardBroadcast"], writer.uint32(/* id 2011, wireType 2 =*/16090).fork()).ldelim();
  585. if (message[".guandan.cgPlayerJinGong"] != null && Object.hasOwnProperty.call(message, ".guandan.cgPlayerJinGong"))
  586. $root.guandan.CGPlayerJinGong.encode(message[".guandan.cgPlayerJinGong"], writer.uint32(/* id 2012, wireType 2 =*/16098).fork()).ldelim();
  587. if (message[".guandan.gcPlayerJinGongBroadcast"] != null && Object.hasOwnProperty.call(message, ".guandan.gcPlayerJinGongBroadcast"))
  588. $root.guandan.GCPlayerJinGongBroadcast.encode(message[".guandan.gcPlayerJinGongBroadcast"], writer.uint32(/* id 2013, wireType 2 =*/16106).fork()).ldelim();
  589. if (message[".guandan.cgPlayerHuanGong"] != null && Object.hasOwnProperty.call(message, ".guandan.cgPlayerHuanGong"))
  590. $root.guandan.CGPlayerHuanGong.encode(message[".guandan.cgPlayerHuanGong"], writer.uint32(/* id 2014, wireType 2 =*/16114).fork()).ldelim();
  591. if (message[".guandan.gcPlayerHuanGongBroadcast"] != null && Object.hasOwnProperty.call(message, ".guandan.gcPlayerHuanGongBroadcast"))
  592. $root.guandan.GCPlayerHuanGongBroadcast.encode(message[".guandan.gcPlayerHuanGongBroadcast"], writer.uint32(/* id 2015, wireType 2 =*/16122).fork()).ldelim();
  593. if (message[".guandan.gcPlayerKangGongBroadcast"] != null && Object.hasOwnProperty.call(message, ".guandan.gcPlayerKangGongBroadcast"))
  594. $root.guandan.GCPlayerKangGongBroadcast.encode(message[".guandan.gcPlayerKangGongBroadcast"], writer.uint32(/* id 2016, wireType 2 =*/16130).fork()).ldelim();
  595. if (message[".guandan.gcWaitPlayerJinGongBroadcast"] != null && Object.hasOwnProperty.call(message, ".guandan.gcWaitPlayerJinGongBroadcast"))
  596. $root.guandan.GCWaitPlayerJinGongBroadcast.encode(message[".guandan.gcWaitPlayerJinGongBroadcast"], writer.uint32(/* id 2017, wireType 2 =*/16138).fork()).ldelim();
  597. if (message[".guandan.gcWaitPlayerHuanGongBroadcast"] != null && Object.hasOwnProperty.call(message, ".guandan.gcWaitPlayerHuanGongBroadcast"))
  598. $root.guandan.GCWaitPlayerHuanGongBroadcast.encode(message[".guandan.gcWaitPlayerHuanGongBroadcast"], writer.uint32(/* id 2018, wireType 2 =*/16146).fork()).ldelim();
  599. if (message[".guandan.gcPlayerYou"] != null && Object.hasOwnProperty.call(message, ".guandan.gcPlayerYou"))
  600. $root.guandan.GCPlayerYou.encode(message[".guandan.gcPlayerYou"], writer.uint32(/* id 2019, wireType 2 =*/16154).fork()).ldelim();
  601. if (message[".guandan.gcPlayerEmptyBroadcast"] != null && Object.hasOwnProperty.call(message, ".guandan.gcPlayerEmptyBroadcast"))
  602. $root.guandan.GCPlayerEmptyBroadcast.encode(message[".guandan.gcPlayerEmptyBroadcast"], writer.uint32(/* id 2020, wireType 2 =*/16162).fork()).ldelim();
  603. if (message[".guandan.cgPlayerOpreate"] != null && Object.hasOwnProperty.call(message, ".guandan.cgPlayerOpreate"))
  604. $root.guandan.CGPlayerOperate.encode(message[".guandan.cgPlayerOpreate"], writer.uint32(/* id 2021, wireType 2 =*/16170).fork()).ldelim();
  605. if (message[".guandan.gcClear"] != null && Object.hasOwnProperty.call(message, ".guandan.gcClear"))
  606. $root.guandan.GCClear.encode(message[".guandan.gcClear"], writer.uint32(/* id 2022, wireType 2 =*/16178).fork()).ldelim();
  607. if (message[".guandan.gcReconnectPlayer"] != null && Object.hasOwnProperty.call(message, ".guandan.gcReconnectPlayer"))
  608. $root.guandan.GCReconnectPlayer.encode(message[".guandan.gcReconnectPlayer"], writer.uint32(/* id 2023, wireType 2 =*/16186).fork()).ldelim();
  609. if (message[".guandan.gcDisconnectPlayer"] != null && Object.hasOwnProperty.call(message, ".guandan.gcDisconnectPlayer"))
  610. $root.guandan.GCDisconnectPlayer.encode(message[".guandan.gcDisconnectPlayer"], writer.uint32(/* id 2024, wireType 2 =*/16194).fork()).ldelim();
  611. if (message[".guandan.cgPlayerLeave"] != null && Object.hasOwnProperty.call(message, ".guandan.cgPlayerLeave"))
  612. $root.guandan.CGPlayerLeave.encode(message[".guandan.cgPlayerLeave"], writer.uint32(/* id 2025, wireType 2 =*/16202).fork()).ldelim();
  613. if (message[".guandan.gcPlayerLeave"] != null && Object.hasOwnProperty.call(message, ".guandan.gcPlayerLeave"))
  614. $root.guandan.GCPlayerLeave.encode(message[".guandan.gcPlayerLeave"], writer.uint32(/* id 2026, wireType 2 =*/16210).fork()).ldelim();
  615. if (message[".guandan.cgPlayerStart"] != null && Object.hasOwnProperty.call(message, ".guandan.cgPlayerStart"))
  616. $root.guandan.CGPlayerStart.encode(message[".guandan.cgPlayerStart"], writer.uint32(/* id 2027, wireType 2 =*/16218).fork()).ldelim();
  617. if (message[".guandan.gcLastBroadcast"] != null && Object.hasOwnProperty.call(message, ".guandan.gcLastBroadcast"))
  618. $root.guandan.GCLastBroadcast.encode(message[".guandan.gcLastBroadcast"], writer.uint32(/* id 2028, wireType 2 =*/16226).fork()).ldelim();
  619. if (message[".guandan.gcPlayerStart"] != null && Object.hasOwnProperty.call(message, ".guandan.gcPlayerStart"))
  620. $root.guandan.GCPlayerStart.encode(message[".guandan.gcPlayerStart"], writer.uint32(/* id 2029, wireType 2 =*/16234).fork()).ldelim();
  621. if (message[".guandan.cgPlayerDissolve"] != null && Object.hasOwnProperty.call(message, ".guandan.cgPlayerDissolve"))
  622. $root.guandan.CGPlayerDissolve.encode(message[".guandan.cgPlayerDissolve"], writer.uint32(/* id 2030, wireType 2 =*/16242).fork()).ldelim();
  623. if (message[".guandan.gcPlayerDissolve"] != null && Object.hasOwnProperty.call(message, ".guandan.gcPlayerDissolve"))
  624. $root.guandan.GCPlayerDissolve.encode(message[".guandan.gcPlayerDissolve"], writer.uint32(/* id 2031, wireType 2 =*/16250).fork()).ldelim();
  625. if (message[".guandan.cgPlayerDissolveAgree"] != null && Object.hasOwnProperty.call(message, ".guandan.cgPlayerDissolveAgree"))
  626. $root.guandan.CGPlayerDissolveAgree.encode(message[".guandan.cgPlayerDissolveAgree"], writer.uint32(/* id 2032, wireType 2 =*/16258).fork()).ldelim();
  627. if (message[".guandan.gcPlayerDissolveAgree"] != null && Object.hasOwnProperty.call(message, ".guandan.gcPlayerDissolveAgree"))
  628. $root.guandan.GCPlayerDissolveAgree.encode(message[".guandan.gcPlayerDissolveAgree"], writer.uint32(/* id 2033, wireType 2 =*/16266).fork()).ldelim();
  629. if (message[".guandan.gcLiuJu"] != null && Object.hasOwnProperty.call(message, ".guandan.gcLiuJu"))
  630. $root.guandan.GCLiuJu.encode(message[".guandan.gcLiuJu"], writer.uint32(/* id 2034, wireType 2 =*/16274).fork()).ldelim();
  631. if (message[".guandan.gcTotalSettle"] != null && Object.hasOwnProperty.call(message, ".guandan.gcTotalSettle"))
  632. $root.guandan.GCTotalSettle.encode(message[".guandan.gcTotalSettle"], writer.uint32(/* id 2035, wireType 2 =*/16282).fork()).ldelim();
  633. if (message[".guandan.gcKaiJin"] != null && Object.hasOwnProperty.call(message, ".guandan.gcKaiJin"))
  634. $root.guandan.GCKaiJin.encode(message[".guandan.gcKaiJin"], writer.uint32(/* id 2036, wireType 2 =*/16290).fork()).ldelim();
  635. if (message[".guandan.cgDisconnectPlayer"] != null && Object.hasOwnProperty.call(message, ".guandan.cgDisconnectPlayer"))
  636. $root.guandan.CGDisconnectPlayer.encode(message[".guandan.cgDisconnectPlayer"], writer.uint32(/* id 2037, wireType 2 =*/16298).fork()).ldelim();
  637. if (message[".guandan.gcPlayerTuoGuan"] != null && Object.hasOwnProperty.call(message, ".guandan.gcPlayerTuoGuan"))
  638. $root.guandan.GCPlayerTuoGuan.encode(message[".guandan.gcPlayerTuoGuan"], writer.uint32(/* id 2038, wireType 2 =*/16306).fork()).ldelim();
  639. if (message[".guandan.cgPlayerCancelTuoGuan"] != null && Object.hasOwnProperty.call(message, ".guandan.cgPlayerCancelTuoGuan"))
  640. $root.guandan.CGPlayerCancelTuoGuan.encode(message[".guandan.cgPlayerCancelTuoGuan"], writer.uint32(/* id 2039, wireType 2 =*/16314).fork()).ldelim();
  641. if (message[".guandan.gcPlayerCancelTuoGuan"] != null && Object.hasOwnProperty.call(message, ".guandan.gcPlayerCancelTuoGuan"))
  642. $root.guandan.GCPlayerCancelTuoGuan.encode(message[".guandan.gcPlayerCancelTuoGuan"], writer.uint32(/* id 2040, wireType 2 =*/16322).fork()).ldelim();
  643. if (message[".guandan.gcRoomRoundStart"] != null && Object.hasOwnProperty.call(message, ".guandan.gcRoomRoundStart"))
  644. $root.guandan.GCRoomRoundStart.encode(message[".guandan.gcRoomRoundStart"], writer.uint32(/* id 2041, wireType 2 =*/16330).fork()).ldelim();
  645. if (message[".guandan.gcPlayerRemainCardBroadcast"] != null && Object.hasOwnProperty.call(message, ".guandan.gcPlayerRemainCardBroadcast"))
  646. $root.guandan.GCPlayerRemainCardBroadcast.encode(message[".guandan.gcPlayerRemainCardBroadcast"], writer.uint32(/* id 2042, wireType 2 =*/16338).fork()).ldelim();
  647. if (message[".guandan.gcPlayerDoubleBroadcast"] != null && Object.hasOwnProperty.call(message, ".guandan.gcPlayerDoubleBroadcast"))
  648. $root.guandan.GCPlayerDoubleBroadcast.encode(message[".guandan.gcPlayerDoubleBroadcast"], writer.uint32(/* id 2043, wireType 2 =*/16346).fork()).ldelim();
  649. if (message[".guandan.gcTuanTuanZhuanShowCardBroadcast"] != null && Object.hasOwnProperty.call(message, ".guandan.gcTuanTuanZhuanShowCardBroadcast"))
  650. $root.guandan.GCTuanTuanZhuanShowCardBroadcast.encode(message[".guandan.gcTuanTuanZhuanShowCardBroadcast"], writer.uint32(/* id 2044, wireType 2 =*/16354).fork()).ldelim();
  651. if (message[".guandan.gcOppositePlayerCard"] != null && Object.hasOwnProperty.call(message, ".guandan.gcOppositePlayerCard"))
  652. $root.guandan.GCOppositePlayerCard.encode(message[".guandan.gcOppositePlayerCard"], writer.uint32(/* id 2045, wireType 2 =*/16362).fork()).ldelim();
  653. if (message[".guandan.cgPlayerDouble"] != null && Object.hasOwnProperty.call(message, ".guandan.cgPlayerDouble"))
  654. $root.guandan.CGPlayerDouble.encode(message[".guandan.cgPlayerDouble"], writer.uint32(/* id 2046, wireType 2 =*/16370).fork()).ldelim();
  655. if (message[".guandan.gcPlayerPlayCardBroadcast"] != null && Object.hasOwnProperty.call(message, ".guandan.gcPlayerPlayCardBroadcast"))
  656. $root.guandan.GCPlayerPlayCardBroadcast.encode(message[".guandan.gcPlayerPlayCardBroadcast"], writer.uint32(/* id 2047, wireType 2 =*/16378).fork()).ldelim();
  657. if (message[".guandan.gcWaitPlayerDouble"] != null && Object.hasOwnProperty.call(message, ".guandan.gcWaitPlayerDouble"))
  658. $root.guandan.GCWaitPlayerDouble.encode(message[".guandan.gcWaitPlayerDouble"], writer.uint32(/* id 2048, wireType 2 =*/16386).fork()).ldelim();
  659. if (message[".guandan.gcBombDoubleBroadcast"] != null && Object.hasOwnProperty.call(message, ".guandan.gcBombDoubleBroadcast"))
  660. $root.guandan.GCBombDoubleBroadcast.encode(message[".guandan.gcBombDoubleBroadcast"], writer.uint32(/* id 2050, wireType 2 =*/16402).fork()).ldelim();
  661. if (message[".guandan.gcJieFengBroadcast"] != null && Object.hasOwnProperty.call(message, ".guandan.gcJieFengBroadcast"))
  662. $root.guandan.GCJieFengBroadcast.encode(message[".guandan.gcJieFengBroadcast"], writer.uint32(/* id 2051, wireType 2 =*/16410).fork()).ldelim();
  663. if (message[".guandan.gcStartArrangeCardBroadcast"] != null && Object.hasOwnProperty.call(message, ".guandan.gcStartArrangeCardBroadcast"))
  664. $root.guandan.GCStartArrangeCardBroadcast.encode(message[".guandan.gcStartArrangeCardBroadcast"], writer.uint32(/* id 2052, wireType 2 =*/16418).fork()).ldelim();
  665. if (message[".guandan.gcEndArrangeCardBroadcast"] != null && Object.hasOwnProperty.call(message, ".guandan.gcEndArrangeCardBroadcast"))
  666. $root.guandan.GCEndArrangeCardBroadcast.encode(message[".guandan.gcEndArrangeCardBroadcast"], writer.uint32(/* id 2053, wireType 2 =*/16426).fork()).ldelim();
  667. if (message[".guandan.gcRestCardBroadcast"] != null && Object.hasOwnProperty.call(message, ".guandan.gcRestCardBroadcast"))
  668. $root.guandan.GCRestCardBroadcast.encode(message[".guandan.gcRestCardBroadcast"], writer.uint32(/* id 2054, wireType 2 =*/16434).fork()).ldelim();
  669. if (message[".guandan.cgChat"] != null && Object.hasOwnProperty.call(message, ".guandan.cgChat"))
  670. $root.guandan.CGChat.encode(message[".guandan.cgChat"], writer.uint32(/* id 3001, wireType 2 =*/24010).fork()).ldelim();
  671. if (message[".guandan.gcChat"] != null && Object.hasOwnProperty.call(message, ".guandan.gcChat"))
  672. $root.guandan.GCChat.encode(message[".guandan.gcChat"], writer.uint32(/* id 3002, wireType 2 =*/24018).fork()).ldelim();
  673. if (message[".guandan.gcErrorNotice"] != null && Object.hasOwnProperty.call(message, ".guandan.gcErrorNotice"))
  674. $root.guandan.GCErrorNotice.encode(message[".guandan.gcErrorNotice"], writer.uint32(/* id 4001, wireType 2 =*/32010).fork()).ldelim();
  675. if (message[".guandan.gcKickOutReason"] != null && Object.hasOwnProperty.call(message, ".guandan.gcKickOutReason"))
  676. $root.guandan.GCKickOutReason.encode(message[".guandan.gcKickOutReason"], writer.uint32(/* id 4002, wireType 2 =*/32018).fork()).ldelim();
  677. return writer;
  678. };
  679. /**
  680. * Encodes the specified Message message, length delimited. Does not implicitly {@link pb.Message.verify|verify} messages.
  681. * @function encodeDelimited
  682. * @memberof pb.Message
  683. * @static
  684. * @param {pb.IMessage} message Message message or plain object to encode
  685. * @param {$protobuf.Writer} [writer] Writer to encode to
  686. * @returns {$protobuf.Writer} Writer
  687. */
  688. Message.encodeDelimited = function encodeDelimited(message, writer) {
  689. return this.encode(message, writer).ldelim();
  690. };
  691. /**
  692. * Decodes a Message message from the specified reader or buffer.
  693. * @function decode
  694. * @memberof pb.Message
  695. * @static
  696. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  697. * @param {number} [length] Message length if known beforehand
  698. * @returns {pb.Message} Message
  699. * @throws {Error} If the payload is not a reader or valid buffer
  700. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  701. */
  702. Message.decode = function decode(reader, length) {
  703. if (!(reader instanceof $Reader))
  704. reader = $Reader.create(reader);
  705. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.pb.Message();
  706. while (reader.pos < end) {
  707. var tag = reader.uint32();
  708. switch (tag >>> 3) {
  709. case 1:
  710. message.messageType = reader.int32();
  711. break;
  712. case 2001:
  713. message[".guandan.cgJoinRoom"] = $root.guandan.CGJoinRoom.decode(reader, reader.uint32());
  714. break;
  715. case 2002:
  716. message[".guandan.gcJoinRoom"] = $root.guandan.GCJoinRoom.decode(reader, reader.uint32());
  717. break;
  718. case 2003:
  719. message[".guandan.gcJoinRoomBroadcast"] = $root.guandan.GCJoinRoomBroadcast.decode(reader, reader.uint32());
  720. break;
  721. case 2004:
  722. message[".guandan.gcSelectBankerBroadcast"] = $root.guandan.GCSelectBankerBroadcast.decode(reader, reader.uint32());
  723. break;
  724. case 2005:
  725. message[".guandan.gcDealCards"] = $root.guandan.GCDealCards.decode(reader, reader.uint32());
  726. break;
  727. case 2006:
  728. message[".guandan.gclearCircleBroadcast"] = $root.guandan.GCClearCircleBroadcast.decode(reader, reader.uint32());
  729. break;
  730. case 2007:
  731. message[".guandan.cgPlayerPlayCard"] = $root.guandan.CGPlayerPlayCard.decode(reader, reader.uint32());
  732. break;
  733. case 2008:
  734. message[".guandan.gcPlayerPlayCard"] = $root.guandan.GCPlayerPlayCard.decode(reader, reader.uint32());
  735. break;
  736. case 2047:
  737. message[".guandan.gcPlayerPlayCardBroadcast"] = $root.guandan.GCPlayerPlayCardBroadcast.decode(reader, reader.uint32());
  738. break;
  739. case 2009:
  740. message[".guandan.gcPlayerOperations"] = $root.guandan.GCPlayerOperations.decode(reader, reader.uint32());
  741. break;
  742. case 2010:
  743. message[".guandan.gcWaitPlayerPlayCard"] = $root.guandan.GCWaitPlayerPlayCard.decode(reader, reader.uint32());
  744. break;
  745. case 2011:
  746. message[".guandan.gcWaitPlayerPlayCardBroadcast"] = $root.guandan.GCWaitPlayerPlayCardBroadcast.decode(reader, reader.uint32());
  747. break;
  748. case 2012:
  749. message[".guandan.cgPlayerJinGong"] = $root.guandan.CGPlayerJinGong.decode(reader, reader.uint32());
  750. break;
  751. case 2013:
  752. message[".guandan.gcPlayerJinGongBroadcast"] = $root.guandan.GCPlayerJinGongBroadcast.decode(reader, reader.uint32());
  753. break;
  754. case 2014:
  755. message[".guandan.cgPlayerHuanGong"] = $root.guandan.CGPlayerHuanGong.decode(reader, reader.uint32());
  756. break;
  757. case 2015:
  758. message[".guandan.gcPlayerHuanGongBroadcast"] = $root.guandan.GCPlayerHuanGongBroadcast.decode(reader, reader.uint32());
  759. break;
  760. case 2016:
  761. message[".guandan.gcPlayerKangGongBroadcast"] = $root.guandan.GCPlayerKangGongBroadcast.decode(reader, reader.uint32());
  762. break;
  763. case 2017:
  764. message[".guandan.gcWaitPlayerJinGongBroadcast"] = $root.guandan.GCWaitPlayerJinGongBroadcast.decode(reader, reader.uint32());
  765. break;
  766. case 2018:
  767. message[".guandan.gcWaitPlayerHuanGongBroadcast"] = $root.guandan.GCWaitPlayerHuanGongBroadcast.decode(reader, reader.uint32());
  768. break;
  769. case 2019:
  770. message[".guandan.gcPlayerYou"] = $root.guandan.GCPlayerYou.decode(reader, reader.uint32());
  771. break;
  772. case 2020:
  773. message[".guandan.gcPlayerEmptyBroadcast"] = $root.guandan.GCPlayerEmptyBroadcast.decode(reader, reader.uint32());
  774. break;
  775. case 2021:
  776. message[".guandan.cgPlayerOpreate"] = $root.guandan.CGPlayerOperate.decode(reader, reader.uint32());
  777. break;
  778. case 2022:
  779. message[".guandan.gcClear"] = $root.guandan.GCClear.decode(reader, reader.uint32());
  780. break;
  781. case 2023:
  782. message[".guandan.gcReconnectPlayer"] = $root.guandan.GCReconnectPlayer.decode(reader, reader.uint32());
  783. break;
  784. case 2024:
  785. message[".guandan.gcDisconnectPlayer"] = $root.guandan.GCDisconnectPlayer.decode(reader, reader.uint32());
  786. break;
  787. case 2025:
  788. message[".guandan.cgPlayerLeave"] = $root.guandan.CGPlayerLeave.decode(reader, reader.uint32());
  789. break;
  790. case 2026:
  791. message[".guandan.gcPlayerLeave"] = $root.guandan.GCPlayerLeave.decode(reader, reader.uint32());
  792. break;
  793. case 2027:
  794. message[".guandan.cgPlayerStart"] = $root.guandan.CGPlayerStart.decode(reader, reader.uint32());
  795. break;
  796. case 2028:
  797. message[".guandan.gcLastBroadcast"] = $root.guandan.GCLastBroadcast.decode(reader, reader.uint32());
  798. break;
  799. case 2029:
  800. message[".guandan.gcPlayerStart"] = $root.guandan.GCPlayerStart.decode(reader, reader.uint32());
  801. break;
  802. case 2030:
  803. message[".guandan.cgPlayerDissolve"] = $root.guandan.CGPlayerDissolve.decode(reader, reader.uint32());
  804. break;
  805. case 2031:
  806. message[".guandan.gcPlayerDissolve"] = $root.guandan.GCPlayerDissolve.decode(reader, reader.uint32());
  807. break;
  808. case 2032:
  809. message[".guandan.cgPlayerDissolveAgree"] = $root.guandan.CGPlayerDissolveAgree.decode(reader, reader.uint32());
  810. break;
  811. case 2033:
  812. message[".guandan.gcPlayerDissolveAgree"] = $root.guandan.GCPlayerDissolveAgree.decode(reader, reader.uint32());
  813. break;
  814. case 2034:
  815. message[".guandan.gcLiuJu"] = $root.guandan.GCLiuJu.decode(reader, reader.uint32());
  816. break;
  817. case 2035:
  818. message[".guandan.gcTotalSettle"] = $root.guandan.GCTotalSettle.decode(reader, reader.uint32());
  819. break;
  820. case 2036:
  821. message[".guandan.gcKaiJin"] = $root.guandan.GCKaiJin.decode(reader, reader.uint32());
  822. break;
  823. case 2037:
  824. message[".guandan.cgDisconnectPlayer"] = $root.guandan.CGDisconnectPlayer.decode(reader, reader.uint32());
  825. break;
  826. case 2038:
  827. message[".guandan.gcPlayerTuoGuan"] = $root.guandan.GCPlayerTuoGuan.decode(reader, reader.uint32());
  828. break;
  829. case 2039:
  830. message[".guandan.cgPlayerCancelTuoGuan"] = $root.guandan.CGPlayerCancelTuoGuan.decode(reader, reader.uint32());
  831. break;
  832. case 2040:
  833. message[".guandan.gcPlayerCancelTuoGuan"] = $root.guandan.GCPlayerCancelTuoGuan.decode(reader, reader.uint32());
  834. break;
  835. case 2041:
  836. message[".guandan.gcRoomRoundStart"] = $root.guandan.GCRoomRoundStart.decode(reader, reader.uint32());
  837. break;
  838. case 2042:
  839. message[".guandan.gcPlayerRemainCardBroadcast"] = $root.guandan.GCPlayerRemainCardBroadcast.decode(reader, reader.uint32());
  840. break;
  841. case 2043:
  842. message[".guandan.gcPlayerDoubleBroadcast"] = $root.guandan.GCPlayerDoubleBroadcast.decode(reader, reader.uint32());
  843. break;
  844. case 2044:
  845. message[".guandan.gcTuanTuanZhuanShowCardBroadcast"] = $root.guandan.GCTuanTuanZhuanShowCardBroadcast.decode(reader, reader.uint32());
  846. break;
  847. case 2045:
  848. message[".guandan.gcOppositePlayerCard"] = $root.guandan.GCOppositePlayerCard.decode(reader, reader.uint32());
  849. break;
  850. case 2046:
  851. message[".guandan.cgPlayerDouble"] = $root.guandan.CGPlayerDouble.decode(reader, reader.uint32());
  852. break;
  853. case 2048:
  854. message[".guandan.gcWaitPlayerDouble"] = $root.guandan.GCWaitPlayerDouble.decode(reader, reader.uint32());
  855. break;
  856. case 2050:
  857. message[".guandan.gcBombDoubleBroadcast"] = $root.guandan.GCBombDoubleBroadcast.decode(reader, reader.uint32());
  858. break;
  859. case 2051:
  860. message[".guandan.gcJieFengBroadcast"] = $root.guandan.GCJieFengBroadcast.decode(reader, reader.uint32());
  861. break;
  862. case 2052:
  863. message[".guandan.gcStartArrangeCardBroadcast"] = $root.guandan.GCStartArrangeCardBroadcast.decode(reader, reader.uint32());
  864. break;
  865. case 2053:
  866. message[".guandan.gcEndArrangeCardBroadcast"] = $root.guandan.GCEndArrangeCardBroadcast.decode(reader, reader.uint32());
  867. break;
  868. case 2054:
  869. message[".guandan.gcRestCardBroadcast"] = $root.guandan.GCRestCardBroadcast.decode(reader, reader.uint32());
  870. break;
  871. case 3001:
  872. message[".guandan.cgChat"] = $root.guandan.CGChat.decode(reader, reader.uint32());
  873. break;
  874. case 3002:
  875. message[".guandan.gcChat"] = $root.guandan.GCChat.decode(reader, reader.uint32());
  876. break;
  877. case 4001:
  878. message[".guandan.gcErrorNotice"] = $root.guandan.GCErrorNotice.decode(reader, reader.uint32());
  879. break;
  880. case 4002:
  881. message[".guandan.gcKickOutReason"] = $root.guandan.GCKickOutReason.decode(reader, reader.uint32());
  882. break;
  883. case 101:
  884. message[".pb.cgLogin"] = $root.pb.CGLogin.decode(reader, reader.uint32());
  885. break;
  886. case 102:
  887. message[".pb.gcLogin"] = $root.pb.GCLogin.decode(reader, reader.uint32());
  888. break;
  889. case 103:
  890. message[".pb.cgPing"] = $root.pb.CGPing.decode(reader, reader.uint32());
  891. break;
  892. case 104:
  893. message[".pb.gcPing"] = $root.pb.GCPing.decode(reader, reader.uint32());
  894. break;
  895. default:
  896. reader.skipType(tag & 7);
  897. break;
  898. }
  899. }
  900. if (!message.hasOwnProperty("messageType"))
  901. throw $util.ProtocolError("missing required 'messageType'", { instance: message });
  902. return message;
  903. };
  904. /**
  905. * Decodes a Message message from the specified reader or buffer, length delimited.
  906. * @function decodeDelimited
  907. * @memberof pb.Message
  908. * @static
  909. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  910. * @returns {pb.Message} Message
  911. * @throws {Error} If the payload is not a reader or valid buffer
  912. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  913. */
  914. Message.decodeDelimited = function decodeDelimited(reader) {
  915. if (!(reader instanceof $Reader))
  916. reader = new $Reader(reader);
  917. return this.decode(reader, reader.uint32());
  918. };
  919. /**
  920. * Verifies a Message message.
  921. * @function verify
  922. * @memberof pb.Message
  923. * @static
  924. * @param {Object.<string,*>} message Plain object to verify
  925. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  926. */
  927. Message.verify = function verify(message) {
  928. if (typeof message !== "object" || message === null)
  929. return "object expected";
  930. if (!$util.isInteger(message.messageType))
  931. return "messageType: integer expected";
  932. if (message[".guandan.cgJoinRoom"] != null && message.hasOwnProperty(".guandan.cgJoinRoom")) {
  933. var error = $root.guandan.CGJoinRoom.verify(message[".guandan.cgJoinRoom"]);
  934. if (error)
  935. return ".guandan.cgJoinRoom." + error;
  936. }
  937. if (message[".guandan.gcJoinRoom"] != null && message.hasOwnProperty(".guandan.gcJoinRoom")) {
  938. var error = $root.guandan.GCJoinRoom.verify(message[".guandan.gcJoinRoom"]);
  939. if (error)
  940. return ".guandan.gcJoinRoom." + error;
  941. }
  942. if (message[".guandan.gcJoinRoomBroadcast"] != null && message.hasOwnProperty(".guandan.gcJoinRoomBroadcast")) {
  943. var error = $root.guandan.GCJoinRoomBroadcast.verify(message[".guandan.gcJoinRoomBroadcast"]);
  944. if (error)
  945. return ".guandan.gcJoinRoomBroadcast." + error;
  946. }
  947. if (message[".guandan.gcSelectBankerBroadcast"] != null && message.hasOwnProperty(".guandan.gcSelectBankerBroadcast")) {
  948. var error = $root.guandan.GCSelectBankerBroadcast.verify(message[".guandan.gcSelectBankerBroadcast"]);
  949. if (error)
  950. return ".guandan.gcSelectBankerBroadcast." + error;
  951. }
  952. if (message[".guandan.gcDealCards"] != null && message.hasOwnProperty(".guandan.gcDealCards")) {
  953. var error = $root.guandan.GCDealCards.verify(message[".guandan.gcDealCards"]);
  954. if (error)
  955. return ".guandan.gcDealCards." + error;
  956. }
  957. if (message[".guandan.gclearCircleBroadcast"] != null && message.hasOwnProperty(".guandan.gclearCircleBroadcast")) {
  958. var error = $root.guandan.GCClearCircleBroadcast.verify(message[".guandan.gclearCircleBroadcast"]);
  959. if (error)
  960. return ".guandan.gclearCircleBroadcast." + error;
  961. }
  962. if (message[".guandan.cgPlayerPlayCard"] != null && message.hasOwnProperty(".guandan.cgPlayerPlayCard")) {
  963. var error = $root.guandan.CGPlayerPlayCard.verify(message[".guandan.cgPlayerPlayCard"]);
  964. if (error)
  965. return ".guandan.cgPlayerPlayCard." + error;
  966. }
  967. if (message[".guandan.gcPlayerPlayCard"] != null && message.hasOwnProperty(".guandan.gcPlayerPlayCard")) {
  968. var error = $root.guandan.GCPlayerPlayCard.verify(message[".guandan.gcPlayerPlayCard"]);
  969. if (error)
  970. return ".guandan.gcPlayerPlayCard." + error;
  971. }
  972. if (message[".guandan.gcPlayerPlayCardBroadcast"] != null && message.hasOwnProperty(".guandan.gcPlayerPlayCardBroadcast")) {
  973. var error = $root.guandan.GCPlayerPlayCardBroadcast.verify(message[".guandan.gcPlayerPlayCardBroadcast"]);
  974. if (error)
  975. return ".guandan.gcPlayerPlayCardBroadcast." + error;
  976. }
  977. if (message[".guandan.gcPlayerOperations"] != null && message.hasOwnProperty(".guandan.gcPlayerOperations")) {
  978. var error = $root.guandan.GCPlayerOperations.verify(message[".guandan.gcPlayerOperations"]);
  979. if (error)
  980. return ".guandan.gcPlayerOperations." + error;
  981. }
  982. if (message[".guandan.gcWaitPlayerPlayCard"] != null && message.hasOwnProperty(".guandan.gcWaitPlayerPlayCard")) {
  983. var error = $root.guandan.GCWaitPlayerPlayCard.verify(message[".guandan.gcWaitPlayerPlayCard"]);
  984. if (error)
  985. return ".guandan.gcWaitPlayerPlayCard." + error;
  986. }
  987. if (message[".guandan.gcWaitPlayerPlayCardBroadcast"] != null && message.hasOwnProperty(".guandan.gcWaitPlayerPlayCardBroadcast")) {
  988. var error = $root.guandan.GCWaitPlayerPlayCardBroadcast.verify(message[".guandan.gcWaitPlayerPlayCardBroadcast"]);
  989. if (error)
  990. return ".guandan.gcWaitPlayerPlayCardBroadcast." + error;
  991. }
  992. if (message[".guandan.cgPlayerJinGong"] != null && message.hasOwnProperty(".guandan.cgPlayerJinGong")) {
  993. var error = $root.guandan.CGPlayerJinGong.verify(message[".guandan.cgPlayerJinGong"]);
  994. if (error)
  995. return ".guandan.cgPlayerJinGong." + error;
  996. }
  997. if (message[".guandan.gcPlayerJinGongBroadcast"] != null && message.hasOwnProperty(".guandan.gcPlayerJinGongBroadcast")) {
  998. var error = $root.guandan.GCPlayerJinGongBroadcast.verify(message[".guandan.gcPlayerJinGongBroadcast"]);
  999. if (error)
  1000. return ".guandan.gcPlayerJinGongBroadcast." + error;
  1001. }
  1002. if (message[".guandan.cgPlayerHuanGong"] != null && message.hasOwnProperty(".guandan.cgPlayerHuanGong")) {
  1003. var error = $root.guandan.CGPlayerHuanGong.verify(message[".guandan.cgPlayerHuanGong"]);
  1004. if (error)
  1005. return ".guandan.cgPlayerHuanGong." + error;
  1006. }
  1007. if (message[".guandan.gcPlayerHuanGongBroadcast"] != null && message.hasOwnProperty(".guandan.gcPlayerHuanGongBroadcast")) {
  1008. var error = $root.guandan.GCPlayerHuanGongBroadcast.verify(message[".guandan.gcPlayerHuanGongBroadcast"]);
  1009. if (error)
  1010. return ".guandan.gcPlayerHuanGongBroadcast." + error;
  1011. }
  1012. if (message[".guandan.gcPlayerKangGongBroadcast"] != null && message.hasOwnProperty(".guandan.gcPlayerKangGongBroadcast")) {
  1013. var error = $root.guandan.GCPlayerKangGongBroadcast.verify(message[".guandan.gcPlayerKangGongBroadcast"]);
  1014. if (error)
  1015. return ".guandan.gcPlayerKangGongBroadcast." + error;
  1016. }
  1017. if (message[".guandan.gcWaitPlayerJinGongBroadcast"] != null && message.hasOwnProperty(".guandan.gcWaitPlayerJinGongBroadcast")) {
  1018. var error = $root.guandan.GCWaitPlayerJinGongBroadcast.verify(message[".guandan.gcWaitPlayerJinGongBroadcast"]);
  1019. if (error)
  1020. return ".guandan.gcWaitPlayerJinGongBroadcast." + error;
  1021. }
  1022. if (message[".guandan.gcWaitPlayerHuanGongBroadcast"] != null && message.hasOwnProperty(".guandan.gcWaitPlayerHuanGongBroadcast")) {
  1023. var error = $root.guandan.GCWaitPlayerHuanGongBroadcast.verify(message[".guandan.gcWaitPlayerHuanGongBroadcast"]);
  1024. if (error)
  1025. return ".guandan.gcWaitPlayerHuanGongBroadcast." + error;
  1026. }
  1027. if (message[".guandan.gcPlayerYou"] != null && message.hasOwnProperty(".guandan.gcPlayerYou")) {
  1028. var error = $root.guandan.GCPlayerYou.verify(message[".guandan.gcPlayerYou"]);
  1029. if (error)
  1030. return ".guandan.gcPlayerYou." + error;
  1031. }
  1032. if (message[".guandan.gcPlayerEmptyBroadcast"] != null && message.hasOwnProperty(".guandan.gcPlayerEmptyBroadcast")) {
  1033. var error = $root.guandan.GCPlayerEmptyBroadcast.verify(message[".guandan.gcPlayerEmptyBroadcast"]);
  1034. if (error)
  1035. return ".guandan.gcPlayerEmptyBroadcast." + error;
  1036. }
  1037. if (message[".guandan.cgPlayerOpreate"] != null && message.hasOwnProperty(".guandan.cgPlayerOpreate")) {
  1038. var error = $root.guandan.CGPlayerOperate.verify(message[".guandan.cgPlayerOpreate"]);
  1039. if (error)
  1040. return ".guandan.cgPlayerOpreate." + error;
  1041. }
  1042. if (message[".guandan.gcClear"] != null && message.hasOwnProperty(".guandan.gcClear")) {
  1043. var error = $root.guandan.GCClear.verify(message[".guandan.gcClear"]);
  1044. if (error)
  1045. return ".guandan.gcClear." + error;
  1046. }
  1047. if (message[".guandan.gcReconnectPlayer"] != null && message.hasOwnProperty(".guandan.gcReconnectPlayer")) {
  1048. var error = $root.guandan.GCReconnectPlayer.verify(message[".guandan.gcReconnectPlayer"]);
  1049. if (error)
  1050. return ".guandan.gcReconnectPlayer." + error;
  1051. }
  1052. if (message[".guandan.gcDisconnectPlayer"] != null && message.hasOwnProperty(".guandan.gcDisconnectPlayer")) {
  1053. var error = $root.guandan.GCDisconnectPlayer.verify(message[".guandan.gcDisconnectPlayer"]);
  1054. if (error)
  1055. return ".guandan.gcDisconnectPlayer." + error;
  1056. }
  1057. if (message[".guandan.cgPlayerLeave"] != null && message.hasOwnProperty(".guandan.cgPlayerLeave")) {
  1058. var error = $root.guandan.CGPlayerLeave.verify(message[".guandan.cgPlayerLeave"]);
  1059. if (error)
  1060. return ".guandan.cgPlayerLeave." + error;
  1061. }
  1062. if (message[".guandan.gcPlayerLeave"] != null && message.hasOwnProperty(".guandan.gcPlayerLeave")) {
  1063. var error = $root.guandan.GCPlayerLeave.verify(message[".guandan.gcPlayerLeave"]);
  1064. if (error)
  1065. return ".guandan.gcPlayerLeave." + error;
  1066. }
  1067. if (message[".guandan.cgPlayerStart"] != null && message.hasOwnProperty(".guandan.cgPlayerStart")) {
  1068. var error = $root.guandan.CGPlayerStart.verify(message[".guandan.cgPlayerStart"]);
  1069. if (error)
  1070. return ".guandan.cgPlayerStart." + error;
  1071. }
  1072. if (message[".guandan.gcLastBroadcast"] != null && message.hasOwnProperty(".guandan.gcLastBroadcast")) {
  1073. var error = $root.guandan.GCLastBroadcast.verify(message[".guandan.gcLastBroadcast"]);
  1074. if (error)
  1075. return ".guandan.gcLastBroadcast." + error;
  1076. }
  1077. if (message[".guandan.gcPlayerStart"] != null && message.hasOwnProperty(".guandan.gcPlayerStart")) {
  1078. var error = $root.guandan.GCPlayerStart.verify(message[".guandan.gcPlayerStart"]);
  1079. if (error)
  1080. return ".guandan.gcPlayerStart." + error;
  1081. }
  1082. if (message[".guandan.cgPlayerDissolve"] != null && message.hasOwnProperty(".guandan.cgPlayerDissolve")) {
  1083. var error = $root.guandan.CGPlayerDissolve.verify(message[".guandan.cgPlayerDissolve"]);
  1084. if (error)
  1085. return ".guandan.cgPlayerDissolve." + error;
  1086. }
  1087. if (message[".guandan.gcPlayerDissolve"] != null && message.hasOwnProperty(".guandan.gcPlayerDissolve")) {
  1088. var error = $root.guandan.GCPlayerDissolve.verify(message[".guandan.gcPlayerDissolve"]);
  1089. if (error)
  1090. return ".guandan.gcPlayerDissolve." + error;
  1091. }
  1092. if (message[".guandan.cgPlayerDissolveAgree"] != null && message.hasOwnProperty(".guandan.cgPlayerDissolveAgree")) {
  1093. var error = $root.guandan.CGPlayerDissolveAgree.verify(message[".guandan.cgPlayerDissolveAgree"]);
  1094. if (error)
  1095. return ".guandan.cgPlayerDissolveAgree." + error;
  1096. }
  1097. if (message[".guandan.gcPlayerDissolveAgree"] != null && message.hasOwnProperty(".guandan.gcPlayerDissolveAgree")) {
  1098. var error = $root.guandan.GCPlayerDissolveAgree.verify(message[".guandan.gcPlayerDissolveAgree"]);
  1099. if (error)
  1100. return ".guandan.gcPlayerDissolveAgree." + error;
  1101. }
  1102. if (message[".guandan.gcLiuJu"] != null && message.hasOwnProperty(".guandan.gcLiuJu")) {
  1103. var error = $root.guandan.GCLiuJu.verify(message[".guandan.gcLiuJu"]);
  1104. if (error)
  1105. return ".guandan.gcLiuJu." + error;
  1106. }
  1107. if (message[".guandan.gcTotalSettle"] != null && message.hasOwnProperty(".guandan.gcTotalSettle")) {
  1108. var error = $root.guandan.GCTotalSettle.verify(message[".guandan.gcTotalSettle"]);
  1109. if (error)
  1110. return ".guandan.gcTotalSettle." + error;
  1111. }
  1112. if (message[".guandan.gcKaiJin"] != null && message.hasOwnProperty(".guandan.gcKaiJin")) {
  1113. var error = $root.guandan.GCKaiJin.verify(message[".guandan.gcKaiJin"]);
  1114. if (error)
  1115. return ".guandan.gcKaiJin." + error;
  1116. }
  1117. if (message[".guandan.cgDisconnectPlayer"] != null && message.hasOwnProperty(".guandan.cgDisconnectPlayer")) {
  1118. var error = $root.guandan.CGDisconnectPlayer.verify(message[".guandan.cgDisconnectPlayer"]);
  1119. if (error)
  1120. return ".guandan.cgDisconnectPlayer." + error;
  1121. }
  1122. if (message[".guandan.gcPlayerTuoGuan"] != null && message.hasOwnProperty(".guandan.gcPlayerTuoGuan")) {
  1123. var error = $root.guandan.GCPlayerTuoGuan.verify(message[".guandan.gcPlayerTuoGuan"]);
  1124. if (error)
  1125. return ".guandan.gcPlayerTuoGuan." + error;
  1126. }
  1127. if (message[".guandan.cgPlayerCancelTuoGuan"] != null && message.hasOwnProperty(".guandan.cgPlayerCancelTuoGuan")) {
  1128. var error = $root.guandan.CGPlayerCancelTuoGuan.verify(message[".guandan.cgPlayerCancelTuoGuan"]);
  1129. if (error)
  1130. return ".guandan.cgPlayerCancelTuoGuan." + error;
  1131. }
  1132. if (message[".guandan.gcPlayerCancelTuoGuan"] != null && message.hasOwnProperty(".guandan.gcPlayerCancelTuoGuan")) {
  1133. var error = $root.guandan.GCPlayerCancelTuoGuan.verify(message[".guandan.gcPlayerCancelTuoGuan"]);
  1134. if (error)
  1135. return ".guandan.gcPlayerCancelTuoGuan." + error;
  1136. }
  1137. if (message[".guandan.gcRoomRoundStart"] != null && message.hasOwnProperty(".guandan.gcRoomRoundStart")) {
  1138. var error = $root.guandan.GCRoomRoundStart.verify(message[".guandan.gcRoomRoundStart"]);
  1139. if (error)
  1140. return ".guandan.gcRoomRoundStart." + error;
  1141. }
  1142. if (message[".guandan.gcPlayerRemainCardBroadcast"] != null && message.hasOwnProperty(".guandan.gcPlayerRemainCardBroadcast")) {
  1143. var error = $root.guandan.GCPlayerRemainCardBroadcast.verify(message[".guandan.gcPlayerRemainCardBroadcast"]);
  1144. if (error)
  1145. return ".guandan.gcPlayerRemainCardBroadcast." + error;
  1146. }
  1147. if (message[".guandan.gcPlayerDoubleBroadcast"] != null && message.hasOwnProperty(".guandan.gcPlayerDoubleBroadcast")) {
  1148. var error = $root.guandan.GCPlayerDoubleBroadcast.verify(message[".guandan.gcPlayerDoubleBroadcast"]);
  1149. if (error)
  1150. return ".guandan.gcPlayerDoubleBroadcast." + error;
  1151. }
  1152. if (message[".guandan.gcTuanTuanZhuanShowCardBroadcast"] != null && message.hasOwnProperty(".guandan.gcTuanTuanZhuanShowCardBroadcast")) {
  1153. var error = $root.guandan.GCTuanTuanZhuanShowCardBroadcast.verify(message[".guandan.gcTuanTuanZhuanShowCardBroadcast"]);
  1154. if (error)
  1155. return ".guandan.gcTuanTuanZhuanShowCardBroadcast." + error;
  1156. }
  1157. if (message[".guandan.gcOppositePlayerCard"] != null && message.hasOwnProperty(".guandan.gcOppositePlayerCard")) {
  1158. var error = $root.guandan.GCOppositePlayerCard.verify(message[".guandan.gcOppositePlayerCard"]);
  1159. if (error)
  1160. return ".guandan.gcOppositePlayerCard." + error;
  1161. }
  1162. if (message[".guandan.cgPlayerDouble"] != null && message.hasOwnProperty(".guandan.cgPlayerDouble")) {
  1163. var error = $root.guandan.CGPlayerDouble.verify(message[".guandan.cgPlayerDouble"]);
  1164. if (error)
  1165. return ".guandan.cgPlayerDouble." + error;
  1166. }
  1167. if (message[".guandan.gcWaitPlayerDouble"] != null && message.hasOwnProperty(".guandan.gcWaitPlayerDouble")) {
  1168. var error = $root.guandan.GCWaitPlayerDouble.verify(message[".guandan.gcWaitPlayerDouble"]);
  1169. if (error)
  1170. return ".guandan.gcWaitPlayerDouble." + error;
  1171. }
  1172. if (message[".guandan.gcBombDoubleBroadcast"] != null && message.hasOwnProperty(".guandan.gcBombDoubleBroadcast")) {
  1173. var error = $root.guandan.GCBombDoubleBroadcast.verify(message[".guandan.gcBombDoubleBroadcast"]);
  1174. if (error)
  1175. return ".guandan.gcBombDoubleBroadcast." + error;
  1176. }
  1177. if (message[".guandan.gcJieFengBroadcast"] != null && message.hasOwnProperty(".guandan.gcJieFengBroadcast")) {
  1178. var error = $root.guandan.GCJieFengBroadcast.verify(message[".guandan.gcJieFengBroadcast"]);
  1179. if (error)
  1180. return ".guandan.gcJieFengBroadcast." + error;
  1181. }
  1182. if (message[".guandan.gcStartArrangeCardBroadcast"] != null && message.hasOwnProperty(".guandan.gcStartArrangeCardBroadcast")) {
  1183. var error = $root.guandan.GCStartArrangeCardBroadcast.verify(message[".guandan.gcStartArrangeCardBroadcast"]);
  1184. if (error)
  1185. return ".guandan.gcStartArrangeCardBroadcast." + error;
  1186. }
  1187. if (message[".guandan.gcEndArrangeCardBroadcast"] != null && message.hasOwnProperty(".guandan.gcEndArrangeCardBroadcast")) {
  1188. var error = $root.guandan.GCEndArrangeCardBroadcast.verify(message[".guandan.gcEndArrangeCardBroadcast"]);
  1189. if (error)
  1190. return ".guandan.gcEndArrangeCardBroadcast." + error;
  1191. }
  1192. if (message[".guandan.gcRestCardBroadcast"] != null && message.hasOwnProperty(".guandan.gcRestCardBroadcast")) {
  1193. var error = $root.guandan.GCRestCardBroadcast.verify(message[".guandan.gcRestCardBroadcast"]);
  1194. if (error)
  1195. return ".guandan.gcRestCardBroadcast." + error;
  1196. }
  1197. if (message[".guandan.cgChat"] != null && message.hasOwnProperty(".guandan.cgChat")) {
  1198. var error = $root.guandan.CGChat.verify(message[".guandan.cgChat"]);
  1199. if (error)
  1200. return ".guandan.cgChat." + error;
  1201. }
  1202. if (message[".guandan.gcChat"] != null && message.hasOwnProperty(".guandan.gcChat")) {
  1203. var error = $root.guandan.GCChat.verify(message[".guandan.gcChat"]);
  1204. if (error)
  1205. return ".guandan.gcChat." + error;
  1206. }
  1207. if (message[".guandan.gcErrorNotice"] != null && message.hasOwnProperty(".guandan.gcErrorNotice")) {
  1208. var error = $root.guandan.GCErrorNotice.verify(message[".guandan.gcErrorNotice"]);
  1209. if (error)
  1210. return ".guandan.gcErrorNotice." + error;
  1211. }
  1212. if (message[".guandan.gcKickOutReason"] != null && message.hasOwnProperty(".guandan.gcKickOutReason")) {
  1213. var error = $root.guandan.GCKickOutReason.verify(message[".guandan.gcKickOutReason"]);
  1214. if (error)
  1215. return ".guandan.gcKickOutReason." + error;
  1216. }
  1217. if (message[".pb.cgLogin"] != null && message.hasOwnProperty(".pb.cgLogin")) {
  1218. var error = $root.pb.CGLogin.verify(message[".pb.cgLogin"]);
  1219. if (error)
  1220. return ".pb.cgLogin." + error;
  1221. }
  1222. if (message[".pb.gcLogin"] != null && message.hasOwnProperty(".pb.gcLogin")) {
  1223. var error = $root.pb.GCLogin.verify(message[".pb.gcLogin"]);
  1224. if (error)
  1225. return ".pb.gcLogin." + error;
  1226. }
  1227. if (message[".pb.cgPing"] != null && message.hasOwnProperty(".pb.cgPing")) {
  1228. var error = $root.pb.CGPing.verify(message[".pb.cgPing"]);
  1229. if (error)
  1230. return ".pb.cgPing." + error;
  1231. }
  1232. if (message[".pb.gcPing"] != null && message.hasOwnProperty(".pb.gcPing")) {
  1233. var error = $root.pb.GCPing.verify(message[".pb.gcPing"]);
  1234. if (error)
  1235. return ".pb.gcPing." + error;
  1236. }
  1237. return null;
  1238. };
  1239. /**
  1240. * Creates a Message message from a plain object. Also converts values to their respective internal types.
  1241. * @function fromObject
  1242. * @memberof pb.Message
  1243. * @static
  1244. * @param {Object.<string,*>} object Plain object
  1245. * @returns {pb.Message} Message
  1246. */
  1247. Message.fromObject = function fromObject(object) {
  1248. if (object instanceof $root.pb.Message)
  1249. return object;
  1250. var message = new $root.pb.Message();
  1251. if (object.messageType != null)
  1252. message.messageType = object.messageType | 0;
  1253. if (object[".guandan.cgJoinRoom"] != null) {
  1254. if (typeof object[".guandan.cgJoinRoom"] !== "object")
  1255. throw TypeError(".pb.Message..guandan.cgJoinRoom: object expected");
  1256. message[".guandan.cgJoinRoom"] = $root.guandan.CGJoinRoom.fromObject(object[".guandan.cgJoinRoom"]);
  1257. }
  1258. if (object[".guandan.gcJoinRoom"] != null) {
  1259. if (typeof object[".guandan.gcJoinRoom"] !== "object")
  1260. throw TypeError(".pb.Message..guandan.gcJoinRoom: object expected");
  1261. message[".guandan.gcJoinRoom"] = $root.guandan.GCJoinRoom.fromObject(object[".guandan.gcJoinRoom"]);
  1262. }
  1263. if (object[".guandan.gcJoinRoomBroadcast"] != null) {
  1264. if (typeof object[".guandan.gcJoinRoomBroadcast"] !== "object")
  1265. throw TypeError(".pb.Message..guandan.gcJoinRoomBroadcast: object expected");
  1266. message[".guandan.gcJoinRoomBroadcast"] = $root.guandan.GCJoinRoomBroadcast.fromObject(object[".guandan.gcJoinRoomBroadcast"]);
  1267. }
  1268. if (object[".guandan.gcSelectBankerBroadcast"] != null) {
  1269. if (typeof object[".guandan.gcSelectBankerBroadcast"] !== "object")
  1270. throw TypeError(".pb.Message..guandan.gcSelectBankerBroadcast: object expected");
  1271. message[".guandan.gcSelectBankerBroadcast"] = $root.guandan.GCSelectBankerBroadcast.fromObject(object[".guandan.gcSelectBankerBroadcast"]);
  1272. }
  1273. if (object[".guandan.gcDealCards"] != null) {
  1274. if (typeof object[".guandan.gcDealCards"] !== "object")
  1275. throw TypeError(".pb.Message..guandan.gcDealCards: object expected");
  1276. message[".guandan.gcDealCards"] = $root.guandan.GCDealCards.fromObject(object[".guandan.gcDealCards"]);
  1277. }
  1278. if (object[".guandan.gclearCircleBroadcast"] != null) {
  1279. if (typeof object[".guandan.gclearCircleBroadcast"] !== "object")
  1280. throw TypeError(".pb.Message..guandan.gclearCircleBroadcast: object expected");
  1281. message[".guandan.gclearCircleBroadcast"] = $root.guandan.GCClearCircleBroadcast.fromObject(object[".guandan.gclearCircleBroadcast"]);
  1282. }
  1283. if (object[".guandan.cgPlayerPlayCard"] != null) {
  1284. if (typeof object[".guandan.cgPlayerPlayCard"] !== "object")
  1285. throw TypeError(".pb.Message..guandan.cgPlayerPlayCard: object expected");
  1286. message[".guandan.cgPlayerPlayCard"] = $root.guandan.CGPlayerPlayCard.fromObject(object[".guandan.cgPlayerPlayCard"]);
  1287. }
  1288. if (object[".guandan.gcPlayerPlayCard"] != null) {
  1289. if (typeof object[".guandan.gcPlayerPlayCard"] !== "object")
  1290. throw TypeError(".pb.Message..guandan.gcPlayerPlayCard: object expected");
  1291. message[".guandan.gcPlayerPlayCard"] = $root.guandan.GCPlayerPlayCard.fromObject(object[".guandan.gcPlayerPlayCard"]);
  1292. }
  1293. if (object[".guandan.gcPlayerPlayCardBroadcast"] != null) {
  1294. if (typeof object[".guandan.gcPlayerPlayCardBroadcast"] !== "object")
  1295. throw TypeError(".pb.Message..guandan.gcPlayerPlayCardBroadcast: object expected");
  1296. message[".guandan.gcPlayerPlayCardBroadcast"] = $root.guandan.GCPlayerPlayCardBroadcast.fromObject(object[".guandan.gcPlayerPlayCardBroadcast"]);
  1297. }
  1298. if (object[".guandan.gcPlayerOperations"] != null) {
  1299. if (typeof object[".guandan.gcPlayerOperations"] !== "object")
  1300. throw TypeError(".pb.Message..guandan.gcPlayerOperations: object expected");
  1301. message[".guandan.gcPlayerOperations"] = $root.guandan.GCPlayerOperations.fromObject(object[".guandan.gcPlayerOperations"]);
  1302. }
  1303. if (object[".guandan.gcWaitPlayerPlayCard"] != null) {
  1304. if (typeof object[".guandan.gcWaitPlayerPlayCard"] !== "object")
  1305. throw TypeError(".pb.Message..guandan.gcWaitPlayerPlayCard: object expected");
  1306. message[".guandan.gcWaitPlayerPlayCard"] = $root.guandan.GCWaitPlayerPlayCard.fromObject(object[".guandan.gcWaitPlayerPlayCard"]);
  1307. }
  1308. if (object[".guandan.gcWaitPlayerPlayCardBroadcast"] != null) {
  1309. if (typeof object[".guandan.gcWaitPlayerPlayCardBroadcast"] !== "object")
  1310. throw TypeError(".pb.Message..guandan.gcWaitPlayerPlayCardBroadcast: object expected");
  1311. message[".guandan.gcWaitPlayerPlayCardBroadcast"] = $root.guandan.GCWaitPlayerPlayCardBroadcast.fromObject(object[".guandan.gcWaitPlayerPlayCardBroadcast"]);
  1312. }
  1313. if (object[".guandan.cgPlayerJinGong"] != null) {
  1314. if (typeof object[".guandan.cgPlayerJinGong"] !== "object")
  1315. throw TypeError(".pb.Message..guandan.cgPlayerJinGong: object expected");
  1316. message[".guandan.cgPlayerJinGong"] = $root.guandan.CGPlayerJinGong.fromObject(object[".guandan.cgPlayerJinGong"]);
  1317. }
  1318. if (object[".guandan.gcPlayerJinGongBroadcast"] != null) {
  1319. if (typeof object[".guandan.gcPlayerJinGongBroadcast"] !== "object")
  1320. throw TypeError(".pb.Message..guandan.gcPlayerJinGongBroadcast: object expected");
  1321. message[".guandan.gcPlayerJinGongBroadcast"] = $root.guandan.GCPlayerJinGongBroadcast.fromObject(object[".guandan.gcPlayerJinGongBroadcast"]);
  1322. }
  1323. if (object[".guandan.cgPlayerHuanGong"] != null) {
  1324. if (typeof object[".guandan.cgPlayerHuanGong"] !== "object")
  1325. throw TypeError(".pb.Message..guandan.cgPlayerHuanGong: object expected");
  1326. message[".guandan.cgPlayerHuanGong"] = $root.guandan.CGPlayerHuanGong.fromObject(object[".guandan.cgPlayerHuanGong"]);
  1327. }
  1328. if (object[".guandan.gcPlayerHuanGongBroadcast"] != null) {
  1329. if (typeof object[".guandan.gcPlayerHuanGongBroadcast"] !== "object")
  1330. throw TypeError(".pb.Message..guandan.gcPlayerHuanGongBroadcast: object expected");
  1331. message[".guandan.gcPlayerHuanGongBroadcast"] = $root.guandan.GCPlayerHuanGongBroadcast.fromObject(object[".guandan.gcPlayerHuanGongBroadcast"]);
  1332. }
  1333. if (object[".guandan.gcPlayerKangGongBroadcast"] != null) {
  1334. if (typeof object[".guandan.gcPlayerKangGongBroadcast"] !== "object")
  1335. throw TypeError(".pb.Message..guandan.gcPlayerKangGongBroadcast: object expected");
  1336. message[".guandan.gcPlayerKangGongBroadcast"] = $root.guandan.GCPlayerKangGongBroadcast.fromObject(object[".guandan.gcPlayerKangGongBroadcast"]);
  1337. }
  1338. if (object[".guandan.gcWaitPlayerJinGongBroadcast"] != null) {
  1339. if (typeof object[".guandan.gcWaitPlayerJinGongBroadcast"] !== "object")
  1340. throw TypeError(".pb.Message..guandan.gcWaitPlayerJinGongBroadcast: object expected");
  1341. message[".guandan.gcWaitPlayerJinGongBroadcast"] = $root.guandan.GCWaitPlayerJinGongBroadcast.fromObject(object[".guandan.gcWaitPlayerJinGongBroadcast"]);
  1342. }
  1343. if (object[".guandan.gcWaitPlayerHuanGongBroadcast"] != null) {
  1344. if (typeof object[".guandan.gcWaitPlayerHuanGongBroadcast"] !== "object")
  1345. throw TypeError(".pb.Message..guandan.gcWaitPlayerHuanGongBroadcast: object expected");
  1346. message[".guandan.gcWaitPlayerHuanGongBroadcast"] = $root.guandan.GCWaitPlayerHuanGongBroadcast.fromObject(object[".guandan.gcWaitPlayerHuanGongBroadcast"]);
  1347. }
  1348. if (object[".guandan.gcPlayerYou"] != null) {
  1349. if (typeof object[".guandan.gcPlayerYou"] !== "object")
  1350. throw TypeError(".pb.Message..guandan.gcPlayerYou: object expected");
  1351. message[".guandan.gcPlayerYou"] = $root.guandan.GCPlayerYou.fromObject(object[".guandan.gcPlayerYou"]);
  1352. }
  1353. if (object[".guandan.gcPlayerEmptyBroadcast"] != null) {
  1354. if (typeof object[".guandan.gcPlayerEmptyBroadcast"] !== "object")
  1355. throw TypeError(".pb.Message..guandan.gcPlayerEmptyBroadcast: object expected");
  1356. message[".guandan.gcPlayerEmptyBroadcast"] = $root.guandan.GCPlayerEmptyBroadcast.fromObject(object[".guandan.gcPlayerEmptyBroadcast"]);
  1357. }
  1358. if (object[".guandan.cgPlayerOpreate"] != null) {
  1359. if (typeof object[".guandan.cgPlayerOpreate"] !== "object")
  1360. throw TypeError(".pb.Message..guandan.cgPlayerOpreate: object expected");
  1361. message[".guandan.cgPlayerOpreate"] = $root.guandan.CGPlayerOperate.fromObject(object[".guandan.cgPlayerOpreate"]);
  1362. }
  1363. if (object[".guandan.gcClear"] != null) {
  1364. if (typeof object[".guandan.gcClear"] !== "object")
  1365. throw TypeError(".pb.Message..guandan.gcClear: object expected");
  1366. message[".guandan.gcClear"] = $root.guandan.GCClear.fromObject(object[".guandan.gcClear"]);
  1367. }
  1368. if (object[".guandan.gcReconnectPlayer"] != null) {
  1369. if (typeof object[".guandan.gcReconnectPlayer"] !== "object")
  1370. throw TypeError(".pb.Message..guandan.gcReconnectPlayer: object expected");
  1371. message[".guandan.gcReconnectPlayer"] = $root.guandan.GCReconnectPlayer.fromObject(object[".guandan.gcReconnectPlayer"]);
  1372. }
  1373. if (object[".guandan.gcDisconnectPlayer"] != null) {
  1374. if (typeof object[".guandan.gcDisconnectPlayer"] !== "object")
  1375. throw TypeError(".pb.Message..guandan.gcDisconnectPlayer: object expected");
  1376. message[".guandan.gcDisconnectPlayer"] = $root.guandan.GCDisconnectPlayer.fromObject(object[".guandan.gcDisconnectPlayer"]);
  1377. }
  1378. if (object[".guandan.cgPlayerLeave"] != null) {
  1379. if (typeof object[".guandan.cgPlayerLeave"] !== "object")
  1380. throw TypeError(".pb.Message..guandan.cgPlayerLeave: object expected");
  1381. message[".guandan.cgPlayerLeave"] = $root.guandan.CGPlayerLeave.fromObject(object[".guandan.cgPlayerLeave"]);
  1382. }
  1383. if (object[".guandan.gcPlayerLeave"] != null) {
  1384. if (typeof object[".guandan.gcPlayerLeave"] !== "object")
  1385. throw TypeError(".pb.Message..guandan.gcPlayerLeave: object expected");
  1386. message[".guandan.gcPlayerLeave"] = $root.guandan.GCPlayerLeave.fromObject(object[".guandan.gcPlayerLeave"]);
  1387. }
  1388. if (object[".guandan.cgPlayerStart"] != null) {
  1389. if (typeof object[".guandan.cgPlayerStart"] !== "object")
  1390. throw TypeError(".pb.Message..guandan.cgPlayerStart: object expected");
  1391. message[".guandan.cgPlayerStart"] = $root.guandan.CGPlayerStart.fromObject(object[".guandan.cgPlayerStart"]);
  1392. }
  1393. if (object[".guandan.gcLastBroadcast"] != null) {
  1394. if (typeof object[".guandan.gcLastBroadcast"] !== "object")
  1395. throw TypeError(".pb.Message..guandan.gcLastBroadcast: object expected");
  1396. message[".guandan.gcLastBroadcast"] = $root.guandan.GCLastBroadcast.fromObject(object[".guandan.gcLastBroadcast"]);
  1397. }
  1398. if (object[".guandan.gcPlayerStart"] != null) {
  1399. if (typeof object[".guandan.gcPlayerStart"] !== "object")
  1400. throw TypeError(".pb.Message..guandan.gcPlayerStart: object expected");
  1401. message[".guandan.gcPlayerStart"] = $root.guandan.GCPlayerStart.fromObject(object[".guandan.gcPlayerStart"]);
  1402. }
  1403. if (object[".guandan.cgPlayerDissolve"] != null) {
  1404. if (typeof object[".guandan.cgPlayerDissolve"] !== "object")
  1405. throw TypeError(".pb.Message..guandan.cgPlayerDissolve: object expected");
  1406. message[".guandan.cgPlayerDissolve"] = $root.guandan.CGPlayerDissolve.fromObject(object[".guandan.cgPlayerDissolve"]);
  1407. }
  1408. if (object[".guandan.gcPlayerDissolve"] != null) {
  1409. if (typeof object[".guandan.gcPlayerDissolve"] !== "object")
  1410. throw TypeError(".pb.Message..guandan.gcPlayerDissolve: object expected");
  1411. message[".guandan.gcPlayerDissolve"] = $root.guandan.GCPlayerDissolve.fromObject(object[".guandan.gcPlayerDissolve"]);
  1412. }
  1413. if (object[".guandan.cgPlayerDissolveAgree"] != null) {
  1414. if (typeof object[".guandan.cgPlayerDissolveAgree"] !== "object")
  1415. throw TypeError(".pb.Message..guandan.cgPlayerDissolveAgree: object expected");
  1416. message[".guandan.cgPlayerDissolveAgree"] = $root.guandan.CGPlayerDissolveAgree.fromObject(object[".guandan.cgPlayerDissolveAgree"]);
  1417. }
  1418. if (object[".guandan.gcPlayerDissolveAgree"] != null) {
  1419. if (typeof object[".guandan.gcPlayerDissolveAgree"] !== "object")
  1420. throw TypeError(".pb.Message..guandan.gcPlayerDissolveAgree: object expected");
  1421. message[".guandan.gcPlayerDissolveAgree"] = $root.guandan.GCPlayerDissolveAgree.fromObject(object[".guandan.gcPlayerDissolveAgree"]);
  1422. }
  1423. if (object[".guandan.gcLiuJu"] != null) {
  1424. if (typeof object[".guandan.gcLiuJu"] !== "object")
  1425. throw TypeError(".pb.Message..guandan.gcLiuJu: object expected");
  1426. message[".guandan.gcLiuJu"] = $root.guandan.GCLiuJu.fromObject(object[".guandan.gcLiuJu"]);
  1427. }
  1428. if (object[".guandan.gcTotalSettle"] != null) {
  1429. if (typeof object[".guandan.gcTotalSettle"] !== "object")
  1430. throw TypeError(".pb.Message..guandan.gcTotalSettle: object expected");
  1431. message[".guandan.gcTotalSettle"] = $root.guandan.GCTotalSettle.fromObject(object[".guandan.gcTotalSettle"]);
  1432. }
  1433. if (object[".guandan.gcKaiJin"] != null) {
  1434. if (typeof object[".guandan.gcKaiJin"] !== "object")
  1435. throw TypeError(".pb.Message..guandan.gcKaiJin: object expected");
  1436. message[".guandan.gcKaiJin"] = $root.guandan.GCKaiJin.fromObject(object[".guandan.gcKaiJin"]);
  1437. }
  1438. if (object[".guandan.cgDisconnectPlayer"] != null) {
  1439. if (typeof object[".guandan.cgDisconnectPlayer"] !== "object")
  1440. throw TypeError(".pb.Message..guandan.cgDisconnectPlayer: object expected");
  1441. message[".guandan.cgDisconnectPlayer"] = $root.guandan.CGDisconnectPlayer.fromObject(object[".guandan.cgDisconnectPlayer"]);
  1442. }
  1443. if (object[".guandan.gcPlayerTuoGuan"] != null) {
  1444. if (typeof object[".guandan.gcPlayerTuoGuan"] !== "object")
  1445. throw TypeError(".pb.Message..guandan.gcPlayerTuoGuan: object expected");
  1446. message[".guandan.gcPlayerTuoGuan"] = $root.guandan.GCPlayerTuoGuan.fromObject(object[".guandan.gcPlayerTuoGuan"]);
  1447. }
  1448. if (object[".guandan.cgPlayerCancelTuoGuan"] != null) {
  1449. if (typeof object[".guandan.cgPlayerCancelTuoGuan"] !== "object")
  1450. throw TypeError(".pb.Message..guandan.cgPlayerCancelTuoGuan: object expected");
  1451. message[".guandan.cgPlayerCancelTuoGuan"] = $root.guandan.CGPlayerCancelTuoGuan.fromObject(object[".guandan.cgPlayerCancelTuoGuan"]);
  1452. }
  1453. if (object[".guandan.gcPlayerCancelTuoGuan"] != null) {
  1454. if (typeof object[".guandan.gcPlayerCancelTuoGuan"] !== "object")
  1455. throw TypeError(".pb.Message..guandan.gcPlayerCancelTuoGuan: object expected");
  1456. message[".guandan.gcPlayerCancelTuoGuan"] = $root.guandan.GCPlayerCancelTuoGuan.fromObject(object[".guandan.gcPlayerCancelTuoGuan"]);
  1457. }
  1458. if (object[".guandan.gcRoomRoundStart"] != null) {
  1459. if (typeof object[".guandan.gcRoomRoundStart"] !== "object")
  1460. throw TypeError(".pb.Message..guandan.gcRoomRoundStart: object expected");
  1461. message[".guandan.gcRoomRoundStart"] = $root.guandan.GCRoomRoundStart.fromObject(object[".guandan.gcRoomRoundStart"]);
  1462. }
  1463. if (object[".guandan.gcPlayerRemainCardBroadcast"] != null) {
  1464. if (typeof object[".guandan.gcPlayerRemainCardBroadcast"] !== "object")
  1465. throw TypeError(".pb.Message..guandan.gcPlayerRemainCardBroadcast: object expected");
  1466. message[".guandan.gcPlayerRemainCardBroadcast"] = $root.guandan.GCPlayerRemainCardBroadcast.fromObject(object[".guandan.gcPlayerRemainCardBroadcast"]);
  1467. }
  1468. if (object[".guandan.gcPlayerDoubleBroadcast"] != null) {
  1469. if (typeof object[".guandan.gcPlayerDoubleBroadcast"] !== "object")
  1470. throw TypeError(".pb.Message..guandan.gcPlayerDoubleBroadcast: object expected");
  1471. message[".guandan.gcPlayerDoubleBroadcast"] = $root.guandan.GCPlayerDoubleBroadcast.fromObject(object[".guandan.gcPlayerDoubleBroadcast"]);
  1472. }
  1473. if (object[".guandan.gcTuanTuanZhuanShowCardBroadcast"] != null) {
  1474. if (typeof object[".guandan.gcTuanTuanZhuanShowCardBroadcast"] !== "object")
  1475. throw TypeError(".pb.Message..guandan.gcTuanTuanZhuanShowCardBroadcast: object expected");
  1476. message[".guandan.gcTuanTuanZhuanShowCardBroadcast"] = $root.guandan.GCTuanTuanZhuanShowCardBroadcast.fromObject(object[".guandan.gcTuanTuanZhuanShowCardBroadcast"]);
  1477. }
  1478. if (object[".guandan.gcOppositePlayerCard"] != null) {
  1479. if (typeof object[".guandan.gcOppositePlayerCard"] !== "object")
  1480. throw TypeError(".pb.Message..guandan.gcOppositePlayerCard: object expected");
  1481. message[".guandan.gcOppositePlayerCard"] = $root.guandan.GCOppositePlayerCard.fromObject(object[".guandan.gcOppositePlayerCard"]);
  1482. }
  1483. if (object[".guandan.cgPlayerDouble"] != null) {
  1484. if (typeof object[".guandan.cgPlayerDouble"] !== "object")
  1485. throw TypeError(".pb.Message..guandan.cgPlayerDouble: object expected");
  1486. message[".guandan.cgPlayerDouble"] = $root.guandan.CGPlayerDouble.fromObject(object[".guandan.cgPlayerDouble"]);
  1487. }
  1488. if (object[".guandan.gcWaitPlayerDouble"] != null) {
  1489. if (typeof object[".guandan.gcWaitPlayerDouble"] !== "object")
  1490. throw TypeError(".pb.Message..guandan.gcWaitPlayerDouble: object expected");
  1491. message[".guandan.gcWaitPlayerDouble"] = $root.guandan.GCWaitPlayerDouble.fromObject(object[".guandan.gcWaitPlayerDouble"]);
  1492. }
  1493. if (object[".guandan.gcBombDoubleBroadcast"] != null) {
  1494. if (typeof object[".guandan.gcBombDoubleBroadcast"] !== "object")
  1495. throw TypeError(".pb.Message..guandan.gcBombDoubleBroadcast: object expected");
  1496. message[".guandan.gcBombDoubleBroadcast"] = $root.guandan.GCBombDoubleBroadcast.fromObject(object[".guandan.gcBombDoubleBroadcast"]);
  1497. }
  1498. if (object[".guandan.gcJieFengBroadcast"] != null) {
  1499. if (typeof object[".guandan.gcJieFengBroadcast"] !== "object")
  1500. throw TypeError(".pb.Message..guandan.gcJieFengBroadcast: object expected");
  1501. message[".guandan.gcJieFengBroadcast"] = $root.guandan.GCJieFengBroadcast.fromObject(object[".guandan.gcJieFengBroadcast"]);
  1502. }
  1503. if (object[".guandan.gcStartArrangeCardBroadcast"] != null) {
  1504. if (typeof object[".guandan.gcStartArrangeCardBroadcast"] !== "object")
  1505. throw TypeError(".pb.Message..guandan.gcStartArrangeCardBroadcast: object expected");
  1506. message[".guandan.gcStartArrangeCardBroadcast"] = $root.guandan.GCStartArrangeCardBroadcast.fromObject(object[".guandan.gcStartArrangeCardBroadcast"]);
  1507. }
  1508. if (object[".guandan.gcEndArrangeCardBroadcast"] != null) {
  1509. if (typeof object[".guandan.gcEndArrangeCardBroadcast"] !== "object")
  1510. throw TypeError(".pb.Message..guandan.gcEndArrangeCardBroadcast: object expected");
  1511. message[".guandan.gcEndArrangeCardBroadcast"] = $root.guandan.GCEndArrangeCardBroadcast.fromObject(object[".guandan.gcEndArrangeCardBroadcast"]);
  1512. }
  1513. if (object[".guandan.gcRestCardBroadcast"] != null) {
  1514. if (typeof object[".guandan.gcRestCardBroadcast"] !== "object")
  1515. throw TypeError(".pb.Message..guandan.gcRestCardBroadcast: object expected");
  1516. message[".guandan.gcRestCardBroadcast"] = $root.guandan.GCRestCardBroadcast.fromObject(object[".guandan.gcRestCardBroadcast"]);
  1517. }
  1518. if (object[".guandan.cgChat"] != null) {
  1519. if (typeof object[".guandan.cgChat"] !== "object")
  1520. throw TypeError(".pb.Message..guandan.cgChat: object expected");
  1521. message[".guandan.cgChat"] = $root.guandan.CGChat.fromObject(object[".guandan.cgChat"]);
  1522. }
  1523. if (object[".guandan.gcChat"] != null) {
  1524. if (typeof object[".guandan.gcChat"] !== "object")
  1525. throw TypeError(".pb.Message..guandan.gcChat: object expected");
  1526. message[".guandan.gcChat"] = $root.guandan.GCChat.fromObject(object[".guandan.gcChat"]);
  1527. }
  1528. if (object[".guandan.gcErrorNotice"] != null) {
  1529. if (typeof object[".guandan.gcErrorNotice"] !== "object")
  1530. throw TypeError(".pb.Message..guandan.gcErrorNotice: object expected");
  1531. message[".guandan.gcErrorNotice"] = $root.guandan.GCErrorNotice.fromObject(object[".guandan.gcErrorNotice"]);
  1532. }
  1533. if (object[".guandan.gcKickOutReason"] != null) {
  1534. if (typeof object[".guandan.gcKickOutReason"] !== "object")
  1535. throw TypeError(".pb.Message..guandan.gcKickOutReason: object expected");
  1536. message[".guandan.gcKickOutReason"] = $root.guandan.GCKickOutReason.fromObject(object[".guandan.gcKickOutReason"]);
  1537. }
  1538. if (object[".pb.cgLogin"] != null) {
  1539. if (typeof object[".pb.cgLogin"] !== "object")
  1540. throw TypeError(".pb.Message..pb.cgLogin: object expected");
  1541. message[".pb.cgLogin"] = $root.pb.CGLogin.fromObject(object[".pb.cgLogin"]);
  1542. }
  1543. if (object[".pb.gcLogin"] != null) {
  1544. if (typeof object[".pb.gcLogin"] !== "object")
  1545. throw TypeError(".pb.Message..pb.gcLogin: object expected");
  1546. message[".pb.gcLogin"] = $root.pb.GCLogin.fromObject(object[".pb.gcLogin"]);
  1547. }
  1548. if (object[".pb.cgPing"] != null) {
  1549. if (typeof object[".pb.cgPing"] !== "object")
  1550. throw TypeError(".pb.Message..pb.cgPing: object expected");
  1551. message[".pb.cgPing"] = $root.pb.CGPing.fromObject(object[".pb.cgPing"]);
  1552. }
  1553. if (object[".pb.gcPing"] != null) {
  1554. if (typeof object[".pb.gcPing"] !== "object")
  1555. throw TypeError(".pb.Message..pb.gcPing: object expected");
  1556. message[".pb.gcPing"] = $root.pb.GCPing.fromObject(object[".pb.gcPing"]);
  1557. }
  1558. return message;
  1559. };
  1560. /**
  1561. * Creates a plain object from a Message message. Also converts values to other types if specified.
  1562. * @function toObject
  1563. * @memberof pb.Message
  1564. * @static
  1565. * @param {pb.Message} message Message
  1566. * @param {$protobuf.IConversionOptions} [options] Conversion options
  1567. * @returns {Object.<string,*>} Plain object
  1568. */
  1569. Message.toObject = function toObject(message, options) {
  1570. if (!options)
  1571. options = {};
  1572. var object = {};
  1573. if (options.defaults) {
  1574. object.messageType = 0;
  1575. object[".pb.cgLogin"] = null;
  1576. object[".pb.gcLogin"] = null;
  1577. object[".pb.cgPing"] = null;
  1578. object[".pb.gcPing"] = null;
  1579. object[".guandan.cgJoinRoom"] = null;
  1580. object[".guandan.gcJoinRoom"] = null;
  1581. object[".guandan.gcJoinRoomBroadcast"] = null;
  1582. object[".guandan.gcSelectBankerBroadcast"] = null;
  1583. object[".guandan.gcDealCards"] = null;
  1584. object[".guandan.gclearCircleBroadcast"] = null;
  1585. object[".guandan.cgPlayerPlayCard"] = null;
  1586. object[".guandan.gcPlayerPlayCard"] = null;
  1587. object[".guandan.gcPlayerOperations"] = null;
  1588. object[".guandan.gcWaitPlayerPlayCard"] = null;
  1589. object[".guandan.gcWaitPlayerPlayCardBroadcast"] = null;
  1590. object[".guandan.cgPlayerJinGong"] = null;
  1591. object[".guandan.gcPlayerJinGongBroadcast"] = null;
  1592. object[".guandan.cgPlayerHuanGong"] = null;
  1593. object[".guandan.gcPlayerHuanGongBroadcast"] = null;
  1594. object[".guandan.gcPlayerKangGongBroadcast"] = null;
  1595. object[".guandan.gcWaitPlayerJinGongBroadcast"] = null;
  1596. object[".guandan.gcWaitPlayerHuanGongBroadcast"] = null;
  1597. object[".guandan.gcPlayerYou"] = null;
  1598. object[".guandan.gcPlayerEmptyBroadcast"] = null;
  1599. object[".guandan.cgPlayerOpreate"] = null;
  1600. object[".guandan.gcClear"] = null;
  1601. object[".guandan.gcReconnectPlayer"] = null;
  1602. object[".guandan.gcDisconnectPlayer"] = null;
  1603. object[".guandan.cgPlayerLeave"] = null;
  1604. object[".guandan.gcPlayerLeave"] = null;
  1605. object[".guandan.cgPlayerStart"] = null;
  1606. object[".guandan.gcLastBroadcast"] = null;
  1607. object[".guandan.gcPlayerStart"] = null;
  1608. object[".guandan.cgPlayerDissolve"] = null;
  1609. object[".guandan.gcPlayerDissolve"] = null;
  1610. object[".guandan.cgPlayerDissolveAgree"] = null;
  1611. object[".guandan.gcPlayerDissolveAgree"] = null;
  1612. object[".guandan.gcLiuJu"] = null;
  1613. object[".guandan.gcTotalSettle"] = null;
  1614. object[".guandan.gcKaiJin"] = null;
  1615. object[".guandan.cgDisconnectPlayer"] = null;
  1616. object[".guandan.gcPlayerTuoGuan"] = null;
  1617. object[".guandan.cgPlayerCancelTuoGuan"] = null;
  1618. object[".guandan.gcPlayerCancelTuoGuan"] = null;
  1619. object[".guandan.gcRoomRoundStart"] = null;
  1620. object[".guandan.gcPlayerRemainCardBroadcast"] = null;
  1621. object[".guandan.gcPlayerDoubleBroadcast"] = null;
  1622. object[".guandan.gcTuanTuanZhuanShowCardBroadcast"] = null;
  1623. object[".guandan.gcOppositePlayerCard"] = null;
  1624. object[".guandan.cgPlayerDouble"] = null;
  1625. object[".guandan.gcPlayerPlayCardBroadcast"] = null;
  1626. object[".guandan.gcWaitPlayerDouble"] = null;
  1627. object[".guandan.gcBombDoubleBroadcast"] = null;
  1628. object[".guandan.gcJieFengBroadcast"] = null;
  1629. object[".guandan.gcStartArrangeCardBroadcast"] = null;
  1630. object[".guandan.gcEndArrangeCardBroadcast"] = null;
  1631. object[".guandan.gcRestCardBroadcast"] = null;
  1632. object[".guandan.cgChat"] = null;
  1633. object[".guandan.gcChat"] = null;
  1634. object[".guandan.gcErrorNotice"] = null;
  1635. object[".guandan.gcKickOutReason"] = null;
  1636. }
  1637. if (message.messageType != null && message.hasOwnProperty("messageType"))
  1638. object.messageType = message.messageType;
  1639. if (message[".pb.cgLogin"] != null && message.hasOwnProperty(".pb.cgLogin"))
  1640. object[".pb.cgLogin"] = $root.pb.CGLogin.toObject(message[".pb.cgLogin"], options);
  1641. if (message[".pb.gcLogin"] != null && message.hasOwnProperty(".pb.gcLogin"))
  1642. object[".pb.gcLogin"] = $root.pb.GCLogin.toObject(message[".pb.gcLogin"], options);
  1643. if (message[".pb.cgPing"] != null && message.hasOwnProperty(".pb.cgPing"))
  1644. object[".pb.cgPing"] = $root.pb.CGPing.toObject(message[".pb.cgPing"], options);
  1645. if (message[".pb.gcPing"] != null && message.hasOwnProperty(".pb.gcPing"))
  1646. object[".pb.gcPing"] = $root.pb.GCPing.toObject(message[".pb.gcPing"], options);
  1647. if (message[".guandan.cgJoinRoom"] != null && message.hasOwnProperty(".guandan.cgJoinRoom"))
  1648. object[".guandan.cgJoinRoom"] = $root.guandan.CGJoinRoom.toObject(message[".guandan.cgJoinRoom"], options);
  1649. if (message[".guandan.gcJoinRoom"] != null && message.hasOwnProperty(".guandan.gcJoinRoom"))
  1650. object[".guandan.gcJoinRoom"] = $root.guandan.GCJoinRoom.toObject(message[".guandan.gcJoinRoom"], options);
  1651. if (message[".guandan.gcJoinRoomBroadcast"] != null && message.hasOwnProperty(".guandan.gcJoinRoomBroadcast"))
  1652. object[".guandan.gcJoinRoomBroadcast"] = $root.guandan.GCJoinRoomBroadcast.toObject(message[".guandan.gcJoinRoomBroadcast"], options);
  1653. if (message[".guandan.gcSelectBankerBroadcast"] != null && message.hasOwnProperty(".guandan.gcSelectBankerBroadcast"))
  1654. object[".guandan.gcSelectBankerBroadcast"] = $root.guandan.GCSelectBankerBroadcast.toObject(message[".guandan.gcSelectBankerBroadcast"], options);
  1655. if (message[".guandan.gcDealCards"] != null && message.hasOwnProperty(".guandan.gcDealCards"))
  1656. object[".guandan.gcDealCards"] = $root.guandan.GCDealCards.toObject(message[".guandan.gcDealCards"], options);
  1657. if (message[".guandan.gclearCircleBroadcast"] != null && message.hasOwnProperty(".guandan.gclearCircleBroadcast"))
  1658. object[".guandan.gclearCircleBroadcast"] = $root.guandan.GCClearCircleBroadcast.toObject(message[".guandan.gclearCircleBroadcast"], options);
  1659. if (message[".guandan.cgPlayerPlayCard"] != null && message.hasOwnProperty(".guandan.cgPlayerPlayCard"))
  1660. object[".guandan.cgPlayerPlayCard"] = $root.guandan.CGPlayerPlayCard.toObject(message[".guandan.cgPlayerPlayCard"], options);
  1661. if (message[".guandan.gcPlayerPlayCard"] != null && message.hasOwnProperty(".guandan.gcPlayerPlayCard"))
  1662. object[".guandan.gcPlayerPlayCard"] = $root.guandan.GCPlayerPlayCard.toObject(message[".guandan.gcPlayerPlayCard"], options);
  1663. if (message[".guandan.gcPlayerOperations"] != null && message.hasOwnProperty(".guandan.gcPlayerOperations"))
  1664. object[".guandan.gcPlayerOperations"] = $root.guandan.GCPlayerOperations.toObject(message[".guandan.gcPlayerOperations"], options);
  1665. if (message[".guandan.gcWaitPlayerPlayCard"] != null && message.hasOwnProperty(".guandan.gcWaitPlayerPlayCard"))
  1666. object[".guandan.gcWaitPlayerPlayCard"] = $root.guandan.GCWaitPlayerPlayCard.toObject(message[".guandan.gcWaitPlayerPlayCard"], options);
  1667. if (message[".guandan.gcWaitPlayerPlayCardBroadcast"] != null && message.hasOwnProperty(".guandan.gcWaitPlayerPlayCardBroadcast"))
  1668. object[".guandan.gcWaitPlayerPlayCardBroadcast"] = $root.guandan.GCWaitPlayerPlayCardBroadcast.toObject(message[".guandan.gcWaitPlayerPlayCardBroadcast"], options);
  1669. if (message[".guandan.cgPlayerJinGong"] != null && message.hasOwnProperty(".guandan.cgPlayerJinGong"))
  1670. object[".guandan.cgPlayerJinGong"] = $root.guandan.CGPlayerJinGong.toObject(message[".guandan.cgPlayerJinGong"], options);
  1671. if (message[".guandan.gcPlayerJinGongBroadcast"] != null && message.hasOwnProperty(".guandan.gcPlayerJinGongBroadcast"))
  1672. object[".guandan.gcPlayerJinGongBroadcast"] = $root.guandan.GCPlayerJinGongBroadcast.toObject(message[".guandan.gcPlayerJinGongBroadcast"], options);
  1673. if (message[".guandan.cgPlayerHuanGong"] != null && message.hasOwnProperty(".guandan.cgPlayerHuanGong"))
  1674. object[".guandan.cgPlayerHuanGong"] = $root.guandan.CGPlayerHuanGong.toObject(message[".guandan.cgPlayerHuanGong"], options);
  1675. if (message[".guandan.gcPlayerHuanGongBroadcast"] != null && message.hasOwnProperty(".guandan.gcPlayerHuanGongBroadcast"))
  1676. object[".guandan.gcPlayerHuanGongBroadcast"] = $root.guandan.GCPlayerHuanGongBroadcast.toObject(message[".guandan.gcPlayerHuanGongBroadcast"], options);
  1677. if (message[".guandan.gcPlayerKangGongBroadcast"] != null && message.hasOwnProperty(".guandan.gcPlayerKangGongBroadcast"))
  1678. object[".guandan.gcPlayerKangGongBroadcast"] = $root.guandan.GCPlayerKangGongBroadcast.toObject(message[".guandan.gcPlayerKangGongBroadcast"], options);
  1679. if (message[".guandan.gcWaitPlayerJinGongBroadcast"] != null && message.hasOwnProperty(".guandan.gcWaitPlayerJinGongBroadcast"))
  1680. object[".guandan.gcWaitPlayerJinGongBroadcast"] = $root.guandan.GCWaitPlayerJinGongBroadcast.toObject(message[".guandan.gcWaitPlayerJinGongBroadcast"], options);
  1681. if (message[".guandan.gcWaitPlayerHuanGongBroadcast"] != null && message.hasOwnProperty(".guandan.gcWaitPlayerHuanGongBroadcast"))
  1682. object[".guandan.gcWaitPlayerHuanGongBroadcast"] = $root.guandan.GCWaitPlayerHuanGongBroadcast.toObject(message[".guandan.gcWaitPlayerHuanGongBroadcast"], options);
  1683. if (message[".guandan.gcPlayerYou"] != null && message.hasOwnProperty(".guandan.gcPlayerYou"))
  1684. object[".guandan.gcPlayerYou"] = $root.guandan.GCPlayerYou.toObject(message[".guandan.gcPlayerYou"], options);
  1685. if (message[".guandan.gcPlayerEmptyBroadcast"] != null && message.hasOwnProperty(".guandan.gcPlayerEmptyBroadcast"))
  1686. object[".guandan.gcPlayerEmptyBroadcast"] = $root.guandan.GCPlayerEmptyBroadcast.toObject(message[".guandan.gcPlayerEmptyBroadcast"], options);
  1687. if (message[".guandan.cgPlayerOpreate"] != null && message.hasOwnProperty(".guandan.cgPlayerOpreate"))
  1688. object[".guandan.cgPlayerOpreate"] = $root.guandan.CGPlayerOperate.toObject(message[".guandan.cgPlayerOpreate"], options);
  1689. if (message[".guandan.gcClear"] != null && message.hasOwnProperty(".guandan.gcClear"))
  1690. object[".guandan.gcClear"] = $root.guandan.GCClear.toObject(message[".guandan.gcClear"], options);
  1691. if (message[".guandan.gcReconnectPlayer"] != null && message.hasOwnProperty(".guandan.gcReconnectPlayer"))
  1692. object[".guandan.gcReconnectPlayer"] = $root.guandan.GCReconnectPlayer.toObject(message[".guandan.gcReconnectPlayer"], options);
  1693. if (message[".guandan.gcDisconnectPlayer"] != null && message.hasOwnProperty(".guandan.gcDisconnectPlayer"))
  1694. object[".guandan.gcDisconnectPlayer"] = $root.guandan.GCDisconnectPlayer.toObject(message[".guandan.gcDisconnectPlayer"], options);
  1695. if (message[".guandan.cgPlayerLeave"] != null && message.hasOwnProperty(".guandan.cgPlayerLeave"))
  1696. object[".guandan.cgPlayerLeave"] = $root.guandan.CGPlayerLeave.toObject(message[".guandan.cgPlayerLeave"], options);
  1697. if (message[".guandan.gcPlayerLeave"] != null && message.hasOwnProperty(".guandan.gcPlayerLeave"))
  1698. object[".guandan.gcPlayerLeave"] = $root.guandan.GCPlayerLeave.toObject(message[".guandan.gcPlayerLeave"], options);
  1699. if (message[".guandan.cgPlayerStart"] != null && message.hasOwnProperty(".guandan.cgPlayerStart"))
  1700. object[".guandan.cgPlayerStart"] = $root.guandan.CGPlayerStart.toObject(message[".guandan.cgPlayerStart"], options);
  1701. if (message[".guandan.gcLastBroadcast"] != null && message.hasOwnProperty(".guandan.gcLastBroadcast"))
  1702. object[".guandan.gcLastBroadcast"] = $root.guandan.GCLastBroadcast.toObject(message[".guandan.gcLastBroadcast"], options);
  1703. if (message[".guandan.gcPlayerStart"] != null && message.hasOwnProperty(".guandan.gcPlayerStart"))
  1704. object[".guandan.gcPlayerStart"] = $root.guandan.GCPlayerStart.toObject(message[".guandan.gcPlayerStart"], options);
  1705. if (message[".guandan.cgPlayerDissolve"] != null && message.hasOwnProperty(".guandan.cgPlayerDissolve"))
  1706. object[".guandan.cgPlayerDissolve"] = $root.guandan.CGPlayerDissolve.toObject(message[".guandan.cgPlayerDissolve"], options);
  1707. if (message[".guandan.gcPlayerDissolve"] != null && message.hasOwnProperty(".guandan.gcPlayerDissolve"))
  1708. object[".guandan.gcPlayerDissolve"] = $root.guandan.GCPlayerDissolve.toObject(message[".guandan.gcPlayerDissolve"], options);
  1709. if (message[".guandan.cgPlayerDissolveAgree"] != null && message.hasOwnProperty(".guandan.cgPlayerDissolveAgree"))
  1710. object[".guandan.cgPlayerDissolveAgree"] = $root.guandan.CGPlayerDissolveAgree.toObject(message[".guandan.cgPlayerDissolveAgree"], options);
  1711. if (message[".guandan.gcPlayerDissolveAgree"] != null && message.hasOwnProperty(".guandan.gcPlayerDissolveAgree"))
  1712. object[".guandan.gcPlayerDissolveAgree"] = $root.guandan.GCPlayerDissolveAgree.toObject(message[".guandan.gcPlayerDissolveAgree"], options);
  1713. if (message[".guandan.gcLiuJu"] != null && message.hasOwnProperty(".guandan.gcLiuJu"))
  1714. object[".guandan.gcLiuJu"] = $root.guandan.GCLiuJu.toObject(message[".guandan.gcLiuJu"], options);
  1715. if (message[".guandan.gcTotalSettle"] != null && message.hasOwnProperty(".guandan.gcTotalSettle"))
  1716. object[".guandan.gcTotalSettle"] = $root.guandan.GCTotalSettle.toObject(message[".guandan.gcTotalSettle"], options);
  1717. if (message[".guandan.gcKaiJin"] != null && message.hasOwnProperty(".guandan.gcKaiJin"))
  1718. object[".guandan.gcKaiJin"] = $root.guandan.GCKaiJin.toObject(message[".guandan.gcKaiJin"], options);
  1719. if (message[".guandan.cgDisconnectPlayer"] != null && message.hasOwnProperty(".guandan.cgDisconnectPlayer"))
  1720. object[".guandan.cgDisconnectPlayer"] = $root.guandan.CGDisconnectPlayer.toObject(message[".guandan.cgDisconnectPlayer"], options);
  1721. if (message[".guandan.gcPlayerTuoGuan"] != null && message.hasOwnProperty(".guandan.gcPlayerTuoGuan"))
  1722. object[".guandan.gcPlayerTuoGuan"] = $root.guandan.GCPlayerTuoGuan.toObject(message[".guandan.gcPlayerTuoGuan"], options);
  1723. if (message[".guandan.cgPlayerCancelTuoGuan"] != null && message.hasOwnProperty(".guandan.cgPlayerCancelTuoGuan"))
  1724. object[".guandan.cgPlayerCancelTuoGuan"] = $root.guandan.CGPlayerCancelTuoGuan.toObject(message[".guandan.cgPlayerCancelTuoGuan"], options);
  1725. if (message[".guandan.gcPlayerCancelTuoGuan"] != null && message.hasOwnProperty(".guandan.gcPlayerCancelTuoGuan"))
  1726. object[".guandan.gcPlayerCancelTuoGuan"] = $root.guandan.GCPlayerCancelTuoGuan.toObject(message[".guandan.gcPlayerCancelTuoGuan"], options);
  1727. if (message[".guandan.gcRoomRoundStart"] != null && message.hasOwnProperty(".guandan.gcRoomRoundStart"))
  1728. object[".guandan.gcRoomRoundStart"] = $root.guandan.GCRoomRoundStart.toObject(message[".guandan.gcRoomRoundStart"], options);
  1729. if (message[".guandan.gcPlayerRemainCardBroadcast"] != null && message.hasOwnProperty(".guandan.gcPlayerRemainCardBroadcast"))
  1730. object[".guandan.gcPlayerRemainCardBroadcast"] = $root.guandan.GCPlayerRemainCardBroadcast.toObject(message[".guandan.gcPlayerRemainCardBroadcast"], options);
  1731. if (message[".guandan.gcPlayerDoubleBroadcast"] != null && message.hasOwnProperty(".guandan.gcPlayerDoubleBroadcast"))
  1732. object[".guandan.gcPlayerDoubleBroadcast"] = $root.guandan.GCPlayerDoubleBroadcast.toObject(message[".guandan.gcPlayerDoubleBroadcast"], options);
  1733. if (message[".guandan.gcTuanTuanZhuanShowCardBroadcast"] != null && message.hasOwnProperty(".guandan.gcTuanTuanZhuanShowCardBroadcast"))
  1734. object[".guandan.gcTuanTuanZhuanShowCardBroadcast"] = $root.guandan.GCTuanTuanZhuanShowCardBroadcast.toObject(message[".guandan.gcTuanTuanZhuanShowCardBroadcast"], options);
  1735. if (message[".guandan.gcOppositePlayerCard"] != null && message.hasOwnProperty(".guandan.gcOppositePlayerCard"))
  1736. object[".guandan.gcOppositePlayerCard"] = $root.guandan.GCOppositePlayerCard.toObject(message[".guandan.gcOppositePlayerCard"], options);
  1737. if (message[".guandan.cgPlayerDouble"] != null && message.hasOwnProperty(".guandan.cgPlayerDouble"))
  1738. object[".guandan.cgPlayerDouble"] = $root.guandan.CGPlayerDouble.toObject(message[".guandan.cgPlayerDouble"], options);
  1739. if (message[".guandan.gcPlayerPlayCardBroadcast"] != null && message.hasOwnProperty(".guandan.gcPlayerPlayCardBroadcast"))
  1740. object[".guandan.gcPlayerPlayCardBroadcast"] = $root.guandan.GCPlayerPlayCardBroadcast.toObject(message[".guandan.gcPlayerPlayCardBroadcast"], options);
  1741. if (message[".guandan.gcWaitPlayerDouble"] != null && message.hasOwnProperty(".guandan.gcWaitPlayerDouble"))
  1742. object[".guandan.gcWaitPlayerDouble"] = $root.guandan.GCWaitPlayerDouble.toObject(message[".guandan.gcWaitPlayerDouble"], options);
  1743. if (message[".guandan.gcBombDoubleBroadcast"] != null && message.hasOwnProperty(".guandan.gcBombDoubleBroadcast"))
  1744. object[".guandan.gcBombDoubleBroadcast"] = $root.guandan.GCBombDoubleBroadcast.toObject(message[".guandan.gcBombDoubleBroadcast"], options);
  1745. if (message[".guandan.gcJieFengBroadcast"] != null && message.hasOwnProperty(".guandan.gcJieFengBroadcast"))
  1746. object[".guandan.gcJieFengBroadcast"] = $root.guandan.GCJieFengBroadcast.toObject(message[".guandan.gcJieFengBroadcast"], options);
  1747. if (message[".guandan.gcStartArrangeCardBroadcast"] != null && message.hasOwnProperty(".guandan.gcStartArrangeCardBroadcast"))
  1748. object[".guandan.gcStartArrangeCardBroadcast"] = $root.guandan.GCStartArrangeCardBroadcast.toObject(message[".guandan.gcStartArrangeCardBroadcast"], options);
  1749. if (message[".guandan.gcEndArrangeCardBroadcast"] != null && message.hasOwnProperty(".guandan.gcEndArrangeCardBroadcast"))
  1750. object[".guandan.gcEndArrangeCardBroadcast"] = $root.guandan.GCEndArrangeCardBroadcast.toObject(message[".guandan.gcEndArrangeCardBroadcast"], options);
  1751. if (message[".guandan.gcRestCardBroadcast"] != null && message.hasOwnProperty(".guandan.gcRestCardBroadcast"))
  1752. object[".guandan.gcRestCardBroadcast"] = $root.guandan.GCRestCardBroadcast.toObject(message[".guandan.gcRestCardBroadcast"], options);
  1753. if (message[".guandan.cgChat"] != null && message.hasOwnProperty(".guandan.cgChat"))
  1754. object[".guandan.cgChat"] = $root.guandan.CGChat.toObject(message[".guandan.cgChat"], options);
  1755. if (message[".guandan.gcChat"] != null && message.hasOwnProperty(".guandan.gcChat"))
  1756. object[".guandan.gcChat"] = $root.guandan.GCChat.toObject(message[".guandan.gcChat"], options);
  1757. if (message[".guandan.gcErrorNotice"] != null && message.hasOwnProperty(".guandan.gcErrorNotice"))
  1758. object[".guandan.gcErrorNotice"] = $root.guandan.GCErrorNotice.toObject(message[".guandan.gcErrorNotice"], options);
  1759. if (message[".guandan.gcKickOutReason"] != null && message.hasOwnProperty(".guandan.gcKickOutReason"))
  1760. object[".guandan.gcKickOutReason"] = $root.guandan.GCKickOutReason.toObject(message[".guandan.gcKickOutReason"], options);
  1761. return object;
  1762. };
  1763. /**
  1764. * Converts this Message to JSON.
  1765. * @function toJSON
  1766. * @memberof pb.Message
  1767. * @instance
  1768. * @returns {Object.<string,*>} JSON object
  1769. */
  1770. Message.prototype.toJSON = function toJSON() {
  1771. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  1772. };
  1773. return Message;
  1774. })();
  1775. pb.CGLogin = (function() {
  1776. /**
  1777. * Properties of a CGLogin.
  1778. * @memberof pb
  1779. * @interface ICGLogin
  1780. * @property {number|Long} playerId CGLogin playerId
  1781. * @property {string} token CGLogin token
  1782. */
  1783. /**
  1784. * Constructs a new CGLogin.
  1785. * @memberof pb
  1786. * @classdesc Represents a CGLogin.
  1787. * @implements ICGLogin
  1788. * @constructor
  1789. * @param {pb.ICGLogin=} [properties] Properties to set
  1790. */
  1791. function CGLogin(properties) {
  1792. if (properties)
  1793. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  1794. if (properties[keys[i]] != null)
  1795. this[keys[i]] = properties[keys[i]];
  1796. }
  1797. /**
  1798. * CGLogin playerId.
  1799. * @member {number|Long} playerId
  1800. * @memberof pb.CGLogin
  1801. * @instance
  1802. */
  1803. CGLogin.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  1804. /**
  1805. * CGLogin token.
  1806. * @member {string} token
  1807. * @memberof pb.CGLogin
  1808. * @instance
  1809. */
  1810. CGLogin.prototype.token = "";
  1811. /**
  1812. * Creates a new CGLogin instance using the specified properties.
  1813. * @function create
  1814. * @memberof pb.CGLogin
  1815. * @static
  1816. * @param {pb.ICGLogin=} [properties] Properties to set
  1817. * @returns {pb.CGLogin} CGLogin instance
  1818. */
  1819. CGLogin.create = function create(properties) {
  1820. return new CGLogin(properties);
  1821. };
  1822. /**
  1823. * Encodes the specified CGLogin message. Does not implicitly {@link pb.CGLogin.verify|verify} messages.
  1824. * @function encode
  1825. * @memberof pb.CGLogin
  1826. * @static
  1827. * @param {pb.ICGLogin} message CGLogin message or plain object to encode
  1828. * @param {$protobuf.Writer} [writer] Writer to encode to
  1829. * @returns {$protobuf.Writer} Writer
  1830. */
  1831. CGLogin.encode = function encode(message, writer) {
  1832. if (!writer)
  1833. writer = $Writer.create();
  1834. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
  1835. writer.uint32(/* id 2, wireType 2 =*/18).string(message.token);
  1836. return writer;
  1837. };
  1838. /**
  1839. * Encodes the specified CGLogin message, length delimited. Does not implicitly {@link pb.CGLogin.verify|verify} messages.
  1840. * @function encodeDelimited
  1841. * @memberof pb.CGLogin
  1842. * @static
  1843. * @param {pb.ICGLogin} message CGLogin message or plain object to encode
  1844. * @param {$protobuf.Writer} [writer] Writer to encode to
  1845. * @returns {$protobuf.Writer} Writer
  1846. */
  1847. CGLogin.encodeDelimited = function encodeDelimited(message, writer) {
  1848. return this.encode(message, writer).ldelim();
  1849. };
  1850. /**
  1851. * Decodes a CGLogin message from the specified reader or buffer.
  1852. * @function decode
  1853. * @memberof pb.CGLogin
  1854. * @static
  1855. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  1856. * @param {number} [length] Message length if known beforehand
  1857. * @returns {pb.CGLogin} CGLogin
  1858. * @throws {Error} If the payload is not a reader or valid buffer
  1859. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  1860. */
  1861. CGLogin.decode = function decode(reader, length) {
  1862. if (!(reader instanceof $Reader))
  1863. reader = $Reader.create(reader);
  1864. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.pb.CGLogin();
  1865. while (reader.pos < end) {
  1866. var tag = reader.uint32();
  1867. switch (tag >>> 3) {
  1868. case 1:
  1869. message.playerId = reader.int64();
  1870. break;
  1871. case 2:
  1872. message.token = reader.string();
  1873. break;
  1874. default:
  1875. reader.skipType(tag & 7);
  1876. break;
  1877. }
  1878. }
  1879. if (!message.hasOwnProperty("playerId"))
  1880. throw $util.ProtocolError("missing required 'playerId'", { instance: message });
  1881. if (!message.hasOwnProperty("token"))
  1882. throw $util.ProtocolError("missing required 'token'", { instance: message });
  1883. return message;
  1884. };
  1885. /**
  1886. * Decodes a CGLogin message from the specified reader or buffer, length delimited.
  1887. * @function decodeDelimited
  1888. * @memberof pb.CGLogin
  1889. * @static
  1890. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  1891. * @returns {pb.CGLogin} CGLogin
  1892. * @throws {Error} If the payload is not a reader or valid buffer
  1893. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  1894. */
  1895. CGLogin.decodeDelimited = function decodeDelimited(reader) {
  1896. if (!(reader instanceof $Reader))
  1897. reader = new $Reader(reader);
  1898. return this.decode(reader, reader.uint32());
  1899. };
  1900. /**
  1901. * Verifies a CGLogin message.
  1902. * @function verify
  1903. * @memberof pb.CGLogin
  1904. * @static
  1905. * @param {Object.<string,*>} message Plain object to verify
  1906. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  1907. */
  1908. CGLogin.verify = function verify(message) {
  1909. if (typeof message !== "object" || message === null)
  1910. return "object expected";
  1911. if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
  1912. return "playerId: integer|Long expected";
  1913. if (!$util.isString(message.token))
  1914. return "token: string expected";
  1915. return null;
  1916. };
  1917. /**
  1918. * Creates a CGLogin message from a plain object. Also converts values to their respective internal types.
  1919. * @function fromObject
  1920. * @memberof pb.CGLogin
  1921. * @static
  1922. * @param {Object.<string,*>} object Plain object
  1923. * @returns {pb.CGLogin} CGLogin
  1924. */
  1925. CGLogin.fromObject = function fromObject(object) {
  1926. if (object instanceof $root.pb.CGLogin)
  1927. return object;
  1928. var message = new $root.pb.CGLogin();
  1929. if (object.playerId != null)
  1930. if ($util.Long)
  1931. (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
  1932. else if (typeof object.playerId === "string")
  1933. message.playerId = parseInt(object.playerId, 10);
  1934. else if (typeof object.playerId === "number")
  1935. message.playerId = object.playerId;
  1936. else if (typeof object.playerId === "object")
  1937. message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
  1938. if (object.token != null)
  1939. message.token = String(object.token);
  1940. return message;
  1941. };
  1942. /**
  1943. * Creates a plain object from a CGLogin message. Also converts values to other types if specified.
  1944. * @function toObject
  1945. * @memberof pb.CGLogin
  1946. * @static
  1947. * @param {pb.CGLogin} message CGLogin
  1948. * @param {$protobuf.IConversionOptions} [options] Conversion options
  1949. * @returns {Object.<string,*>} Plain object
  1950. */
  1951. CGLogin.toObject = function toObject(message, options) {
  1952. if (!options)
  1953. options = {};
  1954. var object = {};
  1955. if (options.defaults) {
  1956. if ($util.Long) {
  1957. var long = new $util.Long(0, 0, false);
  1958. object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  1959. } else
  1960. object.playerId = options.longs === String ? "0" : 0;
  1961. object.token = "";
  1962. }
  1963. if (message.playerId != null && message.hasOwnProperty("playerId"))
  1964. if (typeof message.playerId === "number")
  1965. object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
  1966. else
  1967. object.playerId = options.longs === String ? $util.Long.prototype.toString.call(message.playerId) : options.longs === Number ? new $util.LongBits(message.playerId.low >>> 0, message.playerId.high >>> 0).toNumber() : message.playerId;
  1968. if (message.token != null && message.hasOwnProperty("token"))
  1969. object.token = message.token;
  1970. return object;
  1971. };
  1972. /**
  1973. * Converts this CGLogin to JSON.
  1974. * @function toJSON
  1975. * @memberof pb.CGLogin
  1976. * @instance
  1977. * @returns {Object.<string,*>} JSON object
  1978. */
  1979. CGLogin.prototype.toJSON = function toJSON() {
  1980. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  1981. };
  1982. return CGLogin;
  1983. })();
  1984. pb.GCLogin = (function() {
  1985. /**
  1986. * Properties of a GCLogin.
  1987. * @memberof pb
  1988. * @interface IGCLogin
  1989. * @property {number|Long} playerId GCLogin playerId
  1990. */
  1991. /**
  1992. * Constructs a new GCLogin.
  1993. * @memberof pb
  1994. * @classdesc Represents a GCLogin.
  1995. * @implements IGCLogin
  1996. * @constructor
  1997. * @param {pb.IGCLogin=} [properties] Properties to set
  1998. */
  1999. function GCLogin(properties) {
  2000. if (properties)
  2001. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  2002. if (properties[keys[i]] != null)
  2003. this[keys[i]] = properties[keys[i]];
  2004. }
  2005. /**
  2006. * GCLogin playerId.
  2007. * @member {number|Long} playerId
  2008. * @memberof pb.GCLogin
  2009. * @instance
  2010. */
  2011. GCLogin.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  2012. /**
  2013. * Creates a new GCLogin instance using the specified properties.
  2014. * @function create
  2015. * @memberof pb.GCLogin
  2016. * @static
  2017. * @param {pb.IGCLogin=} [properties] Properties to set
  2018. * @returns {pb.GCLogin} GCLogin instance
  2019. */
  2020. GCLogin.create = function create(properties) {
  2021. return new GCLogin(properties);
  2022. };
  2023. /**
  2024. * Encodes the specified GCLogin message. Does not implicitly {@link pb.GCLogin.verify|verify} messages.
  2025. * @function encode
  2026. * @memberof pb.GCLogin
  2027. * @static
  2028. * @param {pb.IGCLogin} message GCLogin message or plain object to encode
  2029. * @param {$protobuf.Writer} [writer] Writer to encode to
  2030. * @returns {$protobuf.Writer} Writer
  2031. */
  2032. GCLogin.encode = function encode(message, writer) {
  2033. if (!writer)
  2034. writer = $Writer.create();
  2035. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
  2036. return writer;
  2037. };
  2038. /**
  2039. * Encodes the specified GCLogin message, length delimited. Does not implicitly {@link pb.GCLogin.verify|verify} messages.
  2040. * @function encodeDelimited
  2041. * @memberof pb.GCLogin
  2042. * @static
  2043. * @param {pb.IGCLogin} message GCLogin message or plain object to encode
  2044. * @param {$protobuf.Writer} [writer] Writer to encode to
  2045. * @returns {$protobuf.Writer} Writer
  2046. */
  2047. GCLogin.encodeDelimited = function encodeDelimited(message, writer) {
  2048. return this.encode(message, writer).ldelim();
  2049. };
  2050. /**
  2051. * Decodes a GCLogin message from the specified reader or buffer.
  2052. * @function decode
  2053. * @memberof pb.GCLogin
  2054. * @static
  2055. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  2056. * @param {number} [length] Message length if known beforehand
  2057. * @returns {pb.GCLogin} GCLogin
  2058. * @throws {Error} If the payload is not a reader or valid buffer
  2059. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2060. */
  2061. GCLogin.decode = function decode(reader, length) {
  2062. if (!(reader instanceof $Reader))
  2063. reader = $Reader.create(reader);
  2064. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.pb.GCLogin();
  2065. while (reader.pos < end) {
  2066. var tag = reader.uint32();
  2067. switch (tag >>> 3) {
  2068. case 1:
  2069. message.playerId = reader.int64();
  2070. break;
  2071. default:
  2072. reader.skipType(tag & 7);
  2073. break;
  2074. }
  2075. }
  2076. if (!message.hasOwnProperty("playerId"))
  2077. throw $util.ProtocolError("missing required 'playerId'", { instance: message });
  2078. return message;
  2079. };
  2080. /**
  2081. * Decodes a GCLogin message from the specified reader or buffer, length delimited.
  2082. * @function decodeDelimited
  2083. * @memberof pb.GCLogin
  2084. * @static
  2085. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  2086. * @returns {pb.GCLogin} GCLogin
  2087. * @throws {Error} If the payload is not a reader or valid buffer
  2088. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2089. */
  2090. GCLogin.decodeDelimited = function decodeDelimited(reader) {
  2091. if (!(reader instanceof $Reader))
  2092. reader = new $Reader(reader);
  2093. return this.decode(reader, reader.uint32());
  2094. };
  2095. /**
  2096. * Verifies a GCLogin message.
  2097. * @function verify
  2098. * @memberof pb.GCLogin
  2099. * @static
  2100. * @param {Object.<string,*>} message Plain object to verify
  2101. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  2102. */
  2103. GCLogin.verify = function verify(message) {
  2104. if (typeof message !== "object" || message === null)
  2105. return "object expected";
  2106. if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
  2107. return "playerId: integer|Long expected";
  2108. return null;
  2109. };
  2110. /**
  2111. * Creates a GCLogin message from a plain object. Also converts values to their respective internal types.
  2112. * @function fromObject
  2113. * @memberof pb.GCLogin
  2114. * @static
  2115. * @param {Object.<string,*>} object Plain object
  2116. * @returns {pb.GCLogin} GCLogin
  2117. */
  2118. GCLogin.fromObject = function fromObject(object) {
  2119. if (object instanceof $root.pb.GCLogin)
  2120. return object;
  2121. var message = new $root.pb.GCLogin();
  2122. if (object.playerId != null)
  2123. if ($util.Long)
  2124. (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
  2125. else if (typeof object.playerId === "string")
  2126. message.playerId = parseInt(object.playerId, 10);
  2127. else if (typeof object.playerId === "number")
  2128. message.playerId = object.playerId;
  2129. else if (typeof object.playerId === "object")
  2130. message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
  2131. return message;
  2132. };
  2133. /**
  2134. * Creates a plain object from a GCLogin message. Also converts values to other types if specified.
  2135. * @function toObject
  2136. * @memberof pb.GCLogin
  2137. * @static
  2138. * @param {pb.GCLogin} message GCLogin
  2139. * @param {$protobuf.IConversionOptions} [options] Conversion options
  2140. * @returns {Object.<string,*>} Plain object
  2141. */
  2142. GCLogin.toObject = function toObject(message, options) {
  2143. if (!options)
  2144. options = {};
  2145. var object = {};
  2146. if (options.defaults)
  2147. if ($util.Long) {
  2148. var long = new $util.Long(0, 0, false);
  2149. object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  2150. } else
  2151. object.playerId = options.longs === String ? "0" : 0;
  2152. if (message.playerId != null && message.hasOwnProperty("playerId"))
  2153. if (typeof message.playerId === "number")
  2154. object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
  2155. else
  2156. object.playerId = options.longs === String ? $util.Long.prototype.toString.call(message.playerId) : options.longs === Number ? new $util.LongBits(message.playerId.low >>> 0, message.playerId.high >>> 0).toNumber() : message.playerId;
  2157. return object;
  2158. };
  2159. /**
  2160. * Converts this GCLogin to JSON.
  2161. * @function toJSON
  2162. * @memberof pb.GCLogin
  2163. * @instance
  2164. * @returns {Object.<string,*>} JSON object
  2165. */
  2166. GCLogin.prototype.toJSON = function toJSON() {
  2167. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  2168. };
  2169. return GCLogin;
  2170. })();
  2171. pb.CGPing = (function() {
  2172. /**
  2173. * Properties of a CGPing.
  2174. * @memberof pb
  2175. * @interface ICGPing
  2176. */
  2177. /**
  2178. * Constructs a new CGPing.
  2179. * @memberof pb
  2180. * @classdesc Represents a CGPing.
  2181. * @implements ICGPing
  2182. * @constructor
  2183. * @param {pb.ICGPing=} [properties] Properties to set
  2184. */
  2185. function CGPing(properties) {
  2186. if (properties)
  2187. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  2188. if (properties[keys[i]] != null)
  2189. this[keys[i]] = properties[keys[i]];
  2190. }
  2191. /**
  2192. * Creates a new CGPing instance using the specified properties.
  2193. * @function create
  2194. * @memberof pb.CGPing
  2195. * @static
  2196. * @param {pb.ICGPing=} [properties] Properties to set
  2197. * @returns {pb.CGPing} CGPing instance
  2198. */
  2199. CGPing.create = function create(properties) {
  2200. return new CGPing(properties);
  2201. };
  2202. /**
  2203. * Encodes the specified CGPing message. Does not implicitly {@link pb.CGPing.verify|verify} messages.
  2204. * @function encode
  2205. * @memberof pb.CGPing
  2206. * @static
  2207. * @param {pb.ICGPing} message CGPing message or plain object to encode
  2208. * @param {$protobuf.Writer} [writer] Writer to encode to
  2209. * @returns {$protobuf.Writer} Writer
  2210. */
  2211. CGPing.encode = function encode(message, writer) {
  2212. if (!writer)
  2213. writer = $Writer.create();
  2214. return writer;
  2215. };
  2216. /**
  2217. * Encodes the specified CGPing message, length delimited. Does not implicitly {@link pb.CGPing.verify|verify} messages.
  2218. * @function encodeDelimited
  2219. * @memberof pb.CGPing
  2220. * @static
  2221. * @param {pb.ICGPing} message CGPing message or plain object to encode
  2222. * @param {$protobuf.Writer} [writer] Writer to encode to
  2223. * @returns {$protobuf.Writer} Writer
  2224. */
  2225. CGPing.encodeDelimited = function encodeDelimited(message, writer) {
  2226. return this.encode(message, writer).ldelim();
  2227. };
  2228. /**
  2229. * Decodes a CGPing message from the specified reader or buffer.
  2230. * @function decode
  2231. * @memberof pb.CGPing
  2232. * @static
  2233. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  2234. * @param {number} [length] Message length if known beforehand
  2235. * @returns {pb.CGPing} CGPing
  2236. * @throws {Error} If the payload is not a reader or valid buffer
  2237. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2238. */
  2239. CGPing.decode = function decode(reader, length) {
  2240. if (!(reader instanceof $Reader))
  2241. reader = $Reader.create(reader);
  2242. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.pb.CGPing();
  2243. while (reader.pos < end) {
  2244. var tag = reader.uint32();
  2245. switch (tag >>> 3) {
  2246. default:
  2247. reader.skipType(tag & 7);
  2248. break;
  2249. }
  2250. }
  2251. return message;
  2252. };
  2253. /**
  2254. * Decodes a CGPing message from the specified reader or buffer, length delimited.
  2255. * @function decodeDelimited
  2256. * @memberof pb.CGPing
  2257. * @static
  2258. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  2259. * @returns {pb.CGPing} CGPing
  2260. * @throws {Error} If the payload is not a reader or valid buffer
  2261. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2262. */
  2263. CGPing.decodeDelimited = function decodeDelimited(reader) {
  2264. if (!(reader instanceof $Reader))
  2265. reader = new $Reader(reader);
  2266. return this.decode(reader, reader.uint32());
  2267. };
  2268. /**
  2269. * Verifies a CGPing message.
  2270. * @function verify
  2271. * @memberof pb.CGPing
  2272. * @static
  2273. * @param {Object.<string,*>} message Plain object to verify
  2274. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  2275. */
  2276. CGPing.verify = function verify(message) {
  2277. if (typeof message !== "object" || message === null)
  2278. return "object expected";
  2279. return null;
  2280. };
  2281. /**
  2282. * Creates a CGPing message from a plain object. Also converts values to their respective internal types.
  2283. * @function fromObject
  2284. * @memberof pb.CGPing
  2285. * @static
  2286. * @param {Object.<string,*>} object Plain object
  2287. * @returns {pb.CGPing} CGPing
  2288. */
  2289. CGPing.fromObject = function fromObject(object) {
  2290. if (object instanceof $root.pb.CGPing)
  2291. return object;
  2292. return new $root.pb.CGPing();
  2293. };
  2294. /**
  2295. * Creates a plain object from a CGPing message. Also converts values to other types if specified.
  2296. * @function toObject
  2297. * @memberof pb.CGPing
  2298. * @static
  2299. * @param {pb.CGPing} message CGPing
  2300. * @param {$protobuf.IConversionOptions} [options] Conversion options
  2301. * @returns {Object.<string,*>} Plain object
  2302. */
  2303. CGPing.toObject = function toObject() {
  2304. return {};
  2305. };
  2306. /**
  2307. * Converts this CGPing to JSON.
  2308. * @function toJSON
  2309. * @memberof pb.CGPing
  2310. * @instance
  2311. * @returns {Object.<string,*>} JSON object
  2312. */
  2313. CGPing.prototype.toJSON = function toJSON() {
  2314. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  2315. };
  2316. return CGPing;
  2317. })();
  2318. pb.GCPing = (function() {
  2319. /**
  2320. * Properties of a GCPing.
  2321. * @memberof pb
  2322. * @interface IGCPing
  2323. * @property {number|Long} now GCPing now
  2324. */
  2325. /**
  2326. * Constructs a new GCPing.
  2327. * @memberof pb
  2328. * @classdesc Represents a GCPing.
  2329. * @implements IGCPing
  2330. * @constructor
  2331. * @param {pb.IGCPing=} [properties] Properties to set
  2332. */
  2333. function GCPing(properties) {
  2334. if (properties)
  2335. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  2336. if (properties[keys[i]] != null)
  2337. this[keys[i]] = properties[keys[i]];
  2338. }
  2339. /**
  2340. * GCPing now.
  2341. * @member {number|Long} now
  2342. * @memberof pb.GCPing
  2343. * @instance
  2344. */
  2345. GCPing.prototype.now = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  2346. /**
  2347. * Creates a new GCPing instance using the specified properties.
  2348. * @function create
  2349. * @memberof pb.GCPing
  2350. * @static
  2351. * @param {pb.IGCPing=} [properties] Properties to set
  2352. * @returns {pb.GCPing} GCPing instance
  2353. */
  2354. GCPing.create = function create(properties) {
  2355. return new GCPing(properties);
  2356. };
  2357. /**
  2358. * Encodes the specified GCPing message. Does not implicitly {@link pb.GCPing.verify|verify} messages.
  2359. * @function encode
  2360. * @memberof pb.GCPing
  2361. * @static
  2362. * @param {pb.IGCPing} message GCPing message or plain object to encode
  2363. * @param {$protobuf.Writer} [writer] Writer to encode to
  2364. * @returns {$protobuf.Writer} Writer
  2365. */
  2366. GCPing.encode = function encode(message, writer) {
  2367. if (!writer)
  2368. writer = $Writer.create();
  2369. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.now);
  2370. return writer;
  2371. };
  2372. /**
  2373. * Encodes the specified GCPing message, length delimited. Does not implicitly {@link pb.GCPing.verify|verify} messages.
  2374. * @function encodeDelimited
  2375. * @memberof pb.GCPing
  2376. * @static
  2377. * @param {pb.IGCPing} message GCPing message or plain object to encode
  2378. * @param {$protobuf.Writer} [writer] Writer to encode to
  2379. * @returns {$protobuf.Writer} Writer
  2380. */
  2381. GCPing.encodeDelimited = function encodeDelimited(message, writer) {
  2382. return this.encode(message, writer).ldelim();
  2383. };
  2384. /**
  2385. * Decodes a GCPing message from the specified reader or buffer.
  2386. * @function decode
  2387. * @memberof pb.GCPing
  2388. * @static
  2389. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  2390. * @param {number} [length] Message length if known beforehand
  2391. * @returns {pb.GCPing} GCPing
  2392. * @throws {Error} If the payload is not a reader or valid buffer
  2393. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2394. */
  2395. GCPing.decode = function decode(reader, length) {
  2396. if (!(reader instanceof $Reader))
  2397. reader = $Reader.create(reader);
  2398. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.pb.GCPing();
  2399. while (reader.pos < end) {
  2400. var tag = reader.uint32();
  2401. switch (tag >>> 3) {
  2402. case 1:
  2403. message.now = reader.int64();
  2404. break;
  2405. default:
  2406. reader.skipType(tag & 7);
  2407. break;
  2408. }
  2409. }
  2410. if (!message.hasOwnProperty("now"))
  2411. throw $util.ProtocolError("missing required 'now'", { instance: message });
  2412. return message;
  2413. };
  2414. /**
  2415. * Decodes a GCPing message from the specified reader or buffer, length delimited.
  2416. * @function decodeDelimited
  2417. * @memberof pb.GCPing
  2418. * @static
  2419. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  2420. * @returns {pb.GCPing} GCPing
  2421. * @throws {Error} If the payload is not a reader or valid buffer
  2422. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2423. */
  2424. GCPing.decodeDelimited = function decodeDelimited(reader) {
  2425. if (!(reader instanceof $Reader))
  2426. reader = new $Reader(reader);
  2427. return this.decode(reader, reader.uint32());
  2428. };
  2429. /**
  2430. * Verifies a GCPing message.
  2431. * @function verify
  2432. * @memberof pb.GCPing
  2433. * @static
  2434. * @param {Object.<string,*>} message Plain object to verify
  2435. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  2436. */
  2437. GCPing.verify = function verify(message) {
  2438. if (typeof message !== "object" || message === null)
  2439. return "object expected";
  2440. if (!$util.isInteger(message.now) && !(message.now && $util.isInteger(message.now.low) && $util.isInteger(message.now.high)))
  2441. return "now: integer|Long expected";
  2442. return null;
  2443. };
  2444. /**
  2445. * Creates a GCPing message from a plain object. Also converts values to their respective internal types.
  2446. * @function fromObject
  2447. * @memberof pb.GCPing
  2448. * @static
  2449. * @param {Object.<string,*>} object Plain object
  2450. * @returns {pb.GCPing} GCPing
  2451. */
  2452. GCPing.fromObject = function fromObject(object) {
  2453. if (object instanceof $root.pb.GCPing)
  2454. return object;
  2455. var message = new $root.pb.GCPing();
  2456. if (object.now != null)
  2457. if ($util.Long)
  2458. (message.now = $util.Long.fromValue(object.now)).unsigned = false;
  2459. else if (typeof object.now === "string")
  2460. message.now = parseInt(object.now, 10);
  2461. else if (typeof object.now === "number")
  2462. message.now = object.now;
  2463. else if (typeof object.now === "object")
  2464. message.now = new $util.LongBits(object.now.low >>> 0, object.now.high >>> 0).toNumber();
  2465. return message;
  2466. };
  2467. /**
  2468. * Creates a plain object from a GCPing message. Also converts values to other types if specified.
  2469. * @function toObject
  2470. * @memberof pb.GCPing
  2471. * @static
  2472. * @param {pb.GCPing} message GCPing
  2473. * @param {$protobuf.IConversionOptions} [options] Conversion options
  2474. * @returns {Object.<string,*>} Plain object
  2475. */
  2476. GCPing.toObject = function toObject(message, options) {
  2477. if (!options)
  2478. options = {};
  2479. var object = {};
  2480. if (options.defaults)
  2481. if ($util.Long) {
  2482. var long = new $util.Long(0, 0, false);
  2483. object.now = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  2484. } else
  2485. object.now = options.longs === String ? "0" : 0;
  2486. if (message.now != null && message.hasOwnProperty("now"))
  2487. if (typeof message.now === "number")
  2488. object.now = options.longs === String ? String(message.now) : message.now;
  2489. else
  2490. object.now = options.longs === String ? $util.Long.prototype.toString.call(message.now) : options.longs === Number ? new $util.LongBits(message.now.low >>> 0, message.now.high >>> 0).toNumber() : message.now;
  2491. return object;
  2492. };
  2493. /**
  2494. * Converts this GCPing to JSON.
  2495. * @function toJSON
  2496. * @memberof pb.GCPing
  2497. * @instance
  2498. * @returns {Object.<string,*>} JSON object
  2499. */
  2500. GCPing.prototype.toJSON = function toJSON() {
  2501. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  2502. };
  2503. return GCPing;
  2504. })();
  2505. return pb;
  2506. })();
  2507. $root.guandan = (function() {
  2508. /**
  2509. * Namespace guandan.
  2510. * @exports guandan
  2511. * @namespace
  2512. */
  2513. var guandan = {};
  2514. guandan.CGJoinRoom = (function() {
  2515. /**
  2516. * Properties of a CGJoinRoom.
  2517. * @memberof guandan
  2518. * @interface ICGJoinRoom
  2519. * @property {number|Long} roomId CGJoinRoom roomId
  2520. */
  2521. /**
  2522. * Constructs a new CGJoinRoom.
  2523. * @memberof guandan
  2524. * @classdesc Represents a CGJoinRoom.
  2525. * @implements ICGJoinRoom
  2526. * @constructor
  2527. * @param {guandan.ICGJoinRoom=} [properties] Properties to set
  2528. */
  2529. function CGJoinRoom(properties) {
  2530. if (properties)
  2531. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  2532. if (properties[keys[i]] != null)
  2533. this[keys[i]] = properties[keys[i]];
  2534. }
  2535. /**
  2536. * CGJoinRoom roomId.
  2537. * @member {number|Long} roomId
  2538. * @memberof guandan.CGJoinRoom
  2539. * @instance
  2540. */
  2541. CGJoinRoom.prototype.roomId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  2542. /**
  2543. * Creates a new CGJoinRoom instance using the specified properties.
  2544. * @function create
  2545. * @memberof guandan.CGJoinRoom
  2546. * @static
  2547. * @param {guandan.ICGJoinRoom=} [properties] Properties to set
  2548. * @returns {guandan.CGJoinRoom} CGJoinRoom instance
  2549. */
  2550. CGJoinRoom.create = function create(properties) {
  2551. return new CGJoinRoom(properties);
  2552. };
  2553. /**
  2554. * Encodes the specified CGJoinRoom message. Does not implicitly {@link guandan.CGJoinRoom.verify|verify} messages.
  2555. * @function encode
  2556. * @memberof guandan.CGJoinRoom
  2557. * @static
  2558. * @param {guandan.ICGJoinRoom} message CGJoinRoom message or plain object to encode
  2559. * @param {$protobuf.Writer} [writer] Writer to encode to
  2560. * @returns {$protobuf.Writer} Writer
  2561. */
  2562. CGJoinRoom.encode = function encode(message, writer) {
  2563. if (!writer)
  2564. writer = $Writer.create();
  2565. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.roomId);
  2566. return writer;
  2567. };
  2568. /**
  2569. * Encodes the specified CGJoinRoom message, length delimited. Does not implicitly {@link guandan.CGJoinRoom.verify|verify} messages.
  2570. * @function encodeDelimited
  2571. * @memberof guandan.CGJoinRoom
  2572. * @static
  2573. * @param {guandan.ICGJoinRoom} message CGJoinRoom message or plain object to encode
  2574. * @param {$protobuf.Writer} [writer] Writer to encode to
  2575. * @returns {$protobuf.Writer} Writer
  2576. */
  2577. CGJoinRoom.encodeDelimited = function encodeDelimited(message, writer) {
  2578. return this.encode(message, writer).ldelim();
  2579. };
  2580. /**
  2581. * Decodes a CGJoinRoom message from the specified reader or buffer.
  2582. * @function decode
  2583. * @memberof guandan.CGJoinRoom
  2584. * @static
  2585. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  2586. * @param {number} [length] Message length if known beforehand
  2587. * @returns {guandan.CGJoinRoom} CGJoinRoom
  2588. * @throws {Error} If the payload is not a reader or valid buffer
  2589. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2590. */
  2591. CGJoinRoom.decode = function decode(reader, length) {
  2592. if (!(reader instanceof $Reader))
  2593. reader = $Reader.create(reader);
  2594. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.CGJoinRoom();
  2595. while (reader.pos < end) {
  2596. var tag = reader.uint32();
  2597. switch (tag >>> 3) {
  2598. case 1:
  2599. message.roomId = reader.int64();
  2600. break;
  2601. default:
  2602. reader.skipType(tag & 7);
  2603. break;
  2604. }
  2605. }
  2606. if (!message.hasOwnProperty("roomId"))
  2607. throw $util.ProtocolError("missing required 'roomId'", { instance: message });
  2608. return message;
  2609. };
  2610. /**
  2611. * Decodes a CGJoinRoom message from the specified reader or buffer, length delimited.
  2612. * @function decodeDelimited
  2613. * @memberof guandan.CGJoinRoom
  2614. * @static
  2615. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  2616. * @returns {guandan.CGJoinRoom} CGJoinRoom
  2617. * @throws {Error} If the payload is not a reader or valid buffer
  2618. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2619. */
  2620. CGJoinRoom.decodeDelimited = function decodeDelimited(reader) {
  2621. if (!(reader instanceof $Reader))
  2622. reader = new $Reader(reader);
  2623. return this.decode(reader, reader.uint32());
  2624. };
  2625. /**
  2626. * Verifies a CGJoinRoom message.
  2627. * @function verify
  2628. * @memberof guandan.CGJoinRoom
  2629. * @static
  2630. * @param {Object.<string,*>} message Plain object to verify
  2631. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  2632. */
  2633. CGJoinRoom.verify = function verify(message) {
  2634. if (typeof message !== "object" || message === null)
  2635. return "object expected";
  2636. if (!$util.isInteger(message.roomId) && !(message.roomId && $util.isInteger(message.roomId.low) && $util.isInteger(message.roomId.high)))
  2637. return "roomId: integer|Long expected";
  2638. return null;
  2639. };
  2640. /**
  2641. * Creates a CGJoinRoom message from a plain object. Also converts values to their respective internal types.
  2642. * @function fromObject
  2643. * @memberof guandan.CGJoinRoom
  2644. * @static
  2645. * @param {Object.<string,*>} object Plain object
  2646. * @returns {guandan.CGJoinRoom} CGJoinRoom
  2647. */
  2648. CGJoinRoom.fromObject = function fromObject(object) {
  2649. if (object instanceof $root.guandan.CGJoinRoom)
  2650. return object;
  2651. var message = new $root.guandan.CGJoinRoom();
  2652. if (object.roomId != null)
  2653. if ($util.Long)
  2654. (message.roomId = $util.Long.fromValue(object.roomId)).unsigned = false;
  2655. else if (typeof object.roomId === "string")
  2656. message.roomId = parseInt(object.roomId, 10);
  2657. else if (typeof object.roomId === "number")
  2658. message.roomId = object.roomId;
  2659. else if (typeof object.roomId === "object")
  2660. message.roomId = new $util.LongBits(object.roomId.low >>> 0, object.roomId.high >>> 0).toNumber();
  2661. return message;
  2662. };
  2663. /**
  2664. * Creates a plain object from a CGJoinRoom message. Also converts values to other types if specified.
  2665. * @function toObject
  2666. * @memberof guandan.CGJoinRoom
  2667. * @static
  2668. * @param {guandan.CGJoinRoom} message CGJoinRoom
  2669. * @param {$protobuf.IConversionOptions} [options] Conversion options
  2670. * @returns {Object.<string,*>} Plain object
  2671. */
  2672. CGJoinRoom.toObject = function toObject(message, options) {
  2673. if (!options)
  2674. options = {};
  2675. var object = {};
  2676. if (options.defaults)
  2677. if ($util.Long) {
  2678. var long = new $util.Long(0, 0, false);
  2679. object.roomId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  2680. } else
  2681. object.roomId = options.longs === String ? "0" : 0;
  2682. if (message.roomId != null && message.hasOwnProperty("roomId"))
  2683. if (typeof message.roomId === "number")
  2684. object.roomId = options.longs === String ? String(message.roomId) : message.roomId;
  2685. else
  2686. object.roomId = options.longs === String ? $util.Long.prototype.toString.call(message.roomId) : options.longs === Number ? new $util.LongBits(message.roomId.low >>> 0, message.roomId.high >>> 0).toNumber() : message.roomId;
  2687. return object;
  2688. };
  2689. /**
  2690. * Converts this CGJoinRoom to JSON.
  2691. * @function toJSON
  2692. * @memberof guandan.CGJoinRoom
  2693. * @instance
  2694. * @returns {Object.<string,*>} JSON object
  2695. */
  2696. CGJoinRoom.prototype.toJSON = function toJSON() {
  2697. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  2698. };
  2699. return CGJoinRoom;
  2700. })();
  2701. guandan.GCPlayerInfo = (function() {
  2702. /**
  2703. * Properties of a GCPlayerInfo.
  2704. * @memberof guandan
  2705. * @interface IGCPlayerInfo
  2706. * @property {number|Long} playerId GCPlayerInfo playerId
  2707. * @property {string} image GCPlayerInfo image
  2708. * @property {string} ip GCPlayerInfo ip
  2709. * @property {number|Long} score GCPlayerInfo score
  2710. * @property {number} position GCPlayerInfo position
  2711. * @property {number} state GCPlayerInfo state
  2712. * @property {number|null} [cardNum] GCPlayerInfo cardNum
  2713. * @property {Array.<number>|null} [cardList] GCPlayerInfo cardList
  2714. * @property {number} actualState GCPlayerInfo actualState
  2715. * @property {string} name GCPlayerInfo name
  2716. * @property {number} sex GCPlayerInfo sex
  2717. * @property {number|Long|null} [gold] GCPlayerInfo gold
  2718. * @property {boolean|null} [auto] GCPlayerInfo auto
  2719. * @property {number|null} [isDouble] GCPlayerInfo isDouble
  2720. * @property {Array.<number>|null} [cards] GCPlayerInfo cards
  2721. * @property {boolean|null} [isPlayCircle] GCPlayerInfo isPlayCircle
  2722. * @property {number|null} [settleIndex] GCPlayerInfo settleIndex
  2723. */
  2724. /**
  2725. * Constructs a new GCPlayerInfo.
  2726. * @memberof guandan
  2727. * @classdesc Represents a GCPlayerInfo.
  2728. * @implements IGCPlayerInfo
  2729. * @constructor
  2730. * @param {guandan.IGCPlayerInfo=} [properties] Properties to set
  2731. */
  2732. function GCPlayerInfo(properties) {
  2733. this.cardList = [];
  2734. this.cards = [];
  2735. if (properties)
  2736. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  2737. if (properties[keys[i]] != null)
  2738. this[keys[i]] = properties[keys[i]];
  2739. }
  2740. /**
  2741. * GCPlayerInfo playerId.
  2742. * @member {number|Long} playerId
  2743. * @memberof guandan.GCPlayerInfo
  2744. * @instance
  2745. */
  2746. GCPlayerInfo.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  2747. /**
  2748. * GCPlayerInfo image.
  2749. * @member {string} image
  2750. * @memberof guandan.GCPlayerInfo
  2751. * @instance
  2752. */
  2753. GCPlayerInfo.prototype.image = "";
  2754. /**
  2755. * GCPlayerInfo ip.
  2756. * @member {string} ip
  2757. * @memberof guandan.GCPlayerInfo
  2758. * @instance
  2759. */
  2760. GCPlayerInfo.prototype.ip = "";
  2761. /**
  2762. * GCPlayerInfo score.
  2763. * @member {number|Long} score
  2764. * @memberof guandan.GCPlayerInfo
  2765. * @instance
  2766. */
  2767. GCPlayerInfo.prototype.score = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  2768. /**
  2769. * GCPlayerInfo position.
  2770. * @member {number} position
  2771. * @memberof guandan.GCPlayerInfo
  2772. * @instance
  2773. */
  2774. GCPlayerInfo.prototype.position = 0;
  2775. /**
  2776. * GCPlayerInfo state.
  2777. * @member {number} state
  2778. * @memberof guandan.GCPlayerInfo
  2779. * @instance
  2780. */
  2781. GCPlayerInfo.prototype.state = 0;
  2782. /**
  2783. * GCPlayerInfo cardNum.
  2784. * @member {number} cardNum
  2785. * @memberof guandan.GCPlayerInfo
  2786. * @instance
  2787. */
  2788. GCPlayerInfo.prototype.cardNum = 0;
  2789. /**
  2790. * GCPlayerInfo cardList.
  2791. * @member {Array.<number>} cardList
  2792. * @memberof guandan.GCPlayerInfo
  2793. * @instance
  2794. */
  2795. GCPlayerInfo.prototype.cardList = $util.emptyArray;
  2796. /**
  2797. * GCPlayerInfo actualState.
  2798. * @member {number} actualState
  2799. * @memberof guandan.GCPlayerInfo
  2800. * @instance
  2801. */
  2802. GCPlayerInfo.prototype.actualState = 0;
  2803. /**
  2804. * GCPlayerInfo name.
  2805. * @member {string} name
  2806. * @memberof guandan.GCPlayerInfo
  2807. * @instance
  2808. */
  2809. GCPlayerInfo.prototype.name = "";
  2810. /**
  2811. * GCPlayerInfo sex.
  2812. * @member {number} sex
  2813. * @memberof guandan.GCPlayerInfo
  2814. * @instance
  2815. */
  2816. GCPlayerInfo.prototype.sex = 0;
  2817. /**
  2818. * GCPlayerInfo gold.
  2819. * @member {number|Long} gold
  2820. * @memberof guandan.GCPlayerInfo
  2821. * @instance
  2822. */
  2823. GCPlayerInfo.prototype.gold = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  2824. /**
  2825. * GCPlayerInfo auto.
  2826. * @member {boolean} auto
  2827. * @memberof guandan.GCPlayerInfo
  2828. * @instance
  2829. */
  2830. GCPlayerInfo.prototype.auto = false;
  2831. /**
  2832. * GCPlayerInfo isDouble.
  2833. * @member {number} isDouble
  2834. * @memberof guandan.GCPlayerInfo
  2835. * @instance
  2836. */
  2837. GCPlayerInfo.prototype.isDouble = 0;
  2838. /**
  2839. * GCPlayerInfo cards.
  2840. * @member {Array.<number>} cards
  2841. * @memberof guandan.GCPlayerInfo
  2842. * @instance
  2843. */
  2844. GCPlayerInfo.prototype.cards = $util.emptyArray;
  2845. /**
  2846. * GCPlayerInfo isPlayCircle.
  2847. * @member {boolean} isPlayCircle
  2848. * @memberof guandan.GCPlayerInfo
  2849. * @instance
  2850. */
  2851. GCPlayerInfo.prototype.isPlayCircle = false;
  2852. /**
  2853. * GCPlayerInfo settleIndex.
  2854. * @member {number} settleIndex
  2855. * @memberof guandan.GCPlayerInfo
  2856. * @instance
  2857. */
  2858. GCPlayerInfo.prototype.settleIndex = 0;
  2859. /**
  2860. * Creates a new GCPlayerInfo instance using the specified properties.
  2861. * @function create
  2862. * @memberof guandan.GCPlayerInfo
  2863. * @static
  2864. * @param {guandan.IGCPlayerInfo=} [properties] Properties to set
  2865. * @returns {guandan.GCPlayerInfo} GCPlayerInfo instance
  2866. */
  2867. GCPlayerInfo.create = function create(properties) {
  2868. return new GCPlayerInfo(properties);
  2869. };
  2870. /**
  2871. * Encodes the specified GCPlayerInfo message. Does not implicitly {@link guandan.GCPlayerInfo.verify|verify} messages.
  2872. * @function encode
  2873. * @memberof guandan.GCPlayerInfo
  2874. * @static
  2875. * @param {guandan.IGCPlayerInfo} message GCPlayerInfo message or plain object to encode
  2876. * @param {$protobuf.Writer} [writer] Writer to encode to
  2877. * @returns {$protobuf.Writer} Writer
  2878. */
  2879. GCPlayerInfo.encode = function encode(message, writer) {
  2880. if (!writer)
  2881. writer = $Writer.create();
  2882. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
  2883. writer.uint32(/* id 2, wireType 2 =*/18).string(message.image);
  2884. writer.uint32(/* id 3, wireType 2 =*/26).string(message.ip);
  2885. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.score);
  2886. writer.uint32(/* id 5, wireType 0 =*/40).int32(message.position);
  2887. writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state);
  2888. if (message.cardNum != null && Object.hasOwnProperty.call(message, "cardNum"))
  2889. writer.uint32(/* id 7, wireType 0 =*/56).int32(message.cardNum);
  2890. if (message.cardList != null && message.cardList.length)
  2891. for (var i = 0; i < message.cardList.length; ++i)
  2892. writer.uint32(/* id 8, wireType 0 =*/64).int32(message.cardList[i]);
  2893. writer.uint32(/* id 9, wireType 0 =*/72).int32(message.actualState);
  2894. writer.uint32(/* id 10, wireType 2 =*/82).string(message.name);
  2895. writer.uint32(/* id 11, wireType 0 =*/88).int32(message.sex);
  2896. if (message.gold != null && Object.hasOwnProperty.call(message, "gold"))
  2897. writer.uint32(/* id 12, wireType 0 =*/96).int64(message.gold);
  2898. if (message.auto != null && Object.hasOwnProperty.call(message, "auto"))
  2899. writer.uint32(/* id 13, wireType 0 =*/104).bool(message.auto);
  2900. if (message.isDouble != null && Object.hasOwnProperty.call(message, "isDouble"))
  2901. writer.uint32(/* id 14, wireType 0 =*/112).int32(message.isDouble);
  2902. if (message.cards != null && message.cards.length)
  2903. for (var i = 0; i < message.cards.length; ++i)
  2904. writer.uint32(/* id 15, wireType 0 =*/120).int32(message.cards[i]);
  2905. if (message.isPlayCircle != null && Object.hasOwnProperty.call(message, "isPlayCircle"))
  2906. writer.uint32(/* id 16, wireType 0 =*/128).bool(message.isPlayCircle);
  2907. if (message.settleIndex != null && Object.hasOwnProperty.call(message, "settleIndex"))
  2908. writer.uint32(/* id 17, wireType 0 =*/136).int32(message.settleIndex);
  2909. return writer;
  2910. };
  2911. /**
  2912. * Encodes the specified GCPlayerInfo message, length delimited. Does not implicitly {@link guandan.GCPlayerInfo.verify|verify} messages.
  2913. * @function encodeDelimited
  2914. * @memberof guandan.GCPlayerInfo
  2915. * @static
  2916. * @param {guandan.IGCPlayerInfo} message GCPlayerInfo message or plain object to encode
  2917. * @param {$protobuf.Writer} [writer] Writer to encode to
  2918. * @returns {$protobuf.Writer} Writer
  2919. */
  2920. GCPlayerInfo.encodeDelimited = function encodeDelimited(message, writer) {
  2921. return this.encode(message, writer).ldelim();
  2922. };
  2923. /**
  2924. * Decodes a GCPlayerInfo message from the specified reader or buffer.
  2925. * @function decode
  2926. * @memberof guandan.GCPlayerInfo
  2927. * @static
  2928. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  2929. * @param {number} [length] Message length if known beforehand
  2930. * @returns {guandan.GCPlayerInfo} GCPlayerInfo
  2931. * @throws {Error} If the payload is not a reader or valid buffer
  2932. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2933. */
  2934. GCPlayerInfo.decode = function decode(reader, length) {
  2935. if (!(reader instanceof $Reader))
  2936. reader = $Reader.create(reader);
  2937. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCPlayerInfo();
  2938. while (reader.pos < end) {
  2939. var tag = reader.uint32();
  2940. switch (tag >>> 3) {
  2941. case 1:
  2942. message.playerId = reader.int64();
  2943. break;
  2944. case 2:
  2945. message.image = reader.string();
  2946. break;
  2947. case 3:
  2948. message.ip = reader.string();
  2949. break;
  2950. case 4:
  2951. message.score = reader.int64();
  2952. break;
  2953. case 5:
  2954. message.position = reader.int32();
  2955. break;
  2956. case 6:
  2957. message.state = reader.int32();
  2958. break;
  2959. case 7:
  2960. message.cardNum = reader.int32();
  2961. break;
  2962. case 8:
  2963. if (!(message.cardList && message.cardList.length))
  2964. message.cardList = [];
  2965. if ((tag & 7) === 2) {
  2966. var end2 = reader.uint32() + reader.pos;
  2967. while (reader.pos < end2)
  2968. message.cardList.push(reader.int32());
  2969. } else
  2970. message.cardList.push(reader.int32());
  2971. break;
  2972. case 9:
  2973. message.actualState = reader.int32();
  2974. break;
  2975. case 10:
  2976. message.name = reader.string();
  2977. break;
  2978. case 11:
  2979. message.sex = reader.int32();
  2980. break;
  2981. case 12:
  2982. message.gold = reader.int64();
  2983. break;
  2984. case 13:
  2985. message.auto = reader.bool();
  2986. break;
  2987. case 14:
  2988. message.isDouble = reader.int32();
  2989. break;
  2990. case 15:
  2991. if (!(message.cards && message.cards.length))
  2992. message.cards = [];
  2993. if ((tag & 7) === 2) {
  2994. var end2 = reader.uint32() + reader.pos;
  2995. while (reader.pos < end2)
  2996. message.cards.push(reader.int32());
  2997. } else
  2998. message.cards.push(reader.int32());
  2999. break;
  3000. case 16:
  3001. message.isPlayCircle = reader.bool();
  3002. break;
  3003. case 17:
  3004. message.settleIndex = reader.int32();
  3005. break;
  3006. default:
  3007. reader.skipType(tag & 7);
  3008. break;
  3009. }
  3010. }
  3011. if (!message.hasOwnProperty("playerId"))
  3012. throw $util.ProtocolError("missing required 'playerId'", { instance: message });
  3013. if (!message.hasOwnProperty("image"))
  3014. throw $util.ProtocolError("missing required 'image'", { instance: message });
  3015. if (!message.hasOwnProperty("ip"))
  3016. throw $util.ProtocolError("missing required 'ip'", { instance: message });
  3017. if (!message.hasOwnProperty("score"))
  3018. throw $util.ProtocolError("missing required 'score'", { instance: message });
  3019. if (!message.hasOwnProperty("position"))
  3020. throw $util.ProtocolError("missing required 'position'", { instance: message });
  3021. if (!message.hasOwnProperty("state"))
  3022. throw $util.ProtocolError("missing required 'state'", { instance: message });
  3023. if (!message.hasOwnProperty("actualState"))
  3024. throw $util.ProtocolError("missing required 'actualState'", { instance: message });
  3025. if (!message.hasOwnProperty("name"))
  3026. throw $util.ProtocolError("missing required 'name'", { instance: message });
  3027. if (!message.hasOwnProperty("sex"))
  3028. throw $util.ProtocolError("missing required 'sex'", { instance: message });
  3029. return message;
  3030. };
  3031. /**
  3032. * Decodes a GCPlayerInfo message from the specified reader or buffer, length delimited.
  3033. * @function decodeDelimited
  3034. * @memberof guandan.GCPlayerInfo
  3035. * @static
  3036. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  3037. * @returns {guandan.GCPlayerInfo} GCPlayerInfo
  3038. * @throws {Error} If the payload is not a reader or valid buffer
  3039. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3040. */
  3041. GCPlayerInfo.decodeDelimited = function decodeDelimited(reader) {
  3042. if (!(reader instanceof $Reader))
  3043. reader = new $Reader(reader);
  3044. return this.decode(reader, reader.uint32());
  3045. };
  3046. /**
  3047. * Verifies a GCPlayerInfo message.
  3048. * @function verify
  3049. * @memberof guandan.GCPlayerInfo
  3050. * @static
  3051. * @param {Object.<string,*>} message Plain object to verify
  3052. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  3053. */
  3054. GCPlayerInfo.verify = function verify(message) {
  3055. if (typeof message !== "object" || message === null)
  3056. return "object expected";
  3057. if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
  3058. return "playerId: integer|Long expected";
  3059. if (!$util.isString(message.image))
  3060. return "image: string expected";
  3061. if (!$util.isString(message.ip))
  3062. return "ip: string expected";
  3063. if (!$util.isInteger(message.score) && !(message.score && $util.isInteger(message.score.low) && $util.isInteger(message.score.high)))
  3064. return "score: integer|Long expected";
  3065. if (!$util.isInteger(message.position))
  3066. return "position: integer expected";
  3067. if (!$util.isInteger(message.state))
  3068. return "state: integer expected";
  3069. if (message.cardNum != null && message.hasOwnProperty("cardNum"))
  3070. if (!$util.isInteger(message.cardNum))
  3071. return "cardNum: integer expected";
  3072. if (message.cardList != null && message.hasOwnProperty("cardList")) {
  3073. if (!Array.isArray(message.cardList))
  3074. return "cardList: array expected";
  3075. for (var i = 0; i < message.cardList.length; ++i)
  3076. if (!$util.isInteger(message.cardList[i]))
  3077. return "cardList: integer[] expected";
  3078. }
  3079. if (!$util.isInteger(message.actualState))
  3080. return "actualState: integer expected";
  3081. if (!$util.isString(message.name))
  3082. return "name: string expected";
  3083. if (!$util.isInteger(message.sex))
  3084. return "sex: integer expected";
  3085. if (message.gold != null && message.hasOwnProperty("gold"))
  3086. if (!$util.isInteger(message.gold) && !(message.gold && $util.isInteger(message.gold.low) && $util.isInteger(message.gold.high)))
  3087. return "gold: integer|Long expected";
  3088. if (message.auto != null && message.hasOwnProperty("auto"))
  3089. if (typeof message.auto !== "boolean")
  3090. return "auto: boolean expected";
  3091. if (message.isDouble != null && message.hasOwnProperty("isDouble"))
  3092. if (!$util.isInteger(message.isDouble))
  3093. return "isDouble: integer expected";
  3094. if (message.cards != null && message.hasOwnProperty("cards")) {
  3095. if (!Array.isArray(message.cards))
  3096. return "cards: array expected";
  3097. for (var i = 0; i < message.cards.length; ++i)
  3098. if (!$util.isInteger(message.cards[i]))
  3099. return "cards: integer[] expected";
  3100. }
  3101. if (message.isPlayCircle != null && message.hasOwnProperty("isPlayCircle"))
  3102. if (typeof message.isPlayCircle !== "boolean")
  3103. return "isPlayCircle: boolean expected";
  3104. if (message.settleIndex != null && message.hasOwnProperty("settleIndex"))
  3105. if (!$util.isInteger(message.settleIndex))
  3106. return "settleIndex: integer expected";
  3107. return null;
  3108. };
  3109. /**
  3110. * Creates a GCPlayerInfo message from a plain object. Also converts values to their respective internal types.
  3111. * @function fromObject
  3112. * @memberof guandan.GCPlayerInfo
  3113. * @static
  3114. * @param {Object.<string,*>} object Plain object
  3115. * @returns {guandan.GCPlayerInfo} GCPlayerInfo
  3116. */
  3117. GCPlayerInfo.fromObject = function fromObject(object) {
  3118. if (object instanceof $root.guandan.GCPlayerInfo)
  3119. return object;
  3120. var message = new $root.guandan.GCPlayerInfo();
  3121. if (object.playerId != null)
  3122. if ($util.Long)
  3123. (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
  3124. else if (typeof object.playerId === "string")
  3125. message.playerId = parseInt(object.playerId, 10);
  3126. else if (typeof object.playerId === "number")
  3127. message.playerId = object.playerId;
  3128. else if (typeof object.playerId === "object")
  3129. message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
  3130. if (object.image != null)
  3131. message.image = String(object.image);
  3132. if (object.ip != null)
  3133. message.ip = String(object.ip);
  3134. if (object.score != null)
  3135. if ($util.Long)
  3136. (message.score = $util.Long.fromValue(object.score)).unsigned = false;
  3137. else if (typeof object.score === "string")
  3138. message.score = parseInt(object.score, 10);
  3139. else if (typeof object.score === "number")
  3140. message.score = object.score;
  3141. else if (typeof object.score === "object")
  3142. message.score = new $util.LongBits(object.score.low >>> 0, object.score.high >>> 0).toNumber();
  3143. if (object.position != null)
  3144. message.position = object.position | 0;
  3145. if (object.state != null)
  3146. message.state = object.state | 0;
  3147. if (object.cardNum != null)
  3148. message.cardNum = object.cardNum | 0;
  3149. if (object.cardList) {
  3150. if (!Array.isArray(object.cardList))
  3151. throw TypeError(".guandan.GCPlayerInfo.cardList: array expected");
  3152. message.cardList = [];
  3153. for (var i = 0; i < object.cardList.length; ++i)
  3154. message.cardList[i] = object.cardList[i] | 0;
  3155. }
  3156. if (object.actualState != null)
  3157. message.actualState = object.actualState | 0;
  3158. if (object.name != null)
  3159. message.name = String(object.name);
  3160. if (object.sex != null)
  3161. message.sex = object.sex | 0;
  3162. if (object.gold != null)
  3163. if ($util.Long)
  3164. (message.gold = $util.Long.fromValue(object.gold)).unsigned = false;
  3165. else if (typeof object.gold === "string")
  3166. message.gold = parseInt(object.gold, 10);
  3167. else if (typeof object.gold === "number")
  3168. message.gold = object.gold;
  3169. else if (typeof object.gold === "object")
  3170. message.gold = new $util.LongBits(object.gold.low >>> 0, object.gold.high >>> 0).toNumber();
  3171. if (object.auto != null)
  3172. message.auto = Boolean(object.auto);
  3173. if (object.isDouble != null)
  3174. message.isDouble = object.isDouble | 0;
  3175. if (object.cards) {
  3176. if (!Array.isArray(object.cards))
  3177. throw TypeError(".guandan.GCPlayerInfo.cards: array expected");
  3178. message.cards = [];
  3179. for (var i = 0; i < object.cards.length; ++i)
  3180. message.cards[i] = object.cards[i] | 0;
  3181. }
  3182. if (object.isPlayCircle != null)
  3183. message.isPlayCircle = Boolean(object.isPlayCircle);
  3184. if (object.settleIndex != null)
  3185. message.settleIndex = object.settleIndex | 0;
  3186. return message;
  3187. };
  3188. /**
  3189. * Creates a plain object from a GCPlayerInfo message. Also converts values to other types if specified.
  3190. * @function toObject
  3191. * @memberof guandan.GCPlayerInfo
  3192. * @static
  3193. * @param {guandan.GCPlayerInfo} message GCPlayerInfo
  3194. * @param {$protobuf.IConversionOptions} [options] Conversion options
  3195. * @returns {Object.<string,*>} Plain object
  3196. */
  3197. GCPlayerInfo.toObject = function toObject(message, options) {
  3198. if (!options)
  3199. options = {};
  3200. var object = {};
  3201. if (options.arrays || options.defaults) {
  3202. object.cardList = [];
  3203. object.cards = [];
  3204. }
  3205. if (options.defaults) {
  3206. if ($util.Long) {
  3207. var long = new $util.Long(0, 0, false);
  3208. object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  3209. } else
  3210. object.playerId = options.longs === String ? "0" : 0;
  3211. object.image = "";
  3212. object.ip = "";
  3213. if ($util.Long) {
  3214. var long = new $util.Long(0, 0, false);
  3215. object.score = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  3216. } else
  3217. object.score = options.longs === String ? "0" : 0;
  3218. object.position = 0;
  3219. object.state = 0;
  3220. object.cardNum = 0;
  3221. object.actualState = 0;
  3222. object.name = "";
  3223. object.sex = 0;
  3224. if ($util.Long) {
  3225. var long = new $util.Long(0, 0, false);
  3226. object.gold = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  3227. } else
  3228. object.gold = options.longs === String ? "0" : 0;
  3229. object.auto = false;
  3230. object.isDouble = 0;
  3231. object.isPlayCircle = false;
  3232. object.settleIndex = 0;
  3233. }
  3234. if (message.playerId != null && message.hasOwnProperty("playerId"))
  3235. if (typeof message.playerId === "number")
  3236. object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
  3237. else
  3238. object.playerId = options.longs === String ? $util.Long.prototype.toString.call(message.playerId) : options.longs === Number ? new $util.LongBits(message.playerId.low >>> 0, message.playerId.high >>> 0).toNumber() : message.playerId;
  3239. if (message.image != null && message.hasOwnProperty("image"))
  3240. object.image = message.image;
  3241. if (message.ip != null && message.hasOwnProperty("ip"))
  3242. object.ip = message.ip;
  3243. if (message.score != null && message.hasOwnProperty("score"))
  3244. if (typeof message.score === "number")
  3245. object.score = options.longs === String ? String(message.score) : message.score;
  3246. else
  3247. object.score = options.longs === String ? $util.Long.prototype.toString.call(message.score) : options.longs === Number ? new $util.LongBits(message.score.low >>> 0, message.score.high >>> 0).toNumber() : message.score;
  3248. if (message.position != null && message.hasOwnProperty("position"))
  3249. object.position = message.position;
  3250. if (message.state != null && message.hasOwnProperty("state"))
  3251. object.state = message.state;
  3252. if (message.cardNum != null && message.hasOwnProperty("cardNum"))
  3253. object.cardNum = message.cardNum;
  3254. if (message.cardList && message.cardList.length) {
  3255. object.cardList = [];
  3256. for (var j = 0; j < message.cardList.length; ++j)
  3257. object.cardList[j] = message.cardList[j];
  3258. }
  3259. if (message.actualState != null && message.hasOwnProperty("actualState"))
  3260. object.actualState = message.actualState;
  3261. if (message.name != null && message.hasOwnProperty("name"))
  3262. object.name = message.name;
  3263. if (message.sex != null && message.hasOwnProperty("sex"))
  3264. object.sex = message.sex;
  3265. if (message.gold != null && message.hasOwnProperty("gold"))
  3266. if (typeof message.gold === "number")
  3267. object.gold = options.longs === String ? String(message.gold) : message.gold;
  3268. else
  3269. object.gold = options.longs === String ? $util.Long.prototype.toString.call(message.gold) : options.longs === Number ? new $util.LongBits(message.gold.low >>> 0, message.gold.high >>> 0).toNumber() : message.gold;
  3270. if (message.auto != null && message.hasOwnProperty("auto"))
  3271. object.auto = message.auto;
  3272. if (message.isDouble != null && message.hasOwnProperty("isDouble"))
  3273. object.isDouble = message.isDouble;
  3274. if (message.cards && message.cards.length) {
  3275. object.cards = [];
  3276. for (var j = 0; j < message.cards.length; ++j)
  3277. object.cards[j] = message.cards[j];
  3278. }
  3279. if (message.isPlayCircle != null && message.hasOwnProperty("isPlayCircle"))
  3280. object.isPlayCircle = message.isPlayCircle;
  3281. if (message.settleIndex != null && message.hasOwnProperty("settleIndex"))
  3282. object.settleIndex = message.settleIndex;
  3283. return object;
  3284. };
  3285. /**
  3286. * Converts this GCPlayerInfo to JSON.
  3287. * @function toJSON
  3288. * @memberof guandan.GCPlayerInfo
  3289. * @instance
  3290. * @returns {Object.<string,*>} JSON object
  3291. */
  3292. GCPlayerInfo.prototype.toJSON = function toJSON() {
  3293. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  3294. };
  3295. return GCPlayerInfo;
  3296. })();
  3297. guandan.GCJinGongInfo = (function() {
  3298. /**
  3299. * Properties of a GCJinGongInfo.
  3300. * @memberof guandan
  3301. * @interface IGCJinGongInfo
  3302. * @property {number|Long} playerId GCJinGongInfo playerId
  3303. * @property {Array.<number>|null} [cards] GCJinGongInfo cards
  3304. */
  3305. /**
  3306. * Constructs a new GCJinGongInfo.
  3307. * @memberof guandan
  3308. * @classdesc Represents a GCJinGongInfo.
  3309. * @implements IGCJinGongInfo
  3310. * @constructor
  3311. * @param {guandan.IGCJinGongInfo=} [properties] Properties to set
  3312. */
  3313. function GCJinGongInfo(properties) {
  3314. this.cards = [];
  3315. if (properties)
  3316. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  3317. if (properties[keys[i]] != null)
  3318. this[keys[i]] = properties[keys[i]];
  3319. }
  3320. /**
  3321. * GCJinGongInfo playerId.
  3322. * @member {number|Long} playerId
  3323. * @memberof guandan.GCJinGongInfo
  3324. * @instance
  3325. */
  3326. GCJinGongInfo.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  3327. /**
  3328. * GCJinGongInfo cards.
  3329. * @member {Array.<number>} cards
  3330. * @memberof guandan.GCJinGongInfo
  3331. * @instance
  3332. */
  3333. GCJinGongInfo.prototype.cards = $util.emptyArray;
  3334. /**
  3335. * Creates a new GCJinGongInfo instance using the specified properties.
  3336. * @function create
  3337. * @memberof guandan.GCJinGongInfo
  3338. * @static
  3339. * @param {guandan.IGCJinGongInfo=} [properties] Properties to set
  3340. * @returns {guandan.GCJinGongInfo} GCJinGongInfo instance
  3341. */
  3342. GCJinGongInfo.create = function create(properties) {
  3343. return new GCJinGongInfo(properties);
  3344. };
  3345. /**
  3346. * Encodes the specified GCJinGongInfo message. Does not implicitly {@link guandan.GCJinGongInfo.verify|verify} messages.
  3347. * @function encode
  3348. * @memberof guandan.GCJinGongInfo
  3349. * @static
  3350. * @param {guandan.IGCJinGongInfo} message GCJinGongInfo message or plain object to encode
  3351. * @param {$protobuf.Writer} [writer] Writer to encode to
  3352. * @returns {$protobuf.Writer} Writer
  3353. */
  3354. GCJinGongInfo.encode = function encode(message, writer) {
  3355. if (!writer)
  3356. writer = $Writer.create();
  3357. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
  3358. if (message.cards != null && message.cards.length)
  3359. for (var i = 0; i < message.cards.length; ++i)
  3360. writer.uint32(/* id 2, wireType 0 =*/16).int32(message.cards[i]);
  3361. return writer;
  3362. };
  3363. /**
  3364. * Encodes the specified GCJinGongInfo message, length delimited. Does not implicitly {@link guandan.GCJinGongInfo.verify|verify} messages.
  3365. * @function encodeDelimited
  3366. * @memberof guandan.GCJinGongInfo
  3367. * @static
  3368. * @param {guandan.IGCJinGongInfo} message GCJinGongInfo message or plain object to encode
  3369. * @param {$protobuf.Writer} [writer] Writer to encode to
  3370. * @returns {$protobuf.Writer} Writer
  3371. */
  3372. GCJinGongInfo.encodeDelimited = function encodeDelimited(message, writer) {
  3373. return this.encode(message, writer).ldelim();
  3374. };
  3375. /**
  3376. * Decodes a GCJinGongInfo message from the specified reader or buffer.
  3377. * @function decode
  3378. * @memberof guandan.GCJinGongInfo
  3379. * @static
  3380. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  3381. * @param {number} [length] Message length if known beforehand
  3382. * @returns {guandan.GCJinGongInfo} GCJinGongInfo
  3383. * @throws {Error} If the payload is not a reader or valid buffer
  3384. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3385. */
  3386. GCJinGongInfo.decode = function decode(reader, length) {
  3387. if (!(reader instanceof $Reader))
  3388. reader = $Reader.create(reader);
  3389. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCJinGongInfo();
  3390. while (reader.pos < end) {
  3391. var tag = reader.uint32();
  3392. switch (tag >>> 3) {
  3393. case 1:
  3394. message.playerId = reader.int64();
  3395. break;
  3396. case 2:
  3397. if (!(message.cards && message.cards.length))
  3398. message.cards = [];
  3399. if ((tag & 7) === 2) {
  3400. var end2 = reader.uint32() + reader.pos;
  3401. while (reader.pos < end2)
  3402. message.cards.push(reader.int32());
  3403. } else
  3404. message.cards.push(reader.int32());
  3405. break;
  3406. default:
  3407. reader.skipType(tag & 7);
  3408. break;
  3409. }
  3410. }
  3411. if (!message.hasOwnProperty("playerId"))
  3412. throw $util.ProtocolError("missing required 'playerId'", { instance: message });
  3413. return message;
  3414. };
  3415. /**
  3416. * Decodes a GCJinGongInfo message from the specified reader or buffer, length delimited.
  3417. * @function decodeDelimited
  3418. * @memberof guandan.GCJinGongInfo
  3419. * @static
  3420. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  3421. * @returns {guandan.GCJinGongInfo} GCJinGongInfo
  3422. * @throws {Error} If the payload is not a reader or valid buffer
  3423. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3424. */
  3425. GCJinGongInfo.decodeDelimited = function decodeDelimited(reader) {
  3426. if (!(reader instanceof $Reader))
  3427. reader = new $Reader(reader);
  3428. return this.decode(reader, reader.uint32());
  3429. };
  3430. /**
  3431. * Verifies a GCJinGongInfo message.
  3432. * @function verify
  3433. * @memberof guandan.GCJinGongInfo
  3434. * @static
  3435. * @param {Object.<string,*>} message Plain object to verify
  3436. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  3437. */
  3438. GCJinGongInfo.verify = function verify(message) {
  3439. if (typeof message !== "object" || message === null)
  3440. return "object expected";
  3441. if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
  3442. return "playerId: integer|Long expected";
  3443. if (message.cards != null && message.hasOwnProperty("cards")) {
  3444. if (!Array.isArray(message.cards))
  3445. return "cards: array expected";
  3446. for (var i = 0; i < message.cards.length; ++i)
  3447. if (!$util.isInteger(message.cards[i]))
  3448. return "cards: integer[] expected";
  3449. }
  3450. return null;
  3451. };
  3452. /**
  3453. * Creates a GCJinGongInfo message from a plain object. Also converts values to their respective internal types.
  3454. * @function fromObject
  3455. * @memberof guandan.GCJinGongInfo
  3456. * @static
  3457. * @param {Object.<string,*>} object Plain object
  3458. * @returns {guandan.GCJinGongInfo} GCJinGongInfo
  3459. */
  3460. GCJinGongInfo.fromObject = function fromObject(object) {
  3461. if (object instanceof $root.guandan.GCJinGongInfo)
  3462. return object;
  3463. var message = new $root.guandan.GCJinGongInfo();
  3464. if (object.playerId != null)
  3465. if ($util.Long)
  3466. (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
  3467. else if (typeof object.playerId === "string")
  3468. message.playerId = parseInt(object.playerId, 10);
  3469. else if (typeof object.playerId === "number")
  3470. message.playerId = object.playerId;
  3471. else if (typeof object.playerId === "object")
  3472. message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
  3473. if (object.cards) {
  3474. if (!Array.isArray(object.cards))
  3475. throw TypeError(".guandan.GCJinGongInfo.cards: array expected");
  3476. message.cards = [];
  3477. for (var i = 0; i < object.cards.length; ++i)
  3478. message.cards[i] = object.cards[i] | 0;
  3479. }
  3480. return message;
  3481. };
  3482. /**
  3483. * Creates a plain object from a GCJinGongInfo message. Also converts values to other types if specified.
  3484. * @function toObject
  3485. * @memberof guandan.GCJinGongInfo
  3486. * @static
  3487. * @param {guandan.GCJinGongInfo} message GCJinGongInfo
  3488. * @param {$protobuf.IConversionOptions} [options] Conversion options
  3489. * @returns {Object.<string,*>} Plain object
  3490. */
  3491. GCJinGongInfo.toObject = function toObject(message, options) {
  3492. if (!options)
  3493. options = {};
  3494. var object = {};
  3495. if (options.arrays || options.defaults)
  3496. object.cards = [];
  3497. if (options.defaults)
  3498. if ($util.Long) {
  3499. var long = new $util.Long(0, 0, false);
  3500. object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  3501. } else
  3502. object.playerId = options.longs === String ? "0" : 0;
  3503. if (message.playerId != null && message.hasOwnProperty("playerId"))
  3504. if (typeof message.playerId === "number")
  3505. object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
  3506. else
  3507. object.playerId = options.longs === String ? $util.Long.prototype.toString.call(message.playerId) : options.longs === Number ? new $util.LongBits(message.playerId.low >>> 0, message.playerId.high >>> 0).toNumber() : message.playerId;
  3508. if (message.cards && message.cards.length) {
  3509. object.cards = [];
  3510. for (var j = 0; j < message.cards.length; ++j)
  3511. object.cards[j] = message.cards[j];
  3512. }
  3513. return object;
  3514. };
  3515. /**
  3516. * Converts this GCJinGongInfo to JSON.
  3517. * @function toJSON
  3518. * @memberof guandan.GCJinGongInfo
  3519. * @instance
  3520. * @returns {Object.<string,*>} JSON object
  3521. */
  3522. GCJinGongInfo.prototype.toJSON = function toJSON() {
  3523. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  3524. };
  3525. return GCJinGongInfo;
  3526. })();
  3527. guandan.GCHuanGongInfo = (function() {
  3528. /**
  3529. * Properties of a GCHuanGongInfo.
  3530. * @memberof guandan
  3531. * @interface IGCHuanGongInfo
  3532. * @property {number|Long} huanGongPlayerId GCHuanGongInfo huanGongPlayerId
  3533. * @property {number|Long} jinGongPlayerId GCHuanGongInfo jinGongPlayerId
  3534. * @property {Array.<number>|null} [huanGongCards] GCHuanGongInfo huanGongCards
  3535. * @property {Array.<number>|null} [jinGongCards] GCHuanGongInfo jinGongCards
  3536. */
  3537. /**
  3538. * Constructs a new GCHuanGongInfo.
  3539. * @memberof guandan
  3540. * @classdesc Represents a GCHuanGongInfo.
  3541. * @implements IGCHuanGongInfo
  3542. * @constructor
  3543. * @param {guandan.IGCHuanGongInfo=} [properties] Properties to set
  3544. */
  3545. function GCHuanGongInfo(properties) {
  3546. this.huanGongCards = [];
  3547. this.jinGongCards = [];
  3548. if (properties)
  3549. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  3550. if (properties[keys[i]] != null)
  3551. this[keys[i]] = properties[keys[i]];
  3552. }
  3553. /**
  3554. * GCHuanGongInfo huanGongPlayerId.
  3555. * @member {number|Long} huanGongPlayerId
  3556. * @memberof guandan.GCHuanGongInfo
  3557. * @instance
  3558. */
  3559. GCHuanGongInfo.prototype.huanGongPlayerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  3560. /**
  3561. * GCHuanGongInfo jinGongPlayerId.
  3562. * @member {number|Long} jinGongPlayerId
  3563. * @memberof guandan.GCHuanGongInfo
  3564. * @instance
  3565. */
  3566. GCHuanGongInfo.prototype.jinGongPlayerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  3567. /**
  3568. * GCHuanGongInfo huanGongCards.
  3569. * @member {Array.<number>} huanGongCards
  3570. * @memberof guandan.GCHuanGongInfo
  3571. * @instance
  3572. */
  3573. GCHuanGongInfo.prototype.huanGongCards = $util.emptyArray;
  3574. /**
  3575. * GCHuanGongInfo jinGongCards.
  3576. * @member {Array.<number>} jinGongCards
  3577. * @memberof guandan.GCHuanGongInfo
  3578. * @instance
  3579. */
  3580. GCHuanGongInfo.prototype.jinGongCards = $util.emptyArray;
  3581. /**
  3582. * Creates a new GCHuanGongInfo instance using the specified properties.
  3583. * @function create
  3584. * @memberof guandan.GCHuanGongInfo
  3585. * @static
  3586. * @param {guandan.IGCHuanGongInfo=} [properties] Properties to set
  3587. * @returns {guandan.GCHuanGongInfo} GCHuanGongInfo instance
  3588. */
  3589. GCHuanGongInfo.create = function create(properties) {
  3590. return new GCHuanGongInfo(properties);
  3591. };
  3592. /**
  3593. * Encodes the specified GCHuanGongInfo message. Does not implicitly {@link guandan.GCHuanGongInfo.verify|verify} messages.
  3594. * @function encode
  3595. * @memberof guandan.GCHuanGongInfo
  3596. * @static
  3597. * @param {guandan.IGCHuanGongInfo} message GCHuanGongInfo message or plain object to encode
  3598. * @param {$protobuf.Writer} [writer] Writer to encode to
  3599. * @returns {$protobuf.Writer} Writer
  3600. */
  3601. GCHuanGongInfo.encode = function encode(message, writer) {
  3602. if (!writer)
  3603. writer = $Writer.create();
  3604. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.huanGongPlayerId);
  3605. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.jinGongPlayerId);
  3606. if (message.huanGongCards != null && message.huanGongCards.length)
  3607. for (var i = 0; i < message.huanGongCards.length; ++i)
  3608. writer.uint32(/* id 3, wireType 0 =*/24).int32(message.huanGongCards[i]);
  3609. if (message.jinGongCards != null && message.jinGongCards.length)
  3610. for (var i = 0; i < message.jinGongCards.length; ++i)
  3611. writer.uint32(/* id 4, wireType 0 =*/32).int32(message.jinGongCards[i]);
  3612. return writer;
  3613. };
  3614. /**
  3615. * Encodes the specified GCHuanGongInfo message, length delimited. Does not implicitly {@link guandan.GCHuanGongInfo.verify|verify} messages.
  3616. * @function encodeDelimited
  3617. * @memberof guandan.GCHuanGongInfo
  3618. * @static
  3619. * @param {guandan.IGCHuanGongInfo} message GCHuanGongInfo message or plain object to encode
  3620. * @param {$protobuf.Writer} [writer] Writer to encode to
  3621. * @returns {$protobuf.Writer} Writer
  3622. */
  3623. GCHuanGongInfo.encodeDelimited = function encodeDelimited(message, writer) {
  3624. return this.encode(message, writer).ldelim();
  3625. };
  3626. /**
  3627. * Decodes a GCHuanGongInfo message from the specified reader or buffer.
  3628. * @function decode
  3629. * @memberof guandan.GCHuanGongInfo
  3630. * @static
  3631. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  3632. * @param {number} [length] Message length if known beforehand
  3633. * @returns {guandan.GCHuanGongInfo} GCHuanGongInfo
  3634. * @throws {Error} If the payload is not a reader or valid buffer
  3635. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3636. */
  3637. GCHuanGongInfo.decode = function decode(reader, length) {
  3638. if (!(reader instanceof $Reader))
  3639. reader = $Reader.create(reader);
  3640. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCHuanGongInfo();
  3641. while (reader.pos < end) {
  3642. var tag = reader.uint32();
  3643. switch (tag >>> 3) {
  3644. case 1:
  3645. message.huanGongPlayerId = reader.int64();
  3646. break;
  3647. case 2:
  3648. message.jinGongPlayerId = reader.int64();
  3649. break;
  3650. case 3:
  3651. if (!(message.huanGongCards && message.huanGongCards.length))
  3652. message.huanGongCards = [];
  3653. if ((tag & 7) === 2) {
  3654. var end2 = reader.uint32() + reader.pos;
  3655. while (reader.pos < end2)
  3656. message.huanGongCards.push(reader.int32());
  3657. } else
  3658. message.huanGongCards.push(reader.int32());
  3659. break;
  3660. case 4:
  3661. if (!(message.jinGongCards && message.jinGongCards.length))
  3662. message.jinGongCards = [];
  3663. if ((tag & 7) === 2) {
  3664. var end2 = reader.uint32() + reader.pos;
  3665. while (reader.pos < end2)
  3666. message.jinGongCards.push(reader.int32());
  3667. } else
  3668. message.jinGongCards.push(reader.int32());
  3669. break;
  3670. default:
  3671. reader.skipType(tag & 7);
  3672. break;
  3673. }
  3674. }
  3675. if (!message.hasOwnProperty("huanGongPlayerId"))
  3676. throw $util.ProtocolError("missing required 'huanGongPlayerId'", { instance: message });
  3677. if (!message.hasOwnProperty("jinGongPlayerId"))
  3678. throw $util.ProtocolError("missing required 'jinGongPlayerId'", { instance: message });
  3679. return message;
  3680. };
  3681. /**
  3682. * Decodes a GCHuanGongInfo message from the specified reader or buffer, length delimited.
  3683. * @function decodeDelimited
  3684. * @memberof guandan.GCHuanGongInfo
  3685. * @static
  3686. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  3687. * @returns {guandan.GCHuanGongInfo} GCHuanGongInfo
  3688. * @throws {Error} If the payload is not a reader or valid buffer
  3689. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3690. */
  3691. GCHuanGongInfo.decodeDelimited = function decodeDelimited(reader) {
  3692. if (!(reader instanceof $Reader))
  3693. reader = new $Reader(reader);
  3694. return this.decode(reader, reader.uint32());
  3695. };
  3696. /**
  3697. * Verifies a GCHuanGongInfo message.
  3698. * @function verify
  3699. * @memberof guandan.GCHuanGongInfo
  3700. * @static
  3701. * @param {Object.<string,*>} message Plain object to verify
  3702. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  3703. */
  3704. GCHuanGongInfo.verify = function verify(message) {
  3705. if (typeof message !== "object" || message === null)
  3706. return "object expected";
  3707. if (!$util.isInteger(message.huanGongPlayerId) && !(message.huanGongPlayerId && $util.isInteger(message.huanGongPlayerId.low) && $util.isInteger(message.huanGongPlayerId.high)))
  3708. return "huanGongPlayerId: integer|Long expected";
  3709. if (!$util.isInteger(message.jinGongPlayerId) && !(message.jinGongPlayerId && $util.isInteger(message.jinGongPlayerId.low) && $util.isInteger(message.jinGongPlayerId.high)))
  3710. return "jinGongPlayerId: integer|Long expected";
  3711. if (message.huanGongCards != null && message.hasOwnProperty("huanGongCards")) {
  3712. if (!Array.isArray(message.huanGongCards))
  3713. return "huanGongCards: array expected";
  3714. for (var i = 0; i < message.huanGongCards.length; ++i)
  3715. if (!$util.isInteger(message.huanGongCards[i]))
  3716. return "huanGongCards: integer[] expected";
  3717. }
  3718. if (message.jinGongCards != null && message.hasOwnProperty("jinGongCards")) {
  3719. if (!Array.isArray(message.jinGongCards))
  3720. return "jinGongCards: array expected";
  3721. for (var i = 0; i < message.jinGongCards.length; ++i)
  3722. if (!$util.isInteger(message.jinGongCards[i]))
  3723. return "jinGongCards: integer[] expected";
  3724. }
  3725. return null;
  3726. };
  3727. /**
  3728. * Creates a GCHuanGongInfo message from a plain object. Also converts values to their respective internal types.
  3729. * @function fromObject
  3730. * @memberof guandan.GCHuanGongInfo
  3731. * @static
  3732. * @param {Object.<string,*>} object Plain object
  3733. * @returns {guandan.GCHuanGongInfo} GCHuanGongInfo
  3734. */
  3735. GCHuanGongInfo.fromObject = function fromObject(object) {
  3736. if (object instanceof $root.guandan.GCHuanGongInfo)
  3737. return object;
  3738. var message = new $root.guandan.GCHuanGongInfo();
  3739. if (object.huanGongPlayerId != null)
  3740. if ($util.Long)
  3741. (message.huanGongPlayerId = $util.Long.fromValue(object.huanGongPlayerId)).unsigned = false;
  3742. else if (typeof object.huanGongPlayerId === "string")
  3743. message.huanGongPlayerId = parseInt(object.huanGongPlayerId, 10);
  3744. else if (typeof object.huanGongPlayerId === "number")
  3745. message.huanGongPlayerId = object.huanGongPlayerId;
  3746. else if (typeof object.huanGongPlayerId === "object")
  3747. message.huanGongPlayerId = new $util.LongBits(object.huanGongPlayerId.low >>> 0, object.huanGongPlayerId.high >>> 0).toNumber();
  3748. if (object.jinGongPlayerId != null)
  3749. if ($util.Long)
  3750. (message.jinGongPlayerId = $util.Long.fromValue(object.jinGongPlayerId)).unsigned = false;
  3751. else if (typeof object.jinGongPlayerId === "string")
  3752. message.jinGongPlayerId = parseInt(object.jinGongPlayerId, 10);
  3753. else if (typeof object.jinGongPlayerId === "number")
  3754. message.jinGongPlayerId = object.jinGongPlayerId;
  3755. else if (typeof object.jinGongPlayerId === "object")
  3756. message.jinGongPlayerId = new $util.LongBits(object.jinGongPlayerId.low >>> 0, object.jinGongPlayerId.high >>> 0).toNumber();
  3757. if (object.huanGongCards) {
  3758. if (!Array.isArray(object.huanGongCards))
  3759. throw TypeError(".guandan.GCHuanGongInfo.huanGongCards: array expected");
  3760. message.huanGongCards = [];
  3761. for (var i = 0; i < object.huanGongCards.length; ++i)
  3762. message.huanGongCards[i] = object.huanGongCards[i] | 0;
  3763. }
  3764. if (object.jinGongCards) {
  3765. if (!Array.isArray(object.jinGongCards))
  3766. throw TypeError(".guandan.GCHuanGongInfo.jinGongCards: array expected");
  3767. message.jinGongCards = [];
  3768. for (var i = 0; i < object.jinGongCards.length; ++i)
  3769. message.jinGongCards[i] = object.jinGongCards[i] | 0;
  3770. }
  3771. return message;
  3772. };
  3773. /**
  3774. * Creates a plain object from a GCHuanGongInfo message. Also converts values to other types if specified.
  3775. * @function toObject
  3776. * @memberof guandan.GCHuanGongInfo
  3777. * @static
  3778. * @param {guandan.GCHuanGongInfo} message GCHuanGongInfo
  3779. * @param {$protobuf.IConversionOptions} [options] Conversion options
  3780. * @returns {Object.<string,*>} Plain object
  3781. */
  3782. GCHuanGongInfo.toObject = function toObject(message, options) {
  3783. if (!options)
  3784. options = {};
  3785. var object = {};
  3786. if (options.arrays || options.defaults) {
  3787. object.huanGongCards = [];
  3788. object.jinGongCards = [];
  3789. }
  3790. if (options.defaults) {
  3791. if ($util.Long) {
  3792. var long = new $util.Long(0, 0, false);
  3793. object.huanGongPlayerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  3794. } else
  3795. object.huanGongPlayerId = options.longs === String ? "0" : 0;
  3796. if ($util.Long) {
  3797. var long = new $util.Long(0, 0, false);
  3798. object.jinGongPlayerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  3799. } else
  3800. object.jinGongPlayerId = options.longs === String ? "0" : 0;
  3801. }
  3802. if (message.huanGongPlayerId != null && message.hasOwnProperty("huanGongPlayerId"))
  3803. if (typeof message.huanGongPlayerId === "number")
  3804. object.huanGongPlayerId = options.longs === String ? String(message.huanGongPlayerId) : message.huanGongPlayerId;
  3805. else
  3806. object.huanGongPlayerId = options.longs === String ? $util.Long.prototype.toString.call(message.huanGongPlayerId) : options.longs === Number ? new $util.LongBits(message.huanGongPlayerId.low >>> 0, message.huanGongPlayerId.high >>> 0).toNumber() : message.huanGongPlayerId;
  3807. if (message.jinGongPlayerId != null && message.hasOwnProperty("jinGongPlayerId"))
  3808. if (typeof message.jinGongPlayerId === "number")
  3809. object.jinGongPlayerId = options.longs === String ? String(message.jinGongPlayerId) : message.jinGongPlayerId;
  3810. else
  3811. object.jinGongPlayerId = options.longs === String ? $util.Long.prototype.toString.call(message.jinGongPlayerId) : options.longs === Number ? new $util.LongBits(message.jinGongPlayerId.low >>> 0, message.jinGongPlayerId.high >>> 0).toNumber() : message.jinGongPlayerId;
  3812. if (message.huanGongCards && message.huanGongCards.length) {
  3813. object.huanGongCards = [];
  3814. for (var j = 0; j < message.huanGongCards.length; ++j)
  3815. object.huanGongCards[j] = message.huanGongCards[j];
  3816. }
  3817. if (message.jinGongCards && message.jinGongCards.length) {
  3818. object.jinGongCards = [];
  3819. for (var j = 0; j < message.jinGongCards.length; ++j)
  3820. object.jinGongCards[j] = message.jinGongCards[j];
  3821. }
  3822. return object;
  3823. };
  3824. /**
  3825. * Converts this GCHuanGongInfo to JSON.
  3826. * @function toJSON
  3827. * @memberof guandan.GCHuanGongInfo
  3828. * @instance
  3829. * @returns {Object.<string,*>} JSON object
  3830. */
  3831. GCHuanGongInfo.prototype.toJSON = function toJSON() {
  3832. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  3833. };
  3834. return GCHuanGongInfo;
  3835. })();
  3836. guandan.GCNeedHuanGongInfo = (function() {
  3837. /**
  3838. * Properties of a GCNeedHuanGongInfo.
  3839. * @memberof guandan
  3840. * @interface IGCNeedHuanGongInfo
  3841. * @property {Array.<number|Long>|null} [playerId] GCNeedHuanGongInfo playerId
  3842. */
  3843. /**
  3844. * Constructs a new GCNeedHuanGongInfo.
  3845. * @memberof guandan
  3846. * @classdesc Represents a GCNeedHuanGongInfo.
  3847. * @implements IGCNeedHuanGongInfo
  3848. * @constructor
  3849. * @param {guandan.IGCNeedHuanGongInfo=} [properties] Properties to set
  3850. */
  3851. function GCNeedHuanGongInfo(properties) {
  3852. this.playerId = [];
  3853. if (properties)
  3854. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  3855. if (properties[keys[i]] != null)
  3856. this[keys[i]] = properties[keys[i]];
  3857. }
  3858. /**
  3859. * GCNeedHuanGongInfo playerId.
  3860. * @member {Array.<number|Long>} playerId
  3861. * @memberof guandan.GCNeedHuanGongInfo
  3862. * @instance
  3863. */
  3864. GCNeedHuanGongInfo.prototype.playerId = $util.emptyArray;
  3865. /**
  3866. * Creates a new GCNeedHuanGongInfo instance using the specified properties.
  3867. * @function create
  3868. * @memberof guandan.GCNeedHuanGongInfo
  3869. * @static
  3870. * @param {guandan.IGCNeedHuanGongInfo=} [properties] Properties to set
  3871. * @returns {guandan.GCNeedHuanGongInfo} GCNeedHuanGongInfo instance
  3872. */
  3873. GCNeedHuanGongInfo.create = function create(properties) {
  3874. return new GCNeedHuanGongInfo(properties);
  3875. };
  3876. /**
  3877. * Encodes the specified GCNeedHuanGongInfo message. Does not implicitly {@link guandan.GCNeedHuanGongInfo.verify|verify} messages.
  3878. * @function encode
  3879. * @memberof guandan.GCNeedHuanGongInfo
  3880. * @static
  3881. * @param {guandan.IGCNeedHuanGongInfo} message GCNeedHuanGongInfo message or plain object to encode
  3882. * @param {$protobuf.Writer} [writer] Writer to encode to
  3883. * @returns {$protobuf.Writer} Writer
  3884. */
  3885. GCNeedHuanGongInfo.encode = function encode(message, writer) {
  3886. if (!writer)
  3887. writer = $Writer.create();
  3888. if (message.playerId != null && message.playerId.length)
  3889. for (var i = 0; i < message.playerId.length; ++i)
  3890. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId[i]);
  3891. return writer;
  3892. };
  3893. /**
  3894. * Encodes the specified GCNeedHuanGongInfo message, length delimited. Does not implicitly {@link guandan.GCNeedHuanGongInfo.verify|verify} messages.
  3895. * @function encodeDelimited
  3896. * @memberof guandan.GCNeedHuanGongInfo
  3897. * @static
  3898. * @param {guandan.IGCNeedHuanGongInfo} message GCNeedHuanGongInfo message or plain object to encode
  3899. * @param {$protobuf.Writer} [writer] Writer to encode to
  3900. * @returns {$protobuf.Writer} Writer
  3901. */
  3902. GCNeedHuanGongInfo.encodeDelimited = function encodeDelimited(message, writer) {
  3903. return this.encode(message, writer).ldelim();
  3904. };
  3905. /**
  3906. * Decodes a GCNeedHuanGongInfo message from the specified reader or buffer.
  3907. * @function decode
  3908. * @memberof guandan.GCNeedHuanGongInfo
  3909. * @static
  3910. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  3911. * @param {number} [length] Message length if known beforehand
  3912. * @returns {guandan.GCNeedHuanGongInfo} GCNeedHuanGongInfo
  3913. * @throws {Error} If the payload is not a reader or valid buffer
  3914. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3915. */
  3916. GCNeedHuanGongInfo.decode = function decode(reader, length) {
  3917. if (!(reader instanceof $Reader))
  3918. reader = $Reader.create(reader);
  3919. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCNeedHuanGongInfo();
  3920. while (reader.pos < end) {
  3921. var tag = reader.uint32();
  3922. switch (tag >>> 3) {
  3923. case 1:
  3924. if (!(message.playerId && message.playerId.length))
  3925. message.playerId = [];
  3926. if ((tag & 7) === 2) {
  3927. var end2 = reader.uint32() + reader.pos;
  3928. while (reader.pos < end2)
  3929. message.playerId.push(reader.int64());
  3930. } else
  3931. message.playerId.push(reader.int64());
  3932. break;
  3933. default:
  3934. reader.skipType(tag & 7);
  3935. break;
  3936. }
  3937. }
  3938. return message;
  3939. };
  3940. /**
  3941. * Decodes a GCNeedHuanGongInfo message from the specified reader or buffer, length delimited.
  3942. * @function decodeDelimited
  3943. * @memberof guandan.GCNeedHuanGongInfo
  3944. * @static
  3945. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  3946. * @returns {guandan.GCNeedHuanGongInfo} GCNeedHuanGongInfo
  3947. * @throws {Error} If the payload is not a reader or valid buffer
  3948. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3949. */
  3950. GCNeedHuanGongInfo.decodeDelimited = function decodeDelimited(reader) {
  3951. if (!(reader instanceof $Reader))
  3952. reader = new $Reader(reader);
  3953. return this.decode(reader, reader.uint32());
  3954. };
  3955. /**
  3956. * Verifies a GCNeedHuanGongInfo message.
  3957. * @function verify
  3958. * @memberof guandan.GCNeedHuanGongInfo
  3959. * @static
  3960. * @param {Object.<string,*>} message Plain object to verify
  3961. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  3962. */
  3963. GCNeedHuanGongInfo.verify = function verify(message) {
  3964. if (typeof message !== "object" || message === null)
  3965. return "object expected";
  3966. if (message.playerId != null && message.hasOwnProperty("playerId")) {
  3967. if (!Array.isArray(message.playerId))
  3968. return "playerId: array expected";
  3969. for (var i = 0; i < message.playerId.length; ++i)
  3970. if (!$util.isInteger(message.playerId[i]) && !(message.playerId[i] && $util.isInteger(message.playerId[i].low) && $util.isInteger(message.playerId[i].high)))
  3971. return "playerId: integer|Long[] expected";
  3972. }
  3973. return null;
  3974. };
  3975. /**
  3976. * Creates a GCNeedHuanGongInfo message from a plain object. Also converts values to their respective internal types.
  3977. * @function fromObject
  3978. * @memberof guandan.GCNeedHuanGongInfo
  3979. * @static
  3980. * @param {Object.<string,*>} object Plain object
  3981. * @returns {guandan.GCNeedHuanGongInfo} GCNeedHuanGongInfo
  3982. */
  3983. GCNeedHuanGongInfo.fromObject = function fromObject(object) {
  3984. if (object instanceof $root.guandan.GCNeedHuanGongInfo)
  3985. return object;
  3986. var message = new $root.guandan.GCNeedHuanGongInfo();
  3987. if (object.playerId) {
  3988. if (!Array.isArray(object.playerId))
  3989. throw TypeError(".guandan.GCNeedHuanGongInfo.playerId: array expected");
  3990. message.playerId = [];
  3991. for (var i = 0; i < object.playerId.length; ++i)
  3992. if ($util.Long)
  3993. (message.playerId[i] = $util.Long.fromValue(object.playerId[i])).unsigned = false;
  3994. else if (typeof object.playerId[i] === "string")
  3995. message.playerId[i] = parseInt(object.playerId[i], 10);
  3996. else if (typeof object.playerId[i] === "number")
  3997. message.playerId[i] = object.playerId[i];
  3998. else if (typeof object.playerId[i] === "object")
  3999. message.playerId[i] = new $util.LongBits(object.playerId[i].low >>> 0, object.playerId[i].high >>> 0).toNumber();
  4000. }
  4001. return message;
  4002. };
  4003. /**
  4004. * Creates a plain object from a GCNeedHuanGongInfo message. Also converts values to other types if specified.
  4005. * @function toObject
  4006. * @memberof guandan.GCNeedHuanGongInfo
  4007. * @static
  4008. * @param {guandan.GCNeedHuanGongInfo} message GCNeedHuanGongInfo
  4009. * @param {$protobuf.IConversionOptions} [options] Conversion options
  4010. * @returns {Object.<string,*>} Plain object
  4011. */
  4012. GCNeedHuanGongInfo.toObject = function toObject(message, options) {
  4013. if (!options)
  4014. options = {};
  4015. var object = {};
  4016. if (options.arrays || options.defaults)
  4017. object.playerId = [];
  4018. if (message.playerId && message.playerId.length) {
  4019. object.playerId = [];
  4020. for (var j = 0; j < message.playerId.length; ++j)
  4021. if (typeof message.playerId[j] === "number")
  4022. object.playerId[j] = options.longs === String ? String(message.playerId[j]) : message.playerId[j];
  4023. else
  4024. object.playerId[j] = options.longs === String ? $util.Long.prototype.toString.call(message.playerId[j]) : options.longs === Number ? new $util.LongBits(message.playerId[j].low >>> 0, message.playerId[j].high >>> 0).toNumber() : message.playerId[j];
  4025. }
  4026. return object;
  4027. };
  4028. /**
  4029. * Converts this GCNeedHuanGongInfo to JSON.
  4030. * @function toJSON
  4031. * @memberof guandan.GCNeedHuanGongInfo
  4032. * @instance
  4033. * @returns {Object.<string,*>} JSON object
  4034. */
  4035. GCNeedHuanGongInfo.prototype.toJSON = function toJSON() {
  4036. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  4037. };
  4038. return GCNeedHuanGongInfo;
  4039. })();
  4040. guandan.GCKangGongInfo = (function() {
  4041. /**
  4042. * Properties of a GCKangGongInfo.
  4043. * @memberof guandan
  4044. * @interface IGCKangGongInfo
  4045. * @property {number|Long} playerId GCKangGongInfo playerId
  4046. * @property {number} cardNum GCKangGongInfo cardNum
  4047. */
  4048. /**
  4049. * Constructs a new GCKangGongInfo.
  4050. * @memberof guandan
  4051. * @classdesc Represents a GCKangGongInfo.
  4052. * @implements IGCKangGongInfo
  4053. * @constructor
  4054. * @param {guandan.IGCKangGongInfo=} [properties] Properties to set
  4055. */
  4056. function GCKangGongInfo(properties) {
  4057. if (properties)
  4058. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  4059. if (properties[keys[i]] != null)
  4060. this[keys[i]] = properties[keys[i]];
  4061. }
  4062. /**
  4063. * GCKangGongInfo playerId.
  4064. * @member {number|Long} playerId
  4065. * @memberof guandan.GCKangGongInfo
  4066. * @instance
  4067. */
  4068. GCKangGongInfo.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  4069. /**
  4070. * GCKangGongInfo cardNum.
  4071. * @member {number} cardNum
  4072. * @memberof guandan.GCKangGongInfo
  4073. * @instance
  4074. */
  4075. GCKangGongInfo.prototype.cardNum = 0;
  4076. /**
  4077. * Creates a new GCKangGongInfo instance using the specified properties.
  4078. * @function create
  4079. * @memberof guandan.GCKangGongInfo
  4080. * @static
  4081. * @param {guandan.IGCKangGongInfo=} [properties] Properties to set
  4082. * @returns {guandan.GCKangGongInfo} GCKangGongInfo instance
  4083. */
  4084. GCKangGongInfo.create = function create(properties) {
  4085. return new GCKangGongInfo(properties);
  4086. };
  4087. /**
  4088. * Encodes the specified GCKangGongInfo message. Does not implicitly {@link guandan.GCKangGongInfo.verify|verify} messages.
  4089. * @function encode
  4090. * @memberof guandan.GCKangGongInfo
  4091. * @static
  4092. * @param {guandan.IGCKangGongInfo} message GCKangGongInfo message or plain object to encode
  4093. * @param {$protobuf.Writer} [writer] Writer to encode to
  4094. * @returns {$protobuf.Writer} Writer
  4095. */
  4096. GCKangGongInfo.encode = function encode(message, writer) {
  4097. if (!writer)
  4098. writer = $Writer.create();
  4099. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
  4100. writer.uint32(/* id 2, wireType 0 =*/16).int32(message.cardNum);
  4101. return writer;
  4102. };
  4103. /**
  4104. * Encodes the specified GCKangGongInfo message, length delimited. Does not implicitly {@link guandan.GCKangGongInfo.verify|verify} messages.
  4105. * @function encodeDelimited
  4106. * @memberof guandan.GCKangGongInfo
  4107. * @static
  4108. * @param {guandan.IGCKangGongInfo} message GCKangGongInfo message or plain object to encode
  4109. * @param {$protobuf.Writer} [writer] Writer to encode to
  4110. * @returns {$protobuf.Writer} Writer
  4111. */
  4112. GCKangGongInfo.encodeDelimited = function encodeDelimited(message, writer) {
  4113. return this.encode(message, writer).ldelim();
  4114. };
  4115. /**
  4116. * Decodes a GCKangGongInfo message from the specified reader or buffer.
  4117. * @function decode
  4118. * @memberof guandan.GCKangGongInfo
  4119. * @static
  4120. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  4121. * @param {number} [length] Message length if known beforehand
  4122. * @returns {guandan.GCKangGongInfo} GCKangGongInfo
  4123. * @throws {Error} If the payload is not a reader or valid buffer
  4124. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  4125. */
  4126. GCKangGongInfo.decode = function decode(reader, length) {
  4127. if (!(reader instanceof $Reader))
  4128. reader = $Reader.create(reader);
  4129. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCKangGongInfo();
  4130. while (reader.pos < end) {
  4131. var tag = reader.uint32();
  4132. switch (tag >>> 3) {
  4133. case 1:
  4134. message.playerId = reader.int64();
  4135. break;
  4136. case 2:
  4137. message.cardNum = reader.int32();
  4138. break;
  4139. default:
  4140. reader.skipType(tag & 7);
  4141. break;
  4142. }
  4143. }
  4144. if (!message.hasOwnProperty("playerId"))
  4145. throw $util.ProtocolError("missing required 'playerId'", { instance: message });
  4146. if (!message.hasOwnProperty("cardNum"))
  4147. throw $util.ProtocolError("missing required 'cardNum'", { instance: message });
  4148. return message;
  4149. };
  4150. /**
  4151. * Decodes a GCKangGongInfo message from the specified reader or buffer, length delimited.
  4152. * @function decodeDelimited
  4153. * @memberof guandan.GCKangGongInfo
  4154. * @static
  4155. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  4156. * @returns {guandan.GCKangGongInfo} GCKangGongInfo
  4157. * @throws {Error} If the payload is not a reader or valid buffer
  4158. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  4159. */
  4160. GCKangGongInfo.decodeDelimited = function decodeDelimited(reader) {
  4161. if (!(reader instanceof $Reader))
  4162. reader = new $Reader(reader);
  4163. return this.decode(reader, reader.uint32());
  4164. };
  4165. /**
  4166. * Verifies a GCKangGongInfo message.
  4167. * @function verify
  4168. * @memberof guandan.GCKangGongInfo
  4169. * @static
  4170. * @param {Object.<string,*>} message Plain object to verify
  4171. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  4172. */
  4173. GCKangGongInfo.verify = function verify(message) {
  4174. if (typeof message !== "object" || message === null)
  4175. return "object expected";
  4176. if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
  4177. return "playerId: integer|Long expected";
  4178. if (!$util.isInteger(message.cardNum))
  4179. return "cardNum: integer expected";
  4180. return null;
  4181. };
  4182. /**
  4183. * Creates a GCKangGongInfo message from a plain object. Also converts values to their respective internal types.
  4184. * @function fromObject
  4185. * @memberof guandan.GCKangGongInfo
  4186. * @static
  4187. * @param {Object.<string,*>} object Plain object
  4188. * @returns {guandan.GCKangGongInfo} GCKangGongInfo
  4189. */
  4190. GCKangGongInfo.fromObject = function fromObject(object) {
  4191. if (object instanceof $root.guandan.GCKangGongInfo)
  4192. return object;
  4193. var message = new $root.guandan.GCKangGongInfo();
  4194. if (object.playerId != null)
  4195. if ($util.Long)
  4196. (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
  4197. else if (typeof object.playerId === "string")
  4198. message.playerId = parseInt(object.playerId, 10);
  4199. else if (typeof object.playerId === "number")
  4200. message.playerId = object.playerId;
  4201. else if (typeof object.playerId === "object")
  4202. message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
  4203. if (object.cardNum != null)
  4204. message.cardNum = object.cardNum | 0;
  4205. return message;
  4206. };
  4207. /**
  4208. * Creates a plain object from a GCKangGongInfo message. Also converts values to other types if specified.
  4209. * @function toObject
  4210. * @memberof guandan.GCKangGongInfo
  4211. * @static
  4212. * @param {guandan.GCKangGongInfo} message GCKangGongInfo
  4213. * @param {$protobuf.IConversionOptions} [options] Conversion options
  4214. * @returns {Object.<string,*>} Plain object
  4215. */
  4216. GCKangGongInfo.toObject = function toObject(message, options) {
  4217. if (!options)
  4218. options = {};
  4219. var object = {};
  4220. if (options.defaults) {
  4221. if ($util.Long) {
  4222. var long = new $util.Long(0, 0, false);
  4223. object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  4224. } else
  4225. object.playerId = options.longs === String ? "0" : 0;
  4226. object.cardNum = 0;
  4227. }
  4228. if (message.playerId != null && message.hasOwnProperty("playerId"))
  4229. if (typeof message.playerId === "number")
  4230. object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
  4231. else
  4232. object.playerId = options.longs === String ? $util.Long.prototype.toString.call(message.playerId) : options.longs === Number ? new $util.LongBits(message.playerId.low >>> 0, message.playerId.high >>> 0).toNumber() : message.playerId;
  4233. if (message.cardNum != null && message.hasOwnProperty("cardNum"))
  4234. object.cardNum = message.cardNum;
  4235. return object;
  4236. };
  4237. /**
  4238. * Converts this GCKangGongInfo to JSON.
  4239. * @function toJSON
  4240. * @memberof guandan.GCKangGongInfo
  4241. * @instance
  4242. * @returns {Object.<string,*>} JSON object
  4243. */
  4244. GCKangGongInfo.prototype.toJSON = function toJSON() {
  4245. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  4246. };
  4247. return GCKangGongInfo;
  4248. })();
  4249. guandan.GCRoomInfo = (function() {
  4250. /**
  4251. * Properties of a GCRoomInfo.
  4252. * @memberof guandan
  4253. * @interface IGCRoomInfo
  4254. * @property {number|Long} roomId GCRoomInfo roomId
  4255. * @property {number} state GCRoomInfo state
  4256. * @property {number|Long|null} [currentPlayerId] GCRoomInfo currentPlayerId
  4257. * @property {Array.<guandan.IOperation>|null} [currentOperationList] GCRoomInfo currentOperationList
  4258. * @property {Array.<number>|null} [currentCards] GCRoomInfo currentCards
  4259. * @property {number|null} [currentCardMethod] GCRoomInfo currentCardMethod
  4260. * @property {number|null} [currentRound] GCRoomInfo currentRound
  4261. * @property {string|null} [name] GCRoomInfo name
  4262. * @property {number|Long} ownerId GCRoomInfo ownerId
  4263. * @property {number} totalRound GCRoomInfo totalRound
  4264. * @property {number|Long} dissolveStartTime GCRoomInfo dissolveStartTime
  4265. * @property {Array.<number|Long>|null} [aggreeDissolvePlayers] GCRoomInfo aggreeDissolvePlayers
  4266. * @property {number} bankerPos GCRoomInfo bankerPos
  4267. * @property {Array.<number>|null} [jinPais] GCRoomInfo jinPais
  4268. * @property {number} score GCRoomInfo score
  4269. * @property {number} mahjongType GCRoomInfo mahjongType
  4270. * @property {Uint8Array} roomConfig GCRoomInfo roomConfig
  4271. * @property {number|null} [cardPlayObject] GCRoomInfo cardPlayObject
  4272. * @property {number} maxPlayers GCRoomInfo maxPlayers
  4273. * @property {number} currentQuan GCRoomInfo currentQuan
  4274. * @property {number|Long} createTime GCRoomInfo createTime
  4275. * @property {number|null} [openRoomType] GCRoomInfo openRoomType
  4276. * @property {number|Long|null} [forbidJoinTime] GCRoomInfo forbidJoinTime
  4277. * @property {number|Long|null} [lastGameTime] GCRoomInfo lastGameTime
  4278. * @property {number|null} [payMethod] GCRoomInfo payMethod
  4279. * @property {number|null} [roomMode] GCRoomInfo roomMode
  4280. * @property {number|Long|null} [lastTime] GCRoomInfo lastTime
  4281. * @property {number|Long|null} [now] GCRoomInfo now
  4282. * @property {number|Long|null} [di] GCRoomInfo di
  4283. * @property {number|null} [activityType] GCRoomInfo activityType
  4284. * @property {boolean|null} [isDouble] GCRoomInfo isDouble
  4285. * @property {Array.<number>|null} [playCards] GCRoomInfo playCards
  4286. * @property {number} posGroup GCRoomInfo posGroup
  4287. * @property {number|null} [bombNum] GCRoomInfo bombNum
  4288. * @property {number|Long|null} [roundArrangeEndTime] GCRoomInfo roundArrangeEndTime
  4289. * @property {string|null} [goldRoomName] GCRoomInfo goldRoomName
  4290. * @property {number|Long|null} [doubleEndTime] GCRoomInfo doubleEndTime
  4291. * @property {Array.<guandan.IGCJinGongInfo>|null} [jinGongInfoList] GCRoomInfo jinGongInfoList
  4292. * @property {Array.<guandan.IGCHuanGongInfo>|null} [huanGongInfoList] GCRoomInfo huanGongInfoList
  4293. * @property {guandan.IGCNeedHuanGongInfo|null} [needHuanGong] GCRoomInfo needHuanGong
  4294. * @property {Array.<guandan.IGCKangGongInfo>|null} [kangGongInfoList] GCRoomInfo kangGongInfoList
  4295. */
  4296. /**
  4297. * Constructs a new GCRoomInfo.
  4298. * @memberof guandan
  4299. * @classdesc Represents a GCRoomInfo.
  4300. * @implements IGCRoomInfo
  4301. * @constructor
  4302. * @param {guandan.IGCRoomInfo=} [properties] Properties to set
  4303. */
  4304. function GCRoomInfo(properties) {
  4305. this.currentOperationList = [];
  4306. this.currentCards = [];
  4307. this.aggreeDissolvePlayers = [];
  4308. this.jinPais = [];
  4309. this.playCards = [];
  4310. this.jinGongInfoList = [];
  4311. this.huanGongInfoList = [];
  4312. this.kangGongInfoList = [];
  4313. if (properties)
  4314. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  4315. if (properties[keys[i]] != null)
  4316. this[keys[i]] = properties[keys[i]];
  4317. }
  4318. /**
  4319. * GCRoomInfo roomId.
  4320. * @member {number|Long} roomId
  4321. * @memberof guandan.GCRoomInfo
  4322. * @instance
  4323. */
  4324. GCRoomInfo.prototype.roomId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  4325. /**
  4326. * GCRoomInfo state.
  4327. * @member {number} state
  4328. * @memberof guandan.GCRoomInfo
  4329. * @instance
  4330. */
  4331. GCRoomInfo.prototype.state = 0;
  4332. /**
  4333. * GCRoomInfo currentPlayerId.
  4334. * @member {number|Long} currentPlayerId
  4335. * @memberof guandan.GCRoomInfo
  4336. * @instance
  4337. */
  4338. GCRoomInfo.prototype.currentPlayerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  4339. /**
  4340. * GCRoomInfo currentOperationList.
  4341. * @member {Array.<guandan.IOperation>} currentOperationList
  4342. * @memberof guandan.GCRoomInfo
  4343. * @instance
  4344. */
  4345. GCRoomInfo.prototype.currentOperationList = $util.emptyArray;
  4346. /**
  4347. * GCRoomInfo currentCards.
  4348. * @member {Array.<number>} currentCards
  4349. * @memberof guandan.GCRoomInfo
  4350. * @instance
  4351. */
  4352. GCRoomInfo.prototype.currentCards = $util.emptyArray;
  4353. /**
  4354. * GCRoomInfo currentCardMethod.
  4355. * @member {number} currentCardMethod
  4356. * @memberof guandan.GCRoomInfo
  4357. * @instance
  4358. */
  4359. GCRoomInfo.prototype.currentCardMethod = 0;
  4360. /**
  4361. * GCRoomInfo currentRound.
  4362. * @member {number} currentRound
  4363. * @memberof guandan.GCRoomInfo
  4364. * @instance
  4365. */
  4366. GCRoomInfo.prototype.currentRound = 0;
  4367. /**
  4368. * GCRoomInfo name.
  4369. * @member {string} name
  4370. * @memberof guandan.GCRoomInfo
  4371. * @instance
  4372. */
  4373. GCRoomInfo.prototype.name = "";
  4374. /**
  4375. * GCRoomInfo ownerId.
  4376. * @member {number|Long} ownerId
  4377. * @memberof guandan.GCRoomInfo
  4378. * @instance
  4379. */
  4380. GCRoomInfo.prototype.ownerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  4381. /**
  4382. * GCRoomInfo totalRound.
  4383. * @member {number} totalRound
  4384. * @memberof guandan.GCRoomInfo
  4385. * @instance
  4386. */
  4387. GCRoomInfo.prototype.totalRound = 0;
  4388. /**
  4389. * GCRoomInfo dissolveStartTime.
  4390. * @member {number|Long} dissolveStartTime
  4391. * @memberof guandan.GCRoomInfo
  4392. * @instance
  4393. */
  4394. GCRoomInfo.prototype.dissolveStartTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  4395. /**
  4396. * GCRoomInfo aggreeDissolvePlayers.
  4397. * @member {Array.<number|Long>} aggreeDissolvePlayers
  4398. * @memberof guandan.GCRoomInfo
  4399. * @instance
  4400. */
  4401. GCRoomInfo.prototype.aggreeDissolvePlayers = $util.emptyArray;
  4402. /**
  4403. * GCRoomInfo bankerPos.
  4404. * @member {number} bankerPos
  4405. * @memberof guandan.GCRoomInfo
  4406. * @instance
  4407. */
  4408. GCRoomInfo.prototype.bankerPos = 0;
  4409. /**
  4410. * GCRoomInfo jinPais.
  4411. * @member {Array.<number>} jinPais
  4412. * @memberof guandan.GCRoomInfo
  4413. * @instance
  4414. */
  4415. GCRoomInfo.prototype.jinPais = $util.emptyArray;
  4416. /**
  4417. * GCRoomInfo score.
  4418. * @member {number} score
  4419. * @memberof guandan.GCRoomInfo
  4420. * @instance
  4421. */
  4422. GCRoomInfo.prototype.score = 0;
  4423. /**
  4424. * GCRoomInfo mahjongType.
  4425. * @member {number} mahjongType
  4426. * @memberof guandan.GCRoomInfo
  4427. * @instance
  4428. */
  4429. GCRoomInfo.prototype.mahjongType = 0;
  4430. /**
  4431. * GCRoomInfo roomConfig.
  4432. * @member {Uint8Array} roomConfig
  4433. * @memberof guandan.GCRoomInfo
  4434. * @instance
  4435. */
  4436. GCRoomInfo.prototype.roomConfig = $util.newBuffer([]);
  4437. /**
  4438. * GCRoomInfo cardPlayObject.
  4439. * @member {number} cardPlayObject
  4440. * @memberof guandan.GCRoomInfo
  4441. * @instance
  4442. */
  4443. GCRoomInfo.prototype.cardPlayObject = 0;
  4444. /**
  4445. * GCRoomInfo maxPlayers.
  4446. * @member {number} maxPlayers
  4447. * @memberof guandan.GCRoomInfo
  4448. * @instance
  4449. */
  4450. GCRoomInfo.prototype.maxPlayers = 0;
  4451. /**
  4452. * GCRoomInfo currentQuan.
  4453. * @member {number} currentQuan
  4454. * @memberof guandan.GCRoomInfo
  4455. * @instance
  4456. */
  4457. GCRoomInfo.prototype.currentQuan = 0;
  4458. /**
  4459. * GCRoomInfo createTime.
  4460. * @member {number|Long} createTime
  4461. * @memberof guandan.GCRoomInfo
  4462. * @instance
  4463. */
  4464. GCRoomInfo.prototype.createTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  4465. /**
  4466. * GCRoomInfo openRoomType.
  4467. * @member {number} openRoomType
  4468. * @memberof guandan.GCRoomInfo
  4469. * @instance
  4470. */
  4471. GCRoomInfo.prototype.openRoomType = 0;
  4472. /**
  4473. * GCRoomInfo forbidJoinTime.
  4474. * @member {number|Long} forbidJoinTime
  4475. * @memberof guandan.GCRoomInfo
  4476. * @instance
  4477. */
  4478. GCRoomInfo.prototype.forbidJoinTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  4479. /**
  4480. * GCRoomInfo lastGameTime.
  4481. * @member {number|Long} lastGameTime
  4482. * @memberof guandan.GCRoomInfo
  4483. * @instance
  4484. */
  4485. GCRoomInfo.prototype.lastGameTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  4486. /**
  4487. * GCRoomInfo payMethod.
  4488. * @member {number} payMethod
  4489. * @memberof guandan.GCRoomInfo
  4490. * @instance
  4491. */
  4492. GCRoomInfo.prototype.payMethod = 0;
  4493. /**
  4494. * GCRoomInfo roomMode.
  4495. * @member {number} roomMode
  4496. * @memberof guandan.GCRoomInfo
  4497. * @instance
  4498. */
  4499. GCRoomInfo.prototype.roomMode = 0;
  4500. /**
  4501. * GCRoomInfo lastTime.
  4502. * @member {number|Long} lastTime
  4503. * @memberof guandan.GCRoomInfo
  4504. * @instance
  4505. */
  4506. GCRoomInfo.prototype.lastTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  4507. /**
  4508. * GCRoomInfo now.
  4509. * @member {number|Long} now
  4510. * @memberof guandan.GCRoomInfo
  4511. * @instance
  4512. */
  4513. GCRoomInfo.prototype.now = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  4514. /**
  4515. * GCRoomInfo di.
  4516. * @member {number|Long} di
  4517. * @memberof guandan.GCRoomInfo
  4518. * @instance
  4519. */
  4520. GCRoomInfo.prototype.di = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  4521. /**
  4522. * GCRoomInfo activityType.
  4523. * @member {number} activityType
  4524. * @memberof guandan.GCRoomInfo
  4525. * @instance
  4526. */
  4527. GCRoomInfo.prototype.activityType = 0;
  4528. /**
  4529. * GCRoomInfo isDouble.
  4530. * @member {boolean} isDouble
  4531. * @memberof guandan.GCRoomInfo
  4532. * @instance
  4533. */
  4534. GCRoomInfo.prototype.isDouble = false;
  4535. /**
  4536. * GCRoomInfo playCards.
  4537. * @member {Array.<number>} playCards
  4538. * @memberof guandan.GCRoomInfo
  4539. * @instance
  4540. */
  4541. GCRoomInfo.prototype.playCards = $util.emptyArray;
  4542. /**
  4543. * GCRoomInfo posGroup.
  4544. * @member {number} posGroup
  4545. * @memberof guandan.GCRoomInfo
  4546. * @instance
  4547. */
  4548. GCRoomInfo.prototype.posGroup = 0;
  4549. /**
  4550. * GCRoomInfo bombNum.
  4551. * @member {number} bombNum
  4552. * @memberof guandan.GCRoomInfo
  4553. * @instance
  4554. */
  4555. GCRoomInfo.prototype.bombNum = 0;
  4556. /**
  4557. * GCRoomInfo roundArrangeEndTime.
  4558. * @member {number|Long} roundArrangeEndTime
  4559. * @memberof guandan.GCRoomInfo
  4560. * @instance
  4561. */
  4562. GCRoomInfo.prototype.roundArrangeEndTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  4563. /**
  4564. * GCRoomInfo goldRoomName.
  4565. * @member {string} goldRoomName
  4566. * @memberof guandan.GCRoomInfo
  4567. * @instance
  4568. */
  4569. GCRoomInfo.prototype.goldRoomName = "";
  4570. /**
  4571. * GCRoomInfo doubleEndTime.
  4572. * @member {number|Long} doubleEndTime
  4573. * @memberof guandan.GCRoomInfo
  4574. * @instance
  4575. */
  4576. GCRoomInfo.prototype.doubleEndTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  4577. /**
  4578. * GCRoomInfo jinGongInfoList.
  4579. * @member {Array.<guandan.IGCJinGongInfo>} jinGongInfoList
  4580. * @memberof guandan.GCRoomInfo
  4581. * @instance
  4582. */
  4583. GCRoomInfo.prototype.jinGongInfoList = $util.emptyArray;
  4584. /**
  4585. * GCRoomInfo huanGongInfoList.
  4586. * @member {Array.<guandan.IGCHuanGongInfo>} huanGongInfoList
  4587. * @memberof guandan.GCRoomInfo
  4588. * @instance
  4589. */
  4590. GCRoomInfo.prototype.huanGongInfoList = $util.emptyArray;
  4591. /**
  4592. * GCRoomInfo needHuanGong.
  4593. * @member {guandan.IGCNeedHuanGongInfo|null|undefined} needHuanGong
  4594. * @memberof guandan.GCRoomInfo
  4595. * @instance
  4596. */
  4597. GCRoomInfo.prototype.needHuanGong = null;
  4598. /**
  4599. * GCRoomInfo kangGongInfoList.
  4600. * @member {Array.<guandan.IGCKangGongInfo>} kangGongInfoList
  4601. * @memberof guandan.GCRoomInfo
  4602. * @instance
  4603. */
  4604. GCRoomInfo.prototype.kangGongInfoList = $util.emptyArray;
  4605. /**
  4606. * Creates a new GCRoomInfo instance using the specified properties.
  4607. * @function create
  4608. * @memberof guandan.GCRoomInfo
  4609. * @static
  4610. * @param {guandan.IGCRoomInfo=} [properties] Properties to set
  4611. * @returns {guandan.GCRoomInfo} GCRoomInfo instance
  4612. */
  4613. GCRoomInfo.create = function create(properties) {
  4614. return new GCRoomInfo(properties);
  4615. };
  4616. /**
  4617. * Encodes the specified GCRoomInfo message. Does not implicitly {@link guandan.GCRoomInfo.verify|verify} messages.
  4618. * @function encode
  4619. * @memberof guandan.GCRoomInfo
  4620. * @static
  4621. * @param {guandan.IGCRoomInfo} message GCRoomInfo message or plain object to encode
  4622. * @param {$protobuf.Writer} [writer] Writer to encode to
  4623. * @returns {$protobuf.Writer} Writer
  4624. */
  4625. GCRoomInfo.encode = function encode(message, writer) {
  4626. if (!writer)
  4627. writer = $Writer.create();
  4628. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.roomId);
  4629. writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state);
  4630. if (message.currentPlayerId != null && Object.hasOwnProperty.call(message, "currentPlayerId"))
  4631. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.currentPlayerId);
  4632. if (message.currentOperationList != null && message.currentOperationList.length)
  4633. for (var i = 0; i < message.currentOperationList.length; ++i)
  4634. $root.guandan.Operation.encode(message.currentOperationList[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
  4635. if (message.currentCards != null && message.currentCards.length)
  4636. for (var i = 0; i < message.currentCards.length; ++i)
  4637. writer.uint32(/* id 6, wireType 0 =*/48).int32(message.currentCards[i]);
  4638. if (message.currentCardMethod != null && Object.hasOwnProperty.call(message, "currentCardMethod"))
  4639. writer.uint32(/* id 7, wireType 0 =*/56).int32(message.currentCardMethod);
  4640. if (message.currentRound != null && Object.hasOwnProperty.call(message, "currentRound"))
  4641. writer.uint32(/* id 8, wireType 0 =*/64).int32(message.currentRound);
  4642. if (message.name != null && Object.hasOwnProperty.call(message, "name"))
  4643. writer.uint32(/* id 9, wireType 2 =*/74).string(message.name);
  4644. writer.uint32(/* id 10, wireType 0 =*/80).int64(message.ownerId);
  4645. writer.uint32(/* id 11, wireType 0 =*/88).int32(message.totalRound);
  4646. writer.uint32(/* id 12, wireType 0 =*/96).int64(message.dissolveStartTime);
  4647. if (message.aggreeDissolvePlayers != null && message.aggreeDissolvePlayers.length)
  4648. for (var i = 0; i < message.aggreeDissolvePlayers.length; ++i)
  4649. writer.uint32(/* id 13, wireType 0 =*/104).int64(message.aggreeDissolvePlayers[i]);
  4650. writer.uint32(/* id 14, wireType 0 =*/112).int32(message.bankerPos);
  4651. if (message.jinPais != null && message.jinPais.length)
  4652. for (var i = 0; i < message.jinPais.length; ++i)
  4653. writer.uint32(/* id 17, wireType 0 =*/136).int32(message.jinPais[i]);
  4654. writer.uint32(/* id 20, wireType 0 =*/160).int32(message.score);
  4655. writer.uint32(/* id 21, wireType 0 =*/168).int32(message.mahjongType);
  4656. writer.uint32(/* id 22, wireType 2 =*/178).bytes(message.roomConfig);
  4657. if (message.cardPlayObject != null && Object.hasOwnProperty.call(message, "cardPlayObject"))
  4658. writer.uint32(/* id 23, wireType 0 =*/184).int32(message.cardPlayObject);
  4659. writer.uint32(/* id 24, wireType 0 =*/192).int32(message.maxPlayers);
  4660. writer.uint32(/* id 25, wireType 0 =*/200).int32(message.currentQuan);
  4661. writer.uint32(/* id 27, wireType 0 =*/216).int64(message.createTime);
  4662. if (message.openRoomType != null && Object.hasOwnProperty.call(message, "openRoomType"))
  4663. writer.uint32(/* id 28, wireType 0 =*/224).int32(message.openRoomType);
  4664. if (message.forbidJoinTime != null && Object.hasOwnProperty.call(message, "forbidJoinTime"))
  4665. writer.uint32(/* id 29, wireType 0 =*/232).int64(message.forbidJoinTime);
  4666. if (message.lastGameTime != null && Object.hasOwnProperty.call(message, "lastGameTime"))
  4667. writer.uint32(/* id 30, wireType 0 =*/240).int64(message.lastGameTime);
  4668. if (message.payMethod != null && Object.hasOwnProperty.call(message, "payMethod"))
  4669. writer.uint32(/* id 32, wireType 0 =*/256).int32(message.payMethod);
  4670. if (message.roomMode != null && Object.hasOwnProperty.call(message, "roomMode"))
  4671. writer.uint32(/* id 33, wireType 0 =*/264).int32(message.roomMode);
  4672. if (message.lastTime != null && Object.hasOwnProperty.call(message, "lastTime"))
  4673. writer.uint32(/* id 34, wireType 0 =*/272).int64(message.lastTime);
  4674. if (message.now != null && Object.hasOwnProperty.call(message, "now"))
  4675. writer.uint32(/* id 35, wireType 0 =*/280).int64(message.now);
  4676. if (message.di != null && Object.hasOwnProperty.call(message, "di"))
  4677. writer.uint32(/* id 36, wireType 0 =*/288).int64(message.di);
  4678. if (message.activityType != null && Object.hasOwnProperty.call(message, "activityType"))
  4679. writer.uint32(/* id 37, wireType 0 =*/296).int32(message.activityType);
  4680. if (message.isDouble != null && Object.hasOwnProperty.call(message, "isDouble"))
  4681. writer.uint32(/* id 38, wireType 0 =*/304).bool(message.isDouble);
  4682. if (message.playCards != null && message.playCards.length)
  4683. for (var i = 0; i < message.playCards.length; ++i)
  4684. writer.uint32(/* id 39, wireType 0 =*/312).int32(message.playCards[i]);
  4685. writer.uint32(/* id 40, wireType 0 =*/320).int32(message.posGroup);
  4686. if (message.bombNum != null && Object.hasOwnProperty.call(message, "bombNum"))
  4687. writer.uint32(/* id 41, wireType 0 =*/328).int32(message.bombNum);
  4688. if (message.roundArrangeEndTime != null && Object.hasOwnProperty.call(message, "roundArrangeEndTime"))
  4689. writer.uint32(/* id 42, wireType 0 =*/336).int64(message.roundArrangeEndTime);
  4690. if (message.goldRoomName != null && Object.hasOwnProperty.call(message, "goldRoomName"))
  4691. writer.uint32(/* id 43, wireType 2 =*/346).string(message.goldRoomName);
  4692. if (message.doubleEndTime != null && Object.hasOwnProperty.call(message, "doubleEndTime"))
  4693. writer.uint32(/* id 44, wireType 0 =*/352).int64(message.doubleEndTime);
  4694. if (message.jinGongInfoList != null && message.jinGongInfoList.length)
  4695. for (var i = 0; i < message.jinGongInfoList.length; ++i)
  4696. $root.guandan.GCJinGongInfo.encode(message.jinGongInfoList[i], writer.uint32(/* id 45, wireType 2 =*/362).fork()).ldelim();
  4697. if (message.huanGongInfoList != null && message.huanGongInfoList.length)
  4698. for (var i = 0; i < message.huanGongInfoList.length; ++i)
  4699. $root.guandan.GCHuanGongInfo.encode(message.huanGongInfoList[i], writer.uint32(/* id 46, wireType 2 =*/370).fork()).ldelim();
  4700. if (message.needHuanGong != null && Object.hasOwnProperty.call(message, "needHuanGong"))
  4701. $root.guandan.GCNeedHuanGongInfo.encode(message.needHuanGong, writer.uint32(/* id 47, wireType 2 =*/378).fork()).ldelim();
  4702. if (message.kangGongInfoList != null && message.kangGongInfoList.length)
  4703. for (var i = 0; i < message.kangGongInfoList.length; ++i)
  4704. $root.guandan.GCKangGongInfo.encode(message.kangGongInfoList[i], writer.uint32(/* id 48, wireType 2 =*/386).fork()).ldelim();
  4705. return writer;
  4706. };
  4707. /**
  4708. * Encodes the specified GCRoomInfo message, length delimited. Does not implicitly {@link guandan.GCRoomInfo.verify|verify} messages.
  4709. * @function encodeDelimited
  4710. * @memberof guandan.GCRoomInfo
  4711. * @static
  4712. * @param {guandan.IGCRoomInfo} message GCRoomInfo message or plain object to encode
  4713. * @param {$protobuf.Writer} [writer] Writer to encode to
  4714. * @returns {$protobuf.Writer} Writer
  4715. */
  4716. GCRoomInfo.encodeDelimited = function encodeDelimited(message, writer) {
  4717. return this.encode(message, writer).ldelim();
  4718. };
  4719. /**
  4720. * Decodes a GCRoomInfo message from the specified reader or buffer.
  4721. * @function decode
  4722. * @memberof guandan.GCRoomInfo
  4723. * @static
  4724. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  4725. * @param {number} [length] Message length if known beforehand
  4726. * @returns {guandan.GCRoomInfo} GCRoomInfo
  4727. * @throws {Error} If the payload is not a reader or valid buffer
  4728. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  4729. */
  4730. GCRoomInfo.decode = function decode(reader, length) {
  4731. if (!(reader instanceof $Reader))
  4732. reader = $Reader.create(reader);
  4733. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCRoomInfo();
  4734. while (reader.pos < end) {
  4735. var tag = reader.uint32();
  4736. switch (tag >>> 3) {
  4737. case 1:
  4738. message.roomId = reader.int64();
  4739. break;
  4740. case 2:
  4741. message.state = reader.int32();
  4742. break;
  4743. case 3:
  4744. message.currentPlayerId = reader.int64();
  4745. break;
  4746. case 4:
  4747. if (!(message.currentOperationList && message.currentOperationList.length))
  4748. message.currentOperationList = [];
  4749. message.currentOperationList.push($root.guandan.Operation.decode(reader, reader.uint32()));
  4750. break;
  4751. case 6:
  4752. if (!(message.currentCards && message.currentCards.length))
  4753. message.currentCards = [];
  4754. if ((tag & 7) === 2) {
  4755. var end2 = reader.uint32() + reader.pos;
  4756. while (reader.pos < end2)
  4757. message.currentCards.push(reader.int32());
  4758. } else
  4759. message.currentCards.push(reader.int32());
  4760. break;
  4761. case 7:
  4762. message.currentCardMethod = reader.int32();
  4763. break;
  4764. case 8:
  4765. message.currentRound = reader.int32();
  4766. break;
  4767. case 9:
  4768. message.name = reader.string();
  4769. break;
  4770. case 10:
  4771. message.ownerId = reader.int64();
  4772. break;
  4773. case 11:
  4774. message.totalRound = reader.int32();
  4775. break;
  4776. case 12:
  4777. message.dissolveStartTime = reader.int64();
  4778. break;
  4779. case 13:
  4780. if (!(message.aggreeDissolvePlayers && message.aggreeDissolvePlayers.length))
  4781. message.aggreeDissolvePlayers = [];
  4782. if ((tag & 7) === 2) {
  4783. var end2 = reader.uint32() + reader.pos;
  4784. while (reader.pos < end2)
  4785. message.aggreeDissolvePlayers.push(reader.int64());
  4786. } else
  4787. message.aggreeDissolvePlayers.push(reader.int64());
  4788. break;
  4789. case 14:
  4790. message.bankerPos = reader.int32();
  4791. break;
  4792. case 17:
  4793. if (!(message.jinPais && message.jinPais.length))
  4794. message.jinPais = [];
  4795. if ((tag & 7) === 2) {
  4796. var end2 = reader.uint32() + reader.pos;
  4797. while (reader.pos < end2)
  4798. message.jinPais.push(reader.int32());
  4799. } else
  4800. message.jinPais.push(reader.int32());
  4801. break;
  4802. case 20:
  4803. message.score = reader.int32();
  4804. break;
  4805. case 21:
  4806. message.mahjongType = reader.int32();
  4807. break;
  4808. case 22:
  4809. message.roomConfig = reader.bytes();
  4810. break;
  4811. case 23:
  4812. message.cardPlayObject = reader.int32();
  4813. break;
  4814. case 24:
  4815. message.maxPlayers = reader.int32();
  4816. break;
  4817. case 25:
  4818. message.currentQuan = reader.int32();
  4819. break;
  4820. case 27:
  4821. message.createTime = reader.int64();
  4822. break;
  4823. case 28:
  4824. message.openRoomType = reader.int32();
  4825. break;
  4826. case 29:
  4827. message.forbidJoinTime = reader.int64();
  4828. break;
  4829. case 30:
  4830. message.lastGameTime = reader.int64();
  4831. break;
  4832. case 32:
  4833. message.payMethod = reader.int32();
  4834. break;
  4835. case 33:
  4836. message.roomMode = reader.int32();
  4837. break;
  4838. case 34:
  4839. message.lastTime = reader.int64();
  4840. break;
  4841. case 35:
  4842. message.now = reader.int64();
  4843. break;
  4844. case 36:
  4845. message.di = reader.int64();
  4846. break;
  4847. case 37:
  4848. message.activityType = reader.int32();
  4849. break;
  4850. case 38:
  4851. message.isDouble = reader.bool();
  4852. break;
  4853. case 39:
  4854. if (!(message.playCards && message.playCards.length))
  4855. message.playCards = [];
  4856. if ((tag & 7) === 2) {
  4857. var end2 = reader.uint32() + reader.pos;
  4858. while (reader.pos < end2)
  4859. message.playCards.push(reader.int32());
  4860. } else
  4861. message.playCards.push(reader.int32());
  4862. break;
  4863. case 40:
  4864. message.posGroup = reader.int32();
  4865. break;
  4866. case 41:
  4867. message.bombNum = reader.int32();
  4868. break;
  4869. case 42:
  4870. message.roundArrangeEndTime = reader.int64();
  4871. break;
  4872. case 43:
  4873. message.goldRoomName = reader.string();
  4874. break;
  4875. case 44:
  4876. message.doubleEndTime = reader.int64();
  4877. break;
  4878. case 45:
  4879. if (!(message.jinGongInfoList && message.jinGongInfoList.length))
  4880. message.jinGongInfoList = [];
  4881. message.jinGongInfoList.push($root.guandan.GCJinGongInfo.decode(reader, reader.uint32()));
  4882. break;
  4883. case 46:
  4884. if (!(message.huanGongInfoList && message.huanGongInfoList.length))
  4885. message.huanGongInfoList = [];
  4886. message.huanGongInfoList.push($root.guandan.GCHuanGongInfo.decode(reader, reader.uint32()));
  4887. break;
  4888. case 47:
  4889. message.needHuanGong = $root.guandan.GCNeedHuanGongInfo.decode(reader, reader.uint32());
  4890. break;
  4891. case 48:
  4892. if (!(message.kangGongInfoList && message.kangGongInfoList.length))
  4893. message.kangGongInfoList = [];
  4894. message.kangGongInfoList.push($root.guandan.GCKangGongInfo.decode(reader, reader.uint32()));
  4895. break;
  4896. default:
  4897. reader.skipType(tag & 7);
  4898. break;
  4899. }
  4900. }
  4901. if (!message.hasOwnProperty("roomId"))
  4902. throw $util.ProtocolError("missing required 'roomId'", { instance: message });
  4903. if (!message.hasOwnProperty("state"))
  4904. throw $util.ProtocolError("missing required 'state'", { instance: message });
  4905. if (!message.hasOwnProperty("ownerId"))
  4906. throw $util.ProtocolError("missing required 'ownerId'", { instance: message });
  4907. if (!message.hasOwnProperty("totalRound"))
  4908. throw $util.ProtocolError("missing required 'totalRound'", { instance: message });
  4909. if (!message.hasOwnProperty("dissolveStartTime"))
  4910. throw $util.ProtocolError("missing required 'dissolveStartTime'", { instance: message });
  4911. if (!message.hasOwnProperty("bankerPos"))
  4912. throw $util.ProtocolError("missing required 'bankerPos'", { instance: message });
  4913. if (!message.hasOwnProperty("score"))
  4914. throw $util.ProtocolError("missing required 'score'", { instance: message });
  4915. if (!message.hasOwnProperty("mahjongType"))
  4916. throw $util.ProtocolError("missing required 'mahjongType'", { instance: message });
  4917. if (!message.hasOwnProperty("roomConfig"))
  4918. throw $util.ProtocolError("missing required 'roomConfig'", { instance: message });
  4919. if (!message.hasOwnProperty("maxPlayers"))
  4920. throw $util.ProtocolError("missing required 'maxPlayers'", { instance: message });
  4921. if (!message.hasOwnProperty("currentQuan"))
  4922. throw $util.ProtocolError("missing required 'currentQuan'", { instance: message });
  4923. if (!message.hasOwnProperty("createTime"))
  4924. throw $util.ProtocolError("missing required 'createTime'", { instance: message });
  4925. if (!message.hasOwnProperty("posGroup"))
  4926. throw $util.ProtocolError("missing required 'posGroup'", { instance: message });
  4927. return message;
  4928. };
  4929. /**
  4930. * Decodes a GCRoomInfo message from the specified reader or buffer, length delimited.
  4931. * @function decodeDelimited
  4932. * @memberof guandan.GCRoomInfo
  4933. * @static
  4934. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  4935. * @returns {guandan.GCRoomInfo} GCRoomInfo
  4936. * @throws {Error} If the payload is not a reader or valid buffer
  4937. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  4938. */
  4939. GCRoomInfo.decodeDelimited = function decodeDelimited(reader) {
  4940. if (!(reader instanceof $Reader))
  4941. reader = new $Reader(reader);
  4942. return this.decode(reader, reader.uint32());
  4943. };
  4944. /**
  4945. * Verifies a GCRoomInfo message.
  4946. * @function verify
  4947. * @memberof guandan.GCRoomInfo
  4948. * @static
  4949. * @param {Object.<string,*>} message Plain object to verify
  4950. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  4951. */
  4952. GCRoomInfo.verify = function verify(message) {
  4953. if (typeof message !== "object" || message === null)
  4954. return "object expected";
  4955. if (!$util.isInteger(message.roomId) && !(message.roomId && $util.isInteger(message.roomId.low) && $util.isInteger(message.roomId.high)))
  4956. return "roomId: integer|Long expected";
  4957. if (!$util.isInteger(message.state))
  4958. return "state: integer expected";
  4959. if (message.currentPlayerId != null && message.hasOwnProperty("currentPlayerId"))
  4960. if (!$util.isInteger(message.currentPlayerId) && !(message.currentPlayerId && $util.isInteger(message.currentPlayerId.low) && $util.isInteger(message.currentPlayerId.high)))
  4961. return "currentPlayerId: integer|Long expected";
  4962. if (message.currentOperationList != null && message.hasOwnProperty("currentOperationList")) {
  4963. if (!Array.isArray(message.currentOperationList))
  4964. return "currentOperationList: array expected";
  4965. for (var i = 0; i < message.currentOperationList.length; ++i) {
  4966. var error = $root.guandan.Operation.verify(message.currentOperationList[i]);
  4967. if (error)
  4968. return "currentOperationList." + error;
  4969. }
  4970. }
  4971. if (message.currentCards != null && message.hasOwnProperty("currentCards")) {
  4972. if (!Array.isArray(message.currentCards))
  4973. return "currentCards: array expected";
  4974. for (var i = 0; i < message.currentCards.length; ++i)
  4975. if (!$util.isInteger(message.currentCards[i]))
  4976. return "currentCards: integer[] expected";
  4977. }
  4978. if (message.currentCardMethod != null && message.hasOwnProperty("currentCardMethod"))
  4979. if (!$util.isInteger(message.currentCardMethod))
  4980. return "currentCardMethod: integer expected";
  4981. if (message.currentRound != null && message.hasOwnProperty("currentRound"))
  4982. if (!$util.isInteger(message.currentRound))
  4983. return "currentRound: integer expected";
  4984. if (message.name != null && message.hasOwnProperty("name"))
  4985. if (!$util.isString(message.name))
  4986. return "name: string expected";
  4987. if (!$util.isInteger(message.ownerId) && !(message.ownerId && $util.isInteger(message.ownerId.low) && $util.isInteger(message.ownerId.high)))
  4988. return "ownerId: integer|Long expected";
  4989. if (!$util.isInteger(message.totalRound))
  4990. return "totalRound: integer expected";
  4991. if (!$util.isInteger(message.dissolveStartTime) && !(message.dissolveStartTime && $util.isInteger(message.dissolveStartTime.low) && $util.isInteger(message.dissolveStartTime.high)))
  4992. return "dissolveStartTime: integer|Long expected";
  4993. if (message.aggreeDissolvePlayers != null && message.hasOwnProperty("aggreeDissolvePlayers")) {
  4994. if (!Array.isArray(message.aggreeDissolvePlayers))
  4995. return "aggreeDissolvePlayers: array expected";
  4996. for (var i = 0; i < message.aggreeDissolvePlayers.length; ++i)
  4997. if (!$util.isInteger(message.aggreeDissolvePlayers[i]) && !(message.aggreeDissolvePlayers[i] && $util.isInteger(message.aggreeDissolvePlayers[i].low) && $util.isInteger(message.aggreeDissolvePlayers[i].high)))
  4998. return "aggreeDissolvePlayers: integer|Long[] expected";
  4999. }
  5000. if (!$util.isInteger(message.bankerPos))
  5001. return "bankerPos: integer expected";
  5002. if (message.jinPais != null && message.hasOwnProperty("jinPais")) {
  5003. if (!Array.isArray(message.jinPais))
  5004. return "jinPais: array expected";
  5005. for (var i = 0; i < message.jinPais.length; ++i)
  5006. if (!$util.isInteger(message.jinPais[i]))
  5007. return "jinPais: integer[] expected";
  5008. }
  5009. if (!$util.isInteger(message.score))
  5010. return "score: integer expected";
  5011. if (!$util.isInteger(message.mahjongType))
  5012. return "mahjongType: integer expected";
  5013. if (!(message.roomConfig && typeof message.roomConfig.length === "number" || $util.isString(message.roomConfig)))
  5014. return "roomConfig: buffer expected";
  5015. if (message.cardPlayObject != null && message.hasOwnProperty("cardPlayObject"))
  5016. if (!$util.isInteger(message.cardPlayObject))
  5017. return "cardPlayObject: integer expected";
  5018. if (!$util.isInteger(message.maxPlayers))
  5019. return "maxPlayers: integer expected";
  5020. if (!$util.isInteger(message.currentQuan))
  5021. return "currentQuan: integer expected";
  5022. if (!$util.isInteger(message.createTime) && !(message.createTime && $util.isInteger(message.createTime.low) && $util.isInteger(message.createTime.high)))
  5023. return "createTime: integer|Long expected";
  5024. if (message.openRoomType != null && message.hasOwnProperty("openRoomType"))
  5025. if (!$util.isInteger(message.openRoomType))
  5026. return "openRoomType: integer expected";
  5027. if (message.forbidJoinTime != null && message.hasOwnProperty("forbidJoinTime"))
  5028. if (!$util.isInteger(message.forbidJoinTime) && !(message.forbidJoinTime && $util.isInteger(message.forbidJoinTime.low) && $util.isInteger(message.forbidJoinTime.high)))
  5029. return "forbidJoinTime: integer|Long expected";
  5030. if (message.lastGameTime != null && message.hasOwnProperty("lastGameTime"))
  5031. if (!$util.isInteger(message.lastGameTime) && !(message.lastGameTime && $util.isInteger(message.lastGameTime.low) && $util.isInteger(message.lastGameTime.high)))
  5032. return "lastGameTime: integer|Long expected";
  5033. if (message.payMethod != null && message.hasOwnProperty("payMethod"))
  5034. if (!$util.isInteger(message.payMethod))
  5035. return "payMethod: integer expected";
  5036. if (message.roomMode != null && message.hasOwnProperty("roomMode"))
  5037. if (!$util.isInteger(message.roomMode))
  5038. return "roomMode: integer expected";
  5039. if (message.lastTime != null && message.hasOwnProperty("lastTime"))
  5040. if (!$util.isInteger(message.lastTime) && !(message.lastTime && $util.isInteger(message.lastTime.low) && $util.isInteger(message.lastTime.high)))
  5041. return "lastTime: integer|Long expected";
  5042. if (message.now != null && message.hasOwnProperty("now"))
  5043. if (!$util.isInteger(message.now) && !(message.now && $util.isInteger(message.now.low) && $util.isInteger(message.now.high)))
  5044. return "now: integer|Long expected";
  5045. if (message.di != null && message.hasOwnProperty("di"))
  5046. if (!$util.isInteger(message.di) && !(message.di && $util.isInteger(message.di.low) && $util.isInteger(message.di.high)))
  5047. return "di: integer|Long expected";
  5048. if (message.activityType != null && message.hasOwnProperty("activityType"))
  5049. if (!$util.isInteger(message.activityType))
  5050. return "activityType: integer expected";
  5051. if (message.isDouble != null && message.hasOwnProperty("isDouble"))
  5052. if (typeof message.isDouble !== "boolean")
  5053. return "isDouble: boolean expected";
  5054. if (message.playCards != null && message.hasOwnProperty("playCards")) {
  5055. if (!Array.isArray(message.playCards))
  5056. return "playCards: array expected";
  5057. for (var i = 0; i < message.playCards.length; ++i)
  5058. if (!$util.isInteger(message.playCards[i]))
  5059. return "playCards: integer[] expected";
  5060. }
  5061. if (!$util.isInteger(message.posGroup))
  5062. return "posGroup: integer expected";
  5063. if (message.bombNum != null && message.hasOwnProperty("bombNum"))
  5064. if (!$util.isInteger(message.bombNum))
  5065. return "bombNum: integer expected";
  5066. if (message.roundArrangeEndTime != null && message.hasOwnProperty("roundArrangeEndTime"))
  5067. if (!$util.isInteger(message.roundArrangeEndTime) && !(message.roundArrangeEndTime && $util.isInteger(message.roundArrangeEndTime.low) && $util.isInteger(message.roundArrangeEndTime.high)))
  5068. return "roundArrangeEndTime: integer|Long expected";
  5069. if (message.goldRoomName != null && message.hasOwnProperty("goldRoomName"))
  5070. if (!$util.isString(message.goldRoomName))
  5071. return "goldRoomName: string expected";
  5072. if (message.doubleEndTime != null && message.hasOwnProperty("doubleEndTime"))
  5073. if (!$util.isInteger(message.doubleEndTime) && !(message.doubleEndTime && $util.isInteger(message.doubleEndTime.low) && $util.isInteger(message.doubleEndTime.high)))
  5074. return "doubleEndTime: integer|Long expected";
  5075. if (message.jinGongInfoList != null && message.hasOwnProperty("jinGongInfoList")) {
  5076. if (!Array.isArray(message.jinGongInfoList))
  5077. return "jinGongInfoList: array expected";
  5078. for (var i = 0; i < message.jinGongInfoList.length; ++i) {
  5079. var error = $root.guandan.GCJinGongInfo.verify(message.jinGongInfoList[i]);
  5080. if (error)
  5081. return "jinGongInfoList." + error;
  5082. }
  5083. }
  5084. if (message.huanGongInfoList != null && message.hasOwnProperty("huanGongInfoList")) {
  5085. if (!Array.isArray(message.huanGongInfoList))
  5086. return "huanGongInfoList: array expected";
  5087. for (var i = 0; i < message.huanGongInfoList.length; ++i) {
  5088. var error = $root.guandan.GCHuanGongInfo.verify(message.huanGongInfoList[i]);
  5089. if (error)
  5090. return "huanGongInfoList." + error;
  5091. }
  5092. }
  5093. if (message.needHuanGong != null && message.hasOwnProperty("needHuanGong")) {
  5094. var error = $root.guandan.GCNeedHuanGongInfo.verify(message.needHuanGong);
  5095. if (error)
  5096. return "needHuanGong." + error;
  5097. }
  5098. if (message.kangGongInfoList != null && message.hasOwnProperty("kangGongInfoList")) {
  5099. if (!Array.isArray(message.kangGongInfoList))
  5100. return "kangGongInfoList: array expected";
  5101. for (var i = 0; i < message.kangGongInfoList.length; ++i) {
  5102. var error = $root.guandan.GCKangGongInfo.verify(message.kangGongInfoList[i]);
  5103. if (error)
  5104. return "kangGongInfoList." + error;
  5105. }
  5106. }
  5107. return null;
  5108. };
  5109. /**
  5110. * Creates a GCRoomInfo message from a plain object. Also converts values to their respective internal types.
  5111. * @function fromObject
  5112. * @memberof guandan.GCRoomInfo
  5113. * @static
  5114. * @param {Object.<string,*>} object Plain object
  5115. * @returns {guandan.GCRoomInfo} GCRoomInfo
  5116. */
  5117. GCRoomInfo.fromObject = function fromObject(object) {
  5118. if (object instanceof $root.guandan.GCRoomInfo)
  5119. return object;
  5120. var message = new $root.guandan.GCRoomInfo();
  5121. if (object.roomId != null)
  5122. if ($util.Long)
  5123. (message.roomId = $util.Long.fromValue(object.roomId)).unsigned = false;
  5124. else if (typeof object.roomId === "string")
  5125. message.roomId = parseInt(object.roomId, 10);
  5126. else if (typeof object.roomId === "number")
  5127. message.roomId = object.roomId;
  5128. else if (typeof object.roomId === "object")
  5129. message.roomId = new $util.LongBits(object.roomId.low >>> 0, object.roomId.high >>> 0).toNumber();
  5130. if (object.state != null)
  5131. message.state = object.state | 0;
  5132. if (object.currentPlayerId != null)
  5133. if ($util.Long)
  5134. (message.currentPlayerId = $util.Long.fromValue(object.currentPlayerId)).unsigned = false;
  5135. else if (typeof object.currentPlayerId === "string")
  5136. message.currentPlayerId = parseInt(object.currentPlayerId, 10);
  5137. else if (typeof object.currentPlayerId === "number")
  5138. message.currentPlayerId = object.currentPlayerId;
  5139. else if (typeof object.currentPlayerId === "object")
  5140. message.currentPlayerId = new $util.LongBits(object.currentPlayerId.low >>> 0, object.currentPlayerId.high >>> 0).toNumber();
  5141. if (object.currentOperationList) {
  5142. if (!Array.isArray(object.currentOperationList))
  5143. throw TypeError(".guandan.GCRoomInfo.currentOperationList: array expected");
  5144. message.currentOperationList = [];
  5145. for (var i = 0; i < object.currentOperationList.length; ++i) {
  5146. if (typeof object.currentOperationList[i] !== "object")
  5147. throw TypeError(".guandan.GCRoomInfo.currentOperationList: object expected");
  5148. message.currentOperationList[i] = $root.guandan.Operation.fromObject(object.currentOperationList[i]);
  5149. }
  5150. }
  5151. if (object.currentCards) {
  5152. if (!Array.isArray(object.currentCards))
  5153. throw TypeError(".guandan.GCRoomInfo.currentCards: array expected");
  5154. message.currentCards = [];
  5155. for (var i = 0; i < object.currentCards.length; ++i)
  5156. message.currentCards[i] = object.currentCards[i] | 0;
  5157. }
  5158. if (object.currentCardMethod != null)
  5159. message.currentCardMethod = object.currentCardMethod | 0;
  5160. if (object.currentRound != null)
  5161. message.currentRound = object.currentRound | 0;
  5162. if (object.name != null)
  5163. message.name = String(object.name);
  5164. if (object.ownerId != null)
  5165. if ($util.Long)
  5166. (message.ownerId = $util.Long.fromValue(object.ownerId)).unsigned = false;
  5167. else if (typeof object.ownerId === "string")
  5168. message.ownerId = parseInt(object.ownerId, 10);
  5169. else if (typeof object.ownerId === "number")
  5170. message.ownerId = object.ownerId;
  5171. else if (typeof object.ownerId === "object")
  5172. message.ownerId = new $util.LongBits(object.ownerId.low >>> 0, object.ownerId.high >>> 0).toNumber();
  5173. if (object.totalRound != null)
  5174. message.totalRound = object.totalRound | 0;
  5175. if (object.dissolveStartTime != null)
  5176. if ($util.Long)
  5177. (message.dissolveStartTime = $util.Long.fromValue(object.dissolveStartTime)).unsigned = false;
  5178. else if (typeof object.dissolveStartTime === "string")
  5179. message.dissolveStartTime = parseInt(object.dissolveStartTime, 10);
  5180. else if (typeof object.dissolveStartTime === "number")
  5181. message.dissolveStartTime = object.dissolveStartTime;
  5182. else if (typeof object.dissolveStartTime === "object")
  5183. message.dissolveStartTime = new $util.LongBits(object.dissolveStartTime.low >>> 0, object.dissolveStartTime.high >>> 0).toNumber();
  5184. if (object.aggreeDissolvePlayers) {
  5185. if (!Array.isArray(object.aggreeDissolvePlayers))
  5186. throw TypeError(".guandan.GCRoomInfo.aggreeDissolvePlayers: array expected");
  5187. message.aggreeDissolvePlayers = [];
  5188. for (var i = 0; i < object.aggreeDissolvePlayers.length; ++i)
  5189. if ($util.Long)
  5190. (message.aggreeDissolvePlayers[i] = $util.Long.fromValue(object.aggreeDissolvePlayers[i])).unsigned = false;
  5191. else if (typeof object.aggreeDissolvePlayers[i] === "string")
  5192. message.aggreeDissolvePlayers[i] = parseInt(object.aggreeDissolvePlayers[i], 10);
  5193. else if (typeof object.aggreeDissolvePlayers[i] === "number")
  5194. message.aggreeDissolvePlayers[i] = object.aggreeDissolvePlayers[i];
  5195. else if (typeof object.aggreeDissolvePlayers[i] === "object")
  5196. message.aggreeDissolvePlayers[i] = new $util.LongBits(object.aggreeDissolvePlayers[i].low >>> 0, object.aggreeDissolvePlayers[i].high >>> 0).toNumber();
  5197. }
  5198. if (object.bankerPos != null)
  5199. message.bankerPos = object.bankerPos | 0;
  5200. if (object.jinPais) {
  5201. if (!Array.isArray(object.jinPais))
  5202. throw TypeError(".guandan.GCRoomInfo.jinPais: array expected");
  5203. message.jinPais = [];
  5204. for (var i = 0; i < object.jinPais.length; ++i)
  5205. message.jinPais[i] = object.jinPais[i] | 0;
  5206. }
  5207. if (object.score != null)
  5208. message.score = object.score | 0;
  5209. if (object.mahjongType != null)
  5210. message.mahjongType = object.mahjongType | 0;
  5211. if (object.roomConfig != null)
  5212. if (typeof object.roomConfig === "string")
  5213. $util.base64.decode(object.roomConfig, message.roomConfig = $util.newBuffer($util.base64.length(object.roomConfig)), 0);
  5214. else if (object.roomConfig.length)
  5215. message.roomConfig = object.roomConfig;
  5216. if (object.cardPlayObject != null)
  5217. message.cardPlayObject = object.cardPlayObject | 0;
  5218. if (object.maxPlayers != null)
  5219. message.maxPlayers = object.maxPlayers | 0;
  5220. if (object.currentQuan != null)
  5221. message.currentQuan = object.currentQuan | 0;
  5222. if (object.createTime != null)
  5223. if ($util.Long)
  5224. (message.createTime = $util.Long.fromValue(object.createTime)).unsigned = false;
  5225. else if (typeof object.createTime === "string")
  5226. message.createTime = parseInt(object.createTime, 10);
  5227. else if (typeof object.createTime === "number")
  5228. message.createTime = object.createTime;
  5229. else if (typeof object.createTime === "object")
  5230. message.createTime = new $util.LongBits(object.createTime.low >>> 0, object.createTime.high >>> 0).toNumber();
  5231. if (object.openRoomType != null)
  5232. message.openRoomType = object.openRoomType | 0;
  5233. if (object.forbidJoinTime != null)
  5234. if ($util.Long)
  5235. (message.forbidJoinTime = $util.Long.fromValue(object.forbidJoinTime)).unsigned = false;
  5236. else if (typeof object.forbidJoinTime === "string")
  5237. message.forbidJoinTime = parseInt(object.forbidJoinTime, 10);
  5238. else if (typeof object.forbidJoinTime === "number")
  5239. message.forbidJoinTime = object.forbidJoinTime;
  5240. else if (typeof object.forbidJoinTime === "object")
  5241. message.forbidJoinTime = new $util.LongBits(object.forbidJoinTime.low >>> 0, object.forbidJoinTime.high >>> 0).toNumber();
  5242. if (object.lastGameTime != null)
  5243. if ($util.Long)
  5244. (message.lastGameTime = $util.Long.fromValue(object.lastGameTime)).unsigned = false;
  5245. else if (typeof object.lastGameTime === "string")
  5246. message.lastGameTime = parseInt(object.lastGameTime, 10);
  5247. else if (typeof object.lastGameTime === "number")
  5248. message.lastGameTime = object.lastGameTime;
  5249. else if (typeof object.lastGameTime === "object")
  5250. message.lastGameTime = new $util.LongBits(object.lastGameTime.low >>> 0, object.lastGameTime.high >>> 0).toNumber();
  5251. if (object.payMethod != null)
  5252. message.payMethod = object.payMethod | 0;
  5253. if (object.roomMode != null)
  5254. message.roomMode = object.roomMode | 0;
  5255. if (object.lastTime != null)
  5256. if ($util.Long)
  5257. (message.lastTime = $util.Long.fromValue(object.lastTime)).unsigned = false;
  5258. else if (typeof object.lastTime === "string")
  5259. message.lastTime = parseInt(object.lastTime, 10);
  5260. else if (typeof object.lastTime === "number")
  5261. message.lastTime = object.lastTime;
  5262. else if (typeof object.lastTime === "object")
  5263. message.lastTime = new $util.LongBits(object.lastTime.low >>> 0, object.lastTime.high >>> 0).toNumber();
  5264. if (object.now != null)
  5265. if ($util.Long)
  5266. (message.now = $util.Long.fromValue(object.now)).unsigned = false;
  5267. else if (typeof object.now === "string")
  5268. message.now = parseInt(object.now, 10);
  5269. else if (typeof object.now === "number")
  5270. message.now = object.now;
  5271. else if (typeof object.now === "object")
  5272. message.now = new $util.LongBits(object.now.low >>> 0, object.now.high >>> 0).toNumber();
  5273. if (object.di != null)
  5274. if ($util.Long)
  5275. (message.di = $util.Long.fromValue(object.di)).unsigned = false;
  5276. else if (typeof object.di === "string")
  5277. message.di = parseInt(object.di, 10);
  5278. else if (typeof object.di === "number")
  5279. message.di = object.di;
  5280. else if (typeof object.di === "object")
  5281. message.di = new $util.LongBits(object.di.low >>> 0, object.di.high >>> 0).toNumber();
  5282. if (object.activityType != null)
  5283. message.activityType = object.activityType | 0;
  5284. if (object.isDouble != null)
  5285. message.isDouble = Boolean(object.isDouble);
  5286. if (object.playCards) {
  5287. if (!Array.isArray(object.playCards))
  5288. throw TypeError(".guandan.GCRoomInfo.playCards: array expected");
  5289. message.playCards = [];
  5290. for (var i = 0; i < object.playCards.length; ++i)
  5291. message.playCards[i] = object.playCards[i] | 0;
  5292. }
  5293. if (object.posGroup != null)
  5294. message.posGroup = object.posGroup | 0;
  5295. if (object.bombNum != null)
  5296. message.bombNum = object.bombNum | 0;
  5297. if (object.roundArrangeEndTime != null)
  5298. if ($util.Long)
  5299. (message.roundArrangeEndTime = $util.Long.fromValue(object.roundArrangeEndTime)).unsigned = false;
  5300. else if (typeof object.roundArrangeEndTime === "string")
  5301. message.roundArrangeEndTime = parseInt(object.roundArrangeEndTime, 10);
  5302. else if (typeof object.roundArrangeEndTime === "number")
  5303. message.roundArrangeEndTime = object.roundArrangeEndTime;
  5304. else if (typeof object.roundArrangeEndTime === "object")
  5305. message.roundArrangeEndTime = new $util.LongBits(object.roundArrangeEndTime.low >>> 0, object.roundArrangeEndTime.high >>> 0).toNumber();
  5306. if (object.goldRoomName != null)
  5307. message.goldRoomName = String(object.goldRoomName);
  5308. if (object.doubleEndTime != null)
  5309. if ($util.Long)
  5310. (message.doubleEndTime = $util.Long.fromValue(object.doubleEndTime)).unsigned = false;
  5311. else if (typeof object.doubleEndTime === "string")
  5312. message.doubleEndTime = parseInt(object.doubleEndTime, 10);
  5313. else if (typeof object.doubleEndTime === "number")
  5314. message.doubleEndTime = object.doubleEndTime;
  5315. else if (typeof object.doubleEndTime === "object")
  5316. message.doubleEndTime = new $util.LongBits(object.doubleEndTime.low >>> 0, object.doubleEndTime.high >>> 0).toNumber();
  5317. if (object.jinGongInfoList) {
  5318. if (!Array.isArray(object.jinGongInfoList))
  5319. throw TypeError(".guandan.GCRoomInfo.jinGongInfoList: array expected");
  5320. message.jinGongInfoList = [];
  5321. for (var i = 0; i < object.jinGongInfoList.length; ++i) {
  5322. if (typeof object.jinGongInfoList[i] !== "object")
  5323. throw TypeError(".guandan.GCRoomInfo.jinGongInfoList: object expected");
  5324. message.jinGongInfoList[i] = $root.guandan.GCJinGongInfo.fromObject(object.jinGongInfoList[i]);
  5325. }
  5326. }
  5327. if (object.huanGongInfoList) {
  5328. if (!Array.isArray(object.huanGongInfoList))
  5329. throw TypeError(".guandan.GCRoomInfo.huanGongInfoList: array expected");
  5330. message.huanGongInfoList = [];
  5331. for (var i = 0; i < object.huanGongInfoList.length; ++i) {
  5332. if (typeof object.huanGongInfoList[i] !== "object")
  5333. throw TypeError(".guandan.GCRoomInfo.huanGongInfoList: object expected");
  5334. message.huanGongInfoList[i] = $root.guandan.GCHuanGongInfo.fromObject(object.huanGongInfoList[i]);
  5335. }
  5336. }
  5337. if (object.needHuanGong != null) {
  5338. if (typeof object.needHuanGong !== "object")
  5339. throw TypeError(".guandan.GCRoomInfo.needHuanGong: object expected");
  5340. message.needHuanGong = $root.guandan.GCNeedHuanGongInfo.fromObject(object.needHuanGong);
  5341. }
  5342. if (object.kangGongInfoList) {
  5343. if (!Array.isArray(object.kangGongInfoList))
  5344. throw TypeError(".guandan.GCRoomInfo.kangGongInfoList: array expected");
  5345. message.kangGongInfoList = [];
  5346. for (var i = 0; i < object.kangGongInfoList.length; ++i) {
  5347. if (typeof object.kangGongInfoList[i] !== "object")
  5348. throw TypeError(".guandan.GCRoomInfo.kangGongInfoList: object expected");
  5349. message.kangGongInfoList[i] = $root.guandan.GCKangGongInfo.fromObject(object.kangGongInfoList[i]);
  5350. }
  5351. }
  5352. return message;
  5353. };
  5354. /**
  5355. * Creates a plain object from a GCRoomInfo message. Also converts values to other types if specified.
  5356. * @function toObject
  5357. * @memberof guandan.GCRoomInfo
  5358. * @static
  5359. * @param {guandan.GCRoomInfo} message GCRoomInfo
  5360. * @param {$protobuf.IConversionOptions} [options] Conversion options
  5361. * @returns {Object.<string,*>} Plain object
  5362. */
  5363. GCRoomInfo.toObject = function toObject(message, options) {
  5364. if (!options)
  5365. options = {};
  5366. var object = {};
  5367. if (options.arrays || options.defaults) {
  5368. object.currentOperationList = [];
  5369. object.currentCards = [];
  5370. object.aggreeDissolvePlayers = [];
  5371. object.jinPais = [];
  5372. object.playCards = [];
  5373. object.jinGongInfoList = [];
  5374. object.huanGongInfoList = [];
  5375. object.kangGongInfoList = [];
  5376. }
  5377. if (options.defaults) {
  5378. if ($util.Long) {
  5379. var long = new $util.Long(0, 0, false);
  5380. object.roomId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  5381. } else
  5382. object.roomId = options.longs === String ? "0" : 0;
  5383. object.state = 0;
  5384. if ($util.Long) {
  5385. var long = new $util.Long(0, 0, false);
  5386. object.currentPlayerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  5387. } else
  5388. object.currentPlayerId = options.longs === String ? "0" : 0;
  5389. object.currentCardMethod = 0;
  5390. object.currentRound = 0;
  5391. object.name = "";
  5392. if ($util.Long) {
  5393. var long = new $util.Long(0, 0, false);
  5394. object.ownerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  5395. } else
  5396. object.ownerId = options.longs === String ? "0" : 0;
  5397. object.totalRound = 0;
  5398. if ($util.Long) {
  5399. var long = new $util.Long(0, 0, false);
  5400. object.dissolveStartTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  5401. } else
  5402. object.dissolveStartTime = options.longs === String ? "0" : 0;
  5403. object.bankerPos = 0;
  5404. object.score = 0;
  5405. object.mahjongType = 0;
  5406. if (options.bytes === String)
  5407. object.roomConfig = "";
  5408. else {
  5409. object.roomConfig = [];
  5410. if (options.bytes !== Array)
  5411. object.roomConfig = $util.newBuffer(object.roomConfig);
  5412. }
  5413. object.cardPlayObject = 0;
  5414. object.maxPlayers = 0;
  5415. object.currentQuan = 0;
  5416. if ($util.Long) {
  5417. var long = new $util.Long(0, 0, false);
  5418. object.createTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  5419. } else
  5420. object.createTime = options.longs === String ? "0" : 0;
  5421. object.openRoomType = 0;
  5422. if ($util.Long) {
  5423. var long = new $util.Long(0, 0, false);
  5424. object.forbidJoinTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  5425. } else
  5426. object.forbidJoinTime = options.longs === String ? "0" : 0;
  5427. if ($util.Long) {
  5428. var long = new $util.Long(0, 0, false);
  5429. object.lastGameTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  5430. } else
  5431. object.lastGameTime = options.longs === String ? "0" : 0;
  5432. object.payMethod = 0;
  5433. object.roomMode = 0;
  5434. if ($util.Long) {
  5435. var long = new $util.Long(0, 0, false);
  5436. object.lastTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  5437. } else
  5438. object.lastTime = options.longs === String ? "0" : 0;
  5439. if ($util.Long) {
  5440. var long = new $util.Long(0, 0, false);
  5441. object.now = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  5442. } else
  5443. object.now = options.longs === String ? "0" : 0;
  5444. if ($util.Long) {
  5445. var long = new $util.Long(0, 0, false);
  5446. object.di = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  5447. } else
  5448. object.di = options.longs === String ? "0" : 0;
  5449. object.activityType = 0;
  5450. object.isDouble = false;
  5451. object.posGroup = 0;
  5452. object.bombNum = 0;
  5453. if ($util.Long) {
  5454. var long = new $util.Long(0, 0, false);
  5455. object.roundArrangeEndTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  5456. } else
  5457. object.roundArrangeEndTime = options.longs === String ? "0" : 0;
  5458. object.goldRoomName = "";
  5459. if ($util.Long) {
  5460. var long = new $util.Long(0, 0, false);
  5461. object.doubleEndTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  5462. } else
  5463. object.doubleEndTime = options.longs === String ? "0" : 0;
  5464. object.needHuanGong = null;
  5465. }
  5466. if (message.roomId != null && message.hasOwnProperty("roomId"))
  5467. if (typeof message.roomId === "number")
  5468. object.roomId = options.longs === String ? String(message.roomId) : message.roomId;
  5469. else
  5470. object.roomId = options.longs === String ? $util.Long.prototype.toString.call(message.roomId) : options.longs === Number ? new $util.LongBits(message.roomId.low >>> 0, message.roomId.high >>> 0).toNumber() : message.roomId;
  5471. if (message.state != null && message.hasOwnProperty("state"))
  5472. object.state = message.state;
  5473. if (message.currentPlayerId != null && message.hasOwnProperty("currentPlayerId"))
  5474. if (typeof message.currentPlayerId === "number")
  5475. object.currentPlayerId = options.longs === String ? String(message.currentPlayerId) : message.currentPlayerId;
  5476. else
  5477. object.currentPlayerId = options.longs === String ? $util.Long.prototype.toString.call(message.currentPlayerId) : options.longs === Number ? new $util.LongBits(message.currentPlayerId.low >>> 0, message.currentPlayerId.high >>> 0).toNumber() : message.currentPlayerId;
  5478. if (message.currentOperationList && message.currentOperationList.length) {
  5479. object.currentOperationList = [];
  5480. for (var j = 0; j < message.currentOperationList.length; ++j)
  5481. object.currentOperationList[j] = $root.guandan.Operation.toObject(message.currentOperationList[j], options);
  5482. }
  5483. if (message.currentCards && message.currentCards.length) {
  5484. object.currentCards = [];
  5485. for (var j = 0; j < message.currentCards.length; ++j)
  5486. object.currentCards[j] = message.currentCards[j];
  5487. }
  5488. if (message.currentCardMethod != null && message.hasOwnProperty("currentCardMethod"))
  5489. object.currentCardMethod = message.currentCardMethod;
  5490. if (message.currentRound != null && message.hasOwnProperty("currentRound"))
  5491. object.currentRound = message.currentRound;
  5492. if (message.name != null && message.hasOwnProperty("name"))
  5493. object.name = message.name;
  5494. if (message.ownerId != null && message.hasOwnProperty("ownerId"))
  5495. if (typeof message.ownerId === "number")
  5496. object.ownerId = options.longs === String ? String(message.ownerId) : message.ownerId;
  5497. else
  5498. object.ownerId = options.longs === String ? $util.Long.prototype.toString.call(message.ownerId) : options.longs === Number ? new $util.LongBits(message.ownerId.low >>> 0, message.ownerId.high >>> 0).toNumber() : message.ownerId;
  5499. if (message.totalRound != null && message.hasOwnProperty("totalRound"))
  5500. object.totalRound = message.totalRound;
  5501. if (message.dissolveStartTime != null && message.hasOwnProperty("dissolveStartTime"))
  5502. if (typeof message.dissolveStartTime === "number")
  5503. object.dissolveStartTime = options.longs === String ? String(message.dissolveStartTime) : message.dissolveStartTime;
  5504. else
  5505. object.dissolveStartTime = options.longs === String ? $util.Long.prototype.toString.call(message.dissolveStartTime) : options.longs === Number ? new $util.LongBits(message.dissolveStartTime.low >>> 0, message.dissolveStartTime.high >>> 0).toNumber() : message.dissolveStartTime;
  5506. if (message.aggreeDissolvePlayers && message.aggreeDissolvePlayers.length) {
  5507. object.aggreeDissolvePlayers = [];
  5508. for (var j = 0; j < message.aggreeDissolvePlayers.length; ++j)
  5509. if (typeof message.aggreeDissolvePlayers[j] === "number")
  5510. object.aggreeDissolvePlayers[j] = options.longs === String ? String(message.aggreeDissolvePlayers[j]) : message.aggreeDissolvePlayers[j];
  5511. else
  5512. object.aggreeDissolvePlayers[j] = options.longs === String ? $util.Long.prototype.toString.call(message.aggreeDissolvePlayers[j]) : options.longs === Number ? new $util.LongBits(message.aggreeDissolvePlayers[j].low >>> 0, message.aggreeDissolvePlayers[j].high >>> 0).toNumber() : message.aggreeDissolvePlayers[j];
  5513. }
  5514. if (message.bankerPos != null && message.hasOwnProperty("bankerPos"))
  5515. object.bankerPos = message.bankerPos;
  5516. if (message.jinPais && message.jinPais.length) {
  5517. object.jinPais = [];
  5518. for (var j = 0; j < message.jinPais.length; ++j)
  5519. object.jinPais[j] = message.jinPais[j];
  5520. }
  5521. if (message.score != null && message.hasOwnProperty("score"))
  5522. object.score = message.score;
  5523. if (message.mahjongType != null && message.hasOwnProperty("mahjongType"))
  5524. object.mahjongType = message.mahjongType;
  5525. if (message.roomConfig != null && message.hasOwnProperty("roomConfig"))
  5526. object.roomConfig = options.bytes === String ? $util.base64.encode(message.roomConfig, 0, message.roomConfig.length) : options.bytes === Array ? Array.prototype.slice.call(message.roomConfig) : message.roomConfig;
  5527. if (message.cardPlayObject != null && message.hasOwnProperty("cardPlayObject"))
  5528. object.cardPlayObject = message.cardPlayObject;
  5529. if (message.maxPlayers != null && message.hasOwnProperty("maxPlayers"))
  5530. object.maxPlayers = message.maxPlayers;
  5531. if (message.currentQuan != null && message.hasOwnProperty("currentQuan"))
  5532. object.currentQuan = message.currentQuan;
  5533. if (message.createTime != null && message.hasOwnProperty("createTime"))
  5534. if (typeof message.createTime === "number")
  5535. object.createTime = options.longs === String ? String(message.createTime) : message.createTime;
  5536. else
  5537. 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;
  5538. if (message.openRoomType != null && message.hasOwnProperty("openRoomType"))
  5539. object.openRoomType = message.openRoomType;
  5540. if (message.forbidJoinTime != null && message.hasOwnProperty("forbidJoinTime"))
  5541. if (typeof message.forbidJoinTime === "number")
  5542. object.forbidJoinTime = options.longs === String ? String(message.forbidJoinTime) : message.forbidJoinTime;
  5543. else
  5544. object.forbidJoinTime = options.longs === String ? $util.Long.prototype.toString.call(message.forbidJoinTime) : options.longs === Number ? new $util.LongBits(message.forbidJoinTime.low >>> 0, message.forbidJoinTime.high >>> 0).toNumber() : message.forbidJoinTime;
  5545. if (message.lastGameTime != null && message.hasOwnProperty("lastGameTime"))
  5546. if (typeof message.lastGameTime === "number")
  5547. object.lastGameTime = options.longs === String ? String(message.lastGameTime) : message.lastGameTime;
  5548. else
  5549. object.lastGameTime = options.longs === String ? $util.Long.prototype.toString.call(message.lastGameTime) : options.longs === Number ? new $util.LongBits(message.lastGameTime.low >>> 0, message.lastGameTime.high >>> 0).toNumber() : message.lastGameTime;
  5550. if (message.payMethod != null && message.hasOwnProperty("payMethod"))
  5551. object.payMethod = message.payMethod;
  5552. if (message.roomMode != null && message.hasOwnProperty("roomMode"))
  5553. object.roomMode = message.roomMode;
  5554. if (message.lastTime != null && message.hasOwnProperty("lastTime"))
  5555. if (typeof message.lastTime === "number")
  5556. object.lastTime = options.longs === String ? String(message.lastTime) : message.lastTime;
  5557. else
  5558. object.lastTime = options.longs === String ? $util.Long.prototype.toString.call(message.lastTime) : options.longs === Number ? new $util.LongBits(message.lastTime.low >>> 0, message.lastTime.high >>> 0).toNumber() : message.lastTime;
  5559. if (message.now != null && message.hasOwnProperty("now"))
  5560. if (typeof message.now === "number")
  5561. object.now = options.longs === String ? String(message.now) : message.now;
  5562. else
  5563. object.now = options.longs === String ? $util.Long.prototype.toString.call(message.now) : options.longs === Number ? new $util.LongBits(message.now.low >>> 0, message.now.high >>> 0).toNumber() : message.now;
  5564. if (message.di != null && message.hasOwnProperty("di"))
  5565. if (typeof message.di === "number")
  5566. object.di = options.longs === String ? String(message.di) : message.di;
  5567. else
  5568. object.di = options.longs === String ? $util.Long.prototype.toString.call(message.di) : options.longs === Number ? new $util.LongBits(message.di.low >>> 0, message.di.high >>> 0).toNumber() : message.di;
  5569. if (message.activityType != null && message.hasOwnProperty("activityType"))
  5570. object.activityType = message.activityType;
  5571. if (message.isDouble != null && message.hasOwnProperty("isDouble"))
  5572. object.isDouble = message.isDouble;
  5573. if (message.playCards && message.playCards.length) {
  5574. object.playCards = [];
  5575. for (var j = 0; j < message.playCards.length; ++j)
  5576. object.playCards[j] = message.playCards[j];
  5577. }
  5578. if (message.posGroup != null && message.hasOwnProperty("posGroup"))
  5579. object.posGroup = message.posGroup;
  5580. if (message.bombNum != null && message.hasOwnProperty("bombNum"))
  5581. object.bombNum = message.bombNum;
  5582. if (message.roundArrangeEndTime != null && message.hasOwnProperty("roundArrangeEndTime"))
  5583. if (typeof message.roundArrangeEndTime === "number")
  5584. object.roundArrangeEndTime = options.longs === String ? String(message.roundArrangeEndTime) : message.roundArrangeEndTime;
  5585. else
  5586. object.roundArrangeEndTime = options.longs === String ? $util.Long.prototype.toString.call(message.roundArrangeEndTime) : options.longs === Number ? new $util.LongBits(message.roundArrangeEndTime.low >>> 0, message.roundArrangeEndTime.high >>> 0).toNumber() : message.roundArrangeEndTime;
  5587. if (message.goldRoomName != null && message.hasOwnProperty("goldRoomName"))
  5588. object.goldRoomName = message.goldRoomName;
  5589. if (message.doubleEndTime != null && message.hasOwnProperty("doubleEndTime"))
  5590. if (typeof message.doubleEndTime === "number")
  5591. object.doubleEndTime = options.longs === String ? String(message.doubleEndTime) : message.doubleEndTime;
  5592. else
  5593. object.doubleEndTime = options.longs === String ? $util.Long.prototype.toString.call(message.doubleEndTime) : options.longs === Number ? new $util.LongBits(message.doubleEndTime.low >>> 0, message.doubleEndTime.high >>> 0).toNumber() : message.doubleEndTime;
  5594. if (message.jinGongInfoList && message.jinGongInfoList.length) {
  5595. object.jinGongInfoList = [];
  5596. for (var j = 0; j < message.jinGongInfoList.length; ++j)
  5597. object.jinGongInfoList[j] = $root.guandan.GCJinGongInfo.toObject(message.jinGongInfoList[j], options);
  5598. }
  5599. if (message.huanGongInfoList && message.huanGongInfoList.length) {
  5600. object.huanGongInfoList = [];
  5601. for (var j = 0; j < message.huanGongInfoList.length; ++j)
  5602. object.huanGongInfoList[j] = $root.guandan.GCHuanGongInfo.toObject(message.huanGongInfoList[j], options);
  5603. }
  5604. if (message.needHuanGong != null && message.hasOwnProperty("needHuanGong"))
  5605. object.needHuanGong = $root.guandan.GCNeedHuanGongInfo.toObject(message.needHuanGong, options);
  5606. if (message.kangGongInfoList && message.kangGongInfoList.length) {
  5607. object.kangGongInfoList = [];
  5608. for (var j = 0; j < message.kangGongInfoList.length; ++j)
  5609. object.kangGongInfoList[j] = $root.guandan.GCKangGongInfo.toObject(message.kangGongInfoList[j], options);
  5610. }
  5611. return object;
  5612. };
  5613. /**
  5614. * Converts this GCRoomInfo to JSON.
  5615. * @function toJSON
  5616. * @memberof guandan.GCRoomInfo
  5617. * @instance
  5618. * @returns {Object.<string,*>} JSON object
  5619. */
  5620. GCRoomInfo.prototype.toJSON = function toJSON() {
  5621. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  5622. };
  5623. return GCRoomInfo;
  5624. })();
  5625. guandan.GCJoinRoom = (function() {
  5626. /**
  5627. * Properties of a GCJoinRoom.
  5628. * @memberof guandan
  5629. * @interface IGCJoinRoom
  5630. * @property {guandan.IGCRoomInfo} roomInfo GCJoinRoom roomInfo
  5631. * @property {Array.<guandan.IGCPlayerInfo>|null} [playerInfoList] GCJoinRoom playerInfoList
  5632. */
  5633. /**
  5634. * Constructs a new GCJoinRoom.
  5635. * @memberof guandan
  5636. * @classdesc Represents a GCJoinRoom.
  5637. * @implements IGCJoinRoom
  5638. * @constructor
  5639. * @param {guandan.IGCJoinRoom=} [properties] Properties to set
  5640. */
  5641. function GCJoinRoom(properties) {
  5642. this.playerInfoList = [];
  5643. if (properties)
  5644. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  5645. if (properties[keys[i]] != null)
  5646. this[keys[i]] = properties[keys[i]];
  5647. }
  5648. /**
  5649. * GCJoinRoom roomInfo.
  5650. * @member {guandan.IGCRoomInfo} roomInfo
  5651. * @memberof guandan.GCJoinRoom
  5652. * @instance
  5653. */
  5654. GCJoinRoom.prototype.roomInfo = null;
  5655. /**
  5656. * GCJoinRoom playerInfoList.
  5657. * @member {Array.<guandan.IGCPlayerInfo>} playerInfoList
  5658. * @memberof guandan.GCJoinRoom
  5659. * @instance
  5660. */
  5661. GCJoinRoom.prototype.playerInfoList = $util.emptyArray;
  5662. /**
  5663. * Creates a new GCJoinRoom instance using the specified properties.
  5664. * @function create
  5665. * @memberof guandan.GCJoinRoom
  5666. * @static
  5667. * @param {guandan.IGCJoinRoom=} [properties] Properties to set
  5668. * @returns {guandan.GCJoinRoom} GCJoinRoom instance
  5669. */
  5670. GCJoinRoom.create = function create(properties) {
  5671. return new GCJoinRoom(properties);
  5672. };
  5673. /**
  5674. * Encodes the specified GCJoinRoom message. Does not implicitly {@link guandan.GCJoinRoom.verify|verify} messages.
  5675. * @function encode
  5676. * @memberof guandan.GCJoinRoom
  5677. * @static
  5678. * @param {guandan.IGCJoinRoom} message GCJoinRoom message or plain object to encode
  5679. * @param {$protobuf.Writer} [writer] Writer to encode to
  5680. * @returns {$protobuf.Writer} Writer
  5681. */
  5682. GCJoinRoom.encode = function encode(message, writer) {
  5683. if (!writer)
  5684. writer = $Writer.create();
  5685. $root.guandan.GCRoomInfo.encode(message.roomInfo, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
  5686. if (message.playerInfoList != null && message.playerInfoList.length)
  5687. for (var i = 0; i < message.playerInfoList.length; ++i)
  5688. $root.guandan.GCPlayerInfo.encode(message.playerInfoList[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  5689. return writer;
  5690. };
  5691. /**
  5692. * Encodes the specified GCJoinRoom message, length delimited. Does not implicitly {@link guandan.GCJoinRoom.verify|verify} messages.
  5693. * @function encodeDelimited
  5694. * @memberof guandan.GCJoinRoom
  5695. * @static
  5696. * @param {guandan.IGCJoinRoom} message GCJoinRoom message or plain object to encode
  5697. * @param {$protobuf.Writer} [writer] Writer to encode to
  5698. * @returns {$protobuf.Writer} Writer
  5699. */
  5700. GCJoinRoom.encodeDelimited = function encodeDelimited(message, writer) {
  5701. return this.encode(message, writer).ldelim();
  5702. };
  5703. /**
  5704. * Decodes a GCJoinRoom message from the specified reader or buffer.
  5705. * @function decode
  5706. * @memberof guandan.GCJoinRoom
  5707. * @static
  5708. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  5709. * @param {number} [length] Message length if known beforehand
  5710. * @returns {guandan.GCJoinRoom} GCJoinRoom
  5711. * @throws {Error} If the payload is not a reader or valid buffer
  5712. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  5713. */
  5714. GCJoinRoom.decode = function decode(reader, length) {
  5715. if (!(reader instanceof $Reader))
  5716. reader = $Reader.create(reader);
  5717. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCJoinRoom();
  5718. while (reader.pos < end) {
  5719. var tag = reader.uint32();
  5720. switch (tag >>> 3) {
  5721. case 1:
  5722. message.roomInfo = $root.guandan.GCRoomInfo.decode(reader, reader.uint32());
  5723. break;
  5724. case 2:
  5725. if (!(message.playerInfoList && message.playerInfoList.length))
  5726. message.playerInfoList = [];
  5727. message.playerInfoList.push($root.guandan.GCPlayerInfo.decode(reader, reader.uint32()));
  5728. break;
  5729. default:
  5730. reader.skipType(tag & 7);
  5731. break;
  5732. }
  5733. }
  5734. if (!message.hasOwnProperty("roomInfo"))
  5735. throw $util.ProtocolError("missing required 'roomInfo'", { instance: message });
  5736. return message;
  5737. };
  5738. /**
  5739. * Decodes a GCJoinRoom message from the specified reader or buffer, length delimited.
  5740. * @function decodeDelimited
  5741. * @memberof guandan.GCJoinRoom
  5742. * @static
  5743. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  5744. * @returns {guandan.GCJoinRoom} GCJoinRoom
  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. GCJoinRoom.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 a GCJoinRoom message.
  5755. * @function verify
  5756. * @memberof guandan.GCJoinRoom
  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. GCJoinRoom.verify = function verify(message) {
  5762. if (typeof message !== "object" || message === null)
  5763. return "object expected";
  5764. {
  5765. var error = $root.guandan.GCRoomInfo.verify(message.roomInfo);
  5766. if (error)
  5767. return "roomInfo." + error;
  5768. }
  5769. if (message.playerInfoList != null && message.hasOwnProperty("playerInfoList")) {
  5770. if (!Array.isArray(message.playerInfoList))
  5771. return "playerInfoList: array expected";
  5772. for (var i = 0; i < message.playerInfoList.length; ++i) {
  5773. var error = $root.guandan.GCPlayerInfo.verify(message.playerInfoList[i]);
  5774. if (error)
  5775. return "playerInfoList." + error;
  5776. }
  5777. }
  5778. return null;
  5779. };
  5780. /**
  5781. * Creates a GCJoinRoom message from a plain object. Also converts values to their respective internal types.
  5782. * @function fromObject
  5783. * @memberof guandan.GCJoinRoom
  5784. * @static
  5785. * @param {Object.<string,*>} object Plain object
  5786. * @returns {guandan.GCJoinRoom} GCJoinRoom
  5787. */
  5788. GCJoinRoom.fromObject = function fromObject(object) {
  5789. if (object instanceof $root.guandan.GCJoinRoom)
  5790. return object;
  5791. var message = new $root.guandan.GCJoinRoom();
  5792. if (object.roomInfo != null) {
  5793. if (typeof object.roomInfo !== "object")
  5794. throw TypeError(".guandan.GCJoinRoom.roomInfo: object expected");
  5795. message.roomInfo = $root.guandan.GCRoomInfo.fromObject(object.roomInfo);
  5796. }
  5797. if (object.playerInfoList) {
  5798. if (!Array.isArray(object.playerInfoList))
  5799. throw TypeError(".guandan.GCJoinRoom.playerInfoList: array expected");
  5800. message.playerInfoList = [];
  5801. for (var i = 0; i < object.playerInfoList.length; ++i) {
  5802. if (typeof object.playerInfoList[i] !== "object")
  5803. throw TypeError(".guandan.GCJoinRoom.playerInfoList: object expected");
  5804. message.playerInfoList[i] = $root.guandan.GCPlayerInfo.fromObject(object.playerInfoList[i]);
  5805. }
  5806. }
  5807. return message;
  5808. };
  5809. /**
  5810. * Creates a plain object from a GCJoinRoom message. Also converts values to other types if specified.
  5811. * @function toObject
  5812. * @memberof guandan.GCJoinRoom
  5813. * @static
  5814. * @param {guandan.GCJoinRoom} message GCJoinRoom
  5815. * @param {$protobuf.IConversionOptions} [options] Conversion options
  5816. * @returns {Object.<string,*>} Plain object
  5817. */
  5818. GCJoinRoom.toObject = function toObject(message, options) {
  5819. if (!options)
  5820. options = {};
  5821. var object = {};
  5822. if (options.arrays || options.defaults)
  5823. object.playerInfoList = [];
  5824. if (options.defaults)
  5825. object.roomInfo = null;
  5826. if (message.roomInfo != null && message.hasOwnProperty("roomInfo"))
  5827. object.roomInfo = $root.guandan.GCRoomInfo.toObject(message.roomInfo, options);
  5828. if (message.playerInfoList && message.playerInfoList.length) {
  5829. object.playerInfoList = [];
  5830. for (var j = 0; j < message.playerInfoList.length; ++j)
  5831. object.playerInfoList[j] = $root.guandan.GCPlayerInfo.toObject(message.playerInfoList[j], options);
  5832. }
  5833. return object;
  5834. };
  5835. /**
  5836. * Converts this GCJoinRoom to JSON.
  5837. * @function toJSON
  5838. * @memberof guandan.GCJoinRoom
  5839. * @instance
  5840. * @returns {Object.<string,*>} JSON object
  5841. */
  5842. GCJoinRoom.prototype.toJSON = function toJSON() {
  5843. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  5844. };
  5845. return GCJoinRoom;
  5846. })();
  5847. guandan.GCJoinRoomBroadcast = (function() {
  5848. /**
  5849. * Properties of a GCJoinRoomBroadcast.
  5850. * @memberof guandan
  5851. * @interface IGCJoinRoomBroadcast
  5852. * @property {guandan.IGCPlayerInfo} gcPlayerInfo GCJoinRoomBroadcast gcPlayerInfo
  5853. */
  5854. /**
  5855. * Constructs a new GCJoinRoomBroadcast.
  5856. * @memberof guandan
  5857. * @classdesc Represents a GCJoinRoomBroadcast.
  5858. * @implements IGCJoinRoomBroadcast
  5859. * @constructor
  5860. * @param {guandan.IGCJoinRoomBroadcast=} [properties] Properties to set
  5861. */
  5862. function GCJoinRoomBroadcast(properties) {
  5863. if (properties)
  5864. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  5865. if (properties[keys[i]] != null)
  5866. this[keys[i]] = properties[keys[i]];
  5867. }
  5868. /**
  5869. * GCJoinRoomBroadcast gcPlayerInfo.
  5870. * @member {guandan.IGCPlayerInfo} gcPlayerInfo
  5871. * @memberof guandan.GCJoinRoomBroadcast
  5872. * @instance
  5873. */
  5874. GCJoinRoomBroadcast.prototype.gcPlayerInfo = null;
  5875. /**
  5876. * Creates a new GCJoinRoomBroadcast instance using the specified properties.
  5877. * @function create
  5878. * @memberof guandan.GCJoinRoomBroadcast
  5879. * @static
  5880. * @param {guandan.IGCJoinRoomBroadcast=} [properties] Properties to set
  5881. * @returns {guandan.GCJoinRoomBroadcast} GCJoinRoomBroadcast instance
  5882. */
  5883. GCJoinRoomBroadcast.create = function create(properties) {
  5884. return new GCJoinRoomBroadcast(properties);
  5885. };
  5886. /**
  5887. * Encodes the specified GCJoinRoomBroadcast message. Does not implicitly {@link guandan.GCJoinRoomBroadcast.verify|verify} messages.
  5888. * @function encode
  5889. * @memberof guandan.GCJoinRoomBroadcast
  5890. * @static
  5891. * @param {guandan.IGCJoinRoomBroadcast} message GCJoinRoomBroadcast message or plain object to encode
  5892. * @param {$protobuf.Writer} [writer] Writer to encode to
  5893. * @returns {$protobuf.Writer} Writer
  5894. */
  5895. GCJoinRoomBroadcast.encode = function encode(message, writer) {
  5896. if (!writer)
  5897. writer = $Writer.create();
  5898. $root.guandan.GCPlayerInfo.encode(message.gcPlayerInfo, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
  5899. return writer;
  5900. };
  5901. /**
  5902. * Encodes the specified GCJoinRoomBroadcast message, length delimited. Does not implicitly {@link guandan.GCJoinRoomBroadcast.verify|verify} messages.
  5903. * @function encodeDelimited
  5904. * @memberof guandan.GCJoinRoomBroadcast
  5905. * @static
  5906. * @param {guandan.IGCJoinRoomBroadcast} message GCJoinRoomBroadcast message or plain object to encode
  5907. * @param {$protobuf.Writer} [writer] Writer to encode to
  5908. * @returns {$protobuf.Writer} Writer
  5909. */
  5910. GCJoinRoomBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
  5911. return this.encode(message, writer).ldelim();
  5912. };
  5913. /**
  5914. * Decodes a GCJoinRoomBroadcast message from the specified reader or buffer.
  5915. * @function decode
  5916. * @memberof guandan.GCJoinRoomBroadcast
  5917. * @static
  5918. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  5919. * @param {number} [length] Message length if known beforehand
  5920. * @returns {guandan.GCJoinRoomBroadcast} GCJoinRoomBroadcast
  5921. * @throws {Error} If the payload is not a reader or valid buffer
  5922. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  5923. */
  5924. GCJoinRoomBroadcast.decode = function decode(reader, length) {
  5925. if (!(reader instanceof $Reader))
  5926. reader = $Reader.create(reader);
  5927. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCJoinRoomBroadcast();
  5928. while (reader.pos < end) {
  5929. var tag = reader.uint32();
  5930. switch (tag >>> 3) {
  5931. case 1:
  5932. message.gcPlayerInfo = $root.guandan.GCPlayerInfo.decode(reader, reader.uint32());
  5933. break;
  5934. default:
  5935. reader.skipType(tag & 7);
  5936. break;
  5937. }
  5938. }
  5939. if (!message.hasOwnProperty("gcPlayerInfo"))
  5940. throw $util.ProtocolError("missing required 'gcPlayerInfo'", { instance: message });
  5941. return message;
  5942. };
  5943. /**
  5944. * Decodes a GCJoinRoomBroadcast message from the specified reader or buffer, length delimited.
  5945. * @function decodeDelimited
  5946. * @memberof guandan.GCJoinRoomBroadcast
  5947. * @static
  5948. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  5949. * @returns {guandan.GCJoinRoomBroadcast} GCJoinRoomBroadcast
  5950. * @throws {Error} If the payload is not a reader or valid buffer
  5951. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  5952. */
  5953. GCJoinRoomBroadcast.decodeDelimited = function decodeDelimited(reader) {
  5954. if (!(reader instanceof $Reader))
  5955. reader = new $Reader(reader);
  5956. return this.decode(reader, reader.uint32());
  5957. };
  5958. /**
  5959. * Verifies a GCJoinRoomBroadcast message.
  5960. * @function verify
  5961. * @memberof guandan.GCJoinRoomBroadcast
  5962. * @static
  5963. * @param {Object.<string,*>} message Plain object to verify
  5964. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  5965. */
  5966. GCJoinRoomBroadcast.verify = function verify(message) {
  5967. if (typeof message !== "object" || message === null)
  5968. return "object expected";
  5969. {
  5970. var error = $root.guandan.GCPlayerInfo.verify(message.gcPlayerInfo);
  5971. if (error)
  5972. return "gcPlayerInfo." + error;
  5973. }
  5974. return null;
  5975. };
  5976. /**
  5977. * Creates a GCJoinRoomBroadcast message from a plain object. Also converts values to their respective internal types.
  5978. * @function fromObject
  5979. * @memberof guandan.GCJoinRoomBroadcast
  5980. * @static
  5981. * @param {Object.<string,*>} object Plain object
  5982. * @returns {guandan.GCJoinRoomBroadcast} GCJoinRoomBroadcast
  5983. */
  5984. GCJoinRoomBroadcast.fromObject = function fromObject(object) {
  5985. if (object instanceof $root.guandan.GCJoinRoomBroadcast)
  5986. return object;
  5987. var message = new $root.guandan.GCJoinRoomBroadcast();
  5988. if (object.gcPlayerInfo != null) {
  5989. if (typeof object.gcPlayerInfo !== "object")
  5990. throw TypeError(".guandan.GCJoinRoomBroadcast.gcPlayerInfo: object expected");
  5991. message.gcPlayerInfo = $root.guandan.GCPlayerInfo.fromObject(object.gcPlayerInfo);
  5992. }
  5993. return message;
  5994. };
  5995. /**
  5996. * Creates a plain object from a GCJoinRoomBroadcast message. Also converts values to other types if specified.
  5997. * @function toObject
  5998. * @memberof guandan.GCJoinRoomBroadcast
  5999. * @static
  6000. * @param {guandan.GCJoinRoomBroadcast} message GCJoinRoomBroadcast
  6001. * @param {$protobuf.IConversionOptions} [options] Conversion options
  6002. * @returns {Object.<string,*>} Plain object
  6003. */
  6004. GCJoinRoomBroadcast.toObject = function toObject(message, options) {
  6005. if (!options)
  6006. options = {};
  6007. var object = {};
  6008. if (options.defaults)
  6009. object.gcPlayerInfo = null;
  6010. if (message.gcPlayerInfo != null && message.hasOwnProperty("gcPlayerInfo"))
  6011. object.gcPlayerInfo = $root.guandan.GCPlayerInfo.toObject(message.gcPlayerInfo, options);
  6012. return object;
  6013. };
  6014. /**
  6015. * Converts this GCJoinRoomBroadcast to JSON.
  6016. * @function toJSON
  6017. * @memberof guandan.GCJoinRoomBroadcast
  6018. * @instance
  6019. * @returns {Object.<string,*>} JSON object
  6020. */
  6021. GCJoinRoomBroadcast.prototype.toJSON = function toJSON() {
  6022. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  6023. };
  6024. return GCJoinRoomBroadcast;
  6025. })();
  6026. guandan.GCSelectBankerBroadcast = (function() {
  6027. /**
  6028. * Properties of a GCSelectBankerBroadcast.
  6029. * @memberof guandan
  6030. * @interface IGCSelectBankerBroadcast
  6031. * @property {number} bankerPos GCSelectBankerBroadcast bankerPos
  6032. * @property {Array.<number>|null} [shaiZis] GCSelectBankerBroadcast shaiZis
  6033. */
  6034. /**
  6035. * Constructs a new GCSelectBankerBroadcast.
  6036. * @memberof guandan
  6037. * @classdesc Represents a GCSelectBankerBroadcast.
  6038. * @implements IGCSelectBankerBroadcast
  6039. * @constructor
  6040. * @param {guandan.IGCSelectBankerBroadcast=} [properties] Properties to set
  6041. */
  6042. function GCSelectBankerBroadcast(properties) {
  6043. this.shaiZis = [];
  6044. if (properties)
  6045. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  6046. if (properties[keys[i]] != null)
  6047. this[keys[i]] = properties[keys[i]];
  6048. }
  6049. /**
  6050. * GCSelectBankerBroadcast bankerPos.
  6051. * @member {number} bankerPos
  6052. * @memberof guandan.GCSelectBankerBroadcast
  6053. * @instance
  6054. */
  6055. GCSelectBankerBroadcast.prototype.bankerPos = 0;
  6056. /**
  6057. * GCSelectBankerBroadcast shaiZis.
  6058. * @member {Array.<number>} shaiZis
  6059. * @memberof guandan.GCSelectBankerBroadcast
  6060. * @instance
  6061. */
  6062. GCSelectBankerBroadcast.prototype.shaiZis = $util.emptyArray;
  6063. /**
  6064. * Creates a new GCSelectBankerBroadcast instance using the specified properties.
  6065. * @function create
  6066. * @memberof guandan.GCSelectBankerBroadcast
  6067. * @static
  6068. * @param {guandan.IGCSelectBankerBroadcast=} [properties] Properties to set
  6069. * @returns {guandan.GCSelectBankerBroadcast} GCSelectBankerBroadcast instance
  6070. */
  6071. GCSelectBankerBroadcast.create = function create(properties) {
  6072. return new GCSelectBankerBroadcast(properties);
  6073. };
  6074. /**
  6075. * Encodes the specified GCSelectBankerBroadcast message. Does not implicitly {@link guandan.GCSelectBankerBroadcast.verify|verify} messages.
  6076. * @function encode
  6077. * @memberof guandan.GCSelectBankerBroadcast
  6078. * @static
  6079. * @param {guandan.IGCSelectBankerBroadcast} message GCSelectBankerBroadcast message or plain object to encode
  6080. * @param {$protobuf.Writer} [writer] Writer to encode to
  6081. * @returns {$protobuf.Writer} Writer
  6082. */
  6083. GCSelectBankerBroadcast.encode = function encode(message, writer) {
  6084. if (!writer)
  6085. writer = $Writer.create();
  6086. writer.uint32(/* id 1, wireType 0 =*/8).int32(message.bankerPos);
  6087. if (message.shaiZis != null && message.shaiZis.length)
  6088. for (var i = 0; i < message.shaiZis.length; ++i)
  6089. writer.uint32(/* id 2, wireType 0 =*/16).int32(message.shaiZis[i]);
  6090. return writer;
  6091. };
  6092. /**
  6093. * Encodes the specified GCSelectBankerBroadcast message, length delimited. Does not implicitly {@link guandan.GCSelectBankerBroadcast.verify|verify} messages.
  6094. * @function encodeDelimited
  6095. * @memberof guandan.GCSelectBankerBroadcast
  6096. * @static
  6097. * @param {guandan.IGCSelectBankerBroadcast} message GCSelectBankerBroadcast message or plain object to encode
  6098. * @param {$protobuf.Writer} [writer] Writer to encode to
  6099. * @returns {$protobuf.Writer} Writer
  6100. */
  6101. GCSelectBankerBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
  6102. return this.encode(message, writer).ldelim();
  6103. };
  6104. /**
  6105. * Decodes a GCSelectBankerBroadcast message from the specified reader or buffer.
  6106. * @function decode
  6107. * @memberof guandan.GCSelectBankerBroadcast
  6108. * @static
  6109. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  6110. * @param {number} [length] Message length if known beforehand
  6111. * @returns {guandan.GCSelectBankerBroadcast} GCSelectBankerBroadcast
  6112. * @throws {Error} If the payload is not a reader or valid buffer
  6113. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  6114. */
  6115. GCSelectBankerBroadcast.decode = function decode(reader, length) {
  6116. if (!(reader instanceof $Reader))
  6117. reader = $Reader.create(reader);
  6118. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCSelectBankerBroadcast();
  6119. while (reader.pos < end) {
  6120. var tag = reader.uint32();
  6121. switch (tag >>> 3) {
  6122. case 1:
  6123. message.bankerPos = reader.int32();
  6124. break;
  6125. case 2:
  6126. if (!(message.shaiZis && message.shaiZis.length))
  6127. message.shaiZis = [];
  6128. if ((tag & 7) === 2) {
  6129. var end2 = reader.uint32() + reader.pos;
  6130. while (reader.pos < end2)
  6131. message.shaiZis.push(reader.int32());
  6132. } else
  6133. message.shaiZis.push(reader.int32());
  6134. break;
  6135. default:
  6136. reader.skipType(tag & 7);
  6137. break;
  6138. }
  6139. }
  6140. if (!message.hasOwnProperty("bankerPos"))
  6141. throw $util.ProtocolError("missing required 'bankerPos'", { instance: message });
  6142. return message;
  6143. };
  6144. /**
  6145. * Decodes a GCSelectBankerBroadcast message from the specified reader or buffer, length delimited.
  6146. * @function decodeDelimited
  6147. * @memberof guandan.GCSelectBankerBroadcast
  6148. * @static
  6149. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  6150. * @returns {guandan.GCSelectBankerBroadcast} GCSelectBankerBroadcast
  6151. * @throws {Error} If the payload is not a reader or valid buffer
  6152. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  6153. */
  6154. GCSelectBankerBroadcast.decodeDelimited = function decodeDelimited(reader) {
  6155. if (!(reader instanceof $Reader))
  6156. reader = new $Reader(reader);
  6157. return this.decode(reader, reader.uint32());
  6158. };
  6159. /**
  6160. * Verifies a GCSelectBankerBroadcast message.
  6161. * @function verify
  6162. * @memberof guandan.GCSelectBankerBroadcast
  6163. * @static
  6164. * @param {Object.<string,*>} message Plain object to verify
  6165. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  6166. */
  6167. GCSelectBankerBroadcast.verify = function verify(message) {
  6168. if (typeof message !== "object" || message === null)
  6169. return "object expected";
  6170. if (!$util.isInteger(message.bankerPos))
  6171. return "bankerPos: integer expected";
  6172. if (message.shaiZis != null && message.hasOwnProperty("shaiZis")) {
  6173. if (!Array.isArray(message.shaiZis))
  6174. return "shaiZis: array expected";
  6175. for (var i = 0; i < message.shaiZis.length; ++i)
  6176. if (!$util.isInteger(message.shaiZis[i]))
  6177. return "shaiZis: integer[] expected";
  6178. }
  6179. return null;
  6180. };
  6181. /**
  6182. * Creates a GCSelectBankerBroadcast message from a plain object. Also converts values to their respective internal types.
  6183. * @function fromObject
  6184. * @memberof guandan.GCSelectBankerBroadcast
  6185. * @static
  6186. * @param {Object.<string,*>} object Plain object
  6187. * @returns {guandan.GCSelectBankerBroadcast} GCSelectBankerBroadcast
  6188. */
  6189. GCSelectBankerBroadcast.fromObject = function fromObject(object) {
  6190. if (object instanceof $root.guandan.GCSelectBankerBroadcast)
  6191. return object;
  6192. var message = new $root.guandan.GCSelectBankerBroadcast();
  6193. if (object.bankerPos != null)
  6194. message.bankerPos = object.bankerPos | 0;
  6195. if (object.shaiZis) {
  6196. if (!Array.isArray(object.shaiZis))
  6197. throw TypeError(".guandan.GCSelectBankerBroadcast.shaiZis: array expected");
  6198. message.shaiZis = [];
  6199. for (var i = 0; i < object.shaiZis.length; ++i)
  6200. message.shaiZis[i] = object.shaiZis[i] | 0;
  6201. }
  6202. return message;
  6203. };
  6204. /**
  6205. * Creates a plain object from a GCSelectBankerBroadcast message. Also converts values to other types if specified.
  6206. * @function toObject
  6207. * @memberof guandan.GCSelectBankerBroadcast
  6208. * @static
  6209. * @param {guandan.GCSelectBankerBroadcast} message GCSelectBankerBroadcast
  6210. * @param {$protobuf.IConversionOptions} [options] Conversion options
  6211. * @returns {Object.<string,*>} Plain object
  6212. */
  6213. GCSelectBankerBroadcast.toObject = function toObject(message, options) {
  6214. if (!options)
  6215. options = {};
  6216. var object = {};
  6217. if (options.arrays || options.defaults)
  6218. object.shaiZis = [];
  6219. if (options.defaults)
  6220. object.bankerPos = 0;
  6221. if (message.bankerPos != null && message.hasOwnProperty("bankerPos"))
  6222. object.bankerPos = message.bankerPos;
  6223. if (message.shaiZis && message.shaiZis.length) {
  6224. object.shaiZis = [];
  6225. for (var j = 0; j < message.shaiZis.length; ++j)
  6226. object.shaiZis[j] = message.shaiZis[j];
  6227. }
  6228. return object;
  6229. };
  6230. /**
  6231. * Converts this GCSelectBankerBroadcast to JSON.
  6232. * @function toJSON
  6233. * @memberof guandan.GCSelectBankerBroadcast
  6234. * @instance
  6235. * @returns {Object.<string,*>} JSON object
  6236. */
  6237. GCSelectBankerBroadcast.prototype.toJSON = function toJSON() {
  6238. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  6239. };
  6240. return GCSelectBankerBroadcast;
  6241. })();
  6242. guandan.GCDealCards = (function() {
  6243. /**
  6244. * Properties of a GCDealCards.
  6245. * @memberof guandan
  6246. * @interface IGCDealCards
  6247. * @property {Array.<number>|null} [cards] GCDealCards cards
  6248. */
  6249. /**
  6250. * Constructs a new GCDealCards.
  6251. * @memberof guandan
  6252. * @classdesc Represents a GCDealCards.
  6253. * @implements IGCDealCards
  6254. * @constructor
  6255. * @param {guandan.IGCDealCards=} [properties] Properties to set
  6256. */
  6257. function GCDealCards(properties) {
  6258. this.cards = [];
  6259. if (properties)
  6260. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  6261. if (properties[keys[i]] != null)
  6262. this[keys[i]] = properties[keys[i]];
  6263. }
  6264. /**
  6265. * GCDealCards cards.
  6266. * @member {Array.<number>} cards
  6267. * @memberof guandan.GCDealCards
  6268. * @instance
  6269. */
  6270. GCDealCards.prototype.cards = $util.emptyArray;
  6271. /**
  6272. * Creates a new GCDealCards instance using the specified properties.
  6273. * @function create
  6274. * @memberof guandan.GCDealCards
  6275. * @static
  6276. * @param {guandan.IGCDealCards=} [properties] Properties to set
  6277. * @returns {guandan.GCDealCards} GCDealCards instance
  6278. */
  6279. GCDealCards.create = function create(properties) {
  6280. return new GCDealCards(properties);
  6281. };
  6282. /**
  6283. * Encodes the specified GCDealCards message. Does not implicitly {@link guandan.GCDealCards.verify|verify} messages.
  6284. * @function encode
  6285. * @memberof guandan.GCDealCards
  6286. * @static
  6287. * @param {guandan.IGCDealCards} message GCDealCards message or plain object to encode
  6288. * @param {$protobuf.Writer} [writer] Writer to encode to
  6289. * @returns {$protobuf.Writer} Writer
  6290. */
  6291. GCDealCards.encode = function encode(message, writer) {
  6292. if (!writer)
  6293. writer = $Writer.create();
  6294. if (message.cards != null && message.cards.length)
  6295. for (var i = 0; i < message.cards.length; ++i)
  6296. writer.uint32(/* id 1, wireType 0 =*/8).int32(message.cards[i]);
  6297. return writer;
  6298. };
  6299. /**
  6300. * Encodes the specified GCDealCards message, length delimited. Does not implicitly {@link guandan.GCDealCards.verify|verify} messages.
  6301. * @function encodeDelimited
  6302. * @memberof guandan.GCDealCards
  6303. * @static
  6304. * @param {guandan.IGCDealCards} message GCDealCards message or plain object to encode
  6305. * @param {$protobuf.Writer} [writer] Writer to encode to
  6306. * @returns {$protobuf.Writer} Writer
  6307. */
  6308. GCDealCards.encodeDelimited = function encodeDelimited(message, writer) {
  6309. return this.encode(message, writer).ldelim();
  6310. };
  6311. /**
  6312. * Decodes a GCDealCards message from the specified reader or buffer.
  6313. * @function decode
  6314. * @memberof guandan.GCDealCards
  6315. * @static
  6316. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  6317. * @param {number} [length] Message length if known beforehand
  6318. * @returns {guandan.GCDealCards} GCDealCards
  6319. * @throws {Error} If the payload is not a reader or valid buffer
  6320. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  6321. */
  6322. GCDealCards.decode = function decode(reader, length) {
  6323. if (!(reader instanceof $Reader))
  6324. reader = $Reader.create(reader);
  6325. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCDealCards();
  6326. while (reader.pos < end) {
  6327. var tag = reader.uint32();
  6328. switch (tag >>> 3) {
  6329. case 1:
  6330. if (!(message.cards && message.cards.length))
  6331. message.cards = [];
  6332. if ((tag & 7) === 2) {
  6333. var end2 = reader.uint32() + reader.pos;
  6334. while (reader.pos < end2)
  6335. message.cards.push(reader.int32());
  6336. } else
  6337. message.cards.push(reader.int32());
  6338. break;
  6339. default:
  6340. reader.skipType(tag & 7);
  6341. break;
  6342. }
  6343. }
  6344. return message;
  6345. };
  6346. /**
  6347. * Decodes a GCDealCards message from the specified reader or buffer, length delimited.
  6348. * @function decodeDelimited
  6349. * @memberof guandan.GCDealCards
  6350. * @static
  6351. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  6352. * @returns {guandan.GCDealCards} GCDealCards
  6353. * @throws {Error} If the payload is not a reader or valid buffer
  6354. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  6355. */
  6356. GCDealCards.decodeDelimited = function decodeDelimited(reader) {
  6357. if (!(reader instanceof $Reader))
  6358. reader = new $Reader(reader);
  6359. return this.decode(reader, reader.uint32());
  6360. };
  6361. /**
  6362. * Verifies a GCDealCards message.
  6363. * @function verify
  6364. * @memberof guandan.GCDealCards
  6365. * @static
  6366. * @param {Object.<string,*>} message Plain object to verify
  6367. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  6368. */
  6369. GCDealCards.verify = function verify(message) {
  6370. if (typeof message !== "object" || message === null)
  6371. return "object expected";
  6372. if (message.cards != null && message.hasOwnProperty("cards")) {
  6373. if (!Array.isArray(message.cards))
  6374. return "cards: array expected";
  6375. for (var i = 0; i < message.cards.length; ++i)
  6376. if (!$util.isInteger(message.cards[i]))
  6377. return "cards: integer[] expected";
  6378. }
  6379. return null;
  6380. };
  6381. /**
  6382. * Creates a GCDealCards message from a plain object. Also converts values to their respective internal types.
  6383. * @function fromObject
  6384. * @memberof guandan.GCDealCards
  6385. * @static
  6386. * @param {Object.<string,*>} object Plain object
  6387. * @returns {guandan.GCDealCards} GCDealCards
  6388. */
  6389. GCDealCards.fromObject = function fromObject(object) {
  6390. if (object instanceof $root.guandan.GCDealCards)
  6391. return object;
  6392. var message = new $root.guandan.GCDealCards();
  6393. if (object.cards) {
  6394. if (!Array.isArray(object.cards))
  6395. throw TypeError(".guandan.GCDealCards.cards: array expected");
  6396. message.cards = [];
  6397. for (var i = 0; i < object.cards.length; ++i)
  6398. message.cards[i] = object.cards[i] | 0;
  6399. }
  6400. return message;
  6401. };
  6402. /**
  6403. * Creates a plain object from a GCDealCards message. Also converts values to other types if specified.
  6404. * @function toObject
  6405. * @memberof guandan.GCDealCards
  6406. * @static
  6407. * @param {guandan.GCDealCards} message GCDealCards
  6408. * @param {$protobuf.IConversionOptions} [options] Conversion options
  6409. * @returns {Object.<string,*>} Plain object
  6410. */
  6411. GCDealCards.toObject = function toObject(message, options) {
  6412. if (!options)
  6413. options = {};
  6414. var object = {};
  6415. if (options.arrays || options.defaults)
  6416. object.cards = [];
  6417. if (message.cards && message.cards.length) {
  6418. object.cards = [];
  6419. for (var j = 0; j < message.cards.length; ++j)
  6420. object.cards[j] = message.cards[j];
  6421. }
  6422. return object;
  6423. };
  6424. /**
  6425. * Converts this GCDealCards to JSON.
  6426. * @function toJSON
  6427. * @memberof guandan.GCDealCards
  6428. * @instance
  6429. * @returns {Object.<string,*>} JSON object
  6430. */
  6431. GCDealCards.prototype.toJSON = function toJSON() {
  6432. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  6433. };
  6434. return GCDealCards;
  6435. })();
  6436. guandan.GCClearCircleBroadcast = (function() {
  6437. /**
  6438. * Properties of a GCClearCircleBroadcast.
  6439. * @memberof guandan
  6440. * @interface IGCClearCircleBroadcast
  6441. * @property {number|Long} playerId GCClearCircleBroadcast playerId
  6442. */
  6443. /**
  6444. * Constructs a new GCClearCircleBroadcast.
  6445. * @memberof guandan
  6446. * @classdesc Represents a GCClearCircleBroadcast.
  6447. * @implements IGCClearCircleBroadcast
  6448. * @constructor
  6449. * @param {guandan.IGCClearCircleBroadcast=} [properties] Properties to set
  6450. */
  6451. function GCClearCircleBroadcast(properties) {
  6452. if (properties)
  6453. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  6454. if (properties[keys[i]] != null)
  6455. this[keys[i]] = properties[keys[i]];
  6456. }
  6457. /**
  6458. * GCClearCircleBroadcast playerId.
  6459. * @member {number|Long} playerId
  6460. * @memberof guandan.GCClearCircleBroadcast
  6461. * @instance
  6462. */
  6463. GCClearCircleBroadcast.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  6464. /**
  6465. * Creates a new GCClearCircleBroadcast instance using the specified properties.
  6466. * @function create
  6467. * @memberof guandan.GCClearCircleBroadcast
  6468. * @static
  6469. * @param {guandan.IGCClearCircleBroadcast=} [properties] Properties to set
  6470. * @returns {guandan.GCClearCircleBroadcast} GCClearCircleBroadcast instance
  6471. */
  6472. GCClearCircleBroadcast.create = function create(properties) {
  6473. return new GCClearCircleBroadcast(properties);
  6474. };
  6475. /**
  6476. * Encodes the specified GCClearCircleBroadcast message. Does not implicitly {@link guandan.GCClearCircleBroadcast.verify|verify} messages.
  6477. * @function encode
  6478. * @memberof guandan.GCClearCircleBroadcast
  6479. * @static
  6480. * @param {guandan.IGCClearCircleBroadcast} message GCClearCircleBroadcast message or plain object to encode
  6481. * @param {$protobuf.Writer} [writer] Writer to encode to
  6482. * @returns {$protobuf.Writer} Writer
  6483. */
  6484. GCClearCircleBroadcast.encode = function encode(message, writer) {
  6485. if (!writer)
  6486. writer = $Writer.create();
  6487. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
  6488. return writer;
  6489. };
  6490. /**
  6491. * Encodes the specified GCClearCircleBroadcast message, length delimited. Does not implicitly {@link guandan.GCClearCircleBroadcast.verify|verify} messages.
  6492. * @function encodeDelimited
  6493. * @memberof guandan.GCClearCircleBroadcast
  6494. * @static
  6495. * @param {guandan.IGCClearCircleBroadcast} message GCClearCircleBroadcast message or plain object to encode
  6496. * @param {$protobuf.Writer} [writer] Writer to encode to
  6497. * @returns {$protobuf.Writer} Writer
  6498. */
  6499. GCClearCircleBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
  6500. return this.encode(message, writer).ldelim();
  6501. };
  6502. /**
  6503. * Decodes a GCClearCircleBroadcast message from the specified reader or buffer.
  6504. * @function decode
  6505. * @memberof guandan.GCClearCircleBroadcast
  6506. * @static
  6507. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  6508. * @param {number} [length] Message length if known beforehand
  6509. * @returns {guandan.GCClearCircleBroadcast} GCClearCircleBroadcast
  6510. * @throws {Error} If the payload is not a reader or valid buffer
  6511. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  6512. */
  6513. GCClearCircleBroadcast.decode = function decode(reader, length) {
  6514. if (!(reader instanceof $Reader))
  6515. reader = $Reader.create(reader);
  6516. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCClearCircleBroadcast();
  6517. while (reader.pos < end) {
  6518. var tag = reader.uint32();
  6519. switch (tag >>> 3) {
  6520. case 1:
  6521. message.playerId = reader.int64();
  6522. break;
  6523. default:
  6524. reader.skipType(tag & 7);
  6525. break;
  6526. }
  6527. }
  6528. if (!message.hasOwnProperty("playerId"))
  6529. throw $util.ProtocolError("missing required 'playerId'", { instance: message });
  6530. return message;
  6531. };
  6532. /**
  6533. * Decodes a GCClearCircleBroadcast message from the specified reader or buffer, length delimited.
  6534. * @function decodeDelimited
  6535. * @memberof guandan.GCClearCircleBroadcast
  6536. * @static
  6537. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  6538. * @returns {guandan.GCClearCircleBroadcast} GCClearCircleBroadcast
  6539. * @throws {Error} If the payload is not a reader or valid buffer
  6540. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  6541. */
  6542. GCClearCircleBroadcast.decodeDelimited = function decodeDelimited(reader) {
  6543. if (!(reader instanceof $Reader))
  6544. reader = new $Reader(reader);
  6545. return this.decode(reader, reader.uint32());
  6546. };
  6547. /**
  6548. * Verifies a GCClearCircleBroadcast message.
  6549. * @function verify
  6550. * @memberof guandan.GCClearCircleBroadcast
  6551. * @static
  6552. * @param {Object.<string,*>} message Plain object to verify
  6553. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  6554. */
  6555. GCClearCircleBroadcast.verify = function verify(message) {
  6556. if (typeof message !== "object" || message === null)
  6557. return "object expected";
  6558. if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
  6559. return "playerId: integer|Long expected";
  6560. return null;
  6561. };
  6562. /**
  6563. * Creates a GCClearCircleBroadcast message from a plain object. Also converts values to their respective internal types.
  6564. * @function fromObject
  6565. * @memberof guandan.GCClearCircleBroadcast
  6566. * @static
  6567. * @param {Object.<string,*>} object Plain object
  6568. * @returns {guandan.GCClearCircleBroadcast} GCClearCircleBroadcast
  6569. */
  6570. GCClearCircleBroadcast.fromObject = function fromObject(object) {
  6571. if (object instanceof $root.guandan.GCClearCircleBroadcast)
  6572. return object;
  6573. var message = new $root.guandan.GCClearCircleBroadcast();
  6574. if (object.playerId != null)
  6575. if ($util.Long)
  6576. (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
  6577. else if (typeof object.playerId === "string")
  6578. message.playerId = parseInt(object.playerId, 10);
  6579. else if (typeof object.playerId === "number")
  6580. message.playerId = object.playerId;
  6581. else if (typeof object.playerId === "object")
  6582. message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
  6583. return message;
  6584. };
  6585. /**
  6586. * Creates a plain object from a GCClearCircleBroadcast message. Also converts values to other types if specified.
  6587. * @function toObject
  6588. * @memberof guandan.GCClearCircleBroadcast
  6589. * @static
  6590. * @param {guandan.GCClearCircleBroadcast} message GCClearCircleBroadcast
  6591. * @param {$protobuf.IConversionOptions} [options] Conversion options
  6592. * @returns {Object.<string,*>} Plain object
  6593. */
  6594. GCClearCircleBroadcast.toObject = function toObject(message, options) {
  6595. if (!options)
  6596. options = {};
  6597. var object = {};
  6598. if (options.defaults)
  6599. if ($util.Long) {
  6600. var long = new $util.Long(0, 0, false);
  6601. object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  6602. } else
  6603. object.playerId = options.longs === String ? "0" : 0;
  6604. if (message.playerId != null && message.hasOwnProperty("playerId"))
  6605. if (typeof message.playerId === "number")
  6606. object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
  6607. else
  6608. object.playerId = options.longs === String ? $util.Long.prototype.toString.call(message.playerId) : options.longs === Number ? new $util.LongBits(message.playerId.low >>> 0, message.playerId.high >>> 0).toNumber() : message.playerId;
  6609. return object;
  6610. };
  6611. /**
  6612. * Converts this GCClearCircleBroadcast to JSON.
  6613. * @function toJSON
  6614. * @memberof guandan.GCClearCircleBroadcast
  6615. * @instance
  6616. * @returns {Object.<string,*>} JSON object
  6617. */
  6618. GCClearCircleBroadcast.prototype.toJSON = function toJSON() {
  6619. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  6620. };
  6621. return GCClearCircleBroadcast;
  6622. })();
  6623. guandan.CGPlayerPlayCard = (function() {
  6624. /**
  6625. * Properties of a CGPlayerPlayCard.
  6626. * @memberof guandan
  6627. * @interface ICGPlayerPlayCard
  6628. * @property {Array.<number>|null} [card] CGPlayerPlayCard card
  6629. */
  6630. /**
  6631. * Constructs a new CGPlayerPlayCard.
  6632. * @memberof guandan
  6633. * @classdesc Represents a CGPlayerPlayCard.
  6634. * @implements ICGPlayerPlayCard
  6635. * @constructor
  6636. * @param {guandan.ICGPlayerPlayCard=} [properties] Properties to set
  6637. */
  6638. function CGPlayerPlayCard(properties) {
  6639. this.card = [];
  6640. if (properties)
  6641. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  6642. if (properties[keys[i]] != null)
  6643. this[keys[i]] = properties[keys[i]];
  6644. }
  6645. /**
  6646. * CGPlayerPlayCard card.
  6647. * @member {Array.<number>} card
  6648. * @memberof guandan.CGPlayerPlayCard
  6649. * @instance
  6650. */
  6651. CGPlayerPlayCard.prototype.card = $util.emptyArray;
  6652. /**
  6653. * Creates a new CGPlayerPlayCard instance using the specified properties.
  6654. * @function create
  6655. * @memberof guandan.CGPlayerPlayCard
  6656. * @static
  6657. * @param {guandan.ICGPlayerPlayCard=} [properties] Properties to set
  6658. * @returns {guandan.CGPlayerPlayCard} CGPlayerPlayCard instance
  6659. */
  6660. CGPlayerPlayCard.create = function create(properties) {
  6661. return new CGPlayerPlayCard(properties);
  6662. };
  6663. /**
  6664. * Encodes the specified CGPlayerPlayCard message. Does not implicitly {@link guandan.CGPlayerPlayCard.verify|verify} messages.
  6665. * @function encode
  6666. * @memberof guandan.CGPlayerPlayCard
  6667. * @static
  6668. * @param {guandan.ICGPlayerPlayCard} message CGPlayerPlayCard message or plain object to encode
  6669. * @param {$protobuf.Writer} [writer] Writer to encode to
  6670. * @returns {$protobuf.Writer} Writer
  6671. */
  6672. CGPlayerPlayCard.encode = function encode(message, writer) {
  6673. if (!writer)
  6674. writer = $Writer.create();
  6675. if (message.card != null && message.card.length)
  6676. for (var i = 0; i < message.card.length; ++i)
  6677. writer.uint32(/* id 1, wireType 0 =*/8).int32(message.card[i]);
  6678. return writer;
  6679. };
  6680. /**
  6681. * Encodes the specified CGPlayerPlayCard message, length delimited. Does not implicitly {@link guandan.CGPlayerPlayCard.verify|verify} messages.
  6682. * @function encodeDelimited
  6683. * @memberof guandan.CGPlayerPlayCard
  6684. * @static
  6685. * @param {guandan.ICGPlayerPlayCard} message CGPlayerPlayCard message or plain object to encode
  6686. * @param {$protobuf.Writer} [writer] Writer to encode to
  6687. * @returns {$protobuf.Writer} Writer
  6688. */
  6689. CGPlayerPlayCard.encodeDelimited = function encodeDelimited(message, writer) {
  6690. return this.encode(message, writer).ldelim();
  6691. };
  6692. /**
  6693. * Decodes a CGPlayerPlayCard message from the specified reader or buffer.
  6694. * @function decode
  6695. * @memberof guandan.CGPlayerPlayCard
  6696. * @static
  6697. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  6698. * @param {number} [length] Message length if known beforehand
  6699. * @returns {guandan.CGPlayerPlayCard} CGPlayerPlayCard
  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. CGPlayerPlayCard.decode = function decode(reader, length) {
  6704. if (!(reader instanceof $Reader))
  6705. reader = $Reader.create(reader);
  6706. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.CGPlayerPlayCard();
  6707. while (reader.pos < end) {
  6708. var tag = reader.uint32();
  6709. switch (tag >>> 3) {
  6710. case 1:
  6711. if (!(message.card && message.card.length))
  6712. message.card = [];
  6713. if ((tag & 7) === 2) {
  6714. var end2 = reader.uint32() + reader.pos;
  6715. while (reader.pos < end2)
  6716. message.card.push(reader.int32());
  6717. } else
  6718. message.card.push(reader.int32());
  6719. break;
  6720. default:
  6721. reader.skipType(tag & 7);
  6722. break;
  6723. }
  6724. }
  6725. return message;
  6726. };
  6727. /**
  6728. * Decodes a CGPlayerPlayCard message from the specified reader or buffer, length delimited.
  6729. * @function decodeDelimited
  6730. * @memberof guandan.CGPlayerPlayCard
  6731. * @static
  6732. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  6733. * @returns {guandan.CGPlayerPlayCard} CGPlayerPlayCard
  6734. * @throws {Error} If the payload is not a reader or valid buffer
  6735. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  6736. */
  6737. CGPlayerPlayCard.decodeDelimited = function decodeDelimited(reader) {
  6738. if (!(reader instanceof $Reader))
  6739. reader = new $Reader(reader);
  6740. return this.decode(reader, reader.uint32());
  6741. };
  6742. /**
  6743. * Verifies a CGPlayerPlayCard message.
  6744. * @function verify
  6745. * @memberof guandan.CGPlayerPlayCard
  6746. * @static
  6747. * @param {Object.<string,*>} message Plain object to verify
  6748. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  6749. */
  6750. CGPlayerPlayCard.verify = function verify(message) {
  6751. if (typeof message !== "object" || message === null)
  6752. return "object expected";
  6753. if (message.card != null && message.hasOwnProperty("card")) {
  6754. if (!Array.isArray(message.card))
  6755. return "card: array expected";
  6756. for (var i = 0; i < message.card.length; ++i)
  6757. if (!$util.isInteger(message.card[i]))
  6758. return "card: integer[] expected";
  6759. }
  6760. return null;
  6761. };
  6762. /**
  6763. * Creates a CGPlayerPlayCard message from a plain object. Also converts values to their respective internal types.
  6764. * @function fromObject
  6765. * @memberof guandan.CGPlayerPlayCard
  6766. * @static
  6767. * @param {Object.<string,*>} object Plain object
  6768. * @returns {guandan.CGPlayerPlayCard} CGPlayerPlayCard
  6769. */
  6770. CGPlayerPlayCard.fromObject = function fromObject(object) {
  6771. if (object instanceof $root.guandan.CGPlayerPlayCard)
  6772. return object;
  6773. var message = new $root.guandan.CGPlayerPlayCard();
  6774. if (object.card) {
  6775. if (!Array.isArray(object.card))
  6776. throw TypeError(".guandan.CGPlayerPlayCard.card: array expected");
  6777. message.card = [];
  6778. for (var i = 0; i < object.card.length; ++i)
  6779. message.card[i] = object.card[i] | 0;
  6780. }
  6781. return message;
  6782. };
  6783. /**
  6784. * Creates a plain object from a CGPlayerPlayCard message. Also converts values to other types if specified.
  6785. * @function toObject
  6786. * @memberof guandan.CGPlayerPlayCard
  6787. * @static
  6788. * @param {guandan.CGPlayerPlayCard} message CGPlayerPlayCard
  6789. * @param {$protobuf.IConversionOptions} [options] Conversion options
  6790. * @returns {Object.<string,*>} Plain object
  6791. */
  6792. CGPlayerPlayCard.toObject = function toObject(message, options) {
  6793. if (!options)
  6794. options = {};
  6795. var object = {};
  6796. if (options.arrays || options.defaults)
  6797. object.card = [];
  6798. if (message.card && message.card.length) {
  6799. object.card = [];
  6800. for (var j = 0; j < message.card.length; ++j)
  6801. object.card[j] = message.card[j];
  6802. }
  6803. return object;
  6804. };
  6805. /**
  6806. * Converts this CGPlayerPlayCard to JSON.
  6807. * @function toJSON
  6808. * @memberof guandan.CGPlayerPlayCard
  6809. * @instance
  6810. * @returns {Object.<string,*>} JSON object
  6811. */
  6812. CGPlayerPlayCard.prototype.toJSON = function toJSON() {
  6813. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  6814. };
  6815. return CGPlayerPlayCard;
  6816. })();
  6817. guandan.GCPlayerPlayCard = (function() {
  6818. /**
  6819. * Properties of a GCPlayerPlayCard.
  6820. * @memberof guandan
  6821. * @interface IGCPlayerPlayCard
  6822. * @property {number|Long} playerId GCPlayerPlayCard playerId
  6823. * @property {Array.<number>|null} [card] GCPlayerPlayCard card
  6824. * @property {Array.<number>|null} [circleMaxCards] GCPlayerPlayCard circleMaxCards
  6825. * @property {boolean} isAuto GCPlayerPlayCard isAuto
  6826. */
  6827. /**
  6828. * Constructs a new GCPlayerPlayCard.
  6829. * @memberof guandan
  6830. * @classdesc Represents a GCPlayerPlayCard.
  6831. * @implements IGCPlayerPlayCard
  6832. * @constructor
  6833. * @param {guandan.IGCPlayerPlayCard=} [properties] Properties to set
  6834. */
  6835. function GCPlayerPlayCard(properties) {
  6836. this.card = [];
  6837. this.circleMaxCards = [];
  6838. if (properties)
  6839. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  6840. if (properties[keys[i]] != null)
  6841. this[keys[i]] = properties[keys[i]];
  6842. }
  6843. /**
  6844. * GCPlayerPlayCard playerId.
  6845. * @member {number|Long} playerId
  6846. * @memberof guandan.GCPlayerPlayCard
  6847. * @instance
  6848. */
  6849. GCPlayerPlayCard.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  6850. /**
  6851. * GCPlayerPlayCard card.
  6852. * @member {Array.<number>} card
  6853. * @memberof guandan.GCPlayerPlayCard
  6854. * @instance
  6855. */
  6856. GCPlayerPlayCard.prototype.card = $util.emptyArray;
  6857. /**
  6858. * GCPlayerPlayCard circleMaxCards.
  6859. * @member {Array.<number>} circleMaxCards
  6860. * @memberof guandan.GCPlayerPlayCard
  6861. * @instance
  6862. */
  6863. GCPlayerPlayCard.prototype.circleMaxCards = $util.emptyArray;
  6864. /**
  6865. * GCPlayerPlayCard isAuto.
  6866. * @member {boolean} isAuto
  6867. * @memberof guandan.GCPlayerPlayCard
  6868. * @instance
  6869. */
  6870. GCPlayerPlayCard.prototype.isAuto = false;
  6871. /**
  6872. * Creates a new GCPlayerPlayCard instance using the specified properties.
  6873. * @function create
  6874. * @memberof guandan.GCPlayerPlayCard
  6875. * @static
  6876. * @param {guandan.IGCPlayerPlayCard=} [properties] Properties to set
  6877. * @returns {guandan.GCPlayerPlayCard} GCPlayerPlayCard instance
  6878. */
  6879. GCPlayerPlayCard.create = function create(properties) {
  6880. return new GCPlayerPlayCard(properties);
  6881. };
  6882. /**
  6883. * Encodes the specified GCPlayerPlayCard message. Does not implicitly {@link guandan.GCPlayerPlayCard.verify|verify} messages.
  6884. * @function encode
  6885. * @memberof guandan.GCPlayerPlayCard
  6886. * @static
  6887. * @param {guandan.IGCPlayerPlayCard} message GCPlayerPlayCard message or plain object to encode
  6888. * @param {$protobuf.Writer} [writer] Writer to encode to
  6889. * @returns {$protobuf.Writer} Writer
  6890. */
  6891. GCPlayerPlayCard.encode = function encode(message, writer) {
  6892. if (!writer)
  6893. writer = $Writer.create();
  6894. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
  6895. if (message.card != null && message.card.length)
  6896. for (var i = 0; i < message.card.length; ++i)
  6897. writer.uint32(/* id 2, wireType 0 =*/16).int32(message.card[i]);
  6898. if (message.circleMaxCards != null && message.circleMaxCards.length)
  6899. for (var i = 0; i < message.circleMaxCards.length; ++i)
  6900. writer.uint32(/* id 3, wireType 0 =*/24).int32(message.circleMaxCards[i]);
  6901. writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isAuto);
  6902. return writer;
  6903. };
  6904. /**
  6905. * Encodes the specified GCPlayerPlayCard message, length delimited. Does not implicitly {@link guandan.GCPlayerPlayCard.verify|verify} messages.
  6906. * @function encodeDelimited
  6907. * @memberof guandan.GCPlayerPlayCard
  6908. * @static
  6909. * @param {guandan.IGCPlayerPlayCard} message GCPlayerPlayCard message or plain object to encode
  6910. * @param {$protobuf.Writer} [writer] Writer to encode to
  6911. * @returns {$protobuf.Writer} Writer
  6912. */
  6913. GCPlayerPlayCard.encodeDelimited = function encodeDelimited(message, writer) {
  6914. return this.encode(message, writer).ldelim();
  6915. };
  6916. /**
  6917. * Decodes a GCPlayerPlayCard message from the specified reader or buffer.
  6918. * @function decode
  6919. * @memberof guandan.GCPlayerPlayCard
  6920. * @static
  6921. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  6922. * @param {number} [length] Message length if known beforehand
  6923. * @returns {guandan.GCPlayerPlayCard} GCPlayerPlayCard
  6924. * @throws {Error} If the payload is not a reader or valid buffer
  6925. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  6926. */
  6927. GCPlayerPlayCard.decode = function decode(reader, length) {
  6928. if (!(reader instanceof $Reader))
  6929. reader = $Reader.create(reader);
  6930. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCPlayerPlayCard();
  6931. while (reader.pos < end) {
  6932. var tag = reader.uint32();
  6933. switch (tag >>> 3) {
  6934. case 1:
  6935. message.playerId = reader.int64();
  6936. break;
  6937. case 2:
  6938. if (!(message.card && message.card.length))
  6939. message.card = [];
  6940. if ((tag & 7) === 2) {
  6941. var end2 = reader.uint32() + reader.pos;
  6942. while (reader.pos < end2)
  6943. message.card.push(reader.int32());
  6944. } else
  6945. message.card.push(reader.int32());
  6946. break;
  6947. case 3:
  6948. if (!(message.circleMaxCards && message.circleMaxCards.length))
  6949. message.circleMaxCards = [];
  6950. if ((tag & 7) === 2) {
  6951. var end2 = reader.uint32() + reader.pos;
  6952. while (reader.pos < end2)
  6953. message.circleMaxCards.push(reader.int32());
  6954. } else
  6955. message.circleMaxCards.push(reader.int32());
  6956. break;
  6957. case 4:
  6958. message.isAuto = reader.bool();
  6959. break;
  6960. default:
  6961. reader.skipType(tag & 7);
  6962. break;
  6963. }
  6964. }
  6965. if (!message.hasOwnProperty("playerId"))
  6966. throw $util.ProtocolError("missing required 'playerId'", { instance: message });
  6967. if (!message.hasOwnProperty("isAuto"))
  6968. throw $util.ProtocolError("missing required 'isAuto'", { instance: message });
  6969. return message;
  6970. };
  6971. /**
  6972. * Decodes a GCPlayerPlayCard message from the specified reader or buffer, length delimited.
  6973. * @function decodeDelimited
  6974. * @memberof guandan.GCPlayerPlayCard
  6975. * @static
  6976. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  6977. * @returns {guandan.GCPlayerPlayCard} GCPlayerPlayCard
  6978. * @throws {Error} If the payload is not a reader or valid buffer
  6979. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  6980. */
  6981. GCPlayerPlayCard.decodeDelimited = function decodeDelimited(reader) {
  6982. if (!(reader instanceof $Reader))
  6983. reader = new $Reader(reader);
  6984. return this.decode(reader, reader.uint32());
  6985. };
  6986. /**
  6987. * Verifies a GCPlayerPlayCard message.
  6988. * @function verify
  6989. * @memberof guandan.GCPlayerPlayCard
  6990. * @static
  6991. * @param {Object.<string,*>} message Plain object to verify
  6992. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  6993. */
  6994. GCPlayerPlayCard.verify = function verify(message) {
  6995. if (typeof message !== "object" || message === null)
  6996. return "object expected";
  6997. if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
  6998. return "playerId: integer|Long expected";
  6999. if (message.card != null && message.hasOwnProperty("card")) {
  7000. if (!Array.isArray(message.card))
  7001. return "card: array expected";
  7002. for (var i = 0; i < message.card.length; ++i)
  7003. if (!$util.isInteger(message.card[i]))
  7004. return "card: integer[] expected";
  7005. }
  7006. if (message.circleMaxCards != null && message.hasOwnProperty("circleMaxCards")) {
  7007. if (!Array.isArray(message.circleMaxCards))
  7008. return "circleMaxCards: array expected";
  7009. for (var i = 0; i < message.circleMaxCards.length; ++i)
  7010. if (!$util.isInteger(message.circleMaxCards[i]))
  7011. return "circleMaxCards: integer[] expected";
  7012. }
  7013. if (typeof message.isAuto !== "boolean")
  7014. return "isAuto: boolean expected";
  7015. return null;
  7016. };
  7017. /**
  7018. * Creates a GCPlayerPlayCard message from a plain object. Also converts values to their respective internal types.
  7019. * @function fromObject
  7020. * @memberof guandan.GCPlayerPlayCard
  7021. * @static
  7022. * @param {Object.<string,*>} object Plain object
  7023. * @returns {guandan.GCPlayerPlayCard} GCPlayerPlayCard
  7024. */
  7025. GCPlayerPlayCard.fromObject = function fromObject(object) {
  7026. if (object instanceof $root.guandan.GCPlayerPlayCard)
  7027. return object;
  7028. var message = new $root.guandan.GCPlayerPlayCard();
  7029. if (object.playerId != null)
  7030. if ($util.Long)
  7031. (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
  7032. else if (typeof object.playerId === "string")
  7033. message.playerId = parseInt(object.playerId, 10);
  7034. else if (typeof object.playerId === "number")
  7035. message.playerId = object.playerId;
  7036. else if (typeof object.playerId === "object")
  7037. message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
  7038. if (object.card) {
  7039. if (!Array.isArray(object.card))
  7040. throw TypeError(".guandan.GCPlayerPlayCard.card: array expected");
  7041. message.card = [];
  7042. for (var i = 0; i < object.card.length; ++i)
  7043. message.card[i] = object.card[i] | 0;
  7044. }
  7045. if (object.circleMaxCards) {
  7046. if (!Array.isArray(object.circleMaxCards))
  7047. throw TypeError(".guandan.GCPlayerPlayCard.circleMaxCards: array expected");
  7048. message.circleMaxCards = [];
  7049. for (var i = 0; i < object.circleMaxCards.length; ++i)
  7050. message.circleMaxCards[i] = object.circleMaxCards[i] | 0;
  7051. }
  7052. if (object.isAuto != null)
  7053. message.isAuto = Boolean(object.isAuto);
  7054. return message;
  7055. };
  7056. /**
  7057. * Creates a plain object from a GCPlayerPlayCard message. Also converts values to other types if specified.
  7058. * @function toObject
  7059. * @memberof guandan.GCPlayerPlayCard
  7060. * @static
  7061. * @param {guandan.GCPlayerPlayCard} message GCPlayerPlayCard
  7062. * @param {$protobuf.IConversionOptions} [options] Conversion options
  7063. * @returns {Object.<string,*>} Plain object
  7064. */
  7065. GCPlayerPlayCard.toObject = function toObject(message, options) {
  7066. if (!options)
  7067. options = {};
  7068. var object = {};
  7069. if (options.arrays || options.defaults) {
  7070. object.card = [];
  7071. object.circleMaxCards = [];
  7072. }
  7073. if (options.defaults) {
  7074. if ($util.Long) {
  7075. var long = new $util.Long(0, 0, false);
  7076. object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  7077. } else
  7078. object.playerId = options.longs === String ? "0" : 0;
  7079. object.isAuto = false;
  7080. }
  7081. if (message.playerId != null && message.hasOwnProperty("playerId"))
  7082. if (typeof message.playerId === "number")
  7083. object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
  7084. else
  7085. object.playerId = options.longs === String ? $util.Long.prototype.toString.call(message.playerId) : options.longs === Number ? new $util.LongBits(message.playerId.low >>> 0, message.playerId.high >>> 0).toNumber() : message.playerId;
  7086. if (message.card && message.card.length) {
  7087. object.card = [];
  7088. for (var j = 0; j < message.card.length; ++j)
  7089. object.card[j] = message.card[j];
  7090. }
  7091. if (message.circleMaxCards && message.circleMaxCards.length) {
  7092. object.circleMaxCards = [];
  7093. for (var j = 0; j < message.circleMaxCards.length; ++j)
  7094. object.circleMaxCards[j] = message.circleMaxCards[j];
  7095. }
  7096. if (message.isAuto != null && message.hasOwnProperty("isAuto"))
  7097. object.isAuto = message.isAuto;
  7098. return object;
  7099. };
  7100. /**
  7101. * Converts this GCPlayerPlayCard to JSON.
  7102. * @function toJSON
  7103. * @memberof guandan.GCPlayerPlayCard
  7104. * @instance
  7105. * @returns {Object.<string,*>} JSON object
  7106. */
  7107. GCPlayerPlayCard.prototype.toJSON = function toJSON() {
  7108. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  7109. };
  7110. return GCPlayerPlayCard;
  7111. })();
  7112. guandan.GCPlayerPlayCardBroadcast = (function() {
  7113. /**
  7114. * Properties of a GCPlayerPlayCardBroadcast.
  7115. * @memberof guandan
  7116. * @interface IGCPlayerPlayCardBroadcast
  7117. * @property {number|Long} playerId GCPlayerPlayCardBroadcast playerId
  7118. * @property {Array.<number>|null} [card] GCPlayerPlayCardBroadcast card
  7119. * @property {Array.<number>|null} [circleMaxCards] GCPlayerPlayCardBroadcast circleMaxCards
  7120. * @property {boolean} isAuto GCPlayerPlayCardBroadcast isAuto
  7121. */
  7122. /**
  7123. * Constructs a new GCPlayerPlayCardBroadcast.
  7124. * @memberof guandan
  7125. * @classdesc Represents a GCPlayerPlayCardBroadcast.
  7126. * @implements IGCPlayerPlayCardBroadcast
  7127. * @constructor
  7128. * @param {guandan.IGCPlayerPlayCardBroadcast=} [properties] Properties to set
  7129. */
  7130. function GCPlayerPlayCardBroadcast(properties) {
  7131. this.card = [];
  7132. this.circleMaxCards = [];
  7133. if (properties)
  7134. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  7135. if (properties[keys[i]] != null)
  7136. this[keys[i]] = properties[keys[i]];
  7137. }
  7138. /**
  7139. * GCPlayerPlayCardBroadcast playerId.
  7140. * @member {number|Long} playerId
  7141. * @memberof guandan.GCPlayerPlayCardBroadcast
  7142. * @instance
  7143. */
  7144. GCPlayerPlayCardBroadcast.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  7145. /**
  7146. * GCPlayerPlayCardBroadcast card.
  7147. * @member {Array.<number>} card
  7148. * @memberof guandan.GCPlayerPlayCardBroadcast
  7149. * @instance
  7150. */
  7151. GCPlayerPlayCardBroadcast.prototype.card = $util.emptyArray;
  7152. /**
  7153. * GCPlayerPlayCardBroadcast circleMaxCards.
  7154. * @member {Array.<number>} circleMaxCards
  7155. * @memberof guandan.GCPlayerPlayCardBroadcast
  7156. * @instance
  7157. */
  7158. GCPlayerPlayCardBroadcast.prototype.circleMaxCards = $util.emptyArray;
  7159. /**
  7160. * GCPlayerPlayCardBroadcast isAuto.
  7161. * @member {boolean} isAuto
  7162. * @memberof guandan.GCPlayerPlayCardBroadcast
  7163. * @instance
  7164. */
  7165. GCPlayerPlayCardBroadcast.prototype.isAuto = false;
  7166. /**
  7167. * Creates a new GCPlayerPlayCardBroadcast instance using the specified properties.
  7168. * @function create
  7169. * @memberof guandan.GCPlayerPlayCardBroadcast
  7170. * @static
  7171. * @param {guandan.IGCPlayerPlayCardBroadcast=} [properties] Properties to set
  7172. * @returns {guandan.GCPlayerPlayCardBroadcast} GCPlayerPlayCardBroadcast instance
  7173. */
  7174. GCPlayerPlayCardBroadcast.create = function create(properties) {
  7175. return new GCPlayerPlayCardBroadcast(properties);
  7176. };
  7177. /**
  7178. * Encodes the specified GCPlayerPlayCardBroadcast message. Does not implicitly {@link guandan.GCPlayerPlayCardBroadcast.verify|verify} messages.
  7179. * @function encode
  7180. * @memberof guandan.GCPlayerPlayCardBroadcast
  7181. * @static
  7182. * @param {guandan.IGCPlayerPlayCardBroadcast} message GCPlayerPlayCardBroadcast message or plain object to encode
  7183. * @param {$protobuf.Writer} [writer] Writer to encode to
  7184. * @returns {$protobuf.Writer} Writer
  7185. */
  7186. GCPlayerPlayCardBroadcast.encode = function encode(message, writer) {
  7187. if (!writer)
  7188. writer = $Writer.create();
  7189. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
  7190. if (message.card != null && message.card.length)
  7191. for (var i = 0; i < message.card.length; ++i)
  7192. writer.uint32(/* id 2, wireType 0 =*/16).int32(message.card[i]);
  7193. if (message.circleMaxCards != null && message.circleMaxCards.length)
  7194. for (var i = 0; i < message.circleMaxCards.length; ++i)
  7195. writer.uint32(/* id 3, wireType 0 =*/24).int32(message.circleMaxCards[i]);
  7196. writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isAuto);
  7197. return writer;
  7198. };
  7199. /**
  7200. * Encodes the specified GCPlayerPlayCardBroadcast message, length delimited. Does not implicitly {@link guandan.GCPlayerPlayCardBroadcast.verify|verify} messages.
  7201. * @function encodeDelimited
  7202. * @memberof guandan.GCPlayerPlayCardBroadcast
  7203. * @static
  7204. * @param {guandan.IGCPlayerPlayCardBroadcast} message GCPlayerPlayCardBroadcast message or plain object to encode
  7205. * @param {$protobuf.Writer} [writer] Writer to encode to
  7206. * @returns {$protobuf.Writer} Writer
  7207. */
  7208. GCPlayerPlayCardBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
  7209. return this.encode(message, writer).ldelim();
  7210. };
  7211. /**
  7212. * Decodes a GCPlayerPlayCardBroadcast message from the specified reader or buffer.
  7213. * @function decode
  7214. * @memberof guandan.GCPlayerPlayCardBroadcast
  7215. * @static
  7216. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  7217. * @param {number} [length] Message length if known beforehand
  7218. * @returns {guandan.GCPlayerPlayCardBroadcast} GCPlayerPlayCardBroadcast
  7219. * @throws {Error} If the payload is not a reader or valid buffer
  7220. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  7221. */
  7222. GCPlayerPlayCardBroadcast.decode = function decode(reader, length) {
  7223. if (!(reader instanceof $Reader))
  7224. reader = $Reader.create(reader);
  7225. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCPlayerPlayCardBroadcast();
  7226. while (reader.pos < end) {
  7227. var tag = reader.uint32();
  7228. switch (tag >>> 3) {
  7229. case 1:
  7230. message.playerId = reader.int64();
  7231. break;
  7232. case 2:
  7233. if (!(message.card && message.card.length))
  7234. message.card = [];
  7235. if ((tag & 7) === 2) {
  7236. var end2 = reader.uint32() + reader.pos;
  7237. while (reader.pos < end2)
  7238. message.card.push(reader.int32());
  7239. } else
  7240. message.card.push(reader.int32());
  7241. break;
  7242. case 3:
  7243. if (!(message.circleMaxCards && message.circleMaxCards.length))
  7244. message.circleMaxCards = [];
  7245. if ((tag & 7) === 2) {
  7246. var end2 = reader.uint32() + reader.pos;
  7247. while (reader.pos < end2)
  7248. message.circleMaxCards.push(reader.int32());
  7249. } else
  7250. message.circleMaxCards.push(reader.int32());
  7251. break;
  7252. case 4:
  7253. message.isAuto = reader.bool();
  7254. break;
  7255. default:
  7256. reader.skipType(tag & 7);
  7257. break;
  7258. }
  7259. }
  7260. if (!message.hasOwnProperty("playerId"))
  7261. throw $util.ProtocolError("missing required 'playerId'", { instance: message });
  7262. if (!message.hasOwnProperty("isAuto"))
  7263. throw $util.ProtocolError("missing required 'isAuto'", { instance: message });
  7264. return message;
  7265. };
  7266. /**
  7267. * Decodes a GCPlayerPlayCardBroadcast message from the specified reader or buffer, length delimited.
  7268. * @function decodeDelimited
  7269. * @memberof guandan.GCPlayerPlayCardBroadcast
  7270. * @static
  7271. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  7272. * @returns {guandan.GCPlayerPlayCardBroadcast} GCPlayerPlayCardBroadcast
  7273. * @throws {Error} If the payload is not a reader or valid buffer
  7274. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  7275. */
  7276. GCPlayerPlayCardBroadcast.decodeDelimited = function decodeDelimited(reader) {
  7277. if (!(reader instanceof $Reader))
  7278. reader = new $Reader(reader);
  7279. return this.decode(reader, reader.uint32());
  7280. };
  7281. /**
  7282. * Verifies a GCPlayerPlayCardBroadcast message.
  7283. * @function verify
  7284. * @memberof guandan.GCPlayerPlayCardBroadcast
  7285. * @static
  7286. * @param {Object.<string,*>} message Plain object to verify
  7287. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  7288. */
  7289. GCPlayerPlayCardBroadcast.verify = function verify(message) {
  7290. if (typeof message !== "object" || message === null)
  7291. return "object expected";
  7292. if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
  7293. return "playerId: integer|Long expected";
  7294. if (message.card != null && message.hasOwnProperty("card")) {
  7295. if (!Array.isArray(message.card))
  7296. return "card: array expected";
  7297. for (var i = 0; i < message.card.length; ++i)
  7298. if (!$util.isInteger(message.card[i]))
  7299. return "card: integer[] expected";
  7300. }
  7301. if (message.circleMaxCards != null && message.hasOwnProperty("circleMaxCards")) {
  7302. if (!Array.isArray(message.circleMaxCards))
  7303. return "circleMaxCards: array expected";
  7304. for (var i = 0; i < message.circleMaxCards.length; ++i)
  7305. if (!$util.isInteger(message.circleMaxCards[i]))
  7306. return "circleMaxCards: integer[] expected";
  7307. }
  7308. if (typeof message.isAuto !== "boolean")
  7309. return "isAuto: boolean expected";
  7310. return null;
  7311. };
  7312. /**
  7313. * Creates a GCPlayerPlayCardBroadcast message from a plain object. Also converts values to their respective internal types.
  7314. * @function fromObject
  7315. * @memberof guandan.GCPlayerPlayCardBroadcast
  7316. * @static
  7317. * @param {Object.<string,*>} object Plain object
  7318. * @returns {guandan.GCPlayerPlayCardBroadcast} GCPlayerPlayCardBroadcast
  7319. */
  7320. GCPlayerPlayCardBroadcast.fromObject = function fromObject(object) {
  7321. if (object instanceof $root.guandan.GCPlayerPlayCardBroadcast)
  7322. return object;
  7323. var message = new $root.guandan.GCPlayerPlayCardBroadcast();
  7324. if (object.playerId != null)
  7325. if ($util.Long)
  7326. (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
  7327. else if (typeof object.playerId === "string")
  7328. message.playerId = parseInt(object.playerId, 10);
  7329. else if (typeof object.playerId === "number")
  7330. message.playerId = object.playerId;
  7331. else if (typeof object.playerId === "object")
  7332. message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
  7333. if (object.card) {
  7334. if (!Array.isArray(object.card))
  7335. throw TypeError(".guandan.GCPlayerPlayCardBroadcast.card: array expected");
  7336. message.card = [];
  7337. for (var i = 0; i < object.card.length; ++i)
  7338. message.card[i] = object.card[i] | 0;
  7339. }
  7340. if (object.circleMaxCards) {
  7341. if (!Array.isArray(object.circleMaxCards))
  7342. throw TypeError(".guandan.GCPlayerPlayCardBroadcast.circleMaxCards: array expected");
  7343. message.circleMaxCards = [];
  7344. for (var i = 0; i < object.circleMaxCards.length; ++i)
  7345. message.circleMaxCards[i] = object.circleMaxCards[i] | 0;
  7346. }
  7347. if (object.isAuto != null)
  7348. message.isAuto = Boolean(object.isAuto);
  7349. return message;
  7350. };
  7351. /**
  7352. * Creates a plain object from a GCPlayerPlayCardBroadcast message. Also converts values to other types if specified.
  7353. * @function toObject
  7354. * @memberof guandan.GCPlayerPlayCardBroadcast
  7355. * @static
  7356. * @param {guandan.GCPlayerPlayCardBroadcast} message GCPlayerPlayCardBroadcast
  7357. * @param {$protobuf.IConversionOptions} [options] Conversion options
  7358. * @returns {Object.<string,*>} Plain object
  7359. */
  7360. GCPlayerPlayCardBroadcast.toObject = function toObject(message, options) {
  7361. if (!options)
  7362. options = {};
  7363. var object = {};
  7364. if (options.arrays || options.defaults) {
  7365. object.card = [];
  7366. object.circleMaxCards = [];
  7367. }
  7368. if (options.defaults) {
  7369. if ($util.Long) {
  7370. var long = new $util.Long(0, 0, false);
  7371. object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  7372. } else
  7373. object.playerId = options.longs === String ? "0" : 0;
  7374. object.isAuto = false;
  7375. }
  7376. if (message.playerId != null && message.hasOwnProperty("playerId"))
  7377. if (typeof message.playerId === "number")
  7378. object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
  7379. else
  7380. object.playerId = options.longs === String ? $util.Long.prototype.toString.call(message.playerId) : options.longs === Number ? new $util.LongBits(message.playerId.low >>> 0, message.playerId.high >>> 0).toNumber() : message.playerId;
  7381. if (message.card && message.card.length) {
  7382. object.card = [];
  7383. for (var j = 0; j < message.card.length; ++j)
  7384. object.card[j] = message.card[j];
  7385. }
  7386. if (message.circleMaxCards && message.circleMaxCards.length) {
  7387. object.circleMaxCards = [];
  7388. for (var j = 0; j < message.circleMaxCards.length; ++j)
  7389. object.circleMaxCards[j] = message.circleMaxCards[j];
  7390. }
  7391. if (message.isAuto != null && message.hasOwnProperty("isAuto"))
  7392. object.isAuto = message.isAuto;
  7393. return object;
  7394. };
  7395. /**
  7396. * Converts this GCPlayerPlayCardBroadcast to JSON.
  7397. * @function toJSON
  7398. * @memberof guandan.GCPlayerPlayCardBroadcast
  7399. * @instance
  7400. * @returns {Object.<string,*>} JSON object
  7401. */
  7402. GCPlayerPlayCardBroadcast.prototype.toJSON = function toJSON() {
  7403. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  7404. };
  7405. return GCPlayerPlayCardBroadcast;
  7406. })();
  7407. guandan.Operation = (function() {
  7408. /**
  7409. * Properties of an Operation.
  7410. * @memberof guandan
  7411. * @interface IOperation
  7412. * @property {number} operationType Operation operationType
  7413. * @property {Array.<number>|null} [cardList] Operation cardList
  7414. */
  7415. /**
  7416. * Constructs a new Operation.
  7417. * @memberof guandan
  7418. * @classdesc Represents an Operation.
  7419. * @implements IOperation
  7420. * @constructor
  7421. * @param {guandan.IOperation=} [properties] Properties to set
  7422. */
  7423. function Operation(properties) {
  7424. this.cardList = [];
  7425. if (properties)
  7426. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  7427. if (properties[keys[i]] != null)
  7428. this[keys[i]] = properties[keys[i]];
  7429. }
  7430. /**
  7431. * Operation operationType.
  7432. * @member {number} operationType
  7433. * @memberof guandan.Operation
  7434. * @instance
  7435. */
  7436. Operation.prototype.operationType = 0;
  7437. /**
  7438. * Operation cardList.
  7439. * @member {Array.<number>} cardList
  7440. * @memberof guandan.Operation
  7441. * @instance
  7442. */
  7443. Operation.prototype.cardList = $util.emptyArray;
  7444. /**
  7445. * Creates a new Operation instance using the specified properties.
  7446. * @function create
  7447. * @memberof guandan.Operation
  7448. * @static
  7449. * @param {guandan.IOperation=} [properties] Properties to set
  7450. * @returns {guandan.Operation} Operation instance
  7451. */
  7452. Operation.create = function create(properties) {
  7453. return new Operation(properties);
  7454. };
  7455. /**
  7456. * Encodes the specified Operation message. Does not implicitly {@link guandan.Operation.verify|verify} messages.
  7457. * @function encode
  7458. * @memberof guandan.Operation
  7459. * @static
  7460. * @param {guandan.IOperation} message Operation message or plain object to encode
  7461. * @param {$protobuf.Writer} [writer] Writer to encode to
  7462. * @returns {$protobuf.Writer} Writer
  7463. */
  7464. Operation.encode = function encode(message, writer) {
  7465. if (!writer)
  7466. writer = $Writer.create();
  7467. writer.uint32(/* id 1, wireType 0 =*/8).int32(message.operationType);
  7468. if (message.cardList != null && message.cardList.length)
  7469. for (var i = 0; i < message.cardList.length; ++i)
  7470. writer.uint32(/* id 2, wireType 0 =*/16).int32(message.cardList[i]);
  7471. return writer;
  7472. };
  7473. /**
  7474. * Encodes the specified Operation message, length delimited. Does not implicitly {@link guandan.Operation.verify|verify} messages.
  7475. * @function encodeDelimited
  7476. * @memberof guandan.Operation
  7477. * @static
  7478. * @param {guandan.IOperation} message Operation message or plain object to encode
  7479. * @param {$protobuf.Writer} [writer] Writer to encode to
  7480. * @returns {$protobuf.Writer} Writer
  7481. */
  7482. Operation.encodeDelimited = function encodeDelimited(message, writer) {
  7483. return this.encode(message, writer).ldelim();
  7484. };
  7485. /**
  7486. * Decodes an Operation message from the specified reader or buffer.
  7487. * @function decode
  7488. * @memberof guandan.Operation
  7489. * @static
  7490. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  7491. * @param {number} [length] Message length if known beforehand
  7492. * @returns {guandan.Operation} Operation
  7493. * @throws {Error} If the payload is not a reader or valid buffer
  7494. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  7495. */
  7496. Operation.decode = function decode(reader, length) {
  7497. if (!(reader instanceof $Reader))
  7498. reader = $Reader.create(reader);
  7499. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.Operation();
  7500. while (reader.pos < end) {
  7501. var tag = reader.uint32();
  7502. switch (tag >>> 3) {
  7503. case 1:
  7504. message.operationType = reader.int32();
  7505. break;
  7506. case 2:
  7507. if (!(message.cardList && message.cardList.length))
  7508. message.cardList = [];
  7509. if ((tag & 7) === 2) {
  7510. var end2 = reader.uint32() + reader.pos;
  7511. while (reader.pos < end2)
  7512. message.cardList.push(reader.int32());
  7513. } else
  7514. message.cardList.push(reader.int32());
  7515. break;
  7516. default:
  7517. reader.skipType(tag & 7);
  7518. break;
  7519. }
  7520. }
  7521. if (!message.hasOwnProperty("operationType"))
  7522. throw $util.ProtocolError("missing required 'operationType'", { instance: message });
  7523. return message;
  7524. };
  7525. /**
  7526. * Decodes an Operation message from the specified reader or buffer, length delimited.
  7527. * @function decodeDelimited
  7528. * @memberof guandan.Operation
  7529. * @static
  7530. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  7531. * @returns {guandan.Operation} Operation
  7532. * @throws {Error} If the payload is not a reader or valid buffer
  7533. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  7534. */
  7535. Operation.decodeDelimited = function decodeDelimited(reader) {
  7536. if (!(reader instanceof $Reader))
  7537. reader = new $Reader(reader);
  7538. return this.decode(reader, reader.uint32());
  7539. };
  7540. /**
  7541. * Verifies an Operation message.
  7542. * @function verify
  7543. * @memberof guandan.Operation
  7544. * @static
  7545. * @param {Object.<string,*>} message Plain object to verify
  7546. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  7547. */
  7548. Operation.verify = function verify(message) {
  7549. if (typeof message !== "object" || message === null)
  7550. return "object expected";
  7551. if (!$util.isInteger(message.operationType))
  7552. return "operationType: integer expected";
  7553. if (message.cardList != null && message.hasOwnProperty("cardList")) {
  7554. if (!Array.isArray(message.cardList))
  7555. return "cardList: array expected";
  7556. for (var i = 0; i < message.cardList.length; ++i)
  7557. if (!$util.isInteger(message.cardList[i]))
  7558. return "cardList: integer[] expected";
  7559. }
  7560. return null;
  7561. };
  7562. /**
  7563. * Creates an Operation message from a plain object. Also converts values to their respective internal types.
  7564. * @function fromObject
  7565. * @memberof guandan.Operation
  7566. * @static
  7567. * @param {Object.<string,*>} object Plain object
  7568. * @returns {guandan.Operation} Operation
  7569. */
  7570. Operation.fromObject = function fromObject(object) {
  7571. if (object instanceof $root.guandan.Operation)
  7572. return object;
  7573. var message = new $root.guandan.Operation();
  7574. if (object.operationType != null)
  7575. message.operationType = object.operationType | 0;
  7576. if (object.cardList) {
  7577. if (!Array.isArray(object.cardList))
  7578. throw TypeError(".guandan.Operation.cardList: array expected");
  7579. message.cardList = [];
  7580. for (var i = 0; i < object.cardList.length; ++i)
  7581. message.cardList[i] = object.cardList[i] | 0;
  7582. }
  7583. return message;
  7584. };
  7585. /**
  7586. * Creates a plain object from an Operation message. Also converts values to other types if specified.
  7587. * @function toObject
  7588. * @memberof guandan.Operation
  7589. * @static
  7590. * @param {guandan.Operation} message Operation
  7591. * @param {$protobuf.IConversionOptions} [options] Conversion options
  7592. * @returns {Object.<string,*>} Plain object
  7593. */
  7594. Operation.toObject = function toObject(message, options) {
  7595. if (!options)
  7596. options = {};
  7597. var object = {};
  7598. if (options.arrays || options.defaults)
  7599. object.cardList = [];
  7600. if (options.defaults)
  7601. object.operationType = 0;
  7602. if (message.operationType != null && message.hasOwnProperty("operationType"))
  7603. object.operationType = message.operationType;
  7604. if (message.cardList && message.cardList.length) {
  7605. object.cardList = [];
  7606. for (var j = 0; j < message.cardList.length; ++j)
  7607. object.cardList[j] = message.cardList[j];
  7608. }
  7609. return object;
  7610. };
  7611. /**
  7612. * Converts this Operation to JSON.
  7613. * @function toJSON
  7614. * @memberof guandan.Operation
  7615. * @instance
  7616. * @returns {Object.<string,*>} JSON object
  7617. */
  7618. Operation.prototype.toJSON = function toJSON() {
  7619. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  7620. };
  7621. return Operation;
  7622. })();
  7623. guandan.GCPlayerOperations = (function() {
  7624. /**
  7625. * Properties of a GCPlayerOperations.
  7626. * @memberof guandan
  7627. * @interface IGCPlayerOperations
  7628. * @property {Array.<guandan.IOperation>|null} [operationList] GCPlayerOperations operationList
  7629. */
  7630. /**
  7631. * Constructs a new GCPlayerOperations.
  7632. * @memberof guandan
  7633. * @classdesc Represents a GCPlayerOperations.
  7634. * @implements IGCPlayerOperations
  7635. * @constructor
  7636. * @param {guandan.IGCPlayerOperations=} [properties] Properties to set
  7637. */
  7638. function GCPlayerOperations(properties) {
  7639. this.operationList = [];
  7640. if (properties)
  7641. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  7642. if (properties[keys[i]] != null)
  7643. this[keys[i]] = properties[keys[i]];
  7644. }
  7645. /**
  7646. * GCPlayerOperations operationList.
  7647. * @member {Array.<guandan.IOperation>} operationList
  7648. * @memberof guandan.GCPlayerOperations
  7649. * @instance
  7650. */
  7651. GCPlayerOperations.prototype.operationList = $util.emptyArray;
  7652. /**
  7653. * Creates a new GCPlayerOperations instance using the specified properties.
  7654. * @function create
  7655. * @memberof guandan.GCPlayerOperations
  7656. * @static
  7657. * @param {guandan.IGCPlayerOperations=} [properties] Properties to set
  7658. * @returns {guandan.GCPlayerOperations} GCPlayerOperations instance
  7659. */
  7660. GCPlayerOperations.create = function create(properties) {
  7661. return new GCPlayerOperations(properties);
  7662. };
  7663. /**
  7664. * Encodes the specified GCPlayerOperations message. Does not implicitly {@link guandan.GCPlayerOperations.verify|verify} messages.
  7665. * @function encode
  7666. * @memberof guandan.GCPlayerOperations
  7667. * @static
  7668. * @param {guandan.IGCPlayerOperations} message GCPlayerOperations message or plain object to encode
  7669. * @param {$protobuf.Writer} [writer] Writer to encode to
  7670. * @returns {$protobuf.Writer} Writer
  7671. */
  7672. GCPlayerOperations.encode = function encode(message, writer) {
  7673. if (!writer)
  7674. writer = $Writer.create();
  7675. if (message.operationList != null && message.operationList.length)
  7676. for (var i = 0; i < message.operationList.length; ++i)
  7677. $root.guandan.Operation.encode(message.operationList[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
  7678. return writer;
  7679. };
  7680. /**
  7681. * Encodes the specified GCPlayerOperations message, length delimited. Does not implicitly {@link guandan.GCPlayerOperations.verify|verify} messages.
  7682. * @function encodeDelimited
  7683. * @memberof guandan.GCPlayerOperations
  7684. * @static
  7685. * @param {guandan.IGCPlayerOperations} message GCPlayerOperations message or plain object to encode
  7686. * @param {$protobuf.Writer} [writer] Writer to encode to
  7687. * @returns {$protobuf.Writer} Writer
  7688. */
  7689. GCPlayerOperations.encodeDelimited = function encodeDelimited(message, writer) {
  7690. return this.encode(message, writer).ldelim();
  7691. };
  7692. /**
  7693. * Decodes a GCPlayerOperations message from the specified reader or buffer.
  7694. * @function decode
  7695. * @memberof guandan.GCPlayerOperations
  7696. * @static
  7697. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  7698. * @param {number} [length] Message length if known beforehand
  7699. * @returns {guandan.GCPlayerOperations} GCPlayerOperations
  7700. * @throws {Error} If the payload is not a reader or valid buffer
  7701. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  7702. */
  7703. GCPlayerOperations.decode = function decode(reader, length) {
  7704. if (!(reader instanceof $Reader))
  7705. reader = $Reader.create(reader);
  7706. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCPlayerOperations();
  7707. while (reader.pos < end) {
  7708. var tag = reader.uint32();
  7709. switch (tag >>> 3) {
  7710. case 1:
  7711. if (!(message.operationList && message.operationList.length))
  7712. message.operationList = [];
  7713. message.operationList.push($root.guandan.Operation.decode(reader, reader.uint32()));
  7714. break;
  7715. default:
  7716. reader.skipType(tag & 7);
  7717. break;
  7718. }
  7719. }
  7720. return message;
  7721. };
  7722. /**
  7723. * Decodes a GCPlayerOperations message from the specified reader or buffer, length delimited.
  7724. * @function decodeDelimited
  7725. * @memberof guandan.GCPlayerOperations
  7726. * @static
  7727. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  7728. * @returns {guandan.GCPlayerOperations} GCPlayerOperations
  7729. * @throws {Error} If the payload is not a reader or valid buffer
  7730. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  7731. */
  7732. GCPlayerOperations.decodeDelimited = function decodeDelimited(reader) {
  7733. if (!(reader instanceof $Reader))
  7734. reader = new $Reader(reader);
  7735. return this.decode(reader, reader.uint32());
  7736. };
  7737. /**
  7738. * Verifies a GCPlayerOperations message.
  7739. * @function verify
  7740. * @memberof guandan.GCPlayerOperations
  7741. * @static
  7742. * @param {Object.<string,*>} message Plain object to verify
  7743. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  7744. */
  7745. GCPlayerOperations.verify = function verify(message) {
  7746. if (typeof message !== "object" || message === null)
  7747. return "object expected";
  7748. if (message.operationList != null && message.hasOwnProperty("operationList")) {
  7749. if (!Array.isArray(message.operationList))
  7750. return "operationList: array expected";
  7751. for (var i = 0; i < message.operationList.length; ++i) {
  7752. var error = $root.guandan.Operation.verify(message.operationList[i]);
  7753. if (error)
  7754. return "operationList." + error;
  7755. }
  7756. }
  7757. return null;
  7758. };
  7759. /**
  7760. * Creates a GCPlayerOperations message from a plain object. Also converts values to their respective internal types.
  7761. * @function fromObject
  7762. * @memberof guandan.GCPlayerOperations
  7763. * @static
  7764. * @param {Object.<string,*>} object Plain object
  7765. * @returns {guandan.GCPlayerOperations} GCPlayerOperations
  7766. */
  7767. GCPlayerOperations.fromObject = function fromObject(object) {
  7768. if (object instanceof $root.guandan.GCPlayerOperations)
  7769. return object;
  7770. var message = new $root.guandan.GCPlayerOperations();
  7771. if (object.operationList) {
  7772. if (!Array.isArray(object.operationList))
  7773. throw TypeError(".guandan.GCPlayerOperations.operationList: array expected");
  7774. message.operationList = [];
  7775. for (var i = 0; i < object.operationList.length; ++i) {
  7776. if (typeof object.operationList[i] !== "object")
  7777. throw TypeError(".guandan.GCPlayerOperations.operationList: object expected");
  7778. message.operationList[i] = $root.guandan.Operation.fromObject(object.operationList[i]);
  7779. }
  7780. }
  7781. return message;
  7782. };
  7783. /**
  7784. * Creates a plain object from a GCPlayerOperations message. Also converts values to other types if specified.
  7785. * @function toObject
  7786. * @memberof guandan.GCPlayerOperations
  7787. * @static
  7788. * @param {guandan.GCPlayerOperations} message GCPlayerOperations
  7789. * @param {$protobuf.IConversionOptions} [options] Conversion options
  7790. * @returns {Object.<string,*>} Plain object
  7791. */
  7792. GCPlayerOperations.toObject = function toObject(message, options) {
  7793. if (!options)
  7794. options = {};
  7795. var object = {};
  7796. if (options.arrays || options.defaults)
  7797. object.operationList = [];
  7798. if (message.operationList && message.operationList.length) {
  7799. object.operationList = [];
  7800. for (var j = 0; j < message.operationList.length; ++j)
  7801. object.operationList[j] = $root.guandan.Operation.toObject(message.operationList[j], options);
  7802. }
  7803. return object;
  7804. };
  7805. /**
  7806. * Converts this GCPlayerOperations to JSON.
  7807. * @function toJSON
  7808. * @memberof guandan.GCPlayerOperations
  7809. * @instance
  7810. * @returns {Object.<string,*>} JSON object
  7811. */
  7812. GCPlayerOperations.prototype.toJSON = function toJSON() {
  7813. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  7814. };
  7815. return GCPlayerOperations;
  7816. })();
  7817. guandan.GCWaitPlayerPlayCard = (function() {
  7818. /**
  7819. * Properties of a GCWaitPlayerPlayCard.
  7820. * @memberof guandan
  7821. * @interface IGCWaitPlayerPlayCard
  7822. * @property {number|Long} playerId GCWaitPlayerPlayCard playerId
  7823. * @property {boolean} isFirst GCWaitPlayerPlayCard isFirst
  7824. */
  7825. /**
  7826. * Constructs a new GCWaitPlayerPlayCard.
  7827. * @memberof guandan
  7828. * @classdesc Represents a GCWaitPlayerPlayCard.
  7829. * @implements IGCWaitPlayerPlayCard
  7830. * @constructor
  7831. * @param {guandan.IGCWaitPlayerPlayCard=} [properties] Properties to set
  7832. */
  7833. function GCWaitPlayerPlayCard(properties) {
  7834. if (properties)
  7835. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  7836. if (properties[keys[i]] != null)
  7837. this[keys[i]] = properties[keys[i]];
  7838. }
  7839. /**
  7840. * GCWaitPlayerPlayCard playerId.
  7841. * @member {number|Long} playerId
  7842. * @memberof guandan.GCWaitPlayerPlayCard
  7843. * @instance
  7844. */
  7845. GCWaitPlayerPlayCard.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  7846. /**
  7847. * GCWaitPlayerPlayCard isFirst.
  7848. * @member {boolean} isFirst
  7849. * @memberof guandan.GCWaitPlayerPlayCard
  7850. * @instance
  7851. */
  7852. GCWaitPlayerPlayCard.prototype.isFirst = false;
  7853. /**
  7854. * Creates a new GCWaitPlayerPlayCard instance using the specified properties.
  7855. * @function create
  7856. * @memberof guandan.GCWaitPlayerPlayCard
  7857. * @static
  7858. * @param {guandan.IGCWaitPlayerPlayCard=} [properties] Properties to set
  7859. * @returns {guandan.GCWaitPlayerPlayCard} GCWaitPlayerPlayCard instance
  7860. */
  7861. GCWaitPlayerPlayCard.create = function create(properties) {
  7862. return new GCWaitPlayerPlayCard(properties);
  7863. };
  7864. /**
  7865. * Encodes the specified GCWaitPlayerPlayCard message. Does not implicitly {@link guandan.GCWaitPlayerPlayCard.verify|verify} messages.
  7866. * @function encode
  7867. * @memberof guandan.GCWaitPlayerPlayCard
  7868. * @static
  7869. * @param {guandan.IGCWaitPlayerPlayCard} message GCWaitPlayerPlayCard message or plain object to encode
  7870. * @param {$protobuf.Writer} [writer] Writer to encode to
  7871. * @returns {$protobuf.Writer} Writer
  7872. */
  7873. GCWaitPlayerPlayCard.encode = function encode(message, writer) {
  7874. if (!writer)
  7875. writer = $Writer.create();
  7876. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
  7877. writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isFirst);
  7878. return writer;
  7879. };
  7880. /**
  7881. * Encodes the specified GCWaitPlayerPlayCard message, length delimited. Does not implicitly {@link guandan.GCWaitPlayerPlayCard.verify|verify} messages.
  7882. * @function encodeDelimited
  7883. * @memberof guandan.GCWaitPlayerPlayCard
  7884. * @static
  7885. * @param {guandan.IGCWaitPlayerPlayCard} message GCWaitPlayerPlayCard message or plain object to encode
  7886. * @param {$protobuf.Writer} [writer] Writer to encode to
  7887. * @returns {$protobuf.Writer} Writer
  7888. */
  7889. GCWaitPlayerPlayCard.encodeDelimited = function encodeDelimited(message, writer) {
  7890. return this.encode(message, writer).ldelim();
  7891. };
  7892. /**
  7893. * Decodes a GCWaitPlayerPlayCard message from the specified reader or buffer.
  7894. * @function decode
  7895. * @memberof guandan.GCWaitPlayerPlayCard
  7896. * @static
  7897. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  7898. * @param {number} [length] Message length if known beforehand
  7899. * @returns {guandan.GCWaitPlayerPlayCard} GCWaitPlayerPlayCard
  7900. * @throws {Error} If the payload is not a reader or valid buffer
  7901. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  7902. */
  7903. GCWaitPlayerPlayCard.decode = function decode(reader, length) {
  7904. if (!(reader instanceof $Reader))
  7905. reader = $Reader.create(reader);
  7906. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCWaitPlayerPlayCard();
  7907. while (reader.pos < end) {
  7908. var tag = reader.uint32();
  7909. switch (tag >>> 3) {
  7910. case 1:
  7911. message.playerId = reader.int64();
  7912. break;
  7913. case 2:
  7914. message.isFirst = reader.bool();
  7915. break;
  7916. default:
  7917. reader.skipType(tag & 7);
  7918. break;
  7919. }
  7920. }
  7921. if (!message.hasOwnProperty("playerId"))
  7922. throw $util.ProtocolError("missing required 'playerId'", { instance: message });
  7923. if (!message.hasOwnProperty("isFirst"))
  7924. throw $util.ProtocolError("missing required 'isFirst'", { instance: message });
  7925. return message;
  7926. };
  7927. /**
  7928. * Decodes a GCWaitPlayerPlayCard message from the specified reader or buffer, length delimited.
  7929. * @function decodeDelimited
  7930. * @memberof guandan.GCWaitPlayerPlayCard
  7931. * @static
  7932. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  7933. * @returns {guandan.GCWaitPlayerPlayCard} GCWaitPlayerPlayCard
  7934. * @throws {Error} If the payload is not a reader or valid buffer
  7935. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  7936. */
  7937. GCWaitPlayerPlayCard.decodeDelimited = function decodeDelimited(reader) {
  7938. if (!(reader instanceof $Reader))
  7939. reader = new $Reader(reader);
  7940. return this.decode(reader, reader.uint32());
  7941. };
  7942. /**
  7943. * Verifies a GCWaitPlayerPlayCard message.
  7944. * @function verify
  7945. * @memberof guandan.GCWaitPlayerPlayCard
  7946. * @static
  7947. * @param {Object.<string,*>} message Plain object to verify
  7948. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  7949. */
  7950. GCWaitPlayerPlayCard.verify = function verify(message) {
  7951. if (typeof message !== "object" || message === null)
  7952. return "object expected";
  7953. if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
  7954. return "playerId: integer|Long expected";
  7955. if (typeof message.isFirst !== "boolean")
  7956. return "isFirst: boolean expected";
  7957. return null;
  7958. };
  7959. /**
  7960. * Creates a GCWaitPlayerPlayCard message from a plain object. Also converts values to their respective internal types.
  7961. * @function fromObject
  7962. * @memberof guandan.GCWaitPlayerPlayCard
  7963. * @static
  7964. * @param {Object.<string,*>} object Plain object
  7965. * @returns {guandan.GCWaitPlayerPlayCard} GCWaitPlayerPlayCard
  7966. */
  7967. GCWaitPlayerPlayCard.fromObject = function fromObject(object) {
  7968. if (object instanceof $root.guandan.GCWaitPlayerPlayCard)
  7969. return object;
  7970. var message = new $root.guandan.GCWaitPlayerPlayCard();
  7971. if (object.playerId != null)
  7972. if ($util.Long)
  7973. (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
  7974. else if (typeof object.playerId === "string")
  7975. message.playerId = parseInt(object.playerId, 10);
  7976. else if (typeof object.playerId === "number")
  7977. message.playerId = object.playerId;
  7978. else if (typeof object.playerId === "object")
  7979. message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
  7980. if (object.isFirst != null)
  7981. message.isFirst = Boolean(object.isFirst);
  7982. return message;
  7983. };
  7984. /**
  7985. * Creates a plain object from a GCWaitPlayerPlayCard message. Also converts values to other types if specified.
  7986. * @function toObject
  7987. * @memberof guandan.GCWaitPlayerPlayCard
  7988. * @static
  7989. * @param {guandan.GCWaitPlayerPlayCard} message GCWaitPlayerPlayCard
  7990. * @param {$protobuf.IConversionOptions} [options] Conversion options
  7991. * @returns {Object.<string,*>} Plain object
  7992. */
  7993. GCWaitPlayerPlayCard.toObject = function toObject(message, options) {
  7994. if (!options)
  7995. options = {};
  7996. var object = {};
  7997. if (options.defaults) {
  7998. if ($util.Long) {
  7999. var long = new $util.Long(0, 0, false);
  8000. object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  8001. } else
  8002. object.playerId = options.longs === String ? "0" : 0;
  8003. object.isFirst = false;
  8004. }
  8005. if (message.playerId != null && message.hasOwnProperty("playerId"))
  8006. if (typeof message.playerId === "number")
  8007. object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
  8008. else
  8009. object.playerId = options.longs === String ? $util.Long.prototype.toString.call(message.playerId) : options.longs === Number ? new $util.LongBits(message.playerId.low >>> 0, message.playerId.high >>> 0).toNumber() : message.playerId;
  8010. if (message.isFirst != null && message.hasOwnProperty("isFirst"))
  8011. object.isFirst = message.isFirst;
  8012. return object;
  8013. };
  8014. /**
  8015. * Converts this GCWaitPlayerPlayCard to JSON.
  8016. * @function toJSON
  8017. * @memberof guandan.GCWaitPlayerPlayCard
  8018. * @instance
  8019. * @returns {Object.<string,*>} JSON object
  8020. */
  8021. GCWaitPlayerPlayCard.prototype.toJSON = function toJSON() {
  8022. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  8023. };
  8024. return GCWaitPlayerPlayCard;
  8025. })();
  8026. guandan.GCWaitPlayerPlayCardBroadcast = (function() {
  8027. /**
  8028. * Properties of a GCWaitPlayerPlayCardBroadcast.
  8029. * @memberof guandan
  8030. * @interface IGCWaitPlayerPlayCardBroadcast
  8031. * @property {number|Long} playerId GCWaitPlayerPlayCardBroadcast playerId
  8032. * @property {boolean} isFirst GCWaitPlayerPlayCardBroadcast isFirst
  8033. */
  8034. /**
  8035. * Constructs a new GCWaitPlayerPlayCardBroadcast.
  8036. * @memberof guandan
  8037. * @classdesc Represents a GCWaitPlayerPlayCardBroadcast.
  8038. * @implements IGCWaitPlayerPlayCardBroadcast
  8039. * @constructor
  8040. * @param {guandan.IGCWaitPlayerPlayCardBroadcast=} [properties] Properties to set
  8041. */
  8042. function GCWaitPlayerPlayCardBroadcast(properties) {
  8043. if (properties)
  8044. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  8045. if (properties[keys[i]] != null)
  8046. this[keys[i]] = properties[keys[i]];
  8047. }
  8048. /**
  8049. * GCWaitPlayerPlayCardBroadcast playerId.
  8050. * @member {number|Long} playerId
  8051. * @memberof guandan.GCWaitPlayerPlayCardBroadcast
  8052. * @instance
  8053. */
  8054. GCWaitPlayerPlayCardBroadcast.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  8055. /**
  8056. * GCWaitPlayerPlayCardBroadcast isFirst.
  8057. * @member {boolean} isFirst
  8058. * @memberof guandan.GCWaitPlayerPlayCardBroadcast
  8059. * @instance
  8060. */
  8061. GCWaitPlayerPlayCardBroadcast.prototype.isFirst = false;
  8062. /**
  8063. * Creates a new GCWaitPlayerPlayCardBroadcast instance using the specified properties.
  8064. * @function create
  8065. * @memberof guandan.GCWaitPlayerPlayCardBroadcast
  8066. * @static
  8067. * @param {guandan.IGCWaitPlayerPlayCardBroadcast=} [properties] Properties to set
  8068. * @returns {guandan.GCWaitPlayerPlayCardBroadcast} GCWaitPlayerPlayCardBroadcast instance
  8069. */
  8070. GCWaitPlayerPlayCardBroadcast.create = function create(properties) {
  8071. return new GCWaitPlayerPlayCardBroadcast(properties);
  8072. };
  8073. /**
  8074. * Encodes the specified GCWaitPlayerPlayCardBroadcast message. Does not implicitly {@link guandan.GCWaitPlayerPlayCardBroadcast.verify|verify} messages.
  8075. * @function encode
  8076. * @memberof guandan.GCWaitPlayerPlayCardBroadcast
  8077. * @static
  8078. * @param {guandan.IGCWaitPlayerPlayCardBroadcast} message GCWaitPlayerPlayCardBroadcast message or plain object to encode
  8079. * @param {$protobuf.Writer} [writer] Writer to encode to
  8080. * @returns {$protobuf.Writer} Writer
  8081. */
  8082. GCWaitPlayerPlayCardBroadcast.encode = function encode(message, writer) {
  8083. if (!writer)
  8084. writer = $Writer.create();
  8085. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
  8086. writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isFirst);
  8087. return writer;
  8088. };
  8089. /**
  8090. * Encodes the specified GCWaitPlayerPlayCardBroadcast message, length delimited. Does not implicitly {@link guandan.GCWaitPlayerPlayCardBroadcast.verify|verify} messages.
  8091. * @function encodeDelimited
  8092. * @memberof guandan.GCWaitPlayerPlayCardBroadcast
  8093. * @static
  8094. * @param {guandan.IGCWaitPlayerPlayCardBroadcast} message GCWaitPlayerPlayCardBroadcast message or plain object to encode
  8095. * @param {$protobuf.Writer} [writer] Writer to encode to
  8096. * @returns {$protobuf.Writer} Writer
  8097. */
  8098. GCWaitPlayerPlayCardBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
  8099. return this.encode(message, writer).ldelim();
  8100. };
  8101. /**
  8102. * Decodes a GCWaitPlayerPlayCardBroadcast message from the specified reader or buffer.
  8103. * @function decode
  8104. * @memberof guandan.GCWaitPlayerPlayCardBroadcast
  8105. * @static
  8106. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  8107. * @param {number} [length] Message length if known beforehand
  8108. * @returns {guandan.GCWaitPlayerPlayCardBroadcast} GCWaitPlayerPlayCardBroadcast
  8109. * @throws {Error} If the payload is not a reader or valid buffer
  8110. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  8111. */
  8112. GCWaitPlayerPlayCardBroadcast.decode = function decode(reader, length) {
  8113. if (!(reader instanceof $Reader))
  8114. reader = $Reader.create(reader);
  8115. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCWaitPlayerPlayCardBroadcast();
  8116. while (reader.pos < end) {
  8117. var tag = reader.uint32();
  8118. switch (tag >>> 3) {
  8119. case 1:
  8120. message.playerId = reader.int64();
  8121. break;
  8122. case 2:
  8123. message.isFirst = reader.bool();
  8124. break;
  8125. default:
  8126. reader.skipType(tag & 7);
  8127. break;
  8128. }
  8129. }
  8130. if (!message.hasOwnProperty("playerId"))
  8131. throw $util.ProtocolError("missing required 'playerId'", { instance: message });
  8132. if (!message.hasOwnProperty("isFirst"))
  8133. throw $util.ProtocolError("missing required 'isFirst'", { instance: message });
  8134. return message;
  8135. };
  8136. /**
  8137. * Decodes a GCWaitPlayerPlayCardBroadcast message from the specified reader or buffer, length delimited.
  8138. * @function decodeDelimited
  8139. * @memberof guandan.GCWaitPlayerPlayCardBroadcast
  8140. * @static
  8141. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  8142. * @returns {guandan.GCWaitPlayerPlayCardBroadcast} GCWaitPlayerPlayCardBroadcast
  8143. * @throws {Error} If the payload is not a reader or valid buffer
  8144. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  8145. */
  8146. GCWaitPlayerPlayCardBroadcast.decodeDelimited = function decodeDelimited(reader) {
  8147. if (!(reader instanceof $Reader))
  8148. reader = new $Reader(reader);
  8149. return this.decode(reader, reader.uint32());
  8150. };
  8151. /**
  8152. * Verifies a GCWaitPlayerPlayCardBroadcast message.
  8153. * @function verify
  8154. * @memberof guandan.GCWaitPlayerPlayCardBroadcast
  8155. * @static
  8156. * @param {Object.<string,*>} message Plain object to verify
  8157. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  8158. */
  8159. GCWaitPlayerPlayCardBroadcast.verify = function verify(message) {
  8160. if (typeof message !== "object" || message === null)
  8161. return "object expected";
  8162. if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
  8163. return "playerId: integer|Long expected";
  8164. if (typeof message.isFirst !== "boolean")
  8165. return "isFirst: boolean expected";
  8166. return null;
  8167. };
  8168. /**
  8169. * Creates a GCWaitPlayerPlayCardBroadcast message from a plain object. Also converts values to their respective internal types.
  8170. * @function fromObject
  8171. * @memberof guandan.GCWaitPlayerPlayCardBroadcast
  8172. * @static
  8173. * @param {Object.<string,*>} object Plain object
  8174. * @returns {guandan.GCWaitPlayerPlayCardBroadcast} GCWaitPlayerPlayCardBroadcast
  8175. */
  8176. GCWaitPlayerPlayCardBroadcast.fromObject = function fromObject(object) {
  8177. if (object instanceof $root.guandan.GCWaitPlayerPlayCardBroadcast)
  8178. return object;
  8179. var message = new $root.guandan.GCWaitPlayerPlayCardBroadcast();
  8180. if (object.playerId != null)
  8181. if ($util.Long)
  8182. (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
  8183. else if (typeof object.playerId === "string")
  8184. message.playerId = parseInt(object.playerId, 10);
  8185. else if (typeof object.playerId === "number")
  8186. message.playerId = object.playerId;
  8187. else if (typeof object.playerId === "object")
  8188. message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
  8189. if (object.isFirst != null)
  8190. message.isFirst = Boolean(object.isFirst);
  8191. return message;
  8192. };
  8193. /**
  8194. * Creates a plain object from a GCWaitPlayerPlayCardBroadcast message. Also converts values to other types if specified.
  8195. * @function toObject
  8196. * @memberof guandan.GCWaitPlayerPlayCardBroadcast
  8197. * @static
  8198. * @param {guandan.GCWaitPlayerPlayCardBroadcast} message GCWaitPlayerPlayCardBroadcast
  8199. * @param {$protobuf.IConversionOptions} [options] Conversion options
  8200. * @returns {Object.<string,*>} Plain object
  8201. */
  8202. GCWaitPlayerPlayCardBroadcast.toObject = function toObject(message, options) {
  8203. if (!options)
  8204. options = {};
  8205. var object = {};
  8206. if (options.defaults) {
  8207. if ($util.Long) {
  8208. var long = new $util.Long(0, 0, false);
  8209. object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  8210. } else
  8211. object.playerId = options.longs === String ? "0" : 0;
  8212. object.isFirst = false;
  8213. }
  8214. if (message.playerId != null && message.hasOwnProperty("playerId"))
  8215. if (typeof message.playerId === "number")
  8216. object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
  8217. else
  8218. object.playerId = options.longs === String ? $util.Long.prototype.toString.call(message.playerId) : options.longs === Number ? new $util.LongBits(message.playerId.low >>> 0, message.playerId.high >>> 0).toNumber() : message.playerId;
  8219. if (message.isFirst != null && message.hasOwnProperty("isFirst"))
  8220. object.isFirst = message.isFirst;
  8221. return object;
  8222. };
  8223. /**
  8224. * Converts this GCWaitPlayerPlayCardBroadcast to JSON.
  8225. * @function toJSON
  8226. * @memberof guandan.GCWaitPlayerPlayCardBroadcast
  8227. * @instance
  8228. * @returns {Object.<string,*>} JSON object
  8229. */
  8230. GCWaitPlayerPlayCardBroadcast.prototype.toJSON = function toJSON() {
  8231. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  8232. };
  8233. return GCWaitPlayerPlayCardBroadcast;
  8234. })();
  8235. guandan.CGPlayerJinGong = (function() {
  8236. /**
  8237. * Properties of a CGPlayerJinGong.
  8238. * @memberof guandan
  8239. * @interface ICGPlayerJinGong
  8240. * @property {number|Long} playerId CGPlayerJinGong playerId
  8241. * @property {Array.<number>|null} [card] CGPlayerJinGong card
  8242. */
  8243. /**
  8244. * Constructs a new CGPlayerJinGong.
  8245. * @memberof guandan
  8246. * @classdesc Represents a CGPlayerJinGong.
  8247. * @implements ICGPlayerJinGong
  8248. * @constructor
  8249. * @param {guandan.ICGPlayerJinGong=} [properties] Properties to set
  8250. */
  8251. function CGPlayerJinGong(properties) {
  8252. this.card = [];
  8253. if (properties)
  8254. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  8255. if (properties[keys[i]] != null)
  8256. this[keys[i]] = properties[keys[i]];
  8257. }
  8258. /**
  8259. * CGPlayerJinGong playerId.
  8260. * @member {number|Long} playerId
  8261. * @memberof guandan.CGPlayerJinGong
  8262. * @instance
  8263. */
  8264. CGPlayerJinGong.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  8265. /**
  8266. * CGPlayerJinGong card.
  8267. * @member {Array.<number>} card
  8268. * @memberof guandan.CGPlayerJinGong
  8269. * @instance
  8270. */
  8271. CGPlayerJinGong.prototype.card = $util.emptyArray;
  8272. /**
  8273. * Creates a new CGPlayerJinGong instance using the specified properties.
  8274. * @function create
  8275. * @memberof guandan.CGPlayerJinGong
  8276. * @static
  8277. * @param {guandan.ICGPlayerJinGong=} [properties] Properties to set
  8278. * @returns {guandan.CGPlayerJinGong} CGPlayerJinGong instance
  8279. */
  8280. CGPlayerJinGong.create = function create(properties) {
  8281. return new CGPlayerJinGong(properties);
  8282. };
  8283. /**
  8284. * Encodes the specified CGPlayerJinGong message. Does not implicitly {@link guandan.CGPlayerJinGong.verify|verify} messages.
  8285. * @function encode
  8286. * @memberof guandan.CGPlayerJinGong
  8287. * @static
  8288. * @param {guandan.ICGPlayerJinGong} message CGPlayerJinGong message or plain object to encode
  8289. * @param {$protobuf.Writer} [writer] Writer to encode to
  8290. * @returns {$protobuf.Writer} Writer
  8291. */
  8292. CGPlayerJinGong.encode = function encode(message, writer) {
  8293. if (!writer)
  8294. writer = $Writer.create();
  8295. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
  8296. if (message.card != null && message.card.length)
  8297. for (var i = 0; i < message.card.length; ++i)
  8298. writer.uint32(/* id 2, wireType 0 =*/16).int32(message.card[i]);
  8299. return writer;
  8300. };
  8301. /**
  8302. * Encodes the specified CGPlayerJinGong message, length delimited. Does not implicitly {@link guandan.CGPlayerJinGong.verify|verify} messages.
  8303. * @function encodeDelimited
  8304. * @memberof guandan.CGPlayerJinGong
  8305. * @static
  8306. * @param {guandan.ICGPlayerJinGong} message CGPlayerJinGong message or plain object to encode
  8307. * @param {$protobuf.Writer} [writer] Writer to encode to
  8308. * @returns {$protobuf.Writer} Writer
  8309. */
  8310. CGPlayerJinGong.encodeDelimited = function encodeDelimited(message, writer) {
  8311. return this.encode(message, writer).ldelim();
  8312. };
  8313. /**
  8314. * Decodes a CGPlayerJinGong message from the specified reader or buffer.
  8315. * @function decode
  8316. * @memberof guandan.CGPlayerJinGong
  8317. * @static
  8318. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  8319. * @param {number} [length] Message length if known beforehand
  8320. * @returns {guandan.CGPlayerJinGong} CGPlayerJinGong
  8321. * @throws {Error} If the payload is not a reader or valid buffer
  8322. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  8323. */
  8324. CGPlayerJinGong.decode = function decode(reader, length) {
  8325. if (!(reader instanceof $Reader))
  8326. reader = $Reader.create(reader);
  8327. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.CGPlayerJinGong();
  8328. while (reader.pos < end) {
  8329. var tag = reader.uint32();
  8330. switch (tag >>> 3) {
  8331. case 1:
  8332. message.playerId = reader.int64();
  8333. break;
  8334. case 2:
  8335. if (!(message.card && message.card.length))
  8336. message.card = [];
  8337. if ((tag & 7) === 2) {
  8338. var end2 = reader.uint32() + reader.pos;
  8339. while (reader.pos < end2)
  8340. message.card.push(reader.int32());
  8341. } else
  8342. message.card.push(reader.int32());
  8343. break;
  8344. default:
  8345. reader.skipType(tag & 7);
  8346. break;
  8347. }
  8348. }
  8349. if (!message.hasOwnProperty("playerId"))
  8350. throw $util.ProtocolError("missing required 'playerId'", { instance: message });
  8351. return message;
  8352. };
  8353. /**
  8354. * Decodes a CGPlayerJinGong message from the specified reader or buffer, length delimited.
  8355. * @function decodeDelimited
  8356. * @memberof guandan.CGPlayerJinGong
  8357. * @static
  8358. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  8359. * @returns {guandan.CGPlayerJinGong} CGPlayerJinGong
  8360. * @throws {Error} If the payload is not a reader or valid buffer
  8361. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  8362. */
  8363. CGPlayerJinGong.decodeDelimited = function decodeDelimited(reader) {
  8364. if (!(reader instanceof $Reader))
  8365. reader = new $Reader(reader);
  8366. return this.decode(reader, reader.uint32());
  8367. };
  8368. /**
  8369. * Verifies a CGPlayerJinGong message.
  8370. * @function verify
  8371. * @memberof guandan.CGPlayerJinGong
  8372. * @static
  8373. * @param {Object.<string,*>} message Plain object to verify
  8374. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  8375. */
  8376. CGPlayerJinGong.verify = function verify(message) {
  8377. if (typeof message !== "object" || message === null)
  8378. return "object expected";
  8379. if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
  8380. return "playerId: integer|Long expected";
  8381. if (message.card != null && message.hasOwnProperty("card")) {
  8382. if (!Array.isArray(message.card))
  8383. return "card: array expected";
  8384. for (var i = 0; i < message.card.length; ++i)
  8385. if (!$util.isInteger(message.card[i]))
  8386. return "card: integer[] expected";
  8387. }
  8388. return null;
  8389. };
  8390. /**
  8391. * Creates a CGPlayerJinGong message from a plain object. Also converts values to their respective internal types.
  8392. * @function fromObject
  8393. * @memberof guandan.CGPlayerJinGong
  8394. * @static
  8395. * @param {Object.<string,*>} object Plain object
  8396. * @returns {guandan.CGPlayerJinGong} CGPlayerJinGong
  8397. */
  8398. CGPlayerJinGong.fromObject = function fromObject(object) {
  8399. if (object instanceof $root.guandan.CGPlayerJinGong)
  8400. return object;
  8401. var message = new $root.guandan.CGPlayerJinGong();
  8402. if (object.playerId != null)
  8403. if ($util.Long)
  8404. (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
  8405. else if (typeof object.playerId === "string")
  8406. message.playerId = parseInt(object.playerId, 10);
  8407. else if (typeof object.playerId === "number")
  8408. message.playerId = object.playerId;
  8409. else if (typeof object.playerId === "object")
  8410. message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
  8411. if (object.card) {
  8412. if (!Array.isArray(object.card))
  8413. throw TypeError(".guandan.CGPlayerJinGong.card: array expected");
  8414. message.card = [];
  8415. for (var i = 0; i < object.card.length; ++i)
  8416. message.card[i] = object.card[i] | 0;
  8417. }
  8418. return message;
  8419. };
  8420. /**
  8421. * Creates a plain object from a CGPlayerJinGong message. Also converts values to other types if specified.
  8422. * @function toObject
  8423. * @memberof guandan.CGPlayerJinGong
  8424. * @static
  8425. * @param {guandan.CGPlayerJinGong} message CGPlayerJinGong
  8426. * @param {$protobuf.IConversionOptions} [options] Conversion options
  8427. * @returns {Object.<string,*>} Plain object
  8428. */
  8429. CGPlayerJinGong.toObject = function toObject(message, options) {
  8430. if (!options)
  8431. options = {};
  8432. var object = {};
  8433. if (options.arrays || options.defaults)
  8434. object.card = [];
  8435. if (options.defaults)
  8436. if ($util.Long) {
  8437. var long = new $util.Long(0, 0, false);
  8438. object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  8439. } else
  8440. object.playerId = options.longs === String ? "0" : 0;
  8441. if (message.playerId != null && message.hasOwnProperty("playerId"))
  8442. if (typeof message.playerId === "number")
  8443. object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
  8444. else
  8445. object.playerId = options.longs === String ? $util.Long.prototype.toString.call(message.playerId) : options.longs === Number ? new $util.LongBits(message.playerId.low >>> 0, message.playerId.high >>> 0).toNumber() : message.playerId;
  8446. if (message.card && message.card.length) {
  8447. object.card = [];
  8448. for (var j = 0; j < message.card.length; ++j)
  8449. object.card[j] = message.card[j];
  8450. }
  8451. return object;
  8452. };
  8453. /**
  8454. * Converts this CGPlayerJinGong to JSON.
  8455. * @function toJSON
  8456. * @memberof guandan.CGPlayerJinGong
  8457. * @instance
  8458. * @returns {Object.<string,*>} JSON object
  8459. */
  8460. CGPlayerJinGong.prototype.toJSON = function toJSON() {
  8461. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  8462. };
  8463. return CGPlayerJinGong;
  8464. })();
  8465. guandan.GCPlayerJinGongBroadcast = (function() {
  8466. /**
  8467. * Properties of a GCPlayerJinGongBroadcast.
  8468. * @memberof guandan
  8469. * @interface IGCPlayerJinGongBroadcast
  8470. * @property {number|Long} playerId GCPlayerJinGongBroadcast playerId
  8471. * @property {Array.<number>|null} [card] GCPlayerJinGongBroadcast card
  8472. */
  8473. /**
  8474. * Constructs a new GCPlayerJinGongBroadcast.
  8475. * @memberof guandan
  8476. * @classdesc Represents a GCPlayerJinGongBroadcast.
  8477. * @implements IGCPlayerJinGongBroadcast
  8478. * @constructor
  8479. * @param {guandan.IGCPlayerJinGongBroadcast=} [properties] Properties to set
  8480. */
  8481. function GCPlayerJinGongBroadcast(properties) {
  8482. this.card = [];
  8483. if (properties)
  8484. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  8485. if (properties[keys[i]] != null)
  8486. this[keys[i]] = properties[keys[i]];
  8487. }
  8488. /**
  8489. * GCPlayerJinGongBroadcast playerId.
  8490. * @member {number|Long} playerId
  8491. * @memberof guandan.GCPlayerJinGongBroadcast
  8492. * @instance
  8493. */
  8494. GCPlayerJinGongBroadcast.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  8495. /**
  8496. * GCPlayerJinGongBroadcast card.
  8497. * @member {Array.<number>} card
  8498. * @memberof guandan.GCPlayerJinGongBroadcast
  8499. * @instance
  8500. */
  8501. GCPlayerJinGongBroadcast.prototype.card = $util.emptyArray;
  8502. /**
  8503. * Creates a new GCPlayerJinGongBroadcast instance using the specified properties.
  8504. * @function create
  8505. * @memberof guandan.GCPlayerJinGongBroadcast
  8506. * @static
  8507. * @param {guandan.IGCPlayerJinGongBroadcast=} [properties] Properties to set
  8508. * @returns {guandan.GCPlayerJinGongBroadcast} GCPlayerJinGongBroadcast instance
  8509. */
  8510. GCPlayerJinGongBroadcast.create = function create(properties) {
  8511. return new GCPlayerJinGongBroadcast(properties);
  8512. };
  8513. /**
  8514. * Encodes the specified GCPlayerJinGongBroadcast message. Does not implicitly {@link guandan.GCPlayerJinGongBroadcast.verify|verify} messages.
  8515. * @function encode
  8516. * @memberof guandan.GCPlayerJinGongBroadcast
  8517. * @static
  8518. * @param {guandan.IGCPlayerJinGongBroadcast} message GCPlayerJinGongBroadcast message or plain object to encode
  8519. * @param {$protobuf.Writer} [writer] Writer to encode to
  8520. * @returns {$protobuf.Writer} Writer
  8521. */
  8522. GCPlayerJinGongBroadcast.encode = function encode(message, writer) {
  8523. if (!writer)
  8524. writer = $Writer.create();
  8525. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
  8526. if (message.card != null && message.card.length)
  8527. for (var i = 0; i < message.card.length; ++i)
  8528. writer.uint32(/* id 2, wireType 0 =*/16).int32(message.card[i]);
  8529. return writer;
  8530. };
  8531. /**
  8532. * Encodes the specified GCPlayerJinGongBroadcast message, length delimited. Does not implicitly {@link guandan.GCPlayerJinGongBroadcast.verify|verify} messages.
  8533. * @function encodeDelimited
  8534. * @memberof guandan.GCPlayerJinGongBroadcast
  8535. * @static
  8536. * @param {guandan.IGCPlayerJinGongBroadcast} message GCPlayerJinGongBroadcast message or plain object to encode
  8537. * @param {$protobuf.Writer} [writer] Writer to encode to
  8538. * @returns {$protobuf.Writer} Writer
  8539. */
  8540. GCPlayerJinGongBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
  8541. return this.encode(message, writer).ldelim();
  8542. };
  8543. /**
  8544. * Decodes a GCPlayerJinGongBroadcast message from the specified reader or buffer.
  8545. * @function decode
  8546. * @memberof guandan.GCPlayerJinGongBroadcast
  8547. * @static
  8548. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  8549. * @param {number} [length] Message length if known beforehand
  8550. * @returns {guandan.GCPlayerJinGongBroadcast} GCPlayerJinGongBroadcast
  8551. * @throws {Error} If the payload is not a reader or valid buffer
  8552. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  8553. */
  8554. GCPlayerJinGongBroadcast.decode = function decode(reader, length) {
  8555. if (!(reader instanceof $Reader))
  8556. reader = $Reader.create(reader);
  8557. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCPlayerJinGongBroadcast();
  8558. while (reader.pos < end) {
  8559. var tag = reader.uint32();
  8560. switch (tag >>> 3) {
  8561. case 1:
  8562. message.playerId = reader.int64();
  8563. break;
  8564. case 2:
  8565. if (!(message.card && message.card.length))
  8566. message.card = [];
  8567. if ((tag & 7) === 2) {
  8568. var end2 = reader.uint32() + reader.pos;
  8569. while (reader.pos < end2)
  8570. message.card.push(reader.int32());
  8571. } else
  8572. message.card.push(reader.int32());
  8573. break;
  8574. default:
  8575. reader.skipType(tag & 7);
  8576. break;
  8577. }
  8578. }
  8579. if (!message.hasOwnProperty("playerId"))
  8580. throw $util.ProtocolError("missing required 'playerId'", { instance: message });
  8581. return message;
  8582. };
  8583. /**
  8584. * Decodes a GCPlayerJinGongBroadcast message from the specified reader or buffer, length delimited.
  8585. * @function decodeDelimited
  8586. * @memberof guandan.GCPlayerJinGongBroadcast
  8587. * @static
  8588. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  8589. * @returns {guandan.GCPlayerJinGongBroadcast} GCPlayerJinGongBroadcast
  8590. * @throws {Error} If the payload is not a reader or valid buffer
  8591. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  8592. */
  8593. GCPlayerJinGongBroadcast.decodeDelimited = function decodeDelimited(reader) {
  8594. if (!(reader instanceof $Reader))
  8595. reader = new $Reader(reader);
  8596. return this.decode(reader, reader.uint32());
  8597. };
  8598. /**
  8599. * Verifies a GCPlayerJinGongBroadcast message.
  8600. * @function verify
  8601. * @memberof guandan.GCPlayerJinGongBroadcast
  8602. * @static
  8603. * @param {Object.<string,*>} message Plain object to verify
  8604. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  8605. */
  8606. GCPlayerJinGongBroadcast.verify = function verify(message) {
  8607. if (typeof message !== "object" || message === null)
  8608. return "object expected";
  8609. if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
  8610. return "playerId: integer|Long expected";
  8611. if (message.card != null && message.hasOwnProperty("card")) {
  8612. if (!Array.isArray(message.card))
  8613. return "card: array expected";
  8614. for (var i = 0; i < message.card.length; ++i)
  8615. if (!$util.isInteger(message.card[i]))
  8616. return "card: integer[] expected";
  8617. }
  8618. return null;
  8619. };
  8620. /**
  8621. * Creates a GCPlayerJinGongBroadcast message from a plain object. Also converts values to their respective internal types.
  8622. * @function fromObject
  8623. * @memberof guandan.GCPlayerJinGongBroadcast
  8624. * @static
  8625. * @param {Object.<string,*>} object Plain object
  8626. * @returns {guandan.GCPlayerJinGongBroadcast} GCPlayerJinGongBroadcast
  8627. */
  8628. GCPlayerJinGongBroadcast.fromObject = function fromObject(object) {
  8629. if (object instanceof $root.guandan.GCPlayerJinGongBroadcast)
  8630. return object;
  8631. var message = new $root.guandan.GCPlayerJinGongBroadcast();
  8632. if (object.playerId != null)
  8633. if ($util.Long)
  8634. (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
  8635. else if (typeof object.playerId === "string")
  8636. message.playerId = parseInt(object.playerId, 10);
  8637. else if (typeof object.playerId === "number")
  8638. message.playerId = object.playerId;
  8639. else if (typeof object.playerId === "object")
  8640. message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
  8641. if (object.card) {
  8642. if (!Array.isArray(object.card))
  8643. throw TypeError(".guandan.GCPlayerJinGongBroadcast.card: array expected");
  8644. message.card = [];
  8645. for (var i = 0; i < object.card.length; ++i)
  8646. message.card[i] = object.card[i] | 0;
  8647. }
  8648. return message;
  8649. };
  8650. /**
  8651. * Creates a plain object from a GCPlayerJinGongBroadcast message. Also converts values to other types if specified.
  8652. * @function toObject
  8653. * @memberof guandan.GCPlayerJinGongBroadcast
  8654. * @static
  8655. * @param {guandan.GCPlayerJinGongBroadcast} message GCPlayerJinGongBroadcast
  8656. * @param {$protobuf.IConversionOptions} [options] Conversion options
  8657. * @returns {Object.<string,*>} Plain object
  8658. */
  8659. GCPlayerJinGongBroadcast.toObject = function toObject(message, options) {
  8660. if (!options)
  8661. options = {};
  8662. var object = {};
  8663. if (options.arrays || options.defaults)
  8664. object.card = [];
  8665. if (options.defaults)
  8666. if ($util.Long) {
  8667. var long = new $util.Long(0, 0, false);
  8668. object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  8669. } else
  8670. object.playerId = options.longs === String ? "0" : 0;
  8671. if (message.playerId != null && message.hasOwnProperty("playerId"))
  8672. if (typeof message.playerId === "number")
  8673. object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
  8674. else
  8675. object.playerId = options.longs === String ? $util.Long.prototype.toString.call(message.playerId) : options.longs === Number ? new $util.LongBits(message.playerId.low >>> 0, message.playerId.high >>> 0).toNumber() : message.playerId;
  8676. if (message.card && message.card.length) {
  8677. object.card = [];
  8678. for (var j = 0; j < message.card.length; ++j)
  8679. object.card[j] = message.card[j];
  8680. }
  8681. return object;
  8682. };
  8683. /**
  8684. * Converts this GCPlayerJinGongBroadcast to JSON.
  8685. * @function toJSON
  8686. * @memberof guandan.GCPlayerJinGongBroadcast
  8687. * @instance
  8688. * @returns {Object.<string,*>} JSON object
  8689. */
  8690. GCPlayerJinGongBroadcast.prototype.toJSON = function toJSON() {
  8691. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  8692. };
  8693. return GCPlayerJinGongBroadcast;
  8694. })();
  8695. guandan.CGPlayerHuanGong = (function() {
  8696. /**
  8697. * Properties of a CGPlayerHuanGong.
  8698. * @memberof guandan
  8699. * @interface ICGPlayerHuanGong
  8700. * @property {number|Long} playerId CGPlayerHuanGong playerId
  8701. * @property {Array.<number>|null} [card] CGPlayerHuanGong card
  8702. */
  8703. /**
  8704. * Constructs a new CGPlayerHuanGong.
  8705. * @memberof guandan
  8706. * @classdesc Represents a CGPlayerHuanGong.
  8707. * @implements ICGPlayerHuanGong
  8708. * @constructor
  8709. * @param {guandan.ICGPlayerHuanGong=} [properties] Properties to set
  8710. */
  8711. function CGPlayerHuanGong(properties) {
  8712. this.card = [];
  8713. if (properties)
  8714. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  8715. if (properties[keys[i]] != null)
  8716. this[keys[i]] = properties[keys[i]];
  8717. }
  8718. /**
  8719. * CGPlayerHuanGong playerId.
  8720. * @member {number|Long} playerId
  8721. * @memberof guandan.CGPlayerHuanGong
  8722. * @instance
  8723. */
  8724. CGPlayerHuanGong.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  8725. /**
  8726. * CGPlayerHuanGong card.
  8727. * @member {Array.<number>} card
  8728. * @memberof guandan.CGPlayerHuanGong
  8729. * @instance
  8730. */
  8731. CGPlayerHuanGong.prototype.card = $util.emptyArray;
  8732. /**
  8733. * Creates a new CGPlayerHuanGong instance using the specified properties.
  8734. * @function create
  8735. * @memberof guandan.CGPlayerHuanGong
  8736. * @static
  8737. * @param {guandan.ICGPlayerHuanGong=} [properties] Properties to set
  8738. * @returns {guandan.CGPlayerHuanGong} CGPlayerHuanGong instance
  8739. */
  8740. CGPlayerHuanGong.create = function create(properties) {
  8741. return new CGPlayerHuanGong(properties);
  8742. };
  8743. /**
  8744. * Encodes the specified CGPlayerHuanGong message. Does not implicitly {@link guandan.CGPlayerHuanGong.verify|verify} messages.
  8745. * @function encode
  8746. * @memberof guandan.CGPlayerHuanGong
  8747. * @static
  8748. * @param {guandan.ICGPlayerHuanGong} message CGPlayerHuanGong message or plain object to encode
  8749. * @param {$protobuf.Writer} [writer] Writer to encode to
  8750. * @returns {$protobuf.Writer} Writer
  8751. */
  8752. CGPlayerHuanGong.encode = function encode(message, writer) {
  8753. if (!writer)
  8754. writer = $Writer.create();
  8755. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
  8756. if (message.card != null && message.card.length)
  8757. for (var i = 0; i < message.card.length; ++i)
  8758. writer.uint32(/* id 2, wireType 0 =*/16).int32(message.card[i]);
  8759. return writer;
  8760. };
  8761. /**
  8762. * Encodes the specified CGPlayerHuanGong message, length delimited. Does not implicitly {@link guandan.CGPlayerHuanGong.verify|verify} messages.
  8763. * @function encodeDelimited
  8764. * @memberof guandan.CGPlayerHuanGong
  8765. * @static
  8766. * @param {guandan.ICGPlayerHuanGong} message CGPlayerHuanGong message or plain object to encode
  8767. * @param {$protobuf.Writer} [writer] Writer to encode to
  8768. * @returns {$protobuf.Writer} Writer
  8769. */
  8770. CGPlayerHuanGong.encodeDelimited = function encodeDelimited(message, writer) {
  8771. return this.encode(message, writer).ldelim();
  8772. };
  8773. /**
  8774. * Decodes a CGPlayerHuanGong message from the specified reader or buffer.
  8775. * @function decode
  8776. * @memberof guandan.CGPlayerHuanGong
  8777. * @static
  8778. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  8779. * @param {number} [length] Message length if known beforehand
  8780. * @returns {guandan.CGPlayerHuanGong} CGPlayerHuanGong
  8781. * @throws {Error} If the payload is not a reader or valid buffer
  8782. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  8783. */
  8784. CGPlayerHuanGong.decode = function decode(reader, length) {
  8785. if (!(reader instanceof $Reader))
  8786. reader = $Reader.create(reader);
  8787. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.CGPlayerHuanGong();
  8788. while (reader.pos < end) {
  8789. var tag = reader.uint32();
  8790. switch (tag >>> 3) {
  8791. case 1:
  8792. message.playerId = reader.int64();
  8793. break;
  8794. case 2:
  8795. if (!(message.card && message.card.length))
  8796. message.card = [];
  8797. if ((tag & 7) === 2) {
  8798. var end2 = reader.uint32() + reader.pos;
  8799. while (reader.pos < end2)
  8800. message.card.push(reader.int32());
  8801. } else
  8802. message.card.push(reader.int32());
  8803. break;
  8804. default:
  8805. reader.skipType(tag & 7);
  8806. break;
  8807. }
  8808. }
  8809. if (!message.hasOwnProperty("playerId"))
  8810. throw $util.ProtocolError("missing required 'playerId'", { instance: message });
  8811. return message;
  8812. };
  8813. /**
  8814. * Decodes a CGPlayerHuanGong message from the specified reader or buffer, length delimited.
  8815. * @function decodeDelimited
  8816. * @memberof guandan.CGPlayerHuanGong
  8817. * @static
  8818. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  8819. * @returns {guandan.CGPlayerHuanGong} CGPlayerHuanGong
  8820. * @throws {Error} If the payload is not a reader or valid buffer
  8821. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  8822. */
  8823. CGPlayerHuanGong.decodeDelimited = function decodeDelimited(reader) {
  8824. if (!(reader instanceof $Reader))
  8825. reader = new $Reader(reader);
  8826. return this.decode(reader, reader.uint32());
  8827. };
  8828. /**
  8829. * Verifies a CGPlayerHuanGong message.
  8830. * @function verify
  8831. * @memberof guandan.CGPlayerHuanGong
  8832. * @static
  8833. * @param {Object.<string,*>} message Plain object to verify
  8834. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  8835. */
  8836. CGPlayerHuanGong.verify = function verify(message) {
  8837. if (typeof message !== "object" || message === null)
  8838. return "object expected";
  8839. if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
  8840. return "playerId: integer|Long expected";
  8841. if (message.card != null && message.hasOwnProperty("card")) {
  8842. if (!Array.isArray(message.card))
  8843. return "card: array expected";
  8844. for (var i = 0; i < message.card.length; ++i)
  8845. if (!$util.isInteger(message.card[i]))
  8846. return "card: integer[] expected";
  8847. }
  8848. return null;
  8849. };
  8850. /**
  8851. * Creates a CGPlayerHuanGong message from a plain object. Also converts values to their respective internal types.
  8852. * @function fromObject
  8853. * @memberof guandan.CGPlayerHuanGong
  8854. * @static
  8855. * @param {Object.<string,*>} object Plain object
  8856. * @returns {guandan.CGPlayerHuanGong} CGPlayerHuanGong
  8857. */
  8858. CGPlayerHuanGong.fromObject = function fromObject(object) {
  8859. if (object instanceof $root.guandan.CGPlayerHuanGong)
  8860. return object;
  8861. var message = new $root.guandan.CGPlayerHuanGong();
  8862. if (object.playerId != null)
  8863. if ($util.Long)
  8864. (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
  8865. else if (typeof object.playerId === "string")
  8866. message.playerId = parseInt(object.playerId, 10);
  8867. else if (typeof object.playerId === "number")
  8868. message.playerId = object.playerId;
  8869. else if (typeof object.playerId === "object")
  8870. message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
  8871. if (object.card) {
  8872. if (!Array.isArray(object.card))
  8873. throw TypeError(".guandan.CGPlayerHuanGong.card: array expected");
  8874. message.card = [];
  8875. for (var i = 0; i < object.card.length; ++i)
  8876. message.card[i] = object.card[i] | 0;
  8877. }
  8878. return message;
  8879. };
  8880. /**
  8881. * Creates a plain object from a CGPlayerHuanGong message. Also converts values to other types if specified.
  8882. * @function toObject
  8883. * @memberof guandan.CGPlayerHuanGong
  8884. * @static
  8885. * @param {guandan.CGPlayerHuanGong} message CGPlayerHuanGong
  8886. * @param {$protobuf.IConversionOptions} [options] Conversion options
  8887. * @returns {Object.<string,*>} Plain object
  8888. */
  8889. CGPlayerHuanGong.toObject = function toObject(message, options) {
  8890. if (!options)
  8891. options = {};
  8892. var object = {};
  8893. if (options.arrays || options.defaults)
  8894. object.card = [];
  8895. if (options.defaults)
  8896. if ($util.Long) {
  8897. var long = new $util.Long(0, 0, false);
  8898. object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  8899. } else
  8900. object.playerId = options.longs === String ? "0" : 0;
  8901. if (message.playerId != null && message.hasOwnProperty("playerId"))
  8902. if (typeof message.playerId === "number")
  8903. object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
  8904. else
  8905. object.playerId = options.longs === String ? $util.Long.prototype.toString.call(message.playerId) : options.longs === Number ? new $util.LongBits(message.playerId.low >>> 0, message.playerId.high >>> 0).toNumber() : message.playerId;
  8906. if (message.card && message.card.length) {
  8907. object.card = [];
  8908. for (var j = 0; j < message.card.length; ++j)
  8909. object.card[j] = message.card[j];
  8910. }
  8911. return object;
  8912. };
  8913. /**
  8914. * Converts this CGPlayerHuanGong to JSON.
  8915. * @function toJSON
  8916. * @memberof guandan.CGPlayerHuanGong
  8917. * @instance
  8918. * @returns {Object.<string,*>} JSON object
  8919. */
  8920. CGPlayerHuanGong.prototype.toJSON = function toJSON() {
  8921. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  8922. };
  8923. return CGPlayerHuanGong;
  8924. })();
  8925. guandan.GCPlayerHuanGongBroadcast = (function() {
  8926. /**
  8927. * Properties of a GCPlayerHuanGongBroadcast.
  8928. * @memberof guandan
  8929. * @interface IGCPlayerHuanGongBroadcast
  8930. * @property {number|Long} huanGongPlayerId GCPlayerHuanGongBroadcast huanGongPlayerId
  8931. * @property {Array.<number>|null} [huanGongCard] GCPlayerHuanGongBroadcast huanGongCard
  8932. * @property {number|Long} jinGongPlayerId GCPlayerHuanGongBroadcast jinGongPlayerId
  8933. * @property {Array.<number>|null} [jinGongCard] GCPlayerHuanGongBroadcast jinGongCard
  8934. */
  8935. /**
  8936. * Constructs a new GCPlayerHuanGongBroadcast.
  8937. * @memberof guandan
  8938. * @classdesc Represents a GCPlayerHuanGongBroadcast.
  8939. * @implements IGCPlayerHuanGongBroadcast
  8940. * @constructor
  8941. * @param {guandan.IGCPlayerHuanGongBroadcast=} [properties] Properties to set
  8942. */
  8943. function GCPlayerHuanGongBroadcast(properties) {
  8944. this.huanGongCard = [];
  8945. this.jinGongCard = [];
  8946. if (properties)
  8947. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  8948. if (properties[keys[i]] != null)
  8949. this[keys[i]] = properties[keys[i]];
  8950. }
  8951. /**
  8952. * GCPlayerHuanGongBroadcast huanGongPlayerId.
  8953. * @member {number|Long} huanGongPlayerId
  8954. * @memberof guandan.GCPlayerHuanGongBroadcast
  8955. * @instance
  8956. */
  8957. GCPlayerHuanGongBroadcast.prototype.huanGongPlayerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  8958. /**
  8959. * GCPlayerHuanGongBroadcast huanGongCard.
  8960. * @member {Array.<number>} huanGongCard
  8961. * @memberof guandan.GCPlayerHuanGongBroadcast
  8962. * @instance
  8963. */
  8964. GCPlayerHuanGongBroadcast.prototype.huanGongCard = $util.emptyArray;
  8965. /**
  8966. * GCPlayerHuanGongBroadcast jinGongPlayerId.
  8967. * @member {number|Long} jinGongPlayerId
  8968. * @memberof guandan.GCPlayerHuanGongBroadcast
  8969. * @instance
  8970. */
  8971. GCPlayerHuanGongBroadcast.prototype.jinGongPlayerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  8972. /**
  8973. * GCPlayerHuanGongBroadcast jinGongCard.
  8974. * @member {Array.<number>} jinGongCard
  8975. * @memberof guandan.GCPlayerHuanGongBroadcast
  8976. * @instance
  8977. */
  8978. GCPlayerHuanGongBroadcast.prototype.jinGongCard = $util.emptyArray;
  8979. /**
  8980. * Creates a new GCPlayerHuanGongBroadcast instance using the specified properties.
  8981. * @function create
  8982. * @memberof guandan.GCPlayerHuanGongBroadcast
  8983. * @static
  8984. * @param {guandan.IGCPlayerHuanGongBroadcast=} [properties] Properties to set
  8985. * @returns {guandan.GCPlayerHuanGongBroadcast} GCPlayerHuanGongBroadcast instance
  8986. */
  8987. GCPlayerHuanGongBroadcast.create = function create(properties) {
  8988. return new GCPlayerHuanGongBroadcast(properties);
  8989. };
  8990. /**
  8991. * Encodes the specified GCPlayerHuanGongBroadcast message. Does not implicitly {@link guandan.GCPlayerHuanGongBroadcast.verify|verify} messages.
  8992. * @function encode
  8993. * @memberof guandan.GCPlayerHuanGongBroadcast
  8994. * @static
  8995. * @param {guandan.IGCPlayerHuanGongBroadcast} message GCPlayerHuanGongBroadcast message or plain object to encode
  8996. * @param {$protobuf.Writer} [writer] Writer to encode to
  8997. * @returns {$protobuf.Writer} Writer
  8998. */
  8999. GCPlayerHuanGongBroadcast.encode = function encode(message, writer) {
  9000. if (!writer)
  9001. writer = $Writer.create();
  9002. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.huanGongPlayerId);
  9003. if (message.huanGongCard != null && message.huanGongCard.length)
  9004. for (var i = 0; i < message.huanGongCard.length; ++i)
  9005. writer.uint32(/* id 2, wireType 0 =*/16).int32(message.huanGongCard[i]);
  9006. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.jinGongPlayerId);
  9007. if (message.jinGongCard != null && message.jinGongCard.length)
  9008. for (var i = 0; i < message.jinGongCard.length; ++i)
  9009. writer.uint32(/* id 4, wireType 0 =*/32).int32(message.jinGongCard[i]);
  9010. return writer;
  9011. };
  9012. /**
  9013. * Encodes the specified GCPlayerHuanGongBroadcast message, length delimited. Does not implicitly {@link guandan.GCPlayerHuanGongBroadcast.verify|verify} messages.
  9014. * @function encodeDelimited
  9015. * @memberof guandan.GCPlayerHuanGongBroadcast
  9016. * @static
  9017. * @param {guandan.IGCPlayerHuanGongBroadcast} message GCPlayerHuanGongBroadcast message or plain object to encode
  9018. * @param {$protobuf.Writer} [writer] Writer to encode to
  9019. * @returns {$protobuf.Writer} Writer
  9020. */
  9021. GCPlayerHuanGongBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
  9022. return this.encode(message, writer).ldelim();
  9023. };
  9024. /**
  9025. * Decodes a GCPlayerHuanGongBroadcast message from the specified reader or buffer.
  9026. * @function decode
  9027. * @memberof guandan.GCPlayerHuanGongBroadcast
  9028. * @static
  9029. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  9030. * @param {number} [length] Message length if known beforehand
  9031. * @returns {guandan.GCPlayerHuanGongBroadcast} GCPlayerHuanGongBroadcast
  9032. * @throws {Error} If the payload is not a reader or valid buffer
  9033. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  9034. */
  9035. GCPlayerHuanGongBroadcast.decode = function decode(reader, length) {
  9036. if (!(reader instanceof $Reader))
  9037. reader = $Reader.create(reader);
  9038. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCPlayerHuanGongBroadcast();
  9039. while (reader.pos < end) {
  9040. var tag = reader.uint32();
  9041. switch (tag >>> 3) {
  9042. case 1:
  9043. message.huanGongPlayerId = reader.int64();
  9044. break;
  9045. case 2:
  9046. if (!(message.huanGongCard && message.huanGongCard.length))
  9047. message.huanGongCard = [];
  9048. if ((tag & 7) === 2) {
  9049. var end2 = reader.uint32() + reader.pos;
  9050. while (reader.pos < end2)
  9051. message.huanGongCard.push(reader.int32());
  9052. } else
  9053. message.huanGongCard.push(reader.int32());
  9054. break;
  9055. case 3:
  9056. message.jinGongPlayerId = reader.int64();
  9057. break;
  9058. case 4:
  9059. if (!(message.jinGongCard && message.jinGongCard.length))
  9060. message.jinGongCard = [];
  9061. if ((tag & 7) === 2) {
  9062. var end2 = reader.uint32() + reader.pos;
  9063. while (reader.pos < end2)
  9064. message.jinGongCard.push(reader.int32());
  9065. } else
  9066. message.jinGongCard.push(reader.int32());
  9067. break;
  9068. default:
  9069. reader.skipType(tag & 7);
  9070. break;
  9071. }
  9072. }
  9073. if (!message.hasOwnProperty("huanGongPlayerId"))
  9074. throw $util.ProtocolError("missing required 'huanGongPlayerId'", { instance: message });
  9075. if (!message.hasOwnProperty("jinGongPlayerId"))
  9076. throw $util.ProtocolError("missing required 'jinGongPlayerId'", { instance: message });
  9077. return message;
  9078. };
  9079. /**
  9080. * Decodes a GCPlayerHuanGongBroadcast message from the specified reader or buffer, length delimited.
  9081. * @function decodeDelimited
  9082. * @memberof guandan.GCPlayerHuanGongBroadcast
  9083. * @static
  9084. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  9085. * @returns {guandan.GCPlayerHuanGongBroadcast} GCPlayerHuanGongBroadcast
  9086. * @throws {Error} If the payload is not a reader or valid buffer
  9087. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  9088. */
  9089. GCPlayerHuanGongBroadcast.decodeDelimited = function decodeDelimited(reader) {
  9090. if (!(reader instanceof $Reader))
  9091. reader = new $Reader(reader);
  9092. return this.decode(reader, reader.uint32());
  9093. };
  9094. /**
  9095. * Verifies a GCPlayerHuanGongBroadcast message.
  9096. * @function verify
  9097. * @memberof guandan.GCPlayerHuanGongBroadcast
  9098. * @static
  9099. * @param {Object.<string,*>} message Plain object to verify
  9100. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  9101. */
  9102. GCPlayerHuanGongBroadcast.verify = function verify(message) {
  9103. if (typeof message !== "object" || message === null)
  9104. return "object expected";
  9105. if (!$util.isInteger(message.huanGongPlayerId) && !(message.huanGongPlayerId && $util.isInteger(message.huanGongPlayerId.low) && $util.isInteger(message.huanGongPlayerId.high)))
  9106. return "huanGongPlayerId: integer|Long expected";
  9107. if (message.huanGongCard != null && message.hasOwnProperty("huanGongCard")) {
  9108. if (!Array.isArray(message.huanGongCard))
  9109. return "huanGongCard: array expected";
  9110. for (var i = 0; i < message.huanGongCard.length; ++i)
  9111. if (!$util.isInteger(message.huanGongCard[i]))
  9112. return "huanGongCard: integer[] expected";
  9113. }
  9114. if (!$util.isInteger(message.jinGongPlayerId) && !(message.jinGongPlayerId && $util.isInteger(message.jinGongPlayerId.low) && $util.isInteger(message.jinGongPlayerId.high)))
  9115. return "jinGongPlayerId: integer|Long expected";
  9116. if (message.jinGongCard != null && message.hasOwnProperty("jinGongCard")) {
  9117. if (!Array.isArray(message.jinGongCard))
  9118. return "jinGongCard: array expected";
  9119. for (var i = 0; i < message.jinGongCard.length; ++i)
  9120. if (!$util.isInteger(message.jinGongCard[i]))
  9121. return "jinGongCard: integer[] expected";
  9122. }
  9123. return null;
  9124. };
  9125. /**
  9126. * Creates a GCPlayerHuanGongBroadcast message from a plain object. Also converts values to their respective internal types.
  9127. * @function fromObject
  9128. * @memberof guandan.GCPlayerHuanGongBroadcast
  9129. * @static
  9130. * @param {Object.<string,*>} object Plain object
  9131. * @returns {guandan.GCPlayerHuanGongBroadcast} GCPlayerHuanGongBroadcast
  9132. */
  9133. GCPlayerHuanGongBroadcast.fromObject = function fromObject(object) {
  9134. if (object instanceof $root.guandan.GCPlayerHuanGongBroadcast)
  9135. return object;
  9136. var message = new $root.guandan.GCPlayerHuanGongBroadcast();
  9137. if (object.huanGongPlayerId != null)
  9138. if ($util.Long)
  9139. (message.huanGongPlayerId = $util.Long.fromValue(object.huanGongPlayerId)).unsigned = false;
  9140. else if (typeof object.huanGongPlayerId === "string")
  9141. message.huanGongPlayerId = parseInt(object.huanGongPlayerId, 10);
  9142. else if (typeof object.huanGongPlayerId === "number")
  9143. message.huanGongPlayerId = object.huanGongPlayerId;
  9144. else if (typeof object.huanGongPlayerId === "object")
  9145. message.huanGongPlayerId = new $util.LongBits(object.huanGongPlayerId.low >>> 0, object.huanGongPlayerId.high >>> 0).toNumber();
  9146. if (object.huanGongCard) {
  9147. if (!Array.isArray(object.huanGongCard))
  9148. throw TypeError(".guandan.GCPlayerHuanGongBroadcast.huanGongCard: array expected");
  9149. message.huanGongCard = [];
  9150. for (var i = 0; i < object.huanGongCard.length; ++i)
  9151. message.huanGongCard[i] = object.huanGongCard[i] | 0;
  9152. }
  9153. if (object.jinGongPlayerId != null)
  9154. if ($util.Long)
  9155. (message.jinGongPlayerId = $util.Long.fromValue(object.jinGongPlayerId)).unsigned = false;
  9156. else if (typeof object.jinGongPlayerId === "string")
  9157. message.jinGongPlayerId = parseInt(object.jinGongPlayerId, 10);
  9158. else if (typeof object.jinGongPlayerId === "number")
  9159. message.jinGongPlayerId = object.jinGongPlayerId;
  9160. else if (typeof object.jinGongPlayerId === "object")
  9161. message.jinGongPlayerId = new $util.LongBits(object.jinGongPlayerId.low >>> 0, object.jinGongPlayerId.high >>> 0).toNumber();
  9162. if (object.jinGongCard) {
  9163. if (!Array.isArray(object.jinGongCard))
  9164. throw TypeError(".guandan.GCPlayerHuanGongBroadcast.jinGongCard: array expected");
  9165. message.jinGongCard = [];
  9166. for (var i = 0; i < object.jinGongCard.length; ++i)
  9167. message.jinGongCard[i] = object.jinGongCard[i] | 0;
  9168. }
  9169. return message;
  9170. };
  9171. /**
  9172. * Creates a plain object from a GCPlayerHuanGongBroadcast message. Also converts values to other types if specified.
  9173. * @function toObject
  9174. * @memberof guandan.GCPlayerHuanGongBroadcast
  9175. * @static
  9176. * @param {guandan.GCPlayerHuanGongBroadcast} message GCPlayerHuanGongBroadcast
  9177. * @param {$protobuf.IConversionOptions} [options] Conversion options
  9178. * @returns {Object.<string,*>} Plain object
  9179. */
  9180. GCPlayerHuanGongBroadcast.toObject = function toObject(message, options) {
  9181. if (!options)
  9182. options = {};
  9183. var object = {};
  9184. if (options.arrays || options.defaults) {
  9185. object.huanGongCard = [];
  9186. object.jinGongCard = [];
  9187. }
  9188. if (options.defaults) {
  9189. if ($util.Long) {
  9190. var long = new $util.Long(0, 0, false);
  9191. object.huanGongPlayerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  9192. } else
  9193. object.huanGongPlayerId = options.longs === String ? "0" : 0;
  9194. if ($util.Long) {
  9195. var long = new $util.Long(0, 0, false);
  9196. object.jinGongPlayerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  9197. } else
  9198. object.jinGongPlayerId = options.longs === String ? "0" : 0;
  9199. }
  9200. if (message.huanGongPlayerId != null && message.hasOwnProperty("huanGongPlayerId"))
  9201. if (typeof message.huanGongPlayerId === "number")
  9202. object.huanGongPlayerId = options.longs === String ? String(message.huanGongPlayerId) : message.huanGongPlayerId;
  9203. else
  9204. object.huanGongPlayerId = options.longs === String ? $util.Long.prototype.toString.call(message.huanGongPlayerId) : options.longs === Number ? new $util.LongBits(message.huanGongPlayerId.low >>> 0, message.huanGongPlayerId.high >>> 0).toNumber() : message.huanGongPlayerId;
  9205. if (message.huanGongCard && message.huanGongCard.length) {
  9206. object.huanGongCard = [];
  9207. for (var j = 0; j < message.huanGongCard.length; ++j)
  9208. object.huanGongCard[j] = message.huanGongCard[j];
  9209. }
  9210. if (message.jinGongPlayerId != null && message.hasOwnProperty("jinGongPlayerId"))
  9211. if (typeof message.jinGongPlayerId === "number")
  9212. object.jinGongPlayerId = options.longs === String ? String(message.jinGongPlayerId) : message.jinGongPlayerId;
  9213. else
  9214. object.jinGongPlayerId = options.longs === String ? $util.Long.prototype.toString.call(message.jinGongPlayerId) : options.longs === Number ? new $util.LongBits(message.jinGongPlayerId.low >>> 0, message.jinGongPlayerId.high >>> 0).toNumber() : message.jinGongPlayerId;
  9215. if (message.jinGongCard && message.jinGongCard.length) {
  9216. object.jinGongCard = [];
  9217. for (var j = 0; j < message.jinGongCard.length; ++j)
  9218. object.jinGongCard[j] = message.jinGongCard[j];
  9219. }
  9220. return object;
  9221. };
  9222. /**
  9223. * Converts this GCPlayerHuanGongBroadcast to JSON.
  9224. * @function toJSON
  9225. * @memberof guandan.GCPlayerHuanGongBroadcast
  9226. * @instance
  9227. * @returns {Object.<string,*>} JSON object
  9228. */
  9229. GCPlayerHuanGongBroadcast.prototype.toJSON = function toJSON() {
  9230. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  9231. };
  9232. return GCPlayerHuanGongBroadcast;
  9233. })();
  9234. guandan.GCPlayerKangGongInfo = (function() {
  9235. /**
  9236. * Properties of a GCPlayerKangGongInfo.
  9237. * @memberof guandan
  9238. * @interface IGCPlayerKangGongInfo
  9239. * @property {number|Long} playerId GCPlayerKangGongInfo playerId
  9240. * @property {Array.<number>|null} [card] GCPlayerKangGongInfo card
  9241. */
  9242. /**
  9243. * Constructs a new GCPlayerKangGongInfo.
  9244. * @memberof guandan
  9245. * @classdesc Represents a GCPlayerKangGongInfo.
  9246. * @implements IGCPlayerKangGongInfo
  9247. * @constructor
  9248. * @param {guandan.IGCPlayerKangGongInfo=} [properties] Properties to set
  9249. */
  9250. function GCPlayerKangGongInfo(properties) {
  9251. this.card = [];
  9252. if (properties)
  9253. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  9254. if (properties[keys[i]] != null)
  9255. this[keys[i]] = properties[keys[i]];
  9256. }
  9257. /**
  9258. * GCPlayerKangGongInfo playerId.
  9259. * @member {number|Long} playerId
  9260. * @memberof guandan.GCPlayerKangGongInfo
  9261. * @instance
  9262. */
  9263. GCPlayerKangGongInfo.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  9264. /**
  9265. * GCPlayerKangGongInfo card.
  9266. * @member {Array.<number>} card
  9267. * @memberof guandan.GCPlayerKangGongInfo
  9268. * @instance
  9269. */
  9270. GCPlayerKangGongInfo.prototype.card = $util.emptyArray;
  9271. /**
  9272. * Creates a new GCPlayerKangGongInfo instance using the specified properties.
  9273. * @function create
  9274. * @memberof guandan.GCPlayerKangGongInfo
  9275. * @static
  9276. * @param {guandan.IGCPlayerKangGongInfo=} [properties] Properties to set
  9277. * @returns {guandan.GCPlayerKangGongInfo} GCPlayerKangGongInfo instance
  9278. */
  9279. GCPlayerKangGongInfo.create = function create(properties) {
  9280. return new GCPlayerKangGongInfo(properties);
  9281. };
  9282. /**
  9283. * Encodes the specified GCPlayerKangGongInfo message. Does not implicitly {@link guandan.GCPlayerKangGongInfo.verify|verify} messages.
  9284. * @function encode
  9285. * @memberof guandan.GCPlayerKangGongInfo
  9286. * @static
  9287. * @param {guandan.IGCPlayerKangGongInfo} message GCPlayerKangGongInfo message or plain object to encode
  9288. * @param {$protobuf.Writer} [writer] Writer to encode to
  9289. * @returns {$protobuf.Writer} Writer
  9290. */
  9291. GCPlayerKangGongInfo.encode = function encode(message, writer) {
  9292. if (!writer)
  9293. writer = $Writer.create();
  9294. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
  9295. if (message.card != null && message.card.length)
  9296. for (var i = 0; i < message.card.length; ++i)
  9297. writer.uint32(/* id 2, wireType 0 =*/16).int32(message.card[i]);
  9298. return writer;
  9299. };
  9300. /**
  9301. * Encodes the specified GCPlayerKangGongInfo message, length delimited. Does not implicitly {@link guandan.GCPlayerKangGongInfo.verify|verify} messages.
  9302. * @function encodeDelimited
  9303. * @memberof guandan.GCPlayerKangGongInfo
  9304. * @static
  9305. * @param {guandan.IGCPlayerKangGongInfo} message GCPlayerKangGongInfo message or plain object to encode
  9306. * @param {$protobuf.Writer} [writer] Writer to encode to
  9307. * @returns {$protobuf.Writer} Writer
  9308. */
  9309. GCPlayerKangGongInfo.encodeDelimited = function encodeDelimited(message, writer) {
  9310. return this.encode(message, writer).ldelim();
  9311. };
  9312. /**
  9313. * Decodes a GCPlayerKangGongInfo message from the specified reader or buffer.
  9314. * @function decode
  9315. * @memberof guandan.GCPlayerKangGongInfo
  9316. * @static
  9317. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  9318. * @param {number} [length] Message length if known beforehand
  9319. * @returns {guandan.GCPlayerKangGongInfo} GCPlayerKangGongInfo
  9320. * @throws {Error} If the payload is not a reader or valid buffer
  9321. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  9322. */
  9323. GCPlayerKangGongInfo.decode = function decode(reader, length) {
  9324. if (!(reader instanceof $Reader))
  9325. reader = $Reader.create(reader);
  9326. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCPlayerKangGongInfo();
  9327. while (reader.pos < end) {
  9328. var tag = reader.uint32();
  9329. switch (tag >>> 3) {
  9330. case 1:
  9331. message.playerId = reader.int64();
  9332. break;
  9333. case 2:
  9334. if (!(message.card && message.card.length))
  9335. message.card = [];
  9336. if ((tag & 7) === 2) {
  9337. var end2 = reader.uint32() + reader.pos;
  9338. while (reader.pos < end2)
  9339. message.card.push(reader.int32());
  9340. } else
  9341. message.card.push(reader.int32());
  9342. break;
  9343. default:
  9344. reader.skipType(tag & 7);
  9345. break;
  9346. }
  9347. }
  9348. if (!message.hasOwnProperty("playerId"))
  9349. throw $util.ProtocolError("missing required 'playerId'", { instance: message });
  9350. return message;
  9351. };
  9352. /**
  9353. * Decodes a GCPlayerKangGongInfo message from the specified reader or buffer, length delimited.
  9354. * @function decodeDelimited
  9355. * @memberof guandan.GCPlayerKangGongInfo
  9356. * @static
  9357. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  9358. * @returns {guandan.GCPlayerKangGongInfo} GCPlayerKangGongInfo
  9359. * @throws {Error} If the payload is not a reader or valid buffer
  9360. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  9361. */
  9362. GCPlayerKangGongInfo.decodeDelimited = function decodeDelimited(reader) {
  9363. if (!(reader instanceof $Reader))
  9364. reader = new $Reader(reader);
  9365. return this.decode(reader, reader.uint32());
  9366. };
  9367. /**
  9368. * Verifies a GCPlayerKangGongInfo message.
  9369. * @function verify
  9370. * @memberof guandan.GCPlayerKangGongInfo
  9371. * @static
  9372. * @param {Object.<string,*>} message Plain object to verify
  9373. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  9374. */
  9375. GCPlayerKangGongInfo.verify = function verify(message) {
  9376. if (typeof message !== "object" || message === null)
  9377. return "object expected";
  9378. if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
  9379. return "playerId: integer|Long expected";
  9380. if (message.card != null && message.hasOwnProperty("card")) {
  9381. if (!Array.isArray(message.card))
  9382. return "card: array expected";
  9383. for (var i = 0; i < message.card.length; ++i)
  9384. if (!$util.isInteger(message.card[i]))
  9385. return "card: integer[] expected";
  9386. }
  9387. return null;
  9388. };
  9389. /**
  9390. * Creates a GCPlayerKangGongInfo message from a plain object. Also converts values to their respective internal types.
  9391. * @function fromObject
  9392. * @memberof guandan.GCPlayerKangGongInfo
  9393. * @static
  9394. * @param {Object.<string,*>} object Plain object
  9395. * @returns {guandan.GCPlayerKangGongInfo} GCPlayerKangGongInfo
  9396. */
  9397. GCPlayerKangGongInfo.fromObject = function fromObject(object) {
  9398. if (object instanceof $root.guandan.GCPlayerKangGongInfo)
  9399. return object;
  9400. var message = new $root.guandan.GCPlayerKangGongInfo();
  9401. if (object.playerId != null)
  9402. if ($util.Long)
  9403. (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
  9404. else if (typeof object.playerId === "string")
  9405. message.playerId = parseInt(object.playerId, 10);
  9406. else if (typeof object.playerId === "number")
  9407. message.playerId = object.playerId;
  9408. else if (typeof object.playerId === "object")
  9409. message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
  9410. if (object.card) {
  9411. if (!Array.isArray(object.card))
  9412. throw TypeError(".guandan.GCPlayerKangGongInfo.card: array expected");
  9413. message.card = [];
  9414. for (var i = 0; i < object.card.length; ++i)
  9415. message.card[i] = object.card[i] | 0;
  9416. }
  9417. return message;
  9418. };
  9419. /**
  9420. * Creates a plain object from a GCPlayerKangGongInfo message. Also converts values to other types if specified.
  9421. * @function toObject
  9422. * @memberof guandan.GCPlayerKangGongInfo
  9423. * @static
  9424. * @param {guandan.GCPlayerKangGongInfo} message GCPlayerKangGongInfo
  9425. * @param {$protobuf.IConversionOptions} [options] Conversion options
  9426. * @returns {Object.<string,*>} Plain object
  9427. */
  9428. GCPlayerKangGongInfo.toObject = function toObject(message, options) {
  9429. if (!options)
  9430. options = {};
  9431. var object = {};
  9432. if (options.arrays || options.defaults)
  9433. object.card = [];
  9434. if (options.defaults)
  9435. if ($util.Long) {
  9436. var long = new $util.Long(0, 0, false);
  9437. object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  9438. } else
  9439. object.playerId = options.longs === String ? "0" : 0;
  9440. if (message.playerId != null && message.hasOwnProperty("playerId"))
  9441. if (typeof message.playerId === "number")
  9442. object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
  9443. else
  9444. object.playerId = options.longs === String ? $util.Long.prototype.toString.call(message.playerId) : options.longs === Number ? new $util.LongBits(message.playerId.low >>> 0, message.playerId.high >>> 0).toNumber() : message.playerId;
  9445. if (message.card && message.card.length) {
  9446. object.card = [];
  9447. for (var j = 0; j < message.card.length; ++j)
  9448. object.card[j] = message.card[j];
  9449. }
  9450. return object;
  9451. };
  9452. /**
  9453. * Converts this GCPlayerKangGongInfo to JSON.
  9454. * @function toJSON
  9455. * @memberof guandan.GCPlayerKangGongInfo
  9456. * @instance
  9457. * @returns {Object.<string,*>} JSON object
  9458. */
  9459. GCPlayerKangGongInfo.prototype.toJSON = function toJSON() {
  9460. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  9461. };
  9462. return GCPlayerKangGongInfo;
  9463. })();
  9464. guandan.GCPlayerKangGongBroadcast = (function() {
  9465. /**
  9466. * Properties of a GCPlayerKangGongBroadcast.
  9467. * @memberof guandan
  9468. * @interface IGCPlayerKangGongBroadcast
  9469. * @property {Array.<guandan.IGCPlayerKangGongInfo>|null} [gcPlayerKangGongInfo] GCPlayerKangGongBroadcast gcPlayerKangGongInfo
  9470. */
  9471. /**
  9472. * Constructs a new GCPlayerKangGongBroadcast.
  9473. * @memberof guandan
  9474. * @classdesc Represents a GCPlayerKangGongBroadcast.
  9475. * @implements IGCPlayerKangGongBroadcast
  9476. * @constructor
  9477. * @param {guandan.IGCPlayerKangGongBroadcast=} [properties] Properties to set
  9478. */
  9479. function GCPlayerKangGongBroadcast(properties) {
  9480. this.gcPlayerKangGongInfo = [];
  9481. if (properties)
  9482. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  9483. if (properties[keys[i]] != null)
  9484. this[keys[i]] = properties[keys[i]];
  9485. }
  9486. /**
  9487. * GCPlayerKangGongBroadcast gcPlayerKangGongInfo.
  9488. * @member {Array.<guandan.IGCPlayerKangGongInfo>} gcPlayerKangGongInfo
  9489. * @memberof guandan.GCPlayerKangGongBroadcast
  9490. * @instance
  9491. */
  9492. GCPlayerKangGongBroadcast.prototype.gcPlayerKangGongInfo = $util.emptyArray;
  9493. /**
  9494. * Creates a new GCPlayerKangGongBroadcast instance using the specified properties.
  9495. * @function create
  9496. * @memberof guandan.GCPlayerKangGongBroadcast
  9497. * @static
  9498. * @param {guandan.IGCPlayerKangGongBroadcast=} [properties] Properties to set
  9499. * @returns {guandan.GCPlayerKangGongBroadcast} GCPlayerKangGongBroadcast instance
  9500. */
  9501. GCPlayerKangGongBroadcast.create = function create(properties) {
  9502. return new GCPlayerKangGongBroadcast(properties);
  9503. };
  9504. /**
  9505. * Encodes the specified GCPlayerKangGongBroadcast message. Does not implicitly {@link guandan.GCPlayerKangGongBroadcast.verify|verify} messages.
  9506. * @function encode
  9507. * @memberof guandan.GCPlayerKangGongBroadcast
  9508. * @static
  9509. * @param {guandan.IGCPlayerKangGongBroadcast} message GCPlayerKangGongBroadcast message or plain object to encode
  9510. * @param {$protobuf.Writer} [writer] Writer to encode to
  9511. * @returns {$protobuf.Writer} Writer
  9512. */
  9513. GCPlayerKangGongBroadcast.encode = function encode(message, writer) {
  9514. if (!writer)
  9515. writer = $Writer.create();
  9516. if (message.gcPlayerKangGongInfo != null && message.gcPlayerKangGongInfo.length)
  9517. for (var i = 0; i < message.gcPlayerKangGongInfo.length; ++i)
  9518. $root.guandan.GCPlayerKangGongInfo.encode(message.gcPlayerKangGongInfo[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
  9519. return writer;
  9520. };
  9521. /**
  9522. * Encodes the specified GCPlayerKangGongBroadcast message, length delimited. Does not implicitly {@link guandan.GCPlayerKangGongBroadcast.verify|verify} messages.
  9523. * @function encodeDelimited
  9524. * @memberof guandan.GCPlayerKangGongBroadcast
  9525. * @static
  9526. * @param {guandan.IGCPlayerKangGongBroadcast} message GCPlayerKangGongBroadcast message or plain object to encode
  9527. * @param {$protobuf.Writer} [writer] Writer to encode to
  9528. * @returns {$protobuf.Writer} Writer
  9529. */
  9530. GCPlayerKangGongBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
  9531. return this.encode(message, writer).ldelim();
  9532. };
  9533. /**
  9534. * Decodes a GCPlayerKangGongBroadcast message from the specified reader or buffer.
  9535. * @function decode
  9536. * @memberof guandan.GCPlayerKangGongBroadcast
  9537. * @static
  9538. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  9539. * @param {number} [length] Message length if known beforehand
  9540. * @returns {guandan.GCPlayerKangGongBroadcast} GCPlayerKangGongBroadcast
  9541. * @throws {Error} If the payload is not a reader or valid buffer
  9542. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  9543. */
  9544. GCPlayerKangGongBroadcast.decode = function decode(reader, length) {
  9545. if (!(reader instanceof $Reader))
  9546. reader = $Reader.create(reader);
  9547. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCPlayerKangGongBroadcast();
  9548. while (reader.pos < end) {
  9549. var tag = reader.uint32();
  9550. switch (tag >>> 3) {
  9551. case 1:
  9552. if (!(message.gcPlayerKangGongInfo && message.gcPlayerKangGongInfo.length))
  9553. message.gcPlayerKangGongInfo = [];
  9554. message.gcPlayerKangGongInfo.push($root.guandan.GCPlayerKangGongInfo.decode(reader, reader.uint32()));
  9555. break;
  9556. default:
  9557. reader.skipType(tag & 7);
  9558. break;
  9559. }
  9560. }
  9561. return message;
  9562. };
  9563. /**
  9564. * Decodes a GCPlayerKangGongBroadcast message from the specified reader or buffer, length delimited.
  9565. * @function decodeDelimited
  9566. * @memberof guandan.GCPlayerKangGongBroadcast
  9567. * @static
  9568. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  9569. * @returns {guandan.GCPlayerKangGongBroadcast} GCPlayerKangGongBroadcast
  9570. * @throws {Error} If the payload is not a reader or valid buffer
  9571. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  9572. */
  9573. GCPlayerKangGongBroadcast.decodeDelimited = function decodeDelimited(reader) {
  9574. if (!(reader instanceof $Reader))
  9575. reader = new $Reader(reader);
  9576. return this.decode(reader, reader.uint32());
  9577. };
  9578. /**
  9579. * Verifies a GCPlayerKangGongBroadcast message.
  9580. * @function verify
  9581. * @memberof guandan.GCPlayerKangGongBroadcast
  9582. * @static
  9583. * @param {Object.<string,*>} message Plain object to verify
  9584. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  9585. */
  9586. GCPlayerKangGongBroadcast.verify = function verify(message) {
  9587. if (typeof message !== "object" || message === null)
  9588. return "object expected";
  9589. if (message.gcPlayerKangGongInfo != null && message.hasOwnProperty("gcPlayerKangGongInfo")) {
  9590. if (!Array.isArray(message.gcPlayerKangGongInfo))
  9591. return "gcPlayerKangGongInfo: array expected";
  9592. for (var i = 0; i < message.gcPlayerKangGongInfo.length; ++i) {
  9593. var error = $root.guandan.GCPlayerKangGongInfo.verify(message.gcPlayerKangGongInfo[i]);
  9594. if (error)
  9595. return "gcPlayerKangGongInfo." + error;
  9596. }
  9597. }
  9598. return null;
  9599. };
  9600. /**
  9601. * Creates a GCPlayerKangGongBroadcast message from a plain object. Also converts values to their respective internal types.
  9602. * @function fromObject
  9603. * @memberof guandan.GCPlayerKangGongBroadcast
  9604. * @static
  9605. * @param {Object.<string,*>} object Plain object
  9606. * @returns {guandan.GCPlayerKangGongBroadcast} GCPlayerKangGongBroadcast
  9607. */
  9608. GCPlayerKangGongBroadcast.fromObject = function fromObject(object) {
  9609. if (object instanceof $root.guandan.GCPlayerKangGongBroadcast)
  9610. return object;
  9611. var message = new $root.guandan.GCPlayerKangGongBroadcast();
  9612. if (object.gcPlayerKangGongInfo) {
  9613. if (!Array.isArray(object.gcPlayerKangGongInfo))
  9614. throw TypeError(".guandan.GCPlayerKangGongBroadcast.gcPlayerKangGongInfo: array expected");
  9615. message.gcPlayerKangGongInfo = [];
  9616. for (var i = 0; i < object.gcPlayerKangGongInfo.length; ++i) {
  9617. if (typeof object.gcPlayerKangGongInfo[i] !== "object")
  9618. throw TypeError(".guandan.GCPlayerKangGongBroadcast.gcPlayerKangGongInfo: object expected");
  9619. message.gcPlayerKangGongInfo[i] = $root.guandan.GCPlayerKangGongInfo.fromObject(object.gcPlayerKangGongInfo[i]);
  9620. }
  9621. }
  9622. return message;
  9623. };
  9624. /**
  9625. * Creates a plain object from a GCPlayerKangGongBroadcast message. Also converts values to other types if specified.
  9626. * @function toObject
  9627. * @memberof guandan.GCPlayerKangGongBroadcast
  9628. * @static
  9629. * @param {guandan.GCPlayerKangGongBroadcast} message GCPlayerKangGongBroadcast
  9630. * @param {$protobuf.IConversionOptions} [options] Conversion options
  9631. * @returns {Object.<string,*>} Plain object
  9632. */
  9633. GCPlayerKangGongBroadcast.toObject = function toObject(message, options) {
  9634. if (!options)
  9635. options = {};
  9636. var object = {};
  9637. if (options.arrays || options.defaults)
  9638. object.gcPlayerKangGongInfo = [];
  9639. if (message.gcPlayerKangGongInfo && message.gcPlayerKangGongInfo.length) {
  9640. object.gcPlayerKangGongInfo = [];
  9641. for (var j = 0; j < message.gcPlayerKangGongInfo.length; ++j)
  9642. object.gcPlayerKangGongInfo[j] = $root.guandan.GCPlayerKangGongInfo.toObject(message.gcPlayerKangGongInfo[j], options);
  9643. }
  9644. return object;
  9645. };
  9646. /**
  9647. * Converts this GCPlayerKangGongBroadcast to JSON.
  9648. * @function toJSON
  9649. * @memberof guandan.GCPlayerKangGongBroadcast
  9650. * @instance
  9651. * @returns {Object.<string,*>} JSON object
  9652. */
  9653. GCPlayerKangGongBroadcast.prototype.toJSON = function toJSON() {
  9654. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  9655. };
  9656. return GCPlayerKangGongBroadcast;
  9657. })();
  9658. guandan.GCWaitPlayerJinGongBroadcast = (function() {
  9659. /**
  9660. * Properties of a GCWaitPlayerJinGongBroadcast.
  9661. * @memberof guandan
  9662. * @interface IGCWaitPlayerJinGongBroadcast
  9663. * @property {Array.<number|Long>|null} [playerId] GCWaitPlayerJinGongBroadcast playerId
  9664. */
  9665. /**
  9666. * Constructs a new GCWaitPlayerJinGongBroadcast.
  9667. * @memberof guandan
  9668. * @classdesc Represents a GCWaitPlayerJinGongBroadcast.
  9669. * @implements IGCWaitPlayerJinGongBroadcast
  9670. * @constructor
  9671. * @param {guandan.IGCWaitPlayerJinGongBroadcast=} [properties] Properties to set
  9672. */
  9673. function GCWaitPlayerJinGongBroadcast(properties) {
  9674. this.playerId = [];
  9675. if (properties)
  9676. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  9677. if (properties[keys[i]] != null)
  9678. this[keys[i]] = properties[keys[i]];
  9679. }
  9680. /**
  9681. * GCWaitPlayerJinGongBroadcast playerId.
  9682. * @member {Array.<number|Long>} playerId
  9683. * @memberof guandan.GCWaitPlayerJinGongBroadcast
  9684. * @instance
  9685. */
  9686. GCWaitPlayerJinGongBroadcast.prototype.playerId = $util.emptyArray;
  9687. /**
  9688. * Creates a new GCWaitPlayerJinGongBroadcast instance using the specified properties.
  9689. * @function create
  9690. * @memberof guandan.GCWaitPlayerJinGongBroadcast
  9691. * @static
  9692. * @param {guandan.IGCWaitPlayerJinGongBroadcast=} [properties] Properties to set
  9693. * @returns {guandan.GCWaitPlayerJinGongBroadcast} GCWaitPlayerJinGongBroadcast instance
  9694. */
  9695. GCWaitPlayerJinGongBroadcast.create = function create(properties) {
  9696. return new GCWaitPlayerJinGongBroadcast(properties);
  9697. };
  9698. /**
  9699. * Encodes the specified GCWaitPlayerJinGongBroadcast message. Does not implicitly {@link guandan.GCWaitPlayerJinGongBroadcast.verify|verify} messages.
  9700. * @function encode
  9701. * @memberof guandan.GCWaitPlayerJinGongBroadcast
  9702. * @static
  9703. * @param {guandan.IGCWaitPlayerJinGongBroadcast} message GCWaitPlayerJinGongBroadcast message or plain object to encode
  9704. * @param {$protobuf.Writer} [writer] Writer to encode to
  9705. * @returns {$protobuf.Writer} Writer
  9706. */
  9707. GCWaitPlayerJinGongBroadcast.encode = function encode(message, writer) {
  9708. if (!writer)
  9709. writer = $Writer.create();
  9710. if (message.playerId != null && message.playerId.length)
  9711. for (var i = 0; i < message.playerId.length; ++i)
  9712. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId[i]);
  9713. return writer;
  9714. };
  9715. /**
  9716. * Encodes the specified GCWaitPlayerJinGongBroadcast message, length delimited. Does not implicitly {@link guandan.GCWaitPlayerJinGongBroadcast.verify|verify} messages.
  9717. * @function encodeDelimited
  9718. * @memberof guandan.GCWaitPlayerJinGongBroadcast
  9719. * @static
  9720. * @param {guandan.IGCWaitPlayerJinGongBroadcast} message GCWaitPlayerJinGongBroadcast message or plain object to encode
  9721. * @param {$protobuf.Writer} [writer] Writer to encode to
  9722. * @returns {$protobuf.Writer} Writer
  9723. */
  9724. GCWaitPlayerJinGongBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
  9725. return this.encode(message, writer).ldelim();
  9726. };
  9727. /**
  9728. * Decodes a GCWaitPlayerJinGongBroadcast message from the specified reader or buffer.
  9729. * @function decode
  9730. * @memberof guandan.GCWaitPlayerJinGongBroadcast
  9731. * @static
  9732. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  9733. * @param {number} [length] Message length if known beforehand
  9734. * @returns {guandan.GCWaitPlayerJinGongBroadcast} GCWaitPlayerJinGongBroadcast
  9735. * @throws {Error} If the payload is not a reader or valid buffer
  9736. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  9737. */
  9738. GCWaitPlayerJinGongBroadcast.decode = function decode(reader, length) {
  9739. if (!(reader instanceof $Reader))
  9740. reader = $Reader.create(reader);
  9741. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCWaitPlayerJinGongBroadcast();
  9742. while (reader.pos < end) {
  9743. var tag = reader.uint32();
  9744. switch (tag >>> 3) {
  9745. case 1:
  9746. if (!(message.playerId && message.playerId.length))
  9747. message.playerId = [];
  9748. if ((tag & 7) === 2) {
  9749. var end2 = reader.uint32() + reader.pos;
  9750. while (reader.pos < end2)
  9751. message.playerId.push(reader.int64());
  9752. } else
  9753. message.playerId.push(reader.int64());
  9754. break;
  9755. default:
  9756. reader.skipType(tag & 7);
  9757. break;
  9758. }
  9759. }
  9760. return message;
  9761. };
  9762. /**
  9763. * Decodes a GCWaitPlayerJinGongBroadcast message from the specified reader or buffer, length delimited.
  9764. * @function decodeDelimited
  9765. * @memberof guandan.GCWaitPlayerJinGongBroadcast
  9766. * @static
  9767. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  9768. * @returns {guandan.GCWaitPlayerJinGongBroadcast} GCWaitPlayerJinGongBroadcast
  9769. * @throws {Error} If the payload is not a reader or valid buffer
  9770. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  9771. */
  9772. GCWaitPlayerJinGongBroadcast.decodeDelimited = function decodeDelimited(reader) {
  9773. if (!(reader instanceof $Reader))
  9774. reader = new $Reader(reader);
  9775. return this.decode(reader, reader.uint32());
  9776. };
  9777. /**
  9778. * Verifies a GCWaitPlayerJinGongBroadcast message.
  9779. * @function verify
  9780. * @memberof guandan.GCWaitPlayerJinGongBroadcast
  9781. * @static
  9782. * @param {Object.<string,*>} message Plain object to verify
  9783. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  9784. */
  9785. GCWaitPlayerJinGongBroadcast.verify = function verify(message) {
  9786. if (typeof message !== "object" || message === null)
  9787. return "object expected";
  9788. if (message.playerId != null && message.hasOwnProperty("playerId")) {
  9789. if (!Array.isArray(message.playerId))
  9790. return "playerId: array expected";
  9791. for (var i = 0; i < message.playerId.length; ++i)
  9792. if (!$util.isInteger(message.playerId[i]) && !(message.playerId[i] && $util.isInteger(message.playerId[i].low) && $util.isInteger(message.playerId[i].high)))
  9793. return "playerId: integer|Long[] expected";
  9794. }
  9795. return null;
  9796. };
  9797. /**
  9798. * Creates a GCWaitPlayerJinGongBroadcast message from a plain object. Also converts values to their respective internal types.
  9799. * @function fromObject
  9800. * @memberof guandan.GCWaitPlayerJinGongBroadcast
  9801. * @static
  9802. * @param {Object.<string,*>} object Plain object
  9803. * @returns {guandan.GCWaitPlayerJinGongBroadcast} GCWaitPlayerJinGongBroadcast
  9804. */
  9805. GCWaitPlayerJinGongBroadcast.fromObject = function fromObject(object) {
  9806. if (object instanceof $root.guandan.GCWaitPlayerJinGongBroadcast)
  9807. return object;
  9808. var message = new $root.guandan.GCWaitPlayerJinGongBroadcast();
  9809. if (object.playerId) {
  9810. if (!Array.isArray(object.playerId))
  9811. throw TypeError(".guandan.GCWaitPlayerJinGongBroadcast.playerId: array expected");
  9812. message.playerId = [];
  9813. for (var i = 0; i < object.playerId.length; ++i)
  9814. if ($util.Long)
  9815. (message.playerId[i] = $util.Long.fromValue(object.playerId[i])).unsigned = false;
  9816. else if (typeof object.playerId[i] === "string")
  9817. message.playerId[i] = parseInt(object.playerId[i], 10);
  9818. else if (typeof object.playerId[i] === "number")
  9819. message.playerId[i] = object.playerId[i];
  9820. else if (typeof object.playerId[i] === "object")
  9821. message.playerId[i] = new $util.LongBits(object.playerId[i].low >>> 0, object.playerId[i].high >>> 0).toNumber();
  9822. }
  9823. return message;
  9824. };
  9825. /**
  9826. * Creates a plain object from a GCWaitPlayerJinGongBroadcast message. Also converts values to other types if specified.
  9827. * @function toObject
  9828. * @memberof guandan.GCWaitPlayerJinGongBroadcast
  9829. * @static
  9830. * @param {guandan.GCWaitPlayerJinGongBroadcast} message GCWaitPlayerJinGongBroadcast
  9831. * @param {$protobuf.IConversionOptions} [options] Conversion options
  9832. * @returns {Object.<string,*>} Plain object
  9833. */
  9834. GCWaitPlayerJinGongBroadcast.toObject = function toObject(message, options) {
  9835. if (!options)
  9836. options = {};
  9837. var object = {};
  9838. if (options.arrays || options.defaults)
  9839. object.playerId = [];
  9840. if (message.playerId && message.playerId.length) {
  9841. object.playerId = [];
  9842. for (var j = 0; j < message.playerId.length; ++j)
  9843. if (typeof message.playerId[j] === "number")
  9844. object.playerId[j] = options.longs === String ? String(message.playerId[j]) : message.playerId[j];
  9845. else
  9846. object.playerId[j] = options.longs === String ? $util.Long.prototype.toString.call(message.playerId[j]) : options.longs === Number ? new $util.LongBits(message.playerId[j].low >>> 0, message.playerId[j].high >>> 0).toNumber() : message.playerId[j];
  9847. }
  9848. return object;
  9849. };
  9850. /**
  9851. * Converts this GCWaitPlayerJinGongBroadcast to JSON.
  9852. * @function toJSON
  9853. * @memberof guandan.GCWaitPlayerJinGongBroadcast
  9854. * @instance
  9855. * @returns {Object.<string,*>} JSON object
  9856. */
  9857. GCWaitPlayerJinGongBroadcast.prototype.toJSON = function toJSON() {
  9858. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  9859. };
  9860. return GCWaitPlayerJinGongBroadcast;
  9861. })();
  9862. guandan.GCWaitPlayerHuanGongBroadcast = (function() {
  9863. /**
  9864. * Properties of a GCWaitPlayerHuanGongBroadcast.
  9865. * @memberof guandan
  9866. * @interface IGCWaitPlayerHuanGongBroadcast
  9867. * @property {Array.<number|Long>|null} [playerId] GCWaitPlayerHuanGongBroadcast playerId
  9868. */
  9869. /**
  9870. * Constructs a new GCWaitPlayerHuanGongBroadcast.
  9871. * @memberof guandan
  9872. * @classdesc Represents a GCWaitPlayerHuanGongBroadcast.
  9873. * @implements IGCWaitPlayerHuanGongBroadcast
  9874. * @constructor
  9875. * @param {guandan.IGCWaitPlayerHuanGongBroadcast=} [properties] Properties to set
  9876. */
  9877. function GCWaitPlayerHuanGongBroadcast(properties) {
  9878. this.playerId = [];
  9879. if (properties)
  9880. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  9881. if (properties[keys[i]] != null)
  9882. this[keys[i]] = properties[keys[i]];
  9883. }
  9884. /**
  9885. * GCWaitPlayerHuanGongBroadcast playerId.
  9886. * @member {Array.<number|Long>} playerId
  9887. * @memberof guandan.GCWaitPlayerHuanGongBroadcast
  9888. * @instance
  9889. */
  9890. GCWaitPlayerHuanGongBroadcast.prototype.playerId = $util.emptyArray;
  9891. /**
  9892. * Creates a new GCWaitPlayerHuanGongBroadcast instance using the specified properties.
  9893. * @function create
  9894. * @memberof guandan.GCWaitPlayerHuanGongBroadcast
  9895. * @static
  9896. * @param {guandan.IGCWaitPlayerHuanGongBroadcast=} [properties] Properties to set
  9897. * @returns {guandan.GCWaitPlayerHuanGongBroadcast} GCWaitPlayerHuanGongBroadcast instance
  9898. */
  9899. GCWaitPlayerHuanGongBroadcast.create = function create(properties) {
  9900. return new GCWaitPlayerHuanGongBroadcast(properties);
  9901. };
  9902. /**
  9903. * Encodes the specified GCWaitPlayerHuanGongBroadcast message. Does not implicitly {@link guandan.GCWaitPlayerHuanGongBroadcast.verify|verify} messages.
  9904. * @function encode
  9905. * @memberof guandan.GCWaitPlayerHuanGongBroadcast
  9906. * @static
  9907. * @param {guandan.IGCWaitPlayerHuanGongBroadcast} message GCWaitPlayerHuanGongBroadcast message or plain object to encode
  9908. * @param {$protobuf.Writer} [writer] Writer to encode to
  9909. * @returns {$protobuf.Writer} Writer
  9910. */
  9911. GCWaitPlayerHuanGongBroadcast.encode = function encode(message, writer) {
  9912. if (!writer)
  9913. writer = $Writer.create();
  9914. if (message.playerId != null && message.playerId.length)
  9915. for (var i = 0; i < message.playerId.length; ++i)
  9916. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId[i]);
  9917. return writer;
  9918. };
  9919. /**
  9920. * Encodes the specified GCWaitPlayerHuanGongBroadcast message, length delimited. Does not implicitly {@link guandan.GCWaitPlayerHuanGongBroadcast.verify|verify} messages.
  9921. * @function encodeDelimited
  9922. * @memberof guandan.GCWaitPlayerHuanGongBroadcast
  9923. * @static
  9924. * @param {guandan.IGCWaitPlayerHuanGongBroadcast} message GCWaitPlayerHuanGongBroadcast message or plain object to encode
  9925. * @param {$protobuf.Writer} [writer] Writer to encode to
  9926. * @returns {$protobuf.Writer} Writer
  9927. */
  9928. GCWaitPlayerHuanGongBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
  9929. return this.encode(message, writer).ldelim();
  9930. };
  9931. /**
  9932. * Decodes a GCWaitPlayerHuanGongBroadcast message from the specified reader or buffer.
  9933. * @function decode
  9934. * @memberof guandan.GCWaitPlayerHuanGongBroadcast
  9935. * @static
  9936. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  9937. * @param {number} [length] Message length if known beforehand
  9938. * @returns {guandan.GCWaitPlayerHuanGongBroadcast} GCWaitPlayerHuanGongBroadcast
  9939. * @throws {Error} If the payload is not a reader or valid buffer
  9940. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  9941. */
  9942. GCWaitPlayerHuanGongBroadcast.decode = function decode(reader, length) {
  9943. if (!(reader instanceof $Reader))
  9944. reader = $Reader.create(reader);
  9945. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCWaitPlayerHuanGongBroadcast();
  9946. while (reader.pos < end) {
  9947. var tag = reader.uint32();
  9948. switch (tag >>> 3) {
  9949. case 1:
  9950. if (!(message.playerId && message.playerId.length))
  9951. message.playerId = [];
  9952. if ((tag & 7) === 2) {
  9953. var end2 = reader.uint32() + reader.pos;
  9954. while (reader.pos < end2)
  9955. message.playerId.push(reader.int64());
  9956. } else
  9957. message.playerId.push(reader.int64());
  9958. break;
  9959. default:
  9960. reader.skipType(tag & 7);
  9961. break;
  9962. }
  9963. }
  9964. return message;
  9965. };
  9966. /**
  9967. * Decodes a GCWaitPlayerHuanGongBroadcast message from the specified reader or buffer, length delimited.
  9968. * @function decodeDelimited
  9969. * @memberof guandan.GCWaitPlayerHuanGongBroadcast
  9970. * @static
  9971. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  9972. * @returns {guandan.GCWaitPlayerHuanGongBroadcast} GCWaitPlayerHuanGongBroadcast
  9973. * @throws {Error} If the payload is not a reader or valid buffer
  9974. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  9975. */
  9976. GCWaitPlayerHuanGongBroadcast.decodeDelimited = function decodeDelimited(reader) {
  9977. if (!(reader instanceof $Reader))
  9978. reader = new $Reader(reader);
  9979. return this.decode(reader, reader.uint32());
  9980. };
  9981. /**
  9982. * Verifies a GCWaitPlayerHuanGongBroadcast message.
  9983. * @function verify
  9984. * @memberof guandan.GCWaitPlayerHuanGongBroadcast
  9985. * @static
  9986. * @param {Object.<string,*>} message Plain object to verify
  9987. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  9988. */
  9989. GCWaitPlayerHuanGongBroadcast.verify = function verify(message) {
  9990. if (typeof message !== "object" || message === null)
  9991. return "object expected";
  9992. if (message.playerId != null && message.hasOwnProperty("playerId")) {
  9993. if (!Array.isArray(message.playerId))
  9994. return "playerId: array expected";
  9995. for (var i = 0; i < message.playerId.length; ++i)
  9996. if (!$util.isInteger(message.playerId[i]) && !(message.playerId[i] && $util.isInteger(message.playerId[i].low) && $util.isInteger(message.playerId[i].high)))
  9997. return "playerId: integer|Long[] expected";
  9998. }
  9999. return null;
  10000. };
  10001. /**
  10002. * Creates a GCWaitPlayerHuanGongBroadcast message from a plain object. Also converts values to their respective internal types.
  10003. * @function fromObject
  10004. * @memberof guandan.GCWaitPlayerHuanGongBroadcast
  10005. * @static
  10006. * @param {Object.<string,*>} object Plain object
  10007. * @returns {guandan.GCWaitPlayerHuanGongBroadcast} GCWaitPlayerHuanGongBroadcast
  10008. */
  10009. GCWaitPlayerHuanGongBroadcast.fromObject = function fromObject(object) {
  10010. if (object instanceof $root.guandan.GCWaitPlayerHuanGongBroadcast)
  10011. return object;
  10012. var message = new $root.guandan.GCWaitPlayerHuanGongBroadcast();
  10013. if (object.playerId) {
  10014. if (!Array.isArray(object.playerId))
  10015. throw TypeError(".guandan.GCWaitPlayerHuanGongBroadcast.playerId: array expected");
  10016. message.playerId = [];
  10017. for (var i = 0; i < object.playerId.length; ++i)
  10018. if ($util.Long)
  10019. (message.playerId[i] = $util.Long.fromValue(object.playerId[i])).unsigned = false;
  10020. else if (typeof object.playerId[i] === "string")
  10021. message.playerId[i] = parseInt(object.playerId[i], 10);
  10022. else if (typeof object.playerId[i] === "number")
  10023. message.playerId[i] = object.playerId[i];
  10024. else if (typeof object.playerId[i] === "object")
  10025. message.playerId[i] = new $util.LongBits(object.playerId[i].low >>> 0, object.playerId[i].high >>> 0).toNumber();
  10026. }
  10027. return message;
  10028. };
  10029. /**
  10030. * Creates a plain object from a GCWaitPlayerHuanGongBroadcast message. Also converts values to other types if specified.
  10031. * @function toObject
  10032. * @memberof guandan.GCWaitPlayerHuanGongBroadcast
  10033. * @static
  10034. * @param {guandan.GCWaitPlayerHuanGongBroadcast} message GCWaitPlayerHuanGongBroadcast
  10035. * @param {$protobuf.IConversionOptions} [options] Conversion options
  10036. * @returns {Object.<string,*>} Plain object
  10037. */
  10038. GCWaitPlayerHuanGongBroadcast.toObject = function toObject(message, options) {
  10039. if (!options)
  10040. options = {};
  10041. var object = {};
  10042. if (options.arrays || options.defaults)
  10043. object.playerId = [];
  10044. if (message.playerId && message.playerId.length) {
  10045. object.playerId = [];
  10046. for (var j = 0; j < message.playerId.length; ++j)
  10047. if (typeof message.playerId[j] === "number")
  10048. object.playerId[j] = options.longs === String ? String(message.playerId[j]) : message.playerId[j];
  10049. else
  10050. object.playerId[j] = options.longs === String ? $util.Long.prototype.toString.call(message.playerId[j]) : options.longs === Number ? new $util.LongBits(message.playerId[j].low >>> 0, message.playerId[j].high >>> 0).toNumber() : message.playerId[j];
  10051. }
  10052. return object;
  10053. };
  10054. /**
  10055. * Converts this GCWaitPlayerHuanGongBroadcast to JSON.
  10056. * @function toJSON
  10057. * @memberof guandan.GCWaitPlayerHuanGongBroadcast
  10058. * @instance
  10059. * @returns {Object.<string,*>} JSON object
  10060. */
  10061. GCWaitPlayerHuanGongBroadcast.prototype.toJSON = function toJSON() {
  10062. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  10063. };
  10064. return GCWaitPlayerHuanGongBroadcast;
  10065. })();
  10066. guandan.RoundSettlePlayerInfo = (function() {
  10067. /**
  10068. * Properties of a RoundSettlePlayerInfo.
  10069. * @memberof guandan
  10070. * @interface IRoundSettlePlayerInfo
  10071. * @property {number|Long} playerId RoundSettlePlayerInfo playerId
  10072. * @property {number|Long} score RoundSettlePlayerInfo score
  10073. * @property {number|Long} gold RoundSettlePlayerInfo gold
  10074. * @property {number} index RoundSettlePlayerInfo index
  10075. * @property {number} doubleRate RoundSettlePlayerInfo doubleRate
  10076. */
  10077. /**
  10078. * Constructs a new RoundSettlePlayerInfo.
  10079. * @memberof guandan
  10080. * @classdesc Represents a RoundSettlePlayerInfo.
  10081. * @implements IRoundSettlePlayerInfo
  10082. * @constructor
  10083. * @param {guandan.IRoundSettlePlayerInfo=} [properties] Properties to set
  10084. */
  10085. function RoundSettlePlayerInfo(properties) {
  10086. if (properties)
  10087. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  10088. if (properties[keys[i]] != null)
  10089. this[keys[i]] = properties[keys[i]];
  10090. }
  10091. /**
  10092. * RoundSettlePlayerInfo playerId.
  10093. * @member {number|Long} playerId
  10094. * @memberof guandan.RoundSettlePlayerInfo
  10095. * @instance
  10096. */
  10097. RoundSettlePlayerInfo.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  10098. /**
  10099. * RoundSettlePlayerInfo score.
  10100. * @member {number|Long} score
  10101. * @memberof guandan.RoundSettlePlayerInfo
  10102. * @instance
  10103. */
  10104. RoundSettlePlayerInfo.prototype.score = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  10105. /**
  10106. * RoundSettlePlayerInfo gold.
  10107. * @member {number|Long} gold
  10108. * @memberof guandan.RoundSettlePlayerInfo
  10109. * @instance
  10110. */
  10111. RoundSettlePlayerInfo.prototype.gold = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  10112. /**
  10113. * RoundSettlePlayerInfo index.
  10114. * @member {number} index
  10115. * @memberof guandan.RoundSettlePlayerInfo
  10116. * @instance
  10117. */
  10118. RoundSettlePlayerInfo.prototype.index = 0;
  10119. /**
  10120. * RoundSettlePlayerInfo doubleRate.
  10121. * @member {number} doubleRate
  10122. * @memberof guandan.RoundSettlePlayerInfo
  10123. * @instance
  10124. */
  10125. RoundSettlePlayerInfo.prototype.doubleRate = 0;
  10126. /**
  10127. * Creates a new RoundSettlePlayerInfo instance using the specified properties.
  10128. * @function create
  10129. * @memberof guandan.RoundSettlePlayerInfo
  10130. * @static
  10131. * @param {guandan.IRoundSettlePlayerInfo=} [properties] Properties to set
  10132. * @returns {guandan.RoundSettlePlayerInfo} RoundSettlePlayerInfo instance
  10133. */
  10134. RoundSettlePlayerInfo.create = function create(properties) {
  10135. return new RoundSettlePlayerInfo(properties);
  10136. };
  10137. /**
  10138. * Encodes the specified RoundSettlePlayerInfo message. Does not implicitly {@link guandan.RoundSettlePlayerInfo.verify|verify} messages.
  10139. * @function encode
  10140. * @memberof guandan.RoundSettlePlayerInfo
  10141. * @static
  10142. * @param {guandan.IRoundSettlePlayerInfo} message RoundSettlePlayerInfo message or plain object to encode
  10143. * @param {$protobuf.Writer} [writer] Writer to encode to
  10144. * @returns {$protobuf.Writer} Writer
  10145. */
  10146. RoundSettlePlayerInfo.encode = function encode(message, writer) {
  10147. if (!writer)
  10148. writer = $Writer.create();
  10149. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
  10150. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.score);
  10151. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.gold);
  10152. writer.uint32(/* id 4, wireType 0 =*/32).int32(message.index);
  10153. writer.uint32(/* id 5, wireType 0 =*/40).int32(message.doubleRate);
  10154. return writer;
  10155. };
  10156. /**
  10157. * Encodes the specified RoundSettlePlayerInfo message, length delimited. Does not implicitly {@link guandan.RoundSettlePlayerInfo.verify|verify} messages.
  10158. * @function encodeDelimited
  10159. * @memberof guandan.RoundSettlePlayerInfo
  10160. * @static
  10161. * @param {guandan.IRoundSettlePlayerInfo} message RoundSettlePlayerInfo message or plain object to encode
  10162. * @param {$protobuf.Writer} [writer] Writer to encode to
  10163. * @returns {$protobuf.Writer} Writer
  10164. */
  10165. RoundSettlePlayerInfo.encodeDelimited = function encodeDelimited(message, writer) {
  10166. return this.encode(message, writer).ldelim();
  10167. };
  10168. /**
  10169. * Decodes a RoundSettlePlayerInfo message from the specified reader or buffer.
  10170. * @function decode
  10171. * @memberof guandan.RoundSettlePlayerInfo
  10172. * @static
  10173. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  10174. * @param {number} [length] Message length if known beforehand
  10175. * @returns {guandan.RoundSettlePlayerInfo} RoundSettlePlayerInfo
  10176. * @throws {Error} If the payload is not a reader or valid buffer
  10177. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  10178. */
  10179. RoundSettlePlayerInfo.decode = function decode(reader, length) {
  10180. if (!(reader instanceof $Reader))
  10181. reader = $Reader.create(reader);
  10182. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.RoundSettlePlayerInfo();
  10183. while (reader.pos < end) {
  10184. var tag = reader.uint32();
  10185. switch (tag >>> 3) {
  10186. case 1:
  10187. message.playerId = reader.int64();
  10188. break;
  10189. case 2:
  10190. message.score = reader.int64();
  10191. break;
  10192. case 3:
  10193. message.gold = reader.int64();
  10194. break;
  10195. case 4:
  10196. message.index = reader.int32();
  10197. break;
  10198. case 5:
  10199. message.doubleRate = reader.int32();
  10200. break;
  10201. default:
  10202. reader.skipType(tag & 7);
  10203. break;
  10204. }
  10205. }
  10206. if (!message.hasOwnProperty("playerId"))
  10207. throw $util.ProtocolError("missing required 'playerId'", { instance: message });
  10208. if (!message.hasOwnProperty("score"))
  10209. throw $util.ProtocolError("missing required 'score'", { instance: message });
  10210. if (!message.hasOwnProperty("gold"))
  10211. throw $util.ProtocolError("missing required 'gold'", { instance: message });
  10212. if (!message.hasOwnProperty("index"))
  10213. throw $util.ProtocolError("missing required 'index'", { instance: message });
  10214. if (!message.hasOwnProperty("doubleRate"))
  10215. throw $util.ProtocolError("missing required 'doubleRate'", { instance: message });
  10216. return message;
  10217. };
  10218. /**
  10219. * Decodes a RoundSettlePlayerInfo message from the specified reader or buffer, length delimited.
  10220. * @function decodeDelimited
  10221. * @memberof guandan.RoundSettlePlayerInfo
  10222. * @static
  10223. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  10224. * @returns {guandan.RoundSettlePlayerInfo} RoundSettlePlayerInfo
  10225. * @throws {Error} If the payload is not a reader or valid buffer
  10226. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  10227. */
  10228. RoundSettlePlayerInfo.decodeDelimited = function decodeDelimited(reader) {
  10229. if (!(reader instanceof $Reader))
  10230. reader = new $Reader(reader);
  10231. return this.decode(reader, reader.uint32());
  10232. };
  10233. /**
  10234. * Verifies a RoundSettlePlayerInfo message.
  10235. * @function verify
  10236. * @memberof guandan.RoundSettlePlayerInfo
  10237. * @static
  10238. * @param {Object.<string,*>} message Plain object to verify
  10239. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  10240. */
  10241. RoundSettlePlayerInfo.verify = function verify(message) {
  10242. if (typeof message !== "object" || message === null)
  10243. return "object expected";
  10244. if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
  10245. return "playerId: integer|Long expected";
  10246. if (!$util.isInteger(message.score) && !(message.score && $util.isInteger(message.score.low) && $util.isInteger(message.score.high)))
  10247. return "score: integer|Long expected";
  10248. if (!$util.isInteger(message.gold) && !(message.gold && $util.isInteger(message.gold.low) && $util.isInteger(message.gold.high)))
  10249. return "gold: integer|Long expected";
  10250. if (!$util.isInteger(message.index))
  10251. return "index: integer expected";
  10252. if (!$util.isInteger(message.doubleRate))
  10253. return "doubleRate: integer expected";
  10254. return null;
  10255. };
  10256. /**
  10257. * Creates a RoundSettlePlayerInfo message from a plain object. Also converts values to their respective internal types.
  10258. * @function fromObject
  10259. * @memberof guandan.RoundSettlePlayerInfo
  10260. * @static
  10261. * @param {Object.<string,*>} object Plain object
  10262. * @returns {guandan.RoundSettlePlayerInfo} RoundSettlePlayerInfo
  10263. */
  10264. RoundSettlePlayerInfo.fromObject = function fromObject(object) {
  10265. if (object instanceof $root.guandan.RoundSettlePlayerInfo)
  10266. return object;
  10267. var message = new $root.guandan.RoundSettlePlayerInfo();
  10268. if (object.playerId != null)
  10269. if ($util.Long)
  10270. (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
  10271. else if (typeof object.playerId === "string")
  10272. message.playerId = parseInt(object.playerId, 10);
  10273. else if (typeof object.playerId === "number")
  10274. message.playerId = object.playerId;
  10275. else if (typeof object.playerId === "object")
  10276. message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
  10277. if (object.score != null)
  10278. if ($util.Long)
  10279. (message.score = $util.Long.fromValue(object.score)).unsigned = false;
  10280. else if (typeof object.score === "string")
  10281. message.score = parseInt(object.score, 10);
  10282. else if (typeof object.score === "number")
  10283. message.score = object.score;
  10284. else if (typeof object.score === "object")
  10285. message.score = new $util.LongBits(object.score.low >>> 0, object.score.high >>> 0).toNumber();
  10286. if (object.gold != null)
  10287. if ($util.Long)
  10288. (message.gold = $util.Long.fromValue(object.gold)).unsigned = false;
  10289. else if (typeof object.gold === "string")
  10290. message.gold = parseInt(object.gold, 10);
  10291. else if (typeof object.gold === "number")
  10292. message.gold = object.gold;
  10293. else if (typeof object.gold === "object")
  10294. message.gold = new $util.LongBits(object.gold.low >>> 0, object.gold.high >>> 0).toNumber();
  10295. if (object.index != null)
  10296. message.index = object.index | 0;
  10297. if (object.doubleRate != null)
  10298. message.doubleRate = object.doubleRate | 0;
  10299. return message;
  10300. };
  10301. /**
  10302. * Creates a plain object from a RoundSettlePlayerInfo message. Also converts values to other types if specified.
  10303. * @function toObject
  10304. * @memberof guandan.RoundSettlePlayerInfo
  10305. * @static
  10306. * @param {guandan.RoundSettlePlayerInfo} message RoundSettlePlayerInfo
  10307. * @param {$protobuf.IConversionOptions} [options] Conversion options
  10308. * @returns {Object.<string,*>} Plain object
  10309. */
  10310. RoundSettlePlayerInfo.toObject = function toObject(message, options) {
  10311. if (!options)
  10312. options = {};
  10313. var object = {};
  10314. if (options.defaults) {
  10315. if ($util.Long) {
  10316. var long = new $util.Long(0, 0, false);
  10317. object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  10318. } else
  10319. object.playerId = options.longs === String ? "0" : 0;
  10320. if ($util.Long) {
  10321. var long = new $util.Long(0, 0, false);
  10322. object.score = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  10323. } else
  10324. object.score = options.longs === String ? "0" : 0;
  10325. if ($util.Long) {
  10326. var long = new $util.Long(0, 0, false);
  10327. object.gold = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  10328. } else
  10329. object.gold = options.longs === String ? "0" : 0;
  10330. object.index = 0;
  10331. object.doubleRate = 0;
  10332. }
  10333. if (message.playerId != null && message.hasOwnProperty("playerId"))
  10334. if (typeof message.playerId === "number")
  10335. object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
  10336. else
  10337. object.playerId = options.longs === String ? $util.Long.prototype.toString.call(message.playerId) : options.longs === Number ? new $util.LongBits(message.playerId.low >>> 0, message.playerId.high >>> 0).toNumber() : message.playerId;
  10338. if (message.score != null && message.hasOwnProperty("score"))
  10339. if (typeof message.score === "number")
  10340. object.score = options.longs === String ? String(message.score) : message.score;
  10341. else
  10342. object.score = options.longs === String ? $util.Long.prototype.toString.call(message.score) : options.longs === Number ? new $util.LongBits(message.score.low >>> 0, message.score.high >>> 0).toNumber() : message.score;
  10343. if (message.gold != null && message.hasOwnProperty("gold"))
  10344. if (typeof message.gold === "number")
  10345. object.gold = options.longs === String ? String(message.gold) : message.gold;
  10346. else
  10347. object.gold = options.longs === String ? $util.Long.prototype.toString.call(message.gold) : options.longs === Number ? new $util.LongBits(message.gold.low >>> 0, message.gold.high >>> 0).toNumber() : message.gold;
  10348. if (message.index != null && message.hasOwnProperty("index"))
  10349. object.index = message.index;
  10350. if (message.doubleRate != null && message.hasOwnProperty("doubleRate"))
  10351. object.doubleRate = message.doubleRate;
  10352. return object;
  10353. };
  10354. /**
  10355. * Converts this RoundSettlePlayerInfo to JSON.
  10356. * @function toJSON
  10357. * @memberof guandan.RoundSettlePlayerInfo
  10358. * @instance
  10359. * @returns {Object.<string,*>} JSON object
  10360. */
  10361. RoundSettlePlayerInfo.prototype.toJSON = function toJSON() {
  10362. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  10363. };
  10364. return RoundSettlePlayerInfo;
  10365. })();
  10366. guandan.GCPlayerYou = (function() {
  10367. /**
  10368. * Properties of a GCPlayerYou.
  10369. * @memberof guandan
  10370. * @interface IGCPlayerYou
  10371. * @property {number|Long} playerId GCPlayerYou playerId
  10372. * @property {Array.<guandan.IRoundSettlePlayerInfo>|null} [settlePlayerList] GCPlayerYou settlePlayerList
  10373. */
  10374. /**
  10375. * Constructs a new GCPlayerYou.
  10376. * @memberof guandan
  10377. * @classdesc Represents a GCPlayerYou.
  10378. * @implements IGCPlayerYou
  10379. * @constructor
  10380. * @param {guandan.IGCPlayerYou=} [properties] Properties to set
  10381. */
  10382. function GCPlayerYou(properties) {
  10383. this.settlePlayerList = [];
  10384. if (properties)
  10385. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  10386. if (properties[keys[i]] != null)
  10387. this[keys[i]] = properties[keys[i]];
  10388. }
  10389. /**
  10390. * GCPlayerYou playerId.
  10391. * @member {number|Long} playerId
  10392. * @memberof guandan.GCPlayerYou
  10393. * @instance
  10394. */
  10395. GCPlayerYou.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  10396. /**
  10397. * GCPlayerYou settlePlayerList.
  10398. * @member {Array.<guandan.IRoundSettlePlayerInfo>} settlePlayerList
  10399. * @memberof guandan.GCPlayerYou
  10400. * @instance
  10401. */
  10402. GCPlayerYou.prototype.settlePlayerList = $util.emptyArray;
  10403. /**
  10404. * Creates a new GCPlayerYou instance using the specified properties.
  10405. * @function create
  10406. * @memberof guandan.GCPlayerYou
  10407. * @static
  10408. * @param {guandan.IGCPlayerYou=} [properties] Properties to set
  10409. * @returns {guandan.GCPlayerYou} GCPlayerYou instance
  10410. */
  10411. GCPlayerYou.create = function create(properties) {
  10412. return new GCPlayerYou(properties);
  10413. };
  10414. /**
  10415. * Encodes the specified GCPlayerYou message. Does not implicitly {@link guandan.GCPlayerYou.verify|verify} messages.
  10416. * @function encode
  10417. * @memberof guandan.GCPlayerYou
  10418. * @static
  10419. * @param {guandan.IGCPlayerYou} message GCPlayerYou message or plain object to encode
  10420. * @param {$protobuf.Writer} [writer] Writer to encode to
  10421. * @returns {$protobuf.Writer} Writer
  10422. */
  10423. GCPlayerYou.encode = function encode(message, writer) {
  10424. if (!writer)
  10425. writer = $Writer.create();
  10426. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
  10427. if (message.settlePlayerList != null && message.settlePlayerList.length)
  10428. for (var i = 0; i < message.settlePlayerList.length; ++i)
  10429. $root.guandan.RoundSettlePlayerInfo.encode(message.settlePlayerList[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  10430. return writer;
  10431. };
  10432. /**
  10433. * Encodes the specified GCPlayerYou message, length delimited. Does not implicitly {@link guandan.GCPlayerYou.verify|verify} messages.
  10434. * @function encodeDelimited
  10435. * @memberof guandan.GCPlayerYou
  10436. * @static
  10437. * @param {guandan.IGCPlayerYou} message GCPlayerYou message or plain object to encode
  10438. * @param {$protobuf.Writer} [writer] Writer to encode to
  10439. * @returns {$protobuf.Writer} Writer
  10440. */
  10441. GCPlayerYou.encodeDelimited = function encodeDelimited(message, writer) {
  10442. return this.encode(message, writer).ldelim();
  10443. };
  10444. /**
  10445. * Decodes a GCPlayerYou message from the specified reader or buffer.
  10446. * @function decode
  10447. * @memberof guandan.GCPlayerYou
  10448. * @static
  10449. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  10450. * @param {number} [length] Message length if known beforehand
  10451. * @returns {guandan.GCPlayerYou} GCPlayerYou
  10452. * @throws {Error} If the payload is not a reader or valid buffer
  10453. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  10454. */
  10455. GCPlayerYou.decode = function decode(reader, length) {
  10456. if (!(reader instanceof $Reader))
  10457. reader = $Reader.create(reader);
  10458. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCPlayerYou();
  10459. while (reader.pos < end) {
  10460. var tag = reader.uint32();
  10461. switch (tag >>> 3) {
  10462. case 1:
  10463. message.playerId = reader.int64();
  10464. break;
  10465. case 2:
  10466. if (!(message.settlePlayerList && message.settlePlayerList.length))
  10467. message.settlePlayerList = [];
  10468. message.settlePlayerList.push($root.guandan.RoundSettlePlayerInfo.decode(reader, reader.uint32()));
  10469. break;
  10470. default:
  10471. reader.skipType(tag & 7);
  10472. break;
  10473. }
  10474. }
  10475. if (!message.hasOwnProperty("playerId"))
  10476. throw $util.ProtocolError("missing required 'playerId'", { instance: message });
  10477. return message;
  10478. };
  10479. /**
  10480. * Decodes a GCPlayerYou message from the specified reader or buffer, length delimited.
  10481. * @function decodeDelimited
  10482. * @memberof guandan.GCPlayerYou
  10483. * @static
  10484. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  10485. * @returns {guandan.GCPlayerYou} GCPlayerYou
  10486. * @throws {Error} If the payload is not a reader or valid buffer
  10487. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  10488. */
  10489. GCPlayerYou.decodeDelimited = function decodeDelimited(reader) {
  10490. if (!(reader instanceof $Reader))
  10491. reader = new $Reader(reader);
  10492. return this.decode(reader, reader.uint32());
  10493. };
  10494. /**
  10495. * Verifies a GCPlayerYou message.
  10496. * @function verify
  10497. * @memberof guandan.GCPlayerYou
  10498. * @static
  10499. * @param {Object.<string,*>} message Plain object to verify
  10500. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  10501. */
  10502. GCPlayerYou.verify = function verify(message) {
  10503. if (typeof message !== "object" || message === null)
  10504. return "object expected";
  10505. if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
  10506. return "playerId: integer|Long expected";
  10507. if (message.settlePlayerList != null && message.hasOwnProperty("settlePlayerList")) {
  10508. if (!Array.isArray(message.settlePlayerList))
  10509. return "settlePlayerList: array expected";
  10510. for (var i = 0; i < message.settlePlayerList.length; ++i) {
  10511. var error = $root.guandan.RoundSettlePlayerInfo.verify(message.settlePlayerList[i]);
  10512. if (error)
  10513. return "settlePlayerList." + error;
  10514. }
  10515. }
  10516. return null;
  10517. };
  10518. /**
  10519. * Creates a GCPlayerYou message from a plain object. Also converts values to their respective internal types.
  10520. * @function fromObject
  10521. * @memberof guandan.GCPlayerYou
  10522. * @static
  10523. * @param {Object.<string,*>} object Plain object
  10524. * @returns {guandan.GCPlayerYou} GCPlayerYou
  10525. */
  10526. GCPlayerYou.fromObject = function fromObject(object) {
  10527. if (object instanceof $root.guandan.GCPlayerYou)
  10528. return object;
  10529. var message = new $root.guandan.GCPlayerYou();
  10530. if (object.playerId != null)
  10531. if ($util.Long)
  10532. (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
  10533. else if (typeof object.playerId === "string")
  10534. message.playerId = parseInt(object.playerId, 10);
  10535. else if (typeof object.playerId === "number")
  10536. message.playerId = object.playerId;
  10537. else if (typeof object.playerId === "object")
  10538. message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
  10539. if (object.settlePlayerList) {
  10540. if (!Array.isArray(object.settlePlayerList))
  10541. throw TypeError(".guandan.GCPlayerYou.settlePlayerList: array expected");
  10542. message.settlePlayerList = [];
  10543. for (var i = 0; i < object.settlePlayerList.length; ++i) {
  10544. if (typeof object.settlePlayerList[i] !== "object")
  10545. throw TypeError(".guandan.GCPlayerYou.settlePlayerList: object expected");
  10546. message.settlePlayerList[i] = $root.guandan.RoundSettlePlayerInfo.fromObject(object.settlePlayerList[i]);
  10547. }
  10548. }
  10549. return message;
  10550. };
  10551. /**
  10552. * Creates a plain object from a GCPlayerYou message. Also converts values to other types if specified.
  10553. * @function toObject
  10554. * @memberof guandan.GCPlayerYou
  10555. * @static
  10556. * @param {guandan.GCPlayerYou} message GCPlayerYou
  10557. * @param {$protobuf.IConversionOptions} [options] Conversion options
  10558. * @returns {Object.<string,*>} Plain object
  10559. */
  10560. GCPlayerYou.toObject = function toObject(message, options) {
  10561. if (!options)
  10562. options = {};
  10563. var object = {};
  10564. if (options.arrays || options.defaults)
  10565. object.settlePlayerList = [];
  10566. if (options.defaults)
  10567. if ($util.Long) {
  10568. var long = new $util.Long(0, 0, false);
  10569. object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  10570. } else
  10571. object.playerId = options.longs === String ? "0" : 0;
  10572. if (message.playerId != null && message.hasOwnProperty("playerId"))
  10573. if (typeof message.playerId === "number")
  10574. object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
  10575. else
  10576. object.playerId = options.longs === String ? $util.Long.prototype.toString.call(message.playerId) : options.longs === Number ? new $util.LongBits(message.playerId.low >>> 0, message.playerId.high >>> 0).toNumber() : message.playerId;
  10577. if (message.settlePlayerList && message.settlePlayerList.length) {
  10578. object.settlePlayerList = [];
  10579. for (var j = 0; j < message.settlePlayerList.length; ++j)
  10580. object.settlePlayerList[j] = $root.guandan.RoundSettlePlayerInfo.toObject(message.settlePlayerList[j], options);
  10581. }
  10582. return object;
  10583. };
  10584. /**
  10585. * Converts this GCPlayerYou to JSON.
  10586. * @function toJSON
  10587. * @memberof guandan.GCPlayerYou
  10588. * @instance
  10589. * @returns {Object.<string,*>} JSON object
  10590. */
  10591. GCPlayerYou.prototype.toJSON = function toJSON() {
  10592. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  10593. };
  10594. return GCPlayerYou;
  10595. })();
  10596. guandan.GCPlayerEmptyBroadcast = (function() {
  10597. /**
  10598. * Properties of a GCPlayerEmptyBroadcast.
  10599. * @memberof guandan
  10600. * @interface IGCPlayerEmptyBroadcast
  10601. * @property {number|Long} playerId GCPlayerEmptyBroadcast playerId
  10602. * @property {number} index GCPlayerEmptyBroadcast index
  10603. */
  10604. /**
  10605. * Constructs a new GCPlayerEmptyBroadcast.
  10606. * @memberof guandan
  10607. * @classdesc Represents a GCPlayerEmptyBroadcast.
  10608. * @implements IGCPlayerEmptyBroadcast
  10609. * @constructor
  10610. * @param {guandan.IGCPlayerEmptyBroadcast=} [properties] Properties to set
  10611. */
  10612. function GCPlayerEmptyBroadcast(properties) {
  10613. if (properties)
  10614. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  10615. if (properties[keys[i]] != null)
  10616. this[keys[i]] = properties[keys[i]];
  10617. }
  10618. /**
  10619. * GCPlayerEmptyBroadcast playerId.
  10620. * @member {number|Long} playerId
  10621. * @memberof guandan.GCPlayerEmptyBroadcast
  10622. * @instance
  10623. */
  10624. GCPlayerEmptyBroadcast.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  10625. /**
  10626. * GCPlayerEmptyBroadcast index.
  10627. * @member {number} index
  10628. * @memberof guandan.GCPlayerEmptyBroadcast
  10629. * @instance
  10630. */
  10631. GCPlayerEmptyBroadcast.prototype.index = 0;
  10632. /**
  10633. * Creates a new GCPlayerEmptyBroadcast instance using the specified properties.
  10634. * @function create
  10635. * @memberof guandan.GCPlayerEmptyBroadcast
  10636. * @static
  10637. * @param {guandan.IGCPlayerEmptyBroadcast=} [properties] Properties to set
  10638. * @returns {guandan.GCPlayerEmptyBroadcast} GCPlayerEmptyBroadcast instance
  10639. */
  10640. GCPlayerEmptyBroadcast.create = function create(properties) {
  10641. return new GCPlayerEmptyBroadcast(properties);
  10642. };
  10643. /**
  10644. * Encodes the specified GCPlayerEmptyBroadcast message. Does not implicitly {@link guandan.GCPlayerEmptyBroadcast.verify|verify} messages.
  10645. * @function encode
  10646. * @memberof guandan.GCPlayerEmptyBroadcast
  10647. * @static
  10648. * @param {guandan.IGCPlayerEmptyBroadcast} message GCPlayerEmptyBroadcast message or plain object to encode
  10649. * @param {$protobuf.Writer} [writer] Writer to encode to
  10650. * @returns {$protobuf.Writer} Writer
  10651. */
  10652. GCPlayerEmptyBroadcast.encode = function encode(message, writer) {
  10653. if (!writer)
  10654. writer = $Writer.create();
  10655. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
  10656. writer.uint32(/* id 4, wireType 0 =*/32).int32(message.index);
  10657. return writer;
  10658. };
  10659. /**
  10660. * Encodes the specified GCPlayerEmptyBroadcast message, length delimited. Does not implicitly {@link guandan.GCPlayerEmptyBroadcast.verify|verify} messages.
  10661. * @function encodeDelimited
  10662. * @memberof guandan.GCPlayerEmptyBroadcast
  10663. * @static
  10664. * @param {guandan.IGCPlayerEmptyBroadcast} message GCPlayerEmptyBroadcast message or plain object to encode
  10665. * @param {$protobuf.Writer} [writer] Writer to encode to
  10666. * @returns {$protobuf.Writer} Writer
  10667. */
  10668. GCPlayerEmptyBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
  10669. return this.encode(message, writer).ldelim();
  10670. };
  10671. /**
  10672. * Decodes a GCPlayerEmptyBroadcast message from the specified reader or buffer.
  10673. * @function decode
  10674. * @memberof guandan.GCPlayerEmptyBroadcast
  10675. * @static
  10676. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  10677. * @param {number} [length] Message length if known beforehand
  10678. * @returns {guandan.GCPlayerEmptyBroadcast} GCPlayerEmptyBroadcast
  10679. * @throws {Error} If the payload is not a reader or valid buffer
  10680. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  10681. */
  10682. GCPlayerEmptyBroadcast.decode = function decode(reader, length) {
  10683. if (!(reader instanceof $Reader))
  10684. reader = $Reader.create(reader);
  10685. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCPlayerEmptyBroadcast();
  10686. while (reader.pos < end) {
  10687. var tag = reader.uint32();
  10688. switch (tag >>> 3) {
  10689. case 1:
  10690. message.playerId = reader.int64();
  10691. break;
  10692. case 4:
  10693. message.index = reader.int32();
  10694. break;
  10695. default:
  10696. reader.skipType(tag & 7);
  10697. break;
  10698. }
  10699. }
  10700. if (!message.hasOwnProperty("playerId"))
  10701. throw $util.ProtocolError("missing required 'playerId'", { instance: message });
  10702. if (!message.hasOwnProperty("index"))
  10703. throw $util.ProtocolError("missing required 'index'", { instance: message });
  10704. return message;
  10705. };
  10706. /**
  10707. * Decodes a GCPlayerEmptyBroadcast message from the specified reader or buffer, length delimited.
  10708. * @function decodeDelimited
  10709. * @memberof guandan.GCPlayerEmptyBroadcast
  10710. * @static
  10711. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  10712. * @returns {guandan.GCPlayerEmptyBroadcast} GCPlayerEmptyBroadcast
  10713. * @throws {Error} If the payload is not a reader or valid buffer
  10714. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  10715. */
  10716. GCPlayerEmptyBroadcast.decodeDelimited = function decodeDelimited(reader) {
  10717. if (!(reader instanceof $Reader))
  10718. reader = new $Reader(reader);
  10719. return this.decode(reader, reader.uint32());
  10720. };
  10721. /**
  10722. * Verifies a GCPlayerEmptyBroadcast message.
  10723. * @function verify
  10724. * @memberof guandan.GCPlayerEmptyBroadcast
  10725. * @static
  10726. * @param {Object.<string,*>} message Plain object to verify
  10727. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  10728. */
  10729. GCPlayerEmptyBroadcast.verify = function verify(message) {
  10730. if (typeof message !== "object" || message === null)
  10731. return "object expected";
  10732. if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
  10733. return "playerId: integer|Long expected";
  10734. if (!$util.isInteger(message.index))
  10735. return "index: integer expected";
  10736. return null;
  10737. };
  10738. /**
  10739. * Creates a GCPlayerEmptyBroadcast message from a plain object. Also converts values to their respective internal types.
  10740. * @function fromObject
  10741. * @memberof guandan.GCPlayerEmptyBroadcast
  10742. * @static
  10743. * @param {Object.<string,*>} object Plain object
  10744. * @returns {guandan.GCPlayerEmptyBroadcast} GCPlayerEmptyBroadcast
  10745. */
  10746. GCPlayerEmptyBroadcast.fromObject = function fromObject(object) {
  10747. if (object instanceof $root.guandan.GCPlayerEmptyBroadcast)
  10748. return object;
  10749. var message = new $root.guandan.GCPlayerEmptyBroadcast();
  10750. if (object.playerId != null)
  10751. if ($util.Long)
  10752. (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
  10753. else if (typeof object.playerId === "string")
  10754. message.playerId = parseInt(object.playerId, 10);
  10755. else if (typeof object.playerId === "number")
  10756. message.playerId = object.playerId;
  10757. else if (typeof object.playerId === "object")
  10758. message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
  10759. if (object.index != null)
  10760. message.index = object.index | 0;
  10761. return message;
  10762. };
  10763. /**
  10764. * Creates a plain object from a GCPlayerEmptyBroadcast message. Also converts values to other types if specified.
  10765. * @function toObject
  10766. * @memberof guandan.GCPlayerEmptyBroadcast
  10767. * @static
  10768. * @param {guandan.GCPlayerEmptyBroadcast} message GCPlayerEmptyBroadcast
  10769. * @param {$protobuf.IConversionOptions} [options] Conversion options
  10770. * @returns {Object.<string,*>} Plain object
  10771. */
  10772. GCPlayerEmptyBroadcast.toObject = function toObject(message, options) {
  10773. if (!options)
  10774. options = {};
  10775. var object = {};
  10776. if (options.defaults) {
  10777. if ($util.Long) {
  10778. var long = new $util.Long(0, 0, false);
  10779. object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  10780. } else
  10781. object.playerId = options.longs === String ? "0" : 0;
  10782. object.index = 0;
  10783. }
  10784. if (message.playerId != null && message.hasOwnProperty("playerId"))
  10785. if (typeof message.playerId === "number")
  10786. object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
  10787. else
  10788. object.playerId = options.longs === String ? $util.Long.prototype.toString.call(message.playerId) : options.longs === Number ? new $util.LongBits(message.playerId.low >>> 0, message.playerId.high >>> 0).toNumber() : message.playerId;
  10789. if (message.index != null && message.hasOwnProperty("index"))
  10790. object.index = message.index;
  10791. return object;
  10792. };
  10793. /**
  10794. * Converts this GCPlayerEmptyBroadcast to JSON.
  10795. * @function toJSON
  10796. * @memberof guandan.GCPlayerEmptyBroadcast
  10797. * @instance
  10798. * @returns {Object.<string,*>} JSON object
  10799. */
  10800. GCPlayerEmptyBroadcast.prototype.toJSON = function toJSON() {
  10801. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  10802. };
  10803. return GCPlayerEmptyBroadcast;
  10804. })();
  10805. guandan.CGPlayerOperate = (function() {
  10806. /**
  10807. * Properties of a CGPlayerOperate.
  10808. * @memberof guandan
  10809. * @interface ICGPlayerOperate
  10810. * @property {guandan.IOperation} operation CGPlayerOperate operation
  10811. * @property {Array.<number>|null} [cardList] CGPlayerOperate cardList
  10812. */
  10813. /**
  10814. * Constructs a new CGPlayerOperate.
  10815. * @memberof guandan
  10816. * @classdesc Represents a CGPlayerOperate.
  10817. * @implements ICGPlayerOperate
  10818. * @constructor
  10819. * @param {guandan.ICGPlayerOperate=} [properties] Properties to set
  10820. */
  10821. function CGPlayerOperate(properties) {
  10822. this.cardList = [];
  10823. if (properties)
  10824. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  10825. if (properties[keys[i]] != null)
  10826. this[keys[i]] = properties[keys[i]];
  10827. }
  10828. /**
  10829. * CGPlayerOperate operation.
  10830. * @member {guandan.IOperation} operation
  10831. * @memberof guandan.CGPlayerOperate
  10832. * @instance
  10833. */
  10834. CGPlayerOperate.prototype.operation = null;
  10835. /**
  10836. * CGPlayerOperate cardList.
  10837. * @member {Array.<number>} cardList
  10838. * @memberof guandan.CGPlayerOperate
  10839. * @instance
  10840. */
  10841. CGPlayerOperate.prototype.cardList = $util.emptyArray;
  10842. /**
  10843. * Creates a new CGPlayerOperate instance using the specified properties.
  10844. * @function create
  10845. * @memberof guandan.CGPlayerOperate
  10846. * @static
  10847. * @param {guandan.ICGPlayerOperate=} [properties] Properties to set
  10848. * @returns {guandan.CGPlayerOperate} CGPlayerOperate instance
  10849. */
  10850. CGPlayerOperate.create = function create(properties) {
  10851. return new CGPlayerOperate(properties);
  10852. };
  10853. /**
  10854. * Encodes the specified CGPlayerOperate message. Does not implicitly {@link guandan.CGPlayerOperate.verify|verify} messages.
  10855. * @function encode
  10856. * @memberof guandan.CGPlayerOperate
  10857. * @static
  10858. * @param {guandan.ICGPlayerOperate} message CGPlayerOperate message or plain object to encode
  10859. * @param {$protobuf.Writer} [writer] Writer to encode to
  10860. * @returns {$protobuf.Writer} Writer
  10861. */
  10862. CGPlayerOperate.encode = function encode(message, writer) {
  10863. if (!writer)
  10864. writer = $Writer.create();
  10865. $root.guandan.Operation.encode(message.operation, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
  10866. if (message.cardList != null && message.cardList.length)
  10867. for (var i = 0; i < message.cardList.length; ++i)
  10868. writer.uint32(/* id 2, wireType 0 =*/16).int32(message.cardList[i]);
  10869. return writer;
  10870. };
  10871. /**
  10872. * Encodes the specified CGPlayerOperate message, length delimited. Does not implicitly {@link guandan.CGPlayerOperate.verify|verify} messages.
  10873. * @function encodeDelimited
  10874. * @memberof guandan.CGPlayerOperate
  10875. * @static
  10876. * @param {guandan.ICGPlayerOperate} message CGPlayerOperate message or plain object to encode
  10877. * @param {$protobuf.Writer} [writer] Writer to encode to
  10878. * @returns {$protobuf.Writer} Writer
  10879. */
  10880. CGPlayerOperate.encodeDelimited = function encodeDelimited(message, writer) {
  10881. return this.encode(message, writer).ldelim();
  10882. };
  10883. /**
  10884. * Decodes a CGPlayerOperate message from the specified reader or buffer.
  10885. * @function decode
  10886. * @memberof guandan.CGPlayerOperate
  10887. * @static
  10888. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  10889. * @param {number} [length] Message length if known beforehand
  10890. * @returns {guandan.CGPlayerOperate} CGPlayerOperate
  10891. * @throws {Error} If the payload is not a reader or valid buffer
  10892. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  10893. */
  10894. CGPlayerOperate.decode = function decode(reader, length) {
  10895. if (!(reader instanceof $Reader))
  10896. reader = $Reader.create(reader);
  10897. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.CGPlayerOperate();
  10898. while (reader.pos < end) {
  10899. var tag = reader.uint32();
  10900. switch (tag >>> 3) {
  10901. case 1:
  10902. message.operation = $root.guandan.Operation.decode(reader, reader.uint32());
  10903. break;
  10904. case 2:
  10905. if (!(message.cardList && message.cardList.length))
  10906. message.cardList = [];
  10907. if ((tag & 7) === 2) {
  10908. var end2 = reader.uint32() + reader.pos;
  10909. while (reader.pos < end2)
  10910. message.cardList.push(reader.int32());
  10911. } else
  10912. message.cardList.push(reader.int32());
  10913. break;
  10914. default:
  10915. reader.skipType(tag & 7);
  10916. break;
  10917. }
  10918. }
  10919. if (!message.hasOwnProperty("operation"))
  10920. throw $util.ProtocolError("missing required 'operation'", { instance: message });
  10921. return message;
  10922. };
  10923. /**
  10924. * Decodes a CGPlayerOperate message from the specified reader or buffer, length delimited.
  10925. * @function decodeDelimited
  10926. * @memberof guandan.CGPlayerOperate
  10927. * @static
  10928. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  10929. * @returns {guandan.CGPlayerOperate} CGPlayerOperate
  10930. * @throws {Error} If the payload is not a reader or valid buffer
  10931. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  10932. */
  10933. CGPlayerOperate.decodeDelimited = function decodeDelimited(reader) {
  10934. if (!(reader instanceof $Reader))
  10935. reader = new $Reader(reader);
  10936. return this.decode(reader, reader.uint32());
  10937. };
  10938. /**
  10939. * Verifies a CGPlayerOperate message.
  10940. * @function verify
  10941. * @memberof guandan.CGPlayerOperate
  10942. * @static
  10943. * @param {Object.<string,*>} message Plain object to verify
  10944. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  10945. */
  10946. CGPlayerOperate.verify = function verify(message) {
  10947. if (typeof message !== "object" || message === null)
  10948. return "object expected";
  10949. {
  10950. var error = $root.guandan.Operation.verify(message.operation);
  10951. if (error)
  10952. return "operation." + error;
  10953. }
  10954. if (message.cardList != null && message.hasOwnProperty("cardList")) {
  10955. if (!Array.isArray(message.cardList))
  10956. return "cardList: array expected";
  10957. for (var i = 0; i < message.cardList.length; ++i)
  10958. if (!$util.isInteger(message.cardList[i]))
  10959. return "cardList: integer[] expected";
  10960. }
  10961. return null;
  10962. };
  10963. /**
  10964. * Creates a CGPlayerOperate message from a plain object. Also converts values to their respective internal types.
  10965. * @function fromObject
  10966. * @memberof guandan.CGPlayerOperate
  10967. * @static
  10968. * @param {Object.<string,*>} object Plain object
  10969. * @returns {guandan.CGPlayerOperate} CGPlayerOperate
  10970. */
  10971. CGPlayerOperate.fromObject = function fromObject(object) {
  10972. if (object instanceof $root.guandan.CGPlayerOperate)
  10973. return object;
  10974. var message = new $root.guandan.CGPlayerOperate();
  10975. if (object.operation != null) {
  10976. if (typeof object.operation !== "object")
  10977. throw TypeError(".guandan.CGPlayerOperate.operation: object expected");
  10978. message.operation = $root.guandan.Operation.fromObject(object.operation);
  10979. }
  10980. if (object.cardList) {
  10981. if (!Array.isArray(object.cardList))
  10982. throw TypeError(".guandan.CGPlayerOperate.cardList: array expected");
  10983. message.cardList = [];
  10984. for (var i = 0; i < object.cardList.length; ++i)
  10985. message.cardList[i] = object.cardList[i] | 0;
  10986. }
  10987. return message;
  10988. };
  10989. /**
  10990. * Creates a plain object from a CGPlayerOperate message. Also converts values to other types if specified.
  10991. * @function toObject
  10992. * @memberof guandan.CGPlayerOperate
  10993. * @static
  10994. * @param {guandan.CGPlayerOperate} message CGPlayerOperate
  10995. * @param {$protobuf.IConversionOptions} [options] Conversion options
  10996. * @returns {Object.<string,*>} Plain object
  10997. */
  10998. CGPlayerOperate.toObject = function toObject(message, options) {
  10999. if (!options)
  11000. options = {};
  11001. var object = {};
  11002. if (options.arrays || options.defaults)
  11003. object.cardList = [];
  11004. if (options.defaults)
  11005. object.operation = null;
  11006. if (message.operation != null && message.hasOwnProperty("operation"))
  11007. object.operation = $root.guandan.Operation.toObject(message.operation, options);
  11008. if (message.cardList && message.cardList.length) {
  11009. object.cardList = [];
  11010. for (var j = 0; j < message.cardList.length; ++j)
  11011. object.cardList[j] = message.cardList[j];
  11012. }
  11013. return object;
  11014. };
  11015. /**
  11016. * Converts this CGPlayerOperate to JSON.
  11017. * @function toJSON
  11018. * @memberof guandan.CGPlayerOperate
  11019. * @instance
  11020. * @returns {Object.<string,*>} JSON object
  11021. */
  11022. CGPlayerOperate.prototype.toJSON = function toJSON() {
  11023. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  11024. };
  11025. return CGPlayerOperate;
  11026. })();
  11027. guandan.GCClear = (function() {
  11028. /**
  11029. * Properties of a GCClear.
  11030. * @memberof guandan
  11031. * @interface IGCClear
  11032. */
  11033. /**
  11034. * Constructs a new GCClear.
  11035. * @memberof guandan
  11036. * @classdesc Represents a GCClear.
  11037. * @implements IGCClear
  11038. * @constructor
  11039. * @param {guandan.IGCClear=} [properties] Properties to set
  11040. */
  11041. function GCClear(properties) {
  11042. if (properties)
  11043. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  11044. if (properties[keys[i]] != null)
  11045. this[keys[i]] = properties[keys[i]];
  11046. }
  11047. /**
  11048. * Creates a new GCClear instance using the specified properties.
  11049. * @function create
  11050. * @memberof guandan.GCClear
  11051. * @static
  11052. * @param {guandan.IGCClear=} [properties] Properties to set
  11053. * @returns {guandan.GCClear} GCClear instance
  11054. */
  11055. GCClear.create = function create(properties) {
  11056. return new GCClear(properties);
  11057. };
  11058. /**
  11059. * Encodes the specified GCClear message. Does not implicitly {@link guandan.GCClear.verify|verify} messages.
  11060. * @function encode
  11061. * @memberof guandan.GCClear
  11062. * @static
  11063. * @param {guandan.IGCClear} message GCClear message or plain object to encode
  11064. * @param {$protobuf.Writer} [writer] Writer to encode to
  11065. * @returns {$protobuf.Writer} Writer
  11066. */
  11067. GCClear.encode = function encode(message, writer) {
  11068. if (!writer)
  11069. writer = $Writer.create();
  11070. return writer;
  11071. };
  11072. /**
  11073. * Encodes the specified GCClear message, length delimited. Does not implicitly {@link guandan.GCClear.verify|verify} messages.
  11074. * @function encodeDelimited
  11075. * @memberof guandan.GCClear
  11076. * @static
  11077. * @param {guandan.IGCClear} message GCClear message or plain object to encode
  11078. * @param {$protobuf.Writer} [writer] Writer to encode to
  11079. * @returns {$protobuf.Writer} Writer
  11080. */
  11081. GCClear.encodeDelimited = function encodeDelimited(message, writer) {
  11082. return this.encode(message, writer).ldelim();
  11083. };
  11084. /**
  11085. * Decodes a GCClear message from the specified reader or buffer.
  11086. * @function decode
  11087. * @memberof guandan.GCClear
  11088. * @static
  11089. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  11090. * @param {number} [length] Message length if known beforehand
  11091. * @returns {guandan.GCClear} GCClear
  11092. * @throws {Error} If the payload is not a reader or valid buffer
  11093. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  11094. */
  11095. GCClear.decode = function decode(reader, length) {
  11096. if (!(reader instanceof $Reader))
  11097. reader = $Reader.create(reader);
  11098. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCClear();
  11099. while (reader.pos < end) {
  11100. var tag = reader.uint32();
  11101. switch (tag >>> 3) {
  11102. default:
  11103. reader.skipType(tag & 7);
  11104. break;
  11105. }
  11106. }
  11107. return message;
  11108. };
  11109. /**
  11110. * Decodes a GCClear message from the specified reader or buffer, length delimited.
  11111. * @function decodeDelimited
  11112. * @memberof guandan.GCClear
  11113. * @static
  11114. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  11115. * @returns {guandan.GCClear} GCClear
  11116. * @throws {Error} If the payload is not a reader or valid buffer
  11117. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  11118. */
  11119. GCClear.decodeDelimited = function decodeDelimited(reader) {
  11120. if (!(reader instanceof $Reader))
  11121. reader = new $Reader(reader);
  11122. return this.decode(reader, reader.uint32());
  11123. };
  11124. /**
  11125. * Verifies a GCClear message.
  11126. * @function verify
  11127. * @memberof guandan.GCClear
  11128. * @static
  11129. * @param {Object.<string,*>} message Plain object to verify
  11130. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  11131. */
  11132. GCClear.verify = function verify(message) {
  11133. if (typeof message !== "object" || message === null)
  11134. return "object expected";
  11135. return null;
  11136. };
  11137. /**
  11138. * Creates a GCClear message from a plain object. Also converts values to their respective internal types.
  11139. * @function fromObject
  11140. * @memberof guandan.GCClear
  11141. * @static
  11142. * @param {Object.<string,*>} object Plain object
  11143. * @returns {guandan.GCClear} GCClear
  11144. */
  11145. GCClear.fromObject = function fromObject(object) {
  11146. if (object instanceof $root.guandan.GCClear)
  11147. return object;
  11148. return new $root.guandan.GCClear();
  11149. };
  11150. /**
  11151. * Creates a plain object from a GCClear message. Also converts values to other types if specified.
  11152. * @function toObject
  11153. * @memberof guandan.GCClear
  11154. * @static
  11155. * @param {guandan.GCClear} message GCClear
  11156. * @param {$protobuf.IConversionOptions} [options] Conversion options
  11157. * @returns {Object.<string,*>} Plain object
  11158. */
  11159. GCClear.toObject = function toObject() {
  11160. return {};
  11161. };
  11162. /**
  11163. * Converts this GCClear to JSON.
  11164. * @function toJSON
  11165. * @memberof guandan.GCClear
  11166. * @instance
  11167. * @returns {Object.<string,*>} JSON object
  11168. */
  11169. GCClear.prototype.toJSON = function toJSON() {
  11170. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  11171. };
  11172. return GCClear;
  11173. })();
  11174. guandan.GCReconnectPlayer = (function() {
  11175. /**
  11176. * Properties of a GCReconnectPlayer.
  11177. * @memberof guandan
  11178. * @interface IGCReconnectPlayer
  11179. * @property {number|Long} playerId GCReconnectPlayer playerId
  11180. */
  11181. /**
  11182. * Constructs a new GCReconnectPlayer.
  11183. * @memberof guandan
  11184. * @classdesc Represents a GCReconnectPlayer.
  11185. * @implements IGCReconnectPlayer
  11186. * @constructor
  11187. * @param {guandan.IGCReconnectPlayer=} [properties] Properties to set
  11188. */
  11189. function GCReconnectPlayer(properties) {
  11190. if (properties)
  11191. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  11192. if (properties[keys[i]] != null)
  11193. this[keys[i]] = properties[keys[i]];
  11194. }
  11195. /**
  11196. * GCReconnectPlayer playerId.
  11197. * @member {number|Long} playerId
  11198. * @memberof guandan.GCReconnectPlayer
  11199. * @instance
  11200. */
  11201. GCReconnectPlayer.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  11202. /**
  11203. * Creates a new GCReconnectPlayer instance using the specified properties.
  11204. * @function create
  11205. * @memberof guandan.GCReconnectPlayer
  11206. * @static
  11207. * @param {guandan.IGCReconnectPlayer=} [properties] Properties to set
  11208. * @returns {guandan.GCReconnectPlayer} GCReconnectPlayer instance
  11209. */
  11210. GCReconnectPlayer.create = function create(properties) {
  11211. return new GCReconnectPlayer(properties);
  11212. };
  11213. /**
  11214. * Encodes the specified GCReconnectPlayer message. Does not implicitly {@link guandan.GCReconnectPlayer.verify|verify} messages.
  11215. * @function encode
  11216. * @memberof guandan.GCReconnectPlayer
  11217. * @static
  11218. * @param {guandan.IGCReconnectPlayer} message GCReconnectPlayer message or plain object to encode
  11219. * @param {$protobuf.Writer} [writer] Writer to encode to
  11220. * @returns {$protobuf.Writer} Writer
  11221. */
  11222. GCReconnectPlayer.encode = function encode(message, writer) {
  11223. if (!writer)
  11224. writer = $Writer.create();
  11225. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
  11226. return writer;
  11227. };
  11228. /**
  11229. * Encodes the specified GCReconnectPlayer message, length delimited. Does not implicitly {@link guandan.GCReconnectPlayer.verify|verify} messages.
  11230. * @function encodeDelimited
  11231. * @memberof guandan.GCReconnectPlayer
  11232. * @static
  11233. * @param {guandan.IGCReconnectPlayer} message GCReconnectPlayer message or plain object to encode
  11234. * @param {$protobuf.Writer} [writer] Writer to encode to
  11235. * @returns {$protobuf.Writer} Writer
  11236. */
  11237. GCReconnectPlayer.encodeDelimited = function encodeDelimited(message, writer) {
  11238. return this.encode(message, writer).ldelim();
  11239. };
  11240. /**
  11241. * Decodes a GCReconnectPlayer message from the specified reader or buffer.
  11242. * @function decode
  11243. * @memberof guandan.GCReconnectPlayer
  11244. * @static
  11245. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  11246. * @param {number} [length] Message length if known beforehand
  11247. * @returns {guandan.GCReconnectPlayer} GCReconnectPlayer
  11248. * @throws {Error} If the payload is not a reader or valid buffer
  11249. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  11250. */
  11251. GCReconnectPlayer.decode = function decode(reader, length) {
  11252. if (!(reader instanceof $Reader))
  11253. reader = $Reader.create(reader);
  11254. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCReconnectPlayer();
  11255. while (reader.pos < end) {
  11256. var tag = reader.uint32();
  11257. switch (tag >>> 3) {
  11258. case 1:
  11259. message.playerId = reader.int64();
  11260. break;
  11261. default:
  11262. reader.skipType(tag & 7);
  11263. break;
  11264. }
  11265. }
  11266. if (!message.hasOwnProperty("playerId"))
  11267. throw $util.ProtocolError("missing required 'playerId'", { instance: message });
  11268. return message;
  11269. };
  11270. /**
  11271. * Decodes a GCReconnectPlayer message from the specified reader or buffer, length delimited.
  11272. * @function decodeDelimited
  11273. * @memberof guandan.GCReconnectPlayer
  11274. * @static
  11275. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  11276. * @returns {guandan.GCReconnectPlayer} GCReconnectPlayer
  11277. * @throws {Error} If the payload is not a reader or valid buffer
  11278. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  11279. */
  11280. GCReconnectPlayer.decodeDelimited = function decodeDelimited(reader) {
  11281. if (!(reader instanceof $Reader))
  11282. reader = new $Reader(reader);
  11283. return this.decode(reader, reader.uint32());
  11284. };
  11285. /**
  11286. * Verifies a GCReconnectPlayer message.
  11287. * @function verify
  11288. * @memberof guandan.GCReconnectPlayer
  11289. * @static
  11290. * @param {Object.<string,*>} message Plain object to verify
  11291. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  11292. */
  11293. GCReconnectPlayer.verify = function verify(message) {
  11294. if (typeof message !== "object" || message === null)
  11295. return "object expected";
  11296. if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
  11297. return "playerId: integer|Long expected";
  11298. return null;
  11299. };
  11300. /**
  11301. * Creates a GCReconnectPlayer message from a plain object. Also converts values to their respective internal types.
  11302. * @function fromObject
  11303. * @memberof guandan.GCReconnectPlayer
  11304. * @static
  11305. * @param {Object.<string,*>} object Plain object
  11306. * @returns {guandan.GCReconnectPlayer} GCReconnectPlayer
  11307. */
  11308. GCReconnectPlayer.fromObject = function fromObject(object) {
  11309. if (object instanceof $root.guandan.GCReconnectPlayer)
  11310. return object;
  11311. var message = new $root.guandan.GCReconnectPlayer();
  11312. if (object.playerId != null)
  11313. if ($util.Long)
  11314. (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
  11315. else if (typeof object.playerId === "string")
  11316. message.playerId = parseInt(object.playerId, 10);
  11317. else if (typeof object.playerId === "number")
  11318. message.playerId = object.playerId;
  11319. else if (typeof object.playerId === "object")
  11320. message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
  11321. return message;
  11322. };
  11323. /**
  11324. * Creates a plain object from a GCReconnectPlayer message. Also converts values to other types if specified.
  11325. * @function toObject
  11326. * @memberof guandan.GCReconnectPlayer
  11327. * @static
  11328. * @param {guandan.GCReconnectPlayer} message GCReconnectPlayer
  11329. * @param {$protobuf.IConversionOptions} [options] Conversion options
  11330. * @returns {Object.<string,*>} Plain object
  11331. */
  11332. GCReconnectPlayer.toObject = function toObject(message, options) {
  11333. if (!options)
  11334. options = {};
  11335. var object = {};
  11336. if (options.defaults)
  11337. if ($util.Long) {
  11338. var long = new $util.Long(0, 0, false);
  11339. object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  11340. } else
  11341. object.playerId = options.longs === String ? "0" : 0;
  11342. if (message.playerId != null && message.hasOwnProperty("playerId"))
  11343. if (typeof message.playerId === "number")
  11344. object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
  11345. else
  11346. object.playerId = options.longs === String ? $util.Long.prototype.toString.call(message.playerId) : options.longs === Number ? new $util.LongBits(message.playerId.low >>> 0, message.playerId.high >>> 0).toNumber() : message.playerId;
  11347. return object;
  11348. };
  11349. /**
  11350. * Converts this GCReconnectPlayer to JSON.
  11351. * @function toJSON
  11352. * @memberof guandan.GCReconnectPlayer
  11353. * @instance
  11354. * @returns {Object.<string,*>} JSON object
  11355. */
  11356. GCReconnectPlayer.prototype.toJSON = function toJSON() {
  11357. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  11358. };
  11359. return GCReconnectPlayer;
  11360. })();
  11361. guandan.GCDisconnectPlayer = (function() {
  11362. /**
  11363. * Properties of a GCDisconnectPlayer.
  11364. * @memberof guandan
  11365. * @interface IGCDisconnectPlayer
  11366. * @property {number|Long} playerId GCDisconnectPlayer playerId
  11367. */
  11368. /**
  11369. * Constructs a new GCDisconnectPlayer.
  11370. * @memberof guandan
  11371. * @classdesc Represents a GCDisconnectPlayer.
  11372. * @implements IGCDisconnectPlayer
  11373. * @constructor
  11374. * @param {guandan.IGCDisconnectPlayer=} [properties] Properties to set
  11375. */
  11376. function GCDisconnectPlayer(properties) {
  11377. if (properties)
  11378. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  11379. if (properties[keys[i]] != null)
  11380. this[keys[i]] = properties[keys[i]];
  11381. }
  11382. /**
  11383. * GCDisconnectPlayer playerId.
  11384. * @member {number|Long} playerId
  11385. * @memberof guandan.GCDisconnectPlayer
  11386. * @instance
  11387. */
  11388. GCDisconnectPlayer.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  11389. /**
  11390. * Creates a new GCDisconnectPlayer instance using the specified properties.
  11391. * @function create
  11392. * @memberof guandan.GCDisconnectPlayer
  11393. * @static
  11394. * @param {guandan.IGCDisconnectPlayer=} [properties] Properties to set
  11395. * @returns {guandan.GCDisconnectPlayer} GCDisconnectPlayer instance
  11396. */
  11397. GCDisconnectPlayer.create = function create(properties) {
  11398. return new GCDisconnectPlayer(properties);
  11399. };
  11400. /**
  11401. * Encodes the specified GCDisconnectPlayer message. Does not implicitly {@link guandan.GCDisconnectPlayer.verify|verify} messages.
  11402. * @function encode
  11403. * @memberof guandan.GCDisconnectPlayer
  11404. * @static
  11405. * @param {guandan.IGCDisconnectPlayer} message GCDisconnectPlayer message or plain object to encode
  11406. * @param {$protobuf.Writer} [writer] Writer to encode to
  11407. * @returns {$protobuf.Writer} Writer
  11408. */
  11409. GCDisconnectPlayer.encode = function encode(message, writer) {
  11410. if (!writer)
  11411. writer = $Writer.create();
  11412. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
  11413. return writer;
  11414. };
  11415. /**
  11416. * Encodes the specified GCDisconnectPlayer message, length delimited. Does not implicitly {@link guandan.GCDisconnectPlayer.verify|verify} messages.
  11417. * @function encodeDelimited
  11418. * @memberof guandan.GCDisconnectPlayer
  11419. * @static
  11420. * @param {guandan.IGCDisconnectPlayer} message GCDisconnectPlayer message or plain object to encode
  11421. * @param {$protobuf.Writer} [writer] Writer to encode to
  11422. * @returns {$protobuf.Writer} Writer
  11423. */
  11424. GCDisconnectPlayer.encodeDelimited = function encodeDelimited(message, writer) {
  11425. return this.encode(message, writer).ldelim();
  11426. };
  11427. /**
  11428. * Decodes a GCDisconnectPlayer message from the specified reader or buffer.
  11429. * @function decode
  11430. * @memberof guandan.GCDisconnectPlayer
  11431. * @static
  11432. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  11433. * @param {number} [length] Message length if known beforehand
  11434. * @returns {guandan.GCDisconnectPlayer} GCDisconnectPlayer
  11435. * @throws {Error} If the payload is not a reader or valid buffer
  11436. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  11437. */
  11438. GCDisconnectPlayer.decode = function decode(reader, length) {
  11439. if (!(reader instanceof $Reader))
  11440. reader = $Reader.create(reader);
  11441. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCDisconnectPlayer();
  11442. while (reader.pos < end) {
  11443. var tag = reader.uint32();
  11444. switch (tag >>> 3) {
  11445. case 1:
  11446. message.playerId = reader.int64();
  11447. break;
  11448. default:
  11449. reader.skipType(tag & 7);
  11450. break;
  11451. }
  11452. }
  11453. if (!message.hasOwnProperty("playerId"))
  11454. throw $util.ProtocolError("missing required 'playerId'", { instance: message });
  11455. return message;
  11456. };
  11457. /**
  11458. * Decodes a GCDisconnectPlayer message from the specified reader or buffer, length delimited.
  11459. * @function decodeDelimited
  11460. * @memberof guandan.GCDisconnectPlayer
  11461. * @static
  11462. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  11463. * @returns {guandan.GCDisconnectPlayer} GCDisconnectPlayer
  11464. * @throws {Error} If the payload is not a reader or valid buffer
  11465. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  11466. */
  11467. GCDisconnectPlayer.decodeDelimited = function decodeDelimited(reader) {
  11468. if (!(reader instanceof $Reader))
  11469. reader = new $Reader(reader);
  11470. return this.decode(reader, reader.uint32());
  11471. };
  11472. /**
  11473. * Verifies a GCDisconnectPlayer message.
  11474. * @function verify
  11475. * @memberof guandan.GCDisconnectPlayer
  11476. * @static
  11477. * @param {Object.<string,*>} message Plain object to verify
  11478. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  11479. */
  11480. GCDisconnectPlayer.verify = function verify(message) {
  11481. if (typeof message !== "object" || message === null)
  11482. return "object expected";
  11483. if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
  11484. return "playerId: integer|Long expected";
  11485. return null;
  11486. };
  11487. /**
  11488. * Creates a GCDisconnectPlayer message from a plain object. Also converts values to their respective internal types.
  11489. * @function fromObject
  11490. * @memberof guandan.GCDisconnectPlayer
  11491. * @static
  11492. * @param {Object.<string,*>} object Plain object
  11493. * @returns {guandan.GCDisconnectPlayer} GCDisconnectPlayer
  11494. */
  11495. GCDisconnectPlayer.fromObject = function fromObject(object) {
  11496. if (object instanceof $root.guandan.GCDisconnectPlayer)
  11497. return object;
  11498. var message = new $root.guandan.GCDisconnectPlayer();
  11499. if (object.playerId != null)
  11500. if ($util.Long)
  11501. (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
  11502. else if (typeof object.playerId === "string")
  11503. message.playerId = parseInt(object.playerId, 10);
  11504. else if (typeof object.playerId === "number")
  11505. message.playerId = object.playerId;
  11506. else if (typeof object.playerId === "object")
  11507. message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
  11508. return message;
  11509. };
  11510. /**
  11511. * Creates a plain object from a GCDisconnectPlayer message. Also converts values to other types if specified.
  11512. * @function toObject
  11513. * @memberof guandan.GCDisconnectPlayer
  11514. * @static
  11515. * @param {guandan.GCDisconnectPlayer} message GCDisconnectPlayer
  11516. * @param {$protobuf.IConversionOptions} [options] Conversion options
  11517. * @returns {Object.<string,*>} Plain object
  11518. */
  11519. GCDisconnectPlayer.toObject = function toObject(message, options) {
  11520. if (!options)
  11521. options = {};
  11522. var object = {};
  11523. if (options.defaults)
  11524. if ($util.Long) {
  11525. var long = new $util.Long(0, 0, false);
  11526. object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  11527. } else
  11528. object.playerId = options.longs === String ? "0" : 0;
  11529. if (message.playerId != null && message.hasOwnProperty("playerId"))
  11530. if (typeof message.playerId === "number")
  11531. object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
  11532. else
  11533. object.playerId = options.longs === String ? $util.Long.prototype.toString.call(message.playerId) : options.longs === Number ? new $util.LongBits(message.playerId.low >>> 0, message.playerId.high >>> 0).toNumber() : message.playerId;
  11534. return object;
  11535. };
  11536. /**
  11537. * Converts this GCDisconnectPlayer to JSON.
  11538. * @function toJSON
  11539. * @memberof guandan.GCDisconnectPlayer
  11540. * @instance
  11541. * @returns {Object.<string,*>} JSON object
  11542. */
  11543. GCDisconnectPlayer.prototype.toJSON = function toJSON() {
  11544. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  11545. };
  11546. return GCDisconnectPlayer;
  11547. })();
  11548. guandan.CGPlayerLeave = (function() {
  11549. /**
  11550. * Properties of a CGPlayerLeave.
  11551. * @memberof guandan
  11552. * @interface ICGPlayerLeave
  11553. */
  11554. /**
  11555. * Constructs a new CGPlayerLeave.
  11556. * @memberof guandan
  11557. * @classdesc Represents a CGPlayerLeave.
  11558. * @implements ICGPlayerLeave
  11559. * @constructor
  11560. * @param {guandan.ICGPlayerLeave=} [properties] Properties to set
  11561. */
  11562. function CGPlayerLeave(properties) {
  11563. if (properties)
  11564. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  11565. if (properties[keys[i]] != null)
  11566. this[keys[i]] = properties[keys[i]];
  11567. }
  11568. /**
  11569. * Creates a new CGPlayerLeave instance using the specified properties.
  11570. * @function create
  11571. * @memberof guandan.CGPlayerLeave
  11572. * @static
  11573. * @param {guandan.ICGPlayerLeave=} [properties] Properties to set
  11574. * @returns {guandan.CGPlayerLeave} CGPlayerLeave instance
  11575. */
  11576. CGPlayerLeave.create = function create(properties) {
  11577. return new CGPlayerLeave(properties);
  11578. };
  11579. /**
  11580. * Encodes the specified CGPlayerLeave message. Does not implicitly {@link guandan.CGPlayerLeave.verify|verify} messages.
  11581. * @function encode
  11582. * @memberof guandan.CGPlayerLeave
  11583. * @static
  11584. * @param {guandan.ICGPlayerLeave} message CGPlayerLeave message or plain object to encode
  11585. * @param {$protobuf.Writer} [writer] Writer to encode to
  11586. * @returns {$protobuf.Writer} Writer
  11587. */
  11588. CGPlayerLeave.encode = function encode(message, writer) {
  11589. if (!writer)
  11590. writer = $Writer.create();
  11591. return writer;
  11592. };
  11593. /**
  11594. * Encodes the specified CGPlayerLeave message, length delimited. Does not implicitly {@link guandan.CGPlayerLeave.verify|verify} messages.
  11595. * @function encodeDelimited
  11596. * @memberof guandan.CGPlayerLeave
  11597. * @static
  11598. * @param {guandan.ICGPlayerLeave} message CGPlayerLeave message or plain object to encode
  11599. * @param {$protobuf.Writer} [writer] Writer to encode to
  11600. * @returns {$protobuf.Writer} Writer
  11601. */
  11602. CGPlayerLeave.encodeDelimited = function encodeDelimited(message, writer) {
  11603. return this.encode(message, writer).ldelim();
  11604. };
  11605. /**
  11606. * Decodes a CGPlayerLeave message from the specified reader or buffer.
  11607. * @function decode
  11608. * @memberof guandan.CGPlayerLeave
  11609. * @static
  11610. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  11611. * @param {number} [length] Message length if known beforehand
  11612. * @returns {guandan.CGPlayerLeave} CGPlayerLeave
  11613. * @throws {Error} If the payload is not a reader or valid buffer
  11614. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  11615. */
  11616. CGPlayerLeave.decode = function decode(reader, length) {
  11617. if (!(reader instanceof $Reader))
  11618. reader = $Reader.create(reader);
  11619. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.CGPlayerLeave();
  11620. while (reader.pos < end) {
  11621. var tag = reader.uint32();
  11622. switch (tag >>> 3) {
  11623. default:
  11624. reader.skipType(tag & 7);
  11625. break;
  11626. }
  11627. }
  11628. return message;
  11629. };
  11630. /**
  11631. * Decodes a CGPlayerLeave message from the specified reader or buffer, length delimited.
  11632. * @function decodeDelimited
  11633. * @memberof guandan.CGPlayerLeave
  11634. * @static
  11635. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  11636. * @returns {guandan.CGPlayerLeave} CGPlayerLeave
  11637. * @throws {Error} If the payload is not a reader or valid buffer
  11638. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  11639. */
  11640. CGPlayerLeave.decodeDelimited = function decodeDelimited(reader) {
  11641. if (!(reader instanceof $Reader))
  11642. reader = new $Reader(reader);
  11643. return this.decode(reader, reader.uint32());
  11644. };
  11645. /**
  11646. * Verifies a CGPlayerLeave message.
  11647. * @function verify
  11648. * @memberof guandan.CGPlayerLeave
  11649. * @static
  11650. * @param {Object.<string,*>} message Plain object to verify
  11651. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  11652. */
  11653. CGPlayerLeave.verify = function verify(message) {
  11654. if (typeof message !== "object" || message === null)
  11655. return "object expected";
  11656. return null;
  11657. };
  11658. /**
  11659. * Creates a CGPlayerLeave message from a plain object. Also converts values to their respective internal types.
  11660. * @function fromObject
  11661. * @memberof guandan.CGPlayerLeave
  11662. * @static
  11663. * @param {Object.<string,*>} object Plain object
  11664. * @returns {guandan.CGPlayerLeave} CGPlayerLeave
  11665. */
  11666. CGPlayerLeave.fromObject = function fromObject(object) {
  11667. if (object instanceof $root.guandan.CGPlayerLeave)
  11668. return object;
  11669. return new $root.guandan.CGPlayerLeave();
  11670. };
  11671. /**
  11672. * Creates a plain object from a CGPlayerLeave message. Also converts values to other types if specified.
  11673. * @function toObject
  11674. * @memberof guandan.CGPlayerLeave
  11675. * @static
  11676. * @param {guandan.CGPlayerLeave} message CGPlayerLeave
  11677. * @param {$protobuf.IConversionOptions} [options] Conversion options
  11678. * @returns {Object.<string,*>} Plain object
  11679. */
  11680. CGPlayerLeave.toObject = function toObject() {
  11681. return {};
  11682. };
  11683. /**
  11684. * Converts this CGPlayerLeave to JSON.
  11685. * @function toJSON
  11686. * @memberof guandan.CGPlayerLeave
  11687. * @instance
  11688. * @returns {Object.<string,*>} JSON object
  11689. */
  11690. CGPlayerLeave.prototype.toJSON = function toJSON() {
  11691. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  11692. };
  11693. return CGPlayerLeave;
  11694. })();
  11695. guandan.GCPlayerLeave = (function() {
  11696. /**
  11697. * Properties of a GCPlayerLeave.
  11698. * @memberof guandan
  11699. * @interface IGCPlayerLeave
  11700. * @property {number|Long} playerId GCPlayerLeave playerId
  11701. */
  11702. /**
  11703. * Constructs a new GCPlayerLeave.
  11704. * @memberof guandan
  11705. * @classdesc Represents a GCPlayerLeave.
  11706. * @implements IGCPlayerLeave
  11707. * @constructor
  11708. * @param {guandan.IGCPlayerLeave=} [properties] Properties to set
  11709. */
  11710. function GCPlayerLeave(properties) {
  11711. if (properties)
  11712. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  11713. if (properties[keys[i]] != null)
  11714. this[keys[i]] = properties[keys[i]];
  11715. }
  11716. /**
  11717. * GCPlayerLeave playerId.
  11718. * @member {number|Long} playerId
  11719. * @memberof guandan.GCPlayerLeave
  11720. * @instance
  11721. */
  11722. GCPlayerLeave.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  11723. /**
  11724. * Creates a new GCPlayerLeave instance using the specified properties.
  11725. * @function create
  11726. * @memberof guandan.GCPlayerLeave
  11727. * @static
  11728. * @param {guandan.IGCPlayerLeave=} [properties] Properties to set
  11729. * @returns {guandan.GCPlayerLeave} GCPlayerLeave instance
  11730. */
  11731. GCPlayerLeave.create = function create(properties) {
  11732. return new GCPlayerLeave(properties);
  11733. };
  11734. /**
  11735. * Encodes the specified GCPlayerLeave message. Does not implicitly {@link guandan.GCPlayerLeave.verify|verify} messages.
  11736. * @function encode
  11737. * @memberof guandan.GCPlayerLeave
  11738. * @static
  11739. * @param {guandan.IGCPlayerLeave} message GCPlayerLeave message or plain object to encode
  11740. * @param {$protobuf.Writer} [writer] Writer to encode to
  11741. * @returns {$protobuf.Writer} Writer
  11742. */
  11743. GCPlayerLeave.encode = function encode(message, writer) {
  11744. if (!writer)
  11745. writer = $Writer.create();
  11746. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
  11747. return writer;
  11748. };
  11749. /**
  11750. * Encodes the specified GCPlayerLeave message, length delimited. Does not implicitly {@link guandan.GCPlayerLeave.verify|verify} messages.
  11751. * @function encodeDelimited
  11752. * @memberof guandan.GCPlayerLeave
  11753. * @static
  11754. * @param {guandan.IGCPlayerLeave} message GCPlayerLeave message or plain object to encode
  11755. * @param {$protobuf.Writer} [writer] Writer to encode to
  11756. * @returns {$protobuf.Writer} Writer
  11757. */
  11758. GCPlayerLeave.encodeDelimited = function encodeDelimited(message, writer) {
  11759. return this.encode(message, writer).ldelim();
  11760. };
  11761. /**
  11762. * Decodes a GCPlayerLeave message from the specified reader or buffer.
  11763. * @function decode
  11764. * @memberof guandan.GCPlayerLeave
  11765. * @static
  11766. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  11767. * @param {number} [length] Message length if known beforehand
  11768. * @returns {guandan.GCPlayerLeave} GCPlayerLeave
  11769. * @throws {Error} If the payload is not a reader or valid buffer
  11770. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  11771. */
  11772. GCPlayerLeave.decode = function decode(reader, length) {
  11773. if (!(reader instanceof $Reader))
  11774. reader = $Reader.create(reader);
  11775. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCPlayerLeave();
  11776. while (reader.pos < end) {
  11777. var tag = reader.uint32();
  11778. switch (tag >>> 3) {
  11779. case 1:
  11780. message.playerId = reader.int64();
  11781. break;
  11782. default:
  11783. reader.skipType(tag & 7);
  11784. break;
  11785. }
  11786. }
  11787. if (!message.hasOwnProperty("playerId"))
  11788. throw $util.ProtocolError("missing required 'playerId'", { instance: message });
  11789. return message;
  11790. };
  11791. /**
  11792. * Decodes a GCPlayerLeave message from the specified reader or buffer, length delimited.
  11793. * @function decodeDelimited
  11794. * @memberof guandan.GCPlayerLeave
  11795. * @static
  11796. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  11797. * @returns {guandan.GCPlayerLeave} GCPlayerLeave
  11798. * @throws {Error} If the payload is not a reader or valid buffer
  11799. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  11800. */
  11801. GCPlayerLeave.decodeDelimited = function decodeDelimited(reader) {
  11802. if (!(reader instanceof $Reader))
  11803. reader = new $Reader(reader);
  11804. return this.decode(reader, reader.uint32());
  11805. };
  11806. /**
  11807. * Verifies a GCPlayerLeave message.
  11808. * @function verify
  11809. * @memberof guandan.GCPlayerLeave
  11810. * @static
  11811. * @param {Object.<string,*>} message Plain object to verify
  11812. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  11813. */
  11814. GCPlayerLeave.verify = function verify(message) {
  11815. if (typeof message !== "object" || message === null)
  11816. return "object expected";
  11817. if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
  11818. return "playerId: integer|Long expected";
  11819. return null;
  11820. };
  11821. /**
  11822. * Creates a GCPlayerLeave message from a plain object. Also converts values to their respective internal types.
  11823. * @function fromObject
  11824. * @memberof guandan.GCPlayerLeave
  11825. * @static
  11826. * @param {Object.<string,*>} object Plain object
  11827. * @returns {guandan.GCPlayerLeave} GCPlayerLeave
  11828. */
  11829. GCPlayerLeave.fromObject = function fromObject(object) {
  11830. if (object instanceof $root.guandan.GCPlayerLeave)
  11831. return object;
  11832. var message = new $root.guandan.GCPlayerLeave();
  11833. if (object.playerId != null)
  11834. if ($util.Long)
  11835. (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
  11836. else if (typeof object.playerId === "string")
  11837. message.playerId = parseInt(object.playerId, 10);
  11838. else if (typeof object.playerId === "number")
  11839. message.playerId = object.playerId;
  11840. else if (typeof object.playerId === "object")
  11841. message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
  11842. return message;
  11843. };
  11844. /**
  11845. * Creates a plain object from a GCPlayerLeave message. Also converts values to other types if specified.
  11846. * @function toObject
  11847. * @memberof guandan.GCPlayerLeave
  11848. * @static
  11849. * @param {guandan.GCPlayerLeave} message GCPlayerLeave
  11850. * @param {$protobuf.IConversionOptions} [options] Conversion options
  11851. * @returns {Object.<string,*>} Plain object
  11852. */
  11853. GCPlayerLeave.toObject = function toObject(message, options) {
  11854. if (!options)
  11855. options = {};
  11856. var object = {};
  11857. if (options.defaults)
  11858. if ($util.Long) {
  11859. var long = new $util.Long(0, 0, false);
  11860. object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  11861. } else
  11862. object.playerId = options.longs === String ? "0" : 0;
  11863. if (message.playerId != null && message.hasOwnProperty("playerId"))
  11864. if (typeof message.playerId === "number")
  11865. object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
  11866. else
  11867. object.playerId = options.longs === String ? $util.Long.prototype.toString.call(message.playerId) : options.longs === Number ? new $util.LongBits(message.playerId.low >>> 0, message.playerId.high >>> 0).toNumber() : message.playerId;
  11868. return object;
  11869. };
  11870. /**
  11871. * Converts this GCPlayerLeave to JSON.
  11872. * @function toJSON
  11873. * @memberof guandan.GCPlayerLeave
  11874. * @instance
  11875. * @returns {Object.<string,*>} JSON object
  11876. */
  11877. GCPlayerLeave.prototype.toJSON = function toJSON() {
  11878. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  11879. };
  11880. return GCPlayerLeave;
  11881. })();
  11882. guandan.CGPlayerStart = (function() {
  11883. /**
  11884. * Properties of a CGPlayerStart.
  11885. * @memberof guandan
  11886. * @interface ICGPlayerStart
  11887. */
  11888. /**
  11889. * Constructs a new CGPlayerStart.
  11890. * @memberof guandan
  11891. * @classdesc Represents a CGPlayerStart.
  11892. * @implements ICGPlayerStart
  11893. * @constructor
  11894. * @param {guandan.ICGPlayerStart=} [properties] Properties to set
  11895. */
  11896. function CGPlayerStart(properties) {
  11897. if (properties)
  11898. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  11899. if (properties[keys[i]] != null)
  11900. this[keys[i]] = properties[keys[i]];
  11901. }
  11902. /**
  11903. * Creates a new CGPlayerStart instance using the specified properties.
  11904. * @function create
  11905. * @memberof guandan.CGPlayerStart
  11906. * @static
  11907. * @param {guandan.ICGPlayerStart=} [properties] Properties to set
  11908. * @returns {guandan.CGPlayerStart} CGPlayerStart instance
  11909. */
  11910. CGPlayerStart.create = function create(properties) {
  11911. return new CGPlayerStart(properties);
  11912. };
  11913. /**
  11914. * Encodes the specified CGPlayerStart message. Does not implicitly {@link guandan.CGPlayerStart.verify|verify} messages.
  11915. * @function encode
  11916. * @memberof guandan.CGPlayerStart
  11917. * @static
  11918. * @param {guandan.ICGPlayerStart} message CGPlayerStart message or plain object to encode
  11919. * @param {$protobuf.Writer} [writer] Writer to encode to
  11920. * @returns {$protobuf.Writer} Writer
  11921. */
  11922. CGPlayerStart.encode = function encode(message, writer) {
  11923. if (!writer)
  11924. writer = $Writer.create();
  11925. return writer;
  11926. };
  11927. /**
  11928. * Encodes the specified CGPlayerStart message, length delimited. Does not implicitly {@link guandan.CGPlayerStart.verify|verify} messages.
  11929. * @function encodeDelimited
  11930. * @memberof guandan.CGPlayerStart
  11931. * @static
  11932. * @param {guandan.ICGPlayerStart} message CGPlayerStart message or plain object to encode
  11933. * @param {$protobuf.Writer} [writer] Writer to encode to
  11934. * @returns {$protobuf.Writer} Writer
  11935. */
  11936. CGPlayerStart.encodeDelimited = function encodeDelimited(message, writer) {
  11937. return this.encode(message, writer).ldelim();
  11938. };
  11939. /**
  11940. * Decodes a CGPlayerStart message from the specified reader or buffer.
  11941. * @function decode
  11942. * @memberof guandan.CGPlayerStart
  11943. * @static
  11944. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  11945. * @param {number} [length] Message length if known beforehand
  11946. * @returns {guandan.CGPlayerStart} CGPlayerStart
  11947. * @throws {Error} If the payload is not a reader or valid buffer
  11948. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  11949. */
  11950. CGPlayerStart.decode = function decode(reader, length) {
  11951. if (!(reader instanceof $Reader))
  11952. reader = $Reader.create(reader);
  11953. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.CGPlayerStart();
  11954. while (reader.pos < end) {
  11955. var tag = reader.uint32();
  11956. switch (tag >>> 3) {
  11957. default:
  11958. reader.skipType(tag & 7);
  11959. break;
  11960. }
  11961. }
  11962. return message;
  11963. };
  11964. /**
  11965. * Decodes a CGPlayerStart message from the specified reader or buffer, length delimited.
  11966. * @function decodeDelimited
  11967. * @memberof guandan.CGPlayerStart
  11968. * @static
  11969. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  11970. * @returns {guandan.CGPlayerStart} CGPlayerStart
  11971. * @throws {Error} If the payload is not a reader or valid buffer
  11972. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  11973. */
  11974. CGPlayerStart.decodeDelimited = function decodeDelimited(reader) {
  11975. if (!(reader instanceof $Reader))
  11976. reader = new $Reader(reader);
  11977. return this.decode(reader, reader.uint32());
  11978. };
  11979. /**
  11980. * Verifies a CGPlayerStart message.
  11981. * @function verify
  11982. * @memberof guandan.CGPlayerStart
  11983. * @static
  11984. * @param {Object.<string,*>} message Plain object to verify
  11985. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  11986. */
  11987. CGPlayerStart.verify = function verify(message) {
  11988. if (typeof message !== "object" || message === null)
  11989. return "object expected";
  11990. return null;
  11991. };
  11992. /**
  11993. * Creates a CGPlayerStart message from a plain object. Also converts values to their respective internal types.
  11994. * @function fromObject
  11995. * @memberof guandan.CGPlayerStart
  11996. * @static
  11997. * @param {Object.<string,*>} object Plain object
  11998. * @returns {guandan.CGPlayerStart} CGPlayerStart
  11999. */
  12000. CGPlayerStart.fromObject = function fromObject(object) {
  12001. if (object instanceof $root.guandan.CGPlayerStart)
  12002. return object;
  12003. return new $root.guandan.CGPlayerStart();
  12004. };
  12005. /**
  12006. * Creates a plain object from a CGPlayerStart message. Also converts values to other types if specified.
  12007. * @function toObject
  12008. * @memberof guandan.CGPlayerStart
  12009. * @static
  12010. * @param {guandan.CGPlayerStart} message CGPlayerStart
  12011. * @param {$protobuf.IConversionOptions} [options] Conversion options
  12012. * @returns {Object.<string,*>} Plain object
  12013. */
  12014. CGPlayerStart.toObject = function toObject() {
  12015. return {};
  12016. };
  12017. /**
  12018. * Converts this CGPlayerStart to JSON.
  12019. * @function toJSON
  12020. * @memberof guandan.CGPlayerStart
  12021. * @instance
  12022. * @returns {Object.<string,*>} JSON object
  12023. */
  12024. CGPlayerStart.prototype.toJSON = function toJSON() {
  12025. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  12026. };
  12027. return CGPlayerStart;
  12028. })();
  12029. guandan.GCLastBroadcast = (function() {
  12030. /**
  12031. * Properties of a GCLastBroadcast.
  12032. * @memberof guandan
  12033. * @interface IGCLastBroadcast
  12034. */
  12035. /**
  12036. * Constructs a new GCLastBroadcast.
  12037. * @memberof guandan
  12038. * @classdesc Represents a GCLastBroadcast.
  12039. * @implements IGCLastBroadcast
  12040. * @constructor
  12041. * @param {guandan.IGCLastBroadcast=} [properties] Properties to set
  12042. */
  12043. function GCLastBroadcast(properties) {
  12044. if (properties)
  12045. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  12046. if (properties[keys[i]] != null)
  12047. this[keys[i]] = properties[keys[i]];
  12048. }
  12049. /**
  12050. * Creates a new GCLastBroadcast instance using the specified properties.
  12051. * @function create
  12052. * @memberof guandan.GCLastBroadcast
  12053. * @static
  12054. * @param {guandan.IGCLastBroadcast=} [properties] Properties to set
  12055. * @returns {guandan.GCLastBroadcast} GCLastBroadcast instance
  12056. */
  12057. GCLastBroadcast.create = function create(properties) {
  12058. return new GCLastBroadcast(properties);
  12059. };
  12060. /**
  12061. * Encodes the specified GCLastBroadcast message. Does not implicitly {@link guandan.GCLastBroadcast.verify|verify} messages.
  12062. * @function encode
  12063. * @memberof guandan.GCLastBroadcast
  12064. * @static
  12065. * @param {guandan.IGCLastBroadcast} message GCLastBroadcast message or plain object to encode
  12066. * @param {$protobuf.Writer} [writer] Writer to encode to
  12067. * @returns {$protobuf.Writer} Writer
  12068. */
  12069. GCLastBroadcast.encode = function encode(message, writer) {
  12070. if (!writer)
  12071. writer = $Writer.create();
  12072. return writer;
  12073. };
  12074. /**
  12075. * Encodes the specified GCLastBroadcast message, length delimited. Does not implicitly {@link guandan.GCLastBroadcast.verify|verify} messages.
  12076. * @function encodeDelimited
  12077. * @memberof guandan.GCLastBroadcast
  12078. * @static
  12079. * @param {guandan.IGCLastBroadcast} message GCLastBroadcast message or plain object to encode
  12080. * @param {$protobuf.Writer} [writer] Writer to encode to
  12081. * @returns {$protobuf.Writer} Writer
  12082. */
  12083. GCLastBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
  12084. return this.encode(message, writer).ldelim();
  12085. };
  12086. /**
  12087. * Decodes a GCLastBroadcast message from the specified reader or buffer.
  12088. * @function decode
  12089. * @memberof guandan.GCLastBroadcast
  12090. * @static
  12091. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  12092. * @param {number} [length] Message length if known beforehand
  12093. * @returns {guandan.GCLastBroadcast} GCLastBroadcast
  12094. * @throws {Error} If the payload is not a reader or valid buffer
  12095. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  12096. */
  12097. GCLastBroadcast.decode = function decode(reader, length) {
  12098. if (!(reader instanceof $Reader))
  12099. reader = $Reader.create(reader);
  12100. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCLastBroadcast();
  12101. while (reader.pos < end) {
  12102. var tag = reader.uint32();
  12103. switch (tag >>> 3) {
  12104. default:
  12105. reader.skipType(tag & 7);
  12106. break;
  12107. }
  12108. }
  12109. return message;
  12110. };
  12111. /**
  12112. * Decodes a GCLastBroadcast message from the specified reader or buffer, length delimited.
  12113. * @function decodeDelimited
  12114. * @memberof guandan.GCLastBroadcast
  12115. * @static
  12116. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  12117. * @returns {guandan.GCLastBroadcast} GCLastBroadcast
  12118. * @throws {Error} If the payload is not a reader or valid buffer
  12119. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  12120. */
  12121. GCLastBroadcast.decodeDelimited = function decodeDelimited(reader) {
  12122. if (!(reader instanceof $Reader))
  12123. reader = new $Reader(reader);
  12124. return this.decode(reader, reader.uint32());
  12125. };
  12126. /**
  12127. * Verifies a GCLastBroadcast message.
  12128. * @function verify
  12129. * @memberof guandan.GCLastBroadcast
  12130. * @static
  12131. * @param {Object.<string,*>} message Plain object to verify
  12132. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  12133. */
  12134. GCLastBroadcast.verify = function verify(message) {
  12135. if (typeof message !== "object" || message === null)
  12136. return "object expected";
  12137. return null;
  12138. };
  12139. /**
  12140. * Creates a GCLastBroadcast message from a plain object. Also converts values to their respective internal types.
  12141. * @function fromObject
  12142. * @memberof guandan.GCLastBroadcast
  12143. * @static
  12144. * @param {Object.<string,*>} object Plain object
  12145. * @returns {guandan.GCLastBroadcast} GCLastBroadcast
  12146. */
  12147. GCLastBroadcast.fromObject = function fromObject(object) {
  12148. if (object instanceof $root.guandan.GCLastBroadcast)
  12149. return object;
  12150. return new $root.guandan.GCLastBroadcast();
  12151. };
  12152. /**
  12153. * Creates a plain object from a GCLastBroadcast message. Also converts values to other types if specified.
  12154. * @function toObject
  12155. * @memberof guandan.GCLastBroadcast
  12156. * @static
  12157. * @param {guandan.GCLastBroadcast} message GCLastBroadcast
  12158. * @param {$protobuf.IConversionOptions} [options] Conversion options
  12159. * @returns {Object.<string,*>} Plain object
  12160. */
  12161. GCLastBroadcast.toObject = function toObject() {
  12162. return {};
  12163. };
  12164. /**
  12165. * Converts this GCLastBroadcast to JSON.
  12166. * @function toJSON
  12167. * @memberof guandan.GCLastBroadcast
  12168. * @instance
  12169. * @returns {Object.<string,*>} JSON object
  12170. */
  12171. GCLastBroadcast.prototype.toJSON = function toJSON() {
  12172. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  12173. };
  12174. return GCLastBroadcast;
  12175. })();
  12176. guandan.GCPlayerStart = (function() {
  12177. /**
  12178. * Properties of a GCPlayerStart.
  12179. * @memberof guandan
  12180. * @interface IGCPlayerStart
  12181. * @property {number|Long} playerId GCPlayerStart playerId
  12182. */
  12183. /**
  12184. * Constructs a new GCPlayerStart.
  12185. * @memberof guandan
  12186. * @classdesc Represents a GCPlayerStart.
  12187. * @implements IGCPlayerStart
  12188. * @constructor
  12189. * @param {guandan.IGCPlayerStart=} [properties] Properties to set
  12190. */
  12191. function GCPlayerStart(properties) {
  12192. if (properties)
  12193. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  12194. if (properties[keys[i]] != null)
  12195. this[keys[i]] = properties[keys[i]];
  12196. }
  12197. /**
  12198. * GCPlayerStart playerId.
  12199. * @member {number|Long} playerId
  12200. * @memberof guandan.GCPlayerStart
  12201. * @instance
  12202. */
  12203. GCPlayerStart.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  12204. /**
  12205. * Creates a new GCPlayerStart instance using the specified properties.
  12206. * @function create
  12207. * @memberof guandan.GCPlayerStart
  12208. * @static
  12209. * @param {guandan.IGCPlayerStart=} [properties] Properties to set
  12210. * @returns {guandan.GCPlayerStart} GCPlayerStart instance
  12211. */
  12212. GCPlayerStart.create = function create(properties) {
  12213. return new GCPlayerStart(properties);
  12214. };
  12215. /**
  12216. * Encodes the specified GCPlayerStart message. Does not implicitly {@link guandan.GCPlayerStart.verify|verify} messages.
  12217. * @function encode
  12218. * @memberof guandan.GCPlayerStart
  12219. * @static
  12220. * @param {guandan.IGCPlayerStart} message GCPlayerStart message or plain object to encode
  12221. * @param {$protobuf.Writer} [writer] Writer to encode to
  12222. * @returns {$protobuf.Writer} Writer
  12223. */
  12224. GCPlayerStart.encode = function encode(message, writer) {
  12225. if (!writer)
  12226. writer = $Writer.create();
  12227. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
  12228. return writer;
  12229. };
  12230. /**
  12231. * Encodes the specified GCPlayerStart message, length delimited. Does not implicitly {@link guandan.GCPlayerStart.verify|verify} messages.
  12232. * @function encodeDelimited
  12233. * @memberof guandan.GCPlayerStart
  12234. * @static
  12235. * @param {guandan.IGCPlayerStart} message GCPlayerStart message or plain object to encode
  12236. * @param {$protobuf.Writer} [writer] Writer to encode to
  12237. * @returns {$protobuf.Writer} Writer
  12238. */
  12239. GCPlayerStart.encodeDelimited = function encodeDelimited(message, writer) {
  12240. return this.encode(message, writer).ldelim();
  12241. };
  12242. /**
  12243. * Decodes a GCPlayerStart message from the specified reader or buffer.
  12244. * @function decode
  12245. * @memberof guandan.GCPlayerStart
  12246. * @static
  12247. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  12248. * @param {number} [length] Message length if known beforehand
  12249. * @returns {guandan.GCPlayerStart} GCPlayerStart
  12250. * @throws {Error} If the payload is not a reader or valid buffer
  12251. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  12252. */
  12253. GCPlayerStart.decode = function decode(reader, length) {
  12254. if (!(reader instanceof $Reader))
  12255. reader = $Reader.create(reader);
  12256. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCPlayerStart();
  12257. while (reader.pos < end) {
  12258. var tag = reader.uint32();
  12259. switch (tag >>> 3) {
  12260. case 1:
  12261. message.playerId = reader.int64();
  12262. break;
  12263. default:
  12264. reader.skipType(tag & 7);
  12265. break;
  12266. }
  12267. }
  12268. if (!message.hasOwnProperty("playerId"))
  12269. throw $util.ProtocolError("missing required 'playerId'", { instance: message });
  12270. return message;
  12271. };
  12272. /**
  12273. * Decodes a GCPlayerStart message from the specified reader or buffer, length delimited.
  12274. * @function decodeDelimited
  12275. * @memberof guandan.GCPlayerStart
  12276. * @static
  12277. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  12278. * @returns {guandan.GCPlayerStart} GCPlayerStart
  12279. * @throws {Error} If the payload is not a reader or valid buffer
  12280. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  12281. */
  12282. GCPlayerStart.decodeDelimited = function decodeDelimited(reader) {
  12283. if (!(reader instanceof $Reader))
  12284. reader = new $Reader(reader);
  12285. return this.decode(reader, reader.uint32());
  12286. };
  12287. /**
  12288. * Verifies a GCPlayerStart message.
  12289. * @function verify
  12290. * @memberof guandan.GCPlayerStart
  12291. * @static
  12292. * @param {Object.<string,*>} message Plain object to verify
  12293. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  12294. */
  12295. GCPlayerStart.verify = function verify(message) {
  12296. if (typeof message !== "object" || message === null)
  12297. return "object expected";
  12298. if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
  12299. return "playerId: integer|Long expected";
  12300. return null;
  12301. };
  12302. /**
  12303. * Creates a GCPlayerStart message from a plain object. Also converts values to their respective internal types.
  12304. * @function fromObject
  12305. * @memberof guandan.GCPlayerStart
  12306. * @static
  12307. * @param {Object.<string,*>} object Plain object
  12308. * @returns {guandan.GCPlayerStart} GCPlayerStart
  12309. */
  12310. GCPlayerStart.fromObject = function fromObject(object) {
  12311. if (object instanceof $root.guandan.GCPlayerStart)
  12312. return object;
  12313. var message = new $root.guandan.GCPlayerStart();
  12314. if (object.playerId != null)
  12315. if ($util.Long)
  12316. (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
  12317. else if (typeof object.playerId === "string")
  12318. message.playerId = parseInt(object.playerId, 10);
  12319. else if (typeof object.playerId === "number")
  12320. message.playerId = object.playerId;
  12321. else if (typeof object.playerId === "object")
  12322. message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
  12323. return message;
  12324. };
  12325. /**
  12326. * Creates a plain object from a GCPlayerStart message. Also converts values to other types if specified.
  12327. * @function toObject
  12328. * @memberof guandan.GCPlayerStart
  12329. * @static
  12330. * @param {guandan.GCPlayerStart} message GCPlayerStart
  12331. * @param {$protobuf.IConversionOptions} [options] Conversion options
  12332. * @returns {Object.<string,*>} Plain object
  12333. */
  12334. GCPlayerStart.toObject = function toObject(message, options) {
  12335. if (!options)
  12336. options = {};
  12337. var object = {};
  12338. if (options.defaults)
  12339. if ($util.Long) {
  12340. var long = new $util.Long(0, 0, false);
  12341. object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  12342. } else
  12343. object.playerId = options.longs === String ? "0" : 0;
  12344. if (message.playerId != null && message.hasOwnProperty("playerId"))
  12345. if (typeof message.playerId === "number")
  12346. object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
  12347. else
  12348. object.playerId = options.longs === String ? $util.Long.prototype.toString.call(message.playerId) : options.longs === Number ? new $util.LongBits(message.playerId.low >>> 0, message.playerId.high >>> 0).toNumber() : message.playerId;
  12349. return object;
  12350. };
  12351. /**
  12352. * Converts this GCPlayerStart to JSON.
  12353. * @function toJSON
  12354. * @memberof guandan.GCPlayerStart
  12355. * @instance
  12356. * @returns {Object.<string,*>} JSON object
  12357. */
  12358. GCPlayerStart.prototype.toJSON = function toJSON() {
  12359. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  12360. };
  12361. return GCPlayerStart;
  12362. })();
  12363. guandan.CGPlayerDissolve = (function() {
  12364. /**
  12365. * Properties of a CGPlayerDissolve.
  12366. * @memberof guandan
  12367. * @interface ICGPlayerDissolve
  12368. * @property {number|Long} playerId CGPlayerDissolve playerId
  12369. */
  12370. /**
  12371. * Constructs a new CGPlayerDissolve.
  12372. * @memberof guandan
  12373. * @classdesc Represents a CGPlayerDissolve.
  12374. * @implements ICGPlayerDissolve
  12375. * @constructor
  12376. * @param {guandan.ICGPlayerDissolve=} [properties] Properties to set
  12377. */
  12378. function CGPlayerDissolve(properties) {
  12379. if (properties)
  12380. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  12381. if (properties[keys[i]] != null)
  12382. this[keys[i]] = properties[keys[i]];
  12383. }
  12384. /**
  12385. * CGPlayerDissolve playerId.
  12386. * @member {number|Long} playerId
  12387. * @memberof guandan.CGPlayerDissolve
  12388. * @instance
  12389. */
  12390. CGPlayerDissolve.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  12391. /**
  12392. * Creates a new CGPlayerDissolve instance using the specified properties.
  12393. * @function create
  12394. * @memberof guandan.CGPlayerDissolve
  12395. * @static
  12396. * @param {guandan.ICGPlayerDissolve=} [properties] Properties to set
  12397. * @returns {guandan.CGPlayerDissolve} CGPlayerDissolve instance
  12398. */
  12399. CGPlayerDissolve.create = function create(properties) {
  12400. return new CGPlayerDissolve(properties);
  12401. };
  12402. /**
  12403. * Encodes the specified CGPlayerDissolve message. Does not implicitly {@link guandan.CGPlayerDissolve.verify|verify} messages.
  12404. * @function encode
  12405. * @memberof guandan.CGPlayerDissolve
  12406. * @static
  12407. * @param {guandan.ICGPlayerDissolve} message CGPlayerDissolve message or plain object to encode
  12408. * @param {$protobuf.Writer} [writer] Writer to encode to
  12409. * @returns {$protobuf.Writer} Writer
  12410. */
  12411. CGPlayerDissolve.encode = function encode(message, writer) {
  12412. if (!writer)
  12413. writer = $Writer.create();
  12414. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
  12415. return writer;
  12416. };
  12417. /**
  12418. * Encodes the specified CGPlayerDissolve message, length delimited. Does not implicitly {@link guandan.CGPlayerDissolve.verify|verify} messages.
  12419. * @function encodeDelimited
  12420. * @memberof guandan.CGPlayerDissolve
  12421. * @static
  12422. * @param {guandan.ICGPlayerDissolve} message CGPlayerDissolve message or plain object to encode
  12423. * @param {$protobuf.Writer} [writer] Writer to encode to
  12424. * @returns {$protobuf.Writer} Writer
  12425. */
  12426. CGPlayerDissolve.encodeDelimited = function encodeDelimited(message, writer) {
  12427. return this.encode(message, writer).ldelim();
  12428. };
  12429. /**
  12430. * Decodes a CGPlayerDissolve message from the specified reader or buffer.
  12431. * @function decode
  12432. * @memberof guandan.CGPlayerDissolve
  12433. * @static
  12434. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  12435. * @param {number} [length] Message length if known beforehand
  12436. * @returns {guandan.CGPlayerDissolve} CGPlayerDissolve
  12437. * @throws {Error} If the payload is not a reader or valid buffer
  12438. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  12439. */
  12440. CGPlayerDissolve.decode = function decode(reader, length) {
  12441. if (!(reader instanceof $Reader))
  12442. reader = $Reader.create(reader);
  12443. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.CGPlayerDissolve();
  12444. while (reader.pos < end) {
  12445. var tag = reader.uint32();
  12446. switch (tag >>> 3) {
  12447. case 1:
  12448. message.playerId = reader.int64();
  12449. break;
  12450. default:
  12451. reader.skipType(tag & 7);
  12452. break;
  12453. }
  12454. }
  12455. if (!message.hasOwnProperty("playerId"))
  12456. throw $util.ProtocolError("missing required 'playerId'", { instance: message });
  12457. return message;
  12458. };
  12459. /**
  12460. * Decodes a CGPlayerDissolve message from the specified reader or buffer, length delimited.
  12461. * @function decodeDelimited
  12462. * @memberof guandan.CGPlayerDissolve
  12463. * @static
  12464. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  12465. * @returns {guandan.CGPlayerDissolve} CGPlayerDissolve
  12466. * @throws {Error} If the payload is not a reader or valid buffer
  12467. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  12468. */
  12469. CGPlayerDissolve.decodeDelimited = function decodeDelimited(reader) {
  12470. if (!(reader instanceof $Reader))
  12471. reader = new $Reader(reader);
  12472. return this.decode(reader, reader.uint32());
  12473. };
  12474. /**
  12475. * Verifies a CGPlayerDissolve message.
  12476. * @function verify
  12477. * @memberof guandan.CGPlayerDissolve
  12478. * @static
  12479. * @param {Object.<string,*>} message Plain object to verify
  12480. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  12481. */
  12482. CGPlayerDissolve.verify = function verify(message) {
  12483. if (typeof message !== "object" || message === null)
  12484. return "object expected";
  12485. if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
  12486. return "playerId: integer|Long expected";
  12487. return null;
  12488. };
  12489. /**
  12490. * Creates a CGPlayerDissolve message from a plain object. Also converts values to their respective internal types.
  12491. * @function fromObject
  12492. * @memberof guandan.CGPlayerDissolve
  12493. * @static
  12494. * @param {Object.<string,*>} object Plain object
  12495. * @returns {guandan.CGPlayerDissolve} CGPlayerDissolve
  12496. */
  12497. CGPlayerDissolve.fromObject = function fromObject(object) {
  12498. if (object instanceof $root.guandan.CGPlayerDissolve)
  12499. return object;
  12500. var message = new $root.guandan.CGPlayerDissolve();
  12501. if (object.playerId != null)
  12502. if ($util.Long)
  12503. (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
  12504. else if (typeof object.playerId === "string")
  12505. message.playerId = parseInt(object.playerId, 10);
  12506. else if (typeof object.playerId === "number")
  12507. message.playerId = object.playerId;
  12508. else if (typeof object.playerId === "object")
  12509. message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
  12510. return message;
  12511. };
  12512. /**
  12513. * Creates a plain object from a CGPlayerDissolve message. Also converts values to other types if specified.
  12514. * @function toObject
  12515. * @memberof guandan.CGPlayerDissolve
  12516. * @static
  12517. * @param {guandan.CGPlayerDissolve} message CGPlayerDissolve
  12518. * @param {$protobuf.IConversionOptions} [options] Conversion options
  12519. * @returns {Object.<string,*>} Plain object
  12520. */
  12521. CGPlayerDissolve.toObject = function toObject(message, options) {
  12522. if (!options)
  12523. options = {};
  12524. var object = {};
  12525. if (options.defaults)
  12526. if ($util.Long) {
  12527. var long = new $util.Long(0, 0, false);
  12528. object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  12529. } else
  12530. object.playerId = options.longs === String ? "0" : 0;
  12531. if (message.playerId != null && message.hasOwnProperty("playerId"))
  12532. if (typeof message.playerId === "number")
  12533. object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
  12534. else
  12535. object.playerId = options.longs === String ? $util.Long.prototype.toString.call(message.playerId) : options.longs === Number ? new $util.LongBits(message.playerId.low >>> 0, message.playerId.high >>> 0).toNumber() : message.playerId;
  12536. return object;
  12537. };
  12538. /**
  12539. * Converts this CGPlayerDissolve to JSON.
  12540. * @function toJSON
  12541. * @memberof guandan.CGPlayerDissolve
  12542. * @instance
  12543. * @returns {Object.<string,*>} JSON object
  12544. */
  12545. CGPlayerDissolve.prototype.toJSON = function toJSON() {
  12546. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  12547. };
  12548. return CGPlayerDissolve;
  12549. })();
  12550. guandan.GCPlayerDissolve = (function() {
  12551. /**
  12552. * Properties of a GCPlayerDissolve.
  12553. * @memberof guandan
  12554. * @interface IGCPlayerDissolve
  12555. * @property {number|Long} playerId GCPlayerDissolve playerId
  12556. */
  12557. /**
  12558. * Constructs a new GCPlayerDissolve.
  12559. * @memberof guandan
  12560. * @classdesc Represents a GCPlayerDissolve.
  12561. * @implements IGCPlayerDissolve
  12562. * @constructor
  12563. * @param {guandan.IGCPlayerDissolve=} [properties] Properties to set
  12564. */
  12565. function GCPlayerDissolve(properties) {
  12566. if (properties)
  12567. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  12568. if (properties[keys[i]] != null)
  12569. this[keys[i]] = properties[keys[i]];
  12570. }
  12571. /**
  12572. * GCPlayerDissolve playerId.
  12573. * @member {number|Long} playerId
  12574. * @memberof guandan.GCPlayerDissolve
  12575. * @instance
  12576. */
  12577. GCPlayerDissolve.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  12578. /**
  12579. * Creates a new GCPlayerDissolve instance using the specified properties.
  12580. * @function create
  12581. * @memberof guandan.GCPlayerDissolve
  12582. * @static
  12583. * @param {guandan.IGCPlayerDissolve=} [properties] Properties to set
  12584. * @returns {guandan.GCPlayerDissolve} GCPlayerDissolve instance
  12585. */
  12586. GCPlayerDissolve.create = function create(properties) {
  12587. return new GCPlayerDissolve(properties);
  12588. };
  12589. /**
  12590. * Encodes the specified GCPlayerDissolve message. Does not implicitly {@link guandan.GCPlayerDissolve.verify|verify} messages.
  12591. * @function encode
  12592. * @memberof guandan.GCPlayerDissolve
  12593. * @static
  12594. * @param {guandan.IGCPlayerDissolve} message GCPlayerDissolve message or plain object to encode
  12595. * @param {$protobuf.Writer} [writer] Writer to encode to
  12596. * @returns {$protobuf.Writer} Writer
  12597. */
  12598. GCPlayerDissolve.encode = function encode(message, writer) {
  12599. if (!writer)
  12600. writer = $Writer.create();
  12601. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
  12602. return writer;
  12603. };
  12604. /**
  12605. * Encodes the specified GCPlayerDissolve message, length delimited. Does not implicitly {@link guandan.GCPlayerDissolve.verify|verify} messages.
  12606. * @function encodeDelimited
  12607. * @memberof guandan.GCPlayerDissolve
  12608. * @static
  12609. * @param {guandan.IGCPlayerDissolve} message GCPlayerDissolve message or plain object to encode
  12610. * @param {$protobuf.Writer} [writer] Writer to encode to
  12611. * @returns {$protobuf.Writer} Writer
  12612. */
  12613. GCPlayerDissolve.encodeDelimited = function encodeDelimited(message, writer) {
  12614. return this.encode(message, writer).ldelim();
  12615. };
  12616. /**
  12617. * Decodes a GCPlayerDissolve message from the specified reader or buffer.
  12618. * @function decode
  12619. * @memberof guandan.GCPlayerDissolve
  12620. * @static
  12621. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  12622. * @param {number} [length] Message length if known beforehand
  12623. * @returns {guandan.GCPlayerDissolve} GCPlayerDissolve
  12624. * @throws {Error} If the payload is not a reader or valid buffer
  12625. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  12626. */
  12627. GCPlayerDissolve.decode = function decode(reader, length) {
  12628. if (!(reader instanceof $Reader))
  12629. reader = $Reader.create(reader);
  12630. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCPlayerDissolve();
  12631. while (reader.pos < end) {
  12632. var tag = reader.uint32();
  12633. switch (tag >>> 3) {
  12634. case 1:
  12635. message.playerId = reader.int64();
  12636. break;
  12637. default:
  12638. reader.skipType(tag & 7);
  12639. break;
  12640. }
  12641. }
  12642. if (!message.hasOwnProperty("playerId"))
  12643. throw $util.ProtocolError("missing required 'playerId'", { instance: message });
  12644. return message;
  12645. };
  12646. /**
  12647. * Decodes a GCPlayerDissolve message from the specified reader or buffer, length delimited.
  12648. * @function decodeDelimited
  12649. * @memberof guandan.GCPlayerDissolve
  12650. * @static
  12651. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  12652. * @returns {guandan.GCPlayerDissolve} GCPlayerDissolve
  12653. * @throws {Error} If the payload is not a reader or valid buffer
  12654. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  12655. */
  12656. GCPlayerDissolve.decodeDelimited = function decodeDelimited(reader) {
  12657. if (!(reader instanceof $Reader))
  12658. reader = new $Reader(reader);
  12659. return this.decode(reader, reader.uint32());
  12660. };
  12661. /**
  12662. * Verifies a GCPlayerDissolve message.
  12663. * @function verify
  12664. * @memberof guandan.GCPlayerDissolve
  12665. * @static
  12666. * @param {Object.<string,*>} message Plain object to verify
  12667. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  12668. */
  12669. GCPlayerDissolve.verify = function verify(message) {
  12670. if (typeof message !== "object" || message === null)
  12671. return "object expected";
  12672. if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
  12673. return "playerId: integer|Long expected";
  12674. return null;
  12675. };
  12676. /**
  12677. * Creates a GCPlayerDissolve message from a plain object. Also converts values to their respective internal types.
  12678. * @function fromObject
  12679. * @memberof guandan.GCPlayerDissolve
  12680. * @static
  12681. * @param {Object.<string,*>} object Plain object
  12682. * @returns {guandan.GCPlayerDissolve} GCPlayerDissolve
  12683. */
  12684. GCPlayerDissolve.fromObject = function fromObject(object) {
  12685. if (object instanceof $root.guandan.GCPlayerDissolve)
  12686. return object;
  12687. var message = new $root.guandan.GCPlayerDissolve();
  12688. if (object.playerId != null)
  12689. if ($util.Long)
  12690. (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
  12691. else if (typeof object.playerId === "string")
  12692. message.playerId = parseInt(object.playerId, 10);
  12693. else if (typeof object.playerId === "number")
  12694. message.playerId = object.playerId;
  12695. else if (typeof object.playerId === "object")
  12696. message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
  12697. return message;
  12698. };
  12699. /**
  12700. * Creates a plain object from a GCPlayerDissolve message. Also converts values to other types if specified.
  12701. * @function toObject
  12702. * @memberof guandan.GCPlayerDissolve
  12703. * @static
  12704. * @param {guandan.GCPlayerDissolve} message GCPlayerDissolve
  12705. * @param {$protobuf.IConversionOptions} [options] Conversion options
  12706. * @returns {Object.<string,*>} Plain object
  12707. */
  12708. GCPlayerDissolve.toObject = function toObject(message, options) {
  12709. if (!options)
  12710. options = {};
  12711. var object = {};
  12712. if (options.defaults)
  12713. if ($util.Long) {
  12714. var long = new $util.Long(0, 0, false);
  12715. object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  12716. } else
  12717. object.playerId = options.longs === String ? "0" : 0;
  12718. if (message.playerId != null && message.hasOwnProperty("playerId"))
  12719. if (typeof message.playerId === "number")
  12720. object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
  12721. else
  12722. object.playerId = options.longs === String ? $util.Long.prototype.toString.call(message.playerId) : options.longs === Number ? new $util.LongBits(message.playerId.low >>> 0, message.playerId.high >>> 0).toNumber() : message.playerId;
  12723. return object;
  12724. };
  12725. /**
  12726. * Converts this GCPlayerDissolve to JSON.
  12727. * @function toJSON
  12728. * @memberof guandan.GCPlayerDissolve
  12729. * @instance
  12730. * @returns {Object.<string,*>} JSON object
  12731. */
  12732. GCPlayerDissolve.prototype.toJSON = function toJSON() {
  12733. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  12734. };
  12735. return GCPlayerDissolve;
  12736. })();
  12737. guandan.CGPlayerDissolveAgree = (function() {
  12738. /**
  12739. * Properties of a CGPlayerDissolveAgree.
  12740. * @memberof guandan
  12741. * @interface ICGPlayerDissolveAgree
  12742. * @property {boolean} agree CGPlayerDissolveAgree agree
  12743. */
  12744. /**
  12745. * Constructs a new CGPlayerDissolveAgree.
  12746. * @memberof guandan
  12747. * @classdesc Represents a CGPlayerDissolveAgree.
  12748. * @implements ICGPlayerDissolveAgree
  12749. * @constructor
  12750. * @param {guandan.ICGPlayerDissolveAgree=} [properties] Properties to set
  12751. */
  12752. function CGPlayerDissolveAgree(properties) {
  12753. if (properties)
  12754. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  12755. if (properties[keys[i]] != null)
  12756. this[keys[i]] = properties[keys[i]];
  12757. }
  12758. /**
  12759. * CGPlayerDissolveAgree agree.
  12760. * @member {boolean} agree
  12761. * @memberof guandan.CGPlayerDissolveAgree
  12762. * @instance
  12763. */
  12764. CGPlayerDissolveAgree.prototype.agree = false;
  12765. /**
  12766. * Creates a new CGPlayerDissolveAgree instance using the specified properties.
  12767. * @function create
  12768. * @memberof guandan.CGPlayerDissolveAgree
  12769. * @static
  12770. * @param {guandan.ICGPlayerDissolveAgree=} [properties] Properties to set
  12771. * @returns {guandan.CGPlayerDissolveAgree} CGPlayerDissolveAgree instance
  12772. */
  12773. CGPlayerDissolveAgree.create = function create(properties) {
  12774. return new CGPlayerDissolveAgree(properties);
  12775. };
  12776. /**
  12777. * Encodes the specified CGPlayerDissolveAgree message. Does not implicitly {@link guandan.CGPlayerDissolveAgree.verify|verify} messages.
  12778. * @function encode
  12779. * @memberof guandan.CGPlayerDissolveAgree
  12780. * @static
  12781. * @param {guandan.ICGPlayerDissolveAgree} message CGPlayerDissolveAgree message or plain object to encode
  12782. * @param {$protobuf.Writer} [writer] Writer to encode to
  12783. * @returns {$protobuf.Writer} Writer
  12784. */
  12785. CGPlayerDissolveAgree.encode = function encode(message, writer) {
  12786. if (!writer)
  12787. writer = $Writer.create();
  12788. writer.uint32(/* id 1, wireType 0 =*/8).bool(message.agree);
  12789. return writer;
  12790. };
  12791. /**
  12792. * Encodes the specified CGPlayerDissolveAgree message, length delimited. Does not implicitly {@link guandan.CGPlayerDissolveAgree.verify|verify} messages.
  12793. * @function encodeDelimited
  12794. * @memberof guandan.CGPlayerDissolveAgree
  12795. * @static
  12796. * @param {guandan.ICGPlayerDissolveAgree} message CGPlayerDissolveAgree message or plain object to encode
  12797. * @param {$protobuf.Writer} [writer] Writer to encode to
  12798. * @returns {$protobuf.Writer} Writer
  12799. */
  12800. CGPlayerDissolveAgree.encodeDelimited = function encodeDelimited(message, writer) {
  12801. return this.encode(message, writer).ldelim();
  12802. };
  12803. /**
  12804. * Decodes a CGPlayerDissolveAgree message from the specified reader or buffer.
  12805. * @function decode
  12806. * @memberof guandan.CGPlayerDissolveAgree
  12807. * @static
  12808. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  12809. * @param {number} [length] Message length if known beforehand
  12810. * @returns {guandan.CGPlayerDissolveAgree} CGPlayerDissolveAgree
  12811. * @throws {Error} If the payload is not a reader or valid buffer
  12812. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  12813. */
  12814. CGPlayerDissolveAgree.decode = function decode(reader, length) {
  12815. if (!(reader instanceof $Reader))
  12816. reader = $Reader.create(reader);
  12817. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.CGPlayerDissolveAgree();
  12818. while (reader.pos < end) {
  12819. var tag = reader.uint32();
  12820. switch (tag >>> 3) {
  12821. case 1:
  12822. message.agree = reader.bool();
  12823. break;
  12824. default:
  12825. reader.skipType(tag & 7);
  12826. break;
  12827. }
  12828. }
  12829. if (!message.hasOwnProperty("agree"))
  12830. throw $util.ProtocolError("missing required 'agree'", { instance: message });
  12831. return message;
  12832. };
  12833. /**
  12834. * Decodes a CGPlayerDissolveAgree message from the specified reader or buffer, length delimited.
  12835. * @function decodeDelimited
  12836. * @memberof guandan.CGPlayerDissolveAgree
  12837. * @static
  12838. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  12839. * @returns {guandan.CGPlayerDissolveAgree} CGPlayerDissolveAgree
  12840. * @throws {Error} If the payload is not a reader or valid buffer
  12841. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  12842. */
  12843. CGPlayerDissolveAgree.decodeDelimited = function decodeDelimited(reader) {
  12844. if (!(reader instanceof $Reader))
  12845. reader = new $Reader(reader);
  12846. return this.decode(reader, reader.uint32());
  12847. };
  12848. /**
  12849. * Verifies a CGPlayerDissolveAgree message.
  12850. * @function verify
  12851. * @memberof guandan.CGPlayerDissolveAgree
  12852. * @static
  12853. * @param {Object.<string,*>} message Plain object to verify
  12854. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  12855. */
  12856. CGPlayerDissolveAgree.verify = function verify(message) {
  12857. if (typeof message !== "object" || message === null)
  12858. return "object expected";
  12859. if (typeof message.agree !== "boolean")
  12860. return "agree: boolean expected";
  12861. return null;
  12862. };
  12863. /**
  12864. * Creates a CGPlayerDissolveAgree message from a plain object. Also converts values to their respective internal types.
  12865. * @function fromObject
  12866. * @memberof guandan.CGPlayerDissolveAgree
  12867. * @static
  12868. * @param {Object.<string,*>} object Plain object
  12869. * @returns {guandan.CGPlayerDissolveAgree} CGPlayerDissolveAgree
  12870. */
  12871. CGPlayerDissolveAgree.fromObject = function fromObject(object) {
  12872. if (object instanceof $root.guandan.CGPlayerDissolveAgree)
  12873. return object;
  12874. var message = new $root.guandan.CGPlayerDissolveAgree();
  12875. if (object.agree != null)
  12876. message.agree = Boolean(object.agree);
  12877. return message;
  12878. };
  12879. /**
  12880. * Creates a plain object from a CGPlayerDissolveAgree message. Also converts values to other types if specified.
  12881. * @function toObject
  12882. * @memberof guandan.CGPlayerDissolveAgree
  12883. * @static
  12884. * @param {guandan.CGPlayerDissolveAgree} message CGPlayerDissolveAgree
  12885. * @param {$protobuf.IConversionOptions} [options] Conversion options
  12886. * @returns {Object.<string,*>} Plain object
  12887. */
  12888. CGPlayerDissolveAgree.toObject = function toObject(message, options) {
  12889. if (!options)
  12890. options = {};
  12891. var object = {};
  12892. if (options.defaults)
  12893. object.agree = false;
  12894. if (message.agree != null && message.hasOwnProperty("agree"))
  12895. object.agree = message.agree;
  12896. return object;
  12897. };
  12898. /**
  12899. * Converts this CGPlayerDissolveAgree to JSON.
  12900. * @function toJSON
  12901. * @memberof guandan.CGPlayerDissolveAgree
  12902. * @instance
  12903. * @returns {Object.<string,*>} JSON object
  12904. */
  12905. CGPlayerDissolveAgree.prototype.toJSON = function toJSON() {
  12906. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  12907. };
  12908. return CGPlayerDissolveAgree;
  12909. })();
  12910. guandan.GCPlayerDissolveAgree = (function() {
  12911. /**
  12912. * Properties of a GCPlayerDissolveAgree.
  12913. * @memberof guandan
  12914. * @interface IGCPlayerDissolveAgree
  12915. * @property {boolean} agree GCPlayerDissolveAgree agree
  12916. * @property {number|Long} playerId GCPlayerDissolveAgree playerId
  12917. */
  12918. /**
  12919. * Constructs a new GCPlayerDissolveAgree.
  12920. * @memberof guandan
  12921. * @classdesc Represents a GCPlayerDissolveAgree.
  12922. * @implements IGCPlayerDissolveAgree
  12923. * @constructor
  12924. * @param {guandan.IGCPlayerDissolveAgree=} [properties] Properties to set
  12925. */
  12926. function GCPlayerDissolveAgree(properties) {
  12927. if (properties)
  12928. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  12929. if (properties[keys[i]] != null)
  12930. this[keys[i]] = properties[keys[i]];
  12931. }
  12932. /**
  12933. * GCPlayerDissolveAgree agree.
  12934. * @member {boolean} agree
  12935. * @memberof guandan.GCPlayerDissolveAgree
  12936. * @instance
  12937. */
  12938. GCPlayerDissolveAgree.prototype.agree = false;
  12939. /**
  12940. * GCPlayerDissolveAgree playerId.
  12941. * @member {number|Long} playerId
  12942. * @memberof guandan.GCPlayerDissolveAgree
  12943. * @instance
  12944. */
  12945. GCPlayerDissolveAgree.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  12946. /**
  12947. * Creates a new GCPlayerDissolveAgree instance using the specified properties.
  12948. * @function create
  12949. * @memberof guandan.GCPlayerDissolveAgree
  12950. * @static
  12951. * @param {guandan.IGCPlayerDissolveAgree=} [properties] Properties to set
  12952. * @returns {guandan.GCPlayerDissolveAgree} GCPlayerDissolveAgree instance
  12953. */
  12954. GCPlayerDissolveAgree.create = function create(properties) {
  12955. return new GCPlayerDissolveAgree(properties);
  12956. };
  12957. /**
  12958. * Encodes the specified GCPlayerDissolveAgree message. Does not implicitly {@link guandan.GCPlayerDissolveAgree.verify|verify} messages.
  12959. * @function encode
  12960. * @memberof guandan.GCPlayerDissolveAgree
  12961. * @static
  12962. * @param {guandan.IGCPlayerDissolveAgree} message GCPlayerDissolveAgree message or plain object to encode
  12963. * @param {$protobuf.Writer} [writer] Writer to encode to
  12964. * @returns {$protobuf.Writer} Writer
  12965. */
  12966. GCPlayerDissolveAgree.encode = function encode(message, writer) {
  12967. if (!writer)
  12968. writer = $Writer.create();
  12969. writer.uint32(/* id 1, wireType 0 =*/8).bool(message.agree);
  12970. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.playerId);
  12971. return writer;
  12972. };
  12973. /**
  12974. * Encodes the specified GCPlayerDissolveAgree message, length delimited. Does not implicitly {@link guandan.GCPlayerDissolveAgree.verify|verify} messages.
  12975. * @function encodeDelimited
  12976. * @memberof guandan.GCPlayerDissolveAgree
  12977. * @static
  12978. * @param {guandan.IGCPlayerDissolveAgree} message GCPlayerDissolveAgree message or plain object to encode
  12979. * @param {$protobuf.Writer} [writer] Writer to encode to
  12980. * @returns {$protobuf.Writer} Writer
  12981. */
  12982. GCPlayerDissolveAgree.encodeDelimited = function encodeDelimited(message, writer) {
  12983. return this.encode(message, writer).ldelim();
  12984. };
  12985. /**
  12986. * Decodes a GCPlayerDissolveAgree message from the specified reader or buffer.
  12987. * @function decode
  12988. * @memberof guandan.GCPlayerDissolveAgree
  12989. * @static
  12990. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  12991. * @param {number} [length] Message length if known beforehand
  12992. * @returns {guandan.GCPlayerDissolveAgree} GCPlayerDissolveAgree
  12993. * @throws {Error} If the payload is not a reader or valid buffer
  12994. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  12995. */
  12996. GCPlayerDissolveAgree.decode = function decode(reader, length) {
  12997. if (!(reader instanceof $Reader))
  12998. reader = $Reader.create(reader);
  12999. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCPlayerDissolveAgree();
  13000. while (reader.pos < end) {
  13001. var tag = reader.uint32();
  13002. switch (tag >>> 3) {
  13003. case 1:
  13004. message.agree = reader.bool();
  13005. break;
  13006. case 2:
  13007. message.playerId = reader.int64();
  13008. break;
  13009. default:
  13010. reader.skipType(tag & 7);
  13011. break;
  13012. }
  13013. }
  13014. if (!message.hasOwnProperty("agree"))
  13015. throw $util.ProtocolError("missing required 'agree'", { instance: message });
  13016. if (!message.hasOwnProperty("playerId"))
  13017. throw $util.ProtocolError("missing required 'playerId'", { instance: message });
  13018. return message;
  13019. };
  13020. /**
  13021. * Decodes a GCPlayerDissolveAgree message from the specified reader or buffer, length delimited.
  13022. * @function decodeDelimited
  13023. * @memberof guandan.GCPlayerDissolveAgree
  13024. * @static
  13025. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  13026. * @returns {guandan.GCPlayerDissolveAgree} GCPlayerDissolveAgree
  13027. * @throws {Error} If the payload is not a reader or valid buffer
  13028. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  13029. */
  13030. GCPlayerDissolveAgree.decodeDelimited = function decodeDelimited(reader) {
  13031. if (!(reader instanceof $Reader))
  13032. reader = new $Reader(reader);
  13033. return this.decode(reader, reader.uint32());
  13034. };
  13035. /**
  13036. * Verifies a GCPlayerDissolveAgree message.
  13037. * @function verify
  13038. * @memberof guandan.GCPlayerDissolveAgree
  13039. * @static
  13040. * @param {Object.<string,*>} message Plain object to verify
  13041. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  13042. */
  13043. GCPlayerDissolveAgree.verify = function verify(message) {
  13044. if (typeof message !== "object" || message === null)
  13045. return "object expected";
  13046. if (typeof message.agree !== "boolean")
  13047. return "agree: boolean expected";
  13048. if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
  13049. return "playerId: integer|Long expected";
  13050. return null;
  13051. };
  13052. /**
  13053. * Creates a GCPlayerDissolveAgree message from a plain object. Also converts values to their respective internal types.
  13054. * @function fromObject
  13055. * @memberof guandan.GCPlayerDissolveAgree
  13056. * @static
  13057. * @param {Object.<string,*>} object Plain object
  13058. * @returns {guandan.GCPlayerDissolveAgree} GCPlayerDissolveAgree
  13059. */
  13060. GCPlayerDissolveAgree.fromObject = function fromObject(object) {
  13061. if (object instanceof $root.guandan.GCPlayerDissolveAgree)
  13062. return object;
  13063. var message = new $root.guandan.GCPlayerDissolveAgree();
  13064. if (object.agree != null)
  13065. message.agree = Boolean(object.agree);
  13066. if (object.playerId != null)
  13067. if ($util.Long)
  13068. (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
  13069. else if (typeof object.playerId === "string")
  13070. message.playerId = parseInt(object.playerId, 10);
  13071. else if (typeof object.playerId === "number")
  13072. message.playerId = object.playerId;
  13073. else if (typeof object.playerId === "object")
  13074. message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
  13075. return message;
  13076. };
  13077. /**
  13078. * Creates a plain object from a GCPlayerDissolveAgree message. Also converts values to other types if specified.
  13079. * @function toObject
  13080. * @memberof guandan.GCPlayerDissolveAgree
  13081. * @static
  13082. * @param {guandan.GCPlayerDissolveAgree} message GCPlayerDissolveAgree
  13083. * @param {$protobuf.IConversionOptions} [options] Conversion options
  13084. * @returns {Object.<string,*>} Plain object
  13085. */
  13086. GCPlayerDissolveAgree.toObject = function toObject(message, options) {
  13087. if (!options)
  13088. options = {};
  13089. var object = {};
  13090. if (options.defaults) {
  13091. object.agree = false;
  13092. if ($util.Long) {
  13093. var long = new $util.Long(0, 0, false);
  13094. object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  13095. } else
  13096. object.playerId = options.longs === String ? "0" : 0;
  13097. }
  13098. if (message.agree != null && message.hasOwnProperty("agree"))
  13099. object.agree = message.agree;
  13100. if (message.playerId != null && message.hasOwnProperty("playerId"))
  13101. if (typeof message.playerId === "number")
  13102. object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
  13103. else
  13104. object.playerId = options.longs === String ? $util.Long.prototype.toString.call(message.playerId) : options.longs === Number ? new $util.LongBits(message.playerId.low >>> 0, message.playerId.high >>> 0).toNumber() : message.playerId;
  13105. return object;
  13106. };
  13107. /**
  13108. * Converts this GCPlayerDissolveAgree to JSON.
  13109. * @function toJSON
  13110. * @memberof guandan.GCPlayerDissolveAgree
  13111. * @instance
  13112. * @returns {Object.<string,*>} JSON object
  13113. */
  13114. GCPlayerDissolveAgree.prototype.toJSON = function toJSON() {
  13115. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  13116. };
  13117. return GCPlayerDissolveAgree;
  13118. })();
  13119. guandan.GCLiuJu = (function() {
  13120. /**
  13121. * Properties of a GCLiuJu.
  13122. * @memberof guandan
  13123. * @interface IGCLiuJu
  13124. * @property {Array.<guandan.IRoundSettlePlayerInfo>|null} [settlePlayerList] GCLiuJu settlePlayerList
  13125. */
  13126. /**
  13127. * Constructs a new GCLiuJu.
  13128. * @memberof guandan
  13129. * @classdesc Represents a GCLiuJu.
  13130. * @implements IGCLiuJu
  13131. * @constructor
  13132. * @param {guandan.IGCLiuJu=} [properties] Properties to set
  13133. */
  13134. function GCLiuJu(properties) {
  13135. this.settlePlayerList = [];
  13136. if (properties)
  13137. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  13138. if (properties[keys[i]] != null)
  13139. this[keys[i]] = properties[keys[i]];
  13140. }
  13141. /**
  13142. * GCLiuJu settlePlayerList.
  13143. * @member {Array.<guandan.IRoundSettlePlayerInfo>} settlePlayerList
  13144. * @memberof guandan.GCLiuJu
  13145. * @instance
  13146. */
  13147. GCLiuJu.prototype.settlePlayerList = $util.emptyArray;
  13148. /**
  13149. * Creates a new GCLiuJu instance using the specified properties.
  13150. * @function create
  13151. * @memberof guandan.GCLiuJu
  13152. * @static
  13153. * @param {guandan.IGCLiuJu=} [properties] Properties to set
  13154. * @returns {guandan.GCLiuJu} GCLiuJu instance
  13155. */
  13156. GCLiuJu.create = function create(properties) {
  13157. return new GCLiuJu(properties);
  13158. };
  13159. /**
  13160. * Encodes the specified GCLiuJu message. Does not implicitly {@link guandan.GCLiuJu.verify|verify} messages.
  13161. * @function encode
  13162. * @memberof guandan.GCLiuJu
  13163. * @static
  13164. * @param {guandan.IGCLiuJu} message GCLiuJu message or plain object to encode
  13165. * @param {$protobuf.Writer} [writer] Writer to encode to
  13166. * @returns {$protobuf.Writer} Writer
  13167. */
  13168. GCLiuJu.encode = function encode(message, writer) {
  13169. if (!writer)
  13170. writer = $Writer.create();
  13171. if (message.settlePlayerList != null && message.settlePlayerList.length)
  13172. for (var i = 0; i < message.settlePlayerList.length; ++i)
  13173. $root.guandan.RoundSettlePlayerInfo.encode(message.settlePlayerList[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
  13174. return writer;
  13175. };
  13176. /**
  13177. * Encodes the specified GCLiuJu message, length delimited. Does not implicitly {@link guandan.GCLiuJu.verify|verify} messages.
  13178. * @function encodeDelimited
  13179. * @memberof guandan.GCLiuJu
  13180. * @static
  13181. * @param {guandan.IGCLiuJu} message GCLiuJu message or plain object to encode
  13182. * @param {$protobuf.Writer} [writer] Writer to encode to
  13183. * @returns {$protobuf.Writer} Writer
  13184. */
  13185. GCLiuJu.encodeDelimited = function encodeDelimited(message, writer) {
  13186. return this.encode(message, writer).ldelim();
  13187. };
  13188. /**
  13189. * Decodes a GCLiuJu message from the specified reader or buffer.
  13190. * @function decode
  13191. * @memberof guandan.GCLiuJu
  13192. * @static
  13193. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  13194. * @param {number} [length] Message length if known beforehand
  13195. * @returns {guandan.GCLiuJu} GCLiuJu
  13196. * @throws {Error} If the payload is not a reader or valid buffer
  13197. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  13198. */
  13199. GCLiuJu.decode = function decode(reader, length) {
  13200. if (!(reader instanceof $Reader))
  13201. reader = $Reader.create(reader);
  13202. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCLiuJu();
  13203. while (reader.pos < end) {
  13204. var tag = reader.uint32();
  13205. switch (tag >>> 3) {
  13206. case 1:
  13207. if (!(message.settlePlayerList && message.settlePlayerList.length))
  13208. message.settlePlayerList = [];
  13209. message.settlePlayerList.push($root.guandan.RoundSettlePlayerInfo.decode(reader, reader.uint32()));
  13210. break;
  13211. default:
  13212. reader.skipType(tag & 7);
  13213. break;
  13214. }
  13215. }
  13216. return message;
  13217. };
  13218. /**
  13219. * Decodes a GCLiuJu message from the specified reader or buffer, length delimited.
  13220. * @function decodeDelimited
  13221. * @memberof guandan.GCLiuJu
  13222. * @static
  13223. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  13224. * @returns {guandan.GCLiuJu} GCLiuJu
  13225. * @throws {Error} If the payload is not a reader or valid buffer
  13226. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  13227. */
  13228. GCLiuJu.decodeDelimited = function decodeDelimited(reader) {
  13229. if (!(reader instanceof $Reader))
  13230. reader = new $Reader(reader);
  13231. return this.decode(reader, reader.uint32());
  13232. };
  13233. /**
  13234. * Verifies a GCLiuJu message.
  13235. * @function verify
  13236. * @memberof guandan.GCLiuJu
  13237. * @static
  13238. * @param {Object.<string,*>} message Plain object to verify
  13239. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  13240. */
  13241. GCLiuJu.verify = function verify(message) {
  13242. if (typeof message !== "object" || message === null)
  13243. return "object expected";
  13244. if (message.settlePlayerList != null && message.hasOwnProperty("settlePlayerList")) {
  13245. if (!Array.isArray(message.settlePlayerList))
  13246. return "settlePlayerList: array expected";
  13247. for (var i = 0; i < message.settlePlayerList.length; ++i) {
  13248. var error = $root.guandan.RoundSettlePlayerInfo.verify(message.settlePlayerList[i]);
  13249. if (error)
  13250. return "settlePlayerList." + error;
  13251. }
  13252. }
  13253. return null;
  13254. };
  13255. /**
  13256. * Creates a GCLiuJu message from a plain object. Also converts values to their respective internal types.
  13257. * @function fromObject
  13258. * @memberof guandan.GCLiuJu
  13259. * @static
  13260. * @param {Object.<string,*>} object Plain object
  13261. * @returns {guandan.GCLiuJu} GCLiuJu
  13262. */
  13263. GCLiuJu.fromObject = function fromObject(object) {
  13264. if (object instanceof $root.guandan.GCLiuJu)
  13265. return object;
  13266. var message = new $root.guandan.GCLiuJu();
  13267. if (object.settlePlayerList) {
  13268. if (!Array.isArray(object.settlePlayerList))
  13269. throw TypeError(".guandan.GCLiuJu.settlePlayerList: array expected");
  13270. message.settlePlayerList = [];
  13271. for (var i = 0; i < object.settlePlayerList.length; ++i) {
  13272. if (typeof object.settlePlayerList[i] !== "object")
  13273. throw TypeError(".guandan.GCLiuJu.settlePlayerList: object expected");
  13274. message.settlePlayerList[i] = $root.guandan.RoundSettlePlayerInfo.fromObject(object.settlePlayerList[i]);
  13275. }
  13276. }
  13277. return message;
  13278. };
  13279. /**
  13280. * Creates a plain object from a GCLiuJu message. Also converts values to other types if specified.
  13281. * @function toObject
  13282. * @memberof guandan.GCLiuJu
  13283. * @static
  13284. * @param {guandan.GCLiuJu} message GCLiuJu
  13285. * @param {$protobuf.IConversionOptions} [options] Conversion options
  13286. * @returns {Object.<string,*>} Plain object
  13287. */
  13288. GCLiuJu.toObject = function toObject(message, options) {
  13289. if (!options)
  13290. options = {};
  13291. var object = {};
  13292. if (options.arrays || options.defaults)
  13293. object.settlePlayerList = [];
  13294. if (message.settlePlayerList && message.settlePlayerList.length) {
  13295. object.settlePlayerList = [];
  13296. for (var j = 0; j < message.settlePlayerList.length; ++j)
  13297. object.settlePlayerList[j] = $root.guandan.RoundSettlePlayerInfo.toObject(message.settlePlayerList[j], options);
  13298. }
  13299. return object;
  13300. };
  13301. /**
  13302. * Converts this GCLiuJu to JSON.
  13303. * @function toJSON
  13304. * @memberof guandan.GCLiuJu
  13305. * @instance
  13306. * @returns {Object.<string,*>} JSON object
  13307. */
  13308. GCLiuJu.prototype.toJSON = function toJSON() {
  13309. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  13310. };
  13311. return GCLiuJu;
  13312. })();
  13313. guandan.SettleInfo = (function() {
  13314. /**
  13315. * Properties of a SettleInfo.
  13316. * @memberof guandan
  13317. * @interface ISettleInfo
  13318. * @property {number} settleType SettleInfo settleType
  13319. * @property {number} num SettleInfo num
  13320. */
  13321. /**
  13322. * Constructs a new SettleInfo.
  13323. * @memberof guandan
  13324. * @classdesc Represents a SettleInfo.
  13325. * @implements ISettleInfo
  13326. * @constructor
  13327. * @param {guandan.ISettleInfo=} [properties] Properties to set
  13328. */
  13329. function SettleInfo(properties) {
  13330. if (properties)
  13331. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  13332. if (properties[keys[i]] != null)
  13333. this[keys[i]] = properties[keys[i]];
  13334. }
  13335. /**
  13336. * SettleInfo settleType.
  13337. * @member {number} settleType
  13338. * @memberof guandan.SettleInfo
  13339. * @instance
  13340. */
  13341. SettleInfo.prototype.settleType = 0;
  13342. /**
  13343. * SettleInfo num.
  13344. * @member {number} num
  13345. * @memberof guandan.SettleInfo
  13346. * @instance
  13347. */
  13348. SettleInfo.prototype.num = 0;
  13349. /**
  13350. * Creates a new SettleInfo instance using the specified properties.
  13351. * @function create
  13352. * @memberof guandan.SettleInfo
  13353. * @static
  13354. * @param {guandan.ISettleInfo=} [properties] Properties to set
  13355. * @returns {guandan.SettleInfo} SettleInfo instance
  13356. */
  13357. SettleInfo.create = function create(properties) {
  13358. return new SettleInfo(properties);
  13359. };
  13360. /**
  13361. * Encodes the specified SettleInfo message. Does not implicitly {@link guandan.SettleInfo.verify|verify} messages.
  13362. * @function encode
  13363. * @memberof guandan.SettleInfo
  13364. * @static
  13365. * @param {guandan.ISettleInfo} message SettleInfo message or plain object to encode
  13366. * @param {$protobuf.Writer} [writer] Writer to encode to
  13367. * @returns {$protobuf.Writer} Writer
  13368. */
  13369. SettleInfo.encode = function encode(message, writer) {
  13370. if (!writer)
  13371. writer = $Writer.create();
  13372. writer.uint32(/* id 1, wireType 0 =*/8).int32(message.settleType);
  13373. writer.uint32(/* id 2, wireType 0 =*/16).int32(message.num);
  13374. return writer;
  13375. };
  13376. /**
  13377. * Encodes the specified SettleInfo message, length delimited. Does not implicitly {@link guandan.SettleInfo.verify|verify} messages.
  13378. * @function encodeDelimited
  13379. * @memberof guandan.SettleInfo
  13380. * @static
  13381. * @param {guandan.ISettleInfo} message SettleInfo message or plain object to encode
  13382. * @param {$protobuf.Writer} [writer] Writer to encode to
  13383. * @returns {$protobuf.Writer} Writer
  13384. */
  13385. SettleInfo.encodeDelimited = function encodeDelimited(message, writer) {
  13386. return this.encode(message, writer).ldelim();
  13387. };
  13388. /**
  13389. * Decodes a SettleInfo message from the specified reader or buffer.
  13390. * @function decode
  13391. * @memberof guandan.SettleInfo
  13392. * @static
  13393. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  13394. * @param {number} [length] Message length if known beforehand
  13395. * @returns {guandan.SettleInfo} SettleInfo
  13396. * @throws {Error} If the payload is not a reader or valid buffer
  13397. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  13398. */
  13399. SettleInfo.decode = function decode(reader, length) {
  13400. if (!(reader instanceof $Reader))
  13401. reader = $Reader.create(reader);
  13402. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.SettleInfo();
  13403. while (reader.pos < end) {
  13404. var tag = reader.uint32();
  13405. switch (tag >>> 3) {
  13406. case 1:
  13407. message.settleType = reader.int32();
  13408. break;
  13409. case 2:
  13410. message.num = reader.int32();
  13411. break;
  13412. default:
  13413. reader.skipType(tag & 7);
  13414. break;
  13415. }
  13416. }
  13417. if (!message.hasOwnProperty("settleType"))
  13418. throw $util.ProtocolError("missing required 'settleType'", { instance: message });
  13419. if (!message.hasOwnProperty("num"))
  13420. throw $util.ProtocolError("missing required 'num'", { instance: message });
  13421. return message;
  13422. };
  13423. /**
  13424. * Decodes a SettleInfo message from the specified reader or buffer, length delimited.
  13425. * @function decodeDelimited
  13426. * @memberof guandan.SettleInfo
  13427. * @static
  13428. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  13429. * @returns {guandan.SettleInfo} SettleInfo
  13430. * @throws {Error} If the payload is not a reader or valid buffer
  13431. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  13432. */
  13433. SettleInfo.decodeDelimited = function decodeDelimited(reader) {
  13434. if (!(reader instanceof $Reader))
  13435. reader = new $Reader(reader);
  13436. return this.decode(reader, reader.uint32());
  13437. };
  13438. /**
  13439. * Verifies a SettleInfo message.
  13440. * @function verify
  13441. * @memberof guandan.SettleInfo
  13442. * @static
  13443. * @param {Object.<string,*>} message Plain object to verify
  13444. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  13445. */
  13446. SettleInfo.verify = function verify(message) {
  13447. if (typeof message !== "object" || message === null)
  13448. return "object expected";
  13449. if (!$util.isInteger(message.settleType))
  13450. return "settleType: integer expected";
  13451. if (!$util.isInteger(message.num))
  13452. return "num: integer expected";
  13453. return null;
  13454. };
  13455. /**
  13456. * Creates a SettleInfo message from a plain object. Also converts values to their respective internal types.
  13457. * @function fromObject
  13458. * @memberof guandan.SettleInfo
  13459. * @static
  13460. * @param {Object.<string,*>} object Plain object
  13461. * @returns {guandan.SettleInfo} SettleInfo
  13462. */
  13463. SettleInfo.fromObject = function fromObject(object) {
  13464. if (object instanceof $root.guandan.SettleInfo)
  13465. return object;
  13466. var message = new $root.guandan.SettleInfo();
  13467. if (object.settleType != null)
  13468. message.settleType = object.settleType | 0;
  13469. if (object.num != null)
  13470. message.num = object.num | 0;
  13471. return message;
  13472. };
  13473. /**
  13474. * Creates a plain object from a SettleInfo message. Also converts values to other types if specified.
  13475. * @function toObject
  13476. * @memberof guandan.SettleInfo
  13477. * @static
  13478. * @param {guandan.SettleInfo} message SettleInfo
  13479. * @param {$protobuf.IConversionOptions} [options] Conversion options
  13480. * @returns {Object.<string,*>} Plain object
  13481. */
  13482. SettleInfo.toObject = function toObject(message, options) {
  13483. if (!options)
  13484. options = {};
  13485. var object = {};
  13486. if (options.defaults) {
  13487. object.settleType = 0;
  13488. object.num = 0;
  13489. }
  13490. if (message.settleType != null && message.hasOwnProperty("settleType"))
  13491. object.settleType = message.settleType;
  13492. if (message.num != null && message.hasOwnProperty("num"))
  13493. object.num = message.num;
  13494. return object;
  13495. };
  13496. /**
  13497. * Converts this SettleInfo to JSON.
  13498. * @function toJSON
  13499. * @memberof guandan.SettleInfo
  13500. * @instance
  13501. * @returns {Object.<string,*>} JSON object
  13502. */
  13503. SettleInfo.prototype.toJSON = function toJSON() {
  13504. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  13505. };
  13506. return SettleInfo;
  13507. })();
  13508. guandan.TotalSettlePlayerInfo = (function() {
  13509. /**
  13510. * Properties of a TotalSettlePlayerInfo.
  13511. * @memberof guandan
  13512. * @interface ITotalSettlePlayerInfo
  13513. * @property {Array.<guandan.ISettleInfo>|null} [settleInfoList] TotalSettlePlayerInfo settleInfoList
  13514. * @property {number} totalscore TotalSettlePlayerInfo totalscore
  13515. * @property {number|Long} playerId TotalSettlePlayerInfo playerId
  13516. * @property {number} winRoundNum TotalSettlePlayerInfo winRoundNum
  13517. */
  13518. /**
  13519. * Constructs a new TotalSettlePlayerInfo.
  13520. * @memberof guandan
  13521. * @classdesc Represents a TotalSettlePlayerInfo.
  13522. * @implements ITotalSettlePlayerInfo
  13523. * @constructor
  13524. * @param {guandan.ITotalSettlePlayerInfo=} [properties] Properties to set
  13525. */
  13526. function TotalSettlePlayerInfo(properties) {
  13527. this.settleInfoList = [];
  13528. if (properties)
  13529. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  13530. if (properties[keys[i]] != null)
  13531. this[keys[i]] = properties[keys[i]];
  13532. }
  13533. /**
  13534. * TotalSettlePlayerInfo settleInfoList.
  13535. * @member {Array.<guandan.ISettleInfo>} settleInfoList
  13536. * @memberof guandan.TotalSettlePlayerInfo
  13537. * @instance
  13538. */
  13539. TotalSettlePlayerInfo.prototype.settleInfoList = $util.emptyArray;
  13540. /**
  13541. * TotalSettlePlayerInfo totalscore.
  13542. * @member {number} totalscore
  13543. * @memberof guandan.TotalSettlePlayerInfo
  13544. * @instance
  13545. */
  13546. TotalSettlePlayerInfo.prototype.totalscore = 0;
  13547. /**
  13548. * TotalSettlePlayerInfo playerId.
  13549. * @member {number|Long} playerId
  13550. * @memberof guandan.TotalSettlePlayerInfo
  13551. * @instance
  13552. */
  13553. TotalSettlePlayerInfo.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  13554. /**
  13555. * TotalSettlePlayerInfo winRoundNum.
  13556. * @member {number} winRoundNum
  13557. * @memberof guandan.TotalSettlePlayerInfo
  13558. * @instance
  13559. */
  13560. TotalSettlePlayerInfo.prototype.winRoundNum = 0;
  13561. /**
  13562. * Creates a new TotalSettlePlayerInfo instance using the specified properties.
  13563. * @function create
  13564. * @memberof guandan.TotalSettlePlayerInfo
  13565. * @static
  13566. * @param {guandan.ITotalSettlePlayerInfo=} [properties] Properties to set
  13567. * @returns {guandan.TotalSettlePlayerInfo} TotalSettlePlayerInfo instance
  13568. */
  13569. TotalSettlePlayerInfo.create = function create(properties) {
  13570. return new TotalSettlePlayerInfo(properties);
  13571. };
  13572. /**
  13573. * Encodes the specified TotalSettlePlayerInfo message. Does not implicitly {@link guandan.TotalSettlePlayerInfo.verify|verify} messages.
  13574. * @function encode
  13575. * @memberof guandan.TotalSettlePlayerInfo
  13576. * @static
  13577. * @param {guandan.ITotalSettlePlayerInfo} message TotalSettlePlayerInfo message or plain object to encode
  13578. * @param {$protobuf.Writer} [writer] Writer to encode to
  13579. * @returns {$protobuf.Writer} Writer
  13580. */
  13581. TotalSettlePlayerInfo.encode = function encode(message, writer) {
  13582. if (!writer)
  13583. writer = $Writer.create();
  13584. if (message.settleInfoList != null && message.settleInfoList.length)
  13585. for (var i = 0; i < message.settleInfoList.length; ++i)
  13586. $root.guandan.SettleInfo.encode(message.settleInfoList[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
  13587. writer.uint32(/* id 2, wireType 0 =*/16).int32(message.totalscore);
  13588. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.playerId);
  13589. writer.uint32(/* id 4, wireType 0 =*/32).int32(message.winRoundNum);
  13590. return writer;
  13591. };
  13592. /**
  13593. * Encodes the specified TotalSettlePlayerInfo message, length delimited. Does not implicitly {@link guandan.TotalSettlePlayerInfo.verify|verify} messages.
  13594. * @function encodeDelimited
  13595. * @memberof guandan.TotalSettlePlayerInfo
  13596. * @static
  13597. * @param {guandan.ITotalSettlePlayerInfo} message TotalSettlePlayerInfo message or plain object to encode
  13598. * @param {$protobuf.Writer} [writer] Writer to encode to
  13599. * @returns {$protobuf.Writer} Writer
  13600. */
  13601. TotalSettlePlayerInfo.encodeDelimited = function encodeDelimited(message, writer) {
  13602. return this.encode(message, writer).ldelim();
  13603. };
  13604. /**
  13605. * Decodes a TotalSettlePlayerInfo message from the specified reader or buffer.
  13606. * @function decode
  13607. * @memberof guandan.TotalSettlePlayerInfo
  13608. * @static
  13609. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  13610. * @param {number} [length] Message length if known beforehand
  13611. * @returns {guandan.TotalSettlePlayerInfo} TotalSettlePlayerInfo
  13612. * @throws {Error} If the payload is not a reader or valid buffer
  13613. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  13614. */
  13615. TotalSettlePlayerInfo.decode = function decode(reader, length) {
  13616. if (!(reader instanceof $Reader))
  13617. reader = $Reader.create(reader);
  13618. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.TotalSettlePlayerInfo();
  13619. while (reader.pos < end) {
  13620. var tag = reader.uint32();
  13621. switch (tag >>> 3) {
  13622. case 1:
  13623. if (!(message.settleInfoList && message.settleInfoList.length))
  13624. message.settleInfoList = [];
  13625. message.settleInfoList.push($root.guandan.SettleInfo.decode(reader, reader.uint32()));
  13626. break;
  13627. case 2:
  13628. message.totalscore = reader.int32();
  13629. break;
  13630. case 3:
  13631. message.playerId = reader.int64();
  13632. break;
  13633. case 4:
  13634. message.winRoundNum = reader.int32();
  13635. break;
  13636. default:
  13637. reader.skipType(tag & 7);
  13638. break;
  13639. }
  13640. }
  13641. if (!message.hasOwnProperty("totalscore"))
  13642. throw $util.ProtocolError("missing required 'totalscore'", { instance: message });
  13643. if (!message.hasOwnProperty("playerId"))
  13644. throw $util.ProtocolError("missing required 'playerId'", { instance: message });
  13645. if (!message.hasOwnProperty("winRoundNum"))
  13646. throw $util.ProtocolError("missing required 'winRoundNum'", { instance: message });
  13647. return message;
  13648. };
  13649. /**
  13650. * Decodes a TotalSettlePlayerInfo message from the specified reader or buffer, length delimited.
  13651. * @function decodeDelimited
  13652. * @memberof guandan.TotalSettlePlayerInfo
  13653. * @static
  13654. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  13655. * @returns {guandan.TotalSettlePlayerInfo} TotalSettlePlayerInfo
  13656. * @throws {Error} If the payload is not a reader or valid buffer
  13657. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  13658. */
  13659. TotalSettlePlayerInfo.decodeDelimited = function decodeDelimited(reader) {
  13660. if (!(reader instanceof $Reader))
  13661. reader = new $Reader(reader);
  13662. return this.decode(reader, reader.uint32());
  13663. };
  13664. /**
  13665. * Verifies a TotalSettlePlayerInfo message.
  13666. * @function verify
  13667. * @memberof guandan.TotalSettlePlayerInfo
  13668. * @static
  13669. * @param {Object.<string,*>} message Plain object to verify
  13670. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  13671. */
  13672. TotalSettlePlayerInfo.verify = function verify(message) {
  13673. if (typeof message !== "object" || message === null)
  13674. return "object expected";
  13675. if (message.settleInfoList != null && message.hasOwnProperty("settleInfoList")) {
  13676. if (!Array.isArray(message.settleInfoList))
  13677. return "settleInfoList: array expected";
  13678. for (var i = 0; i < message.settleInfoList.length; ++i) {
  13679. var error = $root.guandan.SettleInfo.verify(message.settleInfoList[i]);
  13680. if (error)
  13681. return "settleInfoList." + error;
  13682. }
  13683. }
  13684. if (!$util.isInteger(message.totalscore))
  13685. return "totalscore: integer expected";
  13686. if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
  13687. return "playerId: integer|Long expected";
  13688. if (!$util.isInteger(message.winRoundNum))
  13689. return "winRoundNum: integer expected";
  13690. return null;
  13691. };
  13692. /**
  13693. * Creates a TotalSettlePlayerInfo message from a plain object. Also converts values to their respective internal types.
  13694. * @function fromObject
  13695. * @memberof guandan.TotalSettlePlayerInfo
  13696. * @static
  13697. * @param {Object.<string,*>} object Plain object
  13698. * @returns {guandan.TotalSettlePlayerInfo} TotalSettlePlayerInfo
  13699. */
  13700. TotalSettlePlayerInfo.fromObject = function fromObject(object) {
  13701. if (object instanceof $root.guandan.TotalSettlePlayerInfo)
  13702. return object;
  13703. var message = new $root.guandan.TotalSettlePlayerInfo();
  13704. if (object.settleInfoList) {
  13705. if (!Array.isArray(object.settleInfoList))
  13706. throw TypeError(".guandan.TotalSettlePlayerInfo.settleInfoList: array expected");
  13707. message.settleInfoList = [];
  13708. for (var i = 0; i < object.settleInfoList.length; ++i) {
  13709. if (typeof object.settleInfoList[i] !== "object")
  13710. throw TypeError(".guandan.TotalSettlePlayerInfo.settleInfoList: object expected");
  13711. message.settleInfoList[i] = $root.guandan.SettleInfo.fromObject(object.settleInfoList[i]);
  13712. }
  13713. }
  13714. if (object.totalscore != null)
  13715. message.totalscore = object.totalscore | 0;
  13716. if (object.playerId != null)
  13717. if ($util.Long)
  13718. (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
  13719. else if (typeof object.playerId === "string")
  13720. message.playerId = parseInt(object.playerId, 10);
  13721. else if (typeof object.playerId === "number")
  13722. message.playerId = object.playerId;
  13723. else if (typeof object.playerId === "object")
  13724. message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
  13725. if (object.winRoundNum != null)
  13726. message.winRoundNum = object.winRoundNum | 0;
  13727. return message;
  13728. };
  13729. /**
  13730. * Creates a plain object from a TotalSettlePlayerInfo message. Also converts values to other types if specified.
  13731. * @function toObject
  13732. * @memberof guandan.TotalSettlePlayerInfo
  13733. * @static
  13734. * @param {guandan.TotalSettlePlayerInfo} message TotalSettlePlayerInfo
  13735. * @param {$protobuf.IConversionOptions} [options] Conversion options
  13736. * @returns {Object.<string,*>} Plain object
  13737. */
  13738. TotalSettlePlayerInfo.toObject = function toObject(message, options) {
  13739. if (!options)
  13740. options = {};
  13741. var object = {};
  13742. if (options.arrays || options.defaults)
  13743. object.settleInfoList = [];
  13744. if (options.defaults) {
  13745. object.totalscore = 0;
  13746. if ($util.Long) {
  13747. var long = new $util.Long(0, 0, false);
  13748. object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  13749. } else
  13750. object.playerId = options.longs === String ? "0" : 0;
  13751. object.winRoundNum = 0;
  13752. }
  13753. if (message.settleInfoList && message.settleInfoList.length) {
  13754. object.settleInfoList = [];
  13755. for (var j = 0; j < message.settleInfoList.length; ++j)
  13756. object.settleInfoList[j] = $root.guandan.SettleInfo.toObject(message.settleInfoList[j], options);
  13757. }
  13758. if (message.totalscore != null && message.hasOwnProperty("totalscore"))
  13759. object.totalscore = message.totalscore;
  13760. if (message.playerId != null && message.hasOwnProperty("playerId"))
  13761. if (typeof message.playerId === "number")
  13762. object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
  13763. else
  13764. object.playerId = options.longs === String ? $util.Long.prototype.toString.call(message.playerId) : options.longs === Number ? new $util.LongBits(message.playerId.low >>> 0, message.playerId.high >>> 0).toNumber() : message.playerId;
  13765. if (message.winRoundNum != null && message.hasOwnProperty("winRoundNum"))
  13766. object.winRoundNum = message.winRoundNum;
  13767. return object;
  13768. };
  13769. /**
  13770. * Converts this TotalSettlePlayerInfo to JSON.
  13771. * @function toJSON
  13772. * @memberof guandan.TotalSettlePlayerInfo
  13773. * @instance
  13774. * @returns {Object.<string,*>} JSON object
  13775. */
  13776. TotalSettlePlayerInfo.prototype.toJSON = function toJSON() {
  13777. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  13778. };
  13779. return TotalSettlePlayerInfo;
  13780. })();
  13781. guandan.GCTotalSettle = (function() {
  13782. /**
  13783. * Properties of a GCTotalSettle.
  13784. * @memberof guandan
  13785. * @interface IGCTotalSettle
  13786. * @property {Array.<guandan.ITotalSettlePlayerInfo>|null} [totalSettlePlayerInfoList] GCTotalSettle totalSettlePlayerInfoList
  13787. */
  13788. /**
  13789. * Constructs a new GCTotalSettle.
  13790. * @memberof guandan
  13791. * @classdesc Represents a GCTotalSettle.
  13792. * @implements IGCTotalSettle
  13793. * @constructor
  13794. * @param {guandan.IGCTotalSettle=} [properties] Properties to set
  13795. */
  13796. function GCTotalSettle(properties) {
  13797. this.totalSettlePlayerInfoList = [];
  13798. if (properties)
  13799. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  13800. if (properties[keys[i]] != null)
  13801. this[keys[i]] = properties[keys[i]];
  13802. }
  13803. /**
  13804. * GCTotalSettle totalSettlePlayerInfoList.
  13805. * @member {Array.<guandan.ITotalSettlePlayerInfo>} totalSettlePlayerInfoList
  13806. * @memberof guandan.GCTotalSettle
  13807. * @instance
  13808. */
  13809. GCTotalSettle.prototype.totalSettlePlayerInfoList = $util.emptyArray;
  13810. /**
  13811. * Creates a new GCTotalSettle instance using the specified properties.
  13812. * @function create
  13813. * @memberof guandan.GCTotalSettle
  13814. * @static
  13815. * @param {guandan.IGCTotalSettle=} [properties] Properties to set
  13816. * @returns {guandan.GCTotalSettle} GCTotalSettle instance
  13817. */
  13818. GCTotalSettle.create = function create(properties) {
  13819. return new GCTotalSettle(properties);
  13820. };
  13821. /**
  13822. * Encodes the specified GCTotalSettle message. Does not implicitly {@link guandan.GCTotalSettle.verify|verify} messages.
  13823. * @function encode
  13824. * @memberof guandan.GCTotalSettle
  13825. * @static
  13826. * @param {guandan.IGCTotalSettle} message GCTotalSettle message or plain object to encode
  13827. * @param {$protobuf.Writer} [writer] Writer to encode to
  13828. * @returns {$protobuf.Writer} Writer
  13829. */
  13830. GCTotalSettle.encode = function encode(message, writer) {
  13831. if (!writer)
  13832. writer = $Writer.create();
  13833. if (message.totalSettlePlayerInfoList != null && message.totalSettlePlayerInfoList.length)
  13834. for (var i = 0; i < message.totalSettlePlayerInfoList.length; ++i)
  13835. $root.guandan.TotalSettlePlayerInfo.encode(message.totalSettlePlayerInfoList[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
  13836. return writer;
  13837. };
  13838. /**
  13839. * Encodes the specified GCTotalSettle message, length delimited. Does not implicitly {@link guandan.GCTotalSettle.verify|verify} messages.
  13840. * @function encodeDelimited
  13841. * @memberof guandan.GCTotalSettle
  13842. * @static
  13843. * @param {guandan.IGCTotalSettle} message GCTotalSettle message or plain object to encode
  13844. * @param {$protobuf.Writer} [writer] Writer to encode to
  13845. * @returns {$protobuf.Writer} Writer
  13846. */
  13847. GCTotalSettle.encodeDelimited = function encodeDelimited(message, writer) {
  13848. return this.encode(message, writer).ldelim();
  13849. };
  13850. /**
  13851. * Decodes a GCTotalSettle message from the specified reader or buffer.
  13852. * @function decode
  13853. * @memberof guandan.GCTotalSettle
  13854. * @static
  13855. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  13856. * @param {number} [length] Message length if known beforehand
  13857. * @returns {guandan.GCTotalSettle} GCTotalSettle
  13858. * @throws {Error} If the payload is not a reader or valid buffer
  13859. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  13860. */
  13861. GCTotalSettle.decode = function decode(reader, length) {
  13862. if (!(reader instanceof $Reader))
  13863. reader = $Reader.create(reader);
  13864. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCTotalSettle();
  13865. while (reader.pos < end) {
  13866. var tag = reader.uint32();
  13867. switch (tag >>> 3) {
  13868. case 1:
  13869. if (!(message.totalSettlePlayerInfoList && message.totalSettlePlayerInfoList.length))
  13870. message.totalSettlePlayerInfoList = [];
  13871. message.totalSettlePlayerInfoList.push($root.guandan.TotalSettlePlayerInfo.decode(reader, reader.uint32()));
  13872. break;
  13873. default:
  13874. reader.skipType(tag & 7);
  13875. break;
  13876. }
  13877. }
  13878. return message;
  13879. };
  13880. /**
  13881. * Decodes a GCTotalSettle message from the specified reader or buffer, length delimited.
  13882. * @function decodeDelimited
  13883. * @memberof guandan.GCTotalSettle
  13884. * @static
  13885. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  13886. * @returns {guandan.GCTotalSettle} GCTotalSettle
  13887. * @throws {Error} If the payload is not a reader or valid buffer
  13888. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  13889. */
  13890. GCTotalSettle.decodeDelimited = function decodeDelimited(reader) {
  13891. if (!(reader instanceof $Reader))
  13892. reader = new $Reader(reader);
  13893. return this.decode(reader, reader.uint32());
  13894. };
  13895. /**
  13896. * Verifies a GCTotalSettle message.
  13897. * @function verify
  13898. * @memberof guandan.GCTotalSettle
  13899. * @static
  13900. * @param {Object.<string,*>} message Plain object to verify
  13901. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  13902. */
  13903. GCTotalSettle.verify = function verify(message) {
  13904. if (typeof message !== "object" || message === null)
  13905. return "object expected";
  13906. if (message.totalSettlePlayerInfoList != null && message.hasOwnProperty("totalSettlePlayerInfoList")) {
  13907. if (!Array.isArray(message.totalSettlePlayerInfoList))
  13908. return "totalSettlePlayerInfoList: array expected";
  13909. for (var i = 0; i < message.totalSettlePlayerInfoList.length; ++i) {
  13910. var error = $root.guandan.TotalSettlePlayerInfo.verify(message.totalSettlePlayerInfoList[i]);
  13911. if (error)
  13912. return "totalSettlePlayerInfoList." + error;
  13913. }
  13914. }
  13915. return null;
  13916. };
  13917. /**
  13918. * Creates a GCTotalSettle message from a plain object. Also converts values to their respective internal types.
  13919. * @function fromObject
  13920. * @memberof guandan.GCTotalSettle
  13921. * @static
  13922. * @param {Object.<string,*>} object Plain object
  13923. * @returns {guandan.GCTotalSettle} GCTotalSettle
  13924. */
  13925. GCTotalSettle.fromObject = function fromObject(object) {
  13926. if (object instanceof $root.guandan.GCTotalSettle)
  13927. return object;
  13928. var message = new $root.guandan.GCTotalSettle();
  13929. if (object.totalSettlePlayerInfoList) {
  13930. if (!Array.isArray(object.totalSettlePlayerInfoList))
  13931. throw TypeError(".guandan.GCTotalSettle.totalSettlePlayerInfoList: array expected");
  13932. message.totalSettlePlayerInfoList = [];
  13933. for (var i = 0; i < object.totalSettlePlayerInfoList.length; ++i) {
  13934. if (typeof object.totalSettlePlayerInfoList[i] !== "object")
  13935. throw TypeError(".guandan.GCTotalSettle.totalSettlePlayerInfoList: object expected");
  13936. message.totalSettlePlayerInfoList[i] = $root.guandan.TotalSettlePlayerInfo.fromObject(object.totalSettlePlayerInfoList[i]);
  13937. }
  13938. }
  13939. return message;
  13940. };
  13941. /**
  13942. * Creates a plain object from a GCTotalSettle message. Also converts values to other types if specified.
  13943. * @function toObject
  13944. * @memberof guandan.GCTotalSettle
  13945. * @static
  13946. * @param {guandan.GCTotalSettle} message GCTotalSettle
  13947. * @param {$protobuf.IConversionOptions} [options] Conversion options
  13948. * @returns {Object.<string,*>} Plain object
  13949. */
  13950. GCTotalSettle.toObject = function toObject(message, options) {
  13951. if (!options)
  13952. options = {};
  13953. var object = {};
  13954. if (options.arrays || options.defaults)
  13955. object.totalSettlePlayerInfoList = [];
  13956. if (message.totalSettlePlayerInfoList && message.totalSettlePlayerInfoList.length) {
  13957. object.totalSettlePlayerInfoList = [];
  13958. for (var j = 0; j < message.totalSettlePlayerInfoList.length; ++j)
  13959. object.totalSettlePlayerInfoList[j] = $root.guandan.TotalSettlePlayerInfo.toObject(message.totalSettlePlayerInfoList[j], options);
  13960. }
  13961. return object;
  13962. };
  13963. /**
  13964. * Converts this GCTotalSettle to JSON.
  13965. * @function toJSON
  13966. * @memberof guandan.GCTotalSettle
  13967. * @instance
  13968. * @returns {Object.<string,*>} JSON object
  13969. */
  13970. GCTotalSettle.prototype.toJSON = function toJSON() {
  13971. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  13972. };
  13973. return GCTotalSettle;
  13974. })();
  13975. guandan.GCKaiJin = (function() {
  13976. /**
  13977. * Properties of a GCKaiJin.
  13978. * @memberof guandan
  13979. * @interface IGCKaiJin
  13980. * @property {Array.<number>|null} [cards] GCKaiJin cards
  13981. * @property {number} posGroup GCKaiJin posGroup
  13982. */
  13983. /**
  13984. * Constructs a new GCKaiJin.
  13985. * @memberof guandan
  13986. * @classdesc Represents a GCKaiJin.
  13987. * @implements IGCKaiJin
  13988. * @constructor
  13989. * @param {guandan.IGCKaiJin=} [properties] Properties to set
  13990. */
  13991. function GCKaiJin(properties) {
  13992. this.cards = [];
  13993. if (properties)
  13994. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  13995. if (properties[keys[i]] != null)
  13996. this[keys[i]] = properties[keys[i]];
  13997. }
  13998. /**
  13999. * GCKaiJin cards.
  14000. * @member {Array.<number>} cards
  14001. * @memberof guandan.GCKaiJin
  14002. * @instance
  14003. */
  14004. GCKaiJin.prototype.cards = $util.emptyArray;
  14005. /**
  14006. * GCKaiJin posGroup.
  14007. * @member {number} posGroup
  14008. * @memberof guandan.GCKaiJin
  14009. * @instance
  14010. */
  14011. GCKaiJin.prototype.posGroup = 0;
  14012. /**
  14013. * Creates a new GCKaiJin instance using the specified properties.
  14014. * @function create
  14015. * @memberof guandan.GCKaiJin
  14016. * @static
  14017. * @param {guandan.IGCKaiJin=} [properties] Properties to set
  14018. * @returns {guandan.GCKaiJin} GCKaiJin instance
  14019. */
  14020. GCKaiJin.create = function create(properties) {
  14021. return new GCKaiJin(properties);
  14022. };
  14023. /**
  14024. * Encodes the specified GCKaiJin message. Does not implicitly {@link guandan.GCKaiJin.verify|verify} messages.
  14025. * @function encode
  14026. * @memberof guandan.GCKaiJin
  14027. * @static
  14028. * @param {guandan.IGCKaiJin} message GCKaiJin message or plain object to encode
  14029. * @param {$protobuf.Writer} [writer] Writer to encode to
  14030. * @returns {$protobuf.Writer} Writer
  14031. */
  14032. GCKaiJin.encode = function encode(message, writer) {
  14033. if (!writer)
  14034. writer = $Writer.create();
  14035. if (message.cards != null && message.cards.length)
  14036. for (var i = 0; i < message.cards.length; ++i)
  14037. writer.uint32(/* id 1, wireType 0 =*/8).int32(message.cards[i]);
  14038. writer.uint32(/* id 2, wireType 0 =*/16).int32(message.posGroup);
  14039. return writer;
  14040. };
  14041. /**
  14042. * Encodes the specified GCKaiJin message, length delimited. Does not implicitly {@link guandan.GCKaiJin.verify|verify} messages.
  14043. * @function encodeDelimited
  14044. * @memberof guandan.GCKaiJin
  14045. * @static
  14046. * @param {guandan.IGCKaiJin} message GCKaiJin message or plain object to encode
  14047. * @param {$protobuf.Writer} [writer] Writer to encode to
  14048. * @returns {$protobuf.Writer} Writer
  14049. */
  14050. GCKaiJin.encodeDelimited = function encodeDelimited(message, writer) {
  14051. return this.encode(message, writer).ldelim();
  14052. };
  14053. /**
  14054. * Decodes a GCKaiJin message from the specified reader or buffer.
  14055. * @function decode
  14056. * @memberof guandan.GCKaiJin
  14057. * @static
  14058. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  14059. * @param {number} [length] Message length if known beforehand
  14060. * @returns {guandan.GCKaiJin} GCKaiJin
  14061. * @throws {Error} If the payload is not a reader or valid buffer
  14062. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  14063. */
  14064. GCKaiJin.decode = function decode(reader, length) {
  14065. if (!(reader instanceof $Reader))
  14066. reader = $Reader.create(reader);
  14067. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCKaiJin();
  14068. while (reader.pos < end) {
  14069. var tag = reader.uint32();
  14070. switch (tag >>> 3) {
  14071. case 1:
  14072. if (!(message.cards && message.cards.length))
  14073. message.cards = [];
  14074. if ((tag & 7) === 2) {
  14075. var end2 = reader.uint32() + reader.pos;
  14076. while (reader.pos < end2)
  14077. message.cards.push(reader.int32());
  14078. } else
  14079. message.cards.push(reader.int32());
  14080. break;
  14081. case 2:
  14082. message.posGroup = reader.int32();
  14083. break;
  14084. default:
  14085. reader.skipType(tag & 7);
  14086. break;
  14087. }
  14088. }
  14089. if (!message.hasOwnProperty("posGroup"))
  14090. throw $util.ProtocolError("missing required 'posGroup'", { instance: message });
  14091. return message;
  14092. };
  14093. /**
  14094. * Decodes a GCKaiJin message from the specified reader or buffer, length delimited.
  14095. * @function decodeDelimited
  14096. * @memberof guandan.GCKaiJin
  14097. * @static
  14098. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  14099. * @returns {guandan.GCKaiJin} GCKaiJin
  14100. * @throws {Error} If the payload is not a reader or valid buffer
  14101. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  14102. */
  14103. GCKaiJin.decodeDelimited = function decodeDelimited(reader) {
  14104. if (!(reader instanceof $Reader))
  14105. reader = new $Reader(reader);
  14106. return this.decode(reader, reader.uint32());
  14107. };
  14108. /**
  14109. * Verifies a GCKaiJin message.
  14110. * @function verify
  14111. * @memberof guandan.GCKaiJin
  14112. * @static
  14113. * @param {Object.<string,*>} message Plain object to verify
  14114. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  14115. */
  14116. GCKaiJin.verify = function verify(message) {
  14117. if (typeof message !== "object" || message === null)
  14118. return "object expected";
  14119. if (message.cards != null && message.hasOwnProperty("cards")) {
  14120. if (!Array.isArray(message.cards))
  14121. return "cards: array expected";
  14122. for (var i = 0; i < message.cards.length; ++i)
  14123. if (!$util.isInteger(message.cards[i]))
  14124. return "cards: integer[] expected";
  14125. }
  14126. if (!$util.isInteger(message.posGroup))
  14127. return "posGroup: integer expected";
  14128. return null;
  14129. };
  14130. /**
  14131. * Creates a GCKaiJin message from a plain object. Also converts values to their respective internal types.
  14132. * @function fromObject
  14133. * @memberof guandan.GCKaiJin
  14134. * @static
  14135. * @param {Object.<string,*>} object Plain object
  14136. * @returns {guandan.GCKaiJin} GCKaiJin
  14137. */
  14138. GCKaiJin.fromObject = function fromObject(object) {
  14139. if (object instanceof $root.guandan.GCKaiJin)
  14140. return object;
  14141. var message = new $root.guandan.GCKaiJin();
  14142. if (object.cards) {
  14143. if (!Array.isArray(object.cards))
  14144. throw TypeError(".guandan.GCKaiJin.cards: array expected");
  14145. message.cards = [];
  14146. for (var i = 0; i < object.cards.length; ++i)
  14147. message.cards[i] = object.cards[i] | 0;
  14148. }
  14149. if (object.posGroup != null)
  14150. message.posGroup = object.posGroup | 0;
  14151. return message;
  14152. };
  14153. /**
  14154. * Creates a plain object from a GCKaiJin message. Also converts values to other types if specified.
  14155. * @function toObject
  14156. * @memberof guandan.GCKaiJin
  14157. * @static
  14158. * @param {guandan.GCKaiJin} message GCKaiJin
  14159. * @param {$protobuf.IConversionOptions} [options] Conversion options
  14160. * @returns {Object.<string,*>} Plain object
  14161. */
  14162. GCKaiJin.toObject = function toObject(message, options) {
  14163. if (!options)
  14164. options = {};
  14165. var object = {};
  14166. if (options.arrays || options.defaults)
  14167. object.cards = [];
  14168. if (options.defaults)
  14169. object.posGroup = 0;
  14170. if (message.cards && message.cards.length) {
  14171. object.cards = [];
  14172. for (var j = 0; j < message.cards.length; ++j)
  14173. object.cards[j] = message.cards[j];
  14174. }
  14175. if (message.posGroup != null && message.hasOwnProperty("posGroup"))
  14176. object.posGroup = message.posGroup;
  14177. return object;
  14178. };
  14179. /**
  14180. * Converts this GCKaiJin to JSON.
  14181. * @function toJSON
  14182. * @memberof guandan.GCKaiJin
  14183. * @instance
  14184. * @returns {Object.<string,*>} JSON object
  14185. */
  14186. GCKaiJin.prototype.toJSON = function toJSON() {
  14187. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  14188. };
  14189. return GCKaiJin;
  14190. })();
  14191. guandan.CGDisconnectPlayer = (function() {
  14192. /**
  14193. * Properties of a CGDisconnectPlayer.
  14194. * @memberof guandan
  14195. * @interface ICGDisconnectPlayer
  14196. * @property {number|Long} playerId CGDisconnectPlayer playerId
  14197. * @property {number|Long} roomId CGDisconnectPlayer roomId
  14198. */
  14199. /**
  14200. * Constructs a new CGDisconnectPlayer.
  14201. * @memberof guandan
  14202. * @classdesc Represents a CGDisconnectPlayer.
  14203. * @implements ICGDisconnectPlayer
  14204. * @constructor
  14205. * @param {guandan.ICGDisconnectPlayer=} [properties] Properties to set
  14206. */
  14207. function CGDisconnectPlayer(properties) {
  14208. if (properties)
  14209. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  14210. if (properties[keys[i]] != null)
  14211. this[keys[i]] = properties[keys[i]];
  14212. }
  14213. /**
  14214. * CGDisconnectPlayer playerId.
  14215. * @member {number|Long} playerId
  14216. * @memberof guandan.CGDisconnectPlayer
  14217. * @instance
  14218. */
  14219. CGDisconnectPlayer.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  14220. /**
  14221. * CGDisconnectPlayer roomId.
  14222. * @member {number|Long} roomId
  14223. * @memberof guandan.CGDisconnectPlayer
  14224. * @instance
  14225. */
  14226. CGDisconnectPlayer.prototype.roomId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  14227. /**
  14228. * Creates a new CGDisconnectPlayer instance using the specified properties.
  14229. * @function create
  14230. * @memberof guandan.CGDisconnectPlayer
  14231. * @static
  14232. * @param {guandan.ICGDisconnectPlayer=} [properties] Properties to set
  14233. * @returns {guandan.CGDisconnectPlayer} CGDisconnectPlayer instance
  14234. */
  14235. CGDisconnectPlayer.create = function create(properties) {
  14236. return new CGDisconnectPlayer(properties);
  14237. };
  14238. /**
  14239. * Encodes the specified CGDisconnectPlayer message. Does not implicitly {@link guandan.CGDisconnectPlayer.verify|verify} messages.
  14240. * @function encode
  14241. * @memberof guandan.CGDisconnectPlayer
  14242. * @static
  14243. * @param {guandan.ICGDisconnectPlayer} message CGDisconnectPlayer message or plain object to encode
  14244. * @param {$protobuf.Writer} [writer] Writer to encode to
  14245. * @returns {$protobuf.Writer} Writer
  14246. */
  14247. CGDisconnectPlayer.encode = function encode(message, writer) {
  14248. if (!writer)
  14249. writer = $Writer.create();
  14250. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
  14251. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.roomId);
  14252. return writer;
  14253. };
  14254. /**
  14255. * Encodes the specified CGDisconnectPlayer message, length delimited. Does not implicitly {@link guandan.CGDisconnectPlayer.verify|verify} messages.
  14256. * @function encodeDelimited
  14257. * @memberof guandan.CGDisconnectPlayer
  14258. * @static
  14259. * @param {guandan.ICGDisconnectPlayer} message CGDisconnectPlayer message or plain object to encode
  14260. * @param {$protobuf.Writer} [writer] Writer to encode to
  14261. * @returns {$protobuf.Writer} Writer
  14262. */
  14263. CGDisconnectPlayer.encodeDelimited = function encodeDelimited(message, writer) {
  14264. return this.encode(message, writer).ldelim();
  14265. };
  14266. /**
  14267. * Decodes a CGDisconnectPlayer message from the specified reader or buffer.
  14268. * @function decode
  14269. * @memberof guandan.CGDisconnectPlayer
  14270. * @static
  14271. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  14272. * @param {number} [length] Message length if known beforehand
  14273. * @returns {guandan.CGDisconnectPlayer} CGDisconnectPlayer
  14274. * @throws {Error} If the payload is not a reader or valid buffer
  14275. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  14276. */
  14277. CGDisconnectPlayer.decode = function decode(reader, length) {
  14278. if (!(reader instanceof $Reader))
  14279. reader = $Reader.create(reader);
  14280. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.CGDisconnectPlayer();
  14281. while (reader.pos < end) {
  14282. var tag = reader.uint32();
  14283. switch (tag >>> 3) {
  14284. case 1:
  14285. message.playerId = reader.int64();
  14286. break;
  14287. case 2:
  14288. message.roomId = reader.int64();
  14289. break;
  14290. default:
  14291. reader.skipType(tag & 7);
  14292. break;
  14293. }
  14294. }
  14295. if (!message.hasOwnProperty("playerId"))
  14296. throw $util.ProtocolError("missing required 'playerId'", { instance: message });
  14297. if (!message.hasOwnProperty("roomId"))
  14298. throw $util.ProtocolError("missing required 'roomId'", { instance: message });
  14299. return message;
  14300. };
  14301. /**
  14302. * Decodes a CGDisconnectPlayer message from the specified reader or buffer, length delimited.
  14303. * @function decodeDelimited
  14304. * @memberof guandan.CGDisconnectPlayer
  14305. * @static
  14306. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  14307. * @returns {guandan.CGDisconnectPlayer} CGDisconnectPlayer
  14308. * @throws {Error} If the payload is not a reader or valid buffer
  14309. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  14310. */
  14311. CGDisconnectPlayer.decodeDelimited = function decodeDelimited(reader) {
  14312. if (!(reader instanceof $Reader))
  14313. reader = new $Reader(reader);
  14314. return this.decode(reader, reader.uint32());
  14315. };
  14316. /**
  14317. * Verifies a CGDisconnectPlayer message.
  14318. * @function verify
  14319. * @memberof guandan.CGDisconnectPlayer
  14320. * @static
  14321. * @param {Object.<string,*>} message Plain object to verify
  14322. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  14323. */
  14324. CGDisconnectPlayer.verify = function verify(message) {
  14325. if (typeof message !== "object" || message === null)
  14326. return "object expected";
  14327. if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
  14328. return "playerId: integer|Long expected";
  14329. if (!$util.isInteger(message.roomId) && !(message.roomId && $util.isInteger(message.roomId.low) && $util.isInteger(message.roomId.high)))
  14330. return "roomId: integer|Long expected";
  14331. return null;
  14332. };
  14333. /**
  14334. * Creates a CGDisconnectPlayer message from a plain object. Also converts values to their respective internal types.
  14335. * @function fromObject
  14336. * @memberof guandan.CGDisconnectPlayer
  14337. * @static
  14338. * @param {Object.<string,*>} object Plain object
  14339. * @returns {guandan.CGDisconnectPlayer} CGDisconnectPlayer
  14340. */
  14341. CGDisconnectPlayer.fromObject = function fromObject(object) {
  14342. if (object instanceof $root.guandan.CGDisconnectPlayer)
  14343. return object;
  14344. var message = new $root.guandan.CGDisconnectPlayer();
  14345. if (object.playerId != null)
  14346. if ($util.Long)
  14347. (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
  14348. else if (typeof object.playerId === "string")
  14349. message.playerId = parseInt(object.playerId, 10);
  14350. else if (typeof object.playerId === "number")
  14351. message.playerId = object.playerId;
  14352. else if (typeof object.playerId === "object")
  14353. message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
  14354. if (object.roomId != null)
  14355. if ($util.Long)
  14356. (message.roomId = $util.Long.fromValue(object.roomId)).unsigned = false;
  14357. else if (typeof object.roomId === "string")
  14358. message.roomId = parseInt(object.roomId, 10);
  14359. else if (typeof object.roomId === "number")
  14360. message.roomId = object.roomId;
  14361. else if (typeof object.roomId === "object")
  14362. message.roomId = new $util.LongBits(object.roomId.low >>> 0, object.roomId.high >>> 0).toNumber();
  14363. return message;
  14364. };
  14365. /**
  14366. * Creates a plain object from a CGDisconnectPlayer message. Also converts values to other types if specified.
  14367. * @function toObject
  14368. * @memberof guandan.CGDisconnectPlayer
  14369. * @static
  14370. * @param {guandan.CGDisconnectPlayer} message CGDisconnectPlayer
  14371. * @param {$protobuf.IConversionOptions} [options] Conversion options
  14372. * @returns {Object.<string,*>} Plain object
  14373. */
  14374. CGDisconnectPlayer.toObject = function toObject(message, options) {
  14375. if (!options)
  14376. options = {};
  14377. var object = {};
  14378. if (options.defaults) {
  14379. if ($util.Long) {
  14380. var long = new $util.Long(0, 0, false);
  14381. object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  14382. } else
  14383. object.playerId = options.longs === String ? "0" : 0;
  14384. if ($util.Long) {
  14385. var long = new $util.Long(0, 0, false);
  14386. object.roomId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  14387. } else
  14388. object.roomId = options.longs === String ? "0" : 0;
  14389. }
  14390. if (message.playerId != null && message.hasOwnProperty("playerId"))
  14391. if (typeof message.playerId === "number")
  14392. object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
  14393. else
  14394. object.playerId = options.longs === String ? $util.Long.prototype.toString.call(message.playerId) : options.longs === Number ? new $util.LongBits(message.playerId.low >>> 0, message.playerId.high >>> 0).toNumber() : message.playerId;
  14395. if (message.roomId != null && message.hasOwnProperty("roomId"))
  14396. if (typeof message.roomId === "number")
  14397. object.roomId = options.longs === String ? String(message.roomId) : message.roomId;
  14398. else
  14399. object.roomId = options.longs === String ? $util.Long.prototype.toString.call(message.roomId) : options.longs === Number ? new $util.LongBits(message.roomId.low >>> 0, message.roomId.high >>> 0).toNumber() : message.roomId;
  14400. return object;
  14401. };
  14402. /**
  14403. * Converts this CGDisconnectPlayer to JSON.
  14404. * @function toJSON
  14405. * @memberof guandan.CGDisconnectPlayer
  14406. * @instance
  14407. * @returns {Object.<string,*>} JSON object
  14408. */
  14409. CGDisconnectPlayer.prototype.toJSON = function toJSON() {
  14410. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  14411. };
  14412. return CGDisconnectPlayer;
  14413. })();
  14414. guandan.GCPlayerTuoGuan = (function() {
  14415. /**
  14416. * Properties of a GCPlayerTuoGuan.
  14417. * @memberof guandan
  14418. * @interface IGCPlayerTuoGuan
  14419. * @property {number|Long} playerId GCPlayerTuoGuan playerId
  14420. */
  14421. /**
  14422. * Constructs a new GCPlayerTuoGuan.
  14423. * @memberof guandan
  14424. * @classdesc Represents a GCPlayerTuoGuan.
  14425. * @implements IGCPlayerTuoGuan
  14426. * @constructor
  14427. * @param {guandan.IGCPlayerTuoGuan=} [properties] Properties to set
  14428. */
  14429. function GCPlayerTuoGuan(properties) {
  14430. if (properties)
  14431. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  14432. if (properties[keys[i]] != null)
  14433. this[keys[i]] = properties[keys[i]];
  14434. }
  14435. /**
  14436. * GCPlayerTuoGuan playerId.
  14437. * @member {number|Long} playerId
  14438. * @memberof guandan.GCPlayerTuoGuan
  14439. * @instance
  14440. */
  14441. GCPlayerTuoGuan.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  14442. /**
  14443. * Creates a new GCPlayerTuoGuan instance using the specified properties.
  14444. * @function create
  14445. * @memberof guandan.GCPlayerTuoGuan
  14446. * @static
  14447. * @param {guandan.IGCPlayerTuoGuan=} [properties] Properties to set
  14448. * @returns {guandan.GCPlayerTuoGuan} GCPlayerTuoGuan instance
  14449. */
  14450. GCPlayerTuoGuan.create = function create(properties) {
  14451. return new GCPlayerTuoGuan(properties);
  14452. };
  14453. /**
  14454. * Encodes the specified GCPlayerTuoGuan message. Does not implicitly {@link guandan.GCPlayerTuoGuan.verify|verify} messages.
  14455. * @function encode
  14456. * @memberof guandan.GCPlayerTuoGuan
  14457. * @static
  14458. * @param {guandan.IGCPlayerTuoGuan} message GCPlayerTuoGuan message or plain object to encode
  14459. * @param {$protobuf.Writer} [writer] Writer to encode to
  14460. * @returns {$protobuf.Writer} Writer
  14461. */
  14462. GCPlayerTuoGuan.encode = function encode(message, writer) {
  14463. if (!writer)
  14464. writer = $Writer.create();
  14465. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
  14466. return writer;
  14467. };
  14468. /**
  14469. * Encodes the specified GCPlayerTuoGuan message, length delimited. Does not implicitly {@link guandan.GCPlayerTuoGuan.verify|verify} messages.
  14470. * @function encodeDelimited
  14471. * @memberof guandan.GCPlayerTuoGuan
  14472. * @static
  14473. * @param {guandan.IGCPlayerTuoGuan} message GCPlayerTuoGuan message or plain object to encode
  14474. * @param {$protobuf.Writer} [writer] Writer to encode to
  14475. * @returns {$protobuf.Writer} Writer
  14476. */
  14477. GCPlayerTuoGuan.encodeDelimited = function encodeDelimited(message, writer) {
  14478. return this.encode(message, writer).ldelim();
  14479. };
  14480. /**
  14481. * Decodes a GCPlayerTuoGuan message from the specified reader or buffer.
  14482. * @function decode
  14483. * @memberof guandan.GCPlayerTuoGuan
  14484. * @static
  14485. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  14486. * @param {number} [length] Message length if known beforehand
  14487. * @returns {guandan.GCPlayerTuoGuan} GCPlayerTuoGuan
  14488. * @throws {Error} If the payload is not a reader or valid buffer
  14489. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  14490. */
  14491. GCPlayerTuoGuan.decode = function decode(reader, length) {
  14492. if (!(reader instanceof $Reader))
  14493. reader = $Reader.create(reader);
  14494. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCPlayerTuoGuan();
  14495. while (reader.pos < end) {
  14496. var tag = reader.uint32();
  14497. switch (tag >>> 3) {
  14498. case 1:
  14499. message.playerId = reader.int64();
  14500. break;
  14501. default:
  14502. reader.skipType(tag & 7);
  14503. break;
  14504. }
  14505. }
  14506. if (!message.hasOwnProperty("playerId"))
  14507. throw $util.ProtocolError("missing required 'playerId'", { instance: message });
  14508. return message;
  14509. };
  14510. /**
  14511. * Decodes a GCPlayerTuoGuan message from the specified reader or buffer, length delimited.
  14512. * @function decodeDelimited
  14513. * @memberof guandan.GCPlayerTuoGuan
  14514. * @static
  14515. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  14516. * @returns {guandan.GCPlayerTuoGuan} GCPlayerTuoGuan
  14517. * @throws {Error} If the payload is not a reader or valid buffer
  14518. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  14519. */
  14520. GCPlayerTuoGuan.decodeDelimited = function decodeDelimited(reader) {
  14521. if (!(reader instanceof $Reader))
  14522. reader = new $Reader(reader);
  14523. return this.decode(reader, reader.uint32());
  14524. };
  14525. /**
  14526. * Verifies a GCPlayerTuoGuan message.
  14527. * @function verify
  14528. * @memberof guandan.GCPlayerTuoGuan
  14529. * @static
  14530. * @param {Object.<string,*>} message Plain object to verify
  14531. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  14532. */
  14533. GCPlayerTuoGuan.verify = function verify(message) {
  14534. if (typeof message !== "object" || message === null)
  14535. return "object expected";
  14536. if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
  14537. return "playerId: integer|Long expected";
  14538. return null;
  14539. };
  14540. /**
  14541. * Creates a GCPlayerTuoGuan message from a plain object. Also converts values to their respective internal types.
  14542. * @function fromObject
  14543. * @memberof guandan.GCPlayerTuoGuan
  14544. * @static
  14545. * @param {Object.<string,*>} object Plain object
  14546. * @returns {guandan.GCPlayerTuoGuan} GCPlayerTuoGuan
  14547. */
  14548. GCPlayerTuoGuan.fromObject = function fromObject(object) {
  14549. if (object instanceof $root.guandan.GCPlayerTuoGuan)
  14550. return object;
  14551. var message = new $root.guandan.GCPlayerTuoGuan();
  14552. if (object.playerId != null)
  14553. if ($util.Long)
  14554. (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
  14555. else if (typeof object.playerId === "string")
  14556. message.playerId = parseInt(object.playerId, 10);
  14557. else if (typeof object.playerId === "number")
  14558. message.playerId = object.playerId;
  14559. else if (typeof object.playerId === "object")
  14560. message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
  14561. return message;
  14562. };
  14563. /**
  14564. * Creates a plain object from a GCPlayerTuoGuan message. Also converts values to other types if specified.
  14565. * @function toObject
  14566. * @memberof guandan.GCPlayerTuoGuan
  14567. * @static
  14568. * @param {guandan.GCPlayerTuoGuan} message GCPlayerTuoGuan
  14569. * @param {$protobuf.IConversionOptions} [options] Conversion options
  14570. * @returns {Object.<string,*>} Plain object
  14571. */
  14572. GCPlayerTuoGuan.toObject = function toObject(message, options) {
  14573. if (!options)
  14574. options = {};
  14575. var object = {};
  14576. if (options.defaults)
  14577. if ($util.Long) {
  14578. var long = new $util.Long(0, 0, false);
  14579. object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  14580. } else
  14581. object.playerId = options.longs === String ? "0" : 0;
  14582. if (message.playerId != null && message.hasOwnProperty("playerId"))
  14583. if (typeof message.playerId === "number")
  14584. object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
  14585. else
  14586. object.playerId = options.longs === String ? $util.Long.prototype.toString.call(message.playerId) : options.longs === Number ? new $util.LongBits(message.playerId.low >>> 0, message.playerId.high >>> 0).toNumber() : message.playerId;
  14587. return object;
  14588. };
  14589. /**
  14590. * Converts this GCPlayerTuoGuan to JSON.
  14591. * @function toJSON
  14592. * @memberof guandan.GCPlayerTuoGuan
  14593. * @instance
  14594. * @returns {Object.<string,*>} JSON object
  14595. */
  14596. GCPlayerTuoGuan.prototype.toJSON = function toJSON() {
  14597. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  14598. };
  14599. return GCPlayerTuoGuan;
  14600. })();
  14601. guandan.CGPlayerCancelTuoGuan = (function() {
  14602. /**
  14603. * Properties of a CGPlayerCancelTuoGuan.
  14604. * @memberof guandan
  14605. * @interface ICGPlayerCancelTuoGuan
  14606. */
  14607. /**
  14608. * Constructs a new CGPlayerCancelTuoGuan.
  14609. * @memberof guandan
  14610. * @classdesc Represents a CGPlayerCancelTuoGuan.
  14611. * @implements ICGPlayerCancelTuoGuan
  14612. * @constructor
  14613. * @param {guandan.ICGPlayerCancelTuoGuan=} [properties] Properties to set
  14614. */
  14615. function CGPlayerCancelTuoGuan(properties) {
  14616. if (properties)
  14617. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  14618. if (properties[keys[i]] != null)
  14619. this[keys[i]] = properties[keys[i]];
  14620. }
  14621. /**
  14622. * Creates a new CGPlayerCancelTuoGuan instance using the specified properties.
  14623. * @function create
  14624. * @memberof guandan.CGPlayerCancelTuoGuan
  14625. * @static
  14626. * @param {guandan.ICGPlayerCancelTuoGuan=} [properties] Properties to set
  14627. * @returns {guandan.CGPlayerCancelTuoGuan} CGPlayerCancelTuoGuan instance
  14628. */
  14629. CGPlayerCancelTuoGuan.create = function create(properties) {
  14630. return new CGPlayerCancelTuoGuan(properties);
  14631. };
  14632. /**
  14633. * Encodes the specified CGPlayerCancelTuoGuan message. Does not implicitly {@link guandan.CGPlayerCancelTuoGuan.verify|verify} messages.
  14634. * @function encode
  14635. * @memberof guandan.CGPlayerCancelTuoGuan
  14636. * @static
  14637. * @param {guandan.ICGPlayerCancelTuoGuan} message CGPlayerCancelTuoGuan message or plain object to encode
  14638. * @param {$protobuf.Writer} [writer] Writer to encode to
  14639. * @returns {$protobuf.Writer} Writer
  14640. */
  14641. CGPlayerCancelTuoGuan.encode = function encode(message, writer) {
  14642. if (!writer)
  14643. writer = $Writer.create();
  14644. return writer;
  14645. };
  14646. /**
  14647. * Encodes the specified CGPlayerCancelTuoGuan message, length delimited. Does not implicitly {@link guandan.CGPlayerCancelTuoGuan.verify|verify} messages.
  14648. * @function encodeDelimited
  14649. * @memberof guandan.CGPlayerCancelTuoGuan
  14650. * @static
  14651. * @param {guandan.ICGPlayerCancelTuoGuan} message CGPlayerCancelTuoGuan message or plain object to encode
  14652. * @param {$protobuf.Writer} [writer] Writer to encode to
  14653. * @returns {$protobuf.Writer} Writer
  14654. */
  14655. CGPlayerCancelTuoGuan.encodeDelimited = function encodeDelimited(message, writer) {
  14656. return this.encode(message, writer).ldelim();
  14657. };
  14658. /**
  14659. * Decodes a CGPlayerCancelTuoGuan message from the specified reader or buffer.
  14660. * @function decode
  14661. * @memberof guandan.CGPlayerCancelTuoGuan
  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 {guandan.CGPlayerCancelTuoGuan} CGPlayerCancelTuoGuan
  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. CGPlayerCancelTuoGuan.decode = function decode(reader, length) {
  14670. if (!(reader instanceof $Reader))
  14671. reader = $Reader.create(reader);
  14672. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.CGPlayerCancelTuoGuan();
  14673. while (reader.pos < end) {
  14674. var tag = reader.uint32();
  14675. switch (tag >>> 3) {
  14676. default:
  14677. reader.skipType(tag & 7);
  14678. break;
  14679. }
  14680. }
  14681. return message;
  14682. };
  14683. /**
  14684. * Decodes a CGPlayerCancelTuoGuan message from the specified reader or buffer, length delimited.
  14685. * @function decodeDelimited
  14686. * @memberof guandan.CGPlayerCancelTuoGuan
  14687. * @static
  14688. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  14689. * @returns {guandan.CGPlayerCancelTuoGuan} CGPlayerCancelTuoGuan
  14690. * @throws {Error} If the payload is not a reader or valid buffer
  14691. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  14692. */
  14693. CGPlayerCancelTuoGuan.decodeDelimited = function decodeDelimited(reader) {
  14694. if (!(reader instanceof $Reader))
  14695. reader = new $Reader(reader);
  14696. return this.decode(reader, reader.uint32());
  14697. };
  14698. /**
  14699. * Verifies a CGPlayerCancelTuoGuan message.
  14700. * @function verify
  14701. * @memberof guandan.CGPlayerCancelTuoGuan
  14702. * @static
  14703. * @param {Object.<string,*>} message Plain object to verify
  14704. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  14705. */
  14706. CGPlayerCancelTuoGuan.verify = function verify(message) {
  14707. if (typeof message !== "object" || message === null)
  14708. return "object expected";
  14709. return null;
  14710. };
  14711. /**
  14712. * Creates a CGPlayerCancelTuoGuan message from a plain object. Also converts values to their respective internal types.
  14713. * @function fromObject
  14714. * @memberof guandan.CGPlayerCancelTuoGuan
  14715. * @static
  14716. * @param {Object.<string,*>} object Plain object
  14717. * @returns {guandan.CGPlayerCancelTuoGuan} CGPlayerCancelTuoGuan
  14718. */
  14719. CGPlayerCancelTuoGuan.fromObject = function fromObject(object) {
  14720. if (object instanceof $root.guandan.CGPlayerCancelTuoGuan)
  14721. return object;
  14722. return new $root.guandan.CGPlayerCancelTuoGuan();
  14723. };
  14724. /**
  14725. * Creates a plain object from a CGPlayerCancelTuoGuan message. Also converts values to other types if specified.
  14726. * @function toObject
  14727. * @memberof guandan.CGPlayerCancelTuoGuan
  14728. * @static
  14729. * @param {guandan.CGPlayerCancelTuoGuan} message CGPlayerCancelTuoGuan
  14730. * @param {$protobuf.IConversionOptions} [options] Conversion options
  14731. * @returns {Object.<string,*>} Plain object
  14732. */
  14733. CGPlayerCancelTuoGuan.toObject = function toObject() {
  14734. return {};
  14735. };
  14736. /**
  14737. * Converts this CGPlayerCancelTuoGuan to JSON.
  14738. * @function toJSON
  14739. * @memberof guandan.CGPlayerCancelTuoGuan
  14740. * @instance
  14741. * @returns {Object.<string,*>} JSON object
  14742. */
  14743. CGPlayerCancelTuoGuan.prototype.toJSON = function toJSON() {
  14744. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  14745. };
  14746. return CGPlayerCancelTuoGuan;
  14747. })();
  14748. guandan.GCPlayerCancelTuoGuan = (function() {
  14749. /**
  14750. * Properties of a GCPlayerCancelTuoGuan.
  14751. * @memberof guandan
  14752. * @interface IGCPlayerCancelTuoGuan
  14753. * @property {number|Long} playerId GCPlayerCancelTuoGuan playerId
  14754. */
  14755. /**
  14756. * Constructs a new GCPlayerCancelTuoGuan.
  14757. * @memberof guandan
  14758. * @classdesc Represents a GCPlayerCancelTuoGuan.
  14759. * @implements IGCPlayerCancelTuoGuan
  14760. * @constructor
  14761. * @param {guandan.IGCPlayerCancelTuoGuan=} [properties] Properties to set
  14762. */
  14763. function GCPlayerCancelTuoGuan(properties) {
  14764. if (properties)
  14765. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  14766. if (properties[keys[i]] != null)
  14767. this[keys[i]] = properties[keys[i]];
  14768. }
  14769. /**
  14770. * GCPlayerCancelTuoGuan playerId.
  14771. * @member {number|Long} playerId
  14772. * @memberof guandan.GCPlayerCancelTuoGuan
  14773. * @instance
  14774. */
  14775. GCPlayerCancelTuoGuan.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  14776. /**
  14777. * Creates a new GCPlayerCancelTuoGuan instance using the specified properties.
  14778. * @function create
  14779. * @memberof guandan.GCPlayerCancelTuoGuan
  14780. * @static
  14781. * @param {guandan.IGCPlayerCancelTuoGuan=} [properties] Properties to set
  14782. * @returns {guandan.GCPlayerCancelTuoGuan} GCPlayerCancelTuoGuan instance
  14783. */
  14784. GCPlayerCancelTuoGuan.create = function create(properties) {
  14785. return new GCPlayerCancelTuoGuan(properties);
  14786. };
  14787. /**
  14788. * Encodes the specified GCPlayerCancelTuoGuan message. Does not implicitly {@link guandan.GCPlayerCancelTuoGuan.verify|verify} messages.
  14789. * @function encode
  14790. * @memberof guandan.GCPlayerCancelTuoGuan
  14791. * @static
  14792. * @param {guandan.IGCPlayerCancelTuoGuan} message GCPlayerCancelTuoGuan message or plain object to encode
  14793. * @param {$protobuf.Writer} [writer] Writer to encode to
  14794. * @returns {$protobuf.Writer} Writer
  14795. */
  14796. GCPlayerCancelTuoGuan.encode = function encode(message, writer) {
  14797. if (!writer)
  14798. writer = $Writer.create();
  14799. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
  14800. return writer;
  14801. };
  14802. /**
  14803. * Encodes the specified GCPlayerCancelTuoGuan message, length delimited. Does not implicitly {@link guandan.GCPlayerCancelTuoGuan.verify|verify} messages.
  14804. * @function encodeDelimited
  14805. * @memberof guandan.GCPlayerCancelTuoGuan
  14806. * @static
  14807. * @param {guandan.IGCPlayerCancelTuoGuan} message GCPlayerCancelTuoGuan message or plain object to encode
  14808. * @param {$protobuf.Writer} [writer] Writer to encode to
  14809. * @returns {$protobuf.Writer} Writer
  14810. */
  14811. GCPlayerCancelTuoGuan.encodeDelimited = function encodeDelimited(message, writer) {
  14812. return this.encode(message, writer).ldelim();
  14813. };
  14814. /**
  14815. * Decodes a GCPlayerCancelTuoGuan message from the specified reader or buffer.
  14816. * @function decode
  14817. * @memberof guandan.GCPlayerCancelTuoGuan
  14818. * @static
  14819. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  14820. * @param {number} [length] Message length if known beforehand
  14821. * @returns {guandan.GCPlayerCancelTuoGuan} GCPlayerCancelTuoGuan
  14822. * @throws {Error} If the payload is not a reader or valid buffer
  14823. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  14824. */
  14825. GCPlayerCancelTuoGuan.decode = function decode(reader, length) {
  14826. if (!(reader instanceof $Reader))
  14827. reader = $Reader.create(reader);
  14828. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCPlayerCancelTuoGuan();
  14829. while (reader.pos < end) {
  14830. var tag = reader.uint32();
  14831. switch (tag >>> 3) {
  14832. case 1:
  14833. message.playerId = reader.int64();
  14834. break;
  14835. default:
  14836. reader.skipType(tag & 7);
  14837. break;
  14838. }
  14839. }
  14840. if (!message.hasOwnProperty("playerId"))
  14841. throw $util.ProtocolError("missing required 'playerId'", { instance: message });
  14842. return message;
  14843. };
  14844. /**
  14845. * Decodes a GCPlayerCancelTuoGuan message from the specified reader or buffer, length delimited.
  14846. * @function decodeDelimited
  14847. * @memberof guandan.GCPlayerCancelTuoGuan
  14848. * @static
  14849. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  14850. * @returns {guandan.GCPlayerCancelTuoGuan} GCPlayerCancelTuoGuan
  14851. * @throws {Error} If the payload is not a reader or valid buffer
  14852. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  14853. */
  14854. GCPlayerCancelTuoGuan.decodeDelimited = function decodeDelimited(reader) {
  14855. if (!(reader instanceof $Reader))
  14856. reader = new $Reader(reader);
  14857. return this.decode(reader, reader.uint32());
  14858. };
  14859. /**
  14860. * Verifies a GCPlayerCancelTuoGuan message.
  14861. * @function verify
  14862. * @memberof guandan.GCPlayerCancelTuoGuan
  14863. * @static
  14864. * @param {Object.<string,*>} message Plain object to verify
  14865. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  14866. */
  14867. GCPlayerCancelTuoGuan.verify = function verify(message) {
  14868. if (typeof message !== "object" || message === null)
  14869. return "object expected";
  14870. if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
  14871. return "playerId: integer|Long expected";
  14872. return null;
  14873. };
  14874. /**
  14875. * Creates a GCPlayerCancelTuoGuan message from a plain object. Also converts values to their respective internal types.
  14876. * @function fromObject
  14877. * @memberof guandan.GCPlayerCancelTuoGuan
  14878. * @static
  14879. * @param {Object.<string,*>} object Plain object
  14880. * @returns {guandan.GCPlayerCancelTuoGuan} GCPlayerCancelTuoGuan
  14881. */
  14882. GCPlayerCancelTuoGuan.fromObject = function fromObject(object) {
  14883. if (object instanceof $root.guandan.GCPlayerCancelTuoGuan)
  14884. return object;
  14885. var message = new $root.guandan.GCPlayerCancelTuoGuan();
  14886. if (object.playerId != null)
  14887. if ($util.Long)
  14888. (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
  14889. else if (typeof object.playerId === "string")
  14890. message.playerId = parseInt(object.playerId, 10);
  14891. else if (typeof object.playerId === "number")
  14892. message.playerId = object.playerId;
  14893. else if (typeof object.playerId === "object")
  14894. message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
  14895. return message;
  14896. };
  14897. /**
  14898. * Creates a plain object from a GCPlayerCancelTuoGuan message. Also converts values to other types if specified.
  14899. * @function toObject
  14900. * @memberof guandan.GCPlayerCancelTuoGuan
  14901. * @static
  14902. * @param {guandan.GCPlayerCancelTuoGuan} message GCPlayerCancelTuoGuan
  14903. * @param {$protobuf.IConversionOptions} [options] Conversion options
  14904. * @returns {Object.<string,*>} Plain object
  14905. */
  14906. GCPlayerCancelTuoGuan.toObject = function toObject(message, options) {
  14907. if (!options)
  14908. options = {};
  14909. var object = {};
  14910. if (options.defaults)
  14911. if ($util.Long) {
  14912. var long = new $util.Long(0, 0, false);
  14913. object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  14914. } else
  14915. object.playerId = options.longs === String ? "0" : 0;
  14916. if (message.playerId != null && message.hasOwnProperty("playerId"))
  14917. if (typeof message.playerId === "number")
  14918. object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
  14919. else
  14920. object.playerId = options.longs === String ? $util.Long.prototype.toString.call(message.playerId) : options.longs === Number ? new $util.LongBits(message.playerId.low >>> 0, message.playerId.high >>> 0).toNumber() : message.playerId;
  14921. return object;
  14922. };
  14923. /**
  14924. * Converts this GCPlayerCancelTuoGuan to JSON.
  14925. * @function toJSON
  14926. * @memberof guandan.GCPlayerCancelTuoGuan
  14927. * @instance
  14928. * @returns {Object.<string,*>} JSON object
  14929. */
  14930. GCPlayerCancelTuoGuan.prototype.toJSON = function toJSON() {
  14931. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  14932. };
  14933. return GCPlayerCancelTuoGuan;
  14934. })();
  14935. guandan.GCRoomRoundStart = (function() {
  14936. /**
  14937. * Properties of a GCRoomRoundStart.
  14938. * @memberof guandan
  14939. * @interface IGCRoomRoundStart
  14940. * @property {number|null} [currentRound] GCRoomRoundStart currentRound
  14941. */
  14942. /**
  14943. * Constructs a new GCRoomRoundStart.
  14944. * @memberof guandan
  14945. * @classdesc Represents a GCRoomRoundStart.
  14946. * @implements IGCRoomRoundStart
  14947. * @constructor
  14948. * @param {guandan.IGCRoomRoundStart=} [properties] Properties to set
  14949. */
  14950. function GCRoomRoundStart(properties) {
  14951. if (properties)
  14952. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  14953. if (properties[keys[i]] != null)
  14954. this[keys[i]] = properties[keys[i]];
  14955. }
  14956. /**
  14957. * GCRoomRoundStart currentRound.
  14958. * @member {number} currentRound
  14959. * @memberof guandan.GCRoomRoundStart
  14960. * @instance
  14961. */
  14962. GCRoomRoundStart.prototype.currentRound = 0;
  14963. /**
  14964. * Creates a new GCRoomRoundStart instance using the specified properties.
  14965. * @function create
  14966. * @memberof guandan.GCRoomRoundStart
  14967. * @static
  14968. * @param {guandan.IGCRoomRoundStart=} [properties] Properties to set
  14969. * @returns {guandan.GCRoomRoundStart} GCRoomRoundStart instance
  14970. */
  14971. GCRoomRoundStart.create = function create(properties) {
  14972. return new GCRoomRoundStart(properties);
  14973. };
  14974. /**
  14975. * Encodes the specified GCRoomRoundStart message. Does not implicitly {@link guandan.GCRoomRoundStart.verify|verify} messages.
  14976. * @function encode
  14977. * @memberof guandan.GCRoomRoundStart
  14978. * @static
  14979. * @param {guandan.IGCRoomRoundStart} message GCRoomRoundStart message or plain object to encode
  14980. * @param {$protobuf.Writer} [writer] Writer to encode to
  14981. * @returns {$protobuf.Writer} Writer
  14982. */
  14983. GCRoomRoundStart.encode = function encode(message, writer) {
  14984. if (!writer)
  14985. writer = $Writer.create();
  14986. if (message.currentRound != null && Object.hasOwnProperty.call(message, "currentRound"))
  14987. writer.uint32(/* id 1, wireType 0 =*/8).int32(message.currentRound);
  14988. return writer;
  14989. };
  14990. /**
  14991. * Encodes the specified GCRoomRoundStart message, length delimited. Does not implicitly {@link guandan.GCRoomRoundStart.verify|verify} messages.
  14992. * @function encodeDelimited
  14993. * @memberof guandan.GCRoomRoundStart
  14994. * @static
  14995. * @param {guandan.IGCRoomRoundStart} message GCRoomRoundStart message or plain object to encode
  14996. * @param {$protobuf.Writer} [writer] Writer to encode to
  14997. * @returns {$protobuf.Writer} Writer
  14998. */
  14999. GCRoomRoundStart.encodeDelimited = function encodeDelimited(message, writer) {
  15000. return this.encode(message, writer).ldelim();
  15001. };
  15002. /**
  15003. * Decodes a GCRoomRoundStart message from the specified reader or buffer.
  15004. * @function decode
  15005. * @memberof guandan.GCRoomRoundStart
  15006. * @static
  15007. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  15008. * @param {number} [length] Message length if known beforehand
  15009. * @returns {guandan.GCRoomRoundStart} GCRoomRoundStart
  15010. * @throws {Error} If the payload is not a reader or valid buffer
  15011. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  15012. */
  15013. GCRoomRoundStart.decode = function decode(reader, length) {
  15014. if (!(reader instanceof $Reader))
  15015. reader = $Reader.create(reader);
  15016. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCRoomRoundStart();
  15017. while (reader.pos < end) {
  15018. var tag = reader.uint32();
  15019. switch (tag >>> 3) {
  15020. case 1:
  15021. message.currentRound = reader.int32();
  15022. break;
  15023. default:
  15024. reader.skipType(tag & 7);
  15025. break;
  15026. }
  15027. }
  15028. return message;
  15029. };
  15030. /**
  15031. * Decodes a GCRoomRoundStart message from the specified reader or buffer, length delimited.
  15032. * @function decodeDelimited
  15033. * @memberof guandan.GCRoomRoundStart
  15034. * @static
  15035. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  15036. * @returns {guandan.GCRoomRoundStart} GCRoomRoundStart
  15037. * @throws {Error} If the payload is not a reader or valid buffer
  15038. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  15039. */
  15040. GCRoomRoundStart.decodeDelimited = function decodeDelimited(reader) {
  15041. if (!(reader instanceof $Reader))
  15042. reader = new $Reader(reader);
  15043. return this.decode(reader, reader.uint32());
  15044. };
  15045. /**
  15046. * Verifies a GCRoomRoundStart message.
  15047. * @function verify
  15048. * @memberof guandan.GCRoomRoundStart
  15049. * @static
  15050. * @param {Object.<string,*>} message Plain object to verify
  15051. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  15052. */
  15053. GCRoomRoundStart.verify = function verify(message) {
  15054. if (typeof message !== "object" || message === null)
  15055. return "object expected";
  15056. if (message.currentRound != null && message.hasOwnProperty("currentRound"))
  15057. if (!$util.isInteger(message.currentRound))
  15058. return "currentRound: integer expected";
  15059. return null;
  15060. };
  15061. /**
  15062. * Creates a GCRoomRoundStart message from a plain object. Also converts values to their respective internal types.
  15063. * @function fromObject
  15064. * @memberof guandan.GCRoomRoundStart
  15065. * @static
  15066. * @param {Object.<string,*>} object Plain object
  15067. * @returns {guandan.GCRoomRoundStart} GCRoomRoundStart
  15068. */
  15069. GCRoomRoundStart.fromObject = function fromObject(object) {
  15070. if (object instanceof $root.guandan.GCRoomRoundStart)
  15071. return object;
  15072. var message = new $root.guandan.GCRoomRoundStart();
  15073. if (object.currentRound != null)
  15074. message.currentRound = object.currentRound | 0;
  15075. return message;
  15076. };
  15077. /**
  15078. * Creates a plain object from a GCRoomRoundStart message. Also converts values to other types if specified.
  15079. * @function toObject
  15080. * @memberof guandan.GCRoomRoundStart
  15081. * @static
  15082. * @param {guandan.GCRoomRoundStart} message GCRoomRoundStart
  15083. * @param {$protobuf.IConversionOptions} [options] Conversion options
  15084. * @returns {Object.<string,*>} Plain object
  15085. */
  15086. GCRoomRoundStart.toObject = function toObject(message, options) {
  15087. if (!options)
  15088. options = {};
  15089. var object = {};
  15090. if (options.defaults)
  15091. object.currentRound = 0;
  15092. if (message.currentRound != null && message.hasOwnProperty("currentRound"))
  15093. object.currentRound = message.currentRound;
  15094. return object;
  15095. };
  15096. /**
  15097. * Converts this GCRoomRoundStart to JSON.
  15098. * @function toJSON
  15099. * @memberof guandan.GCRoomRoundStart
  15100. * @instance
  15101. * @returns {Object.<string,*>} JSON object
  15102. */
  15103. GCRoomRoundStart.prototype.toJSON = function toJSON() {
  15104. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  15105. };
  15106. return GCRoomRoundStart;
  15107. })();
  15108. guandan.GCPlayerRemainCardBroadcast = (function() {
  15109. /**
  15110. * Properties of a GCPlayerRemainCardBroadcast.
  15111. * @memberof guandan
  15112. * @interface IGCPlayerRemainCardBroadcast
  15113. * @property {number|Long} playerId GCPlayerRemainCardBroadcast playerId
  15114. * @property {number} remainCards GCPlayerRemainCardBroadcast remainCards
  15115. */
  15116. /**
  15117. * Constructs a new GCPlayerRemainCardBroadcast.
  15118. * @memberof guandan
  15119. * @classdesc Represents a GCPlayerRemainCardBroadcast.
  15120. * @implements IGCPlayerRemainCardBroadcast
  15121. * @constructor
  15122. * @param {guandan.IGCPlayerRemainCardBroadcast=} [properties] Properties to set
  15123. */
  15124. function GCPlayerRemainCardBroadcast(properties) {
  15125. if (properties)
  15126. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  15127. if (properties[keys[i]] != null)
  15128. this[keys[i]] = properties[keys[i]];
  15129. }
  15130. /**
  15131. * GCPlayerRemainCardBroadcast playerId.
  15132. * @member {number|Long} playerId
  15133. * @memberof guandan.GCPlayerRemainCardBroadcast
  15134. * @instance
  15135. */
  15136. GCPlayerRemainCardBroadcast.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  15137. /**
  15138. * GCPlayerRemainCardBroadcast remainCards.
  15139. * @member {number} remainCards
  15140. * @memberof guandan.GCPlayerRemainCardBroadcast
  15141. * @instance
  15142. */
  15143. GCPlayerRemainCardBroadcast.prototype.remainCards = 0;
  15144. /**
  15145. * Creates a new GCPlayerRemainCardBroadcast instance using the specified properties.
  15146. * @function create
  15147. * @memberof guandan.GCPlayerRemainCardBroadcast
  15148. * @static
  15149. * @param {guandan.IGCPlayerRemainCardBroadcast=} [properties] Properties to set
  15150. * @returns {guandan.GCPlayerRemainCardBroadcast} GCPlayerRemainCardBroadcast instance
  15151. */
  15152. GCPlayerRemainCardBroadcast.create = function create(properties) {
  15153. return new GCPlayerRemainCardBroadcast(properties);
  15154. };
  15155. /**
  15156. * Encodes the specified GCPlayerRemainCardBroadcast message. Does not implicitly {@link guandan.GCPlayerRemainCardBroadcast.verify|verify} messages.
  15157. * @function encode
  15158. * @memberof guandan.GCPlayerRemainCardBroadcast
  15159. * @static
  15160. * @param {guandan.IGCPlayerRemainCardBroadcast} message GCPlayerRemainCardBroadcast message or plain object to encode
  15161. * @param {$protobuf.Writer} [writer] Writer to encode to
  15162. * @returns {$protobuf.Writer} Writer
  15163. */
  15164. GCPlayerRemainCardBroadcast.encode = function encode(message, writer) {
  15165. if (!writer)
  15166. writer = $Writer.create();
  15167. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
  15168. writer.uint32(/* id 2, wireType 0 =*/16).int32(message.remainCards);
  15169. return writer;
  15170. };
  15171. /**
  15172. * Encodes the specified GCPlayerRemainCardBroadcast message, length delimited. Does not implicitly {@link guandan.GCPlayerRemainCardBroadcast.verify|verify} messages.
  15173. * @function encodeDelimited
  15174. * @memberof guandan.GCPlayerRemainCardBroadcast
  15175. * @static
  15176. * @param {guandan.IGCPlayerRemainCardBroadcast} message GCPlayerRemainCardBroadcast message or plain object to encode
  15177. * @param {$protobuf.Writer} [writer] Writer to encode to
  15178. * @returns {$protobuf.Writer} Writer
  15179. */
  15180. GCPlayerRemainCardBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
  15181. return this.encode(message, writer).ldelim();
  15182. };
  15183. /**
  15184. * Decodes a GCPlayerRemainCardBroadcast message from the specified reader or buffer.
  15185. * @function decode
  15186. * @memberof guandan.GCPlayerRemainCardBroadcast
  15187. * @static
  15188. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  15189. * @param {number} [length] Message length if known beforehand
  15190. * @returns {guandan.GCPlayerRemainCardBroadcast} GCPlayerRemainCardBroadcast
  15191. * @throws {Error} If the payload is not a reader or valid buffer
  15192. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  15193. */
  15194. GCPlayerRemainCardBroadcast.decode = function decode(reader, length) {
  15195. if (!(reader instanceof $Reader))
  15196. reader = $Reader.create(reader);
  15197. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCPlayerRemainCardBroadcast();
  15198. while (reader.pos < end) {
  15199. var tag = reader.uint32();
  15200. switch (tag >>> 3) {
  15201. case 1:
  15202. message.playerId = reader.int64();
  15203. break;
  15204. case 2:
  15205. message.remainCards = reader.int32();
  15206. break;
  15207. default:
  15208. reader.skipType(tag & 7);
  15209. break;
  15210. }
  15211. }
  15212. if (!message.hasOwnProperty("playerId"))
  15213. throw $util.ProtocolError("missing required 'playerId'", { instance: message });
  15214. if (!message.hasOwnProperty("remainCards"))
  15215. throw $util.ProtocolError("missing required 'remainCards'", { instance: message });
  15216. return message;
  15217. };
  15218. /**
  15219. * Decodes a GCPlayerRemainCardBroadcast message from the specified reader or buffer, length delimited.
  15220. * @function decodeDelimited
  15221. * @memberof guandan.GCPlayerRemainCardBroadcast
  15222. * @static
  15223. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  15224. * @returns {guandan.GCPlayerRemainCardBroadcast} GCPlayerRemainCardBroadcast
  15225. * @throws {Error} If the payload is not a reader or valid buffer
  15226. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  15227. */
  15228. GCPlayerRemainCardBroadcast.decodeDelimited = function decodeDelimited(reader) {
  15229. if (!(reader instanceof $Reader))
  15230. reader = new $Reader(reader);
  15231. return this.decode(reader, reader.uint32());
  15232. };
  15233. /**
  15234. * Verifies a GCPlayerRemainCardBroadcast message.
  15235. * @function verify
  15236. * @memberof guandan.GCPlayerRemainCardBroadcast
  15237. * @static
  15238. * @param {Object.<string,*>} message Plain object to verify
  15239. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  15240. */
  15241. GCPlayerRemainCardBroadcast.verify = function verify(message) {
  15242. if (typeof message !== "object" || message === null)
  15243. return "object expected";
  15244. if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
  15245. return "playerId: integer|Long expected";
  15246. if (!$util.isInteger(message.remainCards))
  15247. return "remainCards: integer expected";
  15248. return null;
  15249. };
  15250. /**
  15251. * Creates a GCPlayerRemainCardBroadcast message from a plain object. Also converts values to their respective internal types.
  15252. * @function fromObject
  15253. * @memberof guandan.GCPlayerRemainCardBroadcast
  15254. * @static
  15255. * @param {Object.<string,*>} object Plain object
  15256. * @returns {guandan.GCPlayerRemainCardBroadcast} GCPlayerRemainCardBroadcast
  15257. */
  15258. GCPlayerRemainCardBroadcast.fromObject = function fromObject(object) {
  15259. if (object instanceof $root.guandan.GCPlayerRemainCardBroadcast)
  15260. return object;
  15261. var message = new $root.guandan.GCPlayerRemainCardBroadcast();
  15262. if (object.playerId != null)
  15263. if ($util.Long)
  15264. (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
  15265. else if (typeof object.playerId === "string")
  15266. message.playerId = parseInt(object.playerId, 10);
  15267. else if (typeof object.playerId === "number")
  15268. message.playerId = object.playerId;
  15269. else if (typeof object.playerId === "object")
  15270. message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
  15271. if (object.remainCards != null)
  15272. message.remainCards = object.remainCards | 0;
  15273. return message;
  15274. };
  15275. /**
  15276. * Creates a plain object from a GCPlayerRemainCardBroadcast message. Also converts values to other types if specified.
  15277. * @function toObject
  15278. * @memberof guandan.GCPlayerRemainCardBroadcast
  15279. * @static
  15280. * @param {guandan.GCPlayerRemainCardBroadcast} message GCPlayerRemainCardBroadcast
  15281. * @param {$protobuf.IConversionOptions} [options] Conversion options
  15282. * @returns {Object.<string,*>} Plain object
  15283. */
  15284. GCPlayerRemainCardBroadcast.toObject = function toObject(message, options) {
  15285. if (!options)
  15286. options = {};
  15287. var object = {};
  15288. if (options.defaults) {
  15289. if ($util.Long) {
  15290. var long = new $util.Long(0, 0, false);
  15291. object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  15292. } else
  15293. object.playerId = options.longs === String ? "0" : 0;
  15294. object.remainCards = 0;
  15295. }
  15296. if (message.playerId != null && message.hasOwnProperty("playerId"))
  15297. if (typeof message.playerId === "number")
  15298. object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
  15299. else
  15300. object.playerId = options.longs === String ? $util.Long.prototype.toString.call(message.playerId) : options.longs === Number ? new $util.LongBits(message.playerId.low >>> 0, message.playerId.high >>> 0).toNumber() : message.playerId;
  15301. if (message.remainCards != null && message.hasOwnProperty("remainCards"))
  15302. object.remainCards = message.remainCards;
  15303. return object;
  15304. };
  15305. /**
  15306. * Converts this GCPlayerRemainCardBroadcast to JSON.
  15307. * @function toJSON
  15308. * @memberof guandan.GCPlayerRemainCardBroadcast
  15309. * @instance
  15310. * @returns {Object.<string,*>} JSON object
  15311. */
  15312. GCPlayerRemainCardBroadcast.prototype.toJSON = function toJSON() {
  15313. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  15314. };
  15315. return GCPlayerRemainCardBroadcast;
  15316. })();
  15317. guandan.GCPlayerDoubleBroadcast = (function() {
  15318. /**
  15319. * Properties of a GCPlayerDoubleBroadcast.
  15320. * @memberof guandan
  15321. * @interface IGCPlayerDoubleBroadcast
  15322. * @property {number|Long} playerId GCPlayerDoubleBroadcast playerId
  15323. * @property {boolean} isDouble GCPlayerDoubleBroadcast isDouble
  15324. */
  15325. /**
  15326. * Constructs a new GCPlayerDoubleBroadcast.
  15327. * @memberof guandan
  15328. * @classdesc Represents a GCPlayerDoubleBroadcast.
  15329. * @implements IGCPlayerDoubleBroadcast
  15330. * @constructor
  15331. * @param {guandan.IGCPlayerDoubleBroadcast=} [properties] Properties to set
  15332. */
  15333. function GCPlayerDoubleBroadcast(properties) {
  15334. if (properties)
  15335. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  15336. if (properties[keys[i]] != null)
  15337. this[keys[i]] = properties[keys[i]];
  15338. }
  15339. /**
  15340. * GCPlayerDoubleBroadcast playerId.
  15341. * @member {number|Long} playerId
  15342. * @memberof guandan.GCPlayerDoubleBroadcast
  15343. * @instance
  15344. */
  15345. GCPlayerDoubleBroadcast.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  15346. /**
  15347. * GCPlayerDoubleBroadcast isDouble.
  15348. * @member {boolean} isDouble
  15349. * @memberof guandan.GCPlayerDoubleBroadcast
  15350. * @instance
  15351. */
  15352. GCPlayerDoubleBroadcast.prototype.isDouble = false;
  15353. /**
  15354. * Creates a new GCPlayerDoubleBroadcast instance using the specified properties.
  15355. * @function create
  15356. * @memberof guandan.GCPlayerDoubleBroadcast
  15357. * @static
  15358. * @param {guandan.IGCPlayerDoubleBroadcast=} [properties] Properties to set
  15359. * @returns {guandan.GCPlayerDoubleBroadcast} GCPlayerDoubleBroadcast instance
  15360. */
  15361. GCPlayerDoubleBroadcast.create = function create(properties) {
  15362. return new GCPlayerDoubleBroadcast(properties);
  15363. };
  15364. /**
  15365. * Encodes the specified GCPlayerDoubleBroadcast message. Does not implicitly {@link guandan.GCPlayerDoubleBroadcast.verify|verify} messages.
  15366. * @function encode
  15367. * @memberof guandan.GCPlayerDoubleBroadcast
  15368. * @static
  15369. * @param {guandan.IGCPlayerDoubleBroadcast} message GCPlayerDoubleBroadcast message or plain object to encode
  15370. * @param {$protobuf.Writer} [writer] Writer to encode to
  15371. * @returns {$protobuf.Writer} Writer
  15372. */
  15373. GCPlayerDoubleBroadcast.encode = function encode(message, writer) {
  15374. if (!writer)
  15375. writer = $Writer.create();
  15376. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
  15377. writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isDouble);
  15378. return writer;
  15379. };
  15380. /**
  15381. * Encodes the specified GCPlayerDoubleBroadcast message, length delimited. Does not implicitly {@link guandan.GCPlayerDoubleBroadcast.verify|verify} messages.
  15382. * @function encodeDelimited
  15383. * @memberof guandan.GCPlayerDoubleBroadcast
  15384. * @static
  15385. * @param {guandan.IGCPlayerDoubleBroadcast} message GCPlayerDoubleBroadcast message or plain object to encode
  15386. * @param {$protobuf.Writer} [writer] Writer to encode to
  15387. * @returns {$protobuf.Writer} Writer
  15388. */
  15389. GCPlayerDoubleBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
  15390. return this.encode(message, writer).ldelim();
  15391. };
  15392. /**
  15393. * Decodes a GCPlayerDoubleBroadcast message from the specified reader or buffer.
  15394. * @function decode
  15395. * @memberof guandan.GCPlayerDoubleBroadcast
  15396. * @static
  15397. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  15398. * @param {number} [length] Message length if known beforehand
  15399. * @returns {guandan.GCPlayerDoubleBroadcast} GCPlayerDoubleBroadcast
  15400. * @throws {Error} If the payload is not a reader or valid buffer
  15401. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  15402. */
  15403. GCPlayerDoubleBroadcast.decode = function decode(reader, length) {
  15404. if (!(reader instanceof $Reader))
  15405. reader = $Reader.create(reader);
  15406. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCPlayerDoubleBroadcast();
  15407. while (reader.pos < end) {
  15408. var tag = reader.uint32();
  15409. switch (tag >>> 3) {
  15410. case 1:
  15411. message.playerId = reader.int64();
  15412. break;
  15413. case 2:
  15414. message.isDouble = reader.bool();
  15415. break;
  15416. default:
  15417. reader.skipType(tag & 7);
  15418. break;
  15419. }
  15420. }
  15421. if (!message.hasOwnProperty("playerId"))
  15422. throw $util.ProtocolError("missing required 'playerId'", { instance: message });
  15423. if (!message.hasOwnProperty("isDouble"))
  15424. throw $util.ProtocolError("missing required 'isDouble'", { instance: message });
  15425. return message;
  15426. };
  15427. /**
  15428. * Decodes a GCPlayerDoubleBroadcast message from the specified reader or buffer, length delimited.
  15429. * @function decodeDelimited
  15430. * @memberof guandan.GCPlayerDoubleBroadcast
  15431. * @static
  15432. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  15433. * @returns {guandan.GCPlayerDoubleBroadcast} GCPlayerDoubleBroadcast
  15434. * @throws {Error} If the payload is not a reader or valid buffer
  15435. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  15436. */
  15437. GCPlayerDoubleBroadcast.decodeDelimited = function decodeDelimited(reader) {
  15438. if (!(reader instanceof $Reader))
  15439. reader = new $Reader(reader);
  15440. return this.decode(reader, reader.uint32());
  15441. };
  15442. /**
  15443. * Verifies a GCPlayerDoubleBroadcast message.
  15444. * @function verify
  15445. * @memberof guandan.GCPlayerDoubleBroadcast
  15446. * @static
  15447. * @param {Object.<string,*>} message Plain object to verify
  15448. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  15449. */
  15450. GCPlayerDoubleBroadcast.verify = function verify(message) {
  15451. if (typeof message !== "object" || message === null)
  15452. return "object expected";
  15453. if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
  15454. return "playerId: integer|Long expected";
  15455. if (typeof message.isDouble !== "boolean")
  15456. return "isDouble: boolean expected";
  15457. return null;
  15458. };
  15459. /**
  15460. * Creates a GCPlayerDoubleBroadcast message from a plain object. Also converts values to their respective internal types.
  15461. * @function fromObject
  15462. * @memberof guandan.GCPlayerDoubleBroadcast
  15463. * @static
  15464. * @param {Object.<string,*>} object Plain object
  15465. * @returns {guandan.GCPlayerDoubleBroadcast} GCPlayerDoubleBroadcast
  15466. */
  15467. GCPlayerDoubleBroadcast.fromObject = function fromObject(object) {
  15468. if (object instanceof $root.guandan.GCPlayerDoubleBroadcast)
  15469. return object;
  15470. var message = new $root.guandan.GCPlayerDoubleBroadcast();
  15471. if (object.playerId != null)
  15472. if ($util.Long)
  15473. (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
  15474. else if (typeof object.playerId === "string")
  15475. message.playerId = parseInt(object.playerId, 10);
  15476. else if (typeof object.playerId === "number")
  15477. message.playerId = object.playerId;
  15478. else if (typeof object.playerId === "object")
  15479. message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
  15480. if (object.isDouble != null)
  15481. message.isDouble = Boolean(object.isDouble);
  15482. return message;
  15483. };
  15484. /**
  15485. * Creates a plain object from a GCPlayerDoubleBroadcast message. Also converts values to other types if specified.
  15486. * @function toObject
  15487. * @memberof guandan.GCPlayerDoubleBroadcast
  15488. * @static
  15489. * @param {guandan.GCPlayerDoubleBroadcast} message GCPlayerDoubleBroadcast
  15490. * @param {$protobuf.IConversionOptions} [options] Conversion options
  15491. * @returns {Object.<string,*>} Plain object
  15492. */
  15493. GCPlayerDoubleBroadcast.toObject = function toObject(message, options) {
  15494. if (!options)
  15495. options = {};
  15496. var object = {};
  15497. if (options.defaults) {
  15498. if ($util.Long) {
  15499. var long = new $util.Long(0, 0, false);
  15500. object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  15501. } else
  15502. object.playerId = options.longs === String ? "0" : 0;
  15503. object.isDouble = false;
  15504. }
  15505. if (message.playerId != null && message.hasOwnProperty("playerId"))
  15506. if (typeof message.playerId === "number")
  15507. object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
  15508. else
  15509. object.playerId = options.longs === String ? $util.Long.prototype.toString.call(message.playerId) : options.longs === Number ? new $util.LongBits(message.playerId.low >>> 0, message.playerId.high >>> 0).toNumber() : message.playerId;
  15510. if (message.isDouble != null && message.hasOwnProperty("isDouble"))
  15511. object.isDouble = message.isDouble;
  15512. return object;
  15513. };
  15514. /**
  15515. * Converts this GCPlayerDoubleBroadcast to JSON.
  15516. * @function toJSON
  15517. * @memberof guandan.GCPlayerDoubleBroadcast
  15518. * @instance
  15519. * @returns {Object.<string,*>} JSON object
  15520. */
  15521. GCPlayerDoubleBroadcast.prototype.toJSON = function toJSON() {
  15522. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  15523. };
  15524. return GCPlayerDoubleBroadcast;
  15525. })();
  15526. guandan.GCTuanTuanZhuanShowCardBroadcast = (function() {
  15527. /**
  15528. * Properties of a GCTuanTuanZhuanShowCardBroadcast.
  15529. * @memberof guandan
  15530. * @interface IGCTuanTuanZhuanShowCardBroadcast
  15531. * @property {Array.<number|Long>|null} [playerIds] GCTuanTuanZhuanShowCardBroadcast playerIds
  15532. * @property {number} card GCTuanTuanZhuanShowCardBroadcast card
  15533. * @property {Array.<number|Long>|null} [sameGroupPlayerIds] GCTuanTuanZhuanShowCardBroadcast sameGroupPlayerIds
  15534. */
  15535. /**
  15536. * Constructs a new GCTuanTuanZhuanShowCardBroadcast.
  15537. * @memberof guandan
  15538. * @classdesc Represents a GCTuanTuanZhuanShowCardBroadcast.
  15539. * @implements IGCTuanTuanZhuanShowCardBroadcast
  15540. * @constructor
  15541. * @param {guandan.IGCTuanTuanZhuanShowCardBroadcast=} [properties] Properties to set
  15542. */
  15543. function GCTuanTuanZhuanShowCardBroadcast(properties) {
  15544. this.playerIds = [];
  15545. this.sameGroupPlayerIds = [];
  15546. if (properties)
  15547. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  15548. if (properties[keys[i]] != null)
  15549. this[keys[i]] = properties[keys[i]];
  15550. }
  15551. /**
  15552. * GCTuanTuanZhuanShowCardBroadcast playerIds.
  15553. * @member {Array.<number|Long>} playerIds
  15554. * @memberof guandan.GCTuanTuanZhuanShowCardBroadcast
  15555. * @instance
  15556. */
  15557. GCTuanTuanZhuanShowCardBroadcast.prototype.playerIds = $util.emptyArray;
  15558. /**
  15559. * GCTuanTuanZhuanShowCardBroadcast card.
  15560. * @member {number} card
  15561. * @memberof guandan.GCTuanTuanZhuanShowCardBroadcast
  15562. * @instance
  15563. */
  15564. GCTuanTuanZhuanShowCardBroadcast.prototype.card = 0;
  15565. /**
  15566. * GCTuanTuanZhuanShowCardBroadcast sameGroupPlayerIds.
  15567. * @member {Array.<number|Long>} sameGroupPlayerIds
  15568. * @memberof guandan.GCTuanTuanZhuanShowCardBroadcast
  15569. * @instance
  15570. */
  15571. GCTuanTuanZhuanShowCardBroadcast.prototype.sameGroupPlayerIds = $util.emptyArray;
  15572. /**
  15573. * Creates a new GCTuanTuanZhuanShowCardBroadcast instance using the specified properties.
  15574. * @function create
  15575. * @memberof guandan.GCTuanTuanZhuanShowCardBroadcast
  15576. * @static
  15577. * @param {guandan.IGCTuanTuanZhuanShowCardBroadcast=} [properties] Properties to set
  15578. * @returns {guandan.GCTuanTuanZhuanShowCardBroadcast} GCTuanTuanZhuanShowCardBroadcast instance
  15579. */
  15580. GCTuanTuanZhuanShowCardBroadcast.create = function create(properties) {
  15581. return new GCTuanTuanZhuanShowCardBroadcast(properties);
  15582. };
  15583. /**
  15584. * Encodes the specified GCTuanTuanZhuanShowCardBroadcast message. Does not implicitly {@link guandan.GCTuanTuanZhuanShowCardBroadcast.verify|verify} messages.
  15585. * @function encode
  15586. * @memberof guandan.GCTuanTuanZhuanShowCardBroadcast
  15587. * @static
  15588. * @param {guandan.IGCTuanTuanZhuanShowCardBroadcast} message GCTuanTuanZhuanShowCardBroadcast message or plain object to encode
  15589. * @param {$protobuf.Writer} [writer] Writer to encode to
  15590. * @returns {$protobuf.Writer} Writer
  15591. */
  15592. GCTuanTuanZhuanShowCardBroadcast.encode = function encode(message, writer) {
  15593. if (!writer)
  15594. writer = $Writer.create();
  15595. if (message.playerIds != null && message.playerIds.length)
  15596. for (var i = 0; i < message.playerIds.length; ++i)
  15597. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerIds[i]);
  15598. writer.uint32(/* id 2, wireType 0 =*/16).int32(message.card);
  15599. if (message.sameGroupPlayerIds != null && message.sameGroupPlayerIds.length)
  15600. for (var i = 0; i < message.sameGroupPlayerIds.length; ++i)
  15601. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.sameGroupPlayerIds[i]);
  15602. return writer;
  15603. };
  15604. /**
  15605. * Encodes the specified GCTuanTuanZhuanShowCardBroadcast message, length delimited. Does not implicitly {@link guandan.GCTuanTuanZhuanShowCardBroadcast.verify|verify} messages.
  15606. * @function encodeDelimited
  15607. * @memberof guandan.GCTuanTuanZhuanShowCardBroadcast
  15608. * @static
  15609. * @param {guandan.IGCTuanTuanZhuanShowCardBroadcast} message GCTuanTuanZhuanShowCardBroadcast message or plain object to encode
  15610. * @param {$protobuf.Writer} [writer] Writer to encode to
  15611. * @returns {$protobuf.Writer} Writer
  15612. */
  15613. GCTuanTuanZhuanShowCardBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
  15614. return this.encode(message, writer).ldelim();
  15615. };
  15616. /**
  15617. * Decodes a GCTuanTuanZhuanShowCardBroadcast message from the specified reader or buffer.
  15618. * @function decode
  15619. * @memberof guandan.GCTuanTuanZhuanShowCardBroadcast
  15620. * @static
  15621. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  15622. * @param {number} [length] Message length if known beforehand
  15623. * @returns {guandan.GCTuanTuanZhuanShowCardBroadcast} GCTuanTuanZhuanShowCardBroadcast
  15624. * @throws {Error} If the payload is not a reader or valid buffer
  15625. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  15626. */
  15627. GCTuanTuanZhuanShowCardBroadcast.decode = function decode(reader, length) {
  15628. if (!(reader instanceof $Reader))
  15629. reader = $Reader.create(reader);
  15630. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCTuanTuanZhuanShowCardBroadcast();
  15631. while (reader.pos < end) {
  15632. var tag = reader.uint32();
  15633. switch (tag >>> 3) {
  15634. case 1:
  15635. if (!(message.playerIds && message.playerIds.length))
  15636. message.playerIds = [];
  15637. if ((tag & 7) === 2) {
  15638. var end2 = reader.uint32() + reader.pos;
  15639. while (reader.pos < end2)
  15640. message.playerIds.push(reader.int64());
  15641. } else
  15642. message.playerIds.push(reader.int64());
  15643. break;
  15644. case 2:
  15645. message.card = reader.int32();
  15646. break;
  15647. case 3:
  15648. if (!(message.sameGroupPlayerIds && message.sameGroupPlayerIds.length))
  15649. message.sameGroupPlayerIds = [];
  15650. if ((tag & 7) === 2) {
  15651. var end2 = reader.uint32() + reader.pos;
  15652. while (reader.pos < end2)
  15653. message.sameGroupPlayerIds.push(reader.int64());
  15654. } else
  15655. message.sameGroupPlayerIds.push(reader.int64());
  15656. break;
  15657. default:
  15658. reader.skipType(tag & 7);
  15659. break;
  15660. }
  15661. }
  15662. if (!message.hasOwnProperty("card"))
  15663. throw $util.ProtocolError("missing required 'card'", { instance: message });
  15664. return message;
  15665. };
  15666. /**
  15667. * Decodes a GCTuanTuanZhuanShowCardBroadcast message from the specified reader or buffer, length delimited.
  15668. * @function decodeDelimited
  15669. * @memberof guandan.GCTuanTuanZhuanShowCardBroadcast
  15670. * @static
  15671. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  15672. * @returns {guandan.GCTuanTuanZhuanShowCardBroadcast} GCTuanTuanZhuanShowCardBroadcast
  15673. * @throws {Error} If the payload is not a reader or valid buffer
  15674. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  15675. */
  15676. GCTuanTuanZhuanShowCardBroadcast.decodeDelimited = function decodeDelimited(reader) {
  15677. if (!(reader instanceof $Reader))
  15678. reader = new $Reader(reader);
  15679. return this.decode(reader, reader.uint32());
  15680. };
  15681. /**
  15682. * Verifies a GCTuanTuanZhuanShowCardBroadcast message.
  15683. * @function verify
  15684. * @memberof guandan.GCTuanTuanZhuanShowCardBroadcast
  15685. * @static
  15686. * @param {Object.<string,*>} message Plain object to verify
  15687. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  15688. */
  15689. GCTuanTuanZhuanShowCardBroadcast.verify = function verify(message) {
  15690. if (typeof message !== "object" || message === null)
  15691. return "object expected";
  15692. if (message.playerIds != null && message.hasOwnProperty("playerIds")) {
  15693. if (!Array.isArray(message.playerIds))
  15694. return "playerIds: array expected";
  15695. for (var i = 0; i < message.playerIds.length; ++i)
  15696. if (!$util.isInteger(message.playerIds[i]) && !(message.playerIds[i] && $util.isInteger(message.playerIds[i].low) && $util.isInteger(message.playerIds[i].high)))
  15697. return "playerIds: integer|Long[] expected";
  15698. }
  15699. if (!$util.isInteger(message.card))
  15700. return "card: integer expected";
  15701. if (message.sameGroupPlayerIds != null && message.hasOwnProperty("sameGroupPlayerIds")) {
  15702. if (!Array.isArray(message.sameGroupPlayerIds))
  15703. return "sameGroupPlayerIds: array expected";
  15704. for (var i = 0; i < message.sameGroupPlayerIds.length; ++i)
  15705. if (!$util.isInteger(message.sameGroupPlayerIds[i]) && !(message.sameGroupPlayerIds[i] && $util.isInteger(message.sameGroupPlayerIds[i].low) && $util.isInteger(message.sameGroupPlayerIds[i].high)))
  15706. return "sameGroupPlayerIds: integer|Long[] expected";
  15707. }
  15708. return null;
  15709. };
  15710. /**
  15711. * Creates a GCTuanTuanZhuanShowCardBroadcast message from a plain object. Also converts values to their respective internal types.
  15712. * @function fromObject
  15713. * @memberof guandan.GCTuanTuanZhuanShowCardBroadcast
  15714. * @static
  15715. * @param {Object.<string,*>} object Plain object
  15716. * @returns {guandan.GCTuanTuanZhuanShowCardBroadcast} GCTuanTuanZhuanShowCardBroadcast
  15717. */
  15718. GCTuanTuanZhuanShowCardBroadcast.fromObject = function fromObject(object) {
  15719. if (object instanceof $root.guandan.GCTuanTuanZhuanShowCardBroadcast)
  15720. return object;
  15721. var message = new $root.guandan.GCTuanTuanZhuanShowCardBroadcast();
  15722. if (object.playerIds) {
  15723. if (!Array.isArray(object.playerIds))
  15724. throw TypeError(".guandan.GCTuanTuanZhuanShowCardBroadcast.playerIds: array expected");
  15725. message.playerIds = [];
  15726. for (var i = 0; i < object.playerIds.length; ++i)
  15727. if ($util.Long)
  15728. (message.playerIds[i] = $util.Long.fromValue(object.playerIds[i])).unsigned = false;
  15729. else if (typeof object.playerIds[i] === "string")
  15730. message.playerIds[i] = parseInt(object.playerIds[i], 10);
  15731. else if (typeof object.playerIds[i] === "number")
  15732. message.playerIds[i] = object.playerIds[i];
  15733. else if (typeof object.playerIds[i] === "object")
  15734. message.playerIds[i] = new $util.LongBits(object.playerIds[i].low >>> 0, object.playerIds[i].high >>> 0).toNumber();
  15735. }
  15736. if (object.card != null)
  15737. message.card = object.card | 0;
  15738. if (object.sameGroupPlayerIds) {
  15739. if (!Array.isArray(object.sameGroupPlayerIds))
  15740. throw TypeError(".guandan.GCTuanTuanZhuanShowCardBroadcast.sameGroupPlayerIds: array expected");
  15741. message.sameGroupPlayerIds = [];
  15742. for (var i = 0; i < object.sameGroupPlayerIds.length; ++i)
  15743. if ($util.Long)
  15744. (message.sameGroupPlayerIds[i] = $util.Long.fromValue(object.sameGroupPlayerIds[i])).unsigned = false;
  15745. else if (typeof object.sameGroupPlayerIds[i] === "string")
  15746. message.sameGroupPlayerIds[i] = parseInt(object.sameGroupPlayerIds[i], 10);
  15747. else if (typeof object.sameGroupPlayerIds[i] === "number")
  15748. message.sameGroupPlayerIds[i] = object.sameGroupPlayerIds[i];
  15749. else if (typeof object.sameGroupPlayerIds[i] === "object")
  15750. message.sameGroupPlayerIds[i] = new $util.LongBits(object.sameGroupPlayerIds[i].low >>> 0, object.sameGroupPlayerIds[i].high >>> 0).toNumber();
  15751. }
  15752. return message;
  15753. };
  15754. /**
  15755. * Creates a plain object from a GCTuanTuanZhuanShowCardBroadcast message. Also converts values to other types if specified.
  15756. * @function toObject
  15757. * @memberof guandan.GCTuanTuanZhuanShowCardBroadcast
  15758. * @static
  15759. * @param {guandan.GCTuanTuanZhuanShowCardBroadcast} message GCTuanTuanZhuanShowCardBroadcast
  15760. * @param {$protobuf.IConversionOptions} [options] Conversion options
  15761. * @returns {Object.<string,*>} Plain object
  15762. */
  15763. GCTuanTuanZhuanShowCardBroadcast.toObject = function toObject(message, options) {
  15764. if (!options)
  15765. options = {};
  15766. var object = {};
  15767. if (options.arrays || options.defaults) {
  15768. object.playerIds = [];
  15769. object.sameGroupPlayerIds = [];
  15770. }
  15771. if (options.defaults)
  15772. object.card = 0;
  15773. if (message.playerIds && message.playerIds.length) {
  15774. object.playerIds = [];
  15775. for (var j = 0; j < message.playerIds.length; ++j)
  15776. if (typeof message.playerIds[j] === "number")
  15777. object.playerIds[j] = options.longs === String ? String(message.playerIds[j]) : message.playerIds[j];
  15778. else
  15779. object.playerIds[j] = options.longs === String ? $util.Long.prototype.toString.call(message.playerIds[j]) : options.longs === Number ? new $util.LongBits(message.playerIds[j].low >>> 0, message.playerIds[j].high >>> 0).toNumber() : message.playerIds[j];
  15780. }
  15781. if (message.card != null && message.hasOwnProperty("card"))
  15782. object.card = message.card;
  15783. if (message.sameGroupPlayerIds && message.sameGroupPlayerIds.length) {
  15784. object.sameGroupPlayerIds = [];
  15785. for (var j = 0; j < message.sameGroupPlayerIds.length; ++j)
  15786. if (typeof message.sameGroupPlayerIds[j] === "number")
  15787. object.sameGroupPlayerIds[j] = options.longs === String ? String(message.sameGroupPlayerIds[j]) : message.sameGroupPlayerIds[j];
  15788. else
  15789. object.sameGroupPlayerIds[j] = options.longs === String ? $util.Long.prototype.toString.call(message.sameGroupPlayerIds[j]) : options.longs === Number ? new $util.LongBits(message.sameGroupPlayerIds[j].low >>> 0, message.sameGroupPlayerIds[j].high >>> 0).toNumber() : message.sameGroupPlayerIds[j];
  15790. }
  15791. return object;
  15792. };
  15793. /**
  15794. * Converts this GCTuanTuanZhuanShowCardBroadcast to JSON.
  15795. * @function toJSON
  15796. * @memberof guandan.GCTuanTuanZhuanShowCardBroadcast
  15797. * @instance
  15798. * @returns {Object.<string,*>} JSON object
  15799. */
  15800. GCTuanTuanZhuanShowCardBroadcast.prototype.toJSON = function toJSON() {
  15801. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  15802. };
  15803. return GCTuanTuanZhuanShowCardBroadcast;
  15804. })();
  15805. guandan.GCOppositePlayerCard = (function() {
  15806. /**
  15807. * Properties of a GCOppositePlayerCard.
  15808. * @memberof guandan
  15809. * @interface IGCOppositePlayerCard
  15810. * @property {Array.<number>|null} [card] GCOppositePlayerCard card
  15811. */
  15812. /**
  15813. * Constructs a new GCOppositePlayerCard.
  15814. * @memberof guandan
  15815. * @classdesc Represents a GCOppositePlayerCard.
  15816. * @implements IGCOppositePlayerCard
  15817. * @constructor
  15818. * @param {guandan.IGCOppositePlayerCard=} [properties] Properties to set
  15819. */
  15820. function GCOppositePlayerCard(properties) {
  15821. this.card = [];
  15822. if (properties)
  15823. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  15824. if (properties[keys[i]] != null)
  15825. this[keys[i]] = properties[keys[i]];
  15826. }
  15827. /**
  15828. * GCOppositePlayerCard card.
  15829. * @member {Array.<number>} card
  15830. * @memberof guandan.GCOppositePlayerCard
  15831. * @instance
  15832. */
  15833. GCOppositePlayerCard.prototype.card = $util.emptyArray;
  15834. /**
  15835. * Creates a new GCOppositePlayerCard instance using the specified properties.
  15836. * @function create
  15837. * @memberof guandan.GCOppositePlayerCard
  15838. * @static
  15839. * @param {guandan.IGCOppositePlayerCard=} [properties] Properties to set
  15840. * @returns {guandan.GCOppositePlayerCard} GCOppositePlayerCard instance
  15841. */
  15842. GCOppositePlayerCard.create = function create(properties) {
  15843. return new GCOppositePlayerCard(properties);
  15844. };
  15845. /**
  15846. * Encodes the specified GCOppositePlayerCard message. Does not implicitly {@link guandan.GCOppositePlayerCard.verify|verify} messages.
  15847. * @function encode
  15848. * @memberof guandan.GCOppositePlayerCard
  15849. * @static
  15850. * @param {guandan.IGCOppositePlayerCard} message GCOppositePlayerCard message or plain object to encode
  15851. * @param {$protobuf.Writer} [writer] Writer to encode to
  15852. * @returns {$protobuf.Writer} Writer
  15853. */
  15854. GCOppositePlayerCard.encode = function encode(message, writer) {
  15855. if (!writer)
  15856. writer = $Writer.create();
  15857. if (message.card != null && message.card.length)
  15858. for (var i = 0; i < message.card.length; ++i)
  15859. writer.uint32(/* id 1, wireType 0 =*/8).int32(message.card[i]);
  15860. return writer;
  15861. };
  15862. /**
  15863. * Encodes the specified GCOppositePlayerCard message, length delimited. Does not implicitly {@link guandan.GCOppositePlayerCard.verify|verify} messages.
  15864. * @function encodeDelimited
  15865. * @memberof guandan.GCOppositePlayerCard
  15866. * @static
  15867. * @param {guandan.IGCOppositePlayerCard} message GCOppositePlayerCard message or plain object to encode
  15868. * @param {$protobuf.Writer} [writer] Writer to encode to
  15869. * @returns {$protobuf.Writer} Writer
  15870. */
  15871. GCOppositePlayerCard.encodeDelimited = function encodeDelimited(message, writer) {
  15872. return this.encode(message, writer).ldelim();
  15873. };
  15874. /**
  15875. * Decodes a GCOppositePlayerCard message from the specified reader or buffer.
  15876. * @function decode
  15877. * @memberof guandan.GCOppositePlayerCard
  15878. * @static
  15879. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  15880. * @param {number} [length] Message length if known beforehand
  15881. * @returns {guandan.GCOppositePlayerCard} GCOppositePlayerCard
  15882. * @throws {Error} If the payload is not a reader or valid buffer
  15883. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  15884. */
  15885. GCOppositePlayerCard.decode = function decode(reader, length) {
  15886. if (!(reader instanceof $Reader))
  15887. reader = $Reader.create(reader);
  15888. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCOppositePlayerCard();
  15889. while (reader.pos < end) {
  15890. var tag = reader.uint32();
  15891. switch (tag >>> 3) {
  15892. case 1:
  15893. if (!(message.card && message.card.length))
  15894. message.card = [];
  15895. if ((tag & 7) === 2) {
  15896. var end2 = reader.uint32() + reader.pos;
  15897. while (reader.pos < end2)
  15898. message.card.push(reader.int32());
  15899. } else
  15900. message.card.push(reader.int32());
  15901. break;
  15902. default:
  15903. reader.skipType(tag & 7);
  15904. break;
  15905. }
  15906. }
  15907. return message;
  15908. };
  15909. /**
  15910. * Decodes a GCOppositePlayerCard message from the specified reader or buffer, length delimited.
  15911. * @function decodeDelimited
  15912. * @memberof guandan.GCOppositePlayerCard
  15913. * @static
  15914. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  15915. * @returns {guandan.GCOppositePlayerCard} GCOppositePlayerCard
  15916. * @throws {Error} If the payload is not a reader or valid buffer
  15917. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  15918. */
  15919. GCOppositePlayerCard.decodeDelimited = function decodeDelimited(reader) {
  15920. if (!(reader instanceof $Reader))
  15921. reader = new $Reader(reader);
  15922. return this.decode(reader, reader.uint32());
  15923. };
  15924. /**
  15925. * Verifies a GCOppositePlayerCard message.
  15926. * @function verify
  15927. * @memberof guandan.GCOppositePlayerCard
  15928. * @static
  15929. * @param {Object.<string,*>} message Plain object to verify
  15930. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  15931. */
  15932. GCOppositePlayerCard.verify = function verify(message) {
  15933. if (typeof message !== "object" || message === null)
  15934. return "object expected";
  15935. if (message.card != null && message.hasOwnProperty("card")) {
  15936. if (!Array.isArray(message.card))
  15937. return "card: array expected";
  15938. for (var i = 0; i < message.card.length; ++i)
  15939. if (!$util.isInteger(message.card[i]))
  15940. return "card: integer[] expected";
  15941. }
  15942. return null;
  15943. };
  15944. /**
  15945. * Creates a GCOppositePlayerCard message from a plain object. Also converts values to their respective internal types.
  15946. * @function fromObject
  15947. * @memberof guandan.GCOppositePlayerCard
  15948. * @static
  15949. * @param {Object.<string,*>} object Plain object
  15950. * @returns {guandan.GCOppositePlayerCard} GCOppositePlayerCard
  15951. */
  15952. GCOppositePlayerCard.fromObject = function fromObject(object) {
  15953. if (object instanceof $root.guandan.GCOppositePlayerCard)
  15954. return object;
  15955. var message = new $root.guandan.GCOppositePlayerCard();
  15956. if (object.card) {
  15957. if (!Array.isArray(object.card))
  15958. throw TypeError(".guandan.GCOppositePlayerCard.card: array expected");
  15959. message.card = [];
  15960. for (var i = 0; i < object.card.length; ++i)
  15961. message.card[i] = object.card[i] | 0;
  15962. }
  15963. return message;
  15964. };
  15965. /**
  15966. * Creates a plain object from a GCOppositePlayerCard message. Also converts values to other types if specified.
  15967. * @function toObject
  15968. * @memberof guandan.GCOppositePlayerCard
  15969. * @static
  15970. * @param {guandan.GCOppositePlayerCard} message GCOppositePlayerCard
  15971. * @param {$protobuf.IConversionOptions} [options] Conversion options
  15972. * @returns {Object.<string,*>} Plain object
  15973. */
  15974. GCOppositePlayerCard.toObject = function toObject(message, options) {
  15975. if (!options)
  15976. options = {};
  15977. var object = {};
  15978. if (options.arrays || options.defaults)
  15979. object.card = [];
  15980. if (message.card && message.card.length) {
  15981. object.card = [];
  15982. for (var j = 0; j < message.card.length; ++j)
  15983. object.card[j] = message.card[j];
  15984. }
  15985. return object;
  15986. };
  15987. /**
  15988. * Converts this GCOppositePlayerCard to JSON.
  15989. * @function toJSON
  15990. * @memberof guandan.GCOppositePlayerCard
  15991. * @instance
  15992. * @returns {Object.<string,*>} JSON object
  15993. */
  15994. GCOppositePlayerCard.prototype.toJSON = function toJSON() {
  15995. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  15996. };
  15997. return GCOppositePlayerCard;
  15998. })();
  15999. guandan.CGPlayerDouble = (function() {
  16000. /**
  16001. * Properties of a CGPlayerDouble.
  16002. * @memberof guandan
  16003. * @interface ICGPlayerDouble
  16004. * @property {boolean} isDouble CGPlayerDouble isDouble
  16005. */
  16006. /**
  16007. * Constructs a new CGPlayerDouble.
  16008. * @memberof guandan
  16009. * @classdesc Represents a CGPlayerDouble.
  16010. * @implements ICGPlayerDouble
  16011. * @constructor
  16012. * @param {guandan.ICGPlayerDouble=} [properties] Properties to set
  16013. */
  16014. function CGPlayerDouble(properties) {
  16015. if (properties)
  16016. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  16017. if (properties[keys[i]] != null)
  16018. this[keys[i]] = properties[keys[i]];
  16019. }
  16020. /**
  16021. * CGPlayerDouble isDouble.
  16022. * @member {boolean} isDouble
  16023. * @memberof guandan.CGPlayerDouble
  16024. * @instance
  16025. */
  16026. CGPlayerDouble.prototype.isDouble = false;
  16027. /**
  16028. * Creates a new CGPlayerDouble instance using the specified properties.
  16029. * @function create
  16030. * @memberof guandan.CGPlayerDouble
  16031. * @static
  16032. * @param {guandan.ICGPlayerDouble=} [properties] Properties to set
  16033. * @returns {guandan.CGPlayerDouble} CGPlayerDouble instance
  16034. */
  16035. CGPlayerDouble.create = function create(properties) {
  16036. return new CGPlayerDouble(properties);
  16037. };
  16038. /**
  16039. * Encodes the specified CGPlayerDouble message. Does not implicitly {@link guandan.CGPlayerDouble.verify|verify} messages.
  16040. * @function encode
  16041. * @memberof guandan.CGPlayerDouble
  16042. * @static
  16043. * @param {guandan.ICGPlayerDouble} message CGPlayerDouble message or plain object to encode
  16044. * @param {$protobuf.Writer} [writer] Writer to encode to
  16045. * @returns {$protobuf.Writer} Writer
  16046. */
  16047. CGPlayerDouble.encode = function encode(message, writer) {
  16048. if (!writer)
  16049. writer = $Writer.create();
  16050. writer.uint32(/* id 1, wireType 0 =*/8).bool(message.isDouble);
  16051. return writer;
  16052. };
  16053. /**
  16054. * Encodes the specified CGPlayerDouble message, length delimited. Does not implicitly {@link guandan.CGPlayerDouble.verify|verify} messages.
  16055. * @function encodeDelimited
  16056. * @memberof guandan.CGPlayerDouble
  16057. * @static
  16058. * @param {guandan.ICGPlayerDouble} message CGPlayerDouble message or plain object to encode
  16059. * @param {$protobuf.Writer} [writer] Writer to encode to
  16060. * @returns {$protobuf.Writer} Writer
  16061. */
  16062. CGPlayerDouble.encodeDelimited = function encodeDelimited(message, writer) {
  16063. return this.encode(message, writer).ldelim();
  16064. };
  16065. /**
  16066. * Decodes a CGPlayerDouble message from the specified reader or buffer.
  16067. * @function decode
  16068. * @memberof guandan.CGPlayerDouble
  16069. * @static
  16070. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  16071. * @param {number} [length] Message length if known beforehand
  16072. * @returns {guandan.CGPlayerDouble} CGPlayerDouble
  16073. * @throws {Error} If the payload is not a reader or valid buffer
  16074. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  16075. */
  16076. CGPlayerDouble.decode = function decode(reader, length) {
  16077. if (!(reader instanceof $Reader))
  16078. reader = $Reader.create(reader);
  16079. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.CGPlayerDouble();
  16080. while (reader.pos < end) {
  16081. var tag = reader.uint32();
  16082. switch (tag >>> 3) {
  16083. case 1:
  16084. message.isDouble = reader.bool();
  16085. break;
  16086. default:
  16087. reader.skipType(tag & 7);
  16088. break;
  16089. }
  16090. }
  16091. if (!message.hasOwnProperty("isDouble"))
  16092. throw $util.ProtocolError("missing required 'isDouble'", { instance: message });
  16093. return message;
  16094. };
  16095. /**
  16096. * Decodes a CGPlayerDouble message from the specified reader or buffer, length delimited.
  16097. * @function decodeDelimited
  16098. * @memberof guandan.CGPlayerDouble
  16099. * @static
  16100. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  16101. * @returns {guandan.CGPlayerDouble} CGPlayerDouble
  16102. * @throws {Error} If the payload is not a reader or valid buffer
  16103. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  16104. */
  16105. CGPlayerDouble.decodeDelimited = function decodeDelimited(reader) {
  16106. if (!(reader instanceof $Reader))
  16107. reader = new $Reader(reader);
  16108. return this.decode(reader, reader.uint32());
  16109. };
  16110. /**
  16111. * Verifies a CGPlayerDouble message.
  16112. * @function verify
  16113. * @memberof guandan.CGPlayerDouble
  16114. * @static
  16115. * @param {Object.<string,*>} message Plain object to verify
  16116. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  16117. */
  16118. CGPlayerDouble.verify = function verify(message) {
  16119. if (typeof message !== "object" || message === null)
  16120. return "object expected";
  16121. if (typeof message.isDouble !== "boolean")
  16122. return "isDouble: boolean expected";
  16123. return null;
  16124. };
  16125. /**
  16126. * Creates a CGPlayerDouble message from a plain object. Also converts values to their respective internal types.
  16127. * @function fromObject
  16128. * @memberof guandan.CGPlayerDouble
  16129. * @static
  16130. * @param {Object.<string,*>} object Plain object
  16131. * @returns {guandan.CGPlayerDouble} CGPlayerDouble
  16132. */
  16133. CGPlayerDouble.fromObject = function fromObject(object) {
  16134. if (object instanceof $root.guandan.CGPlayerDouble)
  16135. return object;
  16136. var message = new $root.guandan.CGPlayerDouble();
  16137. if (object.isDouble != null)
  16138. message.isDouble = Boolean(object.isDouble);
  16139. return message;
  16140. };
  16141. /**
  16142. * Creates a plain object from a CGPlayerDouble message. Also converts values to other types if specified.
  16143. * @function toObject
  16144. * @memberof guandan.CGPlayerDouble
  16145. * @static
  16146. * @param {guandan.CGPlayerDouble} message CGPlayerDouble
  16147. * @param {$protobuf.IConversionOptions} [options] Conversion options
  16148. * @returns {Object.<string,*>} Plain object
  16149. */
  16150. CGPlayerDouble.toObject = function toObject(message, options) {
  16151. if (!options)
  16152. options = {};
  16153. var object = {};
  16154. if (options.defaults)
  16155. object.isDouble = false;
  16156. if (message.isDouble != null && message.hasOwnProperty("isDouble"))
  16157. object.isDouble = message.isDouble;
  16158. return object;
  16159. };
  16160. /**
  16161. * Converts this CGPlayerDouble to JSON.
  16162. * @function toJSON
  16163. * @memberof guandan.CGPlayerDouble
  16164. * @instance
  16165. * @returns {Object.<string,*>} JSON object
  16166. */
  16167. CGPlayerDouble.prototype.toJSON = function toJSON() {
  16168. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  16169. };
  16170. return CGPlayerDouble;
  16171. })();
  16172. guandan.GCWaitPlayerDouble = (function() {
  16173. /**
  16174. * Properties of a GCWaitPlayerDouble.
  16175. * @memberof guandan
  16176. * @interface IGCWaitPlayerDouble
  16177. * @property {number|Long} endTime GCWaitPlayerDouble endTime
  16178. */
  16179. /**
  16180. * Constructs a new GCWaitPlayerDouble.
  16181. * @memberof guandan
  16182. * @classdesc Represents a GCWaitPlayerDouble.
  16183. * @implements IGCWaitPlayerDouble
  16184. * @constructor
  16185. * @param {guandan.IGCWaitPlayerDouble=} [properties] Properties to set
  16186. */
  16187. function GCWaitPlayerDouble(properties) {
  16188. if (properties)
  16189. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  16190. if (properties[keys[i]] != null)
  16191. this[keys[i]] = properties[keys[i]];
  16192. }
  16193. /**
  16194. * GCWaitPlayerDouble endTime.
  16195. * @member {number|Long} endTime
  16196. * @memberof guandan.GCWaitPlayerDouble
  16197. * @instance
  16198. */
  16199. GCWaitPlayerDouble.prototype.endTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  16200. /**
  16201. * Creates a new GCWaitPlayerDouble instance using the specified properties.
  16202. * @function create
  16203. * @memberof guandan.GCWaitPlayerDouble
  16204. * @static
  16205. * @param {guandan.IGCWaitPlayerDouble=} [properties] Properties to set
  16206. * @returns {guandan.GCWaitPlayerDouble} GCWaitPlayerDouble instance
  16207. */
  16208. GCWaitPlayerDouble.create = function create(properties) {
  16209. return new GCWaitPlayerDouble(properties);
  16210. };
  16211. /**
  16212. * Encodes the specified GCWaitPlayerDouble message. Does not implicitly {@link guandan.GCWaitPlayerDouble.verify|verify} messages.
  16213. * @function encode
  16214. * @memberof guandan.GCWaitPlayerDouble
  16215. * @static
  16216. * @param {guandan.IGCWaitPlayerDouble} message GCWaitPlayerDouble message or plain object to encode
  16217. * @param {$protobuf.Writer} [writer] Writer to encode to
  16218. * @returns {$protobuf.Writer} Writer
  16219. */
  16220. GCWaitPlayerDouble.encode = function encode(message, writer) {
  16221. if (!writer)
  16222. writer = $Writer.create();
  16223. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.endTime);
  16224. return writer;
  16225. };
  16226. /**
  16227. * Encodes the specified GCWaitPlayerDouble message, length delimited. Does not implicitly {@link guandan.GCWaitPlayerDouble.verify|verify} messages.
  16228. * @function encodeDelimited
  16229. * @memberof guandan.GCWaitPlayerDouble
  16230. * @static
  16231. * @param {guandan.IGCWaitPlayerDouble} message GCWaitPlayerDouble message or plain object to encode
  16232. * @param {$protobuf.Writer} [writer] Writer to encode to
  16233. * @returns {$protobuf.Writer} Writer
  16234. */
  16235. GCWaitPlayerDouble.encodeDelimited = function encodeDelimited(message, writer) {
  16236. return this.encode(message, writer).ldelim();
  16237. };
  16238. /**
  16239. * Decodes a GCWaitPlayerDouble message from the specified reader or buffer.
  16240. * @function decode
  16241. * @memberof guandan.GCWaitPlayerDouble
  16242. * @static
  16243. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  16244. * @param {number} [length] Message length if known beforehand
  16245. * @returns {guandan.GCWaitPlayerDouble} GCWaitPlayerDouble
  16246. * @throws {Error} If the payload is not a reader or valid buffer
  16247. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  16248. */
  16249. GCWaitPlayerDouble.decode = function decode(reader, length) {
  16250. if (!(reader instanceof $Reader))
  16251. reader = $Reader.create(reader);
  16252. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCWaitPlayerDouble();
  16253. while (reader.pos < end) {
  16254. var tag = reader.uint32();
  16255. switch (tag >>> 3) {
  16256. case 1:
  16257. message.endTime = reader.int64();
  16258. break;
  16259. default:
  16260. reader.skipType(tag & 7);
  16261. break;
  16262. }
  16263. }
  16264. if (!message.hasOwnProperty("endTime"))
  16265. throw $util.ProtocolError("missing required 'endTime'", { instance: message });
  16266. return message;
  16267. };
  16268. /**
  16269. * Decodes a GCWaitPlayerDouble message from the specified reader or buffer, length delimited.
  16270. * @function decodeDelimited
  16271. * @memberof guandan.GCWaitPlayerDouble
  16272. * @static
  16273. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  16274. * @returns {guandan.GCWaitPlayerDouble} GCWaitPlayerDouble
  16275. * @throws {Error} If the payload is not a reader or valid buffer
  16276. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  16277. */
  16278. GCWaitPlayerDouble.decodeDelimited = function decodeDelimited(reader) {
  16279. if (!(reader instanceof $Reader))
  16280. reader = new $Reader(reader);
  16281. return this.decode(reader, reader.uint32());
  16282. };
  16283. /**
  16284. * Verifies a GCWaitPlayerDouble message.
  16285. * @function verify
  16286. * @memberof guandan.GCWaitPlayerDouble
  16287. * @static
  16288. * @param {Object.<string,*>} message Plain object to verify
  16289. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  16290. */
  16291. GCWaitPlayerDouble.verify = function verify(message) {
  16292. if (typeof message !== "object" || message === null)
  16293. return "object expected";
  16294. if (!$util.isInteger(message.endTime) && !(message.endTime && $util.isInteger(message.endTime.low) && $util.isInteger(message.endTime.high)))
  16295. return "endTime: integer|Long expected";
  16296. return null;
  16297. };
  16298. /**
  16299. * Creates a GCWaitPlayerDouble message from a plain object. Also converts values to their respective internal types.
  16300. * @function fromObject
  16301. * @memberof guandan.GCWaitPlayerDouble
  16302. * @static
  16303. * @param {Object.<string,*>} object Plain object
  16304. * @returns {guandan.GCWaitPlayerDouble} GCWaitPlayerDouble
  16305. */
  16306. GCWaitPlayerDouble.fromObject = function fromObject(object) {
  16307. if (object instanceof $root.guandan.GCWaitPlayerDouble)
  16308. return object;
  16309. var message = new $root.guandan.GCWaitPlayerDouble();
  16310. if (object.endTime != null)
  16311. if ($util.Long)
  16312. (message.endTime = $util.Long.fromValue(object.endTime)).unsigned = false;
  16313. else if (typeof object.endTime === "string")
  16314. message.endTime = parseInt(object.endTime, 10);
  16315. else if (typeof object.endTime === "number")
  16316. message.endTime = object.endTime;
  16317. else if (typeof object.endTime === "object")
  16318. message.endTime = new $util.LongBits(object.endTime.low >>> 0, object.endTime.high >>> 0).toNumber();
  16319. return message;
  16320. };
  16321. /**
  16322. * Creates a plain object from a GCWaitPlayerDouble message. Also converts values to other types if specified.
  16323. * @function toObject
  16324. * @memberof guandan.GCWaitPlayerDouble
  16325. * @static
  16326. * @param {guandan.GCWaitPlayerDouble} message GCWaitPlayerDouble
  16327. * @param {$protobuf.IConversionOptions} [options] Conversion options
  16328. * @returns {Object.<string,*>} Plain object
  16329. */
  16330. GCWaitPlayerDouble.toObject = function toObject(message, options) {
  16331. if (!options)
  16332. options = {};
  16333. var object = {};
  16334. if (options.defaults)
  16335. if ($util.Long) {
  16336. var long = new $util.Long(0, 0, false);
  16337. object.endTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  16338. } else
  16339. object.endTime = options.longs === String ? "0" : 0;
  16340. if (message.endTime != null && message.hasOwnProperty("endTime"))
  16341. if (typeof message.endTime === "number")
  16342. object.endTime = options.longs === String ? String(message.endTime) : message.endTime;
  16343. else
  16344. 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;
  16345. return object;
  16346. };
  16347. /**
  16348. * Converts this GCWaitPlayerDouble to JSON.
  16349. * @function toJSON
  16350. * @memberof guandan.GCWaitPlayerDouble
  16351. * @instance
  16352. * @returns {Object.<string,*>} JSON object
  16353. */
  16354. GCWaitPlayerDouble.prototype.toJSON = function toJSON() {
  16355. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  16356. };
  16357. return GCWaitPlayerDouble;
  16358. })();
  16359. guandan.GCBombDoubleBroadcast = (function() {
  16360. /**
  16361. * Properties of a GCBombDoubleBroadcast.
  16362. * @memberof guandan
  16363. * @interface IGCBombDoubleBroadcast
  16364. * @property {number} bombNum GCBombDoubleBroadcast bombNum
  16365. */
  16366. /**
  16367. * Constructs a new GCBombDoubleBroadcast.
  16368. * @memberof guandan
  16369. * @classdesc Represents a GCBombDoubleBroadcast.
  16370. * @implements IGCBombDoubleBroadcast
  16371. * @constructor
  16372. * @param {guandan.IGCBombDoubleBroadcast=} [properties] Properties to set
  16373. */
  16374. function GCBombDoubleBroadcast(properties) {
  16375. if (properties)
  16376. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  16377. if (properties[keys[i]] != null)
  16378. this[keys[i]] = properties[keys[i]];
  16379. }
  16380. /**
  16381. * GCBombDoubleBroadcast bombNum.
  16382. * @member {number} bombNum
  16383. * @memberof guandan.GCBombDoubleBroadcast
  16384. * @instance
  16385. */
  16386. GCBombDoubleBroadcast.prototype.bombNum = 0;
  16387. /**
  16388. * Creates a new GCBombDoubleBroadcast instance using the specified properties.
  16389. * @function create
  16390. * @memberof guandan.GCBombDoubleBroadcast
  16391. * @static
  16392. * @param {guandan.IGCBombDoubleBroadcast=} [properties] Properties to set
  16393. * @returns {guandan.GCBombDoubleBroadcast} GCBombDoubleBroadcast instance
  16394. */
  16395. GCBombDoubleBroadcast.create = function create(properties) {
  16396. return new GCBombDoubleBroadcast(properties);
  16397. };
  16398. /**
  16399. * Encodes the specified GCBombDoubleBroadcast message. Does not implicitly {@link guandan.GCBombDoubleBroadcast.verify|verify} messages.
  16400. * @function encode
  16401. * @memberof guandan.GCBombDoubleBroadcast
  16402. * @static
  16403. * @param {guandan.IGCBombDoubleBroadcast} message GCBombDoubleBroadcast message or plain object to encode
  16404. * @param {$protobuf.Writer} [writer] Writer to encode to
  16405. * @returns {$protobuf.Writer} Writer
  16406. */
  16407. GCBombDoubleBroadcast.encode = function encode(message, writer) {
  16408. if (!writer)
  16409. writer = $Writer.create();
  16410. writer.uint32(/* id 1, wireType 0 =*/8).int32(message.bombNum);
  16411. return writer;
  16412. };
  16413. /**
  16414. * Encodes the specified GCBombDoubleBroadcast message, length delimited. Does not implicitly {@link guandan.GCBombDoubleBroadcast.verify|verify} messages.
  16415. * @function encodeDelimited
  16416. * @memberof guandan.GCBombDoubleBroadcast
  16417. * @static
  16418. * @param {guandan.IGCBombDoubleBroadcast} message GCBombDoubleBroadcast message or plain object to encode
  16419. * @param {$protobuf.Writer} [writer] Writer to encode to
  16420. * @returns {$protobuf.Writer} Writer
  16421. */
  16422. GCBombDoubleBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
  16423. return this.encode(message, writer).ldelim();
  16424. };
  16425. /**
  16426. * Decodes a GCBombDoubleBroadcast message from the specified reader or buffer.
  16427. * @function decode
  16428. * @memberof guandan.GCBombDoubleBroadcast
  16429. * @static
  16430. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  16431. * @param {number} [length] Message length if known beforehand
  16432. * @returns {guandan.GCBombDoubleBroadcast} GCBombDoubleBroadcast
  16433. * @throws {Error} If the payload is not a reader or valid buffer
  16434. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  16435. */
  16436. GCBombDoubleBroadcast.decode = function decode(reader, length) {
  16437. if (!(reader instanceof $Reader))
  16438. reader = $Reader.create(reader);
  16439. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCBombDoubleBroadcast();
  16440. while (reader.pos < end) {
  16441. var tag = reader.uint32();
  16442. switch (tag >>> 3) {
  16443. case 1:
  16444. message.bombNum = reader.int32();
  16445. break;
  16446. default:
  16447. reader.skipType(tag & 7);
  16448. break;
  16449. }
  16450. }
  16451. if (!message.hasOwnProperty("bombNum"))
  16452. throw $util.ProtocolError("missing required 'bombNum'", { instance: message });
  16453. return message;
  16454. };
  16455. /**
  16456. * Decodes a GCBombDoubleBroadcast message from the specified reader or buffer, length delimited.
  16457. * @function decodeDelimited
  16458. * @memberof guandan.GCBombDoubleBroadcast
  16459. * @static
  16460. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  16461. * @returns {guandan.GCBombDoubleBroadcast} GCBombDoubleBroadcast
  16462. * @throws {Error} If the payload is not a reader or valid buffer
  16463. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  16464. */
  16465. GCBombDoubleBroadcast.decodeDelimited = function decodeDelimited(reader) {
  16466. if (!(reader instanceof $Reader))
  16467. reader = new $Reader(reader);
  16468. return this.decode(reader, reader.uint32());
  16469. };
  16470. /**
  16471. * Verifies a GCBombDoubleBroadcast message.
  16472. * @function verify
  16473. * @memberof guandan.GCBombDoubleBroadcast
  16474. * @static
  16475. * @param {Object.<string,*>} message Plain object to verify
  16476. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  16477. */
  16478. GCBombDoubleBroadcast.verify = function verify(message) {
  16479. if (typeof message !== "object" || message === null)
  16480. return "object expected";
  16481. if (!$util.isInteger(message.bombNum))
  16482. return "bombNum: integer expected";
  16483. return null;
  16484. };
  16485. /**
  16486. * Creates a GCBombDoubleBroadcast message from a plain object. Also converts values to their respective internal types.
  16487. * @function fromObject
  16488. * @memberof guandan.GCBombDoubleBroadcast
  16489. * @static
  16490. * @param {Object.<string,*>} object Plain object
  16491. * @returns {guandan.GCBombDoubleBroadcast} GCBombDoubleBroadcast
  16492. */
  16493. GCBombDoubleBroadcast.fromObject = function fromObject(object) {
  16494. if (object instanceof $root.guandan.GCBombDoubleBroadcast)
  16495. return object;
  16496. var message = new $root.guandan.GCBombDoubleBroadcast();
  16497. if (object.bombNum != null)
  16498. message.bombNum = object.bombNum | 0;
  16499. return message;
  16500. };
  16501. /**
  16502. * Creates a plain object from a GCBombDoubleBroadcast message. Also converts values to other types if specified.
  16503. * @function toObject
  16504. * @memberof guandan.GCBombDoubleBroadcast
  16505. * @static
  16506. * @param {guandan.GCBombDoubleBroadcast} message GCBombDoubleBroadcast
  16507. * @param {$protobuf.IConversionOptions} [options] Conversion options
  16508. * @returns {Object.<string,*>} Plain object
  16509. */
  16510. GCBombDoubleBroadcast.toObject = function toObject(message, options) {
  16511. if (!options)
  16512. options = {};
  16513. var object = {};
  16514. if (options.defaults)
  16515. object.bombNum = 0;
  16516. if (message.bombNum != null && message.hasOwnProperty("bombNum"))
  16517. object.bombNum = message.bombNum;
  16518. return object;
  16519. };
  16520. /**
  16521. * Converts this GCBombDoubleBroadcast to JSON.
  16522. * @function toJSON
  16523. * @memberof guandan.GCBombDoubleBroadcast
  16524. * @instance
  16525. * @returns {Object.<string,*>} JSON object
  16526. */
  16527. GCBombDoubleBroadcast.prototype.toJSON = function toJSON() {
  16528. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  16529. };
  16530. return GCBombDoubleBroadcast;
  16531. })();
  16532. guandan.GCJieFengBroadcast = (function() {
  16533. /**
  16534. * Properties of a GCJieFengBroadcast.
  16535. * @memberof guandan
  16536. * @interface IGCJieFengBroadcast
  16537. * @property {number|Long} playerID GCJieFengBroadcast playerID
  16538. */
  16539. /**
  16540. * Constructs a new GCJieFengBroadcast.
  16541. * @memberof guandan
  16542. * @classdesc Represents a GCJieFengBroadcast.
  16543. * @implements IGCJieFengBroadcast
  16544. * @constructor
  16545. * @param {guandan.IGCJieFengBroadcast=} [properties] Properties to set
  16546. */
  16547. function GCJieFengBroadcast(properties) {
  16548. if (properties)
  16549. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  16550. if (properties[keys[i]] != null)
  16551. this[keys[i]] = properties[keys[i]];
  16552. }
  16553. /**
  16554. * GCJieFengBroadcast playerID.
  16555. * @member {number|Long} playerID
  16556. * @memberof guandan.GCJieFengBroadcast
  16557. * @instance
  16558. */
  16559. GCJieFengBroadcast.prototype.playerID = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  16560. /**
  16561. * Creates a new GCJieFengBroadcast instance using the specified properties.
  16562. * @function create
  16563. * @memberof guandan.GCJieFengBroadcast
  16564. * @static
  16565. * @param {guandan.IGCJieFengBroadcast=} [properties] Properties to set
  16566. * @returns {guandan.GCJieFengBroadcast} GCJieFengBroadcast instance
  16567. */
  16568. GCJieFengBroadcast.create = function create(properties) {
  16569. return new GCJieFengBroadcast(properties);
  16570. };
  16571. /**
  16572. * Encodes the specified GCJieFengBroadcast message. Does not implicitly {@link guandan.GCJieFengBroadcast.verify|verify} messages.
  16573. * @function encode
  16574. * @memberof guandan.GCJieFengBroadcast
  16575. * @static
  16576. * @param {guandan.IGCJieFengBroadcast} message GCJieFengBroadcast message or plain object to encode
  16577. * @param {$protobuf.Writer} [writer] Writer to encode to
  16578. * @returns {$protobuf.Writer} Writer
  16579. */
  16580. GCJieFengBroadcast.encode = function encode(message, writer) {
  16581. if (!writer)
  16582. writer = $Writer.create();
  16583. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerID);
  16584. return writer;
  16585. };
  16586. /**
  16587. * Encodes the specified GCJieFengBroadcast message, length delimited. Does not implicitly {@link guandan.GCJieFengBroadcast.verify|verify} messages.
  16588. * @function encodeDelimited
  16589. * @memberof guandan.GCJieFengBroadcast
  16590. * @static
  16591. * @param {guandan.IGCJieFengBroadcast} message GCJieFengBroadcast message or plain object to encode
  16592. * @param {$protobuf.Writer} [writer] Writer to encode to
  16593. * @returns {$protobuf.Writer} Writer
  16594. */
  16595. GCJieFengBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
  16596. return this.encode(message, writer).ldelim();
  16597. };
  16598. /**
  16599. * Decodes a GCJieFengBroadcast message from the specified reader or buffer.
  16600. * @function decode
  16601. * @memberof guandan.GCJieFengBroadcast
  16602. * @static
  16603. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  16604. * @param {number} [length] Message length if known beforehand
  16605. * @returns {guandan.GCJieFengBroadcast} GCJieFengBroadcast
  16606. * @throws {Error} If the payload is not a reader or valid buffer
  16607. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  16608. */
  16609. GCJieFengBroadcast.decode = function decode(reader, length) {
  16610. if (!(reader instanceof $Reader))
  16611. reader = $Reader.create(reader);
  16612. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCJieFengBroadcast();
  16613. while (reader.pos < end) {
  16614. var tag = reader.uint32();
  16615. switch (tag >>> 3) {
  16616. case 1:
  16617. message.playerID = reader.int64();
  16618. break;
  16619. default:
  16620. reader.skipType(tag & 7);
  16621. break;
  16622. }
  16623. }
  16624. if (!message.hasOwnProperty("playerID"))
  16625. throw $util.ProtocolError("missing required 'playerID'", { instance: message });
  16626. return message;
  16627. };
  16628. /**
  16629. * Decodes a GCJieFengBroadcast message from the specified reader or buffer, length delimited.
  16630. * @function decodeDelimited
  16631. * @memberof guandan.GCJieFengBroadcast
  16632. * @static
  16633. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  16634. * @returns {guandan.GCJieFengBroadcast} GCJieFengBroadcast
  16635. * @throws {Error} If the payload is not a reader or valid buffer
  16636. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  16637. */
  16638. GCJieFengBroadcast.decodeDelimited = function decodeDelimited(reader) {
  16639. if (!(reader instanceof $Reader))
  16640. reader = new $Reader(reader);
  16641. return this.decode(reader, reader.uint32());
  16642. };
  16643. /**
  16644. * Verifies a GCJieFengBroadcast message.
  16645. * @function verify
  16646. * @memberof guandan.GCJieFengBroadcast
  16647. * @static
  16648. * @param {Object.<string,*>} message Plain object to verify
  16649. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  16650. */
  16651. GCJieFengBroadcast.verify = function verify(message) {
  16652. if (typeof message !== "object" || message === null)
  16653. return "object expected";
  16654. if (!$util.isInteger(message.playerID) && !(message.playerID && $util.isInteger(message.playerID.low) && $util.isInteger(message.playerID.high)))
  16655. return "playerID: integer|Long expected";
  16656. return null;
  16657. };
  16658. /**
  16659. * Creates a GCJieFengBroadcast message from a plain object. Also converts values to their respective internal types.
  16660. * @function fromObject
  16661. * @memberof guandan.GCJieFengBroadcast
  16662. * @static
  16663. * @param {Object.<string,*>} object Plain object
  16664. * @returns {guandan.GCJieFengBroadcast} GCJieFengBroadcast
  16665. */
  16666. GCJieFengBroadcast.fromObject = function fromObject(object) {
  16667. if (object instanceof $root.guandan.GCJieFengBroadcast)
  16668. return object;
  16669. var message = new $root.guandan.GCJieFengBroadcast();
  16670. if (object.playerID != null)
  16671. if ($util.Long)
  16672. (message.playerID = $util.Long.fromValue(object.playerID)).unsigned = false;
  16673. else if (typeof object.playerID === "string")
  16674. message.playerID = parseInt(object.playerID, 10);
  16675. else if (typeof object.playerID === "number")
  16676. message.playerID = object.playerID;
  16677. else if (typeof object.playerID === "object")
  16678. message.playerID = new $util.LongBits(object.playerID.low >>> 0, object.playerID.high >>> 0).toNumber();
  16679. return message;
  16680. };
  16681. /**
  16682. * Creates a plain object from a GCJieFengBroadcast message. Also converts values to other types if specified.
  16683. * @function toObject
  16684. * @memberof guandan.GCJieFengBroadcast
  16685. * @static
  16686. * @param {guandan.GCJieFengBroadcast} message GCJieFengBroadcast
  16687. * @param {$protobuf.IConversionOptions} [options] Conversion options
  16688. * @returns {Object.<string,*>} Plain object
  16689. */
  16690. GCJieFengBroadcast.toObject = function toObject(message, options) {
  16691. if (!options)
  16692. options = {};
  16693. var object = {};
  16694. if (options.defaults)
  16695. if ($util.Long) {
  16696. var long = new $util.Long(0, 0, false);
  16697. object.playerID = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  16698. } else
  16699. object.playerID = options.longs === String ? "0" : 0;
  16700. if (message.playerID != null && message.hasOwnProperty("playerID"))
  16701. if (typeof message.playerID === "number")
  16702. object.playerID = options.longs === String ? String(message.playerID) : message.playerID;
  16703. else
  16704. object.playerID = options.longs === String ? $util.Long.prototype.toString.call(message.playerID) : options.longs === Number ? new $util.LongBits(message.playerID.low >>> 0, message.playerID.high >>> 0).toNumber() : message.playerID;
  16705. return object;
  16706. };
  16707. /**
  16708. * Converts this GCJieFengBroadcast to JSON.
  16709. * @function toJSON
  16710. * @memberof guandan.GCJieFengBroadcast
  16711. * @instance
  16712. * @returns {Object.<string,*>} JSON object
  16713. */
  16714. GCJieFengBroadcast.prototype.toJSON = function toJSON() {
  16715. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  16716. };
  16717. return GCJieFengBroadcast;
  16718. })();
  16719. guandan.GCStartArrangeCardBroadcast = (function() {
  16720. /**
  16721. * Properties of a GCStartArrangeCardBroadcast.
  16722. * @memberof guandan
  16723. * @interface IGCStartArrangeCardBroadcast
  16724. * @property {number|Long} endTime GCStartArrangeCardBroadcast endTime
  16725. */
  16726. /**
  16727. * Constructs a new GCStartArrangeCardBroadcast.
  16728. * @memberof guandan
  16729. * @classdesc Represents a GCStartArrangeCardBroadcast.
  16730. * @implements IGCStartArrangeCardBroadcast
  16731. * @constructor
  16732. * @param {guandan.IGCStartArrangeCardBroadcast=} [properties] Properties to set
  16733. */
  16734. function GCStartArrangeCardBroadcast(properties) {
  16735. if (properties)
  16736. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  16737. if (properties[keys[i]] != null)
  16738. this[keys[i]] = properties[keys[i]];
  16739. }
  16740. /**
  16741. * GCStartArrangeCardBroadcast endTime.
  16742. * @member {number|Long} endTime
  16743. * @memberof guandan.GCStartArrangeCardBroadcast
  16744. * @instance
  16745. */
  16746. GCStartArrangeCardBroadcast.prototype.endTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  16747. /**
  16748. * Creates a new GCStartArrangeCardBroadcast instance using the specified properties.
  16749. * @function create
  16750. * @memberof guandan.GCStartArrangeCardBroadcast
  16751. * @static
  16752. * @param {guandan.IGCStartArrangeCardBroadcast=} [properties] Properties to set
  16753. * @returns {guandan.GCStartArrangeCardBroadcast} GCStartArrangeCardBroadcast instance
  16754. */
  16755. GCStartArrangeCardBroadcast.create = function create(properties) {
  16756. return new GCStartArrangeCardBroadcast(properties);
  16757. };
  16758. /**
  16759. * Encodes the specified GCStartArrangeCardBroadcast message. Does not implicitly {@link guandan.GCStartArrangeCardBroadcast.verify|verify} messages.
  16760. * @function encode
  16761. * @memberof guandan.GCStartArrangeCardBroadcast
  16762. * @static
  16763. * @param {guandan.IGCStartArrangeCardBroadcast} message GCStartArrangeCardBroadcast message or plain object to encode
  16764. * @param {$protobuf.Writer} [writer] Writer to encode to
  16765. * @returns {$protobuf.Writer} Writer
  16766. */
  16767. GCStartArrangeCardBroadcast.encode = function encode(message, writer) {
  16768. if (!writer)
  16769. writer = $Writer.create();
  16770. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.endTime);
  16771. return writer;
  16772. };
  16773. /**
  16774. * Encodes the specified GCStartArrangeCardBroadcast message, length delimited. Does not implicitly {@link guandan.GCStartArrangeCardBroadcast.verify|verify} messages.
  16775. * @function encodeDelimited
  16776. * @memberof guandan.GCStartArrangeCardBroadcast
  16777. * @static
  16778. * @param {guandan.IGCStartArrangeCardBroadcast} message GCStartArrangeCardBroadcast message or plain object to encode
  16779. * @param {$protobuf.Writer} [writer] Writer to encode to
  16780. * @returns {$protobuf.Writer} Writer
  16781. */
  16782. GCStartArrangeCardBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
  16783. return this.encode(message, writer).ldelim();
  16784. };
  16785. /**
  16786. * Decodes a GCStartArrangeCardBroadcast message from the specified reader or buffer.
  16787. * @function decode
  16788. * @memberof guandan.GCStartArrangeCardBroadcast
  16789. * @static
  16790. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  16791. * @param {number} [length] Message length if known beforehand
  16792. * @returns {guandan.GCStartArrangeCardBroadcast} GCStartArrangeCardBroadcast
  16793. * @throws {Error} If the payload is not a reader or valid buffer
  16794. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  16795. */
  16796. GCStartArrangeCardBroadcast.decode = function decode(reader, length) {
  16797. if (!(reader instanceof $Reader))
  16798. reader = $Reader.create(reader);
  16799. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCStartArrangeCardBroadcast();
  16800. while (reader.pos < end) {
  16801. var tag = reader.uint32();
  16802. switch (tag >>> 3) {
  16803. case 1:
  16804. message.endTime = reader.int64();
  16805. break;
  16806. default:
  16807. reader.skipType(tag & 7);
  16808. break;
  16809. }
  16810. }
  16811. if (!message.hasOwnProperty("endTime"))
  16812. throw $util.ProtocolError("missing required 'endTime'", { instance: message });
  16813. return message;
  16814. };
  16815. /**
  16816. * Decodes a GCStartArrangeCardBroadcast message from the specified reader or buffer, length delimited.
  16817. * @function decodeDelimited
  16818. * @memberof guandan.GCStartArrangeCardBroadcast
  16819. * @static
  16820. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  16821. * @returns {guandan.GCStartArrangeCardBroadcast} GCStartArrangeCardBroadcast
  16822. * @throws {Error} If the payload is not a reader or valid buffer
  16823. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  16824. */
  16825. GCStartArrangeCardBroadcast.decodeDelimited = function decodeDelimited(reader) {
  16826. if (!(reader instanceof $Reader))
  16827. reader = new $Reader(reader);
  16828. return this.decode(reader, reader.uint32());
  16829. };
  16830. /**
  16831. * Verifies a GCStartArrangeCardBroadcast message.
  16832. * @function verify
  16833. * @memberof guandan.GCStartArrangeCardBroadcast
  16834. * @static
  16835. * @param {Object.<string,*>} message Plain object to verify
  16836. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  16837. */
  16838. GCStartArrangeCardBroadcast.verify = function verify(message) {
  16839. if (typeof message !== "object" || message === null)
  16840. return "object expected";
  16841. if (!$util.isInteger(message.endTime) && !(message.endTime && $util.isInteger(message.endTime.low) && $util.isInteger(message.endTime.high)))
  16842. return "endTime: integer|Long expected";
  16843. return null;
  16844. };
  16845. /**
  16846. * Creates a GCStartArrangeCardBroadcast message from a plain object. Also converts values to their respective internal types.
  16847. * @function fromObject
  16848. * @memberof guandan.GCStartArrangeCardBroadcast
  16849. * @static
  16850. * @param {Object.<string,*>} object Plain object
  16851. * @returns {guandan.GCStartArrangeCardBroadcast} GCStartArrangeCardBroadcast
  16852. */
  16853. GCStartArrangeCardBroadcast.fromObject = function fromObject(object) {
  16854. if (object instanceof $root.guandan.GCStartArrangeCardBroadcast)
  16855. return object;
  16856. var message = new $root.guandan.GCStartArrangeCardBroadcast();
  16857. if (object.endTime != null)
  16858. if ($util.Long)
  16859. (message.endTime = $util.Long.fromValue(object.endTime)).unsigned = false;
  16860. else if (typeof object.endTime === "string")
  16861. message.endTime = parseInt(object.endTime, 10);
  16862. else if (typeof object.endTime === "number")
  16863. message.endTime = object.endTime;
  16864. else if (typeof object.endTime === "object")
  16865. message.endTime = new $util.LongBits(object.endTime.low >>> 0, object.endTime.high >>> 0).toNumber();
  16866. return message;
  16867. };
  16868. /**
  16869. * Creates a plain object from a GCStartArrangeCardBroadcast message. Also converts values to other types if specified.
  16870. * @function toObject
  16871. * @memberof guandan.GCStartArrangeCardBroadcast
  16872. * @static
  16873. * @param {guandan.GCStartArrangeCardBroadcast} message GCStartArrangeCardBroadcast
  16874. * @param {$protobuf.IConversionOptions} [options] Conversion options
  16875. * @returns {Object.<string,*>} Plain object
  16876. */
  16877. GCStartArrangeCardBroadcast.toObject = function toObject(message, options) {
  16878. if (!options)
  16879. options = {};
  16880. var object = {};
  16881. if (options.defaults)
  16882. if ($util.Long) {
  16883. var long = new $util.Long(0, 0, false);
  16884. object.endTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  16885. } else
  16886. object.endTime = options.longs === String ? "0" : 0;
  16887. if (message.endTime != null && message.hasOwnProperty("endTime"))
  16888. if (typeof message.endTime === "number")
  16889. object.endTime = options.longs === String ? String(message.endTime) : message.endTime;
  16890. else
  16891. 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;
  16892. return object;
  16893. };
  16894. /**
  16895. * Converts this GCStartArrangeCardBroadcast to JSON.
  16896. * @function toJSON
  16897. * @memberof guandan.GCStartArrangeCardBroadcast
  16898. * @instance
  16899. * @returns {Object.<string,*>} JSON object
  16900. */
  16901. GCStartArrangeCardBroadcast.prototype.toJSON = function toJSON() {
  16902. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  16903. };
  16904. return GCStartArrangeCardBroadcast;
  16905. })();
  16906. guandan.GCEndArrangeCardBroadcast = (function() {
  16907. /**
  16908. * Properties of a GCEndArrangeCardBroadcast.
  16909. * @memberof guandan
  16910. * @interface IGCEndArrangeCardBroadcast
  16911. * @property {number|Long} endTime GCEndArrangeCardBroadcast endTime
  16912. */
  16913. /**
  16914. * Constructs a new GCEndArrangeCardBroadcast.
  16915. * @memberof guandan
  16916. * @classdesc Represents a GCEndArrangeCardBroadcast.
  16917. * @implements IGCEndArrangeCardBroadcast
  16918. * @constructor
  16919. * @param {guandan.IGCEndArrangeCardBroadcast=} [properties] Properties to set
  16920. */
  16921. function GCEndArrangeCardBroadcast(properties) {
  16922. if (properties)
  16923. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  16924. if (properties[keys[i]] != null)
  16925. this[keys[i]] = properties[keys[i]];
  16926. }
  16927. /**
  16928. * GCEndArrangeCardBroadcast endTime.
  16929. * @member {number|Long} endTime
  16930. * @memberof guandan.GCEndArrangeCardBroadcast
  16931. * @instance
  16932. */
  16933. GCEndArrangeCardBroadcast.prototype.endTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  16934. /**
  16935. * Creates a new GCEndArrangeCardBroadcast instance using the specified properties.
  16936. * @function create
  16937. * @memberof guandan.GCEndArrangeCardBroadcast
  16938. * @static
  16939. * @param {guandan.IGCEndArrangeCardBroadcast=} [properties] Properties to set
  16940. * @returns {guandan.GCEndArrangeCardBroadcast} GCEndArrangeCardBroadcast instance
  16941. */
  16942. GCEndArrangeCardBroadcast.create = function create(properties) {
  16943. return new GCEndArrangeCardBroadcast(properties);
  16944. };
  16945. /**
  16946. * Encodes the specified GCEndArrangeCardBroadcast message. Does not implicitly {@link guandan.GCEndArrangeCardBroadcast.verify|verify} messages.
  16947. * @function encode
  16948. * @memberof guandan.GCEndArrangeCardBroadcast
  16949. * @static
  16950. * @param {guandan.IGCEndArrangeCardBroadcast} message GCEndArrangeCardBroadcast message or plain object to encode
  16951. * @param {$protobuf.Writer} [writer] Writer to encode to
  16952. * @returns {$protobuf.Writer} Writer
  16953. */
  16954. GCEndArrangeCardBroadcast.encode = function encode(message, writer) {
  16955. if (!writer)
  16956. writer = $Writer.create();
  16957. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.endTime);
  16958. return writer;
  16959. };
  16960. /**
  16961. * Encodes the specified GCEndArrangeCardBroadcast message, length delimited. Does not implicitly {@link guandan.GCEndArrangeCardBroadcast.verify|verify} messages.
  16962. * @function encodeDelimited
  16963. * @memberof guandan.GCEndArrangeCardBroadcast
  16964. * @static
  16965. * @param {guandan.IGCEndArrangeCardBroadcast} message GCEndArrangeCardBroadcast message or plain object to encode
  16966. * @param {$protobuf.Writer} [writer] Writer to encode to
  16967. * @returns {$protobuf.Writer} Writer
  16968. */
  16969. GCEndArrangeCardBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
  16970. return this.encode(message, writer).ldelim();
  16971. };
  16972. /**
  16973. * Decodes a GCEndArrangeCardBroadcast message from the specified reader or buffer.
  16974. * @function decode
  16975. * @memberof guandan.GCEndArrangeCardBroadcast
  16976. * @static
  16977. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  16978. * @param {number} [length] Message length if known beforehand
  16979. * @returns {guandan.GCEndArrangeCardBroadcast} GCEndArrangeCardBroadcast
  16980. * @throws {Error} If the payload is not a reader or valid buffer
  16981. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  16982. */
  16983. GCEndArrangeCardBroadcast.decode = function decode(reader, length) {
  16984. if (!(reader instanceof $Reader))
  16985. reader = $Reader.create(reader);
  16986. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCEndArrangeCardBroadcast();
  16987. while (reader.pos < end) {
  16988. var tag = reader.uint32();
  16989. switch (tag >>> 3) {
  16990. case 1:
  16991. message.endTime = reader.int64();
  16992. break;
  16993. default:
  16994. reader.skipType(tag & 7);
  16995. break;
  16996. }
  16997. }
  16998. if (!message.hasOwnProperty("endTime"))
  16999. throw $util.ProtocolError("missing required 'endTime'", { instance: message });
  17000. return message;
  17001. };
  17002. /**
  17003. * Decodes a GCEndArrangeCardBroadcast message from the specified reader or buffer, length delimited.
  17004. * @function decodeDelimited
  17005. * @memberof guandan.GCEndArrangeCardBroadcast
  17006. * @static
  17007. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  17008. * @returns {guandan.GCEndArrangeCardBroadcast} GCEndArrangeCardBroadcast
  17009. * @throws {Error} If the payload is not a reader or valid buffer
  17010. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  17011. */
  17012. GCEndArrangeCardBroadcast.decodeDelimited = function decodeDelimited(reader) {
  17013. if (!(reader instanceof $Reader))
  17014. reader = new $Reader(reader);
  17015. return this.decode(reader, reader.uint32());
  17016. };
  17017. /**
  17018. * Verifies a GCEndArrangeCardBroadcast message.
  17019. * @function verify
  17020. * @memberof guandan.GCEndArrangeCardBroadcast
  17021. * @static
  17022. * @param {Object.<string,*>} message Plain object to verify
  17023. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  17024. */
  17025. GCEndArrangeCardBroadcast.verify = function verify(message) {
  17026. if (typeof message !== "object" || message === null)
  17027. return "object expected";
  17028. if (!$util.isInteger(message.endTime) && !(message.endTime && $util.isInteger(message.endTime.low) && $util.isInteger(message.endTime.high)))
  17029. return "endTime: integer|Long expected";
  17030. return null;
  17031. };
  17032. /**
  17033. * Creates a GCEndArrangeCardBroadcast message from a plain object. Also converts values to their respective internal types.
  17034. * @function fromObject
  17035. * @memberof guandan.GCEndArrangeCardBroadcast
  17036. * @static
  17037. * @param {Object.<string,*>} object Plain object
  17038. * @returns {guandan.GCEndArrangeCardBroadcast} GCEndArrangeCardBroadcast
  17039. */
  17040. GCEndArrangeCardBroadcast.fromObject = function fromObject(object) {
  17041. if (object instanceof $root.guandan.GCEndArrangeCardBroadcast)
  17042. return object;
  17043. var message = new $root.guandan.GCEndArrangeCardBroadcast();
  17044. if (object.endTime != null)
  17045. if ($util.Long)
  17046. (message.endTime = $util.Long.fromValue(object.endTime)).unsigned = false;
  17047. else if (typeof object.endTime === "string")
  17048. message.endTime = parseInt(object.endTime, 10);
  17049. else if (typeof object.endTime === "number")
  17050. message.endTime = object.endTime;
  17051. else if (typeof object.endTime === "object")
  17052. message.endTime = new $util.LongBits(object.endTime.low >>> 0, object.endTime.high >>> 0).toNumber();
  17053. return message;
  17054. };
  17055. /**
  17056. * Creates a plain object from a GCEndArrangeCardBroadcast message. Also converts values to other types if specified.
  17057. * @function toObject
  17058. * @memberof guandan.GCEndArrangeCardBroadcast
  17059. * @static
  17060. * @param {guandan.GCEndArrangeCardBroadcast} message GCEndArrangeCardBroadcast
  17061. * @param {$protobuf.IConversionOptions} [options] Conversion options
  17062. * @returns {Object.<string,*>} Plain object
  17063. */
  17064. GCEndArrangeCardBroadcast.toObject = function toObject(message, options) {
  17065. if (!options)
  17066. options = {};
  17067. var object = {};
  17068. if (options.defaults)
  17069. if ($util.Long) {
  17070. var long = new $util.Long(0, 0, false);
  17071. object.endTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  17072. } else
  17073. object.endTime = options.longs === String ? "0" : 0;
  17074. if (message.endTime != null && message.hasOwnProperty("endTime"))
  17075. if (typeof message.endTime === "number")
  17076. object.endTime = options.longs === String ? String(message.endTime) : message.endTime;
  17077. else
  17078. 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;
  17079. return object;
  17080. };
  17081. /**
  17082. * Converts this GCEndArrangeCardBroadcast to JSON.
  17083. * @function toJSON
  17084. * @memberof guandan.GCEndArrangeCardBroadcast
  17085. * @instance
  17086. * @returns {Object.<string,*>} JSON object
  17087. */
  17088. GCEndArrangeCardBroadcast.prototype.toJSON = function toJSON() {
  17089. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  17090. };
  17091. return GCEndArrangeCardBroadcast;
  17092. })();
  17093. guandan.GCRestCardInfo = (function() {
  17094. /**
  17095. * Properties of a GCRestCardInfo.
  17096. * @memberof guandan
  17097. * @interface IGCRestCardInfo
  17098. * @property {number|Long} playerID GCRestCardInfo playerID
  17099. * @property {Array.<number>|null} [cardList] GCRestCardInfo cardList
  17100. * @property {Array.<number>|null} [lastPlayList] GCRestCardInfo lastPlayList
  17101. */
  17102. /**
  17103. * Constructs a new GCRestCardInfo.
  17104. * @memberof guandan
  17105. * @classdesc Represents a GCRestCardInfo.
  17106. * @implements IGCRestCardInfo
  17107. * @constructor
  17108. * @param {guandan.IGCRestCardInfo=} [properties] Properties to set
  17109. */
  17110. function GCRestCardInfo(properties) {
  17111. this.cardList = [];
  17112. this.lastPlayList = [];
  17113. if (properties)
  17114. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  17115. if (properties[keys[i]] != null)
  17116. this[keys[i]] = properties[keys[i]];
  17117. }
  17118. /**
  17119. * GCRestCardInfo playerID.
  17120. * @member {number|Long} playerID
  17121. * @memberof guandan.GCRestCardInfo
  17122. * @instance
  17123. */
  17124. GCRestCardInfo.prototype.playerID = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  17125. /**
  17126. * GCRestCardInfo cardList.
  17127. * @member {Array.<number>} cardList
  17128. * @memberof guandan.GCRestCardInfo
  17129. * @instance
  17130. */
  17131. GCRestCardInfo.prototype.cardList = $util.emptyArray;
  17132. /**
  17133. * GCRestCardInfo lastPlayList.
  17134. * @member {Array.<number>} lastPlayList
  17135. * @memberof guandan.GCRestCardInfo
  17136. * @instance
  17137. */
  17138. GCRestCardInfo.prototype.lastPlayList = $util.emptyArray;
  17139. /**
  17140. * Creates a new GCRestCardInfo instance using the specified properties.
  17141. * @function create
  17142. * @memberof guandan.GCRestCardInfo
  17143. * @static
  17144. * @param {guandan.IGCRestCardInfo=} [properties] Properties to set
  17145. * @returns {guandan.GCRestCardInfo} GCRestCardInfo instance
  17146. */
  17147. GCRestCardInfo.create = function create(properties) {
  17148. return new GCRestCardInfo(properties);
  17149. };
  17150. /**
  17151. * Encodes the specified GCRestCardInfo message. Does not implicitly {@link guandan.GCRestCardInfo.verify|verify} messages.
  17152. * @function encode
  17153. * @memberof guandan.GCRestCardInfo
  17154. * @static
  17155. * @param {guandan.IGCRestCardInfo} message GCRestCardInfo message or plain object to encode
  17156. * @param {$protobuf.Writer} [writer] Writer to encode to
  17157. * @returns {$protobuf.Writer} Writer
  17158. */
  17159. GCRestCardInfo.encode = function encode(message, writer) {
  17160. if (!writer)
  17161. writer = $Writer.create();
  17162. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerID);
  17163. if (message.cardList != null && message.cardList.length)
  17164. for (var i = 0; i < message.cardList.length; ++i)
  17165. writer.uint32(/* id 2, wireType 0 =*/16).int32(message.cardList[i]);
  17166. if (message.lastPlayList != null && message.lastPlayList.length)
  17167. for (var i = 0; i < message.lastPlayList.length; ++i)
  17168. writer.uint32(/* id 3, wireType 0 =*/24).int32(message.lastPlayList[i]);
  17169. return writer;
  17170. };
  17171. /**
  17172. * Encodes the specified GCRestCardInfo message, length delimited. Does not implicitly {@link guandan.GCRestCardInfo.verify|verify} messages.
  17173. * @function encodeDelimited
  17174. * @memberof guandan.GCRestCardInfo
  17175. * @static
  17176. * @param {guandan.IGCRestCardInfo} message GCRestCardInfo message or plain object to encode
  17177. * @param {$protobuf.Writer} [writer] Writer to encode to
  17178. * @returns {$protobuf.Writer} Writer
  17179. */
  17180. GCRestCardInfo.encodeDelimited = function encodeDelimited(message, writer) {
  17181. return this.encode(message, writer).ldelim();
  17182. };
  17183. /**
  17184. * Decodes a GCRestCardInfo message from the specified reader or buffer.
  17185. * @function decode
  17186. * @memberof guandan.GCRestCardInfo
  17187. * @static
  17188. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  17189. * @param {number} [length] Message length if known beforehand
  17190. * @returns {guandan.GCRestCardInfo} GCRestCardInfo
  17191. * @throws {Error} If the payload is not a reader or valid buffer
  17192. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  17193. */
  17194. GCRestCardInfo.decode = function decode(reader, length) {
  17195. if (!(reader instanceof $Reader))
  17196. reader = $Reader.create(reader);
  17197. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCRestCardInfo();
  17198. while (reader.pos < end) {
  17199. var tag = reader.uint32();
  17200. switch (tag >>> 3) {
  17201. case 1:
  17202. message.playerID = reader.int64();
  17203. break;
  17204. case 2:
  17205. if (!(message.cardList && message.cardList.length))
  17206. message.cardList = [];
  17207. if ((tag & 7) === 2) {
  17208. var end2 = reader.uint32() + reader.pos;
  17209. while (reader.pos < end2)
  17210. message.cardList.push(reader.int32());
  17211. } else
  17212. message.cardList.push(reader.int32());
  17213. break;
  17214. case 3:
  17215. if (!(message.lastPlayList && message.lastPlayList.length))
  17216. message.lastPlayList = [];
  17217. if ((tag & 7) === 2) {
  17218. var end2 = reader.uint32() + reader.pos;
  17219. while (reader.pos < end2)
  17220. message.lastPlayList.push(reader.int32());
  17221. } else
  17222. message.lastPlayList.push(reader.int32());
  17223. break;
  17224. default:
  17225. reader.skipType(tag & 7);
  17226. break;
  17227. }
  17228. }
  17229. if (!message.hasOwnProperty("playerID"))
  17230. throw $util.ProtocolError("missing required 'playerID'", { instance: message });
  17231. return message;
  17232. };
  17233. /**
  17234. * Decodes a GCRestCardInfo message from the specified reader or buffer, length delimited.
  17235. * @function decodeDelimited
  17236. * @memberof guandan.GCRestCardInfo
  17237. * @static
  17238. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  17239. * @returns {guandan.GCRestCardInfo} GCRestCardInfo
  17240. * @throws {Error} If the payload is not a reader or valid buffer
  17241. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  17242. */
  17243. GCRestCardInfo.decodeDelimited = function decodeDelimited(reader) {
  17244. if (!(reader instanceof $Reader))
  17245. reader = new $Reader(reader);
  17246. return this.decode(reader, reader.uint32());
  17247. };
  17248. /**
  17249. * Verifies a GCRestCardInfo message.
  17250. * @function verify
  17251. * @memberof guandan.GCRestCardInfo
  17252. * @static
  17253. * @param {Object.<string,*>} message Plain object to verify
  17254. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  17255. */
  17256. GCRestCardInfo.verify = function verify(message) {
  17257. if (typeof message !== "object" || message === null)
  17258. return "object expected";
  17259. if (!$util.isInteger(message.playerID) && !(message.playerID && $util.isInteger(message.playerID.low) && $util.isInteger(message.playerID.high)))
  17260. return "playerID: integer|Long expected";
  17261. if (message.cardList != null && message.hasOwnProperty("cardList")) {
  17262. if (!Array.isArray(message.cardList))
  17263. return "cardList: array expected";
  17264. for (var i = 0; i < message.cardList.length; ++i)
  17265. if (!$util.isInteger(message.cardList[i]))
  17266. return "cardList: integer[] expected";
  17267. }
  17268. if (message.lastPlayList != null && message.hasOwnProperty("lastPlayList")) {
  17269. if (!Array.isArray(message.lastPlayList))
  17270. return "lastPlayList: array expected";
  17271. for (var i = 0; i < message.lastPlayList.length; ++i)
  17272. if (!$util.isInteger(message.lastPlayList[i]))
  17273. return "lastPlayList: integer[] expected";
  17274. }
  17275. return null;
  17276. };
  17277. /**
  17278. * Creates a GCRestCardInfo message from a plain object. Also converts values to their respective internal types.
  17279. * @function fromObject
  17280. * @memberof guandan.GCRestCardInfo
  17281. * @static
  17282. * @param {Object.<string,*>} object Plain object
  17283. * @returns {guandan.GCRestCardInfo} GCRestCardInfo
  17284. */
  17285. GCRestCardInfo.fromObject = function fromObject(object) {
  17286. if (object instanceof $root.guandan.GCRestCardInfo)
  17287. return object;
  17288. var message = new $root.guandan.GCRestCardInfo();
  17289. if (object.playerID != null)
  17290. if ($util.Long)
  17291. (message.playerID = $util.Long.fromValue(object.playerID)).unsigned = false;
  17292. else if (typeof object.playerID === "string")
  17293. message.playerID = parseInt(object.playerID, 10);
  17294. else if (typeof object.playerID === "number")
  17295. message.playerID = object.playerID;
  17296. else if (typeof object.playerID === "object")
  17297. message.playerID = new $util.LongBits(object.playerID.low >>> 0, object.playerID.high >>> 0).toNumber();
  17298. if (object.cardList) {
  17299. if (!Array.isArray(object.cardList))
  17300. throw TypeError(".guandan.GCRestCardInfo.cardList: array expected");
  17301. message.cardList = [];
  17302. for (var i = 0; i < object.cardList.length; ++i)
  17303. message.cardList[i] = object.cardList[i] | 0;
  17304. }
  17305. if (object.lastPlayList) {
  17306. if (!Array.isArray(object.lastPlayList))
  17307. throw TypeError(".guandan.GCRestCardInfo.lastPlayList: array expected");
  17308. message.lastPlayList = [];
  17309. for (var i = 0; i < object.lastPlayList.length; ++i)
  17310. message.lastPlayList[i] = object.lastPlayList[i] | 0;
  17311. }
  17312. return message;
  17313. };
  17314. /**
  17315. * Creates a plain object from a GCRestCardInfo message. Also converts values to other types if specified.
  17316. * @function toObject
  17317. * @memberof guandan.GCRestCardInfo
  17318. * @static
  17319. * @param {guandan.GCRestCardInfo} message GCRestCardInfo
  17320. * @param {$protobuf.IConversionOptions} [options] Conversion options
  17321. * @returns {Object.<string,*>} Plain object
  17322. */
  17323. GCRestCardInfo.toObject = function toObject(message, options) {
  17324. if (!options)
  17325. options = {};
  17326. var object = {};
  17327. if (options.arrays || options.defaults) {
  17328. object.cardList = [];
  17329. object.lastPlayList = [];
  17330. }
  17331. if (options.defaults)
  17332. if ($util.Long) {
  17333. var long = new $util.Long(0, 0, false);
  17334. object.playerID = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  17335. } else
  17336. object.playerID = options.longs === String ? "0" : 0;
  17337. if (message.playerID != null && message.hasOwnProperty("playerID"))
  17338. if (typeof message.playerID === "number")
  17339. object.playerID = options.longs === String ? String(message.playerID) : message.playerID;
  17340. else
  17341. object.playerID = options.longs === String ? $util.Long.prototype.toString.call(message.playerID) : options.longs === Number ? new $util.LongBits(message.playerID.low >>> 0, message.playerID.high >>> 0).toNumber() : message.playerID;
  17342. if (message.cardList && message.cardList.length) {
  17343. object.cardList = [];
  17344. for (var j = 0; j < message.cardList.length; ++j)
  17345. object.cardList[j] = message.cardList[j];
  17346. }
  17347. if (message.lastPlayList && message.lastPlayList.length) {
  17348. object.lastPlayList = [];
  17349. for (var j = 0; j < message.lastPlayList.length; ++j)
  17350. object.lastPlayList[j] = message.lastPlayList[j];
  17351. }
  17352. return object;
  17353. };
  17354. /**
  17355. * Converts this GCRestCardInfo to JSON.
  17356. * @function toJSON
  17357. * @memberof guandan.GCRestCardInfo
  17358. * @instance
  17359. * @returns {Object.<string,*>} JSON object
  17360. */
  17361. GCRestCardInfo.prototype.toJSON = function toJSON() {
  17362. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  17363. };
  17364. return GCRestCardInfo;
  17365. })();
  17366. guandan.GCRestCardBroadcast = (function() {
  17367. /**
  17368. * Properties of a GCRestCardBroadcast.
  17369. * @memberof guandan
  17370. * @interface IGCRestCardBroadcast
  17371. * @property {Array.<guandan.IGCRestCardInfo>|null} [gcRestCardList] GCRestCardBroadcast gcRestCardList
  17372. */
  17373. /**
  17374. * Constructs a new GCRestCardBroadcast.
  17375. * @memberof guandan
  17376. * @classdesc Represents a GCRestCardBroadcast.
  17377. * @implements IGCRestCardBroadcast
  17378. * @constructor
  17379. * @param {guandan.IGCRestCardBroadcast=} [properties] Properties to set
  17380. */
  17381. function GCRestCardBroadcast(properties) {
  17382. this.gcRestCardList = [];
  17383. if (properties)
  17384. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  17385. if (properties[keys[i]] != null)
  17386. this[keys[i]] = properties[keys[i]];
  17387. }
  17388. /**
  17389. * GCRestCardBroadcast gcRestCardList.
  17390. * @member {Array.<guandan.IGCRestCardInfo>} gcRestCardList
  17391. * @memberof guandan.GCRestCardBroadcast
  17392. * @instance
  17393. */
  17394. GCRestCardBroadcast.prototype.gcRestCardList = $util.emptyArray;
  17395. /**
  17396. * Creates a new GCRestCardBroadcast instance using the specified properties.
  17397. * @function create
  17398. * @memberof guandan.GCRestCardBroadcast
  17399. * @static
  17400. * @param {guandan.IGCRestCardBroadcast=} [properties] Properties to set
  17401. * @returns {guandan.GCRestCardBroadcast} GCRestCardBroadcast instance
  17402. */
  17403. GCRestCardBroadcast.create = function create(properties) {
  17404. return new GCRestCardBroadcast(properties);
  17405. };
  17406. /**
  17407. * Encodes the specified GCRestCardBroadcast message. Does not implicitly {@link guandan.GCRestCardBroadcast.verify|verify} messages.
  17408. * @function encode
  17409. * @memberof guandan.GCRestCardBroadcast
  17410. * @static
  17411. * @param {guandan.IGCRestCardBroadcast} message GCRestCardBroadcast message or plain object to encode
  17412. * @param {$protobuf.Writer} [writer] Writer to encode to
  17413. * @returns {$protobuf.Writer} Writer
  17414. */
  17415. GCRestCardBroadcast.encode = function encode(message, writer) {
  17416. if (!writer)
  17417. writer = $Writer.create();
  17418. if (message.gcRestCardList != null && message.gcRestCardList.length)
  17419. for (var i = 0; i < message.gcRestCardList.length; ++i)
  17420. $root.guandan.GCRestCardInfo.encode(message.gcRestCardList[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
  17421. return writer;
  17422. };
  17423. /**
  17424. * Encodes the specified GCRestCardBroadcast message, length delimited. Does not implicitly {@link guandan.GCRestCardBroadcast.verify|verify} messages.
  17425. * @function encodeDelimited
  17426. * @memberof guandan.GCRestCardBroadcast
  17427. * @static
  17428. * @param {guandan.IGCRestCardBroadcast} message GCRestCardBroadcast message or plain object to encode
  17429. * @param {$protobuf.Writer} [writer] Writer to encode to
  17430. * @returns {$protobuf.Writer} Writer
  17431. */
  17432. GCRestCardBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
  17433. return this.encode(message, writer).ldelim();
  17434. };
  17435. /**
  17436. * Decodes a GCRestCardBroadcast message from the specified reader or buffer.
  17437. * @function decode
  17438. * @memberof guandan.GCRestCardBroadcast
  17439. * @static
  17440. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  17441. * @param {number} [length] Message length if known beforehand
  17442. * @returns {guandan.GCRestCardBroadcast} GCRestCardBroadcast
  17443. * @throws {Error} If the payload is not a reader or valid buffer
  17444. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  17445. */
  17446. GCRestCardBroadcast.decode = function decode(reader, length) {
  17447. if (!(reader instanceof $Reader))
  17448. reader = $Reader.create(reader);
  17449. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCRestCardBroadcast();
  17450. while (reader.pos < end) {
  17451. var tag = reader.uint32();
  17452. switch (tag >>> 3) {
  17453. case 1:
  17454. if (!(message.gcRestCardList && message.gcRestCardList.length))
  17455. message.gcRestCardList = [];
  17456. message.gcRestCardList.push($root.guandan.GCRestCardInfo.decode(reader, reader.uint32()));
  17457. break;
  17458. default:
  17459. reader.skipType(tag & 7);
  17460. break;
  17461. }
  17462. }
  17463. return message;
  17464. };
  17465. /**
  17466. * Decodes a GCRestCardBroadcast message from the specified reader or buffer, length delimited.
  17467. * @function decodeDelimited
  17468. * @memberof guandan.GCRestCardBroadcast
  17469. * @static
  17470. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  17471. * @returns {guandan.GCRestCardBroadcast} GCRestCardBroadcast
  17472. * @throws {Error} If the payload is not a reader or valid buffer
  17473. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  17474. */
  17475. GCRestCardBroadcast.decodeDelimited = function decodeDelimited(reader) {
  17476. if (!(reader instanceof $Reader))
  17477. reader = new $Reader(reader);
  17478. return this.decode(reader, reader.uint32());
  17479. };
  17480. /**
  17481. * Verifies a GCRestCardBroadcast message.
  17482. * @function verify
  17483. * @memberof guandan.GCRestCardBroadcast
  17484. * @static
  17485. * @param {Object.<string,*>} message Plain object to verify
  17486. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  17487. */
  17488. GCRestCardBroadcast.verify = function verify(message) {
  17489. if (typeof message !== "object" || message === null)
  17490. return "object expected";
  17491. if (message.gcRestCardList != null && message.hasOwnProperty("gcRestCardList")) {
  17492. if (!Array.isArray(message.gcRestCardList))
  17493. return "gcRestCardList: array expected";
  17494. for (var i = 0; i < message.gcRestCardList.length; ++i) {
  17495. var error = $root.guandan.GCRestCardInfo.verify(message.gcRestCardList[i]);
  17496. if (error)
  17497. return "gcRestCardList." + error;
  17498. }
  17499. }
  17500. return null;
  17501. };
  17502. /**
  17503. * Creates a GCRestCardBroadcast message from a plain object. Also converts values to their respective internal types.
  17504. * @function fromObject
  17505. * @memberof guandan.GCRestCardBroadcast
  17506. * @static
  17507. * @param {Object.<string,*>} object Plain object
  17508. * @returns {guandan.GCRestCardBroadcast} GCRestCardBroadcast
  17509. */
  17510. GCRestCardBroadcast.fromObject = function fromObject(object) {
  17511. if (object instanceof $root.guandan.GCRestCardBroadcast)
  17512. return object;
  17513. var message = new $root.guandan.GCRestCardBroadcast();
  17514. if (object.gcRestCardList) {
  17515. if (!Array.isArray(object.gcRestCardList))
  17516. throw TypeError(".guandan.GCRestCardBroadcast.gcRestCardList: array expected");
  17517. message.gcRestCardList = [];
  17518. for (var i = 0; i < object.gcRestCardList.length; ++i) {
  17519. if (typeof object.gcRestCardList[i] !== "object")
  17520. throw TypeError(".guandan.GCRestCardBroadcast.gcRestCardList: object expected");
  17521. message.gcRestCardList[i] = $root.guandan.GCRestCardInfo.fromObject(object.gcRestCardList[i]);
  17522. }
  17523. }
  17524. return message;
  17525. };
  17526. /**
  17527. * Creates a plain object from a GCRestCardBroadcast message. Also converts values to other types if specified.
  17528. * @function toObject
  17529. * @memberof guandan.GCRestCardBroadcast
  17530. * @static
  17531. * @param {guandan.GCRestCardBroadcast} message GCRestCardBroadcast
  17532. * @param {$protobuf.IConversionOptions} [options] Conversion options
  17533. * @returns {Object.<string,*>} Plain object
  17534. */
  17535. GCRestCardBroadcast.toObject = function toObject(message, options) {
  17536. if (!options)
  17537. options = {};
  17538. var object = {};
  17539. if (options.arrays || options.defaults)
  17540. object.gcRestCardList = [];
  17541. if (message.gcRestCardList && message.gcRestCardList.length) {
  17542. object.gcRestCardList = [];
  17543. for (var j = 0; j < message.gcRestCardList.length; ++j)
  17544. object.gcRestCardList[j] = $root.guandan.GCRestCardInfo.toObject(message.gcRestCardList[j], options);
  17545. }
  17546. return object;
  17547. };
  17548. /**
  17549. * Converts this GCRestCardBroadcast to JSON.
  17550. * @function toJSON
  17551. * @memberof guandan.GCRestCardBroadcast
  17552. * @instance
  17553. * @returns {Object.<string,*>} JSON object
  17554. */
  17555. GCRestCardBroadcast.prototype.toJSON = function toJSON() {
  17556. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  17557. };
  17558. return GCRestCardBroadcast;
  17559. })();
  17560. guandan.CGChat = (function() {
  17561. /**
  17562. * Properties of a CGChat.
  17563. * @memberof guandan
  17564. * @interface ICGChat
  17565. * @property {number} typ CGChat typ
  17566. * @property {Uint8Array} content CGChat content
  17567. */
  17568. /**
  17569. * Constructs a new CGChat.
  17570. * @memberof guandan
  17571. * @classdesc Represents a CGChat.
  17572. * @implements ICGChat
  17573. * @constructor
  17574. * @param {guandan.ICGChat=} [properties] Properties to set
  17575. */
  17576. function CGChat(properties) {
  17577. if (properties)
  17578. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  17579. if (properties[keys[i]] != null)
  17580. this[keys[i]] = properties[keys[i]];
  17581. }
  17582. /**
  17583. * CGChat typ.
  17584. * @member {number} typ
  17585. * @memberof guandan.CGChat
  17586. * @instance
  17587. */
  17588. CGChat.prototype.typ = 0;
  17589. /**
  17590. * CGChat content.
  17591. * @member {Uint8Array} content
  17592. * @memberof guandan.CGChat
  17593. * @instance
  17594. */
  17595. CGChat.prototype.content = $util.newBuffer([]);
  17596. /**
  17597. * Creates a new CGChat instance using the specified properties.
  17598. * @function create
  17599. * @memberof guandan.CGChat
  17600. * @static
  17601. * @param {guandan.ICGChat=} [properties] Properties to set
  17602. * @returns {guandan.CGChat} CGChat instance
  17603. */
  17604. CGChat.create = function create(properties) {
  17605. return new CGChat(properties);
  17606. };
  17607. /**
  17608. * Encodes the specified CGChat message. Does not implicitly {@link guandan.CGChat.verify|verify} messages.
  17609. * @function encode
  17610. * @memberof guandan.CGChat
  17611. * @static
  17612. * @param {guandan.ICGChat} message CGChat message or plain object to encode
  17613. * @param {$protobuf.Writer} [writer] Writer to encode to
  17614. * @returns {$protobuf.Writer} Writer
  17615. */
  17616. CGChat.encode = function encode(message, writer) {
  17617. if (!writer)
  17618. writer = $Writer.create();
  17619. writer.uint32(/* id 1, wireType 0 =*/8).int32(message.typ);
  17620. writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.content);
  17621. return writer;
  17622. };
  17623. /**
  17624. * Encodes the specified CGChat message, length delimited. Does not implicitly {@link guandan.CGChat.verify|verify} messages.
  17625. * @function encodeDelimited
  17626. * @memberof guandan.CGChat
  17627. * @static
  17628. * @param {guandan.ICGChat} message CGChat message or plain object to encode
  17629. * @param {$protobuf.Writer} [writer] Writer to encode to
  17630. * @returns {$protobuf.Writer} Writer
  17631. */
  17632. CGChat.encodeDelimited = function encodeDelimited(message, writer) {
  17633. return this.encode(message, writer).ldelim();
  17634. };
  17635. /**
  17636. * Decodes a CGChat message from the specified reader or buffer.
  17637. * @function decode
  17638. * @memberof guandan.CGChat
  17639. * @static
  17640. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  17641. * @param {number} [length] Message length if known beforehand
  17642. * @returns {guandan.CGChat} CGChat
  17643. * @throws {Error} If the payload is not a reader or valid buffer
  17644. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  17645. */
  17646. CGChat.decode = function decode(reader, length) {
  17647. if (!(reader instanceof $Reader))
  17648. reader = $Reader.create(reader);
  17649. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.CGChat();
  17650. while (reader.pos < end) {
  17651. var tag = reader.uint32();
  17652. switch (tag >>> 3) {
  17653. case 1:
  17654. message.typ = reader.int32();
  17655. break;
  17656. case 2:
  17657. message.content = reader.bytes();
  17658. break;
  17659. default:
  17660. reader.skipType(tag & 7);
  17661. break;
  17662. }
  17663. }
  17664. if (!message.hasOwnProperty("typ"))
  17665. throw $util.ProtocolError("missing required 'typ'", { instance: message });
  17666. if (!message.hasOwnProperty("content"))
  17667. throw $util.ProtocolError("missing required 'content'", { instance: message });
  17668. return message;
  17669. };
  17670. /**
  17671. * Decodes a CGChat message from the specified reader or buffer, length delimited.
  17672. * @function decodeDelimited
  17673. * @memberof guandan.CGChat
  17674. * @static
  17675. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  17676. * @returns {guandan.CGChat} CGChat
  17677. * @throws {Error} If the payload is not a reader or valid buffer
  17678. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  17679. */
  17680. CGChat.decodeDelimited = function decodeDelimited(reader) {
  17681. if (!(reader instanceof $Reader))
  17682. reader = new $Reader(reader);
  17683. return this.decode(reader, reader.uint32());
  17684. };
  17685. /**
  17686. * Verifies a CGChat message.
  17687. * @function verify
  17688. * @memberof guandan.CGChat
  17689. * @static
  17690. * @param {Object.<string,*>} message Plain object to verify
  17691. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  17692. */
  17693. CGChat.verify = function verify(message) {
  17694. if (typeof message !== "object" || message === null)
  17695. return "object expected";
  17696. if (!$util.isInteger(message.typ))
  17697. return "typ: integer expected";
  17698. if (!(message.content && typeof message.content.length === "number" || $util.isString(message.content)))
  17699. return "content: buffer expected";
  17700. return null;
  17701. };
  17702. /**
  17703. * Creates a CGChat message from a plain object. Also converts values to their respective internal types.
  17704. * @function fromObject
  17705. * @memberof guandan.CGChat
  17706. * @static
  17707. * @param {Object.<string,*>} object Plain object
  17708. * @returns {guandan.CGChat} CGChat
  17709. */
  17710. CGChat.fromObject = function fromObject(object) {
  17711. if (object instanceof $root.guandan.CGChat)
  17712. return object;
  17713. var message = new $root.guandan.CGChat();
  17714. if (object.typ != null)
  17715. message.typ = object.typ | 0;
  17716. if (object.content != null)
  17717. if (typeof object.content === "string")
  17718. $util.base64.decode(object.content, message.content = $util.newBuffer($util.base64.length(object.content)), 0);
  17719. else if (object.content.length)
  17720. message.content = object.content;
  17721. return message;
  17722. };
  17723. /**
  17724. * Creates a plain object from a CGChat message. Also converts values to other types if specified.
  17725. * @function toObject
  17726. * @memberof guandan.CGChat
  17727. * @static
  17728. * @param {guandan.CGChat} message CGChat
  17729. * @param {$protobuf.IConversionOptions} [options] Conversion options
  17730. * @returns {Object.<string,*>} Plain object
  17731. */
  17732. CGChat.toObject = function toObject(message, options) {
  17733. if (!options)
  17734. options = {};
  17735. var object = {};
  17736. if (options.defaults) {
  17737. object.typ = 0;
  17738. if (options.bytes === String)
  17739. object.content = "";
  17740. else {
  17741. object.content = [];
  17742. if (options.bytes !== Array)
  17743. object.content = $util.newBuffer(object.content);
  17744. }
  17745. }
  17746. if (message.typ != null && message.hasOwnProperty("typ"))
  17747. object.typ = message.typ;
  17748. if (message.content != null && message.hasOwnProperty("content"))
  17749. object.content = options.bytes === String ? $util.base64.encode(message.content, 0, message.content.length) : options.bytes === Array ? Array.prototype.slice.call(message.content) : message.content;
  17750. return object;
  17751. };
  17752. /**
  17753. * Converts this CGChat to JSON.
  17754. * @function toJSON
  17755. * @memberof guandan.CGChat
  17756. * @instance
  17757. * @returns {Object.<string,*>} JSON object
  17758. */
  17759. CGChat.prototype.toJSON = function toJSON() {
  17760. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  17761. };
  17762. return CGChat;
  17763. })();
  17764. guandan.GCChat = (function() {
  17765. /**
  17766. * Properties of a GCChat.
  17767. * @memberof guandan
  17768. * @interface IGCChat
  17769. * @property {number} typ GCChat typ
  17770. * @property {Uint8Array} content GCChat content
  17771. * @property {number|Long} sender GCChat sender
  17772. */
  17773. /**
  17774. * Constructs a new GCChat.
  17775. * @memberof guandan
  17776. * @classdesc Represents a GCChat.
  17777. * @implements IGCChat
  17778. * @constructor
  17779. * @param {guandan.IGCChat=} [properties] Properties to set
  17780. */
  17781. function GCChat(properties) {
  17782. if (properties)
  17783. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  17784. if (properties[keys[i]] != null)
  17785. this[keys[i]] = properties[keys[i]];
  17786. }
  17787. /**
  17788. * GCChat typ.
  17789. * @member {number} typ
  17790. * @memberof guandan.GCChat
  17791. * @instance
  17792. */
  17793. GCChat.prototype.typ = 0;
  17794. /**
  17795. * GCChat content.
  17796. * @member {Uint8Array} content
  17797. * @memberof guandan.GCChat
  17798. * @instance
  17799. */
  17800. GCChat.prototype.content = $util.newBuffer([]);
  17801. /**
  17802. * GCChat sender.
  17803. * @member {number|Long} sender
  17804. * @memberof guandan.GCChat
  17805. * @instance
  17806. */
  17807. GCChat.prototype.sender = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  17808. /**
  17809. * Creates a new GCChat instance using the specified properties.
  17810. * @function create
  17811. * @memberof guandan.GCChat
  17812. * @static
  17813. * @param {guandan.IGCChat=} [properties] Properties to set
  17814. * @returns {guandan.GCChat} GCChat instance
  17815. */
  17816. GCChat.create = function create(properties) {
  17817. return new GCChat(properties);
  17818. };
  17819. /**
  17820. * Encodes the specified GCChat message. Does not implicitly {@link guandan.GCChat.verify|verify} messages.
  17821. * @function encode
  17822. * @memberof guandan.GCChat
  17823. * @static
  17824. * @param {guandan.IGCChat} message GCChat message or plain object to encode
  17825. * @param {$protobuf.Writer} [writer] Writer to encode to
  17826. * @returns {$protobuf.Writer} Writer
  17827. */
  17828. GCChat.encode = function encode(message, writer) {
  17829. if (!writer)
  17830. writer = $Writer.create();
  17831. writer.uint32(/* id 1, wireType 0 =*/8).int32(message.typ);
  17832. writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.content);
  17833. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.sender);
  17834. return writer;
  17835. };
  17836. /**
  17837. * Encodes the specified GCChat message, length delimited. Does not implicitly {@link guandan.GCChat.verify|verify} messages.
  17838. * @function encodeDelimited
  17839. * @memberof guandan.GCChat
  17840. * @static
  17841. * @param {guandan.IGCChat} message GCChat message or plain object to encode
  17842. * @param {$protobuf.Writer} [writer] Writer to encode to
  17843. * @returns {$protobuf.Writer} Writer
  17844. */
  17845. GCChat.encodeDelimited = function encodeDelimited(message, writer) {
  17846. return this.encode(message, writer).ldelim();
  17847. };
  17848. /**
  17849. * Decodes a GCChat message from the specified reader or buffer.
  17850. * @function decode
  17851. * @memberof guandan.GCChat
  17852. * @static
  17853. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  17854. * @param {number} [length] Message length if known beforehand
  17855. * @returns {guandan.GCChat} GCChat
  17856. * @throws {Error} If the payload is not a reader or valid buffer
  17857. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  17858. */
  17859. GCChat.decode = function decode(reader, length) {
  17860. if (!(reader instanceof $Reader))
  17861. reader = $Reader.create(reader);
  17862. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCChat();
  17863. while (reader.pos < end) {
  17864. var tag = reader.uint32();
  17865. switch (tag >>> 3) {
  17866. case 1:
  17867. message.typ = reader.int32();
  17868. break;
  17869. case 2:
  17870. message.content = reader.bytes();
  17871. break;
  17872. case 3:
  17873. message.sender = reader.int64();
  17874. break;
  17875. default:
  17876. reader.skipType(tag & 7);
  17877. break;
  17878. }
  17879. }
  17880. if (!message.hasOwnProperty("typ"))
  17881. throw $util.ProtocolError("missing required 'typ'", { instance: message });
  17882. if (!message.hasOwnProperty("content"))
  17883. throw $util.ProtocolError("missing required 'content'", { instance: message });
  17884. if (!message.hasOwnProperty("sender"))
  17885. throw $util.ProtocolError("missing required 'sender'", { instance: message });
  17886. return message;
  17887. };
  17888. /**
  17889. * Decodes a GCChat message from the specified reader or buffer, length delimited.
  17890. * @function decodeDelimited
  17891. * @memberof guandan.GCChat
  17892. * @static
  17893. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  17894. * @returns {guandan.GCChat} GCChat
  17895. * @throws {Error} If the payload is not a reader or valid buffer
  17896. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  17897. */
  17898. GCChat.decodeDelimited = function decodeDelimited(reader) {
  17899. if (!(reader instanceof $Reader))
  17900. reader = new $Reader(reader);
  17901. return this.decode(reader, reader.uint32());
  17902. };
  17903. /**
  17904. * Verifies a GCChat message.
  17905. * @function verify
  17906. * @memberof guandan.GCChat
  17907. * @static
  17908. * @param {Object.<string,*>} message Plain object to verify
  17909. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  17910. */
  17911. GCChat.verify = function verify(message) {
  17912. if (typeof message !== "object" || message === null)
  17913. return "object expected";
  17914. if (!$util.isInteger(message.typ))
  17915. return "typ: integer expected";
  17916. if (!(message.content && typeof message.content.length === "number" || $util.isString(message.content)))
  17917. return "content: buffer expected";
  17918. if (!$util.isInteger(message.sender) && !(message.sender && $util.isInteger(message.sender.low) && $util.isInteger(message.sender.high)))
  17919. return "sender: integer|Long expected";
  17920. return null;
  17921. };
  17922. /**
  17923. * Creates a GCChat message from a plain object. Also converts values to their respective internal types.
  17924. * @function fromObject
  17925. * @memberof guandan.GCChat
  17926. * @static
  17927. * @param {Object.<string,*>} object Plain object
  17928. * @returns {guandan.GCChat} GCChat
  17929. */
  17930. GCChat.fromObject = function fromObject(object) {
  17931. if (object instanceof $root.guandan.GCChat)
  17932. return object;
  17933. var message = new $root.guandan.GCChat();
  17934. if (object.typ != null)
  17935. message.typ = object.typ | 0;
  17936. if (object.content != null)
  17937. if (typeof object.content === "string")
  17938. $util.base64.decode(object.content, message.content = $util.newBuffer($util.base64.length(object.content)), 0);
  17939. else if (object.content.length)
  17940. message.content = object.content;
  17941. if (object.sender != null)
  17942. if ($util.Long)
  17943. (message.sender = $util.Long.fromValue(object.sender)).unsigned = false;
  17944. else if (typeof object.sender === "string")
  17945. message.sender = parseInt(object.sender, 10);
  17946. else if (typeof object.sender === "number")
  17947. message.sender = object.sender;
  17948. else if (typeof object.sender === "object")
  17949. message.sender = new $util.LongBits(object.sender.low >>> 0, object.sender.high >>> 0).toNumber();
  17950. return message;
  17951. };
  17952. /**
  17953. * Creates a plain object from a GCChat message. Also converts values to other types if specified.
  17954. * @function toObject
  17955. * @memberof guandan.GCChat
  17956. * @static
  17957. * @param {guandan.GCChat} message GCChat
  17958. * @param {$protobuf.IConversionOptions} [options] Conversion options
  17959. * @returns {Object.<string,*>} Plain object
  17960. */
  17961. GCChat.toObject = function toObject(message, options) {
  17962. if (!options)
  17963. options = {};
  17964. var object = {};
  17965. if (options.defaults) {
  17966. object.typ = 0;
  17967. if (options.bytes === String)
  17968. object.content = "";
  17969. else {
  17970. object.content = [];
  17971. if (options.bytes !== Array)
  17972. object.content = $util.newBuffer(object.content);
  17973. }
  17974. if ($util.Long) {
  17975. var long = new $util.Long(0, 0, false);
  17976. object.sender = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  17977. } else
  17978. object.sender = options.longs === String ? "0" : 0;
  17979. }
  17980. if (message.typ != null && message.hasOwnProperty("typ"))
  17981. object.typ = message.typ;
  17982. if (message.content != null && message.hasOwnProperty("content"))
  17983. object.content = options.bytes === String ? $util.base64.encode(message.content, 0, message.content.length) : options.bytes === Array ? Array.prototype.slice.call(message.content) : message.content;
  17984. if (message.sender != null && message.hasOwnProperty("sender"))
  17985. if (typeof message.sender === "number")
  17986. object.sender = options.longs === String ? String(message.sender) : message.sender;
  17987. else
  17988. object.sender = options.longs === String ? $util.Long.prototype.toString.call(message.sender) : options.longs === Number ? new $util.LongBits(message.sender.low >>> 0, message.sender.high >>> 0).toNumber() : message.sender;
  17989. return object;
  17990. };
  17991. /**
  17992. * Converts this GCChat to JSON.
  17993. * @function toJSON
  17994. * @memberof guandan.GCChat
  17995. * @instance
  17996. * @returns {Object.<string,*>} JSON object
  17997. */
  17998. GCChat.prototype.toJSON = function toJSON() {
  17999. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  18000. };
  18001. return GCChat;
  18002. })();
  18003. guandan.GCErrorNotice = (function() {
  18004. /**
  18005. * Properties of a GCErrorNotice.
  18006. * @memberof guandan
  18007. * @interface IGCErrorNotice
  18008. * @property {string} errorMsg GCErrorNotice errorMsg
  18009. */
  18010. /**
  18011. * Constructs a new GCErrorNotice.
  18012. * @memberof guandan
  18013. * @classdesc Represents a GCErrorNotice.
  18014. * @implements IGCErrorNotice
  18015. * @constructor
  18016. * @param {guandan.IGCErrorNotice=} [properties] Properties to set
  18017. */
  18018. function GCErrorNotice(properties) {
  18019. if (properties)
  18020. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  18021. if (properties[keys[i]] != null)
  18022. this[keys[i]] = properties[keys[i]];
  18023. }
  18024. /**
  18025. * GCErrorNotice errorMsg.
  18026. * @member {string} errorMsg
  18027. * @memberof guandan.GCErrorNotice
  18028. * @instance
  18029. */
  18030. GCErrorNotice.prototype.errorMsg = "";
  18031. /**
  18032. * Creates a new GCErrorNotice instance using the specified properties.
  18033. * @function create
  18034. * @memberof guandan.GCErrorNotice
  18035. * @static
  18036. * @param {guandan.IGCErrorNotice=} [properties] Properties to set
  18037. * @returns {guandan.GCErrorNotice} GCErrorNotice instance
  18038. */
  18039. GCErrorNotice.create = function create(properties) {
  18040. return new GCErrorNotice(properties);
  18041. };
  18042. /**
  18043. * Encodes the specified GCErrorNotice message. Does not implicitly {@link guandan.GCErrorNotice.verify|verify} messages.
  18044. * @function encode
  18045. * @memberof guandan.GCErrorNotice
  18046. * @static
  18047. * @param {guandan.IGCErrorNotice} message GCErrorNotice message or plain object to encode
  18048. * @param {$protobuf.Writer} [writer] Writer to encode to
  18049. * @returns {$protobuf.Writer} Writer
  18050. */
  18051. GCErrorNotice.encode = function encode(message, writer) {
  18052. if (!writer)
  18053. writer = $Writer.create();
  18054. writer.uint32(/* id 1, wireType 2 =*/10).string(message.errorMsg);
  18055. return writer;
  18056. };
  18057. /**
  18058. * Encodes the specified GCErrorNotice message, length delimited. Does not implicitly {@link guandan.GCErrorNotice.verify|verify} messages.
  18059. * @function encodeDelimited
  18060. * @memberof guandan.GCErrorNotice
  18061. * @static
  18062. * @param {guandan.IGCErrorNotice} message GCErrorNotice message or plain object to encode
  18063. * @param {$protobuf.Writer} [writer] Writer to encode to
  18064. * @returns {$protobuf.Writer} Writer
  18065. */
  18066. GCErrorNotice.encodeDelimited = function encodeDelimited(message, writer) {
  18067. return this.encode(message, writer).ldelim();
  18068. };
  18069. /**
  18070. * Decodes a GCErrorNotice message from the specified reader or buffer.
  18071. * @function decode
  18072. * @memberof guandan.GCErrorNotice
  18073. * @static
  18074. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  18075. * @param {number} [length] Message length if known beforehand
  18076. * @returns {guandan.GCErrorNotice} GCErrorNotice
  18077. * @throws {Error} If the payload is not a reader or valid buffer
  18078. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  18079. */
  18080. GCErrorNotice.decode = function decode(reader, length) {
  18081. if (!(reader instanceof $Reader))
  18082. reader = $Reader.create(reader);
  18083. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCErrorNotice();
  18084. while (reader.pos < end) {
  18085. var tag = reader.uint32();
  18086. switch (tag >>> 3) {
  18087. case 1:
  18088. message.errorMsg = reader.string();
  18089. break;
  18090. default:
  18091. reader.skipType(tag & 7);
  18092. break;
  18093. }
  18094. }
  18095. if (!message.hasOwnProperty("errorMsg"))
  18096. throw $util.ProtocolError("missing required 'errorMsg'", { instance: message });
  18097. return message;
  18098. };
  18099. /**
  18100. * Decodes a GCErrorNotice message from the specified reader or buffer, length delimited.
  18101. * @function decodeDelimited
  18102. * @memberof guandan.GCErrorNotice
  18103. * @static
  18104. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  18105. * @returns {guandan.GCErrorNotice} GCErrorNotice
  18106. * @throws {Error} If the payload is not a reader or valid buffer
  18107. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  18108. */
  18109. GCErrorNotice.decodeDelimited = function decodeDelimited(reader) {
  18110. if (!(reader instanceof $Reader))
  18111. reader = new $Reader(reader);
  18112. return this.decode(reader, reader.uint32());
  18113. };
  18114. /**
  18115. * Verifies a GCErrorNotice message.
  18116. * @function verify
  18117. * @memberof guandan.GCErrorNotice
  18118. * @static
  18119. * @param {Object.<string,*>} message Plain object to verify
  18120. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  18121. */
  18122. GCErrorNotice.verify = function verify(message) {
  18123. if (typeof message !== "object" || message === null)
  18124. return "object expected";
  18125. if (!$util.isString(message.errorMsg))
  18126. return "errorMsg: string expected";
  18127. return null;
  18128. };
  18129. /**
  18130. * Creates a GCErrorNotice message from a plain object. Also converts values to their respective internal types.
  18131. * @function fromObject
  18132. * @memberof guandan.GCErrorNotice
  18133. * @static
  18134. * @param {Object.<string,*>} object Plain object
  18135. * @returns {guandan.GCErrorNotice} GCErrorNotice
  18136. */
  18137. GCErrorNotice.fromObject = function fromObject(object) {
  18138. if (object instanceof $root.guandan.GCErrorNotice)
  18139. return object;
  18140. var message = new $root.guandan.GCErrorNotice();
  18141. if (object.errorMsg != null)
  18142. message.errorMsg = String(object.errorMsg);
  18143. return message;
  18144. };
  18145. /**
  18146. * Creates a plain object from a GCErrorNotice message. Also converts values to other types if specified.
  18147. * @function toObject
  18148. * @memberof guandan.GCErrorNotice
  18149. * @static
  18150. * @param {guandan.GCErrorNotice} message GCErrorNotice
  18151. * @param {$protobuf.IConversionOptions} [options] Conversion options
  18152. * @returns {Object.<string,*>} Plain object
  18153. */
  18154. GCErrorNotice.toObject = function toObject(message, options) {
  18155. if (!options)
  18156. options = {};
  18157. var object = {};
  18158. if (options.defaults)
  18159. object.errorMsg = "";
  18160. if (message.errorMsg != null && message.hasOwnProperty("errorMsg"))
  18161. object.errorMsg = message.errorMsg;
  18162. return object;
  18163. };
  18164. /**
  18165. * Converts this GCErrorNotice to JSON.
  18166. * @function toJSON
  18167. * @memberof guandan.GCErrorNotice
  18168. * @instance
  18169. * @returns {Object.<string,*>} JSON object
  18170. */
  18171. GCErrorNotice.prototype.toJSON = function toJSON() {
  18172. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  18173. };
  18174. return GCErrorNotice;
  18175. })();
  18176. guandan.GCKickOutReason = (function() {
  18177. /**
  18178. * Properties of a GCKickOutReason.
  18179. * @memberof guandan
  18180. * @interface IGCKickOutReason
  18181. * @property {number} reasonCode GCKickOutReason reasonCode
  18182. * @property {string|null} [reasonMsg] GCKickOutReason reasonMsg
  18183. */
  18184. /**
  18185. * Constructs a new GCKickOutReason.
  18186. * @memberof guandan
  18187. * @classdesc Represents a GCKickOutReason.
  18188. * @implements IGCKickOutReason
  18189. * @constructor
  18190. * @param {guandan.IGCKickOutReason=} [properties] Properties to set
  18191. */
  18192. function GCKickOutReason(properties) {
  18193. if (properties)
  18194. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  18195. if (properties[keys[i]] != null)
  18196. this[keys[i]] = properties[keys[i]];
  18197. }
  18198. /**
  18199. * GCKickOutReason reasonCode.
  18200. * @member {number} reasonCode
  18201. * @memberof guandan.GCKickOutReason
  18202. * @instance
  18203. */
  18204. GCKickOutReason.prototype.reasonCode = 0;
  18205. /**
  18206. * GCKickOutReason reasonMsg.
  18207. * @member {string} reasonMsg
  18208. * @memberof guandan.GCKickOutReason
  18209. * @instance
  18210. */
  18211. GCKickOutReason.prototype.reasonMsg = "";
  18212. /**
  18213. * Creates a new GCKickOutReason instance using the specified properties.
  18214. * @function create
  18215. * @memberof guandan.GCKickOutReason
  18216. * @static
  18217. * @param {guandan.IGCKickOutReason=} [properties] Properties to set
  18218. * @returns {guandan.GCKickOutReason} GCKickOutReason instance
  18219. */
  18220. GCKickOutReason.create = function create(properties) {
  18221. return new GCKickOutReason(properties);
  18222. };
  18223. /**
  18224. * Encodes the specified GCKickOutReason message. Does not implicitly {@link guandan.GCKickOutReason.verify|verify} messages.
  18225. * @function encode
  18226. * @memberof guandan.GCKickOutReason
  18227. * @static
  18228. * @param {guandan.IGCKickOutReason} message GCKickOutReason message or plain object to encode
  18229. * @param {$protobuf.Writer} [writer] Writer to encode to
  18230. * @returns {$protobuf.Writer} Writer
  18231. */
  18232. GCKickOutReason.encode = function encode(message, writer) {
  18233. if (!writer)
  18234. writer = $Writer.create();
  18235. writer.uint32(/* id 1, wireType 0 =*/8).int32(message.reasonCode);
  18236. if (message.reasonMsg != null && Object.hasOwnProperty.call(message, "reasonMsg"))
  18237. writer.uint32(/* id 2, wireType 2 =*/18).string(message.reasonMsg);
  18238. return writer;
  18239. };
  18240. /**
  18241. * Encodes the specified GCKickOutReason message, length delimited. Does not implicitly {@link guandan.GCKickOutReason.verify|verify} messages.
  18242. * @function encodeDelimited
  18243. * @memberof guandan.GCKickOutReason
  18244. * @static
  18245. * @param {guandan.IGCKickOutReason} message GCKickOutReason message or plain object to encode
  18246. * @param {$protobuf.Writer} [writer] Writer to encode to
  18247. * @returns {$protobuf.Writer} Writer
  18248. */
  18249. GCKickOutReason.encodeDelimited = function encodeDelimited(message, writer) {
  18250. return this.encode(message, writer).ldelim();
  18251. };
  18252. /**
  18253. * Decodes a GCKickOutReason message from the specified reader or buffer.
  18254. * @function decode
  18255. * @memberof guandan.GCKickOutReason
  18256. * @static
  18257. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  18258. * @param {number} [length] Message length if known beforehand
  18259. * @returns {guandan.GCKickOutReason} GCKickOutReason
  18260. * @throws {Error} If the payload is not a reader or valid buffer
  18261. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  18262. */
  18263. GCKickOutReason.decode = function decode(reader, length) {
  18264. if (!(reader instanceof $Reader))
  18265. reader = $Reader.create(reader);
  18266. var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCKickOutReason();
  18267. while (reader.pos < end) {
  18268. var tag = reader.uint32();
  18269. switch (tag >>> 3) {
  18270. case 1:
  18271. message.reasonCode = reader.int32();
  18272. break;
  18273. case 2:
  18274. message.reasonMsg = reader.string();
  18275. break;
  18276. default:
  18277. reader.skipType(tag & 7);
  18278. break;
  18279. }
  18280. }
  18281. if (!message.hasOwnProperty("reasonCode"))
  18282. throw $util.ProtocolError("missing required 'reasonCode'", { instance: message });
  18283. return message;
  18284. };
  18285. /**
  18286. * Decodes a GCKickOutReason message from the specified reader or buffer, length delimited.
  18287. * @function decodeDelimited
  18288. * @memberof guandan.GCKickOutReason
  18289. * @static
  18290. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  18291. * @returns {guandan.GCKickOutReason} GCKickOutReason
  18292. * @throws {Error} If the payload is not a reader or valid buffer
  18293. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  18294. */
  18295. GCKickOutReason.decodeDelimited = function decodeDelimited(reader) {
  18296. if (!(reader instanceof $Reader))
  18297. reader = new $Reader(reader);
  18298. return this.decode(reader, reader.uint32());
  18299. };
  18300. /**
  18301. * Verifies a GCKickOutReason message.
  18302. * @function verify
  18303. * @memberof guandan.GCKickOutReason
  18304. * @static
  18305. * @param {Object.<string,*>} message Plain object to verify
  18306. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  18307. */
  18308. GCKickOutReason.verify = function verify(message) {
  18309. if (typeof message !== "object" || message === null)
  18310. return "object expected";
  18311. if (!$util.isInteger(message.reasonCode))
  18312. return "reasonCode: integer expected";
  18313. if (message.reasonMsg != null && message.hasOwnProperty("reasonMsg"))
  18314. if (!$util.isString(message.reasonMsg))
  18315. return "reasonMsg: string expected";
  18316. return null;
  18317. };
  18318. /**
  18319. * Creates a GCKickOutReason message from a plain object. Also converts values to their respective internal types.
  18320. * @function fromObject
  18321. * @memberof guandan.GCKickOutReason
  18322. * @static
  18323. * @param {Object.<string,*>} object Plain object
  18324. * @returns {guandan.GCKickOutReason} GCKickOutReason
  18325. */
  18326. GCKickOutReason.fromObject = function fromObject(object) {
  18327. if (object instanceof $root.guandan.GCKickOutReason)
  18328. return object;
  18329. var message = new $root.guandan.GCKickOutReason();
  18330. if (object.reasonCode != null)
  18331. message.reasonCode = object.reasonCode | 0;
  18332. if (object.reasonMsg != null)
  18333. message.reasonMsg = String(object.reasonMsg);
  18334. return message;
  18335. };
  18336. /**
  18337. * Creates a plain object from a GCKickOutReason message. Also converts values to other types if specified.
  18338. * @function toObject
  18339. * @memberof guandan.GCKickOutReason
  18340. * @static
  18341. * @param {guandan.GCKickOutReason} message GCKickOutReason
  18342. * @param {$protobuf.IConversionOptions} [options] Conversion options
  18343. * @returns {Object.<string,*>} Plain object
  18344. */
  18345. GCKickOutReason.toObject = function toObject(message, options) {
  18346. if (!options)
  18347. options = {};
  18348. var object = {};
  18349. if (options.defaults) {
  18350. object.reasonCode = 0;
  18351. object.reasonMsg = "";
  18352. }
  18353. if (message.reasonCode != null && message.hasOwnProperty("reasonCode"))
  18354. object.reasonCode = message.reasonCode;
  18355. if (message.reasonMsg != null && message.hasOwnProperty("reasonMsg"))
  18356. object.reasonMsg = message.reasonMsg;
  18357. return object;
  18358. };
  18359. /**
  18360. * Converts this GCKickOutReason to JSON.
  18361. * @function toJSON
  18362. * @memberof guandan.GCKickOutReason
  18363. * @instance
  18364. * @returns {Object.<string,*>} JSON object
  18365. */
  18366. GCKickOutReason.prototype.toJSON = function toJSON() {
  18367. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  18368. };
  18369. return GCKickOutReason;
  18370. })();
  18371. return guandan;
  18372. })();
  18373. $root.messagetype = (function() {
  18374. /**
  18375. * Namespace messagetype.
  18376. * @exports messagetype
  18377. * @namespace
  18378. */
  18379. var messagetype = {};
  18380. /**
  18381. * QiPaiMessageType enum.
  18382. * @name messagetype.QiPaiMessageType
  18383. * @enum {number}
  18384. * @property {number} SessionOpen=101 SessionOpen value
  18385. * @property {number} SessionClose=102 SessionClose value
  18386. * @property {number} CGLoginType=1001 CGLoginType value
  18387. * @property {number} GCLoginType=1002 GCLoginType value
  18388. * @property {number} CGPingType=1003 CGPingType value
  18389. * @property {number} GCPingType=1004 GCPingType value
  18390. * @property {number} GCError=1101 GCError value
  18391. */
  18392. messagetype.QiPaiMessageType = (function() {
  18393. var valuesById = {}, values = Object.create(valuesById);
  18394. values[valuesById[101] = "SessionOpen"] = 101;
  18395. values[valuesById[102] = "SessionClose"] = 102;
  18396. values[valuesById[1001] = "CGLoginType"] = 1001;
  18397. values[valuesById[1002] = "GCLoginType"] = 1002;
  18398. values[valuesById[1003] = "CGPingType"] = 1003;
  18399. values[valuesById[1004] = "GCPingType"] = 1004;
  18400. values[valuesById[1101] = "GCError"] = 1101;
  18401. return values;
  18402. })();
  18403. /**
  18404. * MessageType enum.
  18405. * @name messagetype.MessageType
  18406. * @enum {number}
  18407. * @property {number} CGJoinRoomType=2001 CGJoinRoomType value
  18408. * @property {number} GCJoinRoomType=2002 GCJoinRoomType value
  18409. * @property {number} GCJoinRoomBroadcastType=2003 GCJoinRoomBroadcastType value
  18410. * @property {number} GCSelectBankerBroadcastType=2004 GCSelectBankerBroadcastType value
  18411. * @property {number} GCDealCardsType=2005 GCDealCardsType value
  18412. * @property {number} CGPlayerPlayCardType=2006 CGPlayerPlayCardType value
  18413. * @property {number} GCPlayerPlayCardType=2007 GCPlayerPlayCardType value
  18414. * @property {number} GCPlayerOperationsType=2008 GCPlayerOperationsType value
  18415. * @property {number} GCWaitPlayerPlayCardType=2009 GCWaitPlayerPlayCardType value
  18416. * @property {number} CGPlayerJinGongType=2010 CGPlayerJinGongType value
  18417. * @property {number} GCPlayerJinGongBroadcastType=2011 GCPlayerJinGongBroadcastType value
  18418. * @property {number} CGPlayerHuanGongType=2012 CGPlayerHuanGongType value
  18419. * @property {number} GCPlayerHuanGongBroadcastType=2013 GCPlayerHuanGongBroadcastType value
  18420. * @property {number} GCPlayerKangGongBroadcastType=2014 GCPlayerKangGongBroadcastType value
  18421. * @property {number} GCWaitPlayerJinGongBroadcastType=2015 GCWaitPlayerJinGongBroadcastType value
  18422. * @property {number} GCWaitPlayerHuanGongBroadcastType=2016 GCWaitPlayerHuanGongBroadcastType value
  18423. * @property {number} CGPlayerOperateType=2017 CGPlayerOperateType value
  18424. * @property {number} GCClearCircleBroadcastType=2018 GCClearCircleBroadcastType value
  18425. * @property {number} GCClearType=2019 GCClearType value
  18426. * @property {number} GCReconnectPlayerType=2020 GCReconnectPlayerType value
  18427. * @property {number} GCDisconnectPlayerType=2021 GCDisconnectPlayerType value
  18428. * @property {number} CGDisconnectPlayerType=2022 CGDisconnectPlayerType value
  18429. * @property {number} CGPlayerLeaveType=2023 CGPlayerLeaveType value
  18430. * @property {number} GCPlayerLeaveType=2024 GCPlayerLeaveType value
  18431. * @property {number} CGPlayerStartType=2025 CGPlayerStartType value
  18432. * @property {number} GCPlayerStartType=2026 GCPlayerStartType value
  18433. * @property {number} CGPlayerDissolveType=2027 CGPlayerDissolveType value
  18434. * @property {number} GCPlayerDissolveType=2028 GCPlayerDissolveType value
  18435. * @property {number} CGPlayerDissolveAgreeType=2029 CGPlayerDissolveAgreeType value
  18436. * @property {number} GCPlayerDissolveAgreeType=2030 GCPlayerDissolveAgreeType value
  18437. * @property {number} GCTotalSettleType=2031 GCTotalSettleType value
  18438. * @property {number} GCPlayerKaiJinType=2032 GCPlayerKaiJinType value
  18439. * @property {number} GCPlayerTuoGuan=2033 GCPlayerTuoGuan value
  18440. * @property {number} CGPlayerCancelTuoGuan=2034 CGPlayerCancelTuoGuan value
  18441. * @property {number} GCPlayerCancelTuoGuan=2035 GCPlayerCancelTuoGuan value
  18442. * @property {number} GCRoomRoundStartType=2036 GCRoomRoundStartType value
  18443. * @property {number} GCLiuJuType=2037 GCLiuJuType value
  18444. * @property {number} GCLastBroadcastType=2038 GCLastBroadcastType value
  18445. * @property {number} GCPlayerYouType=2039 GCPlayerYouType value
  18446. * @property {number} GCPlayerEmptyBroadcastType=2040 GCPlayerEmptyBroadcastType value
  18447. * @property {number} GCPlayerRemainCardBroadcastType=2041 GCPlayerRemainCardBroadcastType value
  18448. * @property {number} GCPlayerDoubleBroadcastType=2042 GCPlayerDoubleBroadcastType value
  18449. * @property {number} GCTuanTuanZhuanShowCardBroadcastType=2043 GCTuanTuanZhuanShowCardBroadcastType value
  18450. * @property {number} GCOppositePlayerCardType=2044 GCOppositePlayerCardType value
  18451. * @property {number} CGPlayerDoubleType=2047 CGPlayerDoubleType value
  18452. * @property {number} GCPlayerPlayCardBroadcastType=2048 GCPlayerPlayCardBroadcastType value
  18453. * @property {number} GCWaitPlayerDoubleType=2049 GCWaitPlayerDoubleType value
  18454. * @property {number} GCBombDoubleType=2050 GCBombDoubleType value
  18455. * @property {number} GCJieFengBroadcastType=2051 GCJieFengBroadcastType value
  18456. * @property {number} GCStartArrangeCardBroadcastType=2052 GCStartArrangeCardBroadcastType value
  18457. * @property {number} GCEndArrangeCardBroadcastType=2053 GCEndArrangeCardBroadcastType value
  18458. * @property {number} GCRestCardBroadcastType=2054 GCRestCardBroadcastType value
  18459. * @property {number} CGChatType=3001 CGChatType value
  18460. * @property {number} GCChatType=3002 GCChatType value
  18461. * @property {number} GCErrorNoticeType=4001 GCErrorNoticeType value
  18462. * @property {number} GCKickOutReasonType=4002 GCKickOutReasonType value
  18463. */
  18464. messagetype.MessageType = (function() {
  18465. var valuesById = {}, values = Object.create(valuesById);
  18466. values[valuesById[2001] = "CGJoinRoomType"] = 2001;
  18467. values[valuesById[2002] = "GCJoinRoomType"] = 2002;
  18468. values[valuesById[2003] = "GCJoinRoomBroadcastType"] = 2003;
  18469. values[valuesById[2004] = "GCSelectBankerBroadcastType"] = 2004;
  18470. values[valuesById[2005] = "GCDealCardsType"] = 2005;
  18471. values[valuesById[2006] = "CGPlayerPlayCardType"] = 2006;
  18472. values[valuesById[2007] = "GCPlayerPlayCardType"] = 2007;
  18473. values[valuesById[2008] = "GCPlayerOperationsType"] = 2008;
  18474. values[valuesById[2009] = "GCWaitPlayerPlayCardType"] = 2009;
  18475. values[valuesById[2010] = "CGPlayerJinGongType"] = 2010;
  18476. values[valuesById[2011] = "GCPlayerJinGongBroadcastType"] = 2011;
  18477. values[valuesById[2012] = "CGPlayerHuanGongType"] = 2012;
  18478. values[valuesById[2013] = "GCPlayerHuanGongBroadcastType"] = 2013;
  18479. values[valuesById[2014] = "GCPlayerKangGongBroadcastType"] = 2014;
  18480. values[valuesById[2015] = "GCWaitPlayerJinGongBroadcastType"] = 2015;
  18481. values[valuesById[2016] = "GCWaitPlayerHuanGongBroadcastType"] = 2016;
  18482. values[valuesById[2017] = "CGPlayerOperateType"] = 2017;
  18483. values[valuesById[2018] = "GCClearCircleBroadcastType"] = 2018;
  18484. values[valuesById[2019] = "GCClearType"] = 2019;
  18485. values[valuesById[2020] = "GCReconnectPlayerType"] = 2020;
  18486. values[valuesById[2021] = "GCDisconnectPlayerType"] = 2021;
  18487. values[valuesById[2022] = "CGDisconnectPlayerType"] = 2022;
  18488. values[valuesById[2023] = "CGPlayerLeaveType"] = 2023;
  18489. values[valuesById[2024] = "GCPlayerLeaveType"] = 2024;
  18490. values[valuesById[2025] = "CGPlayerStartType"] = 2025;
  18491. values[valuesById[2026] = "GCPlayerStartType"] = 2026;
  18492. values[valuesById[2027] = "CGPlayerDissolveType"] = 2027;
  18493. values[valuesById[2028] = "GCPlayerDissolveType"] = 2028;
  18494. values[valuesById[2029] = "CGPlayerDissolveAgreeType"] = 2029;
  18495. values[valuesById[2030] = "GCPlayerDissolveAgreeType"] = 2030;
  18496. values[valuesById[2031] = "GCTotalSettleType"] = 2031;
  18497. values[valuesById[2032] = "GCPlayerKaiJinType"] = 2032;
  18498. values[valuesById[2033] = "GCPlayerTuoGuan"] = 2033;
  18499. values[valuesById[2034] = "CGPlayerCancelTuoGuan"] = 2034;
  18500. values[valuesById[2035] = "GCPlayerCancelTuoGuan"] = 2035;
  18501. values[valuesById[2036] = "GCRoomRoundStartType"] = 2036;
  18502. values[valuesById[2037] = "GCLiuJuType"] = 2037;
  18503. values[valuesById[2038] = "GCLastBroadcastType"] = 2038;
  18504. values[valuesById[2039] = "GCPlayerYouType"] = 2039;
  18505. values[valuesById[2040] = "GCPlayerEmptyBroadcastType"] = 2040;
  18506. values[valuesById[2041] = "GCPlayerRemainCardBroadcastType"] = 2041;
  18507. values[valuesById[2042] = "GCPlayerDoubleBroadcastType"] = 2042;
  18508. values[valuesById[2043] = "GCTuanTuanZhuanShowCardBroadcastType"] = 2043;
  18509. values[valuesById[2044] = "GCOppositePlayerCardType"] = 2044;
  18510. values[valuesById[2047] = "CGPlayerDoubleType"] = 2047;
  18511. values[valuesById[2048] = "GCPlayerPlayCardBroadcastType"] = 2048;
  18512. values[valuesById[2049] = "GCWaitPlayerDoubleType"] = 2049;
  18513. values[valuesById[2050] = "GCBombDoubleType"] = 2050;
  18514. values[valuesById[2051] = "GCJieFengBroadcastType"] = 2051;
  18515. values[valuesById[2052] = "GCStartArrangeCardBroadcastType"] = 2052;
  18516. values[valuesById[2053] = "GCEndArrangeCardBroadcastType"] = 2053;
  18517. values[valuesById[2054] = "GCRestCardBroadcastType"] = 2054;
  18518. values[valuesById[3001] = "CGChatType"] = 3001;
  18519. values[valuesById[3002] = "GCChatType"] = 3002;
  18520. values[valuesById[4001] = "GCErrorNoticeType"] = 4001;
  18521. values[valuesById[4002] = "GCKickOutReasonType"] = 4002;
  18522. return values;
  18523. })();
  18524. return messagetype;
  18525. })();
  18526. module.exports = $root;