123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737 |
- /*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/
- "use strict";
- var $protobuf = protobuf;
- // Common aliases
- var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;
- // Exported root namespace
- var $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {});
- $root.pb = (function() {
- /**
- * Namespace pb.
- * @exports pb
- * @namespace
- */
- var pb = {};
- pb.Message = (function() {
- /**
- * Properties of a Message.
- * @memberof pb
- * @interface IMessage
- * @property {number} messageType Message messageType
- * @property {guandan.ICGJoinRoom|null} [".guandan.cgJoinRoom"] Message .guandan.cgJoinRoom
- * @property {guandan.IGCJoinRoom|null} [".guandan.gcJoinRoom"] Message .guandan.gcJoinRoom
- * @property {guandan.IGCJoinRoomBroadcast|null} [".guandan.gcJoinRoomBroadcast"] Message .guandan.gcJoinRoomBroadcast
- * @property {guandan.IGCSelectBankerBroadcast|null} [".guandan.gcSelectBankerBroadcast"] Message .guandan.gcSelectBankerBroadcast
- * @property {guandan.IGCDealCards|null} [".guandan.gcDealCards"] Message .guandan.gcDealCards
- * @property {guandan.IGCClearCircleBroadcast|null} [".guandan.gclearCircleBroadcast"] Message .guandan.gclearCircleBroadcast
- * @property {guandan.ICGPlayerPlayCard|null} [".guandan.cgPlayerPlayCard"] Message .guandan.cgPlayerPlayCard
- * @property {guandan.IGCPlayerPlayCard|null} [".guandan.gcPlayerPlayCard"] Message .guandan.gcPlayerPlayCard
- * @property {guandan.IGCPlayerPlayCardBroadcast|null} [".guandan.gcPlayerPlayCardBroadcast"] Message .guandan.gcPlayerPlayCardBroadcast
- * @property {guandan.IGCPlayerOperations|null} [".guandan.gcPlayerOperations"] Message .guandan.gcPlayerOperations
- * @property {guandan.IGCWaitPlayerPlayCard|null} [".guandan.gcWaitPlayerPlayCard"] Message .guandan.gcWaitPlayerPlayCard
- * @property {guandan.IGCWaitPlayerPlayCardBroadcast|null} [".guandan.gcWaitPlayerPlayCardBroadcast"] Message .guandan.gcWaitPlayerPlayCardBroadcast
- * @property {guandan.ICGPlayerJinGong|null} [".guandan.cgPlayerJinGong"] Message .guandan.cgPlayerJinGong
- * @property {guandan.IGCPlayerJinGongBroadcast|null} [".guandan.gcPlayerJinGongBroadcast"] Message .guandan.gcPlayerJinGongBroadcast
- * @property {guandan.ICGPlayerHuanGong|null} [".guandan.cgPlayerHuanGong"] Message .guandan.cgPlayerHuanGong
- * @property {guandan.IGCPlayerHuanGongBroadcast|null} [".guandan.gcPlayerHuanGongBroadcast"] Message .guandan.gcPlayerHuanGongBroadcast
- * @property {guandan.IGCPlayerKangGongBroadcast|null} [".guandan.gcPlayerKangGongBroadcast"] Message .guandan.gcPlayerKangGongBroadcast
- * @property {guandan.IGCWaitPlayerJinGongBroadcast|null} [".guandan.gcWaitPlayerJinGongBroadcast"] Message .guandan.gcWaitPlayerJinGongBroadcast
- * @property {guandan.IGCWaitPlayerHuanGongBroadcast|null} [".guandan.gcWaitPlayerHuanGongBroadcast"] Message .guandan.gcWaitPlayerHuanGongBroadcast
- * @property {guandan.IGCPlayerYou|null} [".guandan.gcPlayerYou"] Message .guandan.gcPlayerYou
- * @property {guandan.IGCPlayerEmptyBroadcast|null} [".guandan.gcPlayerEmptyBroadcast"] Message .guandan.gcPlayerEmptyBroadcast
- * @property {guandan.ICGPlayerOperate|null} [".guandan.cgPlayerOpreate"] Message .guandan.cgPlayerOpreate
- * @property {guandan.IGCClear|null} [".guandan.gcClear"] Message .guandan.gcClear
- * @property {guandan.IGCReconnectPlayer|null} [".guandan.gcReconnectPlayer"] Message .guandan.gcReconnectPlayer
- * @property {guandan.IGCDisconnectPlayer|null} [".guandan.gcDisconnectPlayer"] Message .guandan.gcDisconnectPlayer
- * @property {guandan.ICGPlayerLeave|null} [".guandan.cgPlayerLeave"] Message .guandan.cgPlayerLeave
- * @property {guandan.IGCPlayerLeave|null} [".guandan.gcPlayerLeave"] Message .guandan.gcPlayerLeave
- * @property {guandan.ICGPlayerStart|null} [".guandan.cgPlayerStart"] Message .guandan.cgPlayerStart
- * @property {guandan.IGCLastBroadcast|null} [".guandan.gcLastBroadcast"] Message .guandan.gcLastBroadcast
- * @property {guandan.IGCPlayerStart|null} [".guandan.gcPlayerStart"] Message .guandan.gcPlayerStart
- * @property {guandan.ICGPlayerDissolve|null} [".guandan.cgPlayerDissolve"] Message .guandan.cgPlayerDissolve
- * @property {guandan.IGCPlayerDissolve|null} [".guandan.gcPlayerDissolve"] Message .guandan.gcPlayerDissolve
- * @property {guandan.ICGPlayerDissolveAgree|null} [".guandan.cgPlayerDissolveAgree"] Message .guandan.cgPlayerDissolveAgree
- * @property {guandan.IGCPlayerDissolveAgree|null} [".guandan.gcPlayerDissolveAgree"] Message .guandan.gcPlayerDissolveAgree
- * @property {guandan.IGCLiuJu|null} [".guandan.gcLiuJu"] Message .guandan.gcLiuJu
- * @property {guandan.IGCTotalSettle|null} [".guandan.gcTotalSettle"] Message .guandan.gcTotalSettle
- * @property {guandan.IGCKaiJin|null} [".guandan.gcKaiJin"] Message .guandan.gcKaiJin
- * @property {guandan.ICGDisconnectPlayer|null} [".guandan.cgDisconnectPlayer"] Message .guandan.cgDisconnectPlayer
- * @property {guandan.IGCPlayerTuoGuan|null} [".guandan.gcPlayerTuoGuan"] Message .guandan.gcPlayerTuoGuan
- * @property {guandan.ICGPlayerCancelTuoGuan|null} [".guandan.cgPlayerCancelTuoGuan"] Message .guandan.cgPlayerCancelTuoGuan
- * @property {guandan.IGCPlayerCancelTuoGuan|null} [".guandan.gcPlayerCancelTuoGuan"] Message .guandan.gcPlayerCancelTuoGuan
- * @property {guandan.IGCRoomRoundStart|null} [".guandan.gcRoomRoundStart"] Message .guandan.gcRoomRoundStart
- * @property {guandan.IGCPlayerRemainCardBroadcast|null} [".guandan.gcPlayerRemainCardBroadcast"] Message .guandan.gcPlayerRemainCardBroadcast
- * @property {guandan.IGCPlayerDoubleBroadcast|null} [".guandan.gcPlayerDoubleBroadcast"] Message .guandan.gcPlayerDoubleBroadcast
- * @property {guandan.IGCTuanTuanZhuanShowCardBroadcast|null} [".guandan.gcTuanTuanZhuanShowCardBroadcast"] Message .guandan.gcTuanTuanZhuanShowCardBroadcast
- * @property {guandan.IGCOppositePlayerCard|null} [".guandan.gcOppositePlayerCard"] Message .guandan.gcOppositePlayerCard
- * @property {guandan.ICGPlayerDouble|null} [".guandan.cgPlayerDouble"] Message .guandan.cgPlayerDouble
- * @property {guandan.IGCWaitPlayerDouble|null} [".guandan.gcWaitPlayerDouble"] Message .guandan.gcWaitPlayerDouble
- * @property {guandan.IGCBombDoubleBroadcast|null} [".guandan.gcBombDoubleBroadcast"] Message .guandan.gcBombDoubleBroadcast
- * @property {guandan.IGCJieFengBroadcast|null} [".guandan.gcJieFengBroadcast"] Message .guandan.gcJieFengBroadcast
- * @property {guandan.IGCStartArrangeCardBroadcast|null} [".guandan.gcStartArrangeCardBroadcast"] Message .guandan.gcStartArrangeCardBroadcast
- * @property {guandan.IGCEndArrangeCardBroadcast|null} [".guandan.gcEndArrangeCardBroadcast"] Message .guandan.gcEndArrangeCardBroadcast
- * @property {guandan.IGCRestCardBroadcast|null} [".guandan.gcRestCardBroadcast"] Message .guandan.gcRestCardBroadcast
- * @property {guandan.ICGChat|null} [".guandan.cgChat"] Message .guandan.cgChat
- * @property {guandan.IGCChat|null} [".guandan.gcChat"] Message .guandan.gcChat
- * @property {guandan.IGCErrorNotice|null} [".guandan.gcErrorNotice"] Message .guandan.gcErrorNotice
- * @property {guandan.IGCKickOutReason|null} [".guandan.gcKickOutReason"] Message .guandan.gcKickOutReason
- * @property {pb.ICGLogin|null} [".pb.cgLogin"] Message .pb.cgLogin
- * @property {pb.IGCLogin|null} [".pb.gcLogin"] Message .pb.gcLogin
- * @property {pb.ICGPing|null} [".pb.cgPing"] Message .pb.cgPing
- * @property {pb.IGCPing|null} [".pb.gcPing"] Message .pb.gcPing
- */
- /**
- * Constructs a new Message.
- * @memberof pb
- * @classdesc Represents a Message.
- * @implements IMessage
- * @constructor
- * @param {pb.IMessage=} [properties] Properties to set
- */
- function Message(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Message messageType.
- * @member {number} messageType
- * @memberof pb.Message
- * @instance
- */
- Message.prototype.messageType = 0;
- /**
- * Message .guandan.cgJoinRoom.
- * @member {guandan.ICGJoinRoom|null|undefined} .guandan.cgJoinRoom
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.cgJoinRoom"] = null;
- /**
- * Message .guandan.gcJoinRoom.
- * @member {guandan.IGCJoinRoom|null|undefined} .guandan.gcJoinRoom
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcJoinRoom"] = null;
- /**
- * Message .guandan.gcJoinRoomBroadcast.
- * @member {guandan.IGCJoinRoomBroadcast|null|undefined} .guandan.gcJoinRoomBroadcast
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcJoinRoomBroadcast"] = null;
- /**
- * Message .guandan.gcSelectBankerBroadcast.
- * @member {guandan.IGCSelectBankerBroadcast|null|undefined} .guandan.gcSelectBankerBroadcast
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcSelectBankerBroadcast"] = null;
- /**
- * Message .guandan.gcDealCards.
- * @member {guandan.IGCDealCards|null|undefined} .guandan.gcDealCards
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcDealCards"] = null;
- /**
- * Message .guandan.gclearCircleBroadcast.
- * @member {guandan.IGCClearCircleBroadcast|null|undefined} .guandan.gclearCircleBroadcast
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gclearCircleBroadcast"] = null;
- /**
- * Message .guandan.cgPlayerPlayCard.
- * @member {guandan.ICGPlayerPlayCard|null|undefined} .guandan.cgPlayerPlayCard
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.cgPlayerPlayCard"] = null;
- /**
- * Message .guandan.gcPlayerPlayCard.
- * @member {guandan.IGCPlayerPlayCard|null|undefined} .guandan.gcPlayerPlayCard
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcPlayerPlayCard"] = null;
- /**
- * Message .guandan.gcPlayerPlayCardBroadcast.
- * @member {guandan.IGCPlayerPlayCardBroadcast|null|undefined} .guandan.gcPlayerPlayCardBroadcast
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcPlayerPlayCardBroadcast"] = null;
- /**
- * Message .guandan.gcPlayerOperations.
- * @member {guandan.IGCPlayerOperations|null|undefined} .guandan.gcPlayerOperations
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcPlayerOperations"] = null;
- /**
- * Message .guandan.gcWaitPlayerPlayCard.
- * @member {guandan.IGCWaitPlayerPlayCard|null|undefined} .guandan.gcWaitPlayerPlayCard
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcWaitPlayerPlayCard"] = null;
- /**
- * Message .guandan.gcWaitPlayerPlayCardBroadcast.
- * @member {guandan.IGCWaitPlayerPlayCardBroadcast|null|undefined} .guandan.gcWaitPlayerPlayCardBroadcast
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcWaitPlayerPlayCardBroadcast"] = null;
- /**
- * Message .guandan.cgPlayerJinGong.
- * @member {guandan.ICGPlayerJinGong|null|undefined} .guandan.cgPlayerJinGong
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.cgPlayerJinGong"] = null;
- /**
- * Message .guandan.gcPlayerJinGongBroadcast.
- * @member {guandan.IGCPlayerJinGongBroadcast|null|undefined} .guandan.gcPlayerJinGongBroadcast
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcPlayerJinGongBroadcast"] = null;
- /**
- * Message .guandan.cgPlayerHuanGong.
- * @member {guandan.ICGPlayerHuanGong|null|undefined} .guandan.cgPlayerHuanGong
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.cgPlayerHuanGong"] = null;
- /**
- * Message .guandan.gcPlayerHuanGongBroadcast.
- * @member {guandan.IGCPlayerHuanGongBroadcast|null|undefined} .guandan.gcPlayerHuanGongBroadcast
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcPlayerHuanGongBroadcast"] = null;
- /**
- * Message .guandan.gcPlayerKangGongBroadcast.
- * @member {guandan.IGCPlayerKangGongBroadcast|null|undefined} .guandan.gcPlayerKangGongBroadcast
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcPlayerKangGongBroadcast"] = null;
- /**
- * Message .guandan.gcWaitPlayerJinGongBroadcast.
- * @member {guandan.IGCWaitPlayerJinGongBroadcast|null|undefined} .guandan.gcWaitPlayerJinGongBroadcast
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcWaitPlayerJinGongBroadcast"] = null;
- /**
- * Message .guandan.gcWaitPlayerHuanGongBroadcast.
- * @member {guandan.IGCWaitPlayerHuanGongBroadcast|null|undefined} .guandan.gcWaitPlayerHuanGongBroadcast
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcWaitPlayerHuanGongBroadcast"] = null;
- /**
- * Message .guandan.gcPlayerYou.
- * @member {guandan.IGCPlayerYou|null|undefined} .guandan.gcPlayerYou
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcPlayerYou"] = null;
- /**
- * Message .guandan.gcPlayerEmptyBroadcast.
- * @member {guandan.IGCPlayerEmptyBroadcast|null|undefined} .guandan.gcPlayerEmptyBroadcast
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcPlayerEmptyBroadcast"] = null;
- /**
- * Message .guandan.cgPlayerOpreate.
- * @member {guandan.ICGPlayerOperate|null|undefined} .guandan.cgPlayerOpreate
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.cgPlayerOpreate"] = null;
- /**
- * Message .guandan.gcClear.
- * @member {guandan.IGCClear|null|undefined} .guandan.gcClear
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcClear"] = null;
- /**
- * Message .guandan.gcReconnectPlayer.
- * @member {guandan.IGCReconnectPlayer|null|undefined} .guandan.gcReconnectPlayer
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcReconnectPlayer"] = null;
- /**
- * Message .guandan.gcDisconnectPlayer.
- * @member {guandan.IGCDisconnectPlayer|null|undefined} .guandan.gcDisconnectPlayer
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcDisconnectPlayer"] = null;
- /**
- * Message .guandan.cgPlayerLeave.
- * @member {guandan.ICGPlayerLeave|null|undefined} .guandan.cgPlayerLeave
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.cgPlayerLeave"] = null;
- /**
- * Message .guandan.gcPlayerLeave.
- * @member {guandan.IGCPlayerLeave|null|undefined} .guandan.gcPlayerLeave
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcPlayerLeave"] = null;
- /**
- * Message .guandan.cgPlayerStart.
- * @member {guandan.ICGPlayerStart|null|undefined} .guandan.cgPlayerStart
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.cgPlayerStart"] = null;
- /**
- * Message .guandan.gcLastBroadcast.
- * @member {guandan.IGCLastBroadcast|null|undefined} .guandan.gcLastBroadcast
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcLastBroadcast"] = null;
- /**
- * Message .guandan.gcPlayerStart.
- * @member {guandan.IGCPlayerStart|null|undefined} .guandan.gcPlayerStart
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcPlayerStart"] = null;
- /**
- * Message .guandan.cgPlayerDissolve.
- * @member {guandan.ICGPlayerDissolve|null|undefined} .guandan.cgPlayerDissolve
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.cgPlayerDissolve"] = null;
- /**
- * Message .guandan.gcPlayerDissolve.
- * @member {guandan.IGCPlayerDissolve|null|undefined} .guandan.gcPlayerDissolve
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcPlayerDissolve"] = null;
- /**
- * Message .guandan.cgPlayerDissolveAgree.
- * @member {guandan.ICGPlayerDissolveAgree|null|undefined} .guandan.cgPlayerDissolveAgree
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.cgPlayerDissolveAgree"] = null;
- /**
- * Message .guandan.gcPlayerDissolveAgree.
- * @member {guandan.IGCPlayerDissolveAgree|null|undefined} .guandan.gcPlayerDissolveAgree
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcPlayerDissolveAgree"] = null;
- /**
- * Message .guandan.gcLiuJu.
- * @member {guandan.IGCLiuJu|null|undefined} .guandan.gcLiuJu
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcLiuJu"] = null;
- /**
- * Message .guandan.gcTotalSettle.
- * @member {guandan.IGCTotalSettle|null|undefined} .guandan.gcTotalSettle
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcTotalSettle"] = null;
- /**
- * Message .guandan.gcKaiJin.
- * @member {guandan.IGCKaiJin|null|undefined} .guandan.gcKaiJin
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcKaiJin"] = null;
- /**
- * Message .guandan.cgDisconnectPlayer.
- * @member {guandan.ICGDisconnectPlayer|null|undefined} .guandan.cgDisconnectPlayer
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.cgDisconnectPlayer"] = null;
- /**
- * Message .guandan.gcPlayerTuoGuan.
- * @member {guandan.IGCPlayerTuoGuan|null|undefined} .guandan.gcPlayerTuoGuan
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcPlayerTuoGuan"] = null;
- /**
- * Message .guandan.cgPlayerCancelTuoGuan.
- * @member {guandan.ICGPlayerCancelTuoGuan|null|undefined} .guandan.cgPlayerCancelTuoGuan
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.cgPlayerCancelTuoGuan"] = null;
- /**
- * Message .guandan.gcPlayerCancelTuoGuan.
- * @member {guandan.IGCPlayerCancelTuoGuan|null|undefined} .guandan.gcPlayerCancelTuoGuan
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcPlayerCancelTuoGuan"] = null;
- /**
- * Message .guandan.gcRoomRoundStart.
- * @member {guandan.IGCRoomRoundStart|null|undefined} .guandan.gcRoomRoundStart
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcRoomRoundStart"] = null;
- /**
- * Message .guandan.gcPlayerRemainCardBroadcast.
- * @member {guandan.IGCPlayerRemainCardBroadcast|null|undefined} .guandan.gcPlayerRemainCardBroadcast
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcPlayerRemainCardBroadcast"] = null;
- /**
- * Message .guandan.gcPlayerDoubleBroadcast.
- * @member {guandan.IGCPlayerDoubleBroadcast|null|undefined} .guandan.gcPlayerDoubleBroadcast
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcPlayerDoubleBroadcast"] = null;
- /**
- * Message .guandan.gcTuanTuanZhuanShowCardBroadcast.
- * @member {guandan.IGCTuanTuanZhuanShowCardBroadcast|null|undefined} .guandan.gcTuanTuanZhuanShowCardBroadcast
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcTuanTuanZhuanShowCardBroadcast"] = null;
- /**
- * Message .guandan.gcOppositePlayerCard.
- * @member {guandan.IGCOppositePlayerCard|null|undefined} .guandan.gcOppositePlayerCard
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcOppositePlayerCard"] = null;
- /**
- * Message .guandan.cgPlayerDouble.
- * @member {guandan.ICGPlayerDouble|null|undefined} .guandan.cgPlayerDouble
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.cgPlayerDouble"] = null;
- /**
- * Message .guandan.gcWaitPlayerDouble.
- * @member {guandan.IGCWaitPlayerDouble|null|undefined} .guandan.gcWaitPlayerDouble
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcWaitPlayerDouble"] = null;
- /**
- * Message .guandan.gcBombDoubleBroadcast.
- * @member {guandan.IGCBombDoubleBroadcast|null|undefined} .guandan.gcBombDoubleBroadcast
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcBombDoubleBroadcast"] = null;
- /**
- * Message .guandan.gcJieFengBroadcast.
- * @member {guandan.IGCJieFengBroadcast|null|undefined} .guandan.gcJieFengBroadcast
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcJieFengBroadcast"] = null;
- /**
- * Message .guandan.gcStartArrangeCardBroadcast.
- * @member {guandan.IGCStartArrangeCardBroadcast|null|undefined} .guandan.gcStartArrangeCardBroadcast
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcStartArrangeCardBroadcast"] = null;
- /**
- * Message .guandan.gcEndArrangeCardBroadcast.
- * @member {guandan.IGCEndArrangeCardBroadcast|null|undefined} .guandan.gcEndArrangeCardBroadcast
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcEndArrangeCardBroadcast"] = null;
- /**
- * Message .guandan.gcRestCardBroadcast.
- * @member {guandan.IGCRestCardBroadcast|null|undefined} .guandan.gcRestCardBroadcast
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcRestCardBroadcast"] = null;
- /**
- * Message .guandan.cgChat.
- * @member {guandan.ICGChat|null|undefined} .guandan.cgChat
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.cgChat"] = null;
- /**
- * Message .guandan.gcChat.
- * @member {guandan.IGCChat|null|undefined} .guandan.gcChat
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcChat"] = null;
- /**
- * Message .guandan.gcErrorNotice.
- * @member {guandan.IGCErrorNotice|null|undefined} .guandan.gcErrorNotice
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcErrorNotice"] = null;
- /**
- * Message .guandan.gcKickOutReason.
- * @member {guandan.IGCKickOutReason|null|undefined} .guandan.gcKickOutReason
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".guandan.gcKickOutReason"] = null;
- /**
- * Message .pb.cgLogin.
- * @member {pb.ICGLogin|null|undefined} .pb.cgLogin
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".pb.cgLogin"] = null;
- /**
- * Message .pb.gcLogin.
- * @member {pb.IGCLogin|null|undefined} .pb.gcLogin
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".pb.gcLogin"] = null;
- /**
- * Message .pb.cgPing.
- * @member {pb.ICGPing|null|undefined} .pb.cgPing
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".pb.cgPing"] = null;
- /**
- * Message .pb.gcPing.
- * @member {pb.IGCPing|null|undefined} .pb.gcPing
- * @memberof pb.Message
- * @instance
- */
- Message.prototype[".pb.gcPing"] = null;
- /**
- * Creates a new Message instance using the specified properties.
- * @function create
- * @memberof pb.Message
- * @static
- * @param {pb.IMessage=} [properties] Properties to set
- * @returns {pb.Message} Message instance
- */
- Message.create = function create(properties) {
- return new Message(properties);
- };
- /**
- * Encodes the specified Message message. Does not implicitly {@link pb.Message.verify|verify} messages.
- * @function encode
- * @memberof pb.Message
- * @static
- * @param {pb.IMessage} message Message message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- Message.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int32(message.messageType);
- if (message[".pb.cgLogin"] != null && Object.hasOwnProperty.call(message, ".pb.cgLogin"))
- $root.pb.CGLogin.encode(message[".pb.cgLogin"], writer.uint32(/* id 101, wireType 2 =*/810).fork()).ldelim();
- if (message[".pb.gcLogin"] != null && Object.hasOwnProperty.call(message, ".pb.gcLogin"))
- $root.pb.GCLogin.encode(message[".pb.gcLogin"], writer.uint32(/* id 102, wireType 2 =*/818).fork()).ldelim();
- if (message[".pb.cgPing"] != null && Object.hasOwnProperty.call(message, ".pb.cgPing"))
- $root.pb.CGPing.encode(message[".pb.cgPing"], writer.uint32(/* id 103, wireType 2 =*/826).fork()).ldelim();
- if (message[".pb.gcPing"] != null && Object.hasOwnProperty.call(message, ".pb.gcPing"))
- $root.pb.GCPing.encode(message[".pb.gcPing"], writer.uint32(/* id 104, wireType 2 =*/834).fork()).ldelim();
- if (message[".guandan.cgJoinRoom"] != null && Object.hasOwnProperty.call(message, ".guandan.cgJoinRoom"))
- $root.guandan.CGJoinRoom.encode(message[".guandan.cgJoinRoom"], writer.uint32(/* id 2001, wireType 2 =*/16010).fork()).ldelim();
- if (message[".guandan.gcJoinRoom"] != null && Object.hasOwnProperty.call(message, ".guandan.gcJoinRoom"))
- $root.guandan.GCJoinRoom.encode(message[".guandan.gcJoinRoom"], writer.uint32(/* id 2002, wireType 2 =*/16018).fork()).ldelim();
- if (message[".guandan.gcJoinRoomBroadcast"] != null && Object.hasOwnProperty.call(message, ".guandan.gcJoinRoomBroadcast"))
- $root.guandan.GCJoinRoomBroadcast.encode(message[".guandan.gcJoinRoomBroadcast"], writer.uint32(/* id 2003, wireType 2 =*/16026).fork()).ldelim();
- if (message[".guandan.gcSelectBankerBroadcast"] != null && Object.hasOwnProperty.call(message, ".guandan.gcSelectBankerBroadcast"))
- $root.guandan.GCSelectBankerBroadcast.encode(message[".guandan.gcSelectBankerBroadcast"], writer.uint32(/* id 2004, wireType 2 =*/16034).fork()).ldelim();
- if (message[".guandan.gcDealCards"] != null && Object.hasOwnProperty.call(message, ".guandan.gcDealCards"))
- $root.guandan.GCDealCards.encode(message[".guandan.gcDealCards"], writer.uint32(/* id 2005, wireType 2 =*/16042).fork()).ldelim();
- if (message[".guandan.gclearCircleBroadcast"] != null && Object.hasOwnProperty.call(message, ".guandan.gclearCircleBroadcast"))
- $root.guandan.GCClearCircleBroadcast.encode(message[".guandan.gclearCircleBroadcast"], writer.uint32(/* id 2006, wireType 2 =*/16050).fork()).ldelim();
- if (message[".guandan.cgPlayerPlayCard"] != null && Object.hasOwnProperty.call(message, ".guandan.cgPlayerPlayCard"))
- $root.guandan.CGPlayerPlayCard.encode(message[".guandan.cgPlayerPlayCard"], writer.uint32(/* id 2007, wireType 2 =*/16058).fork()).ldelim();
- if (message[".guandan.gcPlayerPlayCard"] != null && Object.hasOwnProperty.call(message, ".guandan.gcPlayerPlayCard"))
- $root.guandan.GCPlayerPlayCard.encode(message[".guandan.gcPlayerPlayCard"], writer.uint32(/* id 2008, wireType 2 =*/16066).fork()).ldelim();
- if (message[".guandan.gcPlayerOperations"] != null && Object.hasOwnProperty.call(message, ".guandan.gcPlayerOperations"))
- $root.guandan.GCPlayerOperations.encode(message[".guandan.gcPlayerOperations"], writer.uint32(/* id 2009, wireType 2 =*/16074).fork()).ldelim();
- if (message[".guandan.gcWaitPlayerPlayCard"] != null && Object.hasOwnProperty.call(message, ".guandan.gcWaitPlayerPlayCard"))
- $root.guandan.GCWaitPlayerPlayCard.encode(message[".guandan.gcWaitPlayerPlayCard"], writer.uint32(/* id 2010, wireType 2 =*/16082).fork()).ldelim();
- if (message[".guandan.gcWaitPlayerPlayCardBroadcast"] != null && Object.hasOwnProperty.call(message, ".guandan.gcWaitPlayerPlayCardBroadcast"))
- $root.guandan.GCWaitPlayerPlayCardBroadcast.encode(message[".guandan.gcWaitPlayerPlayCardBroadcast"], writer.uint32(/* id 2011, wireType 2 =*/16090).fork()).ldelim();
- if (message[".guandan.cgPlayerJinGong"] != null && Object.hasOwnProperty.call(message, ".guandan.cgPlayerJinGong"))
- $root.guandan.CGPlayerJinGong.encode(message[".guandan.cgPlayerJinGong"], writer.uint32(/* id 2012, wireType 2 =*/16098).fork()).ldelim();
- if (message[".guandan.gcPlayerJinGongBroadcast"] != null && Object.hasOwnProperty.call(message, ".guandan.gcPlayerJinGongBroadcast"))
- $root.guandan.GCPlayerJinGongBroadcast.encode(message[".guandan.gcPlayerJinGongBroadcast"], writer.uint32(/* id 2013, wireType 2 =*/16106).fork()).ldelim();
- if (message[".guandan.cgPlayerHuanGong"] != null && Object.hasOwnProperty.call(message, ".guandan.cgPlayerHuanGong"))
- $root.guandan.CGPlayerHuanGong.encode(message[".guandan.cgPlayerHuanGong"], writer.uint32(/* id 2014, wireType 2 =*/16114).fork()).ldelim();
- if (message[".guandan.gcPlayerHuanGongBroadcast"] != null && Object.hasOwnProperty.call(message, ".guandan.gcPlayerHuanGongBroadcast"))
- $root.guandan.GCPlayerHuanGongBroadcast.encode(message[".guandan.gcPlayerHuanGongBroadcast"], writer.uint32(/* id 2015, wireType 2 =*/16122).fork()).ldelim();
- if (message[".guandan.gcPlayerKangGongBroadcast"] != null && Object.hasOwnProperty.call(message, ".guandan.gcPlayerKangGongBroadcast"))
- $root.guandan.GCPlayerKangGongBroadcast.encode(message[".guandan.gcPlayerKangGongBroadcast"], writer.uint32(/* id 2016, wireType 2 =*/16130).fork()).ldelim();
- if (message[".guandan.gcWaitPlayerJinGongBroadcast"] != null && Object.hasOwnProperty.call(message, ".guandan.gcWaitPlayerJinGongBroadcast"))
- $root.guandan.GCWaitPlayerJinGongBroadcast.encode(message[".guandan.gcWaitPlayerJinGongBroadcast"], writer.uint32(/* id 2017, wireType 2 =*/16138).fork()).ldelim();
- if (message[".guandan.gcWaitPlayerHuanGongBroadcast"] != null && Object.hasOwnProperty.call(message, ".guandan.gcWaitPlayerHuanGongBroadcast"))
- $root.guandan.GCWaitPlayerHuanGongBroadcast.encode(message[".guandan.gcWaitPlayerHuanGongBroadcast"], writer.uint32(/* id 2018, wireType 2 =*/16146).fork()).ldelim();
- if (message[".guandan.gcPlayerYou"] != null && Object.hasOwnProperty.call(message, ".guandan.gcPlayerYou"))
- $root.guandan.GCPlayerYou.encode(message[".guandan.gcPlayerYou"], writer.uint32(/* id 2019, wireType 2 =*/16154).fork()).ldelim();
- if (message[".guandan.gcPlayerEmptyBroadcast"] != null && Object.hasOwnProperty.call(message, ".guandan.gcPlayerEmptyBroadcast"))
- $root.guandan.GCPlayerEmptyBroadcast.encode(message[".guandan.gcPlayerEmptyBroadcast"], writer.uint32(/* id 2020, wireType 2 =*/16162).fork()).ldelim();
- if (message[".guandan.cgPlayerOpreate"] != null && Object.hasOwnProperty.call(message, ".guandan.cgPlayerOpreate"))
- $root.guandan.CGPlayerOperate.encode(message[".guandan.cgPlayerOpreate"], writer.uint32(/* id 2021, wireType 2 =*/16170).fork()).ldelim();
- if (message[".guandan.gcClear"] != null && Object.hasOwnProperty.call(message, ".guandan.gcClear"))
- $root.guandan.GCClear.encode(message[".guandan.gcClear"], writer.uint32(/* id 2022, wireType 2 =*/16178).fork()).ldelim();
- if (message[".guandan.gcReconnectPlayer"] != null && Object.hasOwnProperty.call(message, ".guandan.gcReconnectPlayer"))
- $root.guandan.GCReconnectPlayer.encode(message[".guandan.gcReconnectPlayer"], writer.uint32(/* id 2023, wireType 2 =*/16186).fork()).ldelim();
- if (message[".guandan.gcDisconnectPlayer"] != null && Object.hasOwnProperty.call(message, ".guandan.gcDisconnectPlayer"))
- $root.guandan.GCDisconnectPlayer.encode(message[".guandan.gcDisconnectPlayer"], writer.uint32(/* id 2024, wireType 2 =*/16194).fork()).ldelim();
- if (message[".guandan.cgPlayerLeave"] != null && Object.hasOwnProperty.call(message, ".guandan.cgPlayerLeave"))
- $root.guandan.CGPlayerLeave.encode(message[".guandan.cgPlayerLeave"], writer.uint32(/* id 2025, wireType 2 =*/16202).fork()).ldelim();
- if (message[".guandan.gcPlayerLeave"] != null && Object.hasOwnProperty.call(message, ".guandan.gcPlayerLeave"))
- $root.guandan.GCPlayerLeave.encode(message[".guandan.gcPlayerLeave"], writer.uint32(/* id 2026, wireType 2 =*/16210).fork()).ldelim();
- if (message[".guandan.cgPlayerStart"] != null && Object.hasOwnProperty.call(message, ".guandan.cgPlayerStart"))
- $root.guandan.CGPlayerStart.encode(message[".guandan.cgPlayerStart"], writer.uint32(/* id 2027, wireType 2 =*/16218).fork()).ldelim();
- if (message[".guandan.gcLastBroadcast"] != null && Object.hasOwnProperty.call(message, ".guandan.gcLastBroadcast"))
- $root.guandan.GCLastBroadcast.encode(message[".guandan.gcLastBroadcast"], writer.uint32(/* id 2028, wireType 2 =*/16226).fork()).ldelim();
- if (message[".guandan.gcPlayerStart"] != null && Object.hasOwnProperty.call(message, ".guandan.gcPlayerStart"))
- $root.guandan.GCPlayerStart.encode(message[".guandan.gcPlayerStart"], writer.uint32(/* id 2029, wireType 2 =*/16234).fork()).ldelim();
- if (message[".guandan.cgPlayerDissolve"] != null && Object.hasOwnProperty.call(message, ".guandan.cgPlayerDissolve"))
- $root.guandan.CGPlayerDissolve.encode(message[".guandan.cgPlayerDissolve"], writer.uint32(/* id 2030, wireType 2 =*/16242).fork()).ldelim();
- if (message[".guandan.gcPlayerDissolve"] != null && Object.hasOwnProperty.call(message, ".guandan.gcPlayerDissolve"))
- $root.guandan.GCPlayerDissolve.encode(message[".guandan.gcPlayerDissolve"], writer.uint32(/* id 2031, wireType 2 =*/16250).fork()).ldelim();
- if (message[".guandan.cgPlayerDissolveAgree"] != null && Object.hasOwnProperty.call(message, ".guandan.cgPlayerDissolveAgree"))
- $root.guandan.CGPlayerDissolveAgree.encode(message[".guandan.cgPlayerDissolveAgree"], writer.uint32(/* id 2032, wireType 2 =*/16258).fork()).ldelim();
- if (message[".guandan.gcPlayerDissolveAgree"] != null && Object.hasOwnProperty.call(message, ".guandan.gcPlayerDissolveAgree"))
- $root.guandan.GCPlayerDissolveAgree.encode(message[".guandan.gcPlayerDissolveAgree"], writer.uint32(/* id 2033, wireType 2 =*/16266).fork()).ldelim();
- if (message[".guandan.gcLiuJu"] != null && Object.hasOwnProperty.call(message, ".guandan.gcLiuJu"))
- $root.guandan.GCLiuJu.encode(message[".guandan.gcLiuJu"], writer.uint32(/* id 2034, wireType 2 =*/16274).fork()).ldelim();
- if (message[".guandan.gcTotalSettle"] != null && Object.hasOwnProperty.call(message, ".guandan.gcTotalSettle"))
- $root.guandan.GCTotalSettle.encode(message[".guandan.gcTotalSettle"], writer.uint32(/* id 2035, wireType 2 =*/16282).fork()).ldelim();
- if (message[".guandan.gcKaiJin"] != null && Object.hasOwnProperty.call(message, ".guandan.gcKaiJin"))
- $root.guandan.GCKaiJin.encode(message[".guandan.gcKaiJin"], writer.uint32(/* id 2036, wireType 2 =*/16290).fork()).ldelim();
- if (message[".guandan.cgDisconnectPlayer"] != null && Object.hasOwnProperty.call(message, ".guandan.cgDisconnectPlayer"))
- $root.guandan.CGDisconnectPlayer.encode(message[".guandan.cgDisconnectPlayer"], writer.uint32(/* id 2037, wireType 2 =*/16298).fork()).ldelim();
- if (message[".guandan.gcPlayerTuoGuan"] != null && Object.hasOwnProperty.call(message, ".guandan.gcPlayerTuoGuan"))
- $root.guandan.GCPlayerTuoGuan.encode(message[".guandan.gcPlayerTuoGuan"], writer.uint32(/* id 2038, wireType 2 =*/16306).fork()).ldelim();
- if (message[".guandan.cgPlayerCancelTuoGuan"] != null && Object.hasOwnProperty.call(message, ".guandan.cgPlayerCancelTuoGuan"))
- $root.guandan.CGPlayerCancelTuoGuan.encode(message[".guandan.cgPlayerCancelTuoGuan"], writer.uint32(/* id 2039, wireType 2 =*/16314).fork()).ldelim();
- if (message[".guandan.gcPlayerCancelTuoGuan"] != null && Object.hasOwnProperty.call(message, ".guandan.gcPlayerCancelTuoGuan"))
- $root.guandan.GCPlayerCancelTuoGuan.encode(message[".guandan.gcPlayerCancelTuoGuan"], writer.uint32(/* id 2040, wireType 2 =*/16322).fork()).ldelim();
- if (message[".guandan.gcRoomRoundStart"] != null && Object.hasOwnProperty.call(message, ".guandan.gcRoomRoundStart"))
- $root.guandan.GCRoomRoundStart.encode(message[".guandan.gcRoomRoundStart"], writer.uint32(/* id 2041, wireType 2 =*/16330).fork()).ldelim();
- if (message[".guandan.gcPlayerRemainCardBroadcast"] != null && Object.hasOwnProperty.call(message, ".guandan.gcPlayerRemainCardBroadcast"))
- $root.guandan.GCPlayerRemainCardBroadcast.encode(message[".guandan.gcPlayerRemainCardBroadcast"], writer.uint32(/* id 2042, wireType 2 =*/16338).fork()).ldelim();
- if (message[".guandan.gcPlayerDoubleBroadcast"] != null && Object.hasOwnProperty.call(message, ".guandan.gcPlayerDoubleBroadcast"))
- $root.guandan.GCPlayerDoubleBroadcast.encode(message[".guandan.gcPlayerDoubleBroadcast"], writer.uint32(/* id 2043, wireType 2 =*/16346).fork()).ldelim();
- if (message[".guandan.gcTuanTuanZhuanShowCardBroadcast"] != null && Object.hasOwnProperty.call(message, ".guandan.gcTuanTuanZhuanShowCardBroadcast"))
- $root.guandan.GCTuanTuanZhuanShowCardBroadcast.encode(message[".guandan.gcTuanTuanZhuanShowCardBroadcast"], writer.uint32(/* id 2044, wireType 2 =*/16354).fork()).ldelim();
- if (message[".guandan.gcOppositePlayerCard"] != null && Object.hasOwnProperty.call(message, ".guandan.gcOppositePlayerCard"))
- $root.guandan.GCOppositePlayerCard.encode(message[".guandan.gcOppositePlayerCard"], writer.uint32(/* id 2045, wireType 2 =*/16362).fork()).ldelim();
- if (message[".guandan.cgPlayerDouble"] != null && Object.hasOwnProperty.call(message, ".guandan.cgPlayerDouble"))
- $root.guandan.CGPlayerDouble.encode(message[".guandan.cgPlayerDouble"], writer.uint32(/* id 2046, wireType 2 =*/16370).fork()).ldelim();
- if (message[".guandan.gcPlayerPlayCardBroadcast"] != null && Object.hasOwnProperty.call(message, ".guandan.gcPlayerPlayCardBroadcast"))
- $root.guandan.GCPlayerPlayCardBroadcast.encode(message[".guandan.gcPlayerPlayCardBroadcast"], writer.uint32(/* id 2047, wireType 2 =*/16378).fork()).ldelim();
- if (message[".guandan.gcWaitPlayerDouble"] != null && Object.hasOwnProperty.call(message, ".guandan.gcWaitPlayerDouble"))
- $root.guandan.GCWaitPlayerDouble.encode(message[".guandan.gcWaitPlayerDouble"], writer.uint32(/* id 2048, wireType 2 =*/16386).fork()).ldelim();
- if (message[".guandan.gcBombDoubleBroadcast"] != null && Object.hasOwnProperty.call(message, ".guandan.gcBombDoubleBroadcast"))
- $root.guandan.GCBombDoubleBroadcast.encode(message[".guandan.gcBombDoubleBroadcast"], writer.uint32(/* id 2050, wireType 2 =*/16402).fork()).ldelim();
- if (message[".guandan.gcJieFengBroadcast"] != null && Object.hasOwnProperty.call(message, ".guandan.gcJieFengBroadcast"))
- $root.guandan.GCJieFengBroadcast.encode(message[".guandan.gcJieFengBroadcast"], writer.uint32(/* id 2051, wireType 2 =*/16410).fork()).ldelim();
- if (message[".guandan.gcStartArrangeCardBroadcast"] != null && Object.hasOwnProperty.call(message, ".guandan.gcStartArrangeCardBroadcast"))
- $root.guandan.GCStartArrangeCardBroadcast.encode(message[".guandan.gcStartArrangeCardBroadcast"], writer.uint32(/* id 2052, wireType 2 =*/16418).fork()).ldelim();
- if (message[".guandan.gcEndArrangeCardBroadcast"] != null && Object.hasOwnProperty.call(message, ".guandan.gcEndArrangeCardBroadcast"))
- $root.guandan.GCEndArrangeCardBroadcast.encode(message[".guandan.gcEndArrangeCardBroadcast"], writer.uint32(/* id 2053, wireType 2 =*/16426).fork()).ldelim();
- if (message[".guandan.gcRestCardBroadcast"] != null && Object.hasOwnProperty.call(message, ".guandan.gcRestCardBroadcast"))
- $root.guandan.GCRestCardBroadcast.encode(message[".guandan.gcRestCardBroadcast"], writer.uint32(/* id 2054, wireType 2 =*/16434).fork()).ldelim();
- if (message[".guandan.cgChat"] != null && Object.hasOwnProperty.call(message, ".guandan.cgChat"))
- $root.guandan.CGChat.encode(message[".guandan.cgChat"], writer.uint32(/* id 3001, wireType 2 =*/24010).fork()).ldelim();
- if (message[".guandan.gcChat"] != null && Object.hasOwnProperty.call(message, ".guandan.gcChat"))
- $root.guandan.GCChat.encode(message[".guandan.gcChat"], writer.uint32(/* id 3002, wireType 2 =*/24018).fork()).ldelim();
- if (message[".guandan.gcErrorNotice"] != null && Object.hasOwnProperty.call(message, ".guandan.gcErrorNotice"))
- $root.guandan.GCErrorNotice.encode(message[".guandan.gcErrorNotice"], writer.uint32(/* id 4001, wireType 2 =*/32010).fork()).ldelim();
- if (message[".guandan.gcKickOutReason"] != null && Object.hasOwnProperty.call(message, ".guandan.gcKickOutReason"))
- $root.guandan.GCKickOutReason.encode(message[".guandan.gcKickOutReason"], writer.uint32(/* id 4002, wireType 2 =*/32018).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified Message message, length delimited. Does not implicitly {@link pb.Message.verify|verify} messages.
- * @function encodeDelimited
- * @memberof pb.Message
- * @static
- * @param {pb.IMessage} message Message message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- Message.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a Message message from the specified reader or buffer.
- * @function decode
- * @memberof pb.Message
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {pb.Message} Message
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- Message.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.pb.Message();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.messageType = reader.int32();
- break;
- case 2001:
- message[".guandan.cgJoinRoom"] = $root.guandan.CGJoinRoom.decode(reader, reader.uint32());
- break;
- case 2002:
- message[".guandan.gcJoinRoom"] = $root.guandan.GCJoinRoom.decode(reader, reader.uint32());
- break;
- case 2003:
- message[".guandan.gcJoinRoomBroadcast"] = $root.guandan.GCJoinRoomBroadcast.decode(reader, reader.uint32());
- break;
- case 2004:
- message[".guandan.gcSelectBankerBroadcast"] = $root.guandan.GCSelectBankerBroadcast.decode(reader, reader.uint32());
- break;
- case 2005:
- message[".guandan.gcDealCards"] = $root.guandan.GCDealCards.decode(reader, reader.uint32());
- break;
- case 2006:
- message[".guandan.gclearCircleBroadcast"] = $root.guandan.GCClearCircleBroadcast.decode(reader, reader.uint32());
- break;
- case 2007:
- message[".guandan.cgPlayerPlayCard"] = $root.guandan.CGPlayerPlayCard.decode(reader, reader.uint32());
- break;
- case 2008:
- message[".guandan.gcPlayerPlayCard"] = $root.guandan.GCPlayerPlayCard.decode(reader, reader.uint32());
- break;
- case 2047:
- message[".guandan.gcPlayerPlayCardBroadcast"] = $root.guandan.GCPlayerPlayCardBroadcast.decode(reader, reader.uint32());
- break;
- case 2009:
- message[".guandan.gcPlayerOperations"] = $root.guandan.GCPlayerOperations.decode(reader, reader.uint32());
- break;
- case 2010:
- message[".guandan.gcWaitPlayerPlayCard"] = $root.guandan.GCWaitPlayerPlayCard.decode(reader, reader.uint32());
- break;
- case 2011:
- message[".guandan.gcWaitPlayerPlayCardBroadcast"] = $root.guandan.GCWaitPlayerPlayCardBroadcast.decode(reader, reader.uint32());
- break;
- case 2012:
- message[".guandan.cgPlayerJinGong"] = $root.guandan.CGPlayerJinGong.decode(reader, reader.uint32());
- break;
- case 2013:
- message[".guandan.gcPlayerJinGongBroadcast"] = $root.guandan.GCPlayerJinGongBroadcast.decode(reader, reader.uint32());
- break;
- case 2014:
- message[".guandan.cgPlayerHuanGong"] = $root.guandan.CGPlayerHuanGong.decode(reader, reader.uint32());
- break;
- case 2015:
- message[".guandan.gcPlayerHuanGongBroadcast"] = $root.guandan.GCPlayerHuanGongBroadcast.decode(reader, reader.uint32());
- break;
- case 2016:
- message[".guandan.gcPlayerKangGongBroadcast"] = $root.guandan.GCPlayerKangGongBroadcast.decode(reader, reader.uint32());
- break;
- case 2017:
- message[".guandan.gcWaitPlayerJinGongBroadcast"] = $root.guandan.GCWaitPlayerJinGongBroadcast.decode(reader, reader.uint32());
- break;
- case 2018:
- message[".guandan.gcWaitPlayerHuanGongBroadcast"] = $root.guandan.GCWaitPlayerHuanGongBroadcast.decode(reader, reader.uint32());
- break;
- case 2019:
- message[".guandan.gcPlayerYou"] = $root.guandan.GCPlayerYou.decode(reader, reader.uint32());
- break;
- case 2020:
- message[".guandan.gcPlayerEmptyBroadcast"] = $root.guandan.GCPlayerEmptyBroadcast.decode(reader, reader.uint32());
- break;
- case 2021:
- message[".guandan.cgPlayerOpreate"] = $root.guandan.CGPlayerOperate.decode(reader, reader.uint32());
- break;
- case 2022:
- message[".guandan.gcClear"] = $root.guandan.GCClear.decode(reader, reader.uint32());
- break;
- case 2023:
- message[".guandan.gcReconnectPlayer"] = $root.guandan.GCReconnectPlayer.decode(reader, reader.uint32());
- break;
- case 2024:
- message[".guandan.gcDisconnectPlayer"] = $root.guandan.GCDisconnectPlayer.decode(reader, reader.uint32());
- break;
- case 2025:
- message[".guandan.cgPlayerLeave"] = $root.guandan.CGPlayerLeave.decode(reader, reader.uint32());
- break;
- case 2026:
- message[".guandan.gcPlayerLeave"] = $root.guandan.GCPlayerLeave.decode(reader, reader.uint32());
- break;
- case 2027:
- message[".guandan.cgPlayerStart"] = $root.guandan.CGPlayerStart.decode(reader, reader.uint32());
- break;
- case 2028:
- message[".guandan.gcLastBroadcast"] = $root.guandan.GCLastBroadcast.decode(reader, reader.uint32());
- break;
- case 2029:
- message[".guandan.gcPlayerStart"] = $root.guandan.GCPlayerStart.decode(reader, reader.uint32());
- break;
- case 2030:
- message[".guandan.cgPlayerDissolve"] = $root.guandan.CGPlayerDissolve.decode(reader, reader.uint32());
- break;
- case 2031:
- message[".guandan.gcPlayerDissolve"] = $root.guandan.GCPlayerDissolve.decode(reader, reader.uint32());
- break;
- case 2032:
- message[".guandan.cgPlayerDissolveAgree"] = $root.guandan.CGPlayerDissolveAgree.decode(reader, reader.uint32());
- break;
- case 2033:
- message[".guandan.gcPlayerDissolveAgree"] = $root.guandan.GCPlayerDissolveAgree.decode(reader, reader.uint32());
- break;
- case 2034:
- message[".guandan.gcLiuJu"] = $root.guandan.GCLiuJu.decode(reader, reader.uint32());
- break;
- case 2035:
- message[".guandan.gcTotalSettle"] = $root.guandan.GCTotalSettle.decode(reader, reader.uint32());
- break;
- case 2036:
- message[".guandan.gcKaiJin"] = $root.guandan.GCKaiJin.decode(reader, reader.uint32());
- break;
- case 2037:
- message[".guandan.cgDisconnectPlayer"] = $root.guandan.CGDisconnectPlayer.decode(reader, reader.uint32());
- break;
- case 2038:
- message[".guandan.gcPlayerTuoGuan"] = $root.guandan.GCPlayerTuoGuan.decode(reader, reader.uint32());
- break;
- case 2039:
- message[".guandan.cgPlayerCancelTuoGuan"] = $root.guandan.CGPlayerCancelTuoGuan.decode(reader, reader.uint32());
- break;
- case 2040:
- message[".guandan.gcPlayerCancelTuoGuan"] = $root.guandan.GCPlayerCancelTuoGuan.decode(reader, reader.uint32());
- break;
- case 2041:
- message[".guandan.gcRoomRoundStart"] = $root.guandan.GCRoomRoundStart.decode(reader, reader.uint32());
- break;
- case 2042:
- message[".guandan.gcPlayerRemainCardBroadcast"] = $root.guandan.GCPlayerRemainCardBroadcast.decode(reader, reader.uint32());
- break;
- case 2043:
- message[".guandan.gcPlayerDoubleBroadcast"] = $root.guandan.GCPlayerDoubleBroadcast.decode(reader, reader.uint32());
- break;
- case 2044:
- message[".guandan.gcTuanTuanZhuanShowCardBroadcast"] = $root.guandan.GCTuanTuanZhuanShowCardBroadcast.decode(reader, reader.uint32());
- break;
- case 2045:
- message[".guandan.gcOppositePlayerCard"] = $root.guandan.GCOppositePlayerCard.decode(reader, reader.uint32());
- break;
- case 2046:
- message[".guandan.cgPlayerDouble"] = $root.guandan.CGPlayerDouble.decode(reader, reader.uint32());
- break;
- case 2048:
- message[".guandan.gcWaitPlayerDouble"] = $root.guandan.GCWaitPlayerDouble.decode(reader, reader.uint32());
- break;
- case 2050:
- message[".guandan.gcBombDoubleBroadcast"] = $root.guandan.GCBombDoubleBroadcast.decode(reader, reader.uint32());
- break;
- case 2051:
- message[".guandan.gcJieFengBroadcast"] = $root.guandan.GCJieFengBroadcast.decode(reader, reader.uint32());
- break;
- case 2052:
- message[".guandan.gcStartArrangeCardBroadcast"] = $root.guandan.GCStartArrangeCardBroadcast.decode(reader, reader.uint32());
- break;
- case 2053:
- message[".guandan.gcEndArrangeCardBroadcast"] = $root.guandan.GCEndArrangeCardBroadcast.decode(reader, reader.uint32());
- break;
- case 2054:
- message[".guandan.gcRestCardBroadcast"] = $root.guandan.GCRestCardBroadcast.decode(reader, reader.uint32());
- break;
- case 3001:
- message[".guandan.cgChat"] = $root.guandan.CGChat.decode(reader, reader.uint32());
- break;
- case 3002:
- message[".guandan.gcChat"] = $root.guandan.GCChat.decode(reader, reader.uint32());
- break;
- case 4001:
- message[".guandan.gcErrorNotice"] = $root.guandan.GCErrorNotice.decode(reader, reader.uint32());
- break;
- case 4002:
- message[".guandan.gcKickOutReason"] = $root.guandan.GCKickOutReason.decode(reader, reader.uint32());
- break;
- case 101:
- message[".pb.cgLogin"] = $root.pb.CGLogin.decode(reader, reader.uint32());
- break;
- case 102:
- message[".pb.gcLogin"] = $root.pb.GCLogin.decode(reader, reader.uint32());
- break;
- case 103:
- message[".pb.cgPing"] = $root.pb.CGPing.decode(reader, reader.uint32());
- break;
- case 104:
- message[".pb.gcPing"] = $root.pb.GCPing.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("messageType"))
- throw $util.ProtocolError("missing required 'messageType'", { instance: message });
- return message;
- };
- /**
- * Decodes a Message message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof pb.Message
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {pb.Message} Message
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- Message.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a Message message.
- * @function verify
- * @memberof pb.Message
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- Message.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.messageType))
- return "messageType: integer expected";
- if (message[".guandan.cgJoinRoom"] != null && message.hasOwnProperty(".guandan.cgJoinRoom")) {
- var error = $root.guandan.CGJoinRoom.verify(message[".guandan.cgJoinRoom"]);
- if (error)
- return ".guandan.cgJoinRoom." + error;
- }
- if (message[".guandan.gcJoinRoom"] != null && message.hasOwnProperty(".guandan.gcJoinRoom")) {
- var error = $root.guandan.GCJoinRoom.verify(message[".guandan.gcJoinRoom"]);
- if (error)
- return ".guandan.gcJoinRoom." + error;
- }
- if (message[".guandan.gcJoinRoomBroadcast"] != null && message.hasOwnProperty(".guandan.gcJoinRoomBroadcast")) {
- var error = $root.guandan.GCJoinRoomBroadcast.verify(message[".guandan.gcJoinRoomBroadcast"]);
- if (error)
- return ".guandan.gcJoinRoomBroadcast." + error;
- }
- if (message[".guandan.gcSelectBankerBroadcast"] != null && message.hasOwnProperty(".guandan.gcSelectBankerBroadcast")) {
- var error = $root.guandan.GCSelectBankerBroadcast.verify(message[".guandan.gcSelectBankerBroadcast"]);
- if (error)
- return ".guandan.gcSelectBankerBroadcast." + error;
- }
- if (message[".guandan.gcDealCards"] != null && message.hasOwnProperty(".guandan.gcDealCards")) {
- var error = $root.guandan.GCDealCards.verify(message[".guandan.gcDealCards"]);
- if (error)
- return ".guandan.gcDealCards." + error;
- }
- if (message[".guandan.gclearCircleBroadcast"] != null && message.hasOwnProperty(".guandan.gclearCircleBroadcast")) {
- var error = $root.guandan.GCClearCircleBroadcast.verify(message[".guandan.gclearCircleBroadcast"]);
- if (error)
- return ".guandan.gclearCircleBroadcast." + error;
- }
- if (message[".guandan.cgPlayerPlayCard"] != null && message.hasOwnProperty(".guandan.cgPlayerPlayCard")) {
- var error = $root.guandan.CGPlayerPlayCard.verify(message[".guandan.cgPlayerPlayCard"]);
- if (error)
- return ".guandan.cgPlayerPlayCard." + error;
- }
- if (message[".guandan.gcPlayerPlayCard"] != null && message.hasOwnProperty(".guandan.gcPlayerPlayCard")) {
- var error = $root.guandan.GCPlayerPlayCard.verify(message[".guandan.gcPlayerPlayCard"]);
- if (error)
- return ".guandan.gcPlayerPlayCard." + error;
- }
- if (message[".guandan.gcPlayerPlayCardBroadcast"] != null && message.hasOwnProperty(".guandan.gcPlayerPlayCardBroadcast")) {
- var error = $root.guandan.GCPlayerPlayCardBroadcast.verify(message[".guandan.gcPlayerPlayCardBroadcast"]);
- if (error)
- return ".guandan.gcPlayerPlayCardBroadcast." + error;
- }
- if (message[".guandan.gcPlayerOperations"] != null && message.hasOwnProperty(".guandan.gcPlayerOperations")) {
- var error = $root.guandan.GCPlayerOperations.verify(message[".guandan.gcPlayerOperations"]);
- if (error)
- return ".guandan.gcPlayerOperations." + error;
- }
- if (message[".guandan.gcWaitPlayerPlayCard"] != null && message.hasOwnProperty(".guandan.gcWaitPlayerPlayCard")) {
- var error = $root.guandan.GCWaitPlayerPlayCard.verify(message[".guandan.gcWaitPlayerPlayCard"]);
- if (error)
- return ".guandan.gcWaitPlayerPlayCard." + error;
- }
- if (message[".guandan.gcWaitPlayerPlayCardBroadcast"] != null && message.hasOwnProperty(".guandan.gcWaitPlayerPlayCardBroadcast")) {
- var error = $root.guandan.GCWaitPlayerPlayCardBroadcast.verify(message[".guandan.gcWaitPlayerPlayCardBroadcast"]);
- if (error)
- return ".guandan.gcWaitPlayerPlayCardBroadcast." + error;
- }
- if (message[".guandan.cgPlayerJinGong"] != null && message.hasOwnProperty(".guandan.cgPlayerJinGong")) {
- var error = $root.guandan.CGPlayerJinGong.verify(message[".guandan.cgPlayerJinGong"]);
- if (error)
- return ".guandan.cgPlayerJinGong." + error;
- }
- if (message[".guandan.gcPlayerJinGongBroadcast"] != null && message.hasOwnProperty(".guandan.gcPlayerJinGongBroadcast")) {
- var error = $root.guandan.GCPlayerJinGongBroadcast.verify(message[".guandan.gcPlayerJinGongBroadcast"]);
- if (error)
- return ".guandan.gcPlayerJinGongBroadcast." + error;
- }
- if (message[".guandan.cgPlayerHuanGong"] != null && message.hasOwnProperty(".guandan.cgPlayerHuanGong")) {
- var error = $root.guandan.CGPlayerHuanGong.verify(message[".guandan.cgPlayerHuanGong"]);
- if (error)
- return ".guandan.cgPlayerHuanGong." + error;
- }
- if (message[".guandan.gcPlayerHuanGongBroadcast"] != null && message.hasOwnProperty(".guandan.gcPlayerHuanGongBroadcast")) {
- var error = $root.guandan.GCPlayerHuanGongBroadcast.verify(message[".guandan.gcPlayerHuanGongBroadcast"]);
- if (error)
- return ".guandan.gcPlayerHuanGongBroadcast." + error;
- }
- if (message[".guandan.gcPlayerKangGongBroadcast"] != null && message.hasOwnProperty(".guandan.gcPlayerKangGongBroadcast")) {
- var error = $root.guandan.GCPlayerKangGongBroadcast.verify(message[".guandan.gcPlayerKangGongBroadcast"]);
- if (error)
- return ".guandan.gcPlayerKangGongBroadcast." + error;
- }
- if (message[".guandan.gcWaitPlayerJinGongBroadcast"] != null && message.hasOwnProperty(".guandan.gcWaitPlayerJinGongBroadcast")) {
- var error = $root.guandan.GCWaitPlayerJinGongBroadcast.verify(message[".guandan.gcWaitPlayerJinGongBroadcast"]);
- if (error)
- return ".guandan.gcWaitPlayerJinGongBroadcast." + error;
- }
- if (message[".guandan.gcWaitPlayerHuanGongBroadcast"] != null && message.hasOwnProperty(".guandan.gcWaitPlayerHuanGongBroadcast")) {
- var error = $root.guandan.GCWaitPlayerHuanGongBroadcast.verify(message[".guandan.gcWaitPlayerHuanGongBroadcast"]);
- if (error)
- return ".guandan.gcWaitPlayerHuanGongBroadcast." + error;
- }
- if (message[".guandan.gcPlayerYou"] != null && message.hasOwnProperty(".guandan.gcPlayerYou")) {
- var error = $root.guandan.GCPlayerYou.verify(message[".guandan.gcPlayerYou"]);
- if (error)
- return ".guandan.gcPlayerYou." + error;
- }
- if (message[".guandan.gcPlayerEmptyBroadcast"] != null && message.hasOwnProperty(".guandan.gcPlayerEmptyBroadcast")) {
- var error = $root.guandan.GCPlayerEmptyBroadcast.verify(message[".guandan.gcPlayerEmptyBroadcast"]);
- if (error)
- return ".guandan.gcPlayerEmptyBroadcast." + error;
- }
- if (message[".guandan.cgPlayerOpreate"] != null && message.hasOwnProperty(".guandan.cgPlayerOpreate")) {
- var error = $root.guandan.CGPlayerOperate.verify(message[".guandan.cgPlayerOpreate"]);
- if (error)
- return ".guandan.cgPlayerOpreate." + error;
- }
- if (message[".guandan.gcClear"] != null && message.hasOwnProperty(".guandan.gcClear")) {
- var error = $root.guandan.GCClear.verify(message[".guandan.gcClear"]);
- if (error)
- return ".guandan.gcClear." + error;
- }
- if (message[".guandan.gcReconnectPlayer"] != null && message.hasOwnProperty(".guandan.gcReconnectPlayer")) {
- var error = $root.guandan.GCReconnectPlayer.verify(message[".guandan.gcReconnectPlayer"]);
- if (error)
- return ".guandan.gcReconnectPlayer." + error;
- }
- if (message[".guandan.gcDisconnectPlayer"] != null && message.hasOwnProperty(".guandan.gcDisconnectPlayer")) {
- var error = $root.guandan.GCDisconnectPlayer.verify(message[".guandan.gcDisconnectPlayer"]);
- if (error)
- return ".guandan.gcDisconnectPlayer." + error;
- }
- if (message[".guandan.cgPlayerLeave"] != null && message.hasOwnProperty(".guandan.cgPlayerLeave")) {
- var error = $root.guandan.CGPlayerLeave.verify(message[".guandan.cgPlayerLeave"]);
- if (error)
- return ".guandan.cgPlayerLeave." + error;
- }
- if (message[".guandan.gcPlayerLeave"] != null && message.hasOwnProperty(".guandan.gcPlayerLeave")) {
- var error = $root.guandan.GCPlayerLeave.verify(message[".guandan.gcPlayerLeave"]);
- if (error)
- return ".guandan.gcPlayerLeave." + error;
- }
- if (message[".guandan.cgPlayerStart"] != null && message.hasOwnProperty(".guandan.cgPlayerStart")) {
- var error = $root.guandan.CGPlayerStart.verify(message[".guandan.cgPlayerStart"]);
- if (error)
- return ".guandan.cgPlayerStart." + error;
- }
- if (message[".guandan.gcLastBroadcast"] != null && message.hasOwnProperty(".guandan.gcLastBroadcast")) {
- var error = $root.guandan.GCLastBroadcast.verify(message[".guandan.gcLastBroadcast"]);
- if (error)
- return ".guandan.gcLastBroadcast." + error;
- }
- if (message[".guandan.gcPlayerStart"] != null && message.hasOwnProperty(".guandan.gcPlayerStart")) {
- var error = $root.guandan.GCPlayerStart.verify(message[".guandan.gcPlayerStart"]);
- if (error)
- return ".guandan.gcPlayerStart." + error;
- }
- if (message[".guandan.cgPlayerDissolve"] != null && message.hasOwnProperty(".guandan.cgPlayerDissolve")) {
- var error = $root.guandan.CGPlayerDissolve.verify(message[".guandan.cgPlayerDissolve"]);
- if (error)
- return ".guandan.cgPlayerDissolve." + error;
- }
- if (message[".guandan.gcPlayerDissolve"] != null && message.hasOwnProperty(".guandan.gcPlayerDissolve")) {
- var error = $root.guandan.GCPlayerDissolve.verify(message[".guandan.gcPlayerDissolve"]);
- if (error)
- return ".guandan.gcPlayerDissolve." + error;
- }
- if (message[".guandan.cgPlayerDissolveAgree"] != null && message.hasOwnProperty(".guandan.cgPlayerDissolveAgree")) {
- var error = $root.guandan.CGPlayerDissolveAgree.verify(message[".guandan.cgPlayerDissolveAgree"]);
- if (error)
- return ".guandan.cgPlayerDissolveAgree." + error;
- }
- if (message[".guandan.gcPlayerDissolveAgree"] != null && message.hasOwnProperty(".guandan.gcPlayerDissolveAgree")) {
- var error = $root.guandan.GCPlayerDissolveAgree.verify(message[".guandan.gcPlayerDissolveAgree"]);
- if (error)
- return ".guandan.gcPlayerDissolveAgree." + error;
- }
- if (message[".guandan.gcLiuJu"] != null && message.hasOwnProperty(".guandan.gcLiuJu")) {
- var error = $root.guandan.GCLiuJu.verify(message[".guandan.gcLiuJu"]);
- if (error)
- return ".guandan.gcLiuJu." + error;
- }
- if (message[".guandan.gcTotalSettle"] != null && message.hasOwnProperty(".guandan.gcTotalSettle")) {
- var error = $root.guandan.GCTotalSettle.verify(message[".guandan.gcTotalSettle"]);
- if (error)
- return ".guandan.gcTotalSettle." + error;
- }
- if (message[".guandan.gcKaiJin"] != null && message.hasOwnProperty(".guandan.gcKaiJin")) {
- var error = $root.guandan.GCKaiJin.verify(message[".guandan.gcKaiJin"]);
- if (error)
- return ".guandan.gcKaiJin." + error;
- }
- if (message[".guandan.cgDisconnectPlayer"] != null && message.hasOwnProperty(".guandan.cgDisconnectPlayer")) {
- var error = $root.guandan.CGDisconnectPlayer.verify(message[".guandan.cgDisconnectPlayer"]);
- if (error)
- return ".guandan.cgDisconnectPlayer." + error;
- }
- if (message[".guandan.gcPlayerTuoGuan"] != null && message.hasOwnProperty(".guandan.gcPlayerTuoGuan")) {
- var error = $root.guandan.GCPlayerTuoGuan.verify(message[".guandan.gcPlayerTuoGuan"]);
- if (error)
- return ".guandan.gcPlayerTuoGuan." + error;
- }
- if (message[".guandan.cgPlayerCancelTuoGuan"] != null && message.hasOwnProperty(".guandan.cgPlayerCancelTuoGuan")) {
- var error = $root.guandan.CGPlayerCancelTuoGuan.verify(message[".guandan.cgPlayerCancelTuoGuan"]);
- if (error)
- return ".guandan.cgPlayerCancelTuoGuan." + error;
- }
- if (message[".guandan.gcPlayerCancelTuoGuan"] != null && message.hasOwnProperty(".guandan.gcPlayerCancelTuoGuan")) {
- var error = $root.guandan.GCPlayerCancelTuoGuan.verify(message[".guandan.gcPlayerCancelTuoGuan"]);
- if (error)
- return ".guandan.gcPlayerCancelTuoGuan." + error;
- }
- if (message[".guandan.gcRoomRoundStart"] != null && message.hasOwnProperty(".guandan.gcRoomRoundStart")) {
- var error = $root.guandan.GCRoomRoundStart.verify(message[".guandan.gcRoomRoundStart"]);
- if (error)
- return ".guandan.gcRoomRoundStart." + error;
- }
- if (message[".guandan.gcPlayerRemainCardBroadcast"] != null && message.hasOwnProperty(".guandan.gcPlayerRemainCardBroadcast")) {
- var error = $root.guandan.GCPlayerRemainCardBroadcast.verify(message[".guandan.gcPlayerRemainCardBroadcast"]);
- if (error)
- return ".guandan.gcPlayerRemainCardBroadcast." + error;
- }
- if (message[".guandan.gcPlayerDoubleBroadcast"] != null && message.hasOwnProperty(".guandan.gcPlayerDoubleBroadcast")) {
- var error = $root.guandan.GCPlayerDoubleBroadcast.verify(message[".guandan.gcPlayerDoubleBroadcast"]);
- if (error)
- return ".guandan.gcPlayerDoubleBroadcast." + error;
- }
- if (message[".guandan.gcTuanTuanZhuanShowCardBroadcast"] != null && message.hasOwnProperty(".guandan.gcTuanTuanZhuanShowCardBroadcast")) {
- var error = $root.guandan.GCTuanTuanZhuanShowCardBroadcast.verify(message[".guandan.gcTuanTuanZhuanShowCardBroadcast"]);
- if (error)
- return ".guandan.gcTuanTuanZhuanShowCardBroadcast." + error;
- }
- if (message[".guandan.gcOppositePlayerCard"] != null && message.hasOwnProperty(".guandan.gcOppositePlayerCard")) {
- var error = $root.guandan.GCOppositePlayerCard.verify(message[".guandan.gcOppositePlayerCard"]);
- if (error)
- return ".guandan.gcOppositePlayerCard." + error;
- }
- if (message[".guandan.cgPlayerDouble"] != null && message.hasOwnProperty(".guandan.cgPlayerDouble")) {
- var error = $root.guandan.CGPlayerDouble.verify(message[".guandan.cgPlayerDouble"]);
- if (error)
- return ".guandan.cgPlayerDouble." + error;
- }
- if (message[".guandan.gcWaitPlayerDouble"] != null && message.hasOwnProperty(".guandan.gcWaitPlayerDouble")) {
- var error = $root.guandan.GCWaitPlayerDouble.verify(message[".guandan.gcWaitPlayerDouble"]);
- if (error)
- return ".guandan.gcWaitPlayerDouble." + error;
- }
- if (message[".guandan.gcBombDoubleBroadcast"] != null && message.hasOwnProperty(".guandan.gcBombDoubleBroadcast")) {
- var error = $root.guandan.GCBombDoubleBroadcast.verify(message[".guandan.gcBombDoubleBroadcast"]);
- if (error)
- return ".guandan.gcBombDoubleBroadcast." + error;
- }
- if (message[".guandan.gcJieFengBroadcast"] != null && message.hasOwnProperty(".guandan.gcJieFengBroadcast")) {
- var error = $root.guandan.GCJieFengBroadcast.verify(message[".guandan.gcJieFengBroadcast"]);
- if (error)
- return ".guandan.gcJieFengBroadcast." + error;
- }
- if (message[".guandan.gcStartArrangeCardBroadcast"] != null && message.hasOwnProperty(".guandan.gcStartArrangeCardBroadcast")) {
- var error = $root.guandan.GCStartArrangeCardBroadcast.verify(message[".guandan.gcStartArrangeCardBroadcast"]);
- if (error)
- return ".guandan.gcStartArrangeCardBroadcast." + error;
- }
- if (message[".guandan.gcEndArrangeCardBroadcast"] != null && message.hasOwnProperty(".guandan.gcEndArrangeCardBroadcast")) {
- var error = $root.guandan.GCEndArrangeCardBroadcast.verify(message[".guandan.gcEndArrangeCardBroadcast"]);
- if (error)
- return ".guandan.gcEndArrangeCardBroadcast." + error;
- }
- if (message[".guandan.gcRestCardBroadcast"] != null && message.hasOwnProperty(".guandan.gcRestCardBroadcast")) {
- var error = $root.guandan.GCRestCardBroadcast.verify(message[".guandan.gcRestCardBroadcast"]);
- if (error)
- return ".guandan.gcRestCardBroadcast." + error;
- }
- if (message[".guandan.cgChat"] != null && message.hasOwnProperty(".guandan.cgChat")) {
- var error = $root.guandan.CGChat.verify(message[".guandan.cgChat"]);
- if (error)
- return ".guandan.cgChat." + error;
- }
- if (message[".guandan.gcChat"] != null && message.hasOwnProperty(".guandan.gcChat")) {
- var error = $root.guandan.GCChat.verify(message[".guandan.gcChat"]);
- if (error)
- return ".guandan.gcChat." + error;
- }
- if (message[".guandan.gcErrorNotice"] != null && message.hasOwnProperty(".guandan.gcErrorNotice")) {
- var error = $root.guandan.GCErrorNotice.verify(message[".guandan.gcErrorNotice"]);
- if (error)
- return ".guandan.gcErrorNotice." + error;
- }
- if (message[".guandan.gcKickOutReason"] != null && message.hasOwnProperty(".guandan.gcKickOutReason")) {
- var error = $root.guandan.GCKickOutReason.verify(message[".guandan.gcKickOutReason"]);
- if (error)
- return ".guandan.gcKickOutReason." + error;
- }
- if (message[".pb.cgLogin"] != null && message.hasOwnProperty(".pb.cgLogin")) {
- var error = $root.pb.CGLogin.verify(message[".pb.cgLogin"]);
- if (error)
- return ".pb.cgLogin." + error;
- }
- if (message[".pb.gcLogin"] != null && message.hasOwnProperty(".pb.gcLogin")) {
- var error = $root.pb.GCLogin.verify(message[".pb.gcLogin"]);
- if (error)
- return ".pb.gcLogin." + error;
- }
- if (message[".pb.cgPing"] != null && message.hasOwnProperty(".pb.cgPing")) {
- var error = $root.pb.CGPing.verify(message[".pb.cgPing"]);
- if (error)
- return ".pb.cgPing." + error;
- }
- if (message[".pb.gcPing"] != null && message.hasOwnProperty(".pb.gcPing")) {
- var error = $root.pb.GCPing.verify(message[".pb.gcPing"]);
- if (error)
- return ".pb.gcPing." + error;
- }
- return null;
- };
- /**
- * Creates a Message message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof pb.Message
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {pb.Message} Message
- */
- Message.fromObject = function fromObject(object) {
- if (object instanceof $root.pb.Message)
- return object;
- var message = new $root.pb.Message();
- if (object.messageType != null)
- message.messageType = object.messageType | 0;
- if (object[".guandan.cgJoinRoom"] != null) {
- if (typeof object[".guandan.cgJoinRoom"] !== "object")
- throw TypeError(".pb.Message..guandan.cgJoinRoom: object expected");
- message[".guandan.cgJoinRoom"] = $root.guandan.CGJoinRoom.fromObject(object[".guandan.cgJoinRoom"]);
- }
- if (object[".guandan.gcJoinRoom"] != null) {
- if (typeof object[".guandan.gcJoinRoom"] !== "object")
- throw TypeError(".pb.Message..guandan.gcJoinRoom: object expected");
- message[".guandan.gcJoinRoom"] = $root.guandan.GCJoinRoom.fromObject(object[".guandan.gcJoinRoom"]);
- }
- if (object[".guandan.gcJoinRoomBroadcast"] != null) {
- if (typeof object[".guandan.gcJoinRoomBroadcast"] !== "object")
- throw TypeError(".pb.Message..guandan.gcJoinRoomBroadcast: object expected");
- message[".guandan.gcJoinRoomBroadcast"] = $root.guandan.GCJoinRoomBroadcast.fromObject(object[".guandan.gcJoinRoomBroadcast"]);
- }
- if (object[".guandan.gcSelectBankerBroadcast"] != null) {
- if (typeof object[".guandan.gcSelectBankerBroadcast"] !== "object")
- throw TypeError(".pb.Message..guandan.gcSelectBankerBroadcast: object expected");
- message[".guandan.gcSelectBankerBroadcast"] = $root.guandan.GCSelectBankerBroadcast.fromObject(object[".guandan.gcSelectBankerBroadcast"]);
- }
- if (object[".guandan.gcDealCards"] != null) {
- if (typeof object[".guandan.gcDealCards"] !== "object")
- throw TypeError(".pb.Message..guandan.gcDealCards: object expected");
- message[".guandan.gcDealCards"] = $root.guandan.GCDealCards.fromObject(object[".guandan.gcDealCards"]);
- }
- if (object[".guandan.gclearCircleBroadcast"] != null) {
- if (typeof object[".guandan.gclearCircleBroadcast"] !== "object")
- throw TypeError(".pb.Message..guandan.gclearCircleBroadcast: object expected");
- message[".guandan.gclearCircleBroadcast"] = $root.guandan.GCClearCircleBroadcast.fromObject(object[".guandan.gclearCircleBroadcast"]);
- }
- if (object[".guandan.cgPlayerPlayCard"] != null) {
- if (typeof object[".guandan.cgPlayerPlayCard"] !== "object")
- throw TypeError(".pb.Message..guandan.cgPlayerPlayCard: object expected");
- message[".guandan.cgPlayerPlayCard"] = $root.guandan.CGPlayerPlayCard.fromObject(object[".guandan.cgPlayerPlayCard"]);
- }
- if (object[".guandan.gcPlayerPlayCard"] != null) {
- if (typeof object[".guandan.gcPlayerPlayCard"] !== "object")
- throw TypeError(".pb.Message..guandan.gcPlayerPlayCard: object expected");
- message[".guandan.gcPlayerPlayCard"] = $root.guandan.GCPlayerPlayCard.fromObject(object[".guandan.gcPlayerPlayCard"]);
- }
- if (object[".guandan.gcPlayerPlayCardBroadcast"] != null) {
- if (typeof object[".guandan.gcPlayerPlayCardBroadcast"] !== "object")
- throw TypeError(".pb.Message..guandan.gcPlayerPlayCardBroadcast: object expected");
- message[".guandan.gcPlayerPlayCardBroadcast"] = $root.guandan.GCPlayerPlayCardBroadcast.fromObject(object[".guandan.gcPlayerPlayCardBroadcast"]);
- }
- if (object[".guandan.gcPlayerOperations"] != null) {
- if (typeof object[".guandan.gcPlayerOperations"] !== "object")
- throw TypeError(".pb.Message..guandan.gcPlayerOperations: object expected");
- message[".guandan.gcPlayerOperations"] = $root.guandan.GCPlayerOperations.fromObject(object[".guandan.gcPlayerOperations"]);
- }
- if (object[".guandan.gcWaitPlayerPlayCard"] != null) {
- if (typeof object[".guandan.gcWaitPlayerPlayCard"] !== "object")
- throw TypeError(".pb.Message..guandan.gcWaitPlayerPlayCard: object expected");
- message[".guandan.gcWaitPlayerPlayCard"] = $root.guandan.GCWaitPlayerPlayCard.fromObject(object[".guandan.gcWaitPlayerPlayCard"]);
- }
- if (object[".guandan.gcWaitPlayerPlayCardBroadcast"] != null) {
- if (typeof object[".guandan.gcWaitPlayerPlayCardBroadcast"] !== "object")
- throw TypeError(".pb.Message..guandan.gcWaitPlayerPlayCardBroadcast: object expected");
- message[".guandan.gcWaitPlayerPlayCardBroadcast"] = $root.guandan.GCWaitPlayerPlayCardBroadcast.fromObject(object[".guandan.gcWaitPlayerPlayCardBroadcast"]);
- }
- if (object[".guandan.cgPlayerJinGong"] != null) {
- if (typeof object[".guandan.cgPlayerJinGong"] !== "object")
- throw TypeError(".pb.Message..guandan.cgPlayerJinGong: object expected");
- message[".guandan.cgPlayerJinGong"] = $root.guandan.CGPlayerJinGong.fromObject(object[".guandan.cgPlayerJinGong"]);
- }
- if (object[".guandan.gcPlayerJinGongBroadcast"] != null) {
- if (typeof object[".guandan.gcPlayerJinGongBroadcast"] !== "object")
- throw TypeError(".pb.Message..guandan.gcPlayerJinGongBroadcast: object expected");
- message[".guandan.gcPlayerJinGongBroadcast"] = $root.guandan.GCPlayerJinGongBroadcast.fromObject(object[".guandan.gcPlayerJinGongBroadcast"]);
- }
- if (object[".guandan.cgPlayerHuanGong"] != null) {
- if (typeof object[".guandan.cgPlayerHuanGong"] !== "object")
- throw TypeError(".pb.Message..guandan.cgPlayerHuanGong: object expected");
- message[".guandan.cgPlayerHuanGong"] = $root.guandan.CGPlayerHuanGong.fromObject(object[".guandan.cgPlayerHuanGong"]);
- }
- if (object[".guandan.gcPlayerHuanGongBroadcast"] != null) {
- if (typeof object[".guandan.gcPlayerHuanGongBroadcast"] !== "object")
- throw TypeError(".pb.Message..guandan.gcPlayerHuanGongBroadcast: object expected");
- message[".guandan.gcPlayerHuanGongBroadcast"] = $root.guandan.GCPlayerHuanGongBroadcast.fromObject(object[".guandan.gcPlayerHuanGongBroadcast"]);
- }
- if (object[".guandan.gcPlayerKangGongBroadcast"] != null) {
- if (typeof object[".guandan.gcPlayerKangGongBroadcast"] !== "object")
- throw TypeError(".pb.Message..guandan.gcPlayerKangGongBroadcast: object expected");
- message[".guandan.gcPlayerKangGongBroadcast"] = $root.guandan.GCPlayerKangGongBroadcast.fromObject(object[".guandan.gcPlayerKangGongBroadcast"]);
- }
- if (object[".guandan.gcWaitPlayerJinGongBroadcast"] != null) {
- if (typeof object[".guandan.gcWaitPlayerJinGongBroadcast"] !== "object")
- throw TypeError(".pb.Message..guandan.gcWaitPlayerJinGongBroadcast: object expected");
- message[".guandan.gcWaitPlayerJinGongBroadcast"] = $root.guandan.GCWaitPlayerJinGongBroadcast.fromObject(object[".guandan.gcWaitPlayerJinGongBroadcast"]);
- }
- if (object[".guandan.gcWaitPlayerHuanGongBroadcast"] != null) {
- if (typeof object[".guandan.gcWaitPlayerHuanGongBroadcast"] !== "object")
- throw TypeError(".pb.Message..guandan.gcWaitPlayerHuanGongBroadcast: object expected");
- message[".guandan.gcWaitPlayerHuanGongBroadcast"] = $root.guandan.GCWaitPlayerHuanGongBroadcast.fromObject(object[".guandan.gcWaitPlayerHuanGongBroadcast"]);
- }
- if (object[".guandan.gcPlayerYou"] != null) {
- if (typeof object[".guandan.gcPlayerYou"] !== "object")
- throw TypeError(".pb.Message..guandan.gcPlayerYou: object expected");
- message[".guandan.gcPlayerYou"] = $root.guandan.GCPlayerYou.fromObject(object[".guandan.gcPlayerYou"]);
- }
- if (object[".guandan.gcPlayerEmptyBroadcast"] != null) {
- if (typeof object[".guandan.gcPlayerEmptyBroadcast"] !== "object")
- throw TypeError(".pb.Message..guandan.gcPlayerEmptyBroadcast: object expected");
- message[".guandan.gcPlayerEmptyBroadcast"] = $root.guandan.GCPlayerEmptyBroadcast.fromObject(object[".guandan.gcPlayerEmptyBroadcast"]);
- }
- if (object[".guandan.cgPlayerOpreate"] != null) {
- if (typeof object[".guandan.cgPlayerOpreate"] !== "object")
- throw TypeError(".pb.Message..guandan.cgPlayerOpreate: object expected");
- message[".guandan.cgPlayerOpreate"] = $root.guandan.CGPlayerOperate.fromObject(object[".guandan.cgPlayerOpreate"]);
- }
- if (object[".guandan.gcClear"] != null) {
- if (typeof object[".guandan.gcClear"] !== "object")
- throw TypeError(".pb.Message..guandan.gcClear: object expected");
- message[".guandan.gcClear"] = $root.guandan.GCClear.fromObject(object[".guandan.gcClear"]);
- }
- if (object[".guandan.gcReconnectPlayer"] != null) {
- if (typeof object[".guandan.gcReconnectPlayer"] !== "object")
- throw TypeError(".pb.Message..guandan.gcReconnectPlayer: object expected");
- message[".guandan.gcReconnectPlayer"] = $root.guandan.GCReconnectPlayer.fromObject(object[".guandan.gcReconnectPlayer"]);
- }
- if (object[".guandan.gcDisconnectPlayer"] != null) {
- if (typeof object[".guandan.gcDisconnectPlayer"] !== "object")
- throw TypeError(".pb.Message..guandan.gcDisconnectPlayer: object expected");
- message[".guandan.gcDisconnectPlayer"] = $root.guandan.GCDisconnectPlayer.fromObject(object[".guandan.gcDisconnectPlayer"]);
- }
- if (object[".guandan.cgPlayerLeave"] != null) {
- if (typeof object[".guandan.cgPlayerLeave"] !== "object")
- throw TypeError(".pb.Message..guandan.cgPlayerLeave: object expected");
- message[".guandan.cgPlayerLeave"] = $root.guandan.CGPlayerLeave.fromObject(object[".guandan.cgPlayerLeave"]);
- }
- if (object[".guandan.gcPlayerLeave"] != null) {
- if (typeof object[".guandan.gcPlayerLeave"] !== "object")
- throw TypeError(".pb.Message..guandan.gcPlayerLeave: object expected");
- message[".guandan.gcPlayerLeave"] = $root.guandan.GCPlayerLeave.fromObject(object[".guandan.gcPlayerLeave"]);
- }
- if (object[".guandan.cgPlayerStart"] != null) {
- if (typeof object[".guandan.cgPlayerStart"] !== "object")
- throw TypeError(".pb.Message..guandan.cgPlayerStart: object expected");
- message[".guandan.cgPlayerStart"] = $root.guandan.CGPlayerStart.fromObject(object[".guandan.cgPlayerStart"]);
- }
- if (object[".guandan.gcLastBroadcast"] != null) {
- if (typeof object[".guandan.gcLastBroadcast"] !== "object")
- throw TypeError(".pb.Message..guandan.gcLastBroadcast: object expected");
- message[".guandan.gcLastBroadcast"] = $root.guandan.GCLastBroadcast.fromObject(object[".guandan.gcLastBroadcast"]);
- }
- if (object[".guandan.gcPlayerStart"] != null) {
- if (typeof object[".guandan.gcPlayerStart"] !== "object")
- throw TypeError(".pb.Message..guandan.gcPlayerStart: object expected");
- message[".guandan.gcPlayerStart"] = $root.guandan.GCPlayerStart.fromObject(object[".guandan.gcPlayerStart"]);
- }
- if (object[".guandan.cgPlayerDissolve"] != null) {
- if (typeof object[".guandan.cgPlayerDissolve"] !== "object")
- throw TypeError(".pb.Message..guandan.cgPlayerDissolve: object expected");
- message[".guandan.cgPlayerDissolve"] = $root.guandan.CGPlayerDissolve.fromObject(object[".guandan.cgPlayerDissolve"]);
- }
- if (object[".guandan.gcPlayerDissolve"] != null) {
- if (typeof object[".guandan.gcPlayerDissolve"] !== "object")
- throw TypeError(".pb.Message..guandan.gcPlayerDissolve: object expected");
- message[".guandan.gcPlayerDissolve"] = $root.guandan.GCPlayerDissolve.fromObject(object[".guandan.gcPlayerDissolve"]);
- }
- if (object[".guandan.cgPlayerDissolveAgree"] != null) {
- if (typeof object[".guandan.cgPlayerDissolveAgree"] !== "object")
- throw TypeError(".pb.Message..guandan.cgPlayerDissolveAgree: object expected");
- message[".guandan.cgPlayerDissolveAgree"] = $root.guandan.CGPlayerDissolveAgree.fromObject(object[".guandan.cgPlayerDissolveAgree"]);
- }
- if (object[".guandan.gcPlayerDissolveAgree"] != null) {
- if (typeof object[".guandan.gcPlayerDissolveAgree"] !== "object")
- throw TypeError(".pb.Message..guandan.gcPlayerDissolveAgree: object expected");
- message[".guandan.gcPlayerDissolveAgree"] = $root.guandan.GCPlayerDissolveAgree.fromObject(object[".guandan.gcPlayerDissolveAgree"]);
- }
- if (object[".guandan.gcLiuJu"] != null) {
- if (typeof object[".guandan.gcLiuJu"] !== "object")
- throw TypeError(".pb.Message..guandan.gcLiuJu: object expected");
- message[".guandan.gcLiuJu"] = $root.guandan.GCLiuJu.fromObject(object[".guandan.gcLiuJu"]);
- }
- if (object[".guandan.gcTotalSettle"] != null) {
- if (typeof object[".guandan.gcTotalSettle"] !== "object")
- throw TypeError(".pb.Message..guandan.gcTotalSettle: object expected");
- message[".guandan.gcTotalSettle"] = $root.guandan.GCTotalSettle.fromObject(object[".guandan.gcTotalSettle"]);
- }
- if (object[".guandan.gcKaiJin"] != null) {
- if (typeof object[".guandan.gcKaiJin"] !== "object")
- throw TypeError(".pb.Message..guandan.gcKaiJin: object expected");
- message[".guandan.gcKaiJin"] = $root.guandan.GCKaiJin.fromObject(object[".guandan.gcKaiJin"]);
- }
- if (object[".guandan.cgDisconnectPlayer"] != null) {
- if (typeof object[".guandan.cgDisconnectPlayer"] !== "object")
- throw TypeError(".pb.Message..guandan.cgDisconnectPlayer: object expected");
- message[".guandan.cgDisconnectPlayer"] = $root.guandan.CGDisconnectPlayer.fromObject(object[".guandan.cgDisconnectPlayer"]);
- }
- if (object[".guandan.gcPlayerTuoGuan"] != null) {
- if (typeof object[".guandan.gcPlayerTuoGuan"] !== "object")
- throw TypeError(".pb.Message..guandan.gcPlayerTuoGuan: object expected");
- message[".guandan.gcPlayerTuoGuan"] = $root.guandan.GCPlayerTuoGuan.fromObject(object[".guandan.gcPlayerTuoGuan"]);
- }
- if (object[".guandan.cgPlayerCancelTuoGuan"] != null) {
- if (typeof object[".guandan.cgPlayerCancelTuoGuan"] !== "object")
- throw TypeError(".pb.Message..guandan.cgPlayerCancelTuoGuan: object expected");
- message[".guandan.cgPlayerCancelTuoGuan"] = $root.guandan.CGPlayerCancelTuoGuan.fromObject(object[".guandan.cgPlayerCancelTuoGuan"]);
- }
- if (object[".guandan.gcPlayerCancelTuoGuan"] != null) {
- if (typeof object[".guandan.gcPlayerCancelTuoGuan"] !== "object")
- throw TypeError(".pb.Message..guandan.gcPlayerCancelTuoGuan: object expected");
- message[".guandan.gcPlayerCancelTuoGuan"] = $root.guandan.GCPlayerCancelTuoGuan.fromObject(object[".guandan.gcPlayerCancelTuoGuan"]);
- }
- if (object[".guandan.gcRoomRoundStart"] != null) {
- if (typeof object[".guandan.gcRoomRoundStart"] !== "object")
- throw TypeError(".pb.Message..guandan.gcRoomRoundStart: object expected");
- message[".guandan.gcRoomRoundStart"] = $root.guandan.GCRoomRoundStart.fromObject(object[".guandan.gcRoomRoundStart"]);
- }
- if (object[".guandan.gcPlayerRemainCardBroadcast"] != null) {
- if (typeof object[".guandan.gcPlayerRemainCardBroadcast"] !== "object")
- throw TypeError(".pb.Message..guandan.gcPlayerRemainCardBroadcast: object expected");
- message[".guandan.gcPlayerRemainCardBroadcast"] = $root.guandan.GCPlayerRemainCardBroadcast.fromObject(object[".guandan.gcPlayerRemainCardBroadcast"]);
- }
- if (object[".guandan.gcPlayerDoubleBroadcast"] != null) {
- if (typeof object[".guandan.gcPlayerDoubleBroadcast"] !== "object")
- throw TypeError(".pb.Message..guandan.gcPlayerDoubleBroadcast: object expected");
- message[".guandan.gcPlayerDoubleBroadcast"] = $root.guandan.GCPlayerDoubleBroadcast.fromObject(object[".guandan.gcPlayerDoubleBroadcast"]);
- }
- if (object[".guandan.gcTuanTuanZhuanShowCardBroadcast"] != null) {
- if (typeof object[".guandan.gcTuanTuanZhuanShowCardBroadcast"] !== "object")
- throw TypeError(".pb.Message..guandan.gcTuanTuanZhuanShowCardBroadcast: object expected");
- message[".guandan.gcTuanTuanZhuanShowCardBroadcast"] = $root.guandan.GCTuanTuanZhuanShowCardBroadcast.fromObject(object[".guandan.gcTuanTuanZhuanShowCardBroadcast"]);
- }
- if (object[".guandan.gcOppositePlayerCard"] != null) {
- if (typeof object[".guandan.gcOppositePlayerCard"] !== "object")
- throw TypeError(".pb.Message..guandan.gcOppositePlayerCard: object expected");
- message[".guandan.gcOppositePlayerCard"] = $root.guandan.GCOppositePlayerCard.fromObject(object[".guandan.gcOppositePlayerCard"]);
- }
- if (object[".guandan.cgPlayerDouble"] != null) {
- if (typeof object[".guandan.cgPlayerDouble"] !== "object")
- throw TypeError(".pb.Message..guandan.cgPlayerDouble: object expected");
- message[".guandan.cgPlayerDouble"] = $root.guandan.CGPlayerDouble.fromObject(object[".guandan.cgPlayerDouble"]);
- }
- if (object[".guandan.gcWaitPlayerDouble"] != null) {
- if (typeof object[".guandan.gcWaitPlayerDouble"] !== "object")
- throw TypeError(".pb.Message..guandan.gcWaitPlayerDouble: object expected");
- message[".guandan.gcWaitPlayerDouble"] = $root.guandan.GCWaitPlayerDouble.fromObject(object[".guandan.gcWaitPlayerDouble"]);
- }
- if (object[".guandan.gcBombDoubleBroadcast"] != null) {
- if (typeof object[".guandan.gcBombDoubleBroadcast"] !== "object")
- throw TypeError(".pb.Message..guandan.gcBombDoubleBroadcast: object expected");
- message[".guandan.gcBombDoubleBroadcast"] = $root.guandan.GCBombDoubleBroadcast.fromObject(object[".guandan.gcBombDoubleBroadcast"]);
- }
- if (object[".guandan.gcJieFengBroadcast"] != null) {
- if (typeof object[".guandan.gcJieFengBroadcast"] !== "object")
- throw TypeError(".pb.Message..guandan.gcJieFengBroadcast: object expected");
- message[".guandan.gcJieFengBroadcast"] = $root.guandan.GCJieFengBroadcast.fromObject(object[".guandan.gcJieFengBroadcast"]);
- }
- if (object[".guandan.gcStartArrangeCardBroadcast"] != null) {
- if (typeof object[".guandan.gcStartArrangeCardBroadcast"] !== "object")
- throw TypeError(".pb.Message..guandan.gcStartArrangeCardBroadcast: object expected");
- message[".guandan.gcStartArrangeCardBroadcast"] = $root.guandan.GCStartArrangeCardBroadcast.fromObject(object[".guandan.gcStartArrangeCardBroadcast"]);
- }
- if (object[".guandan.gcEndArrangeCardBroadcast"] != null) {
- if (typeof object[".guandan.gcEndArrangeCardBroadcast"] !== "object")
- throw TypeError(".pb.Message..guandan.gcEndArrangeCardBroadcast: object expected");
- message[".guandan.gcEndArrangeCardBroadcast"] = $root.guandan.GCEndArrangeCardBroadcast.fromObject(object[".guandan.gcEndArrangeCardBroadcast"]);
- }
- if (object[".guandan.gcRestCardBroadcast"] != null) {
- if (typeof object[".guandan.gcRestCardBroadcast"] !== "object")
- throw TypeError(".pb.Message..guandan.gcRestCardBroadcast: object expected");
- message[".guandan.gcRestCardBroadcast"] = $root.guandan.GCRestCardBroadcast.fromObject(object[".guandan.gcRestCardBroadcast"]);
- }
- if (object[".guandan.cgChat"] != null) {
- if (typeof object[".guandan.cgChat"] !== "object")
- throw TypeError(".pb.Message..guandan.cgChat: object expected");
- message[".guandan.cgChat"] = $root.guandan.CGChat.fromObject(object[".guandan.cgChat"]);
- }
- if (object[".guandan.gcChat"] != null) {
- if (typeof object[".guandan.gcChat"] !== "object")
- throw TypeError(".pb.Message..guandan.gcChat: object expected");
- message[".guandan.gcChat"] = $root.guandan.GCChat.fromObject(object[".guandan.gcChat"]);
- }
- if (object[".guandan.gcErrorNotice"] != null) {
- if (typeof object[".guandan.gcErrorNotice"] !== "object")
- throw TypeError(".pb.Message..guandan.gcErrorNotice: object expected");
- message[".guandan.gcErrorNotice"] = $root.guandan.GCErrorNotice.fromObject(object[".guandan.gcErrorNotice"]);
- }
- if (object[".guandan.gcKickOutReason"] != null) {
- if (typeof object[".guandan.gcKickOutReason"] !== "object")
- throw TypeError(".pb.Message..guandan.gcKickOutReason: object expected");
- message[".guandan.gcKickOutReason"] = $root.guandan.GCKickOutReason.fromObject(object[".guandan.gcKickOutReason"]);
- }
- if (object[".pb.cgLogin"] != null) {
- if (typeof object[".pb.cgLogin"] !== "object")
- throw TypeError(".pb.Message..pb.cgLogin: object expected");
- message[".pb.cgLogin"] = $root.pb.CGLogin.fromObject(object[".pb.cgLogin"]);
- }
- if (object[".pb.gcLogin"] != null) {
- if (typeof object[".pb.gcLogin"] !== "object")
- throw TypeError(".pb.Message..pb.gcLogin: object expected");
- message[".pb.gcLogin"] = $root.pb.GCLogin.fromObject(object[".pb.gcLogin"]);
- }
- if (object[".pb.cgPing"] != null) {
- if (typeof object[".pb.cgPing"] !== "object")
- throw TypeError(".pb.Message..pb.cgPing: object expected");
- message[".pb.cgPing"] = $root.pb.CGPing.fromObject(object[".pb.cgPing"]);
- }
- if (object[".pb.gcPing"] != null) {
- if (typeof object[".pb.gcPing"] !== "object")
- throw TypeError(".pb.Message..pb.gcPing: object expected");
- message[".pb.gcPing"] = $root.pb.GCPing.fromObject(object[".pb.gcPing"]);
- }
- return message;
- };
- /**
- * Creates a plain object from a Message message. Also converts values to other types if specified.
- * @function toObject
- * @memberof pb.Message
- * @static
- * @param {pb.Message} message Message
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- Message.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults) {
- object.messageType = 0;
- object[".pb.cgLogin"] = null;
- object[".pb.gcLogin"] = null;
- object[".pb.cgPing"] = null;
- object[".pb.gcPing"] = null;
- object[".guandan.cgJoinRoom"] = null;
- object[".guandan.gcJoinRoom"] = null;
- object[".guandan.gcJoinRoomBroadcast"] = null;
- object[".guandan.gcSelectBankerBroadcast"] = null;
- object[".guandan.gcDealCards"] = null;
- object[".guandan.gclearCircleBroadcast"] = null;
- object[".guandan.cgPlayerPlayCard"] = null;
- object[".guandan.gcPlayerPlayCard"] = null;
- object[".guandan.gcPlayerOperations"] = null;
- object[".guandan.gcWaitPlayerPlayCard"] = null;
- object[".guandan.gcWaitPlayerPlayCardBroadcast"] = null;
- object[".guandan.cgPlayerJinGong"] = null;
- object[".guandan.gcPlayerJinGongBroadcast"] = null;
- object[".guandan.cgPlayerHuanGong"] = null;
- object[".guandan.gcPlayerHuanGongBroadcast"] = null;
- object[".guandan.gcPlayerKangGongBroadcast"] = null;
- object[".guandan.gcWaitPlayerJinGongBroadcast"] = null;
- object[".guandan.gcWaitPlayerHuanGongBroadcast"] = null;
- object[".guandan.gcPlayerYou"] = null;
- object[".guandan.gcPlayerEmptyBroadcast"] = null;
- object[".guandan.cgPlayerOpreate"] = null;
- object[".guandan.gcClear"] = null;
- object[".guandan.gcReconnectPlayer"] = null;
- object[".guandan.gcDisconnectPlayer"] = null;
- object[".guandan.cgPlayerLeave"] = null;
- object[".guandan.gcPlayerLeave"] = null;
- object[".guandan.cgPlayerStart"] = null;
- object[".guandan.gcLastBroadcast"] = null;
- object[".guandan.gcPlayerStart"] = null;
- object[".guandan.cgPlayerDissolve"] = null;
- object[".guandan.gcPlayerDissolve"] = null;
- object[".guandan.cgPlayerDissolveAgree"] = null;
- object[".guandan.gcPlayerDissolveAgree"] = null;
- object[".guandan.gcLiuJu"] = null;
- object[".guandan.gcTotalSettle"] = null;
- object[".guandan.gcKaiJin"] = null;
- object[".guandan.cgDisconnectPlayer"] = null;
- object[".guandan.gcPlayerTuoGuan"] = null;
- object[".guandan.cgPlayerCancelTuoGuan"] = null;
- object[".guandan.gcPlayerCancelTuoGuan"] = null;
- object[".guandan.gcRoomRoundStart"] = null;
- object[".guandan.gcPlayerRemainCardBroadcast"] = null;
- object[".guandan.gcPlayerDoubleBroadcast"] = null;
- object[".guandan.gcTuanTuanZhuanShowCardBroadcast"] = null;
- object[".guandan.gcOppositePlayerCard"] = null;
- object[".guandan.cgPlayerDouble"] = null;
- object[".guandan.gcPlayerPlayCardBroadcast"] = null;
- object[".guandan.gcWaitPlayerDouble"] = null;
- object[".guandan.gcBombDoubleBroadcast"] = null;
- object[".guandan.gcJieFengBroadcast"] = null;
- object[".guandan.gcStartArrangeCardBroadcast"] = null;
- object[".guandan.gcEndArrangeCardBroadcast"] = null;
- object[".guandan.gcRestCardBroadcast"] = null;
- object[".guandan.cgChat"] = null;
- object[".guandan.gcChat"] = null;
- object[".guandan.gcErrorNotice"] = null;
- object[".guandan.gcKickOutReason"] = null;
- }
- if (message.messageType != null && message.hasOwnProperty("messageType"))
- object.messageType = message.messageType;
- if (message[".pb.cgLogin"] != null && message.hasOwnProperty(".pb.cgLogin"))
- object[".pb.cgLogin"] = $root.pb.CGLogin.toObject(message[".pb.cgLogin"], options);
- if (message[".pb.gcLogin"] != null && message.hasOwnProperty(".pb.gcLogin"))
- object[".pb.gcLogin"] = $root.pb.GCLogin.toObject(message[".pb.gcLogin"], options);
- if (message[".pb.cgPing"] != null && message.hasOwnProperty(".pb.cgPing"))
- object[".pb.cgPing"] = $root.pb.CGPing.toObject(message[".pb.cgPing"], options);
- if (message[".pb.gcPing"] != null && message.hasOwnProperty(".pb.gcPing"))
- object[".pb.gcPing"] = $root.pb.GCPing.toObject(message[".pb.gcPing"], options);
- if (message[".guandan.cgJoinRoom"] != null && message.hasOwnProperty(".guandan.cgJoinRoom"))
- object[".guandan.cgJoinRoom"] = $root.guandan.CGJoinRoom.toObject(message[".guandan.cgJoinRoom"], options);
- if (message[".guandan.gcJoinRoom"] != null && message.hasOwnProperty(".guandan.gcJoinRoom"))
- object[".guandan.gcJoinRoom"] = $root.guandan.GCJoinRoom.toObject(message[".guandan.gcJoinRoom"], options);
- if (message[".guandan.gcJoinRoomBroadcast"] != null && message.hasOwnProperty(".guandan.gcJoinRoomBroadcast"))
- object[".guandan.gcJoinRoomBroadcast"] = $root.guandan.GCJoinRoomBroadcast.toObject(message[".guandan.gcJoinRoomBroadcast"], options);
- if (message[".guandan.gcSelectBankerBroadcast"] != null && message.hasOwnProperty(".guandan.gcSelectBankerBroadcast"))
- object[".guandan.gcSelectBankerBroadcast"] = $root.guandan.GCSelectBankerBroadcast.toObject(message[".guandan.gcSelectBankerBroadcast"], options);
- if (message[".guandan.gcDealCards"] != null && message.hasOwnProperty(".guandan.gcDealCards"))
- object[".guandan.gcDealCards"] = $root.guandan.GCDealCards.toObject(message[".guandan.gcDealCards"], options);
- if (message[".guandan.gclearCircleBroadcast"] != null && message.hasOwnProperty(".guandan.gclearCircleBroadcast"))
- object[".guandan.gclearCircleBroadcast"] = $root.guandan.GCClearCircleBroadcast.toObject(message[".guandan.gclearCircleBroadcast"], options);
- if (message[".guandan.cgPlayerPlayCard"] != null && message.hasOwnProperty(".guandan.cgPlayerPlayCard"))
- object[".guandan.cgPlayerPlayCard"] = $root.guandan.CGPlayerPlayCard.toObject(message[".guandan.cgPlayerPlayCard"], options);
- if (message[".guandan.gcPlayerPlayCard"] != null && message.hasOwnProperty(".guandan.gcPlayerPlayCard"))
- object[".guandan.gcPlayerPlayCard"] = $root.guandan.GCPlayerPlayCard.toObject(message[".guandan.gcPlayerPlayCard"], options);
- if (message[".guandan.gcPlayerOperations"] != null && message.hasOwnProperty(".guandan.gcPlayerOperations"))
- object[".guandan.gcPlayerOperations"] = $root.guandan.GCPlayerOperations.toObject(message[".guandan.gcPlayerOperations"], options);
- if (message[".guandan.gcWaitPlayerPlayCard"] != null && message.hasOwnProperty(".guandan.gcWaitPlayerPlayCard"))
- object[".guandan.gcWaitPlayerPlayCard"] = $root.guandan.GCWaitPlayerPlayCard.toObject(message[".guandan.gcWaitPlayerPlayCard"], options);
- if (message[".guandan.gcWaitPlayerPlayCardBroadcast"] != null && message.hasOwnProperty(".guandan.gcWaitPlayerPlayCardBroadcast"))
- object[".guandan.gcWaitPlayerPlayCardBroadcast"] = $root.guandan.GCWaitPlayerPlayCardBroadcast.toObject(message[".guandan.gcWaitPlayerPlayCardBroadcast"], options);
- if (message[".guandan.cgPlayerJinGong"] != null && message.hasOwnProperty(".guandan.cgPlayerJinGong"))
- object[".guandan.cgPlayerJinGong"] = $root.guandan.CGPlayerJinGong.toObject(message[".guandan.cgPlayerJinGong"], options);
- if (message[".guandan.gcPlayerJinGongBroadcast"] != null && message.hasOwnProperty(".guandan.gcPlayerJinGongBroadcast"))
- object[".guandan.gcPlayerJinGongBroadcast"] = $root.guandan.GCPlayerJinGongBroadcast.toObject(message[".guandan.gcPlayerJinGongBroadcast"], options);
- if (message[".guandan.cgPlayerHuanGong"] != null && message.hasOwnProperty(".guandan.cgPlayerHuanGong"))
- object[".guandan.cgPlayerHuanGong"] = $root.guandan.CGPlayerHuanGong.toObject(message[".guandan.cgPlayerHuanGong"], options);
- if (message[".guandan.gcPlayerHuanGongBroadcast"] != null && message.hasOwnProperty(".guandan.gcPlayerHuanGongBroadcast"))
- object[".guandan.gcPlayerHuanGongBroadcast"] = $root.guandan.GCPlayerHuanGongBroadcast.toObject(message[".guandan.gcPlayerHuanGongBroadcast"], options);
- if (message[".guandan.gcPlayerKangGongBroadcast"] != null && message.hasOwnProperty(".guandan.gcPlayerKangGongBroadcast"))
- object[".guandan.gcPlayerKangGongBroadcast"] = $root.guandan.GCPlayerKangGongBroadcast.toObject(message[".guandan.gcPlayerKangGongBroadcast"], options);
- if (message[".guandan.gcWaitPlayerJinGongBroadcast"] != null && message.hasOwnProperty(".guandan.gcWaitPlayerJinGongBroadcast"))
- object[".guandan.gcWaitPlayerJinGongBroadcast"] = $root.guandan.GCWaitPlayerJinGongBroadcast.toObject(message[".guandan.gcWaitPlayerJinGongBroadcast"], options);
- if (message[".guandan.gcWaitPlayerHuanGongBroadcast"] != null && message.hasOwnProperty(".guandan.gcWaitPlayerHuanGongBroadcast"))
- object[".guandan.gcWaitPlayerHuanGongBroadcast"] = $root.guandan.GCWaitPlayerHuanGongBroadcast.toObject(message[".guandan.gcWaitPlayerHuanGongBroadcast"], options);
- if (message[".guandan.gcPlayerYou"] != null && message.hasOwnProperty(".guandan.gcPlayerYou"))
- object[".guandan.gcPlayerYou"] = $root.guandan.GCPlayerYou.toObject(message[".guandan.gcPlayerYou"], options);
- if (message[".guandan.gcPlayerEmptyBroadcast"] != null && message.hasOwnProperty(".guandan.gcPlayerEmptyBroadcast"))
- object[".guandan.gcPlayerEmptyBroadcast"] = $root.guandan.GCPlayerEmptyBroadcast.toObject(message[".guandan.gcPlayerEmptyBroadcast"], options);
- if (message[".guandan.cgPlayerOpreate"] != null && message.hasOwnProperty(".guandan.cgPlayerOpreate"))
- object[".guandan.cgPlayerOpreate"] = $root.guandan.CGPlayerOperate.toObject(message[".guandan.cgPlayerOpreate"], options);
- if (message[".guandan.gcClear"] != null && message.hasOwnProperty(".guandan.gcClear"))
- object[".guandan.gcClear"] = $root.guandan.GCClear.toObject(message[".guandan.gcClear"], options);
- if (message[".guandan.gcReconnectPlayer"] != null && message.hasOwnProperty(".guandan.gcReconnectPlayer"))
- object[".guandan.gcReconnectPlayer"] = $root.guandan.GCReconnectPlayer.toObject(message[".guandan.gcReconnectPlayer"], options);
- if (message[".guandan.gcDisconnectPlayer"] != null && message.hasOwnProperty(".guandan.gcDisconnectPlayer"))
- object[".guandan.gcDisconnectPlayer"] = $root.guandan.GCDisconnectPlayer.toObject(message[".guandan.gcDisconnectPlayer"], options);
- if (message[".guandan.cgPlayerLeave"] != null && message.hasOwnProperty(".guandan.cgPlayerLeave"))
- object[".guandan.cgPlayerLeave"] = $root.guandan.CGPlayerLeave.toObject(message[".guandan.cgPlayerLeave"], options);
- if (message[".guandan.gcPlayerLeave"] != null && message.hasOwnProperty(".guandan.gcPlayerLeave"))
- object[".guandan.gcPlayerLeave"] = $root.guandan.GCPlayerLeave.toObject(message[".guandan.gcPlayerLeave"], options);
- if (message[".guandan.cgPlayerStart"] != null && message.hasOwnProperty(".guandan.cgPlayerStart"))
- object[".guandan.cgPlayerStart"] = $root.guandan.CGPlayerStart.toObject(message[".guandan.cgPlayerStart"], options);
- if (message[".guandan.gcLastBroadcast"] != null && message.hasOwnProperty(".guandan.gcLastBroadcast"))
- object[".guandan.gcLastBroadcast"] = $root.guandan.GCLastBroadcast.toObject(message[".guandan.gcLastBroadcast"], options);
- if (message[".guandan.gcPlayerStart"] != null && message.hasOwnProperty(".guandan.gcPlayerStart"))
- object[".guandan.gcPlayerStart"] = $root.guandan.GCPlayerStart.toObject(message[".guandan.gcPlayerStart"], options);
- if (message[".guandan.cgPlayerDissolve"] != null && message.hasOwnProperty(".guandan.cgPlayerDissolve"))
- object[".guandan.cgPlayerDissolve"] = $root.guandan.CGPlayerDissolve.toObject(message[".guandan.cgPlayerDissolve"], options);
- if (message[".guandan.gcPlayerDissolve"] != null && message.hasOwnProperty(".guandan.gcPlayerDissolve"))
- object[".guandan.gcPlayerDissolve"] = $root.guandan.GCPlayerDissolve.toObject(message[".guandan.gcPlayerDissolve"], options);
- if (message[".guandan.cgPlayerDissolveAgree"] != null && message.hasOwnProperty(".guandan.cgPlayerDissolveAgree"))
- object[".guandan.cgPlayerDissolveAgree"] = $root.guandan.CGPlayerDissolveAgree.toObject(message[".guandan.cgPlayerDissolveAgree"], options);
- if (message[".guandan.gcPlayerDissolveAgree"] != null && message.hasOwnProperty(".guandan.gcPlayerDissolveAgree"))
- object[".guandan.gcPlayerDissolveAgree"] = $root.guandan.GCPlayerDissolveAgree.toObject(message[".guandan.gcPlayerDissolveAgree"], options);
- if (message[".guandan.gcLiuJu"] != null && message.hasOwnProperty(".guandan.gcLiuJu"))
- object[".guandan.gcLiuJu"] = $root.guandan.GCLiuJu.toObject(message[".guandan.gcLiuJu"], options);
- if (message[".guandan.gcTotalSettle"] != null && message.hasOwnProperty(".guandan.gcTotalSettle"))
- object[".guandan.gcTotalSettle"] = $root.guandan.GCTotalSettle.toObject(message[".guandan.gcTotalSettle"], options);
- if (message[".guandan.gcKaiJin"] != null && message.hasOwnProperty(".guandan.gcKaiJin"))
- object[".guandan.gcKaiJin"] = $root.guandan.GCKaiJin.toObject(message[".guandan.gcKaiJin"], options);
- if (message[".guandan.cgDisconnectPlayer"] != null && message.hasOwnProperty(".guandan.cgDisconnectPlayer"))
- object[".guandan.cgDisconnectPlayer"] = $root.guandan.CGDisconnectPlayer.toObject(message[".guandan.cgDisconnectPlayer"], options);
- if (message[".guandan.gcPlayerTuoGuan"] != null && message.hasOwnProperty(".guandan.gcPlayerTuoGuan"))
- object[".guandan.gcPlayerTuoGuan"] = $root.guandan.GCPlayerTuoGuan.toObject(message[".guandan.gcPlayerTuoGuan"], options);
- if (message[".guandan.cgPlayerCancelTuoGuan"] != null && message.hasOwnProperty(".guandan.cgPlayerCancelTuoGuan"))
- object[".guandan.cgPlayerCancelTuoGuan"] = $root.guandan.CGPlayerCancelTuoGuan.toObject(message[".guandan.cgPlayerCancelTuoGuan"], options);
- if (message[".guandan.gcPlayerCancelTuoGuan"] != null && message.hasOwnProperty(".guandan.gcPlayerCancelTuoGuan"))
- object[".guandan.gcPlayerCancelTuoGuan"] = $root.guandan.GCPlayerCancelTuoGuan.toObject(message[".guandan.gcPlayerCancelTuoGuan"], options);
- if (message[".guandan.gcRoomRoundStart"] != null && message.hasOwnProperty(".guandan.gcRoomRoundStart"))
- object[".guandan.gcRoomRoundStart"] = $root.guandan.GCRoomRoundStart.toObject(message[".guandan.gcRoomRoundStart"], options);
- if (message[".guandan.gcPlayerRemainCardBroadcast"] != null && message.hasOwnProperty(".guandan.gcPlayerRemainCardBroadcast"))
- object[".guandan.gcPlayerRemainCardBroadcast"] = $root.guandan.GCPlayerRemainCardBroadcast.toObject(message[".guandan.gcPlayerRemainCardBroadcast"], options);
- if (message[".guandan.gcPlayerDoubleBroadcast"] != null && message.hasOwnProperty(".guandan.gcPlayerDoubleBroadcast"))
- object[".guandan.gcPlayerDoubleBroadcast"] = $root.guandan.GCPlayerDoubleBroadcast.toObject(message[".guandan.gcPlayerDoubleBroadcast"], options);
- if (message[".guandan.gcTuanTuanZhuanShowCardBroadcast"] != null && message.hasOwnProperty(".guandan.gcTuanTuanZhuanShowCardBroadcast"))
- object[".guandan.gcTuanTuanZhuanShowCardBroadcast"] = $root.guandan.GCTuanTuanZhuanShowCardBroadcast.toObject(message[".guandan.gcTuanTuanZhuanShowCardBroadcast"], options);
- if (message[".guandan.gcOppositePlayerCard"] != null && message.hasOwnProperty(".guandan.gcOppositePlayerCard"))
- object[".guandan.gcOppositePlayerCard"] = $root.guandan.GCOppositePlayerCard.toObject(message[".guandan.gcOppositePlayerCard"], options);
- if (message[".guandan.cgPlayerDouble"] != null && message.hasOwnProperty(".guandan.cgPlayerDouble"))
- object[".guandan.cgPlayerDouble"] = $root.guandan.CGPlayerDouble.toObject(message[".guandan.cgPlayerDouble"], options);
- if (message[".guandan.gcPlayerPlayCardBroadcast"] != null && message.hasOwnProperty(".guandan.gcPlayerPlayCardBroadcast"))
- object[".guandan.gcPlayerPlayCardBroadcast"] = $root.guandan.GCPlayerPlayCardBroadcast.toObject(message[".guandan.gcPlayerPlayCardBroadcast"], options);
- if (message[".guandan.gcWaitPlayerDouble"] != null && message.hasOwnProperty(".guandan.gcWaitPlayerDouble"))
- object[".guandan.gcWaitPlayerDouble"] = $root.guandan.GCWaitPlayerDouble.toObject(message[".guandan.gcWaitPlayerDouble"], options);
- if (message[".guandan.gcBombDoubleBroadcast"] != null && message.hasOwnProperty(".guandan.gcBombDoubleBroadcast"))
- object[".guandan.gcBombDoubleBroadcast"] = $root.guandan.GCBombDoubleBroadcast.toObject(message[".guandan.gcBombDoubleBroadcast"], options);
- if (message[".guandan.gcJieFengBroadcast"] != null && message.hasOwnProperty(".guandan.gcJieFengBroadcast"))
- object[".guandan.gcJieFengBroadcast"] = $root.guandan.GCJieFengBroadcast.toObject(message[".guandan.gcJieFengBroadcast"], options);
- if (message[".guandan.gcStartArrangeCardBroadcast"] != null && message.hasOwnProperty(".guandan.gcStartArrangeCardBroadcast"))
- object[".guandan.gcStartArrangeCardBroadcast"] = $root.guandan.GCStartArrangeCardBroadcast.toObject(message[".guandan.gcStartArrangeCardBroadcast"], options);
- if (message[".guandan.gcEndArrangeCardBroadcast"] != null && message.hasOwnProperty(".guandan.gcEndArrangeCardBroadcast"))
- object[".guandan.gcEndArrangeCardBroadcast"] = $root.guandan.GCEndArrangeCardBroadcast.toObject(message[".guandan.gcEndArrangeCardBroadcast"], options);
- if (message[".guandan.gcRestCardBroadcast"] != null && message.hasOwnProperty(".guandan.gcRestCardBroadcast"))
- object[".guandan.gcRestCardBroadcast"] = $root.guandan.GCRestCardBroadcast.toObject(message[".guandan.gcRestCardBroadcast"], options);
- if (message[".guandan.cgChat"] != null && message.hasOwnProperty(".guandan.cgChat"))
- object[".guandan.cgChat"] = $root.guandan.CGChat.toObject(message[".guandan.cgChat"], options);
- if (message[".guandan.gcChat"] != null && message.hasOwnProperty(".guandan.gcChat"))
- object[".guandan.gcChat"] = $root.guandan.GCChat.toObject(message[".guandan.gcChat"], options);
- if (message[".guandan.gcErrorNotice"] != null && message.hasOwnProperty(".guandan.gcErrorNotice"))
- object[".guandan.gcErrorNotice"] = $root.guandan.GCErrorNotice.toObject(message[".guandan.gcErrorNotice"], options);
- if (message[".guandan.gcKickOutReason"] != null && message.hasOwnProperty(".guandan.gcKickOutReason"))
- object[".guandan.gcKickOutReason"] = $root.guandan.GCKickOutReason.toObject(message[".guandan.gcKickOutReason"], options);
- return object;
- };
- /**
- * Converts this Message to JSON.
- * @function toJSON
- * @memberof pb.Message
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- Message.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return Message;
- })();
- pb.CGLogin = (function() {
- /**
- * Properties of a CGLogin.
- * @memberof pb
- * @interface ICGLogin
- * @property {number|Long} playerId CGLogin playerId
- * @property {string} token CGLogin token
- */
- /**
- * Constructs a new CGLogin.
- * @memberof pb
- * @classdesc Represents a CGLogin.
- * @implements ICGLogin
- * @constructor
- * @param {pb.ICGLogin=} [properties] Properties to set
- */
- function CGLogin(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * CGLogin playerId.
- * @member {number|Long} playerId
- * @memberof pb.CGLogin
- * @instance
- */
- CGLogin.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * CGLogin token.
- * @member {string} token
- * @memberof pb.CGLogin
- * @instance
- */
- CGLogin.prototype.token = "";
- /**
- * Creates a new CGLogin instance using the specified properties.
- * @function create
- * @memberof pb.CGLogin
- * @static
- * @param {pb.ICGLogin=} [properties] Properties to set
- * @returns {pb.CGLogin} CGLogin instance
- */
- CGLogin.create = function create(properties) {
- return new CGLogin(properties);
- };
- /**
- * Encodes the specified CGLogin message. Does not implicitly {@link pb.CGLogin.verify|verify} messages.
- * @function encode
- * @memberof pb.CGLogin
- * @static
- * @param {pb.ICGLogin} message CGLogin message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- CGLogin.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.token);
- return writer;
- };
- /**
- * Encodes the specified CGLogin message, length delimited. Does not implicitly {@link pb.CGLogin.verify|verify} messages.
- * @function encodeDelimited
- * @memberof pb.CGLogin
- * @static
- * @param {pb.ICGLogin} message CGLogin message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- CGLogin.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a CGLogin message from the specified reader or buffer.
- * @function decode
- * @memberof pb.CGLogin
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {pb.CGLogin} CGLogin
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- CGLogin.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.pb.CGLogin();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.playerId = reader.int64();
- break;
- case 2:
- message.token = reader.string();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("playerId"))
- throw $util.ProtocolError("missing required 'playerId'", { instance: message });
- if (!message.hasOwnProperty("token"))
- throw $util.ProtocolError("missing required 'token'", { instance: message });
- return message;
- };
- /**
- * Decodes a CGLogin message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof pb.CGLogin
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {pb.CGLogin} CGLogin
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- CGLogin.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a CGLogin message.
- * @function verify
- * @memberof pb.CGLogin
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- CGLogin.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
- return "playerId: integer|Long expected";
- if (!$util.isString(message.token))
- return "token: string expected";
- return null;
- };
- /**
- * Creates a CGLogin message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof pb.CGLogin
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {pb.CGLogin} CGLogin
- */
- CGLogin.fromObject = function fromObject(object) {
- if (object instanceof $root.pb.CGLogin)
- return object;
- var message = new $root.pb.CGLogin();
- if (object.playerId != null)
- if ($util.Long)
- (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
- else if (typeof object.playerId === "string")
- message.playerId = parseInt(object.playerId, 10);
- else if (typeof object.playerId === "number")
- message.playerId = object.playerId;
- else if (typeof object.playerId === "object")
- message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
- if (object.token != null)
- message.token = String(object.token);
- return message;
- };
- /**
- * Creates a plain object from a CGLogin message. Also converts values to other types if specified.
- * @function toObject
- * @memberof pb.CGLogin
- * @static
- * @param {pb.CGLogin} message CGLogin
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- CGLogin.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults) {
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.playerId = options.longs === String ? "0" : 0;
- object.token = "";
- }
- if (message.playerId != null && message.hasOwnProperty("playerId"))
- if (typeof message.playerId === "number")
- object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
- else
- 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;
- if (message.token != null && message.hasOwnProperty("token"))
- object.token = message.token;
- return object;
- };
- /**
- * Converts this CGLogin to JSON.
- * @function toJSON
- * @memberof pb.CGLogin
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- CGLogin.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return CGLogin;
- })();
- pb.GCLogin = (function() {
- /**
- * Properties of a GCLogin.
- * @memberof pb
- * @interface IGCLogin
- * @property {number|Long} playerId GCLogin playerId
- */
- /**
- * Constructs a new GCLogin.
- * @memberof pb
- * @classdesc Represents a GCLogin.
- * @implements IGCLogin
- * @constructor
- * @param {pb.IGCLogin=} [properties] Properties to set
- */
- function GCLogin(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCLogin playerId.
- * @member {number|Long} playerId
- * @memberof pb.GCLogin
- * @instance
- */
- GCLogin.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new GCLogin instance using the specified properties.
- * @function create
- * @memberof pb.GCLogin
- * @static
- * @param {pb.IGCLogin=} [properties] Properties to set
- * @returns {pb.GCLogin} GCLogin instance
- */
- GCLogin.create = function create(properties) {
- return new GCLogin(properties);
- };
- /**
- * Encodes the specified GCLogin message. Does not implicitly {@link pb.GCLogin.verify|verify} messages.
- * @function encode
- * @memberof pb.GCLogin
- * @static
- * @param {pb.IGCLogin} message GCLogin message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCLogin.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
- return writer;
- };
- /**
- * Encodes the specified GCLogin message, length delimited. Does not implicitly {@link pb.GCLogin.verify|verify} messages.
- * @function encodeDelimited
- * @memberof pb.GCLogin
- * @static
- * @param {pb.IGCLogin} message GCLogin message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCLogin.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCLogin message from the specified reader or buffer.
- * @function decode
- * @memberof pb.GCLogin
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {pb.GCLogin} GCLogin
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCLogin.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.pb.GCLogin();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.playerId = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("playerId"))
- throw $util.ProtocolError("missing required 'playerId'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCLogin message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof pb.GCLogin
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {pb.GCLogin} GCLogin
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCLogin.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCLogin message.
- * @function verify
- * @memberof pb.GCLogin
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCLogin.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
- return "playerId: integer|Long expected";
- return null;
- };
- /**
- * Creates a GCLogin message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof pb.GCLogin
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {pb.GCLogin} GCLogin
- */
- GCLogin.fromObject = function fromObject(object) {
- if (object instanceof $root.pb.GCLogin)
- return object;
- var message = new $root.pb.GCLogin();
- if (object.playerId != null)
- if ($util.Long)
- (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
- else if (typeof object.playerId === "string")
- message.playerId = parseInt(object.playerId, 10);
- else if (typeof object.playerId === "number")
- message.playerId = object.playerId;
- else if (typeof object.playerId === "object")
- message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a GCLogin message. Also converts values to other types if specified.
- * @function toObject
- * @memberof pb.GCLogin
- * @static
- * @param {pb.GCLogin} message GCLogin
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCLogin.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults)
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.playerId = options.longs === String ? "0" : 0;
- if (message.playerId != null && message.hasOwnProperty("playerId"))
- if (typeof message.playerId === "number")
- object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
- else
- 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;
- return object;
- };
- /**
- * Converts this GCLogin to JSON.
- * @function toJSON
- * @memberof pb.GCLogin
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCLogin.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCLogin;
- })();
- pb.CGPing = (function() {
- /**
- * Properties of a CGPing.
- * @memberof pb
- * @interface ICGPing
- */
- /**
- * Constructs a new CGPing.
- * @memberof pb
- * @classdesc Represents a CGPing.
- * @implements ICGPing
- * @constructor
- * @param {pb.ICGPing=} [properties] Properties to set
- */
- function CGPing(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new CGPing instance using the specified properties.
- * @function create
- * @memberof pb.CGPing
- * @static
- * @param {pb.ICGPing=} [properties] Properties to set
- * @returns {pb.CGPing} CGPing instance
- */
- CGPing.create = function create(properties) {
- return new CGPing(properties);
- };
- /**
- * Encodes the specified CGPing message. Does not implicitly {@link pb.CGPing.verify|verify} messages.
- * @function encode
- * @memberof pb.CGPing
- * @static
- * @param {pb.ICGPing} message CGPing message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- CGPing.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified CGPing message, length delimited. Does not implicitly {@link pb.CGPing.verify|verify} messages.
- * @function encodeDelimited
- * @memberof pb.CGPing
- * @static
- * @param {pb.ICGPing} message CGPing message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- CGPing.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a CGPing message from the specified reader or buffer.
- * @function decode
- * @memberof pb.CGPing
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {pb.CGPing} CGPing
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- CGPing.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.pb.CGPing();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a CGPing message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof pb.CGPing
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {pb.CGPing} CGPing
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- CGPing.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a CGPing message.
- * @function verify
- * @memberof pb.CGPing
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- CGPing.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a CGPing message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof pb.CGPing
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {pb.CGPing} CGPing
- */
- CGPing.fromObject = function fromObject(object) {
- if (object instanceof $root.pb.CGPing)
- return object;
- return new $root.pb.CGPing();
- };
- /**
- * Creates a plain object from a CGPing message. Also converts values to other types if specified.
- * @function toObject
- * @memberof pb.CGPing
- * @static
- * @param {pb.CGPing} message CGPing
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- CGPing.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this CGPing to JSON.
- * @function toJSON
- * @memberof pb.CGPing
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- CGPing.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return CGPing;
- })();
- pb.GCPing = (function() {
- /**
- * Properties of a GCPing.
- * @memberof pb
- * @interface IGCPing
- * @property {number|Long} now GCPing now
- */
- /**
- * Constructs a new GCPing.
- * @memberof pb
- * @classdesc Represents a GCPing.
- * @implements IGCPing
- * @constructor
- * @param {pb.IGCPing=} [properties] Properties to set
- */
- function GCPing(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCPing now.
- * @member {number|Long} now
- * @memberof pb.GCPing
- * @instance
- */
- GCPing.prototype.now = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new GCPing instance using the specified properties.
- * @function create
- * @memberof pb.GCPing
- * @static
- * @param {pb.IGCPing=} [properties] Properties to set
- * @returns {pb.GCPing} GCPing instance
- */
- GCPing.create = function create(properties) {
- return new GCPing(properties);
- };
- /**
- * Encodes the specified GCPing message. Does not implicitly {@link pb.GCPing.verify|verify} messages.
- * @function encode
- * @memberof pb.GCPing
- * @static
- * @param {pb.IGCPing} message GCPing message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCPing.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.now);
- return writer;
- };
- /**
- * Encodes the specified GCPing message, length delimited. Does not implicitly {@link pb.GCPing.verify|verify} messages.
- * @function encodeDelimited
- * @memberof pb.GCPing
- * @static
- * @param {pb.IGCPing} message GCPing message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCPing.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCPing message from the specified reader or buffer.
- * @function decode
- * @memberof pb.GCPing
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {pb.GCPing} GCPing
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCPing.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.pb.GCPing();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.now = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("now"))
- throw $util.ProtocolError("missing required 'now'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCPing message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof pb.GCPing
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {pb.GCPing} GCPing
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCPing.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCPing message.
- * @function verify
- * @memberof pb.GCPing
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCPing.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.now) && !(message.now && $util.isInteger(message.now.low) && $util.isInteger(message.now.high)))
- return "now: integer|Long expected";
- return null;
- };
- /**
- * Creates a GCPing message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof pb.GCPing
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {pb.GCPing} GCPing
- */
- GCPing.fromObject = function fromObject(object) {
- if (object instanceof $root.pb.GCPing)
- return object;
- var message = new $root.pb.GCPing();
- if (object.now != null)
- if ($util.Long)
- (message.now = $util.Long.fromValue(object.now)).unsigned = false;
- else if (typeof object.now === "string")
- message.now = parseInt(object.now, 10);
- else if (typeof object.now === "number")
- message.now = object.now;
- else if (typeof object.now === "object")
- message.now = new $util.LongBits(object.now.low >>> 0, object.now.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a GCPing message. Also converts values to other types if specified.
- * @function toObject
- * @memberof pb.GCPing
- * @static
- * @param {pb.GCPing} message GCPing
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCPing.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults)
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.now = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.now = options.longs === String ? "0" : 0;
- if (message.now != null && message.hasOwnProperty("now"))
- if (typeof message.now === "number")
- object.now = options.longs === String ? String(message.now) : message.now;
- else
- 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;
- return object;
- };
- /**
- * Converts this GCPing to JSON.
- * @function toJSON
- * @memberof pb.GCPing
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCPing.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCPing;
- })();
- return pb;
- })();
- $root.guandan = (function() {
- /**
- * Namespace guandan.
- * @exports guandan
- * @namespace
- */
- var guandan = {};
- guandan.CGJoinRoom = (function() {
- /**
- * Properties of a CGJoinRoom.
- * @memberof guandan
- * @interface ICGJoinRoom
- * @property {number|Long} roomId CGJoinRoom roomId
- */
- /**
- * Constructs a new CGJoinRoom.
- * @memberof guandan
- * @classdesc Represents a CGJoinRoom.
- * @implements ICGJoinRoom
- * @constructor
- * @param {guandan.ICGJoinRoom=} [properties] Properties to set
- */
- function CGJoinRoom(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * CGJoinRoom roomId.
- * @member {number|Long} roomId
- * @memberof guandan.CGJoinRoom
- * @instance
- */
- CGJoinRoom.prototype.roomId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new CGJoinRoom instance using the specified properties.
- * @function create
- * @memberof guandan.CGJoinRoom
- * @static
- * @param {guandan.ICGJoinRoom=} [properties] Properties to set
- * @returns {guandan.CGJoinRoom} CGJoinRoom instance
- */
- CGJoinRoom.create = function create(properties) {
- return new CGJoinRoom(properties);
- };
- /**
- * Encodes the specified CGJoinRoom message. Does not implicitly {@link guandan.CGJoinRoom.verify|verify} messages.
- * @function encode
- * @memberof guandan.CGJoinRoom
- * @static
- * @param {guandan.ICGJoinRoom} message CGJoinRoom message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- CGJoinRoom.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.roomId);
- return writer;
- };
- /**
- * Encodes the specified CGJoinRoom message, length delimited. Does not implicitly {@link guandan.CGJoinRoom.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.CGJoinRoom
- * @static
- * @param {guandan.ICGJoinRoom} message CGJoinRoom message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- CGJoinRoom.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a CGJoinRoom message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.CGJoinRoom
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.CGJoinRoom} CGJoinRoom
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- CGJoinRoom.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.CGJoinRoom();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.roomId = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("roomId"))
- throw $util.ProtocolError("missing required 'roomId'", { instance: message });
- return message;
- };
- /**
- * Decodes a CGJoinRoom message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.CGJoinRoom
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.CGJoinRoom} CGJoinRoom
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- CGJoinRoom.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a CGJoinRoom message.
- * @function verify
- * @memberof guandan.CGJoinRoom
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- CGJoinRoom.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.roomId) && !(message.roomId && $util.isInteger(message.roomId.low) && $util.isInteger(message.roomId.high)))
- return "roomId: integer|Long expected";
- return null;
- };
- /**
- * Creates a CGJoinRoom message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.CGJoinRoom
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.CGJoinRoom} CGJoinRoom
- */
- CGJoinRoom.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.CGJoinRoom)
- return object;
- var message = new $root.guandan.CGJoinRoom();
- if (object.roomId != null)
- if ($util.Long)
- (message.roomId = $util.Long.fromValue(object.roomId)).unsigned = false;
- else if (typeof object.roomId === "string")
- message.roomId = parseInt(object.roomId, 10);
- else if (typeof object.roomId === "number")
- message.roomId = object.roomId;
- else if (typeof object.roomId === "object")
- message.roomId = new $util.LongBits(object.roomId.low >>> 0, object.roomId.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a CGJoinRoom message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.CGJoinRoom
- * @static
- * @param {guandan.CGJoinRoom} message CGJoinRoom
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- CGJoinRoom.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults)
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.roomId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.roomId = options.longs === String ? "0" : 0;
- if (message.roomId != null && message.hasOwnProperty("roomId"))
- if (typeof message.roomId === "number")
- object.roomId = options.longs === String ? String(message.roomId) : message.roomId;
- else
- 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;
- return object;
- };
- /**
- * Converts this CGJoinRoom to JSON.
- * @function toJSON
- * @memberof guandan.CGJoinRoom
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- CGJoinRoom.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return CGJoinRoom;
- })();
- guandan.GCPlayerInfo = (function() {
- /**
- * Properties of a GCPlayerInfo.
- * @memberof guandan
- * @interface IGCPlayerInfo
- * @property {number|Long} playerId GCPlayerInfo playerId
- * @property {string} image GCPlayerInfo image
- * @property {string} ip GCPlayerInfo ip
- * @property {number|Long} score GCPlayerInfo score
- * @property {number} position GCPlayerInfo position
- * @property {number} state GCPlayerInfo state
- * @property {number|null} [cardNum] GCPlayerInfo cardNum
- * @property {Array.<number>|null} [cardList] GCPlayerInfo cardList
- * @property {number} actualState GCPlayerInfo actualState
- * @property {string} name GCPlayerInfo name
- * @property {number} sex GCPlayerInfo sex
- * @property {number|Long|null} [gold] GCPlayerInfo gold
- * @property {boolean|null} [auto] GCPlayerInfo auto
- * @property {number|null} [isDouble] GCPlayerInfo isDouble
- * @property {Array.<number>|null} [cards] GCPlayerInfo cards
- * @property {boolean|null} [isPlayCircle] GCPlayerInfo isPlayCircle
- * @property {number|null} [settleIndex] GCPlayerInfo settleIndex
- */
- /**
- * Constructs a new GCPlayerInfo.
- * @memberof guandan
- * @classdesc Represents a GCPlayerInfo.
- * @implements IGCPlayerInfo
- * @constructor
- * @param {guandan.IGCPlayerInfo=} [properties] Properties to set
- */
- function GCPlayerInfo(properties) {
- this.cardList = [];
- this.cards = [];
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCPlayerInfo playerId.
- * @member {number|Long} playerId
- * @memberof guandan.GCPlayerInfo
- * @instance
- */
- GCPlayerInfo.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * GCPlayerInfo image.
- * @member {string} image
- * @memberof guandan.GCPlayerInfo
- * @instance
- */
- GCPlayerInfo.prototype.image = "";
- /**
- * GCPlayerInfo ip.
- * @member {string} ip
- * @memberof guandan.GCPlayerInfo
- * @instance
- */
- GCPlayerInfo.prototype.ip = "";
- /**
- * GCPlayerInfo score.
- * @member {number|Long} score
- * @memberof guandan.GCPlayerInfo
- * @instance
- */
- GCPlayerInfo.prototype.score = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * GCPlayerInfo position.
- * @member {number} position
- * @memberof guandan.GCPlayerInfo
- * @instance
- */
- GCPlayerInfo.prototype.position = 0;
- /**
- * GCPlayerInfo state.
- * @member {number} state
- * @memberof guandan.GCPlayerInfo
- * @instance
- */
- GCPlayerInfo.prototype.state = 0;
- /**
- * GCPlayerInfo cardNum.
- * @member {number} cardNum
- * @memberof guandan.GCPlayerInfo
- * @instance
- */
- GCPlayerInfo.prototype.cardNum = 0;
- /**
- * GCPlayerInfo cardList.
- * @member {Array.<number>} cardList
- * @memberof guandan.GCPlayerInfo
- * @instance
- */
- GCPlayerInfo.prototype.cardList = $util.emptyArray;
- /**
- * GCPlayerInfo actualState.
- * @member {number} actualState
- * @memberof guandan.GCPlayerInfo
- * @instance
- */
- GCPlayerInfo.prototype.actualState = 0;
- /**
- * GCPlayerInfo name.
- * @member {string} name
- * @memberof guandan.GCPlayerInfo
- * @instance
- */
- GCPlayerInfo.prototype.name = "";
- /**
- * GCPlayerInfo sex.
- * @member {number} sex
- * @memberof guandan.GCPlayerInfo
- * @instance
- */
- GCPlayerInfo.prototype.sex = 0;
- /**
- * GCPlayerInfo gold.
- * @member {number|Long} gold
- * @memberof guandan.GCPlayerInfo
- * @instance
- */
- GCPlayerInfo.prototype.gold = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * GCPlayerInfo auto.
- * @member {boolean} auto
- * @memberof guandan.GCPlayerInfo
- * @instance
- */
- GCPlayerInfo.prototype.auto = false;
- /**
- * GCPlayerInfo isDouble.
- * @member {number} isDouble
- * @memberof guandan.GCPlayerInfo
- * @instance
- */
- GCPlayerInfo.prototype.isDouble = 0;
- /**
- * GCPlayerInfo cards.
- * @member {Array.<number>} cards
- * @memberof guandan.GCPlayerInfo
- * @instance
- */
- GCPlayerInfo.prototype.cards = $util.emptyArray;
- /**
- * GCPlayerInfo isPlayCircle.
- * @member {boolean} isPlayCircle
- * @memberof guandan.GCPlayerInfo
- * @instance
- */
- GCPlayerInfo.prototype.isPlayCircle = false;
- /**
- * GCPlayerInfo settleIndex.
- * @member {number} settleIndex
- * @memberof guandan.GCPlayerInfo
- * @instance
- */
- GCPlayerInfo.prototype.settleIndex = 0;
- /**
- * Creates a new GCPlayerInfo instance using the specified properties.
- * @function create
- * @memberof guandan.GCPlayerInfo
- * @static
- * @param {guandan.IGCPlayerInfo=} [properties] Properties to set
- * @returns {guandan.GCPlayerInfo} GCPlayerInfo instance
- */
- GCPlayerInfo.create = function create(properties) {
- return new GCPlayerInfo(properties);
- };
- /**
- * Encodes the specified GCPlayerInfo message. Does not implicitly {@link guandan.GCPlayerInfo.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCPlayerInfo
- * @static
- * @param {guandan.IGCPlayerInfo} message GCPlayerInfo message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCPlayerInfo.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.image);
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.ip);
- writer.uint32(/* id 4, wireType 0 =*/32).int64(message.score);
- writer.uint32(/* id 5, wireType 0 =*/40).int32(message.position);
- writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state);
- if (message.cardNum != null && Object.hasOwnProperty.call(message, "cardNum"))
- writer.uint32(/* id 7, wireType 0 =*/56).int32(message.cardNum);
- if (message.cardList != null && message.cardList.length)
- for (var i = 0; i < message.cardList.length; ++i)
- writer.uint32(/* id 8, wireType 0 =*/64).int32(message.cardList[i]);
- writer.uint32(/* id 9, wireType 0 =*/72).int32(message.actualState);
- writer.uint32(/* id 10, wireType 2 =*/82).string(message.name);
- writer.uint32(/* id 11, wireType 0 =*/88).int32(message.sex);
- if (message.gold != null && Object.hasOwnProperty.call(message, "gold"))
- writer.uint32(/* id 12, wireType 0 =*/96).int64(message.gold);
- if (message.auto != null && Object.hasOwnProperty.call(message, "auto"))
- writer.uint32(/* id 13, wireType 0 =*/104).bool(message.auto);
- if (message.isDouble != null && Object.hasOwnProperty.call(message, "isDouble"))
- writer.uint32(/* id 14, wireType 0 =*/112).int32(message.isDouble);
- if (message.cards != null && message.cards.length)
- for (var i = 0; i < message.cards.length; ++i)
- writer.uint32(/* id 15, wireType 0 =*/120).int32(message.cards[i]);
- if (message.isPlayCircle != null && Object.hasOwnProperty.call(message, "isPlayCircle"))
- writer.uint32(/* id 16, wireType 0 =*/128).bool(message.isPlayCircle);
- if (message.settleIndex != null && Object.hasOwnProperty.call(message, "settleIndex"))
- writer.uint32(/* id 17, wireType 0 =*/136).int32(message.settleIndex);
- return writer;
- };
- /**
- * Encodes the specified GCPlayerInfo message, length delimited. Does not implicitly {@link guandan.GCPlayerInfo.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCPlayerInfo
- * @static
- * @param {guandan.IGCPlayerInfo} message GCPlayerInfo message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCPlayerInfo.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCPlayerInfo message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCPlayerInfo
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCPlayerInfo} GCPlayerInfo
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCPlayerInfo.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCPlayerInfo();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.playerId = reader.int64();
- break;
- case 2:
- message.image = reader.string();
- break;
- case 3:
- message.ip = reader.string();
- break;
- case 4:
- message.score = reader.int64();
- break;
- case 5:
- message.position = reader.int32();
- break;
- case 6:
- message.state = reader.int32();
- break;
- case 7:
- message.cardNum = reader.int32();
- break;
- case 8:
- if (!(message.cardList && message.cardList.length))
- message.cardList = [];
- if ((tag & 7) === 2) {
- var end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.cardList.push(reader.int32());
- } else
- message.cardList.push(reader.int32());
- break;
- case 9:
- message.actualState = reader.int32();
- break;
- case 10:
- message.name = reader.string();
- break;
- case 11:
- message.sex = reader.int32();
- break;
- case 12:
- message.gold = reader.int64();
- break;
- case 13:
- message.auto = reader.bool();
- break;
- case 14:
- message.isDouble = reader.int32();
- break;
- case 15:
- if (!(message.cards && message.cards.length))
- message.cards = [];
- if ((tag & 7) === 2) {
- var end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.cards.push(reader.int32());
- } else
- message.cards.push(reader.int32());
- break;
- case 16:
- message.isPlayCircle = reader.bool();
- break;
- case 17:
- message.settleIndex = reader.int32();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("playerId"))
- throw $util.ProtocolError("missing required 'playerId'", { instance: message });
- if (!message.hasOwnProperty("image"))
- throw $util.ProtocolError("missing required 'image'", { instance: message });
- if (!message.hasOwnProperty("ip"))
- throw $util.ProtocolError("missing required 'ip'", { instance: message });
- if (!message.hasOwnProperty("score"))
- throw $util.ProtocolError("missing required 'score'", { instance: message });
- if (!message.hasOwnProperty("position"))
- throw $util.ProtocolError("missing required 'position'", { instance: message });
- if (!message.hasOwnProperty("state"))
- throw $util.ProtocolError("missing required 'state'", { instance: message });
- if (!message.hasOwnProperty("actualState"))
- throw $util.ProtocolError("missing required 'actualState'", { instance: message });
- if (!message.hasOwnProperty("name"))
- throw $util.ProtocolError("missing required 'name'", { instance: message });
- if (!message.hasOwnProperty("sex"))
- throw $util.ProtocolError("missing required 'sex'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCPlayerInfo message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCPlayerInfo
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCPlayerInfo} GCPlayerInfo
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCPlayerInfo.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCPlayerInfo message.
- * @function verify
- * @memberof guandan.GCPlayerInfo
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCPlayerInfo.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
- return "playerId: integer|Long expected";
- if (!$util.isString(message.image))
- return "image: string expected";
- if (!$util.isString(message.ip))
- return "ip: string expected";
- if (!$util.isInteger(message.score) && !(message.score && $util.isInteger(message.score.low) && $util.isInteger(message.score.high)))
- return "score: integer|Long expected";
- if (!$util.isInteger(message.position))
- return "position: integer expected";
- if (!$util.isInteger(message.state))
- return "state: integer expected";
- if (message.cardNum != null && message.hasOwnProperty("cardNum"))
- if (!$util.isInteger(message.cardNum))
- return "cardNum: integer expected";
- if (message.cardList != null && message.hasOwnProperty("cardList")) {
- if (!Array.isArray(message.cardList))
- return "cardList: array expected";
- for (var i = 0; i < message.cardList.length; ++i)
- if (!$util.isInteger(message.cardList[i]))
- return "cardList: integer[] expected";
- }
- if (!$util.isInteger(message.actualState))
- return "actualState: integer expected";
- if (!$util.isString(message.name))
- return "name: string expected";
- if (!$util.isInteger(message.sex))
- return "sex: integer expected";
- if (message.gold != null && message.hasOwnProperty("gold"))
- if (!$util.isInteger(message.gold) && !(message.gold && $util.isInteger(message.gold.low) && $util.isInteger(message.gold.high)))
- return "gold: integer|Long expected";
- if (message.auto != null && message.hasOwnProperty("auto"))
- if (typeof message.auto !== "boolean")
- return "auto: boolean expected";
- if (message.isDouble != null && message.hasOwnProperty("isDouble"))
- if (!$util.isInteger(message.isDouble))
- return "isDouble: integer expected";
- if (message.cards != null && message.hasOwnProperty("cards")) {
- if (!Array.isArray(message.cards))
- return "cards: array expected";
- for (var i = 0; i < message.cards.length; ++i)
- if (!$util.isInteger(message.cards[i]))
- return "cards: integer[] expected";
- }
- if (message.isPlayCircle != null && message.hasOwnProperty("isPlayCircle"))
- if (typeof message.isPlayCircle !== "boolean")
- return "isPlayCircle: boolean expected";
- if (message.settleIndex != null && message.hasOwnProperty("settleIndex"))
- if (!$util.isInteger(message.settleIndex))
- return "settleIndex: integer expected";
- return null;
- };
- /**
- * Creates a GCPlayerInfo message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCPlayerInfo
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCPlayerInfo} GCPlayerInfo
- */
- GCPlayerInfo.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCPlayerInfo)
- return object;
- var message = new $root.guandan.GCPlayerInfo();
- if (object.playerId != null)
- if ($util.Long)
- (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
- else if (typeof object.playerId === "string")
- message.playerId = parseInt(object.playerId, 10);
- else if (typeof object.playerId === "number")
- message.playerId = object.playerId;
- else if (typeof object.playerId === "object")
- message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
- if (object.image != null)
- message.image = String(object.image);
- if (object.ip != null)
- message.ip = String(object.ip);
- if (object.score != null)
- if ($util.Long)
- (message.score = $util.Long.fromValue(object.score)).unsigned = false;
- else if (typeof object.score === "string")
- message.score = parseInt(object.score, 10);
- else if (typeof object.score === "number")
- message.score = object.score;
- else if (typeof object.score === "object")
- message.score = new $util.LongBits(object.score.low >>> 0, object.score.high >>> 0).toNumber();
- if (object.position != null)
- message.position = object.position | 0;
- if (object.state != null)
- message.state = object.state | 0;
- if (object.cardNum != null)
- message.cardNum = object.cardNum | 0;
- if (object.cardList) {
- if (!Array.isArray(object.cardList))
- throw TypeError(".guandan.GCPlayerInfo.cardList: array expected");
- message.cardList = [];
- for (var i = 0; i < object.cardList.length; ++i)
- message.cardList[i] = object.cardList[i] | 0;
- }
- if (object.actualState != null)
- message.actualState = object.actualState | 0;
- if (object.name != null)
- message.name = String(object.name);
- if (object.sex != null)
- message.sex = object.sex | 0;
- if (object.gold != null)
- if ($util.Long)
- (message.gold = $util.Long.fromValue(object.gold)).unsigned = false;
- else if (typeof object.gold === "string")
- message.gold = parseInt(object.gold, 10);
- else if (typeof object.gold === "number")
- message.gold = object.gold;
- else if (typeof object.gold === "object")
- message.gold = new $util.LongBits(object.gold.low >>> 0, object.gold.high >>> 0).toNumber();
- if (object.auto != null)
- message.auto = Boolean(object.auto);
- if (object.isDouble != null)
- message.isDouble = object.isDouble | 0;
- if (object.cards) {
- if (!Array.isArray(object.cards))
- throw TypeError(".guandan.GCPlayerInfo.cards: array expected");
- message.cards = [];
- for (var i = 0; i < object.cards.length; ++i)
- message.cards[i] = object.cards[i] | 0;
- }
- if (object.isPlayCircle != null)
- message.isPlayCircle = Boolean(object.isPlayCircle);
- if (object.settleIndex != null)
- message.settleIndex = object.settleIndex | 0;
- return message;
- };
- /**
- * Creates a plain object from a GCPlayerInfo message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCPlayerInfo
- * @static
- * @param {guandan.GCPlayerInfo} message GCPlayerInfo
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCPlayerInfo.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.arrays || options.defaults) {
- object.cardList = [];
- object.cards = [];
- }
- if (options.defaults) {
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.playerId = options.longs === String ? "0" : 0;
- object.image = "";
- object.ip = "";
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.score = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.score = options.longs === String ? "0" : 0;
- object.position = 0;
- object.state = 0;
- object.cardNum = 0;
- object.actualState = 0;
- object.name = "";
- object.sex = 0;
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.gold = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.gold = options.longs === String ? "0" : 0;
- object.auto = false;
- object.isDouble = 0;
- object.isPlayCircle = false;
- object.settleIndex = 0;
- }
- if (message.playerId != null && message.hasOwnProperty("playerId"))
- if (typeof message.playerId === "number")
- object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
- else
- 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;
- if (message.image != null && message.hasOwnProperty("image"))
- object.image = message.image;
- if (message.ip != null && message.hasOwnProperty("ip"))
- object.ip = message.ip;
- if (message.score != null && message.hasOwnProperty("score"))
- if (typeof message.score === "number")
- object.score = options.longs === String ? String(message.score) : message.score;
- else
- 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;
- if (message.position != null && message.hasOwnProperty("position"))
- object.position = message.position;
- if (message.state != null && message.hasOwnProperty("state"))
- object.state = message.state;
- if (message.cardNum != null && message.hasOwnProperty("cardNum"))
- object.cardNum = message.cardNum;
- if (message.cardList && message.cardList.length) {
- object.cardList = [];
- for (var j = 0; j < message.cardList.length; ++j)
- object.cardList[j] = message.cardList[j];
- }
- if (message.actualState != null && message.hasOwnProperty("actualState"))
- object.actualState = message.actualState;
- if (message.name != null && message.hasOwnProperty("name"))
- object.name = message.name;
- if (message.sex != null && message.hasOwnProperty("sex"))
- object.sex = message.sex;
- if (message.gold != null && message.hasOwnProperty("gold"))
- if (typeof message.gold === "number")
- object.gold = options.longs === String ? String(message.gold) : message.gold;
- else
- 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;
- if (message.auto != null && message.hasOwnProperty("auto"))
- object.auto = message.auto;
- if (message.isDouble != null && message.hasOwnProperty("isDouble"))
- object.isDouble = message.isDouble;
- if (message.cards && message.cards.length) {
- object.cards = [];
- for (var j = 0; j < message.cards.length; ++j)
- object.cards[j] = message.cards[j];
- }
- if (message.isPlayCircle != null && message.hasOwnProperty("isPlayCircle"))
- object.isPlayCircle = message.isPlayCircle;
- if (message.settleIndex != null && message.hasOwnProperty("settleIndex"))
- object.settleIndex = message.settleIndex;
- return object;
- };
- /**
- * Converts this GCPlayerInfo to JSON.
- * @function toJSON
- * @memberof guandan.GCPlayerInfo
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCPlayerInfo.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCPlayerInfo;
- })();
- guandan.GCJinGongInfo = (function() {
- /**
- * Properties of a GCJinGongInfo.
- * @memberof guandan
- * @interface IGCJinGongInfo
- * @property {number|Long} playerId GCJinGongInfo playerId
- * @property {Array.<number>|null} [cards] GCJinGongInfo cards
- */
- /**
- * Constructs a new GCJinGongInfo.
- * @memberof guandan
- * @classdesc Represents a GCJinGongInfo.
- * @implements IGCJinGongInfo
- * @constructor
- * @param {guandan.IGCJinGongInfo=} [properties] Properties to set
- */
- function GCJinGongInfo(properties) {
- this.cards = [];
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCJinGongInfo playerId.
- * @member {number|Long} playerId
- * @memberof guandan.GCJinGongInfo
- * @instance
- */
- GCJinGongInfo.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * GCJinGongInfo cards.
- * @member {Array.<number>} cards
- * @memberof guandan.GCJinGongInfo
- * @instance
- */
- GCJinGongInfo.prototype.cards = $util.emptyArray;
- /**
- * Creates a new GCJinGongInfo instance using the specified properties.
- * @function create
- * @memberof guandan.GCJinGongInfo
- * @static
- * @param {guandan.IGCJinGongInfo=} [properties] Properties to set
- * @returns {guandan.GCJinGongInfo} GCJinGongInfo instance
- */
- GCJinGongInfo.create = function create(properties) {
- return new GCJinGongInfo(properties);
- };
- /**
- * Encodes the specified GCJinGongInfo message. Does not implicitly {@link guandan.GCJinGongInfo.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCJinGongInfo
- * @static
- * @param {guandan.IGCJinGongInfo} message GCJinGongInfo message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCJinGongInfo.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
- if (message.cards != null && message.cards.length)
- for (var i = 0; i < message.cards.length; ++i)
- writer.uint32(/* id 2, wireType 0 =*/16).int32(message.cards[i]);
- return writer;
- };
- /**
- * Encodes the specified GCJinGongInfo message, length delimited. Does not implicitly {@link guandan.GCJinGongInfo.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCJinGongInfo
- * @static
- * @param {guandan.IGCJinGongInfo} message GCJinGongInfo message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCJinGongInfo.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCJinGongInfo message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCJinGongInfo
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCJinGongInfo} GCJinGongInfo
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCJinGongInfo.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCJinGongInfo();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.playerId = reader.int64();
- break;
- case 2:
- if (!(message.cards && message.cards.length))
- message.cards = [];
- if ((tag & 7) === 2) {
- var end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.cards.push(reader.int32());
- } else
- message.cards.push(reader.int32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("playerId"))
- throw $util.ProtocolError("missing required 'playerId'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCJinGongInfo message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCJinGongInfo
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCJinGongInfo} GCJinGongInfo
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCJinGongInfo.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCJinGongInfo message.
- * @function verify
- * @memberof guandan.GCJinGongInfo
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCJinGongInfo.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
- return "playerId: integer|Long expected";
- if (message.cards != null && message.hasOwnProperty("cards")) {
- if (!Array.isArray(message.cards))
- return "cards: array expected";
- for (var i = 0; i < message.cards.length; ++i)
- if (!$util.isInteger(message.cards[i]))
- return "cards: integer[] expected";
- }
- return null;
- };
- /**
- * Creates a GCJinGongInfo message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCJinGongInfo
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCJinGongInfo} GCJinGongInfo
- */
- GCJinGongInfo.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCJinGongInfo)
- return object;
- var message = new $root.guandan.GCJinGongInfo();
- if (object.playerId != null)
- if ($util.Long)
- (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
- else if (typeof object.playerId === "string")
- message.playerId = parseInt(object.playerId, 10);
- else if (typeof object.playerId === "number")
- message.playerId = object.playerId;
- else if (typeof object.playerId === "object")
- message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
- if (object.cards) {
- if (!Array.isArray(object.cards))
- throw TypeError(".guandan.GCJinGongInfo.cards: array expected");
- message.cards = [];
- for (var i = 0; i < object.cards.length; ++i)
- message.cards[i] = object.cards[i] | 0;
- }
- return message;
- };
- /**
- * Creates a plain object from a GCJinGongInfo message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCJinGongInfo
- * @static
- * @param {guandan.GCJinGongInfo} message GCJinGongInfo
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCJinGongInfo.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.arrays || options.defaults)
- object.cards = [];
- if (options.defaults)
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.playerId = options.longs === String ? "0" : 0;
- if (message.playerId != null && message.hasOwnProperty("playerId"))
- if (typeof message.playerId === "number")
- object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
- else
- 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;
- if (message.cards && message.cards.length) {
- object.cards = [];
- for (var j = 0; j < message.cards.length; ++j)
- object.cards[j] = message.cards[j];
- }
- return object;
- };
- /**
- * Converts this GCJinGongInfo to JSON.
- * @function toJSON
- * @memberof guandan.GCJinGongInfo
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCJinGongInfo.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCJinGongInfo;
- })();
- guandan.GCHuanGongInfo = (function() {
- /**
- * Properties of a GCHuanGongInfo.
- * @memberof guandan
- * @interface IGCHuanGongInfo
- * @property {number|Long} huanGongPlayerId GCHuanGongInfo huanGongPlayerId
- * @property {number|Long} jinGongPlayerId GCHuanGongInfo jinGongPlayerId
- * @property {Array.<number>|null} [huanGongCards] GCHuanGongInfo huanGongCards
- * @property {Array.<number>|null} [jinGongCards] GCHuanGongInfo jinGongCards
- */
- /**
- * Constructs a new GCHuanGongInfo.
- * @memberof guandan
- * @classdesc Represents a GCHuanGongInfo.
- * @implements IGCHuanGongInfo
- * @constructor
- * @param {guandan.IGCHuanGongInfo=} [properties] Properties to set
- */
- function GCHuanGongInfo(properties) {
- this.huanGongCards = [];
- this.jinGongCards = [];
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCHuanGongInfo huanGongPlayerId.
- * @member {number|Long} huanGongPlayerId
- * @memberof guandan.GCHuanGongInfo
- * @instance
- */
- GCHuanGongInfo.prototype.huanGongPlayerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * GCHuanGongInfo jinGongPlayerId.
- * @member {number|Long} jinGongPlayerId
- * @memberof guandan.GCHuanGongInfo
- * @instance
- */
- GCHuanGongInfo.prototype.jinGongPlayerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * GCHuanGongInfo huanGongCards.
- * @member {Array.<number>} huanGongCards
- * @memberof guandan.GCHuanGongInfo
- * @instance
- */
- GCHuanGongInfo.prototype.huanGongCards = $util.emptyArray;
- /**
- * GCHuanGongInfo jinGongCards.
- * @member {Array.<number>} jinGongCards
- * @memberof guandan.GCHuanGongInfo
- * @instance
- */
- GCHuanGongInfo.prototype.jinGongCards = $util.emptyArray;
- /**
- * Creates a new GCHuanGongInfo instance using the specified properties.
- * @function create
- * @memberof guandan.GCHuanGongInfo
- * @static
- * @param {guandan.IGCHuanGongInfo=} [properties] Properties to set
- * @returns {guandan.GCHuanGongInfo} GCHuanGongInfo instance
- */
- GCHuanGongInfo.create = function create(properties) {
- return new GCHuanGongInfo(properties);
- };
- /**
- * Encodes the specified GCHuanGongInfo message. Does not implicitly {@link guandan.GCHuanGongInfo.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCHuanGongInfo
- * @static
- * @param {guandan.IGCHuanGongInfo} message GCHuanGongInfo message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCHuanGongInfo.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.huanGongPlayerId);
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.jinGongPlayerId);
- if (message.huanGongCards != null && message.huanGongCards.length)
- for (var i = 0; i < message.huanGongCards.length; ++i)
- writer.uint32(/* id 3, wireType 0 =*/24).int32(message.huanGongCards[i]);
- if (message.jinGongCards != null && message.jinGongCards.length)
- for (var i = 0; i < message.jinGongCards.length; ++i)
- writer.uint32(/* id 4, wireType 0 =*/32).int32(message.jinGongCards[i]);
- return writer;
- };
- /**
- * Encodes the specified GCHuanGongInfo message, length delimited. Does not implicitly {@link guandan.GCHuanGongInfo.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCHuanGongInfo
- * @static
- * @param {guandan.IGCHuanGongInfo} message GCHuanGongInfo message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCHuanGongInfo.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCHuanGongInfo message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCHuanGongInfo
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCHuanGongInfo} GCHuanGongInfo
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCHuanGongInfo.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCHuanGongInfo();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.huanGongPlayerId = reader.int64();
- break;
- case 2:
- message.jinGongPlayerId = reader.int64();
- break;
- case 3:
- if (!(message.huanGongCards && message.huanGongCards.length))
- message.huanGongCards = [];
- if ((tag & 7) === 2) {
- var end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.huanGongCards.push(reader.int32());
- } else
- message.huanGongCards.push(reader.int32());
- break;
- case 4:
- if (!(message.jinGongCards && message.jinGongCards.length))
- message.jinGongCards = [];
- if ((tag & 7) === 2) {
- var end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.jinGongCards.push(reader.int32());
- } else
- message.jinGongCards.push(reader.int32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("huanGongPlayerId"))
- throw $util.ProtocolError("missing required 'huanGongPlayerId'", { instance: message });
- if (!message.hasOwnProperty("jinGongPlayerId"))
- throw $util.ProtocolError("missing required 'jinGongPlayerId'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCHuanGongInfo message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCHuanGongInfo
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCHuanGongInfo} GCHuanGongInfo
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCHuanGongInfo.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCHuanGongInfo message.
- * @function verify
- * @memberof guandan.GCHuanGongInfo
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCHuanGongInfo.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.huanGongPlayerId) && !(message.huanGongPlayerId && $util.isInteger(message.huanGongPlayerId.low) && $util.isInteger(message.huanGongPlayerId.high)))
- return "huanGongPlayerId: integer|Long expected";
- if (!$util.isInteger(message.jinGongPlayerId) && !(message.jinGongPlayerId && $util.isInteger(message.jinGongPlayerId.low) && $util.isInteger(message.jinGongPlayerId.high)))
- return "jinGongPlayerId: integer|Long expected";
- if (message.huanGongCards != null && message.hasOwnProperty("huanGongCards")) {
- if (!Array.isArray(message.huanGongCards))
- return "huanGongCards: array expected";
- for (var i = 0; i < message.huanGongCards.length; ++i)
- if (!$util.isInteger(message.huanGongCards[i]))
- return "huanGongCards: integer[] expected";
- }
- if (message.jinGongCards != null && message.hasOwnProperty("jinGongCards")) {
- if (!Array.isArray(message.jinGongCards))
- return "jinGongCards: array expected";
- for (var i = 0; i < message.jinGongCards.length; ++i)
- if (!$util.isInteger(message.jinGongCards[i]))
- return "jinGongCards: integer[] expected";
- }
- return null;
- };
- /**
- * Creates a GCHuanGongInfo message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCHuanGongInfo
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCHuanGongInfo} GCHuanGongInfo
- */
- GCHuanGongInfo.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCHuanGongInfo)
- return object;
- var message = new $root.guandan.GCHuanGongInfo();
- if (object.huanGongPlayerId != null)
- if ($util.Long)
- (message.huanGongPlayerId = $util.Long.fromValue(object.huanGongPlayerId)).unsigned = false;
- else if (typeof object.huanGongPlayerId === "string")
- message.huanGongPlayerId = parseInt(object.huanGongPlayerId, 10);
- else if (typeof object.huanGongPlayerId === "number")
- message.huanGongPlayerId = object.huanGongPlayerId;
- else if (typeof object.huanGongPlayerId === "object")
- message.huanGongPlayerId = new $util.LongBits(object.huanGongPlayerId.low >>> 0, object.huanGongPlayerId.high >>> 0).toNumber();
- if (object.jinGongPlayerId != null)
- if ($util.Long)
- (message.jinGongPlayerId = $util.Long.fromValue(object.jinGongPlayerId)).unsigned = false;
- else if (typeof object.jinGongPlayerId === "string")
- message.jinGongPlayerId = parseInt(object.jinGongPlayerId, 10);
- else if (typeof object.jinGongPlayerId === "number")
- message.jinGongPlayerId = object.jinGongPlayerId;
- else if (typeof object.jinGongPlayerId === "object")
- message.jinGongPlayerId = new $util.LongBits(object.jinGongPlayerId.low >>> 0, object.jinGongPlayerId.high >>> 0).toNumber();
- if (object.huanGongCards) {
- if (!Array.isArray(object.huanGongCards))
- throw TypeError(".guandan.GCHuanGongInfo.huanGongCards: array expected");
- message.huanGongCards = [];
- for (var i = 0; i < object.huanGongCards.length; ++i)
- message.huanGongCards[i] = object.huanGongCards[i] | 0;
- }
- if (object.jinGongCards) {
- if (!Array.isArray(object.jinGongCards))
- throw TypeError(".guandan.GCHuanGongInfo.jinGongCards: array expected");
- message.jinGongCards = [];
- for (var i = 0; i < object.jinGongCards.length; ++i)
- message.jinGongCards[i] = object.jinGongCards[i] | 0;
- }
- return message;
- };
- /**
- * Creates a plain object from a GCHuanGongInfo message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCHuanGongInfo
- * @static
- * @param {guandan.GCHuanGongInfo} message GCHuanGongInfo
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCHuanGongInfo.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.arrays || options.defaults) {
- object.huanGongCards = [];
- object.jinGongCards = [];
- }
- if (options.defaults) {
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.huanGongPlayerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.huanGongPlayerId = options.longs === String ? "0" : 0;
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.jinGongPlayerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.jinGongPlayerId = options.longs === String ? "0" : 0;
- }
- if (message.huanGongPlayerId != null && message.hasOwnProperty("huanGongPlayerId"))
- if (typeof message.huanGongPlayerId === "number")
- object.huanGongPlayerId = options.longs === String ? String(message.huanGongPlayerId) : message.huanGongPlayerId;
- else
- 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;
- if (message.jinGongPlayerId != null && message.hasOwnProperty("jinGongPlayerId"))
- if (typeof message.jinGongPlayerId === "number")
- object.jinGongPlayerId = options.longs === String ? String(message.jinGongPlayerId) : message.jinGongPlayerId;
- else
- 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;
- if (message.huanGongCards && message.huanGongCards.length) {
- object.huanGongCards = [];
- for (var j = 0; j < message.huanGongCards.length; ++j)
- object.huanGongCards[j] = message.huanGongCards[j];
- }
- if (message.jinGongCards && message.jinGongCards.length) {
- object.jinGongCards = [];
- for (var j = 0; j < message.jinGongCards.length; ++j)
- object.jinGongCards[j] = message.jinGongCards[j];
- }
- return object;
- };
- /**
- * Converts this GCHuanGongInfo to JSON.
- * @function toJSON
- * @memberof guandan.GCHuanGongInfo
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCHuanGongInfo.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCHuanGongInfo;
- })();
- guandan.GCNeedHuanGongInfo = (function() {
- /**
- * Properties of a GCNeedHuanGongInfo.
- * @memberof guandan
- * @interface IGCNeedHuanGongInfo
- * @property {Array.<number|Long>|null} [playerId] GCNeedHuanGongInfo playerId
- */
- /**
- * Constructs a new GCNeedHuanGongInfo.
- * @memberof guandan
- * @classdesc Represents a GCNeedHuanGongInfo.
- * @implements IGCNeedHuanGongInfo
- * @constructor
- * @param {guandan.IGCNeedHuanGongInfo=} [properties] Properties to set
- */
- function GCNeedHuanGongInfo(properties) {
- this.playerId = [];
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCNeedHuanGongInfo playerId.
- * @member {Array.<number|Long>} playerId
- * @memberof guandan.GCNeedHuanGongInfo
- * @instance
- */
- GCNeedHuanGongInfo.prototype.playerId = $util.emptyArray;
- /**
- * Creates a new GCNeedHuanGongInfo instance using the specified properties.
- * @function create
- * @memberof guandan.GCNeedHuanGongInfo
- * @static
- * @param {guandan.IGCNeedHuanGongInfo=} [properties] Properties to set
- * @returns {guandan.GCNeedHuanGongInfo} GCNeedHuanGongInfo instance
- */
- GCNeedHuanGongInfo.create = function create(properties) {
- return new GCNeedHuanGongInfo(properties);
- };
- /**
- * Encodes the specified GCNeedHuanGongInfo message. Does not implicitly {@link guandan.GCNeedHuanGongInfo.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCNeedHuanGongInfo
- * @static
- * @param {guandan.IGCNeedHuanGongInfo} message GCNeedHuanGongInfo message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCNeedHuanGongInfo.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.playerId != null && message.playerId.length)
- for (var i = 0; i < message.playerId.length; ++i)
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId[i]);
- return writer;
- };
- /**
- * Encodes the specified GCNeedHuanGongInfo message, length delimited. Does not implicitly {@link guandan.GCNeedHuanGongInfo.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCNeedHuanGongInfo
- * @static
- * @param {guandan.IGCNeedHuanGongInfo} message GCNeedHuanGongInfo message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCNeedHuanGongInfo.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCNeedHuanGongInfo message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCNeedHuanGongInfo
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCNeedHuanGongInfo} GCNeedHuanGongInfo
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCNeedHuanGongInfo.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCNeedHuanGongInfo();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (!(message.playerId && message.playerId.length))
- message.playerId = [];
- if ((tag & 7) === 2) {
- var end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.playerId.push(reader.int64());
- } else
- message.playerId.push(reader.int64());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a GCNeedHuanGongInfo message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCNeedHuanGongInfo
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCNeedHuanGongInfo} GCNeedHuanGongInfo
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCNeedHuanGongInfo.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCNeedHuanGongInfo message.
- * @function verify
- * @memberof guandan.GCNeedHuanGongInfo
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCNeedHuanGongInfo.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.playerId != null && message.hasOwnProperty("playerId")) {
- if (!Array.isArray(message.playerId))
- return "playerId: array expected";
- for (var i = 0; i < message.playerId.length; ++i)
- if (!$util.isInteger(message.playerId[i]) && !(message.playerId[i] && $util.isInteger(message.playerId[i].low) && $util.isInteger(message.playerId[i].high)))
- return "playerId: integer|Long[] expected";
- }
- return null;
- };
- /**
- * Creates a GCNeedHuanGongInfo message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCNeedHuanGongInfo
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCNeedHuanGongInfo} GCNeedHuanGongInfo
- */
- GCNeedHuanGongInfo.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCNeedHuanGongInfo)
- return object;
- var message = new $root.guandan.GCNeedHuanGongInfo();
- if (object.playerId) {
- if (!Array.isArray(object.playerId))
- throw TypeError(".guandan.GCNeedHuanGongInfo.playerId: array expected");
- message.playerId = [];
- for (var i = 0; i < object.playerId.length; ++i)
- if ($util.Long)
- (message.playerId[i] = $util.Long.fromValue(object.playerId[i])).unsigned = false;
- else if (typeof object.playerId[i] === "string")
- message.playerId[i] = parseInt(object.playerId[i], 10);
- else if (typeof object.playerId[i] === "number")
- message.playerId[i] = object.playerId[i];
- else if (typeof object.playerId[i] === "object")
- message.playerId[i] = new $util.LongBits(object.playerId[i].low >>> 0, object.playerId[i].high >>> 0).toNumber();
- }
- return message;
- };
- /**
- * Creates a plain object from a GCNeedHuanGongInfo message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCNeedHuanGongInfo
- * @static
- * @param {guandan.GCNeedHuanGongInfo} message GCNeedHuanGongInfo
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCNeedHuanGongInfo.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.arrays || options.defaults)
- object.playerId = [];
- if (message.playerId && message.playerId.length) {
- object.playerId = [];
- for (var j = 0; j < message.playerId.length; ++j)
- if (typeof message.playerId[j] === "number")
- object.playerId[j] = options.longs === String ? String(message.playerId[j]) : message.playerId[j];
- else
- 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];
- }
- return object;
- };
- /**
- * Converts this GCNeedHuanGongInfo to JSON.
- * @function toJSON
- * @memberof guandan.GCNeedHuanGongInfo
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCNeedHuanGongInfo.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCNeedHuanGongInfo;
- })();
- guandan.GCKangGongInfo = (function() {
- /**
- * Properties of a GCKangGongInfo.
- * @memberof guandan
- * @interface IGCKangGongInfo
- * @property {number|Long} playerId GCKangGongInfo playerId
- * @property {number} cardNum GCKangGongInfo cardNum
- */
- /**
- * Constructs a new GCKangGongInfo.
- * @memberof guandan
- * @classdesc Represents a GCKangGongInfo.
- * @implements IGCKangGongInfo
- * @constructor
- * @param {guandan.IGCKangGongInfo=} [properties] Properties to set
- */
- function GCKangGongInfo(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCKangGongInfo playerId.
- * @member {number|Long} playerId
- * @memberof guandan.GCKangGongInfo
- * @instance
- */
- GCKangGongInfo.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * GCKangGongInfo cardNum.
- * @member {number} cardNum
- * @memberof guandan.GCKangGongInfo
- * @instance
- */
- GCKangGongInfo.prototype.cardNum = 0;
- /**
- * Creates a new GCKangGongInfo instance using the specified properties.
- * @function create
- * @memberof guandan.GCKangGongInfo
- * @static
- * @param {guandan.IGCKangGongInfo=} [properties] Properties to set
- * @returns {guandan.GCKangGongInfo} GCKangGongInfo instance
- */
- GCKangGongInfo.create = function create(properties) {
- return new GCKangGongInfo(properties);
- };
- /**
- * Encodes the specified GCKangGongInfo message. Does not implicitly {@link guandan.GCKangGongInfo.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCKangGongInfo
- * @static
- * @param {guandan.IGCKangGongInfo} message GCKangGongInfo message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCKangGongInfo.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
- writer.uint32(/* id 2, wireType 0 =*/16).int32(message.cardNum);
- return writer;
- };
- /**
- * Encodes the specified GCKangGongInfo message, length delimited. Does not implicitly {@link guandan.GCKangGongInfo.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCKangGongInfo
- * @static
- * @param {guandan.IGCKangGongInfo} message GCKangGongInfo message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCKangGongInfo.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCKangGongInfo message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCKangGongInfo
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCKangGongInfo} GCKangGongInfo
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCKangGongInfo.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCKangGongInfo();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.playerId = reader.int64();
- break;
- case 2:
- message.cardNum = reader.int32();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("playerId"))
- throw $util.ProtocolError("missing required 'playerId'", { instance: message });
- if (!message.hasOwnProperty("cardNum"))
- throw $util.ProtocolError("missing required 'cardNum'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCKangGongInfo message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCKangGongInfo
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCKangGongInfo} GCKangGongInfo
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCKangGongInfo.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCKangGongInfo message.
- * @function verify
- * @memberof guandan.GCKangGongInfo
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCKangGongInfo.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
- return "playerId: integer|Long expected";
- if (!$util.isInteger(message.cardNum))
- return "cardNum: integer expected";
- return null;
- };
- /**
- * Creates a GCKangGongInfo message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCKangGongInfo
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCKangGongInfo} GCKangGongInfo
- */
- GCKangGongInfo.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCKangGongInfo)
- return object;
- var message = new $root.guandan.GCKangGongInfo();
- if (object.playerId != null)
- if ($util.Long)
- (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
- else if (typeof object.playerId === "string")
- message.playerId = parseInt(object.playerId, 10);
- else if (typeof object.playerId === "number")
- message.playerId = object.playerId;
- else if (typeof object.playerId === "object")
- message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
- if (object.cardNum != null)
- message.cardNum = object.cardNum | 0;
- return message;
- };
- /**
- * Creates a plain object from a GCKangGongInfo message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCKangGongInfo
- * @static
- * @param {guandan.GCKangGongInfo} message GCKangGongInfo
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCKangGongInfo.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults) {
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.playerId = options.longs === String ? "0" : 0;
- object.cardNum = 0;
- }
- if (message.playerId != null && message.hasOwnProperty("playerId"))
- if (typeof message.playerId === "number")
- object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
- else
- 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;
- if (message.cardNum != null && message.hasOwnProperty("cardNum"))
- object.cardNum = message.cardNum;
- return object;
- };
- /**
- * Converts this GCKangGongInfo to JSON.
- * @function toJSON
- * @memberof guandan.GCKangGongInfo
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCKangGongInfo.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCKangGongInfo;
- })();
- guandan.GCRoomInfo = (function() {
- /**
- * Properties of a GCRoomInfo.
- * @memberof guandan
- * @interface IGCRoomInfo
- * @property {number|Long} roomId GCRoomInfo roomId
- * @property {number} state GCRoomInfo state
- * @property {number|Long|null} [currentPlayerId] GCRoomInfo currentPlayerId
- * @property {Array.<guandan.IOperation>|null} [currentOperationList] GCRoomInfo currentOperationList
- * @property {Array.<number>|null} [currentCards] GCRoomInfo currentCards
- * @property {number|null} [currentCardMethod] GCRoomInfo currentCardMethod
- * @property {number|null} [currentRound] GCRoomInfo currentRound
- * @property {string|null} [name] GCRoomInfo name
- * @property {number|Long} ownerId GCRoomInfo ownerId
- * @property {number} totalRound GCRoomInfo totalRound
- * @property {number|Long} dissolveStartTime GCRoomInfo dissolveStartTime
- * @property {Array.<number|Long>|null} [aggreeDissolvePlayers] GCRoomInfo aggreeDissolvePlayers
- * @property {number} bankerPos GCRoomInfo bankerPos
- * @property {Array.<number>|null} [jinPais] GCRoomInfo jinPais
- * @property {number} score GCRoomInfo score
- * @property {number} mahjongType GCRoomInfo mahjongType
- * @property {Uint8Array} roomConfig GCRoomInfo roomConfig
- * @property {number|null} [cardPlayObject] GCRoomInfo cardPlayObject
- * @property {number} maxPlayers GCRoomInfo maxPlayers
- * @property {number} currentQuan GCRoomInfo currentQuan
- * @property {number|Long} createTime GCRoomInfo createTime
- * @property {number|null} [openRoomType] GCRoomInfo openRoomType
- * @property {number|Long|null} [forbidJoinTime] GCRoomInfo forbidJoinTime
- * @property {number|Long|null} [lastGameTime] GCRoomInfo lastGameTime
- * @property {number|null} [payMethod] GCRoomInfo payMethod
- * @property {number|null} [roomMode] GCRoomInfo roomMode
- * @property {number|Long|null} [lastTime] GCRoomInfo lastTime
- * @property {number|Long|null} [now] GCRoomInfo now
- * @property {number|Long|null} [di] GCRoomInfo di
- * @property {number|null} [activityType] GCRoomInfo activityType
- * @property {boolean|null} [isDouble] GCRoomInfo isDouble
- * @property {Array.<number>|null} [playCards] GCRoomInfo playCards
- * @property {number} posGroup GCRoomInfo posGroup
- * @property {number|null} [bombNum] GCRoomInfo bombNum
- * @property {number|Long|null} [roundArrangeEndTime] GCRoomInfo roundArrangeEndTime
- * @property {string|null} [goldRoomName] GCRoomInfo goldRoomName
- * @property {number|Long|null} [doubleEndTime] GCRoomInfo doubleEndTime
- * @property {Array.<guandan.IGCJinGongInfo>|null} [jinGongInfoList] GCRoomInfo jinGongInfoList
- * @property {Array.<guandan.IGCHuanGongInfo>|null} [huanGongInfoList] GCRoomInfo huanGongInfoList
- * @property {guandan.IGCNeedHuanGongInfo|null} [needHuanGong] GCRoomInfo needHuanGong
- * @property {Array.<guandan.IGCKangGongInfo>|null} [kangGongInfoList] GCRoomInfo kangGongInfoList
- */
- /**
- * Constructs a new GCRoomInfo.
- * @memberof guandan
- * @classdesc Represents a GCRoomInfo.
- * @implements IGCRoomInfo
- * @constructor
- * @param {guandan.IGCRoomInfo=} [properties] Properties to set
- */
- function GCRoomInfo(properties) {
- this.currentOperationList = [];
- this.currentCards = [];
- this.aggreeDissolvePlayers = [];
- this.jinPais = [];
- this.playCards = [];
- this.jinGongInfoList = [];
- this.huanGongInfoList = [];
- this.kangGongInfoList = [];
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCRoomInfo roomId.
- * @member {number|Long} roomId
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.roomId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * GCRoomInfo state.
- * @member {number} state
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.state = 0;
- /**
- * GCRoomInfo currentPlayerId.
- * @member {number|Long} currentPlayerId
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.currentPlayerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * GCRoomInfo currentOperationList.
- * @member {Array.<guandan.IOperation>} currentOperationList
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.currentOperationList = $util.emptyArray;
- /**
- * GCRoomInfo currentCards.
- * @member {Array.<number>} currentCards
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.currentCards = $util.emptyArray;
- /**
- * GCRoomInfo currentCardMethod.
- * @member {number} currentCardMethod
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.currentCardMethod = 0;
- /**
- * GCRoomInfo currentRound.
- * @member {number} currentRound
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.currentRound = 0;
- /**
- * GCRoomInfo name.
- * @member {string} name
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.name = "";
- /**
- * GCRoomInfo ownerId.
- * @member {number|Long} ownerId
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.ownerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * GCRoomInfo totalRound.
- * @member {number} totalRound
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.totalRound = 0;
- /**
- * GCRoomInfo dissolveStartTime.
- * @member {number|Long} dissolveStartTime
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.dissolveStartTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * GCRoomInfo aggreeDissolvePlayers.
- * @member {Array.<number|Long>} aggreeDissolvePlayers
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.aggreeDissolvePlayers = $util.emptyArray;
- /**
- * GCRoomInfo bankerPos.
- * @member {number} bankerPos
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.bankerPos = 0;
- /**
- * GCRoomInfo jinPais.
- * @member {Array.<number>} jinPais
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.jinPais = $util.emptyArray;
- /**
- * GCRoomInfo score.
- * @member {number} score
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.score = 0;
- /**
- * GCRoomInfo mahjongType.
- * @member {number} mahjongType
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.mahjongType = 0;
- /**
- * GCRoomInfo roomConfig.
- * @member {Uint8Array} roomConfig
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.roomConfig = $util.newBuffer([]);
- /**
- * GCRoomInfo cardPlayObject.
- * @member {number} cardPlayObject
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.cardPlayObject = 0;
- /**
- * GCRoomInfo maxPlayers.
- * @member {number} maxPlayers
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.maxPlayers = 0;
- /**
- * GCRoomInfo currentQuan.
- * @member {number} currentQuan
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.currentQuan = 0;
- /**
- * GCRoomInfo createTime.
- * @member {number|Long} createTime
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.createTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * GCRoomInfo openRoomType.
- * @member {number} openRoomType
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.openRoomType = 0;
- /**
- * GCRoomInfo forbidJoinTime.
- * @member {number|Long} forbidJoinTime
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.forbidJoinTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * GCRoomInfo lastGameTime.
- * @member {number|Long} lastGameTime
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.lastGameTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * GCRoomInfo payMethod.
- * @member {number} payMethod
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.payMethod = 0;
- /**
- * GCRoomInfo roomMode.
- * @member {number} roomMode
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.roomMode = 0;
- /**
- * GCRoomInfo lastTime.
- * @member {number|Long} lastTime
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.lastTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * GCRoomInfo now.
- * @member {number|Long} now
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.now = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * GCRoomInfo di.
- * @member {number|Long} di
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.di = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * GCRoomInfo activityType.
- * @member {number} activityType
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.activityType = 0;
- /**
- * GCRoomInfo isDouble.
- * @member {boolean} isDouble
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.isDouble = false;
- /**
- * GCRoomInfo playCards.
- * @member {Array.<number>} playCards
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.playCards = $util.emptyArray;
- /**
- * GCRoomInfo posGroup.
- * @member {number} posGroup
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.posGroup = 0;
- /**
- * GCRoomInfo bombNum.
- * @member {number} bombNum
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.bombNum = 0;
- /**
- * GCRoomInfo roundArrangeEndTime.
- * @member {number|Long} roundArrangeEndTime
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.roundArrangeEndTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * GCRoomInfo goldRoomName.
- * @member {string} goldRoomName
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.goldRoomName = "";
- /**
- * GCRoomInfo doubleEndTime.
- * @member {number|Long} doubleEndTime
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.doubleEndTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * GCRoomInfo jinGongInfoList.
- * @member {Array.<guandan.IGCJinGongInfo>} jinGongInfoList
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.jinGongInfoList = $util.emptyArray;
- /**
- * GCRoomInfo huanGongInfoList.
- * @member {Array.<guandan.IGCHuanGongInfo>} huanGongInfoList
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.huanGongInfoList = $util.emptyArray;
- /**
- * GCRoomInfo needHuanGong.
- * @member {guandan.IGCNeedHuanGongInfo|null|undefined} needHuanGong
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.needHuanGong = null;
- /**
- * GCRoomInfo kangGongInfoList.
- * @member {Array.<guandan.IGCKangGongInfo>} kangGongInfoList
- * @memberof guandan.GCRoomInfo
- * @instance
- */
- GCRoomInfo.prototype.kangGongInfoList = $util.emptyArray;
- /**
- * Creates a new GCRoomInfo instance using the specified properties.
- * @function create
- * @memberof guandan.GCRoomInfo
- * @static
- * @param {guandan.IGCRoomInfo=} [properties] Properties to set
- * @returns {guandan.GCRoomInfo} GCRoomInfo instance
- */
- GCRoomInfo.create = function create(properties) {
- return new GCRoomInfo(properties);
- };
- /**
- * Encodes the specified GCRoomInfo message. Does not implicitly {@link guandan.GCRoomInfo.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCRoomInfo
- * @static
- * @param {guandan.IGCRoomInfo} message GCRoomInfo message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCRoomInfo.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.roomId);
- writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state);
- if (message.currentPlayerId != null && Object.hasOwnProperty.call(message, "currentPlayerId"))
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.currentPlayerId);
- if (message.currentOperationList != null && message.currentOperationList.length)
- for (var i = 0; i < message.currentOperationList.length; ++i)
- $root.guandan.Operation.encode(message.currentOperationList[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
- if (message.currentCards != null && message.currentCards.length)
- for (var i = 0; i < message.currentCards.length; ++i)
- writer.uint32(/* id 6, wireType 0 =*/48).int32(message.currentCards[i]);
- if (message.currentCardMethod != null && Object.hasOwnProperty.call(message, "currentCardMethod"))
- writer.uint32(/* id 7, wireType 0 =*/56).int32(message.currentCardMethod);
- if (message.currentRound != null && Object.hasOwnProperty.call(message, "currentRound"))
- writer.uint32(/* id 8, wireType 0 =*/64).int32(message.currentRound);
- if (message.name != null && Object.hasOwnProperty.call(message, "name"))
- writer.uint32(/* id 9, wireType 2 =*/74).string(message.name);
- writer.uint32(/* id 10, wireType 0 =*/80).int64(message.ownerId);
- writer.uint32(/* id 11, wireType 0 =*/88).int32(message.totalRound);
- writer.uint32(/* id 12, wireType 0 =*/96).int64(message.dissolveStartTime);
- if (message.aggreeDissolvePlayers != null && message.aggreeDissolvePlayers.length)
- for (var i = 0; i < message.aggreeDissolvePlayers.length; ++i)
- writer.uint32(/* id 13, wireType 0 =*/104).int64(message.aggreeDissolvePlayers[i]);
- writer.uint32(/* id 14, wireType 0 =*/112).int32(message.bankerPos);
- if (message.jinPais != null && message.jinPais.length)
- for (var i = 0; i < message.jinPais.length; ++i)
- writer.uint32(/* id 17, wireType 0 =*/136).int32(message.jinPais[i]);
- writer.uint32(/* id 20, wireType 0 =*/160).int32(message.score);
- writer.uint32(/* id 21, wireType 0 =*/168).int32(message.mahjongType);
- writer.uint32(/* id 22, wireType 2 =*/178).bytes(message.roomConfig);
- if (message.cardPlayObject != null && Object.hasOwnProperty.call(message, "cardPlayObject"))
- writer.uint32(/* id 23, wireType 0 =*/184).int32(message.cardPlayObject);
- writer.uint32(/* id 24, wireType 0 =*/192).int32(message.maxPlayers);
- writer.uint32(/* id 25, wireType 0 =*/200).int32(message.currentQuan);
- writer.uint32(/* id 27, wireType 0 =*/216).int64(message.createTime);
- if (message.openRoomType != null && Object.hasOwnProperty.call(message, "openRoomType"))
- writer.uint32(/* id 28, wireType 0 =*/224).int32(message.openRoomType);
- if (message.forbidJoinTime != null && Object.hasOwnProperty.call(message, "forbidJoinTime"))
- writer.uint32(/* id 29, wireType 0 =*/232).int64(message.forbidJoinTime);
- if (message.lastGameTime != null && Object.hasOwnProperty.call(message, "lastGameTime"))
- writer.uint32(/* id 30, wireType 0 =*/240).int64(message.lastGameTime);
- if (message.payMethod != null && Object.hasOwnProperty.call(message, "payMethod"))
- writer.uint32(/* id 32, wireType 0 =*/256).int32(message.payMethod);
- if (message.roomMode != null && Object.hasOwnProperty.call(message, "roomMode"))
- writer.uint32(/* id 33, wireType 0 =*/264).int32(message.roomMode);
- if (message.lastTime != null && Object.hasOwnProperty.call(message, "lastTime"))
- writer.uint32(/* id 34, wireType 0 =*/272).int64(message.lastTime);
- if (message.now != null && Object.hasOwnProperty.call(message, "now"))
- writer.uint32(/* id 35, wireType 0 =*/280).int64(message.now);
- if (message.di != null && Object.hasOwnProperty.call(message, "di"))
- writer.uint32(/* id 36, wireType 0 =*/288).int64(message.di);
- if (message.activityType != null && Object.hasOwnProperty.call(message, "activityType"))
- writer.uint32(/* id 37, wireType 0 =*/296).int32(message.activityType);
- if (message.isDouble != null && Object.hasOwnProperty.call(message, "isDouble"))
- writer.uint32(/* id 38, wireType 0 =*/304).bool(message.isDouble);
- if (message.playCards != null && message.playCards.length)
- for (var i = 0; i < message.playCards.length; ++i)
- writer.uint32(/* id 39, wireType 0 =*/312).int32(message.playCards[i]);
- writer.uint32(/* id 40, wireType 0 =*/320).int32(message.posGroup);
- if (message.bombNum != null && Object.hasOwnProperty.call(message, "bombNum"))
- writer.uint32(/* id 41, wireType 0 =*/328).int32(message.bombNum);
- if (message.roundArrangeEndTime != null && Object.hasOwnProperty.call(message, "roundArrangeEndTime"))
- writer.uint32(/* id 42, wireType 0 =*/336).int64(message.roundArrangeEndTime);
- if (message.goldRoomName != null && Object.hasOwnProperty.call(message, "goldRoomName"))
- writer.uint32(/* id 43, wireType 2 =*/346).string(message.goldRoomName);
- if (message.doubleEndTime != null && Object.hasOwnProperty.call(message, "doubleEndTime"))
- writer.uint32(/* id 44, wireType 0 =*/352).int64(message.doubleEndTime);
- if (message.jinGongInfoList != null && message.jinGongInfoList.length)
- for (var i = 0; i < message.jinGongInfoList.length; ++i)
- $root.guandan.GCJinGongInfo.encode(message.jinGongInfoList[i], writer.uint32(/* id 45, wireType 2 =*/362).fork()).ldelim();
- if (message.huanGongInfoList != null && message.huanGongInfoList.length)
- for (var i = 0; i < message.huanGongInfoList.length; ++i)
- $root.guandan.GCHuanGongInfo.encode(message.huanGongInfoList[i], writer.uint32(/* id 46, wireType 2 =*/370).fork()).ldelim();
- if (message.needHuanGong != null && Object.hasOwnProperty.call(message, "needHuanGong"))
- $root.guandan.GCNeedHuanGongInfo.encode(message.needHuanGong, writer.uint32(/* id 47, wireType 2 =*/378).fork()).ldelim();
- if (message.kangGongInfoList != null && message.kangGongInfoList.length)
- for (var i = 0; i < message.kangGongInfoList.length; ++i)
- $root.guandan.GCKangGongInfo.encode(message.kangGongInfoList[i], writer.uint32(/* id 48, wireType 2 =*/386).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified GCRoomInfo message, length delimited. Does not implicitly {@link guandan.GCRoomInfo.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCRoomInfo
- * @static
- * @param {guandan.IGCRoomInfo} message GCRoomInfo message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCRoomInfo.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCRoomInfo message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCRoomInfo
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCRoomInfo} GCRoomInfo
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCRoomInfo.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCRoomInfo();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.roomId = reader.int64();
- break;
- case 2:
- message.state = reader.int32();
- break;
- case 3:
- message.currentPlayerId = reader.int64();
- break;
- case 4:
- if (!(message.currentOperationList && message.currentOperationList.length))
- message.currentOperationList = [];
- message.currentOperationList.push($root.guandan.Operation.decode(reader, reader.uint32()));
- break;
- case 6:
- if (!(message.currentCards && message.currentCards.length))
- message.currentCards = [];
- if ((tag & 7) === 2) {
- var end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.currentCards.push(reader.int32());
- } else
- message.currentCards.push(reader.int32());
- break;
- case 7:
- message.currentCardMethod = reader.int32();
- break;
- case 8:
- message.currentRound = reader.int32();
- break;
- case 9:
- message.name = reader.string();
- break;
- case 10:
- message.ownerId = reader.int64();
- break;
- case 11:
- message.totalRound = reader.int32();
- break;
- case 12:
- message.dissolveStartTime = reader.int64();
- break;
- case 13:
- if (!(message.aggreeDissolvePlayers && message.aggreeDissolvePlayers.length))
- message.aggreeDissolvePlayers = [];
- if ((tag & 7) === 2) {
- var end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.aggreeDissolvePlayers.push(reader.int64());
- } else
- message.aggreeDissolvePlayers.push(reader.int64());
- break;
- case 14:
- message.bankerPos = reader.int32();
- break;
- case 17:
- if (!(message.jinPais && message.jinPais.length))
- message.jinPais = [];
- if ((tag & 7) === 2) {
- var end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.jinPais.push(reader.int32());
- } else
- message.jinPais.push(reader.int32());
- break;
- case 20:
- message.score = reader.int32();
- break;
- case 21:
- message.mahjongType = reader.int32();
- break;
- case 22:
- message.roomConfig = reader.bytes();
- break;
- case 23:
- message.cardPlayObject = reader.int32();
- break;
- case 24:
- message.maxPlayers = reader.int32();
- break;
- case 25:
- message.currentQuan = reader.int32();
- break;
- case 27:
- message.createTime = reader.int64();
- break;
- case 28:
- message.openRoomType = reader.int32();
- break;
- case 29:
- message.forbidJoinTime = reader.int64();
- break;
- case 30:
- message.lastGameTime = reader.int64();
- break;
- case 32:
- message.payMethod = reader.int32();
- break;
- case 33:
- message.roomMode = reader.int32();
- break;
- case 34:
- message.lastTime = reader.int64();
- break;
- case 35:
- message.now = reader.int64();
- break;
- case 36:
- message.di = reader.int64();
- break;
- case 37:
- message.activityType = reader.int32();
- break;
- case 38:
- message.isDouble = reader.bool();
- break;
- case 39:
- if (!(message.playCards && message.playCards.length))
- message.playCards = [];
- if ((tag & 7) === 2) {
- var end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.playCards.push(reader.int32());
- } else
- message.playCards.push(reader.int32());
- break;
- case 40:
- message.posGroup = reader.int32();
- break;
- case 41:
- message.bombNum = reader.int32();
- break;
- case 42:
- message.roundArrangeEndTime = reader.int64();
- break;
- case 43:
- message.goldRoomName = reader.string();
- break;
- case 44:
- message.doubleEndTime = reader.int64();
- break;
- case 45:
- if (!(message.jinGongInfoList && message.jinGongInfoList.length))
- message.jinGongInfoList = [];
- message.jinGongInfoList.push($root.guandan.GCJinGongInfo.decode(reader, reader.uint32()));
- break;
- case 46:
- if (!(message.huanGongInfoList && message.huanGongInfoList.length))
- message.huanGongInfoList = [];
- message.huanGongInfoList.push($root.guandan.GCHuanGongInfo.decode(reader, reader.uint32()));
- break;
- case 47:
- message.needHuanGong = $root.guandan.GCNeedHuanGongInfo.decode(reader, reader.uint32());
- break;
- case 48:
- if (!(message.kangGongInfoList && message.kangGongInfoList.length))
- message.kangGongInfoList = [];
- message.kangGongInfoList.push($root.guandan.GCKangGongInfo.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("roomId"))
- throw $util.ProtocolError("missing required 'roomId'", { instance: message });
- if (!message.hasOwnProperty("state"))
- throw $util.ProtocolError("missing required 'state'", { instance: message });
- if (!message.hasOwnProperty("ownerId"))
- throw $util.ProtocolError("missing required 'ownerId'", { instance: message });
- if (!message.hasOwnProperty("totalRound"))
- throw $util.ProtocolError("missing required 'totalRound'", { instance: message });
- if (!message.hasOwnProperty("dissolveStartTime"))
- throw $util.ProtocolError("missing required 'dissolveStartTime'", { instance: message });
- if (!message.hasOwnProperty("bankerPos"))
- throw $util.ProtocolError("missing required 'bankerPos'", { instance: message });
- if (!message.hasOwnProperty("score"))
- throw $util.ProtocolError("missing required 'score'", { instance: message });
- if (!message.hasOwnProperty("mahjongType"))
- throw $util.ProtocolError("missing required 'mahjongType'", { instance: message });
- if (!message.hasOwnProperty("roomConfig"))
- throw $util.ProtocolError("missing required 'roomConfig'", { instance: message });
- if (!message.hasOwnProperty("maxPlayers"))
- throw $util.ProtocolError("missing required 'maxPlayers'", { instance: message });
- if (!message.hasOwnProperty("currentQuan"))
- throw $util.ProtocolError("missing required 'currentQuan'", { instance: message });
- if (!message.hasOwnProperty("createTime"))
- throw $util.ProtocolError("missing required 'createTime'", { instance: message });
- if (!message.hasOwnProperty("posGroup"))
- throw $util.ProtocolError("missing required 'posGroup'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCRoomInfo message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCRoomInfo
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCRoomInfo} GCRoomInfo
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCRoomInfo.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCRoomInfo message.
- * @function verify
- * @memberof guandan.GCRoomInfo
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCRoomInfo.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.roomId) && !(message.roomId && $util.isInteger(message.roomId.low) && $util.isInteger(message.roomId.high)))
- return "roomId: integer|Long expected";
- if (!$util.isInteger(message.state))
- return "state: integer expected";
- if (message.currentPlayerId != null && message.hasOwnProperty("currentPlayerId"))
- if (!$util.isInteger(message.currentPlayerId) && !(message.currentPlayerId && $util.isInteger(message.currentPlayerId.low) && $util.isInteger(message.currentPlayerId.high)))
- return "currentPlayerId: integer|Long expected";
- if (message.currentOperationList != null && message.hasOwnProperty("currentOperationList")) {
- if (!Array.isArray(message.currentOperationList))
- return "currentOperationList: array expected";
- for (var i = 0; i < message.currentOperationList.length; ++i) {
- var error = $root.guandan.Operation.verify(message.currentOperationList[i]);
- if (error)
- return "currentOperationList." + error;
- }
- }
- if (message.currentCards != null && message.hasOwnProperty("currentCards")) {
- if (!Array.isArray(message.currentCards))
- return "currentCards: array expected";
- for (var i = 0; i < message.currentCards.length; ++i)
- if (!$util.isInteger(message.currentCards[i]))
- return "currentCards: integer[] expected";
- }
- if (message.currentCardMethod != null && message.hasOwnProperty("currentCardMethod"))
- if (!$util.isInteger(message.currentCardMethod))
- return "currentCardMethod: integer expected";
- if (message.currentRound != null && message.hasOwnProperty("currentRound"))
- if (!$util.isInteger(message.currentRound))
- return "currentRound: integer expected";
- if (message.name != null && message.hasOwnProperty("name"))
- if (!$util.isString(message.name))
- return "name: string expected";
- if (!$util.isInteger(message.ownerId) && !(message.ownerId && $util.isInteger(message.ownerId.low) && $util.isInteger(message.ownerId.high)))
- return "ownerId: integer|Long expected";
- if (!$util.isInteger(message.totalRound))
- return "totalRound: integer expected";
- if (!$util.isInteger(message.dissolveStartTime) && !(message.dissolveStartTime && $util.isInteger(message.dissolveStartTime.low) && $util.isInteger(message.dissolveStartTime.high)))
- return "dissolveStartTime: integer|Long expected";
- if (message.aggreeDissolvePlayers != null && message.hasOwnProperty("aggreeDissolvePlayers")) {
- if (!Array.isArray(message.aggreeDissolvePlayers))
- return "aggreeDissolvePlayers: array expected";
- for (var i = 0; i < message.aggreeDissolvePlayers.length; ++i)
- if (!$util.isInteger(message.aggreeDissolvePlayers[i]) && !(message.aggreeDissolvePlayers[i] && $util.isInteger(message.aggreeDissolvePlayers[i].low) && $util.isInteger(message.aggreeDissolvePlayers[i].high)))
- return "aggreeDissolvePlayers: integer|Long[] expected";
- }
- if (!$util.isInteger(message.bankerPos))
- return "bankerPos: integer expected";
- if (message.jinPais != null && message.hasOwnProperty("jinPais")) {
- if (!Array.isArray(message.jinPais))
- return "jinPais: array expected";
- for (var i = 0; i < message.jinPais.length; ++i)
- if (!$util.isInteger(message.jinPais[i]))
- return "jinPais: integer[] expected";
- }
- if (!$util.isInteger(message.score))
- return "score: integer expected";
- if (!$util.isInteger(message.mahjongType))
- return "mahjongType: integer expected";
- if (!(message.roomConfig && typeof message.roomConfig.length === "number" || $util.isString(message.roomConfig)))
- return "roomConfig: buffer expected";
- if (message.cardPlayObject != null && message.hasOwnProperty("cardPlayObject"))
- if (!$util.isInteger(message.cardPlayObject))
- return "cardPlayObject: integer expected";
- if (!$util.isInteger(message.maxPlayers))
- return "maxPlayers: integer expected";
- if (!$util.isInteger(message.currentQuan))
- return "currentQuan: integer expected";
- if (!$util.isInteger(message.createTime) && !(message.createTime && $util.isInteger(message.createTime.low) && $util.isInteger(message.createTime.high)))
- return "createTime: integer|Long expected";
- if (message.openRoomType != null && message.hasOwnProperty("openRoomType"))
- if (!$util.isInteger(message.openRoomType))
- return "openRoomType: integer expected";
- if (message.forbidJoinTime != null && message.hasOwnProperty("forbidJoinTime"))
- if (!$util.isInteger(message.forbidJoinTime) && !(message.forbidJoinTime && $util.isInteger(message.forbidJoinTime.low) && $util.isInteger(message.forbidJoinTime.high)))
- return "forbidJoinTime: integer|Long expected";
- if (message.lastGameTime != null && message.hasOwnProperty("lastGameTime"))
- if (!$util.isInteger(message.lastGameTime) && !(message.lastGameTime && $util.isInteger(message.lastGameTime.low) && $util.isInteger(message.lastGameTime.high)))
- return "lastGameTime: integer|Long expected";
- if (message.payMethod != null && message.hasOwnProperty("payMethod"))
- if (!$util.isInteger(message.payMethod))
- return "payMethod: integer expected";
- if (message.roomMode != null && message.hasOwnProperty("roomMode"))
- if (!$util.isInteger(message.roomMode))
- return "roomMode: integer expected";
- if (message.lastTime != null && message.hasOwnProperty("lastTime"))
- if (!$util.isInteger(message.lastTime) && !(message.lastTime && $util.isInteger(message.lastTime.low) && $util.isInteger(message.lastTime.high)))
- return "lastTime: integer|Long expected";
- if (message.now != null && message.hasOwnProperty("now"))
- if (!$util.isInteger(message.now) && !(message.now && $util.isInteger(message.now.low) && $util.isInteger(message.now.high)))
- return "now: integer|Long expected";
- if (message.di != null && message.hasOwnProperty("di"))
- if (!$util.isInteger(message.di) && !(message.di && $util.isInteger(message.di.low) && $util.isInteger(message.di.high)))
- return "di: integer|Long expected";
- if (message.activityType != null && message.hasOwnProperty("activityType"))
- if (!$util.isInteger(message.activityType))
- return "activityType: integer expected";
- if (message.isDouble != null && message.hasOwnProperty("isDouble"))
- if (typeof message.isDouble !== "boolean")
- return "isDouble: boolean expected";
- if (message.playCards != null && message.hasOwnProperty("playCards")) {
- if (!Array.isArray(message.playCards))
- return "playCards: array expected";
- for (var i = 0; i < message.playCards.length; ++i)
- if (!$util.isInteger(message.playCards[i]))
- return "playCards: integer[] expected";
- }
- if (!$util.isInteger(message.posGroup))
- return "posGroup: integer expected";
- if (message.bombNum != null && message.hasOwnProperty("bombNum"))
- if (!$util.isInteger(message.bombNum))
- return "bombNum: integer expected";
- if (message.roundArrangeEndTime != null && message.hasOwnProperty("roundArrangeEndTime"))
- if (!$util.isInteger(message.roundArrangeEndTime) && !(message.roundArrangeEndTime && $util.isInteger(message.roundArrangeEndTime.low) && $util.isInteger(message.roundArrangeEndTime.high)))
- return "roundArrangeEndTime: integer|Long expected";
- if (message.goldRoomName != null && message.hasOwnProperty("goldRoomName"))
- if (!$util.isString(message.goldRoomName))
- return "goldRoomName: string expected";
- if (message.doubleEndTime != null && message.hasOwnProperty("doubleEndTime"))
- if (!$util.isInteger(message.doubleEndTime) && !(message.doubleEndTime && $util.isInteger(message.doubleEndTime.low) && $util.isInteger(message.doubleEndTime.high)))
- return "doubleEndTime: integer|Long expected";
- if (message.jinGongInfoList != null && message.hasOwnProperty("jinGongInfoList")) {
- if (!Array.isArray(message.jinGongInfoList))
- return "jinGongInfoList: array expected";
- for (var i = 0; i < message.jinGongInfoList.length; ++i) {
- var error = $root.guandan.GCJinGongInfo.verify(message.jinGongInfoList[i]);
- if (error)
- return "jinGongInfoList." + error;
- }
- }
- if (message.huanGongInfoList != null && message.hasOwnProperty("huanGongInfoList")) {
- if (!Array.isArray(message.huanGongInfoList))
- return "huanGongInfoList: array expected";
- for (var i = 0; i < message.huanGongInfoList.length; ++i) {
- var error = $root.guandan.GCHuanGongInfo.verify(message.huanGongInfoList[i]);
- if (error)
- return "huanGongInfoList." + error;
- }
- }
- if (message.needHuanGong != null && message.hasOwnProperty("needHuanGong")) {
- var error = $root.guandan.GCNeedHuanGongInfo.verify(message.needHuanGong);
- if (error)
- return "needHuanGong." + error;
- }
- if (message.kangGongInfoList != null && message.hasOwnProperty("kangGongInfoList")) {
- if (!Array.isArray(message.kangGongInfoList))
- return "kangGongInfoList: array expected";
- for (var i = 0; i < message.kangGongInfoList.length; ++i) {
- var error = $root.guandan.GCKangGongInfo.verify(message.kangGongInfoList[i]);
- if (error)
- return "kangGongInfoList." + error;
- }
- }
- return null;
- };
- /**
- * Creates a GCRoomInfo message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCRoomInfo
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCRoomInfo} GCRoomInfo
- */
- GCRoomInfo.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCRoomInfo)
- return object;
- var message = new $root.guandan.GCRoomInfo();
- if (object.roomId != null)
- if ($util.Long)
- (message.roomId = $util.Long.fromValue(object.roomId)).unsigned = false;
- else if (typeof object.roomId === "string")
- message.roomId = parseInt(object.roomId, 10);
- else if (typeof object.roomId === "number")
- message.roomId = object.roomId;
- else if (typeof object.roomId === "object")
- message.roomId = new $util.LongBits(object.roomId.low >>> 0, object.roomId.high >>> 0).toNumber();
- if (object.state != null)
- message.state = object.state | 0;
- if (object.currentPlayerId != null)
- if ($util.Long)
- (message.currentPlayerId = $util.Long.fromValue(object.currentPlayerId)).unsigned = false;
- else if (typeof object.currentPlayerId === "string")
- message.currentPlayerId = parseInt(object.currentPlayerId, 10);
- else if (typeof object.currentPlayerId === "number")
- message.currentPlayerId = object.currentPlayerId;
- else if (typeof object.currentPlayerId === "object")
- message.currentPlayerId = new $util.LongBits(object.currentPlayerId.low >>> 0, object.currentPlayerId.high >>> 0).toNumber();
- if (object.currentOperationList) {
- if (!Array.isArray(object.currentOperationList))
- throw TypeError(".guandan.GCRoomInfo.currentOperationList: array expected");
- message.currentOperationList = [];
- for (var i = 0; i < object.currentOperationList.length; ++i) {
- if (typeof object.currentOperationList[i] !== "object")
- throw TypeError(".guandan.GCRoomInfo.currentOperationList: object expected");
- message.currentOperationList[i] = $root.guandan.Operation.fromObject(object.currentOperationList[i]);
- }
- }
- if (object.currentCards) {
- if (!Array.isArray(object.currentCards))
- throw TypeError(".guandan.GCRoomInfo.currentCards: array expected");
- message.currentCards = [];
- for (var i = 0; i < object.currentCards.length; ++i)
- message.currentCards[i] = object.currentCards[i] | 0;
- }
- if (object.currentCardMethod != null)
- message.currentCardMethod = object.currentCardMethod | 0;
- if (object.currentRound != null)
- message.currentRound = object.currentRound | 0;
- if (object.name != null)
- message.name = String(object.name);
- if (object.ownerId != null)
- if ($util.Long)
- (message.ownerId = $util.Long.fromValue(object.ownerId)).unsigned = false;
- else if (typeof object.ownerId === "string")
- message.ownerId = parseInt(object.ownerId, 10);
- else if (typeof object.ownerId === "number")
- message.ownerId = object.ownerId;
- else if (typeof object.ownerId === "object")
- message.ownerId = new $util.LongBits(object.ownerId.low >>> 0, object.ownerId.high >>> 0).toNumber();
- if (object.totalRound != null)
- message.totalRound = object.totalRound | 0;
- if (object.dissolveStartTime != null)
- if ($util.Long)
- (message.dissolveStartTime = $util.Long.fromValue(object.dissolveStartTime)).unsigned = false;
- else if (typeof object.dissolveStartTime === "string")
- message.dissolveStartTime = parseInt(object.dissolveStartTime, 10);
- else if (typeof object.dissolveStartTime === "number")
- message.dissolveStartTime = object.dissolveStartTime;
- else if (typeof object.dissolveStartTime === "object")
- message.dissolveStartTime = new $util.LongBits(object.dissolveStartTime.low >>> 0, object.dissolveStartTime.high >>> 0).toNumber();
- if (object.aggreeDissolvePlayers) {
- if (!Array.isArray(object.aggreeDissolvePlayers))
- throw TypeError(".guandan.GCRoomInfo.aggreeDissolvePlayers: array expected");
- message.aggreeDissolvePlayers = [];
- for (var i = 0; i < object.aggreeDissolvePlayers.length; ++i)
- if ($util.Long)
- (message.aggreeDissolvePlayers[i] = $util.Long.fromValue(object.aggreeDissolvePlayers[i])).unsigned = false;
- else if (typeof object.aggreeDissolvePlayers[i] === "string")
- message.aggreeDissolvePlayers[i] = parseInt(object.aggreeDissolvePlayers[i], 10);
- else if (typeof object.aggreeDissolvePlayers[i] === "number")
- message.aggreeDissolvePlayers[i] = object.aggreeDissolvePlayers[i];
- else if (typeof object.aggreeDissolvePlayers[i] === "object")
- message.aggreeDissolvePlayers[i] = new $util.LongBits(object.aggreeDissolvePlayers[i].low >>> 0, object.aggreeDissolvePlayers[i].high >>> 0).toNumber();
- }
- if (object.bankerPos != null)
- message.bankerPos = object.bankerPos | 0;
- if (object.jinPais) {
- if (!Array.isArray(object.jinPais))
- throw TypeError(".guandan.GCRoomInfo.jinPais: array expected");
- message.jinPais = [];
- for (var i = 0; i < object.jinPais.length; ++i)
- message.jinPais[i] = object.jinPais[i] | 0;
- }
- if (object.score != null)
- message.score = object.score | 0;
- if (object.mahjongType != null)
- message.mahjongType = object.mahjongType | 0;
- if (object.roomConfig != null)
- if (typeof object.roomConfig === "string")
- $util.base64.decode(object.roomConfig, message.roomConfig = $util.newBuffer($util.base64.length(object.roomConfig)), 0);
- else if (object.roomConfig.length)
- message.roomConfig = object.roomConfig;
- if (object.cardPlayObject != null)
- message.cardPlayObject = object.cardPlayObject | 0;
- if (object.maxPlayers != null)
- message.maxPlayers = object.maxPlayers | 0;
- if (object.currentQuan != null)
- message.currentQuan = object.currentQuan | 0;
- if (object.createTime != null)
- if ($util.Long)
- (message.createTime = $util.Long.fromValue(object.createTime)).unsigned = false;
- else if (typeof object.createTime === "string")
- message.createTime = parseInt(object.createTime, 10);
- else if (typeof object.createTime === "number")
- message.createTime = object.createTime;
- else if (typeof object.createTime === "object")
- message.createTime = new $util.LongBits(object.createTime.low >>> 0, object.createTime.high >>> 0).toNumber();
- if (object.openRoomType != null)
- message.openRoomType = object.openRoomType | 0;
- if (object.forbidJoinTime != null)
- if ($util.Long)
- (message.forbidJoinTime = $util.Long.fromValue(object.forbidJoinTime)).unsigned = false;
- else if (typeof object.forbidJoinTime === "string")
- message.forbidJoinTime = parseInt(object.forbidJoinTime, 10);
- else if (typeof object.forbidJoinTime === "number")
- message.forbidJoinTime = object.forbidJoinTime;
- else if (typeof object.forbidJoinTime === "object")
- message.forbidJoinTime = new $util.LongBits(object.forbidJoinTime.low >>> 0, object.forbidJoinTime.high >>> 0).toNumber();
- if (object.lastGameTime != null)
- if ($util.Long)
- (message.lastGameTime = $util.Long.fromValue(object.lastGameTime)).unsigned = false;
- else if (typeof object.lastGameTime === "string")
- message.lastGameTime = parseInt(object.lastGameTime, 10);
- else if (typeof object.lastGameTime === "number")
- message.lastGameTime = object.lastGameTime;
- else if (typeof object.lastGameTime === "object")
- message.lastGameTime = new $util.LongBits(object.lastGameTime.low >>> 0, object.lastGameTime.high >>> 0).toNumber();
- if (object.payMethod != null)
- message.payMethod = object.payMethod | 0;
- if (object.roomMode != null)
- message.roomMode = object.roomMode | 0;
- if (object.lastTime != null)
- if ($util.Long)
- (message.lastTime = $util.Long.fromValue(object.lastTime)).unsigned = false;
- else if (typeof object.lastTime === "string")
- message.lastTime = parseInt(object.lastTime, 10);
- else if (typeof object.lastTime === "number")
- message.lastTime = object.lastTime;
- else if (typeof object.lastTime === "object")
- message.lastTime = new $util.LongBits(object.lastTime.low >>> 0, object.lastTime.high >>> 0).toNumber();
- if (object.now != null)
- if ($util.Long)
- (message.now = $util.Long.fromValue(object.now)).unsigned = false;
- else if (typeof object.now === "string")
- message.now = parseInt(object.now, 10);
- else if (typeof object.now === "number")
- message.now = object.now;
- else if (typeof object.now === "object")
- message.now = new $util.LongBits(object.now.low >>> 0, object.now.high >>> 0).toNumber();
- if (object.di != null)
- if ($util.Long)
- (message.di = $util.Long.fromValue(object.di)).unsigned = false;
- else if (typeof object.di === "string")
- message.di = parseInt(object.di, 10);
- else if (typeof object.di === "number")
- message.di = object.di;
- else if (typeof object.di === "object")
- message.di = new $util.LongBits(object.di.low >>> 0, object.di.high >>> 0).toNumber();
- if (object.activityType != null)
- message.activityType = object.activityType | 0;
- if (object.isDouble != null)
- message.isDouble = Boolean(object.isDouble);
- if (object.playCards) {
- if (!Array.isArray(object.playCards))
- throw TypeError(".guandan.GCRoomInfo.playCards: array expected");
- message.playCards = [];
- for (var i = 0; i < object.playCards.length; ++i)
- message.playCards[i] = object.playCards[i] | 0;
- }
- if (object.posGroup != null)
- message.posGroup = object.posGroup | 0;
- if (object.bombNum != null)
- message.bombNum = object.bombNum | 0;
- if (object.roundArrangeEndTime != null)
- if ($util.Long)
- (message.roundArrangeEndTime = $util.Long.fromValue(object.roundArrangeEndTime)).unsigned = false;
- else if (typeof object.roundArrangeEndTime === "string")
- message.roundArrangeEndTime = parseInt(object.roundArrangeEndTime, 10);
- else if (typeof object.roundArrangeEndTime === "number")
- message.roundArrangeEndTime = object.roundArrangeEndTime;
- else if (typeof object.roundArrangeEndTime === "object")
- message.roundArrangeEndTime = new $util.LongBits(object.roundArrangeEndTime.low >>> 0, object.roundArrangeEndTime.high >>> 0).toNumber();
- if (object.goldRoomName != null)
- message.goldRoomName = String(object.goldRoomName);
- if (object.doubleEndTime != null)
- if ($util.Long)
- (message.doubleEndTime = $util.Long.fromValue(object.doubleEndTime)).unsigned = false;
- else if (typeof object.doubleEndTime === "string")
- message.doubleEndTime = parseInt(object.doubleEndTime, 10);
- else if (typeof object.doubleEndTime === "number")
- message.doubleEndTime = object.doubleEndTime;
- else if (typeof object.doubleEndTime === "object")
- message.doubleEndTime = new $util.LongBits(object.doubleEndTime.low >>> 0, object.doubleEndTime.high >>> 0).toNumber();
- if (object.jinGongInfoList) {
- if (!Array.isArray(object.jinGongInfoList))
- throw TypeError(".guandan.GCRoomInfo.jinGongInfoList: array expected");
- message.jinGongInfoList = [];
- for (var i = 0; i < object.jinGongInfoList.length; ++i) {
- if (typeof object.jinGongInfoList[i] !== "object")
- throw TypeError(".guandan.GCRoomInfo.jinGongInfoList: object expected");
- message.jinGongInfoList[i] = $root.guandan.GCJinGongInfo.fromObject(object.jinGongInfoList[i]);
- }
- }
- if (object.huanGongInfoList) {
- if (!Array.isArray(object.huanGongInfoList))
- throw TypeError(".guandan.GCRoomInfo.huanGongInfoList: array expected");
- message.huanGongInfoList = [];
- for (var i = 0; i < object.huanGongInfoList.length; ++i) {
- if (typeof object.huanGongInfoList[i] !== "object")
- throw TypeError(".guandan.GCRoomInfo.huanGongInfoList: object expected");
- message.huanGongInfoList[i] = $root.guandan.GCHuanGongInfo.fromObject(object.huanGongInfoList[i]);
- }
- }
- if (object.needHuanGong != null) {
- if (typeof object.needHuanGong !== "object")
- throw TypeError(".guandan.GCRoomInfo.needHuanGong: object expected");
- message.needHuanGong = $root.guandan.GCNeedHuanGongInfo.fromObject(object.needHuanGong);
- }
- if (object.kangGongInfoList) {
- if (!Array.isArray(object.kangGongInfoList))
- throw TypeError(".guandan.GCRoomInfo.kangGongInfoList: array expected");
- message.kangGongInfoList = [];
- for (var i = 0; i < object.kangGongInfoList.length; ++i) {
- if (typeof object.kangGongInfoList[i] !== "object")
- throw TypeError(".guandan.GCRoomInfo.kangGongInfoList: object expected");
- message.kangGongInfoList[i] = $root.guandan.GCKangGongInfo.fromObject(object.kangGongInfoList[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from a GCRoomInfo message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCRoomInfo
- * @static
- * @param {guandan.GCRoomInfo} message GCRoomInfo
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCRoomInfo.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.arrays || options.defaults) {
- object.currentOperationList = [];
- object.currentCards = [];
- object.aggreeDissolvePlayers = [];
- object.jinPais = [];
- object.playCards = [];
- object.jinGongInfoList = [];
- object.huanGongInfoList = [];
- object.kangGongInfoList = [];
- }
- if (options.defaults) {
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.roomId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.roomId = options.longs === String ? "0" : 0;
- object.state = 0;
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.currentPlayerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.currentPlayerId = options.longs === String ? "0" : 0;
- object.currentCardMethod = 0;
- object.currentRound = 0;
- object.name = "";
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.ownerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.ownerId = options.longs === String ? "0" : 0;
- object.totalRound = 0;
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.dissolveStartTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.dissolveStartTime = options.longs === String ? "0" : 0;
- object.bankerPos = 0;
- object.score = 0;
- object.mahjongType = 0;
- if (options.bytes === String)
- object.roomConfig = "";
- else {
- object.roomConfig = [];
- if (options.bytes !== Array)
- object.roomConfig = $util.newBuffer(object.roomConfig);
- }
- object.cardPlayObject = 0;
- object.maxPlayers = 0;
- object.currentQuan = 0;
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.createTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.createTime = options.longs === String ? "0" : 0;
- object.openRoomType = 0;
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.forbidJoinTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.forbidJoinTime = options.longs === String ? "0" : 0;
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.lastGameTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.lastGameTime = options.longs === String ? "0" : 0;
- object.payMethod = 0;
- object.roomMode = 0;
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.lastTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.lastTime = options.longs === String ? "0" : 0;
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.now = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.now = options.longs === String ? "0" : 0;
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.di = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.di = options.longs === String ? "0" : 0;
- object.activityType = 0;
- object.isDouble = false;
- object.posGroup = 0;
- object.bombNum = 0;
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.roundArrangeEndTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.roundArrangeEndTime = options.longs === String ? "0" : 0;
- object.goldRoomName = "";
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.doubleEndTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.doubleEndTime = options.longs === String ? "0" : 0;
- object.needHuanGong = null;
- }
- if (message.roomId != null && message.hasOwnProperty("roomId"))
- if (typeof message.roomId === "number")
- object.roomId = options.longs === String ? String(message.roomId) : message.roomId;
- else
- 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;
- if (message.state != null && message.hasOwnProperty("state"))
- object.state = message.state;
- if (message.currentPlayerId != null && message.hasOwnProperty("currentPlayerId"))
- if (typeof message.currentPlayerId === "number")
- object.currentPlayerId = options.longs === String ? String(message.currentPlayerId) : message.currentPlayerId;
- else
- 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;
- if (message.currentOperationList && message.currentOperationList.length) {
- object.currentOperationList = [];
- for (var j = 0; j < message.currentOperationList.length; ++j)
- object.currentOperationList[j] = $root.guandan.Operation.toObject(message.currentOperationList[j], options);
- }
- if (message.currentCards && message.currentCards.length) {
- object.currentCards = [];
- for (var j = 0; j < message.currentCards.length; ++j)
- object.currentCards[j] = message.currentCards[j];
- }
- if (message.currentCardMethod != null && message.hasOwnProperty("currentCardMethod"))
- object.currentCardMethod = message.currentCardMethod;
- if (message.currentRound != null && message.hasOwnProperty("currentRound"))
- object.currentRound = message.currentRound;
- if (message.name != null && message.hasOwnProperty("name"))
- object.name = message.name;
- if (message.ownerId != null && message.hasOwnProperty("ownerId"))
- if (typeof message.ownerId === "number")
- object.ownerId = options.longs === String ? String(message.ownerId) : message.ownerId;
- else
- 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;
- if (message.totalRound != null && message.hasOwnProperty("totalRound"))
- object.totalRound = message.totalRound;
- if (message.dissolveStartTime != null && message.hasOwnProperty("dissolveStartTime"))
- if (typeof message.dissolveStartTime === "number")
- object.dissolveStartTime = options.longs === String ? String(message.dissolveStartTime) : message.dissolveStartTime;
- else
- 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;
- if (message.aggreeDissolvePlayers && message.aggreeDissolvePlayers.length) {
- object.aggreeDissolvePlayers = [];
- for (var j = 0; j < message.aggreeDissolvePlayers.length; ++j)
- if (typeof message.aggreeDissolvePlayers[j] === "number")
- object.aggreeDissolvePlayers[j] = options.longs === String ? String(message.aggreeDissolvePlayers[j]) : message.aggreeDissolvePlayers[j];
- else
- 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];
- }
- if (message.bankerPos != null && message.hasOwnProperty("bankerPos"))
- object.bankerPos = message.bankerPos;
- if (message.jinPais && message.jinPais.length) {
- object.jinPais = [];
- for (var j = 0; j < message.jinPais.length; ++j)
- object.jinPais[j] = message.jinPais[j];
- }
- if (message.score != null && message.hasOwnProperty("score"))
- object.score = message.score;
- if (message.mahjongType != null && message.hasOwnProperty("mahjongType"))
- object.mahjongType = message.mahjongType;
- if (message.roomConfig != null && message.hasOwnProperty("roomConfig"))
- 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;
- if (message.cardPlayObject != null && message.hasOwnProperty("cardPlayObject"))
- object.cardPlayObject = message.cardPlayObject;
- if (message.maxPlayers != null && message.hasOwnProperty("maxPlayers"))
- object.maxPlayers = message.maxPlayers;
- if (message.currentQuan != null && message.hasOwnProperty("currentQuan"))
- object.currentQuan = message.currentQuan;
- if (message.createTime != null && message.hasOwnProperty("createTime"))
- if (typeof message.createTime === "number")
- object.createTime = options.longs === String ? String(message.createTime) : message.createTime;
- else
- 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;
- if (message.openRoomType != null && message.hasOwnProperty("openRoomType"))
- object.openRoomType = message.openRoomType;
- if (message.forbidJoinTime != null && message.hasOwnProperty("forbidJoinTime"))
- if (typeof message.forbidJoinTime === "number")
- object.forbidJoinTime = options.longs === String ? String(message.forbidJoinTime) : message.forbidJoinTime;
- else
- 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;
- if (message.lastGameTime != null && message.hasOwnProperty("lastGameTime"))
- if (typeof message.lastGameTime === "number")
- object.lastGameTime = options.longs === String ? String(message.lastGameTime) : message.lastGameTime;
- else
- 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;
- if (message.payMethod != null && message.hasOwnProperty("payMethod"))
- object.payMethod = message.payMethod;
- if (message.roomMode != null && message.hasOwnProperty("roomMode"))
- object.roomMode = message.roomMode;
- if (message.lastTime != null && message.hasOwnProperty("lastTime"))
- if (typeof message.lastTime === "number")
- object.lastTime = options.longs === String ? String(message.lastTime) : message.lastTime;
- else
- 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;
- if (message.now != null && message.hasOwnProperty("now"))
- if (typeof message.now === "number")
- object.now = options.longs === String ? String(message.now) : message.now;
- else
- 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;
- if (message.di != null && message.hasOwnProperty("di"))
- if (typeof message.di === "number")
- object.di = options.longs === String ? String(message.di) : message.di;
- else
- 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;
- if (message.activityType != null && message.hasOwnProperty("activityType"))
- object.activityType = message.activityType;
- if (message.isDouble != null && message.hasOwnProperty("isDouble"))
- object.isDouble = message.isDouble;
- if (message.playCards && message.playCards.length) {
- object.playCards = [];
- for (var j = 0; j < message.playCards.length; ++j)
- object.playCards[j] = message.playCards[j];
- }
- if (message.posGroup != null && message.hasOwnProperty("posGroup"))
- object.posGroup = message.posGroup;
- if (message.bombNum != null && message.hasOwnProperty("bombNum"))
- object.bombNum = message.bombNum;
- if (message.roundArrangeEndTime != null && message.hasOwnProperty("roundArrangeEndTime"))
- if (typeof message.roundArrangeEndTime === "number")
- object.roundArrangeEndTime = options.longs === String ? String(message.roundArrangeEndTime) : message.roundArrangeEndTime;
- else
- 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;
- if (message.goldRoomName != null && message.hasOwnProperty("goldRoomName"))
- object.goldRoomName = message.goldRoomName;
- if (message.doubleEndTime != null && message.hasOwnProperty("doubleEndTime"))
- if (typeof message.doubleEndTime === "number")
- object.doubleEndTime = options.longs === String ? String(message.doubleEndTime) : message.doubleEndTime;
- else
- 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;
- if (message.jinGongInfoList && message.jinGongInfoList.length) {
- object.jinGongInfoList = [];
- for (var j = 0; j < message.jinGongInfoList.length; ++j)
- object.jinGongInfoList[j] = $root.guandan.GCJinGongInfo.toObject(message.jinGongInfoList[j], options);
- }
- if (message.huanGongInfoList && message.huanGongInfoList.length) {
- object.huanGongInfoList = [];
- for (var j = 0; j < message.huanGongInfoList.length; ++j)
- object.huanGongInfoList[j] = $root.guandan.GCHuanGongInfo.toObject(message.huanGongInfoList[j], options);
- }
- if (message.needHuanGong != null && message.hasOwnProperty("needHuanGong"))
- object.needHuanGong = $root.guandan.GCNeedHuanGongInfo.toObject(message.needHuanGong, options);
- if (message.kangGongInfoList && message.kangGongInfoList.length) {
- object.kangGongInfoList = [];
- for (var j = 0; j < message.kangGongInfoList.length; ++j)
- object.kangGongInfoList[j] = $root.guandan.GCKangGongInfo.toObject(message.kangGongInfoList[j], options);
- }
- return object;
- };
- /**
- * Converts this GCRoomInfo to JSON.
- * @function toJSON
- * @memberof guandan.GCRoomInfo
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCRoomInfo.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCRoomInfo;
- })();
- guandan.GCJoinRoom = (function() {
- /**
- * Properties of a GCJoinRoom.
- * @memberof guandan
- * @interface IGCJoinRoom
- * @property {guandan.IGCRoomInfo} roomInfo GCJoinRoom roomInfo
- * @property {Array.<guandan.IGCPlayerInfo>|null} [playerInfoList] GCJoinRoom playerInfoList
- */
- /**
- * Constructs a new GCJoinRoom.
- * @memberof guandan
- * @classdesc Represents a GCJoinRoom.
- * @implements IGCJoinRoom
- * @constructor
- * @param {guandan.IGCJoinRoom=} [properties] Properties to set
- */
- function GCJoinRoom(properties) {
- this.playerInfoList = [];
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCJoinRoom roomInfo.
- * @member {guandan.IGCRoomInfo} roomInfo
- * @memberof guandan.GCJoinRoom
- * @instance
- */
- GCJoinRoom.prototype.roomInfo = null;
- /**
- * GCJoinRoom playerInfoList.
- * @member {Array.<guandan.IGCPlayerInfo>} playerInfoList
- * @memberof guandan.GCJoinRoom
- * @instance
- */
- GCJoinRoom.prototype.playerInfoList = $util.emptyArray;
- /**
- * Creates a new GCJoinRoom instance using the specified properties.
- * @function create
- * @memberof guandan.GCJoinRoom
- * @static
- * @param {guandan.IGCJoinRoom=} [properties] Properties to set
- * @returns {guandan.GCJoinRoom} GCJoinRoom instance
- */
- GCJoinRoom.create = function create(properties) {
- return new GCJoinRoom(properties);
- };
- /**
- * Encodes the specified GCJoinRoom message. Does not implicitly {@link guandan.GCJoinRoom.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCJoinRoom
- * @static
- * @param {guandan.IGCJoinRoom} message GCJoinRoom message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCJoinRoom.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- $root.guandan.GCRoomInfo.encode(message.roomInfo, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
- if (message.playerInfoList != null && message.playerInfoList.length)
- for (var i = 0; i < message.playerInfoList.length; ++i)
- $root.guandan.GCPlayerInfo.encode(message.playerInfoList[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified GCJoinRoom message, length delimited. Does not implicitly {@link guandan.GCJoinRoom.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCJoinRoom
- * @static
- * @param {guandan.IGCJoinRoom} message GCJoinRoom message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCJoinRoom.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCJoinRoom message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCJoinRoom
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCJoinRoom} GCJoinRoom
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCJoinRoom.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCJoinRoom();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.roomInfo = $root.guandan.GCRoomInfo.decode(reader, reader.uint32());
- break;
- case 2:
- if (!(message.playerInfoList && message.playerInfoList.length))
- message.playerInfoList = [];
- message.playerInfoList.push($root.guandan.GCPlayerInfo.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("roomInfo"))
- throw $util.ProtocolError("missing required 'roomInfo'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCJoinRoom message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCJoinRoom
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCJoinRoom} GCJoinRoom
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCJoinRoom.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCJoinRoom message.
- * @function verify
- * @memberof guandan.GCJoinRoom
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCJoinRoom.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- {
- var error = $root.guandan.GCRoomInfo.verify(message.roomInfo);
- if (error)
- return "roomInfo." + error;
- }
- if (message.playerInfoList != null && message.hasOwnProperty("playerInfoList")) {
- if (!Array.isArray(message.playerInfoList))
- return "playerInfoList: array expected";
- for (var i = 0; i < message.playerInfoList.length; ++i) {
- var error = $root.guandan.GCPlayerInfo.verify(message.playerInfoList[i]);
- if (error)
- return "playerInfoList." + error;
- }
- }
- return null;
- };
- /**
- * Creates a GCJoinRoom message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCJoinRoom
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCJoinRoom} GCJoinRoom
- */
- GCJoinRoom.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCJoinRoom)
- return object;
- var message = new $root.guandan.GCJoinRoom();
- if (object.roomInfo != null) {
- if (typeof object.roomInfo !== "object")
- throw TypeError(".guandan.GCJoinRoom.roomInfo: object expected");
- message.roomInfo = $root.guandan.GCRoomInfo.fromObject(object.roomInfo);
- }
- if (object.playerInfoList) {
- if (!Array.isArray(object.playerInfoList))
- throw TypeError(".guandan.GCJoinRoom.playerInfoList: array expected");
- message.playerInfoList = [];
- for (var i = 0; i < object.playerInfoList.length; ++i) {
- if (typeof object.playerInfoList[i] !== "object")
- throw TypeError(".guandan.GCJoinRoom.playerInfoList: object expected");
- message.playerInfoList[i] = $root.guandan.GCPlayerInfo.fromObject(object.playerInfoList[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from a GCJoinRoom message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCJoinRoom
- * @static
- * @param {guandan.GCJoinRoom} message GCJoinRoom
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCJoinRoom.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.arrays || options.defaults)
- object.playerInfoList = [];
- if (options.defaults)
- object.roomInfo = null;
- if (message.roomInfo != null && message.hasOwnProperty("roomInfo"))
- object.roomInfo = $root.guandan.GCRoomInfo.toObject(message.roomInfo, options);
- if (message.playerInfoList && message.playerInfoList.length) {
- object.playerInfoList = [];
- for (var j = 0; j < message.playerInfoList.length; ++j)
- object.playerInfoList[j] = $root.guandan.GCPlayerInfo.toObject(message.playerInfoList[j], options);
- }
- return object;
- };
- /**
- * Converts this GCJoinRoom to JSON.
- * @function toJSON
- * @memberof guandan.GCJoinRoom
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCJoinRoom.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCJoinRoom;
- })();
- guandan.GCJoinRoomBroadcast = (function() {
- /**
- * Properties of a GCJoinRoomBroadcast.
- * @memberof guandan
- * @interface IGCJoinRoomBroadcast
- * @property {guandan.IGCPlayerInfo} gcPlayerInfo GCJoinRoomBroadcast gcPlayerInfo
- */
- /**
- * Constructs a new GCJoinRoomBroadcast.
- * @memberof guandan
- * @classdesc Represents a GCJoinRoomBroadcast.
- * @implements IGCJoinRoomBroadcast
- * @constructor
- * @param {guandan.IGCJoinRoomBroadcast=} [properties] Properties to set
- */
- function GCJoinRoomBroadcast(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCJoinRoomBroadcast gcPlayerInfo.
- * @member {guandan.IGCPlayerInfo} gcPlayerInfo
- * @memberof guandan.GCJoinRoomBroadcast
- * @instance
- */
- GCJoinRoomBroadcast.prototype.gcPlayerInfo = null;
- /**
- * Creates a new GCJoinRoomBroadcast instance using the specified properties.
- * @function create
- * @memberof guandan.GCJoinRoomBroadcast
- * @static
- * @param {guandan.IGCJoinRoomBroadcast=} [properties] Properties to set
- * @returns {guandan.GCJoinRoomBroadcast} GCJoinRoomBroadcast instance
- */
- GCJoinRoomBroadcast.create = function create(properties) {
- return new GCJoinRoomBroadcast(properties);
- };
- /**
- * Encodes the specified GCJoinRoomBroadcast message. Does not implicitly {@link guandan.GCJoinRoomBroadcast.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCJoinRoomBroadcast
- * @static
- * @param {guandan.IGCJoinRoomBroadcast} message GCJoinRoomBroadcast message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCJoinRoomBroadcast.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- $root.guandan.GCPlayerInfo.encode(message.gcPlayerInfo, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified GCJoinRoomBroadcast message, length delimited. Does not implicitly {@link guandan.GCJoinRoomBroadcast.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCJoinRoomBroadcast
- * @static
- * @param {guandan.IGCJoinRoomBroadcast} message GCJoinRoomBroadcast message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCJoinRoomBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCJoinRoomBroadcast message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCJoinRoomBroadcast
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCJoinRoomBroadcast} GCJoinRoomBroadcast
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCJoinRoomBroadcast.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCJoinRoomBroadcast();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.gcPlayerInfo = $root.guandan.GCPlayerInfo.decode(reader, reader.uint32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("gcPlayerInfo"))
- throw $util.ProtocolError("missing required 'gcPlayerInfo'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCJoinRoomBroadcast message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCJoinRoomBroadcast
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCJoinRoomBroadcast} GCJoinRoomBroadcast
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCJoinRoomBroadcast.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCJoinRoomBroadcast message.
- * @function verify
- * @memberof guandan.GCJoinRoomBroadcast
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCJoinRoomBroadcast.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- {
- var error = $root.guandan.GCPlayerInfo.verify(message.gcPlayerInfo);
- if (error)
- return "gcPlayerInfo." + error;
- }
- return null;
- };
- /**
- * Creates a GCJoinRoomBroadcast message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCJoinRoomBroadcast
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCJoinRoomBroadcast} GCJoinRoomBroadcast
- */
- GCJoinRoomBroadcast.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCJoinRoomBroadcast)
- return object;
- var message = new $root.guandan.GCJoinRoomBroadcast();
- if (object.gcPlayerInfo != null) {
- if (typeof object.gcPlayerInfo !== "object")
- throw TypeError(".guandan.GCJoinRoomBroadcast.gcPlayerInfo: object expected");
- message.gcPlayerInfo = $root.guandan.GCPlayerInfo.fromObject(object.gcPlayerInfo);
- }
- return message;
- };
- /**
- * Creates a plain object from a GCJoinRoomBroadcast message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCJoinRoomBroadcast
- * @static
- * @param {guandan.GCJoinRoomBroadcast} message GCJoinRoomBroadcast
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCJoinRoomBroadcast.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults)
- object.gcPlayerInfo = null;
- if (message.gcPlayerInfo != null && message.hasOwnProperty("gcPlayerInfo"))
- object.gcPlayerInfo = $root.guandan.GCPlayerInfo.toObject(message.gcPlayerInfo, options);
- return object;
- };
- /**
- * Converts this GCJoinRoomBroadcast to JSON.
- * @function toJSON
- * @memberof guandan.GCJoinRoomBroadcast
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCJoinRoomBroadcast.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCJoinRoomBroadcast;
- })();
- guandan.GCSelectBankerBroadcast = (function() {
- /**
- * Properties of a GCSelectBankerBroadcast.
- * @memberof guandan
- * @interface IGCSelectBankerBroadcast
- * @property {number} bankerPos GCSelectBankerBroadcast bankerPos
- * @property {Array.<number>|null} [shaiZis] GCSelectBankerBroadcast shaiZis
- */
- /**
- * Constructs a new GCSelectBankerBroadcast.
- * @memberof guandan
- * @classdesc Represents a GCSelectBankerBroadcast.
- * @implements IGCSelectBankerBroadcast
- * @constructor
- * @param {guandan.IGCSelectBankerBroadcast=} [properties] Properties to set
- */
- function GCSelectBankerBroadcast(properties) {
- this.shaiZis = [];
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCSelectBankerBroadcast bankerPos.
- * @member {number} bankerPos
- * @memberof guandan.GCSelectBankerBroadcast
- * @instance
- */
- GCSelectBankerBroadcast.prototype.bankerPos = 0;
- /**
- * GCSelectBankerBroadcast shaiZis.
- * @member {Array.<number>} shaiZis
- * @memberof guandan.GCSelectBankerBroadcast
- * @instance
- */
- GCSelectBankerBroadcast.prototype.shaiZis = $util.emptyArray;
- /**
- * Creates a new GCSelectBankerBroadcast instance using the specified properties.
- * @function create
- * @memberof guandan.GCSelectBankerBroadcast
- * @static
- * @param {guandan.IGCSelectBankerBroadcast=} [properties] Properties to set
- * @returns {guandan.GCSelectBankerBroadcast} GCSelectBankerBroadcast instance
- */
- GCSelectBankerBroadcast.create = function create(properties) {
- return new GCSelectBankerBroadcast(properties);
- };
- /**
- * Encodes the specified GCSelectBankerBroadcast message. Does not implicitly {@link guandan.GCSelectBankerBroadcast.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCSelectBankerBroadcast
- * @static
- * @param {guandan.IGCSelectBankerBroadcast} message GCSelectBankerBroadcast message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCSelectBankerBroadcast.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int32(message.bankerPos);
- if (message.shaiZis != null && message.shaiZis.length)
- for (var i = 0; i < message.shaiZis.length; ++i)
- writer.uint32(/* id 2, wireType 0 =*/16).int32(message.shaiZis[i]);
- return writer;
- };
- /**
- * Encodes the specified GCSelectBankerBroadcast message, length delimited. Does not implicitly {@link guandan.GCSelectBankerBroadcast.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCSelectBankerBroadcast
- * @static
- * @param {guandan.IGCSelectBankerBroadcast} message GCSelectBankerBroadcast message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCSelectBankerBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCSelectBankerBroadcast message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCSelectBankerBroadcast
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCSelectBankerBroadcast} GCSelectBankerBroadcast
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCSelectBankerBroadcast.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCSelectBankerBroadcast();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.bankerPos = reader.int32();
- break;
- case 2:
- if (!(message.shaiZis && message.shaiZis.length))
- message.shaiZis = [];
- if ((tag & 7) === 2) {
- var end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.shaiZis.push(reader.int32());
- } else
- message.shaiZis.push(reader.int32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("bankerPos"))
- throw $util.ProtocolError("missing required 'bankerPos'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCSelectBankerBroadcast message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCSelectBankerBroadcast
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCSelectBankerBroadcast} GCSelectBankerBroadcast
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCSelectBankerBroadcast.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCSelectBankerBroadcast message.
- * @function verify
- * @memberof guandan.GCSelectBankerBroadcast
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCSelectBankerBroadcast.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.bankerPos))
- return "bankerPos: integer expected";
- if (message.shaiZis != null && message.hasOwnProperty("shaiZis")) {
- if (!Array.isArray(message.shaiZis))
- return "shaiZis: array expected";
- for (var i = 0; i < message.shaiZis.length; ++i)
- if (!$util.isInteger(message.shaiZis[i]))
- return "shaiZis: integer[] expected";
- }
- return null;
- };
- /**
- * Creates a GCSelectBankerBroadcast message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCSelectBankerBroadcast
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCSelectBankerBroadcast} GCSelectBankerBroadcast
- */
- GCSelectBankerBroadcast.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCSelectBankerBroadcast)
- return object;
- var message = new $root.guandan.GCSelectBankerBroadcast();
- if (object.bankerPos != null)
- message.bankerPos = object.bankerPos | 0;
- if (object.shaiZis) {
- if (!Array.isArray(object.shaiZis))
- throw TypeError(".guandan.GCSelectBankerBroadcast.shaiZis: array expected");
- message.shaiZis = [];
- for (var i = 0; i < object.shaiZis.length; ++i)
- message.shaiZis[i] = object.shaiZis[i] | 0;
- }
- return message;
- };
- /**
- * Creates a plain object from a GCSelectBankerBroadcast message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCSelectBankerBroadcast
- * @static
- * @param {guandan.GCSelectBankerBroadcast} message GCSelectBankerBroadcast
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCSelectBankerBroadcast.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.arrays || options.defaults)
- object.shaiZis = [];
- if (options.defaults)
- object.bankerPos = 0;
- if (message.bankerPos != null && message.hasOwnProperty("bankerPos"))
- object.bankerPos = message.bankerPos;
- if (message.shaiZis && message.shaiZis.length) {
- object.shaiZis = [];
- for (var j = 0; j < message.shaiZis.length; ++j)
- object.shaiZis[j] = message.shaiZis[j];
- }
- return object;
- };
- /**
- * Converts this GCSelectBankerBroadcast to JSON.
- * @function toJSON
- * @memberof guandan.GCSelectBankerBroadcast
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCSelectBankerBroadcast.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCSelectBankerBroadcast;
- })();
- guandan.GCDealCards = (function() {
- /**
- * Properties of a GCDealCards.
- * @memberof guandan
- * @interface IGCDealCards
- * @property {Array.<number>|null} [cards] GCDealCards cards
- */
- /**
- * Constructs a new GCDealCards.
- * @memberof guandan
- * @classdesc Represents a GCDealCards.
- * @implements IGCDealCards
- * @constructor
- * @param {guandan.IGCDealCards=} [properties] Properties to set
- */
- function GCDealCards(properties) {
- this.cards = [];
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCDealCards cards.
- * @member {Array.<number>} cards
- * @memberof guandan.GCDealCards
- * @instance
- */
- GCDealCards.prototype.cards = $util.emptyArray;
- /**
- * Creates a new GCDealCards instance using the specified properties.
- * @function create
- * @memberof guandan.GCDealCards
- * @static
- * @param {guandan.IGCDealCards=} [properties] Properties to set
- * @returns {guandan.GCDealCards} GCDealCards instance
- */
- GCDealCards.create = function create(properties) {
- return new GCDealCards(properties);
- };
- /**
- * Encodes the specified GCDealCards message. Does not implicitly {@link guandan.GCDealCards.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCDealCards
- * @static
- * @param {guandan.IGCDealCards} message GCDealCards message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCDealCards.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.cards != null && message.cards.length)
- for (var i = 0; i < message.cards.length; ++i)
- writer.uint32(/* id 1, wireType 0 =*/8).int32(message.cards[i]);
- return writer;
- };
- /**
- * Encodes the specified GCDealCards message, length delimited. Does not implicitly {@link guandan.GCDealCards.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCDealCards
- * @static
- * @param {guandan.IGCDealCards} message GCDealCards message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCDealCards.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCDealCards message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCDealCards
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCDealCards} GCDealCards
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCDealCards.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCDealCards();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (!(message.cards && message.cards.length))
- message.cards = [];
- if ((tag & 7) === 2) {
- var end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.cards.push(reader.int32());
- } else
- message.cards.push(reader.int32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a GCDealCards message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCDealCards
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCDealCards} GCDealCards
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCDealCards.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCDealCards message.
- * @function verify
- * @memberof guandan.GCDealCards
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCDealCards.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.cards != null && message.hasOwnProperty("cards")) {
- if (!Array.isArray(message.cards))
- return "cards: array expected";
- for (var i = 0; i < message.cards.length; ++i)
- if (!$util.isInteger(message.cards[i]))
- return "cards: integer[] expected";
- }
- return null;
- };
- /**
- * Creates a GCDealCards message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCDealCards
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCDealCards} GCDealCards
- */
- GCDealCards.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCDealCards)
- return object;
- var message = new $root.guandan.GCDealCards();
- if (object.cards) {
- if (!Array.isArray(object.cards))
- throw TypeError(".guandan.GCDealCards.cards: array expected");
- message.cards = [];
- for (var i = 0; i < object.cards.length; ++i)
- message.cards[i] = object.cards[i] | 0;
- }
- return message;
- };
- /**
- * Creates a plain object from a GCDealCards message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCDealCards
- * @static
- * @param {guandan.GCDealCards} message GCDealCards
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCDealCards.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.arrays || options.defaults)
- object.cards = [];
- if (message.cards && message.cards.length) {
- object.cards = [];
- for (var j = 0; j < message.cards.length; ++j)
- object.cards[j] = message.cards[j];
- }
- return object;
- };
- /**
- * Converts this GCDealCards to JSON.
- * @function toJSON
- * @memberof guandan.GCDealCards
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCDealCards.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCDealCards;
- })();
- guandan.GCClearCircleBroadcast = (function() {
- /**
- * Properties of a GCClearCircleBroadcast.
- * @memberof guandan
- * @interface IGCClearCircleBroadcast
- * @property {number|Long} playerId GCClearCircleBroadcast playerId
- */
- /**
- * Constructs a new GCClearCircleBroadcast.
- * @memberof guandan
- * @classdesc Represents a GCClearCircleBroadcast.
- * @implements IGCClearCircleBroadcast
- * @constructor
- * @param {guandan.IGCClearCircleBroadcast=} [properties] Properties to set
- */
- function GCClearCircleBroadcast(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCClearCircleBroadcast playerId.
- * @member {number|Long} playerId
- * @memberof guandan.GCClearCircleBroadcast
- * @instance
- */
- GCClearCircleBroadcast.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new GCClearCircleBroadcast instance using the specified properties.
- * @function create
- * @memberof guandan.GCClearCircleBroadcast
- * @static
- * @param {guandan.IGCClearCircleBroadcast=} [properties] Properties to set
- * @returns {guandan.GCClearCircleBroadcast} GCClearCircleBroadcast instance
- */
- GCClearCircleBroadcast.create = function create(properties) {
- return new GCClearCircleBroadcast(properties);
- };
- /**
- * Encodes the specified GCClearCircleBroadcast message. Does not implicitly {@link guandan.GCClearCircleBroadcast.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCClearCircleBroadcast
- * @static
- * @param {guandan.IGCClearCircleBroadcast} message GCClearCircleBroadcast message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCClearCircleBroadcast.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
- return writer;
- };
- /**
- * Encodes the specified GCClearCircleBroadcast message, length delimited. Does not implicitly {@link guandan.GCClearCircleBroadcast.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCClearCircleBroadcast
- * @static
- * @param {guandan.IGCClearCircleBroadcast} message GCClearCircleBroadcast message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCClearCircleBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCClearCircleBroadcast message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCClearCircleBroadcast
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCClearCircleBroadcast} GCClearCircleBroadcast
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCClearCircleBroadcast.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCClearCircleBroadcast();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.playerId = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("playerId"))
- throw $util.ProtocolError("missing required 'playerId'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCClearCircleBroadcast message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCClearCircleBroadcast
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCClearCircleBroadcast} GCClearCircleBroadcast
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCClearCircleBroadcast.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCClearCircleBroadcast message.
- * @function verify
- * @memberof guandan.GCClearCircleBroadcast
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCClearCircleBroadcast.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
- return "playerId: integer|Long expected";
- return null;
- };
- /**
- * Creates a GCClearCircleBroadcast message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCClearCircleBroadcast
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCClearCircleBroadcast} GCClearCircleBroadcast
- */
- GCClearCircleBroadcast.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCClearCircleBroadcast)
- return object;
- var message = new $root.guandan.GCClearCircleBroadcast();
- if (object.playerId != null)
- if ($util.Long)
- (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
- else if (typeof object.playerId === "string")
- message.playerId = parseInt(object.playerId, 10);
- else if (typeof object.playerId === "number")
- message.playerId = object.playerId;
- else if (typeof object.playerId === "object")
- message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a GCClearCircleBroadcast message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCClearCircleBroadcast
- * @static
- * @param {guandan.GCClearCircleBroadcast} message GCClearCircleBroadcast
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCClearCircleBroadcast.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults)
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.playerId = options.longs === String ? "0" : 0;
- if (message.playerId != null && message.hasOwnProperty("playerId"))
- if (typeof message.playerId === "number")
- object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
- else
- 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;
- return object;
- };
- /**
- * Converts this GCClearCircleBroadcast to JSON.
- * @function toJSON
- * @memberof guandan.GCClearCircleBroadcast
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCClearCircleBroadcast.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCClearCircleBroadcast;
- })();
- guandan.CGPlayerPlayCard = (function() {
- /**
- * Properties of a CGPlayerPlayCard.
- * @memberof guandan
- * @interface ICGPlayerPlayCard
- * @property {Array.<number>|null} [card] CGPlayerPlayCard card
- */
- /**
- * Constructs a new CGPlayerPlayCard.
- * @memberof guandan
- * @classdesc Represents a CGPlayerPlayCard.
- * @implements ICGPlayerPlayCard
- * @constructor
- * @param {guandan.ICGPlayerPlayCard=} [properties] Properties to set
- */
- function CGPlayerPlayCard(properties) {
- this.card = [];
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * CGPlayerPlayCard card.
- * @member {Array.<number>} card
- * @memberof guandan.CGPlayerPlayCard
- * @instance
- */
- CGPlayerPlayCard.prototype.card = $util.emptyArray;
- /**
- * Creates a new CGPlayerPlayCard instance using the specified properties.
- * @function create
- * @memberof guandan.CGPlayerPlayCard
- * @static
- * @param {guandan.ICGPlayerPlayCard=} [properties] Properties to set
- * @returns {guandan.CGPlayerPlayCard} CGPlayerPlayCard instance
- */
- CGPlayerPlayCard.create = function create(properties) {
- return new CGPlayerPlayCard(properties);
- };
- /**
- * Encodes the specified CGPlayerPlayCard message. Does not implicitly {@link guandan.CGPlayerPlayCard.verify|verify} messages.
- * @function encode
- * @memberof guandan.CGPlayerPlayCard
- * @static
- * @param {guandan.ICGPlayerPlayCard} message CGPlayerPlayCard message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- CGPlayerPlayCard.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.card != null && message.card.length)
- for (var i = 0; i < message.card.length; ++i)
- writer.uint32(/* id 1, wireType 0 =*/8).int32(message.card[i]);
- return writer;
- };
- /**
- * Encodes the specified CGPlayerPlayCard message, length delimited. Does not implicitly {@link guandan.CGPlayerPlayCard.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.CGPlayerPlayCard
- * @static
- * @param {guandan.ICGPlayerPlayCard} message CGPlayerPlayCard message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- CGPlayerPlayCard.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a CGPlayerPlayCard message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.CGPlayerPlayCard
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.CGPlayerPlayCard} CGPlayerPlayCard
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- CGPlayerPlayCard.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.CGPlayerPlayCard();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (!(message.card && message.card.length))
- message.card = [];
- if ((tag & 7) === 2) {
- var end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.card.push(reader.int32());
- } else
- message.card.push(reader.int32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a CGPlayerPlayCard message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.CGPlayerPlayCard
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.CGPlayerPlayCard} CGPlayerPlayCard
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- CGPlayerPlayCard.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a CGPlayerPlayCard message.
- * @function verify
- * @memberof guandan.CGPlayerPlayCard
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- CGPlayerPlayCard.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.card != null && message.hasOwnProperty("card")) {
- if (!Array.isArray(message.card))
- return "card: array expected";
- for (var i = 0; i < message.card.length; ++i)
- if (!$util.isInteger(message.card[i]))
- return "card: integer[] expected";
- }
- return null;
- };
- /**
- * Creates a CGPlayerPlayCard message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.CGPlayerPlayCard
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.CGPlayerPlayCard} CGPlayerPlayCard
- */
- CGPlayerPlayCard.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.CGPlayerPlayCard)
- return object;
- var message = new $root.guandan.CGPlayerPlayCard();
- if (object.card) {
- if (!Array.isArray(object.card))
- throw TypeError(".guandan.CGPlayerPlayCard.card: array expected");
- message.card = [];
- for (var i = 0; i < object.card.length; ++i)
- message.card[i] = object.card[i] | 0;
- }
- return message;
- };
- /**
- * Creates a plain object from a CGPlayerPlayCard message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.CGPlayerPlayCard
- * @static
- * @param {guandan.CGPlayerPlayCard} message CGPlayerPlayCard
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- CGPlayerPlayCard.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.arrays || options.defaults)
- object.card = [];
- if (message.card && message.card.length) {
- object.card = [];
- for (var j = 0; j < message.card.length; ++j)
- object.card[j] = message.card[j];
- }
- return object;
- };
- /**
- * Converts this CGPlayerPlayCard to JSON.
- * @function toJSON
- * @memberof guandan.CGPlayerPlayCard
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- CGPlayerPlayCard.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return CGPlayerPlayCard;
- })();
- guandan.GCPlayerPlayCard = (function() {
- /**
- * Properties of a GCPlayerPlayCard.
- * @memberof guandan
- * @interface IGCPlayerPlayCard
- * @property {number|Long} playerId GCPlayerPlayCard playerId
- * @property {Array.<number>|null} [card] GCPlayerPlayCard card
- * @property {Array.<number>|null} [circleMaxCards] GCPlayerPlayCard circleMaxCards
- * @property {boolean} isAuto GCPlayerPlayCard isAuto
- */
- /**
- * Constructs a new GCPlayerPlayCard.
- * @memberof guandan
- * @classdesc Represents a GCPlayerPlayCard.
- * @implements IGCPlayerPlayCard
- * @constructor
- * @param {guandan.IGCPlayerPlayCard=} [properties] Properties to set
- */
- function GCPlayerPlayCard(properties) {
- this.card = [];
- this.circleMaxCards = [];
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCPlayerPlayCard playerId.
- * @member {number|Long} playerId
- * @memberof guandan.GCPlayerPlayCard
- * @instance
- */
- GCPlayerPlayCard.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * GCPlayerPlayCard card.
- * @member {Array.<number>} card
- * @memberof guandan.GCPlayerPlayCard
- * @instance
- */
- GCPlayerPlayCard.prototype.card = $util.emptyArray;
- /**
- * GCPlayerPlayCard circleMaxCards.
- * @member {Array.<number>} circleMaxCards
- * @memberof guandan.GCPlayerPlayCard
- * @instance
- */
- GCPlayerPlayCard.prototype.circleMaxCards = $util.emptyArray;
- /**
- * GCPlayerPlayCard isAuto.
- * @member {boolean} isAuto
- * @memberof guandan.GCPlayerPlayCard
- * @instance
- */
- GCPlayerPlayCard.prototype.isAuto = false;
- /**
- * Creates a new GCPlayerPlayCard instance using the specified properties.
- * @function create
- * @memberof guandan.GCPlayerPlayCard
- * @static
- * @param {guandan.IGCPlayerPlayCard=} [properties] Properties to set
- * @returns {guandan.GCPlayerPlayCard} GCPlayerPlayCard instance
- */
- GCPlayerPlayCard.create = function create(properties) {
- return new GCPlayerPlayCard(properties);
- };
- /**
- * Encodes the specified GCPlayerPlayCard message. Does not implicitly {@link guandan.GCPlayerPlayCard.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCPlayerPlayCard
- * @static
- * @param {guandan.IGCPlayerPlayCard} message GCPlayerPlayCard message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCPlayerPlayCard.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
- if (message.card != null && message.card.length)
- for (var i = 0; i < message.card.length; ++i)
- writer.uint32(/* id 2, wireType 0 =*/16).int32(message.card[i]);
- if (message.circleMaxCards != null && message.circleMaxCards.length)
- for (var i = 0; i < message.circleMaxCards.length; ++i)
- writer.uint32(/* id 3, wireType 0 =*/24).int32(message.circleMaxCards[i]);
- writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isAuto);
- return writer;
- };
- /**
- * Encodes the specified GCPlayerPlayCard message, length delimited. Does not implicitly {@link guandan.GCPlayerPlayCard.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCPlayerPlayCard
- * @static
- * @param {guandan.IGCPlayerPlayCard} message GCPlayerPlayCard message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCPlayerPlayCard.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCPlayerPlayCard message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCPlayerPlayCard
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCPlayerPlayCard} GCPlayerPlayCard
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCPlayerPlayCard.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCPlayerPlayCard();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.playerId = reader.int64();
- break;
- case 2:
- if (!(message.card && message.card.length))
- message.card = [];
- if ((tag & 7) === 2) {
- var end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.card.push(reader.int32());
- } else
- message.card.push(reader.int32());
- break;
- case 3:
- if (!(message.circleMaxCards && message.circleMaxCards.length))
- message.circleMaxCards = [];
- if ((tag & 7) === 2) {
- var end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.circleMaxCards.push(reader.int32());
- } else
- message.circleMaxCards.push(reader.int32());
- break;
- case 4:
- message.isAuto = reader.bool();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("playerId"))
- throw $util.ProtocolError("missing required 'playerId'", { instance: message });
- if (!message.hasOwnProperty("isAuto"))
- throw $util.ProtocolError("missing required 'isAuto'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCPlayerPlayCard message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCPlayerPlayCard
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCPlayerPlayCard} GCPlayerPlayCard
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCPlayerPlayCard.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCPlayerPlayCard message.
- * @function verify
- * @memberof guandan.GCPlayerPlayCard
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCPlayerPlayCard.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
- return "playerId: integer|Long expected";
- if (message.card != null && message.hasOwnProperty("card")) {
- if (!Array.isArray(message.card))
- return "card: array expected";
- for (var i = 0; i < message.card.length; ++i)
- if (!$util.isInteger(message.card[i]))
- return "card: integer[] expected";
- }
- if (message.circleMaxCards != null && message.hasOwnProperty("circleMaxCards")) {
- if (!Array.isArray(message.circleMaxCards))
- return "circleMaxCards: array expected";
- for (var i = 0; i < message.circleMaxCards.length; ++i)
- if (!$util.isInteger(message.circleMaxCards[i]))
- return "circleMaxCards: integer[] expected";
- }
- if (typeof message.isAuto !== "boolean")
- return "isAuto: boolean expected";
- return null;
- };
- /**
- * Creates a GCPlayerPlayCard message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCPlayerPlayCard
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCPlayerPlayCard} GCPlayerPlayCard
- */
- GCPlayerPlayCard.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCPlayerPlayCard)
- return object;
- var message = new $root.guandan.GCPlayerPlayCard();
- if (object.playerId != null)
- if ($util.Long)
- (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
- else if (typeof object.playerId === "string")
- message.playerId = parseInt(object.playerId, 10);
- else if (typeof object.playerId === "number")
- message.playerId = object.playerId;
- else if (typeof object.playerId === "object")
- message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
- if (object.card) {
- if (!Array.isArray(object.card))
- throw TypeError(".guandan.GCPlayerPlayCard.card: array expected");
- message.card = [];
- for (var i = 0; i < object.card.length; ++i)
- message.card[i] = object.card[i] | 0;
- }
- if (object.circleMaxCards) {
- if (!Array.isArray(object.circleMaxCards))
- throw TypeError(".guandan.GCPlayerPlayCard.circleMaxCards: array expected");
- message.circleMaxCards = [];
- for (var i = 0; i < object.circleMaxCards.length; ++i)
- message.circleMaxCards[i] = object.circleMaxCards[i] | 0;
- }
- if (object.isAuto != null)
- message.isAuto = Boolean(object.isAuto);
- return message;
- };
- /**
- * Creates a plain object from a GCPlayerPlayCard message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCPlayerPlayCard
- * @static
- * @param {guandan.GCPlayerPlayCard} message GCPlayerPlayCard
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCPlayerPlayCard.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.arrays || options.defaults) {
- object.card = [];
- object.circleMaxCards = [];
- }
- if (options.defaults) {
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.playerId = options.longs === String ? "0" : 0;
- object.isAuto = false;
- }
- if (message.playerId != null && message.hasOwnProperty("playerId"))
- if (typeof message.playerId === "number")
- object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
- else
- 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;
- if (message.card && message.card.length) {
- object.card = [];
- for (var j = 0; j < message.card.length; ++j)
- object.card[j] = message.card[j];
- }
- if (message.circleMaxCards && message.circleMaxCards.length) {
- object.circleMaxCards = [];
- for (var j = 0; j < message.circleMaxCards.length; ++j)
- object.circleMaxCards[j] = message.circleMaxCards[j];
- }
- if (message.isAuto != null && message.hasOwnProperty("isAuto"))
- object.isAuto = message.isAuto;
- return object;
- };
- /**
- * Converts this GCPlayerPlayCard to JSON.
- * @function toJSON
- * @memberof guandan.GCPlayerPlayCard
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCPlayerPlayCard.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCPlayerPlayCard;
- })();
- guandan.GCPlayerPlayCardBroadcast = (function() {
- /**
- * Properties of a GCPlayerPlayCardBroadcast.
- * @memberof guandan
- * @interface IGCPlayerPlayCardBroadcast
- * @property {number|Long} playerId GCPlayerPlayCardBroadcast playerId
- * @property {Array.<number>|null} [card] GCPlayerPlayCardBroadcast card
- * @property {Array.<number>|null} [circleMaxCards] GCPlayerPlayCardBroadcast circleMaxCards
- * @property {boolean} isAuto GCPlayerPlayCardBroadcast isAuto
- */
- /**
- * Constructs a new GCPlayerPlayCardBroadcast.
- * @memberof guandan
- * @classdesc Represents a GCPlayerPlayCardBroadcast.
- * @implements IGCPlayerPlayCardBroadcast
- * @constructor
- * @param {guandan.IGCPlayerPlayCardBroadcast=} [properties] Properties to set
- */
- function GCPlayerPlayCardBroadcast(properties) {
- this.card = [];
- this.circleMaxCards = [];
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCPlayerPlayCardBroadcast playerId.
- * @member {number|Long} playerId
- * @memberof guandan.GCPlayerPlayCardBroadcast
- * @instance
- */
- GCPlayerPlayCardBroadcast.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * GCPlayerPlayCardBroadcast card.
- * @member {Array.<number>} card
- * @memberof guandan.GCPlayerPlayCardBroadcast
- * @instance
- */
- GCPlayerPlayCardBroadcast.prototype.card = $util.emptyArray;
- /**
- * GCPlayerPlayCardBroadcast circleMaxCards.
- * @member {Array.<number>} circleMaxCards
- * @memberof guandan.GCPlayerPlayCardBroadcast
- * @instance
- */
- GCPlayerPlayCardBroadcast.prototype.circleMaxCards = $util.emptyArray;
- /**
- * GCPlayerPlayCardBroadcast isAuto.
- * @member {boolean} isAuto
- * @memberof guandan.GCPlayerPlayCardBroadcast
- * @instance
- */
- GCPlayerPlayCardBroadcast.prototype.isAuto = false;
- /**
- * Creates a new GCPlayerPlayCardBroadcast instance using the specified properties.
- * @function create
- * @memberof guandan.GCPlayerPlayCardBroadcast
- * @static
- * @param {guandan.IGCPlayerPlayCardBroadcast=} [properties] Properties to set
- * @returns {guandan.GCPlayerPlayCardBroadcast} GCPlayerPlayCardBroadcast instance
- */
- GCPlayerPlayCardBroadcast.create = function create(properties) {
- return new GCPlayerPlayCardBroadcast(properties);
- };
- /**
- * Encodes the specified GCPlayerPlayCardBroadcast message. Does not implicitly {@link guandan.GCPlayerPlayCardBroadcast.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCPlayerPlayCardBroadcast
- * @static
- * @param {guandan.IGCPlayerPlayCardBroadcast} message GCPlayerPlayCardBroadcast message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCPlayerPlayCardBroadcast.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
- if (message.card != null && message.card.length)
- for (var i = 0; i < message.card.length; ++i)
- writer.uint32(/* id 2, wireType 0 =*/16).int32(message.card[i]);
- if (message.circleMaxCards != null && message.circleMaxCards.length)
- for (var i = 0; i < message.circleMaxCards.length; ++i)
- writer.uint32(/* id 3, wireType 0 =*/24).int32(message.circleMaxCards[i]);
- writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isAuto);
- return writer;
- };
- /**
- * Encodes the specified GCPlayerPlayCardBroadcast message, length delimited. Does not implicitly {@link guandan.GCPlayerPlayCardBroadcast.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCPlayerPlayCardBroadcast
- * @static
- * @param {guandan.IGCPlayerPlayCardBroadcast} message GCPlayerPlayCardBroadcast message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCPlayerPlayCardBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCPlayerPlayCardBroadcast message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCPlayerPlayCardBroadcast
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCPlayerPlayCardBroadcast} GCPlayerPlayCardBroadcast
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCPlayerPlayCardBroadcast.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCPlayerPlayCardBroadcast();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.playerId = reader.int64();
- break;
- case 2:
- if (!(message.card && message.card.length))
- message.card = [];
- if ((tag & 7) === 2) {
- var end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.card.push(reader.int32());
- } else
- message.card.push(reader.int32());
- break;
- case 3:
- if (!(message.circleMaxCards && message.circleMaxCards.length))
- message.circleMaxCards = [];
- if ((tag & 7) === 2) {
- var end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.circleMaxCards.push(reader.int32());
- } else
- message.circleMaxCards.push(reader.int32());
- break;
- case 4:
- message.isAuto = reader.bool();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("playerId"))
- throw $util.ProtocolError("missing required 'playerId'", { instance: message });
- if (!message.hasOwnProperty("isAuto"))
- throw $util.ProtocolError("missing required 'isAuto'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCPlayerPlayCardBroadcast message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCPlayerPlayCardBroadcast
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCPlayerPlayCardBroadcast} GCPlayerPlayCardBroadcast
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCPlayerPlayCardBroadcast.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCPlayerPlayCardBroadcast message.
- * @function verify
- * @memberof guandan.GCPlayerPlayCardBroadcast
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCPlayerPlayCardBroadcast.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
- return "playerId: integer|Long expected";
- if (message.card != null && message.hasOwnProperty("card")) {
- if (!Array.isArray(message.card))
- return "card: array expected";
- for (var i = 0; i < message.card.length; ++i)
- if (!$util.isInteger(message.card[i]))
- return "card: integer[] expected";
- }
- if (message.circleMaxCards != null && message.hasOwnProperty("circleMaxCards")) {
- if (!Array.isArray(message.circleMaxCards))
- return "circleMaxCards: array expected";
- for (var i = 0; i < message.circleMaxCards.length; ++i)
- if (!$util.isInteger(message.circleMaxCards[i]))
- return "circleMaxCards: integer[] expected";
- }
- if (typeof message.isAuto !== "boolean")
- return "isAuto: boolean expected";
- return null;
- };
- /**
- * Creates a GCPlayerPlayCardBroadcast message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCPlayerPlayCardBroadcast
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCPlayerPlayCardBroadcast} GCPlayerPlayCardBroadcast
- */
- GCPlayerPlayCardBroadcast.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCPlayerPlayCardBroadcast)
- return object;
- var message = new $root.guandan.GCPlayerPlayCardBroadcast();
- if (object.playerId != null)
- if ($util.Long)
- (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
- else if (typeof object.playerId === "string")
- message.playerId = parseInt(object.playerId, 10);
- else if (typeof object.playerId === "number")
- message.playerId = object.playerId;
- else if (typeof object.playerId === "object")
- message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
- if (object.card) {
- if (!Array.isArray(object.card))
- throw TypeError(".guandan.GCPlayerPlayCardBroadcast.card: array expected");
- message.card = [];
- for (var i = 0; i < object.card.length; ++i)
- message.card[i] = object.card[i] | 0;
- }
- if (object.circleMaxCards) {
- if (!Array.isArray(object.circleMaxCards))
- throw TypeError(".guandan.GCPlayerPlayCardBroadcast.circleMaxCards: array expected");
- message.circleMaxCards = [];
- for (var i = 0; i < object.circleMaxCards.length; ++i)
- message.circleMaxCards[i] = object.circleMaxCards[i] | 0;
- }
- if (object.isAuto != null)
- message.isAuto = Boolean(object.isAuto);
- return message;
- };
- /**
- * Creates a plain object from a GCPlayerPlayCardBroadcast message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCPlayerPlayCardBroadcast
- * @static
- * @param {guandan.GCPlayerPlayCardBroadcast} message GCPlayerPlayCardBroadcast
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCPlayerPlayCardBroadcast.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.arrays || options.defaults) {
- object.card = [];
- object.circleMaxCards = [];
- }
- if (options.defaults) {
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.playerId = options.longs === String ? "0" : 0;
- object.isAuto = false;
- }
- if (message.playerId != null && message.hasOwnProperty("playerId"))
- if (typeof message.playerId === "number")
- object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
- else
- 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;
- if (message.card && message.card.length) {
- object.card = [];
- for (var j = 0; j < message.card.length; ++j)
- object.card[j] = message.card[j];
- }
- if (message.circleMaxCards && message.circleMaxCards.length) {
- object.circleMaxCards = [];
- for (var j = 0; j < message.circleMaxCards.length; ++j)
- object.circleMaxCards[j] = message.circleMaxCards[j];
- }
- if (message.isAuto != null && message.hasOwnProperty("isAuto"))
- object.isAuto = message.isAuto;
- return object;
- };
- /**
- * Converts this GCPlayerPlayCardBroadcast to JSON.
- * @function toJSON
- * @memberof guandan.GCPlayerPlayCardBroadcast
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCPlayerPlayCardBroadcast.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCPlayerPlayCardBroadcast;
- })();
- guandan.Operation = (function() {
- /**
- * Properties of an Operation.
- * @memberof guandan
- * @interface IOperation
- * @property {number} operationType Operation operationType
- * @property {Array.<number>|null} [cardList] Operation cardList
- */
- /**
- * Constructs a new Operation.
- * @memberof guandan
- * @classdesc Represents an Operation.
- * @implements IOperation
- * @constructor
- * @param {guandan.IOperation=} [properties] Properties to set
- */
- function Operation(properties) {
- this.cardList = [];
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Operation operationType.
- * @member {number} operationType
- * @memberof guandan.Operation
- * @instance
- */
- Operation.prototype.operationType = 0;
- /**
- * Operation cardList.
- * @member {Array.<number>} cardList
- * @memberof guandan.Operation
- * @instance
- */
- Operation.prototype.cardList = $util.emptyArray;
- /**
- * Creates a new Operation instance using the specified properties.
- * @function create
- * @memberof guandan.Operation
- * @static
- * @param {guandan.IOperation=} [properties] Properties to set
- * @returns {guandan.Operation} Operation instance
- */
- Operation.create = function create(properties) {
- return new Operation(properties);
- };
- /**
- * Encodes the specified Operation message. Does not implicitly {@link guandan.Operation.verify|verify} messages.
- * @function encode
- * @memberof guandan.Operation
- * @static
- * @param {guandan.IOperation} message Operation message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- Operation.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int32(message.operationType);
- if (message.cardList != null && message.cardList.length)
- for (var i = 0; i < message.cardList.length; ++i)
- writer.uint32(/* id 2, wireType 0 =*/16).int32(message.cardList[i]);
- return writer;
- };
- /**
- * Encodes the specified Operation message, length delimited. Does not implicitly {@link guandan.Operation.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.Operation
- * @static
- * @param {guandan.IOperation} message Operation message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- Operation.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes an Operation message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.Operation
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.Operation} Operation
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- Operation.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.Operation();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.operationType = reader.int32();
- break;
- case 2:
- if (!(message.cardList && message.cardList.length))
- message.cardList = [];
- if ((tag & 7) === 2) {
- var end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.cardList.push(reader.int32());
- } else
- message.cardList.push(reader.int32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("operationType"))
- throw $util.ProtocolError("missing required 'operationType'", { instance: message });
- return message;
- };
- /**
- * Decodes an Operation message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.Operation
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.Operation} Operation
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- Operation.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies an Operation message.
- * @function verify
- * @memberof guandan.Operation
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- Operation.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.operationType))
- return "operationType: integer expected";
- if (message.cardList != null && message.hasOwnProperty("cardList")) {
- if (!Array.isArray(message.cardList))
- return "cardList: array expected";
- for (var i = 0; i < message.cardList.length; ++i)
- if (!$util.isInteger(message.cardList[i]))
- return "cardList: integer[] expected";
- }
- return null;
- };
- /**
- * Creates an Operation message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.Operation
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.Operation} Operation
- */
- Operation.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.Operation)
- return object;
- var message = new $root.guandan.Operation();
- if (object.operationType != null)
- message.operationType = object.operationType | 0;
- if (object.cardList) {
- if (!Array.isArray(object.cardList))
- throw TypeError(".guandan.Operation.cardList: array expected");
- message.cardList = [];
- for (var i = 0; i < object.cardList.length; ++i)
- message.cardList[i] = object.cardList[i] | 0;
- }
- return message;
- };
- /**
- * Creates a plain object from an Operation message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.Operation
- * @static
- * @param {guandan.Operation} message Operation
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- Operation.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.arrays || options.defaults)
- object.cardList = [];
- if (options.defaults)
- object.operationType = 0;
- if (message.operationType != null && message.hasOwnProperty("operationType"))
- object.operationType = message.operationType;
- if (message.cardList && message.cardList.length) {
- object.cardList = [];
- for (var j = 0; j < message.cardList.length; ++j)
- object.cardList[j] = message.cardList[j];
- }
- return object;
- };
- /**
- * Converts this Operation to JSON.
- * @function toJSON
- * @memberof guandan.Operation
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- Operation.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return Operation;
- })();
- guandan.GCPlayerOperations = (function() {
- /**
- * Properties of a GCPlayerOperations.
- * @memberof guandan
- * @interface IGCPlayerOperations
- * @property {Array.<guandan.IOperation>|null} [operationList] GCPlayerOperations operationList
- */
- /**
- * Constructs a new GCPlayerOperations.
- * @memberof guandan
- * @classdesc Represents a GCPlayerOperations.
- * @implements IGCPlayerOperations
- * @constructor
- * @param {guandan.IGCPlayerOperations=} [properties] Properties to set
- */
- function GCPlayerOperations(properties) {
- this.operationList = [];
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCPlayerOperations operationList.
- * @member {Array.<guandan.IOperation>} operationList
- * @memberof guandan.GCPlayerOperations
- * @instance
- */
- GCPlayerOperations.prototype.operationList = $util.emptyArray;
- /**
- * Creates a new GCPlayerOperations instance using the specified properties.
- * @function create
- * @memberof guandan.GCPlayerOperations
- * @static
- * @param {guandan.IGCPlayerOperations=} [properties] Properties to set
- * @returns {guandan.GCPlayerOperations} GCPlayerOperations instance
- */
- GCPlayerOperations.create = function create(properties) {
- return new GCPlayerOperations(properties);
- };
- /**
- * Encodes the specified GCPlayerOperations message. Does not implicitly {@link guandan.GCPlayerOperations.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCPlayerOperations
- * @static
- * @param {guandan.IGCPlayerOperations} message GCPlayerOperations message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCPlayerOperations.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.operationList != null && message.operationList.length)
- for (var i = 0; i < message.operationList.length; ++i)
- $root.guandan.Operation.encode(message.operationList[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified GCPlayerOperations message, length delimited. Does not implicitly {@link guandan.GCPlayerOperations.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCPlayerOperations
- * @static
- * @param {guandan.IGCPlayerOperations} message GCPlayerOperations message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCPlayerOperations.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCPlayerOperations message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCPlayerOperations
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCPlayerOperations} GCPlayerOperations
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCPlayerOperations.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCPlayerOperations();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (!(message.operationList && message.operationList.length))
- message.operationList = [];
- message.operationList.push($root.guandan.Operation.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a GCPlayerOperations message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCPlayerOperations
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCPlayerOperations} GCPlayerOperations
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCPlayerOperations.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCPlayerOperations message.
- * @function verify
- * @memberof guandan.GCPlayerOperations
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCPlayerOperations.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.operationList != null && message.hasOwnProperty("operationList")) {
- if (!Array.isArray(message.operationList))
- return "operationList: array expected";
- for (var i = 0; i < message.operationList.length; ++i) {
- var error = $root.guandan.Operation.verify(message.operationList[i]);
- if (error)
- return "operationList." + error;
- }
- }
- return null;
- };
- /**
- * Creates a GCPlayerOperations message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCPlayerOperations
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCPlayerOperations} GCPlayerOperations
- */
- GCPlayerOperations.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCPlayerOperations)
- return object;
- var message = new $root.guandan.GCPlayerOperations();
- if (object.operationList) {
- if (!Array.isArray(object.operationList))
- throw TypeError(".guandan.GCPlayerOperations.operationList: array expected");
- message.operationList = [];
- for (var i = 0; i < object.operationList.length; ++i) {
- if (typeof object.operationList[i] !== "object")
- throw TypeError(".guandan.GCPlayerOperations.operationList: object expected");
- message.operationList[i] = $root.guandan.Operation.fromObject(object.operationList[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from a GCPlayerOperations message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCPlayerOperations
- * @static
- * @param {guandan.GCPlayerOperations} message GCPlayerOperations
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCPlayerOperations.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.arrays || options.defaults)
- object.operationList = [];
- if (message.operationList && message.operationList.length) {
- object.operationList = [];
- for (var j = 0; j < message.operationList.length; ++j)
- object.operationList[j] = $root.guandan.Operation.toObject(message.operationList[j], options);
- }
- return object;
- };
- /**
- * Converts this GCPlayerOperations to JSON.
- * @function toJSON
- * @memberof guandan.GCPlayerOperations
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCPlayerOperations.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCPlayerOperations;
- })();
- guandan.GCWaitPlayerPlayCard = (function() {
- /**
- * Properties of a GCWaitPlayerPlayCard.
- * @memberof guandan
- * @interface IGCWaitPlayerPlayCard
- * @property {number|Long} playerId GCWaitPlayerPlayCard playerId
- * @property {boolean} isFirst GCWaitPlayerPlayCard isFirst
- */
- /**
- * Constructs a new GCWaitPlayerPlayCard.
- * @memberof guandan
- * @classdesc Represents a GCWaitPlayerPlayCard.
- * @implements IGCWaitPlayerPlayCard
- * @constructor
- * @param {guandan.IGCWaitPlayerPlayCard=} [properties] Properties to set
- */
- function GCWaitPlayerPlayCard(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCWaitPlayerPlayCard playerId.
- * @member {number|Long} playerId
- * @memberof guandan.GCWaitPlayerPlayCard
- * @instance
- */
- GCWaitPlayerPlayCard.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * GCWaitPlayerPlayCard isFirst.
- * @member {boolean} isFirst
- * @memberof guandan.GCWaitPlayerPlayCard
- * @instance
- */
- GCWaitPlayerPlayCard.prototype.isFirst = false;
- /**
- * Creates a new GCWaitPlayerPlayCard instance using the specified properties.
- * @function create
- * @memberof guandan.GCWaitPlayerPlayCard
- * @static
- * @param {guandan.IGCWaitPlayerPlayCard=} [properties] Properties to set
- * @returns {guandan.GCWaitPlayerPlayCard} GCWaitPlayerPlayCard instance
- */
- GCWaitPlayerPlayCard.create = function create(properties) {
- return new GCWaitPlayerPlayCard(properties);
- };
- /**
- * Encodes the specified GCWaitPlayerPlayCard message. Does not implicitly {@link guandan.GCWaitPlayerPlayCard.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCWaitPlayerPlayCard
- * @static
- * @param {guandan.IGCWaitPlayerPlayCard} message GCWaitPlayerPlayCard message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCWaitPlayerPlayCard.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
- writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isFirst);
- return writer;
- };
- /**
- * Encodes the specified GCWaitPlayerPlayCard message, length delimited. Does not implicitly {@link guandan.GCWaitPlayerPlayCard.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCWaitPlayerPlayCard
- * @static
- * @param {guandan.IGCWaitPlayerPlayCard} message GCWaitPlayerPlayCard message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCWaitPlayerPlayCard.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCWaitPlayerPlayCard message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCWaitPlayerPlayCard
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCWaitPlayerPlayCard} GCWaitPlayerPlayCard
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCWaitPlayerPlayCard.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCWaitPlayerPlayCard();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.playerId = reader.int64();
- break;
- case 2:
- message.isFirst = reader.bool();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("playerId"))
- throw $util.ProtocolError("missing required 'playerId'", { instance: message });
- if (!message.hasOwnProperty("isFirst"))
- throw $util.ProtocolError("missing required 'isFirst'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCWaitPlayerPlayCard message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCWaitPlayerPlayCard
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCWaitPlayerPlayCard} GCWaitPlayerPlayCard
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCWaitPlayerPlayCard.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCWaitPlayerPlayCard message.
- * @function verify
- * @memberof guandan.GCWaitPlayerPlayCard
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCWaitPlayerPlayCard.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
- return "playerId: integer|Long expected";
- if (typeof message.isFirst !== "boolean")
- return "isFirst: boolean expected";
- return null;
- };
- /**
- * Creates a GCWaitPlayerPlayCard message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCWaitPlayerPlayCard
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCWaitPlayerPlayCard} GCWaitPlayerPlayCard
- */
- GCWaitPlayerPlayCard.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCWaitPlayerPlayCard)
- return object;
- var message = new $root.guandan.GCWaitPlayerPlayCard();
- if (object.playerId != null)
- if ($util.Long)
- (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
- else if (typeof object.playerId === "string")
- message.playerId = parseInt(object.playerId, 10);
- else if (typeof object.playerId === "number")
- message.playerId = object.playerId;
- else if (typeof object.playerId === "object")
- message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
- if (object.isFirst != null)
- message.isFirst = Boolean(object.isFirst);
- return message;
- };
- /**
- * Creates a plain object from a GCWaitPlayerPlayCard message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCWaitPlayerPlayCard
- * @static
- * @param {guandan.GCWaitPlayerPlayCard} message GCWaitPlayerPlayCard
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCWaitPlayerPlayCard.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults) {
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.playerId = options.longs === String ? "0" : 0;
- object.isFirst = false;
- }
- if (message.playerId != null && message.hasOwnProperty("playerId"))
- if (typeof message.playerId === "number")
- object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
- else
- 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;
- if (message.isFirst != null && message.hasOwnProperty("isFirst"))
- object.isFirst = message.isFirst;
- return object;
- };
- /**
- * Converts this GCWaitPlayerPlayCard to JSON.
- * @function toJSON
- * @memberof guandan.GCWaitPlayerPlayCard
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCWaitPlayerPlayCard.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCWaitPlayerPlayCard;
- })();
- guandan.GCWaitPlayerPlayCardBroadcast = (function() {
- /**
- * Properties of a GCWaitPlayerPlayCardBroadcast.
- * @memberof guandan
- * @interface IGCWaitPlayerPlayCardBroadcast
- * @property {number|Long} playerId GCWaitPlayerPlayCardBroadcast playerId
- * @property {boolean} isFirst GCWaitPlayerPlayCardBroadcast isFirst
- */
- /**
- * Constructs a new GCWaitPlayerPlayCardBroadcast.
- * @memberof guandan
- * @classdesc Represents a GCWaitPlayerPlayCardBroadcast.
- * @implements IGCWaitPlayerPlayCardBroadcast
- * @constructor
- * @param {guandan.IGCWaitPlayerPlayCardBroadcast=} [properties] Properties to set
- */
- function GCWaitPlayerPlayCardBroadcast(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCWaitPlayerPlayCardBroadcast playerId.
- * @member {number|Long} playerId
- * @memberof guandan.GCWaitPlayerPlayCardBroadcast
- * @instance
- */
- GCWaitPlayerPlayCardBroadcast.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * GCWaitPlayerPlayCardBroadcast isFirst.
- * @member {boolean} isFirst
- * @memberof guandan.GCWaitPlayerPlayCardBroadcast
- * @instance
- */
- GCWaitPlayerPlayCardBroadcast.prototype.isFirst = false;
- /**
- * Creates a new GCWaitPlayerPlayCardBroadcast instance using the specified properties.
- * @function create
- * @memberof guandan.GCWaitPlayerPlayCardBroadcast
- * @static
- * @param {guandan.IGCWaitPlayerPlayCardBroadcast=} [properties] Properties to set
- * @returns {guandan.GCWaitPlayerPlayCardBroadcast} GCWaitPlayerPlayCardBroadcast instance
- */
- GCWaitPlayerPlayCardBroadcast.create = function create(properties) {
- return new GCWaitPlayerPlayCardBroadcast(properties);
- };
- /**
- * Encodes the specified GCWaitPlayerPlayCardBroadcast message. Does not implicitly {@link guandan.GCWaitPlayerPlayCardBroadcast.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCWaitPlayerPlayCardBroadcast
- * @static
- * @param {guandan.IGCWaitPlayerPlayCardBroadcast} message GCWaitPlayerPlayCardBroadcast message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCWaitPlayerPlayCardBroadcast.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
- writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isFirst);
- return writer;
- };
- /**
- * Encodes the specified GCWaitPlayerPlayCardBroadcast message, length delimited. Does not implicitly {@link guandan.GCWaitPlayerPlayCardBroadcast.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCWaitPlayerPlayCardBroadcast
- * @static
- * @param {guandan.IGCWaitPlayerPlayCardBroadcast} message GCWaitPlayerPlayCardBroadcast message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCWaitPlayerPlayCardBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCWaitPlayerPlayCardBroadcast message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCWaitPlayerPlayCardBroadcast
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCWaitPlayerPlayCardBroadcast} GCWaitPlayerPlayCardBroadcast
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCWaitPlayerPlayCardBroadcast.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCWaitPlayerPlayCardBroadcast();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.playerId = reader.int64();
- break;
- case 2:
- message.isFirst = reader.bool();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("playerId"))
- throw $util.ProtocolError("missing required 'playerId'", { instance: message });
- if (!message.hasOwnProperty("isFirst"))
- throw $util.ProtocolError("missing required 'isFirst'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCWaitPlayerPlayCardBroadcast message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCWaitPlayerPlayCardBroadcast
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCWaitPlayerPlayCardBroadcast} GCWaitPlayerPlayCardBroadcast
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCWaitPlayerPlayCardBroadcast.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCWaitPlayerPlayCardBroadcast message.
- * @function verify
- * @memberof guandan.GCWaitPlayerPlayCardBroadcast
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCWaitPlayerPlayCardBroadcast.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
- return "playerId: integer|Long expected";
- if (typeof message.isFirst !== "boolean")
- return "isFirst: boolean expected";
- return null;
- };
- /**
- * Creates a GCWaitPlayerPlayCardBroadcast message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCWaitPlayerPlayCardBroadcast
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCWaitPlayerPlayCardBroadcast} GCWaitPlayerPlayCardBroadcast
- */
- GCWaitPlayerPlayCardBroadcast.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCWaitPlayerPlayCardBroadcast)
- return object;
- var message = new $root.guandan.GCWaitPlayerPlayCardBroadcast();
- if (object.playerId != null)
- if ($util.Long)
- (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
- else if (typeof object.playerId === "string")
- message.playerId = parseInt(object.playerId, 10);
- else if (typeof object.playerId === "number")
- message.playerId = object.playerId;
- else if (typeof object.playerId === "object")
- message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
- if (object.isFirst != null)
- message.isFirst = Boolean(object.isFirst);
- return message;
- };
- /**
- * Creates a plain object from a GCWaitPlayerPlayCardBroadcast message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCWaitPlayerPlayCardBroadcast
- * @static
- * @param {guandan.GCWaitPlayerPlayCardBroadcast} message GCWaitPlayerPlayCardBroadcast
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCWaitPlayerPlayCardBroadcast.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults) {
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.playerId = options.longs === String ? "0" : 0;
- object.isFirst = false;
- }
- if (message.playerId != null && message.hasOwnProperty("playerId"))
- if (typeof message.playerId === "number")
- object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
- else
- 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;
- if (message.isFirst != null && message.hasOwnProperty("isFirst"))
- object.isFirst = message.isFirst;
- return object;
- };
- /**
- * Converts this GCWaitPlayerPlayCardBroadcast to JSON.
- * @function toJSON
- * @memberof guandan.GCWaitPlayerPlayCardBroadcast
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCWaitPlayerPlayCardBroadcast.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCWaitPlayerPlayCardBroadcast;
- })();
- guandan.CGPlayerJinGong = (function() {
- /**
- * Properties of a CGPlayerJinGong.
- * @memberof guandan
- * @interface ICGPlayerJinGong
- * @property {number|Long} playerId CGPlayerJinGong playerId
- * @property {Array.<number>|null} [card] CGPlayerJinGong card
- */
- /**
- * Constructs a new CGPlayerJinGong.
- * @memberof guandan
- * @classdesc Represents a CGPlayerJinGong.
- * @implements ICGPlayerJinGong
- * @constructor
- * @param {guandan.ICGPlayerJinGong=} [properties] Properties to set
- */
- function CGPlayerJinGong(properties) {
- this.card = [];
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * CGPlayerJinGong playerId.
- * @member {number|Long} playerId
- * @memberof guandan.CGPlayerJinGong
- * @instance
- */
- CGPlayerJinGong.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * CGPlayerJinGong card.
- * @member {Array.<number>} card
- * @memberof guandan.CGPlayerJinGong
- * @instance
- */
- CGPlayerJinGong.prototype.card = $util.emptyArray;
- /**
- * Creates a new CGPlayerJinGong instance using the specified properties.
- * @function create
- * @memberof guandan.CGPlayerJinGong
- * @static
- * @param {guandan.ICGPlayerJinGong=} [properties] Properties to set
- * @returns {guandan.CGPlayerJinGong} CGPlayerJinGong instance
- */
- CGPlayerJinGong.create = function create(properties) {
- return new CGPlayerJinGong(properties);
- };
- /**
- * Encodes the specified CGPlayerJinGong message. Does not implicitly {@link guandan.CGPlayerJinGong.verify|verify} messages.
- * @function encode
- * @memberof guandan.CGPlayerJinGong
- * @static
- * @param {guandan.ICGPlayerJinGong} message CGPlayerJinGong message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- CGPlayerJinGong.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
- if (message.card != null && message.card.length)
- for (var i = 0; i < message.card.length; ++i)
- writer.uint32(/* id 2, wireType 0 =*/16).int32(message.card[i]);
- return writer;
- };
- /**
- * Encodes the specified CGPlayerJinGong message, length delimited. Does not implicitly {@link guandan.CGPlayerJinGong.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.CGPlayerJinGong
- * @static
- * @param {guandan.ICGPlayerJinGong} message CGPlayerJinGong message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- CGPlayerJinGong.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a CGPlayerJinGong message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.CGPlayerJinGong
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.CGPlayerJinGong} CGPlayerJinGong
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- CGPlayerJinGong.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.CGPlayerJinGong();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.playerId = reader.int64();
- break;
- case 2:
- if (!(message.card && message.card.length))
- message.card = [];
- if ((tag & 7) === 2) {
- var end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.card.push(reader.int32());
- } else
- message.card.push(reader.int32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("playerId"))
- throw $util.ProtocolError("missing required 'playerId'", { instance: message });
- return message;
- };
- /**
- * Decodes a CGPlayerJinGong message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.CGPlayerJinGong
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.CGPlayerJinGong} CGPlayerJinGong
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- CGPlayerJinGong.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a CGPlayerJinGong message.
- * @function verify
- * @memberof guandan.CGPlayerJinGong
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- CGPlayerJinGong.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
- return "playerId: integer|Long expected";
- if (message.card != null && message.hasOwnProperty("card")) {
- if (!Array.isArray(message.card))
- return "card: array expected";
- for (var i = 0; i < message.card.length; ++i)
- if (!$util.isInteger(message.card[i]))
- return "card: integer[] expected";
- }
- return null;
- };
- /**
- * Creates a CGPlayerJinGong message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.CGPlayerJinGong
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.CGPlayerJinGong} CGPlayerJinGong
- */
- CGPlayerJinGong.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.CGPlayerJinGong)
- return object;
- var message = new $root.guandan.CGPlayerJinGong();
- if (object.playerId != null)
- if ($util.Long)
- (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
- else if (typeof object.playerId === "string")
- message.playerId = parseInt(object.playerId, 10);
- else if (typeof object.playerId === "number")
- message.playerId = object.playerId;
- else if (typeof object.playerId === "object")
- message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
- if (object.card) {
- if (!Array.isArray(object.card))
- throw TypeError(".guandan.CGPlayerJinGong.card: array expected");
- message.card = [];
- for (var i = 0; i < object.card.length; ++i)
- message.card[i] = object.card[i] | 0;
- }
- return message;
- };
- /**
- * Creates a plain object from a CGPlayerJinGong message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.CGPlayerJinGong
- * @static
- * @param {guandan.CGPlayerJinGong} message CGPlayerJinGong
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- CGPlayerJinGong.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.arrays || options.defaults)
- object.card = [];
- if (options.defaults)
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.playerId = options.longs === String ? "0" : 0;
- if (message.playerId != null && message.hasOwnProperty("playerId"))
- if (typeof message.playerId === "number")
- object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
- else
- 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;
- if (message.card && message.card.length) {
- object.card = [];
- for (var j = 0; j < message.card.length; ++j)
- object.card[j] = message.card[j];
- }
- return object;
- };
- /**
- * Converts this CGPlayerJinGong to JSON.
- * @function toJSON
- * @memberof guandan.CGPlayerJinGong
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- CGPlayerJinGong.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return CGPlayerJinGong;
- })();
- guandan.GCPlayerJinGongBroadcast = (function() {
- /**
- * Properties of a GCPlayerJinGongBroadcast.
- * @memberof guandan
- * @interface IGCPlayerJinGongBroadcast
- * @property {number|Long} playerId GCPlayerJinGongBroadcast playerId
- * @property {Array.<number>|null} [card] GCPlayerJinGongBroadcast card
- */
- /**
- * Constructs a new GCPlayerJinGongBroadcast.
- * @memberof guandan
- * @classdesc Represents a GCPlayerJinGongBroadcast.
- * @implements IGCPlayerJinGongBroadcast
- * @constructor
- * @param {guandan.IGCPlayerJinGongBroadcast=} [properties] Properties to set
- */
- function GCPlayerJinGongBroadcast(properties) {
- this.card = [];
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCPlayerJinGongBroadcast playerId.
- * @member {number|Long} playerId
- * @memberof guandan.GCPlayerJinGongBroadcast
- * @instance
- */
- GCPlayerJinGongBroadcast.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * GCPlayerJinGongBroadcast card.
- * @member {Array.<number>} card
- * @memberof guandan.GCPlayerJinGongBroadcast
- * @instance
- */
- GCPlayerJinGongBroadcast.prototype.card = $util.emptyArray;
- /**
- * Creates a new GCPlayerJinGongBroadcast instance using the specified properties.
- * @function create
- * @memberof guandan.GCPlayerJinGongBroadcast
- * @static
- * @param {guandan.IGCPlayerJinGongBroadcast=} [properties] Properties to set
- * @returns {guandan.GCPlayerJinGongBroadcast} GCPlayerJinGongBroadcast instance
- */
- GCPlayerJinGongBroadcast.create = function create(properties) {
- return new GCPlayerJinGongBroadcast(properties);
- };
- /**
- * Encodes the specified GCPlayerJinGongBroadcast message. Does not implicitly {@link guandan.GCPlayerJinGongBroadcast.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCPlayerJinGongBroadcast
- * @static
- * @param {guandan.IGCPlayerJinGongBroadcast} message GCPlayerJinGongBroadcast message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCPlayerJinGongBroadcast.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
- if (message.card != null && message.card.length)
- for (var i = 0; i < message.card.length; ++i)
- writer.uint32(/* id 2, wireType 0 =*/16).int32(message.card[i]);
- return writer;
- };
- /**
- * Encodes the specified GCPlayerJinGongBroadcast message, length delimited. Does not implicitly {@link guandan.GCPlayerJinGongBroadcast.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCPlayerJinGongBroadcast
- * @static
- * @param {guandan.IGCPlayerJinGongBroadcast} message GCPlayerJinGongBroadcast message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCPlayerJinGongBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCPlayerJinGongBroadcast message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCPlayerJinGongBroadcast
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCPlayerJinGongBroadcast} GCPlayerJinGongBroadcast
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCPlayerJinGongBroadcast.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCPlayerJinGongBroadcast();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.playerId = reader.int64();
- break;
- case 2:
- if (!(message.card && message.card.length))
- message.card = [];
- if ((tag & 7) === 2) {
- var end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.card.push(reader.int32());
- } else
- message.card.push(reader.int32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("playerId"))
- throw $util.ProtocolError("missing required 'playerId'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCPlayerJinGongBroadcast message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCPlayerJinGongBroadcast
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCPlayerJinGongBroadcast} GCPlayerJinGongBroadcast
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCPlayerJinGongBroadcast.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCPlayerJinGongBroadcast message.
- * @function verify
- * @memberof guandan.GCPlayerJinGongBroadcast
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCPlayerJinGongBroadcast.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
- return "playerId: integer|Long expected";
- if (message.card != null && message.hasOwnProperty("card")) {
- if (!Array.isArray(message.card))
- return "card: array expected";
- for (var i = 0; i < message.card.length; ++i)
- if (!$util.isInteger(message.card[i]))
- return "card: integer[] expected";
- }
- return null;
- };
- /**
- * Creates a GCPlayerJinGongBroadcast message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCPlayerJinGongBroadcast
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCPlayerJinGongBroadcast} GCPlayerJinGongBroadcast
- */
- GCPlayerJinGongBroadcast.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCPlayerJinGongBroadcast)
- return object;
- var message = new $root.guandan.GCPlayerJinGongBroadcast();
- if (object.playerId != null)
- if ($util.Long)
- (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
- else if (typeof object.playerId === "string")
- message.playerId = parseInt(object.playerId, 10);
- else if (typeof object.playerId === "number")
- message.playerId = object.playerId;
- else if (typeof object.playerId === "object")
- message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
- if (object.card) {
- if (!Array.isArray(object.card))
- throw TypeError(".guandan.GCPlayerJinGongBroadcast.card: array expected");
- message.card = [];
- for (var i = 0; i < object.card.length; ++i)
- message.card[i] = object.card[i] | 0;
- }
- return message;
- };
- /**
- * Creates a plain object from a GCPlayerJinGongBroadcast message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCPlayerJinGongBroadcast
- * @static
- * @param {guandan.GCPlayerJinGongBroadcast} message GCPlayerJinGongBroadcast
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCPlayerJinGongBroadcast.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.arrays || options.defaults)
- object.card = [];
- if (options.defaults)
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.playerId = options.longs === String ? "0" : 0;
- if (message.playerId != null && message.hasOwnProperty("playerId"))
- if (typeof message.playerId === "number")
- object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
- else
- 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;
- if (message.card && message.card.length) {
- object.card = [];
- for (var j = 0; j < message.card.length; ++j)
- object.card[j] = message.card[j];
- }
- return object;
- };
- /**
- * Converts this GCPlayerJinGongBroadcast to JSON.
- * @function toJSON
- * @memberof guandan.GCPlayerJinGongBroadcast
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCPlayerJinGongBroadcast.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCPlayerJinGongBroadcast;
- })();
- guandan.CGPlayerHuanGong = (function() {
- /**
- * Properties of a CGPlayerHuanGong.
- * @memberof guandan
- * @interface ICGPlayerHuanGong
- * @property {number|Long} playerId CGPlayerHuanGong playerId
- * @property {Array.<number>|null} [card] CGPlayerHuanGong card
- */
- /**
- * Constructs a new CGPlayerHuanGong.
- * @memberof guandan
- * @classdesc Represents a CGPlayerHuanGong.
- * @implements ICGPlayerHuanGong
- * @constructor
- * @param {guandan.ICGPlayerHuanGong=} [properties] Properties to set
- */
- function CGPlayerHuanGong(properties) {
- this.card = [];
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * CGPlayerHuanGong playerId.
- * @member {number|Long} playerId
- * @memberof guandan.CGPlayerHuanGong
- * @instance
- */
- CGPlayerHuanGong.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * CGPlayerHuanGong card.
- * @member {Array.<number>} card
- * @memberof guandan.CGPlayerHuanGong
- * @instance
- */
- CGPlayerHuanGong.prototype.card = $util.emptyArray;
- /**
- * Creates a new CGPlayerHuanGong instance using the specified properties.
- * @function create
- * @memberof guandan.CGPlayerHuanGong
- * @static
- * @param {guandan.ICGPlayerHuanGong=} [properties] Properties to set
- * @returns {guandan.CGPlayerHuanGong} CGPlayerHuanGong instance
- */
- CGPlayerHuanGong.create = function create(properties) {
- return new CGPlayerHuanGong(properties);
- };
- /**
- * Encodes the specified CGPlayerHuanGong message. Does not implicitly {@link guandan.CGPlayerHuanGong.verify|verify} messages.
- * @function encode
- * @memberof guandan.CGPlayerHuanGong
- * @static
- * @param {guandan.ICGPlayerHuanGong} message CGPlayerHuanGong message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- CGPlayerHuanGong.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
- if (message.card != null && message.card.length)
- for (var i = 0; i < message.card.length; ++i)
- writer.uint32(/* id 2, wireType 0 =*/16).int32(message.card[i]);
- return writer;
- };
- /**
- * Encodes the specified CGPlayerHuanGong message, length delimited. Does not implicitly {@link guandan.CGPlayerHuanGong.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.CGPlayerHuanGong
- * @static
- * @param {guandan.ICGPlayerHuanGong} message CGPlayerHuanGong message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- CGPlayerHuanGong.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a CGPlayerHuanGong message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.CGPlayerHuanGong
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.CGPlayerHuanGong} CGPlayerHuanGong
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- CGPlayerHuanGong.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.CGPlayerHuanGong();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.playerId = reader.int64();
- break;
- case 2:
- if (!(message.card && message.card.length))
- message.card = [];
- if ((tag & 7) === 2) {
- var end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.card.push(reader.int32());
- } else
- message.card.push(reader.int32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("playerId"))
- throw $util.ProtocolError("missing required 'playerId'", { instance: message });
- return message;
- };
- /**
- * Decodes a CGPlayerHuanGong message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.CGPlayerHuanGong
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.CGPlayerHuanGong} CGPlayerHuanGong
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- CGPlayerHuanGong.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a CGPlayerHuanGong message.
- * @function verify
- * @memberof guandan.CGPlayerHuanGong
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- CGPlayerHuanGong.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
- return "playerId: integer|Long expected";
- if (message.card != null && message.hasOwnProperty("card")) {
- if (!Array.isArray(message.card))
- return "card: array expected";
- for (var i = 0; i < message.card.length; ++i)
- if (!$util.isInteger(message.card[i]))
- return "card: integer[] expected";
- }
- return null;
- };
- /**
- * Creates a CGPlayerHuanGong message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.CGPlayerHuanGong
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.CGPlayerHuanGong} CGPlayerHuanGong
- */
- CGPlayerHuanGong.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.CGPlayerHuanGong)
- return object;
- var message = new $root.guandan.CGPlayerHuanGong();
- if (object.playerId != null)
- if ($util.Long)
- (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
- else if (typeof object.playerId === "string")
- message.playerId = parseInt(object.playerId, 10);
- else if (typeof object.playerId === "number")
- message.playerId = object.playerId;
- else if (typeof object.playerId === "object")
- message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
- if (object.card) {
- if (!Array.isArray(object.card))
- throw TypeError(".guandan.CGPlayerHuanGong.card: array expected");
- message.card = [];
- for (var i = 0; i < object.card.length; ++i)
- message.card[i] = object.card[i] | 0;
- }
- return message;
- };
- /**
- * Creates a plain object from a CGPlayerHuanGong message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.CGPlayerHuanGong
- * @static
- * @param {guandan.CGPlayerHuanGong} message CGPlayerHuanGong
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- CGPlayerHuanGong.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.arrays || options.defaults)
- object.card = [];
- if (options.defaults)
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.playerId = options.longs === String ? "0" : 0;
- if (message.playerId != null && message.hasOwnProperty("playerId"))
- if (typeof message.playerId === "number")
- object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
- else
- 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;
- if (message.card && message.card.length) {
- object.card = [];
- for (var j = 0; j < message.card.length; ++j)
- object.card[j] = message.card[j];
- }
- return object;
- };
- /**
- * Converts this CGPlayerHuanGong to JSON.
- * @function toJSON
- * @memberof guandan.CGPlayerHuanGong
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- CGPlayerHuanGong.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return CGPlayerHuanGong;
- })();
- guandan.GCPlayerHuanGongBroadcast = (function() {
- /**
- * Properties of a GCPlayerHuanGongBroadcast.
- * @memberof guandan
- * @interface IGCPlayerHuanGongBroadcast
- * @property {number|Long} huanGongPlayerId GCPlayerHuanGongBroadcast huanGongPlayerId
- * @property {Array.<number>|null} [huanGongCard] GCPlayerHuanGongBroadcast huanGongCard
- * @property {number|Long} jinGongPlayerId GCPlayerHuanGongBroadcast jinGongPlayerId
- * @property {Array.<number>|null} [jinGongCard] GCPlayerHuanGongBroadcast jinGongCard
- */
- /**
- * Constructs a new GCPlayerHuanGongBroadcast.
- * @memberof guandan
- * @classdesc Represents a GCPlayerHuanGongBroadcast.
- * @implements IGCPlayerHuanGongBroadcast
- * @constructor
- * @param {guandan.IGCPlayerHuanGongBroadcast=} [properties] Properties to set
- */
- function GCPlayerHuanGongBroadcast(properties) {
- this.huanGongCard = [];
- this.jinGongCard = [];
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCPlayerHuanGongBroadcast huanGongPlayerId.
- * @member {number|Long} huanGongPlayerId
- * @memberof guandan.GCPlayerHuanGongBroadcast
- * @instance
- */
- GCPlayerHuanGongBroadcast.prototype.huanGongPlayerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * GCPlayerHuanGongBroadcast huanGongCard.
- * @member {Array.<number>} huanGongCard
- * @memberof guandan.GCPlayerHuanGongBroadcast
- * @instance
- */
- GCPlayerHuanGongBroadcast.prototype.huanGongCard = $util.emptyArray;
- /**
- * GCPlayerHuanGongBroadcast jinGongPlayerId.
- * @member {number|Long} jinGongPlayerId
- * @memberof guandan.GCPlayerHuanGongBroadcast
- * @instance
- */
- GCPlayerHuanGongBroadcast.prototype.jinGongPlayerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * GCPlayerHuanGongBroadcast jinGongCard.
- * @member {Array.<number>} jinGongCard
- * @memberof guandan.GCPlayerHuanGongBroadcast
- * @instance
- */
- GCPlayerHuanGongBroadcast.prototype.jinGongCard = $util.emptyArray;
- /**
- * Creates a new GCPlayerHuanGongBroadcast instance using the specified properties.
- * @function create
- * @memberof guandan.GCPlayerHuanGongBroadcast
- * @static
- * @param {guandan.IGCPlayerHuanGongBroadcast=} [properties] Properties to set
- * @returns {guandan.GCPlayerHuanGongBroadcast} GCPlayerHuanGongBroadcast instance
- */
- GCPlayerHuanGongBroadcast.create = function create(properties) {
- return new GCPlayerHuanGongBroadcast(properties);
- };
- /**
- * Encodes the specified GCPlayerHuanGongBroadcast message. Does not implicitly {@link guandan.GCPlayerHuanGongBroadcast.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCPlayerHuanGongBroadcast
- * @static
- * @param {guandan.IGCPlayerHuanGongBroadcast} message GCPlayerHuanGongBroadcast message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCPlayerHuanGongBroadcast.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.huanGongPlayerId);
- if (message.huanGongCard != null && message.huanGongCard.length)
- for (var i = 0; i < message.huanGongCard.length; ++i)
- writer.uint32(/* id 2, wireType 0 =*/16).int32(message.huanGongCard[i]);
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.jinGongPlayerId);
- if (message.jinGongCard != null && message.jinGongCard.length)
- for (var i = 0; i < message.jinGongCard.length; ++i)
- writer.uint32(/* id 4, wireType 0 =*/32).int32(message.jinGongCard[i]);
- return writer;
- };
- /**
- * Encodes the specified GCPlayerHuanGongBroadcast message, length delimited. Does not implicitly {@link guandan.GCPlayerHuanGongBroadcast.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCPlayerHuanGongBroadcast
- * @static
- * @param {guandan.IGCPlayerHuanGongBroadcast} message GCPlayerHuanGongBroadcast message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCPlayerHuanGongBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCPlayerHuanGongBroadcast message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCPlayerHuanGongBroadcast
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCPlayerHuanGongBroadcast} GCPlayerHuanGongBroadcast
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCPlayerHuanGongBroadcast.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCPlayerHuanGongBroadcast();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.huanGongPlayerId = reader.int64();
- break;
- case 2:
- if (!(message.huanGongCard && message.huanGongCard.length))
- message.huanGongCard = [];
- if ((tag & 7) === 2) {
- var end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.huanGongCard.push(reader.int32());
- } else
- message.huanGongCard.push(reader.int32());
- break;
- case 3:
- message.jinGongPlayerId = reader.int64();
- break;
- case 4:
- if (!(message.jinGongCard && message.jinGongCard.length))
- message.jinGongCard = [];
- if ((tag & 7) === 2) {
- var end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.jinGongCard.push(reader.int32());
- } else
- message.jinGongCard.push(reader.int32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("huanGongPlayerId"))
- throw $util.ProtocolError("missing required 'huanGongPlayerId'", { instance: message });
- if (!message.hasOwnProperty("jinGongPlayerId"))
- throw $util.ProtocolError("missing required 'jinGongPlayerId'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCPlayerHuanGongBroadcast message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCPlayerHuanGongBroadcast
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCPlayerHuanGongBroadcast} GCPlayerHuanGongBroadcast
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCPlayerHuanGongBroadcast.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCPlayerHuanGongBroadcast message.
- * @function verify
- * @memberof guandan.GCPlayerHuanGongBroadcast
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCPlayerHuanGongBroadcast.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.huanGongPlayerId) && !(message.huanGongPlayerId && $util.isInteger(message.huanGongPlayerId.low) && $util.isInteger(message.huanGongPlayerId.high)))
- return "huanGongPlayerId: integer|Long expected";
- if (message.huanGongCard != null && message.hasOwnProperty("huanGongCard")) {
- if (!Array.isArray(message.huanGongCard))
- return "huanGongCard: array expected";
- for (var i = 0; i < message.huanGongCard.length; ++i)
- if (!$util.isInteger(message.huanGongCard[i]))
- return "huanGongCard: integer[] expected";
- }
- if (!$util.isInteger(message.jinGongPlayerId) && !(message.jinGongPlayerId && $util.isInteger(message.jinGongPlayerId.low) && $util.isInteger(message.jinGongPlayerId.high)))
- return "jinGongPlayerId: integer|Long expected";
- if (message.jinGongCard != null && message.hasOwnProperty("jinGongCard")) {
- if (!Array.isArray(message.jinGongCard))
- return "jinGongCard: array expected";
- for (var i = 0; i < message.jinGongCard.length; ++i)
- if (!$util.isInteger(message.jinGongCard[i]))
- return "jinGongCard: integer[] expected";
- }
- return null;
- };
- /**
- * Creates a GCPlayerHuanGongBroadcast message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCPlayerHuanGongBroadcast
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCPlayerHuanGongBroadcast} GCPlayerHuanGongBroadcast
- */
- GCPlayerHuanGongBroadcast.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCPlayerHuanGongBroadcast)
- return object;
- var message = new $root.guandan.GCPlayerHuanGongBroadcast();
- if (object.huanGongPlayerId != null)
- if ($util.Long)
- (message.huanGongPlayerId = $util.Long.fromValue(object.huanGongPlayerId)).unsigned = false;
- else if (typeof object.huanGongPlayerId === "string")
- message.huanGongPlayerId = parseInt(object.huanGongPlayerId, 10);
- else if (typeof object.huanGongPlayerId === "number")
- message.huanGongPlayerId = object.huanGongPlayerId;
- else if (typeof object.huanGongPlayerId === "object")
- message.huanGongPlayerId = new $util.LongBits(object.huanGongPlayerId.low >>> 0, object.huanGongPlayerId.high >>> 0).toNumber();
- if (object.huanGongCard) {
- if (!Array.isArray(object.huanGongCard))
- throw TypeError(".guandan.GCPlayerHuanGongBroadcast.huanGongCard: array expected");
- message.huanGongCard = [];
- for (var i = 0; i < object.huanGongCard.length; ++i)
- message.huanGongCard[i] = object.huanGongCard[i] | 0;
- }
- if (object.jinGongPlayerId != null)
- if ($util.Long)
- (message.jinGongPlayerId = $util.Long.fromValue(object.jinGongPlayerId)).unsigned = false;
- else if (typeof object.jinGongPlayerId === "string")
- message.jinGongPlayerId = parseInt(object.jinGongPlayerId, 10);
- else if (typeof object.jinGongPlayerId === "number")
- message.jinGongPlayerId = object.jinGongPlayerId;
- else if (typeof object.jinGongPlayerId === "object")
- message.jinGongPlayerId = new $util.LongBits(object.jinGongPlayerId.low >>> 0, object.jinGongPlayerId.high >>> 0).toNumber();
- if (object.jinGongCard) {
- if (!Array.isArray(object.jinGongCard))
- throw TypeError(".guandan.GCPlayerHuanGongBroadcast.jinGongCard: array expected");
- message.jinGongCard = [];
- for (var i = 0; i < object.jinGongCard.length; ++i)
- message.jinGongCard[i] = object.jinGongCard[i] | 0;
- }
- return message;
- };
- /**
- * Creates a plain object from a GCPlayerHuanGongBroadcast message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCPlayerHuanGongBroadcast
- * @static
- * @param {guandan.GCPlayerHuanGongBroadcast} message GCPlayerHuanGongBroadcast
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCPlayerHuanGongBroadcast.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.arrays || options.defaults) {
- object.huanGongCard = [];
- object.jinGongCard = [];
- }
- if (options.defaults) {
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.huanGongPlayerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.huanGongPlayerId = options.longs === String ? "0" : 0;
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.jinGongPlayerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.jinGongPlayerId = options.longs === String ? "0" : 0;
- }
- if (message.huanGongPlayerId != null && message.hasOwnProperty("huanGongPlayerId"))
- if (typeof message.huanGongPlayerId === "number")
- object.huanGongPlayerId = options.longs === String ? String(message.huanGongPlayerId) : message.huanGongPlayerId;
- else
- 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;
- if (message.huanGongCard && message.huanGongCard.length) {
- object.huanGongCard = [];
- for (var j = 0; j < message.huanGongCard.length; ++j)
- object.huanGongCard[j] = message.huanGongCard[j];
- }
- if (message.jinGongPlayerId != null && message.hasOwnProperty("jinGongPlayerId"))
- if (typeof message.jinGongPlayerId === "number")
- object.jinGongPlayerId = options.longs === String ? String(message.jinGongPlayerId) : message.jinGongPlayerId;
- else
- 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;
- if (message.jinGongCard && message.jinGongCard.length) {
- object.jinGongCard = [];
- for (var j = 0; j < message.jinGongCard.length; ++j)
- object.jinGongCard[j] = message.jinGongCard[j];
- }
- return object;
- };
- /**
- * Converts this GCPlayerHuanGongBroadcast to JSON.
- * @function toJSON
- * @memberof guandan.GCPlayerHuanGongBroadcast
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCPlayerHuanGongBroadcast.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCPlayerHuanGongBroadcast;
- })();
- guandan.GCPlayerKangGongInfo = (function() {
- /**
- * Properties of a GCPlayerKangGongInfo.
- * @memberof guandan
- * @interface IGCPlayerKangGongInfo
- * @property {number|Long} playerId GCPlayerKangGongInfo playerId
- * @property {Array.<number>|null} [card] GCPlayerKangGongInfo card
- */
- /**
- * Constructs a new GCPlayerKangGongInfo.
- * @memberof guandan
- * @classdesc Represents a GCPlayerKangGongInfo.
- * @implements IGCPlayerKangGongInfo
- * @constructor
- * @param {guandan.IGCPlayerKangGongInfo=} [properties] Properties to set
- */
- function GCPlayerKangGongInfo(properties) {
- this.card = [];
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCPlayerKangGongInfo playerId.
- * @member {number|Long} playerId
- * @memberof guandan.GCPlayerKangGongInfo
- * @instance
- */
- GCPlayerKangGongInfo.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * GCPlayerKangGongInfo card.
- * @member {Array.<number>} card
- * @memberof guandan.GCPlayerKangGongInfo
- * @instance
- */
- GCPlayerKangGongInfo.prototype.card = $util.emptyArray;
- /**
- * Creates a new GCPlayerKangGongInfo instance using the specified properties.
- * @function create
- * @memberof guandan.GCPlayerKangGongInfo
- * @static
- * @param {guandan.IGCPlayerKangGongInfo=} [properties] Properties to set
- * @returns {guandan.GCPlayerKangGongInfo} GCPlayerKangGongInfo instance
- */
- GCPlayerKangGongInfo.create = function create(properties) {
- return new GCPlayerKangGongInfo(properties);
- };
- /**
- * Encodes the specified GCPlayerKangGongInfo message. Does not implicitly {@link guandan.GCPlayerKangGongInfo.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCPlayerKangGongInfo
- * @static
- * @param {guandan.IGCPlayerKangGongInfo} message GCPlayerKangGongInfo message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCPlayerKangGongInfo.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
- if (message.card != null && message.card.length)
- for (var i = 0; i < message.card.length; ++i)
- writer.uint32(/* id 2, wireType 0 =*/16).int32(message.card[i]);
- return writer;
- };
- /**
- * Encodes the specified GCPlayerKangGongInfo message, length delimited. Does not implicitly {@link guandan.GCPlayerKangGongInfo.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCPlayerKangGongInfo
- * @static
- * @param {guandan.IGCPlayerKangGongInfo} message GCPlayerKangGongInfo message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCPlayerKangGongInfo.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCPlayerKangGongInfo message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCPlayerKangGongInfo
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCPlayerKangGongInfo} GCPlayerKangGongInfo
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCPlayerKangGongInfo.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCPlayerKangGongInfo();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.playerId = reader.int64();
- break;
- case 2:
- if (!(message.card && message.card.length))
- message.card = [];
- if ((tag & 7) === 2) {
- var end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.card.push(reader.int32());
- } else
- message.card.push(reader.int32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("playerId"))
- throw $util.ProtocolError("missing required 'playerId'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCPlayerKangGongInfo message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCPlayerKangGongInfo
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCPlayerKangGongInfo} GCPlayerKangGongInfo
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCPlayerKangGongInfo.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCPlayerKangGongInfo message.
- * @function verify
- * @memberof guandan.GCPlayerKangGongInfo
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCPlayerKangGongInfo.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
- return "playerId: integer|Long expected";
- if (message.card != null && message.hasOwnProperty("card")) {
- if (!Array.isArray(message.card))
- return "card: array expected";
- for (var i = 0; i < message.card.length; ++i)
- if (!$util.isInteger(message.card[i]))
- return "card: integer[] expected";
- }
- return null;
- };
- /**
- * Creates a GCPlayerKangGongInfo message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCPlayerKangGongInfo
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCPlayerKangGongInfo} GCPlayerKangGongInfo
- */
- GCPlayerKangGongInfo.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCPlayerKangGongInfo)
- return object;
- var message = new $root.guandan.GCPlayerKangGongInfo();
- if (object.playerId != null)
- if ($util.Long)
- (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
- else if (typeof object.playerId === "string")
- message.playerId = parseInt(object.playerId, 10);
- else if (typeof object.playerId === "number")
- message.playerId = object.playerId;
- else if (typeof object.playerId === "object")
- message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
- if (object.card) {
- if (!Array.isArray(object.card))
- throw TypeError(".guandan.GCPlayerKangGongInfo.card: array expected");
- message.card = [];
- for (var i = 0; i < object.card.length; ++i)
- message.card[i] = object.card[i] | 0;
- }
- return message;
- };
- /**
- * Creates a plain object from a GCPlayerKangGongInfo message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCPlayerKangGongInfo
- * @static
- * @param {guandan.GCPlayerKangGongInfo} message GCPlayerKangGongInfo
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCPlayerKangGongInfo.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.arrays || options.defaults)
- object.card = [];
- if (options.defaults)
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.playerId = options.longs === String ? "0" : 0;
- if (message.playerId != null && message.hasOwnProperty("playerId"))
- if (typeof message.playerId === "number")
- object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
- else
- 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;
- if (message.card && message.card.length) {
- object.card = [];
- for (var j = 0; j < message.card.length; ++j)
- object.card[j] = message.card[j];
- }
- return object;
- };
- /**
- * Converts this GCPlayerKangGongInfo to JSON.
- * @function toJSON
- * @memberof guandan.GCPlayerKangGongInfo
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCPlayerKangGongInfo.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCPlayerKangGongInfo;
- })();
- guandan.GCPlayerKangGongBroadcast = (function() {
- /**
- * Properties of a GCPlayerKangGongBroadcast.
- * @memberof guandan
- * @interface IGCPlayerKangGongBroadcast
- * @property {Array.<guandan.IGCPlayerKangGongInfo>|null} [gcPlayerKangGongInfo] GCPlayerKangGongBroadcast gcPlayerKangGongInfo
- */
- /**
- * Constructs a new GCPlayerKangGongBroadcast.
- * @memberof guandan
- * @classdesc Represents a GCPlayerKangGongBroadcast.
- * @implements IGCPlayerKangGongBroadcast
- * @constructor
- * @param {guandan.IGCPlayerKangGongBroadcast=} [properties] Properties to set
- */
- function GCPlayerKangGongBroadcast(properties) {
- this.gcPlayerKangGongInfo = [];
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCPlayerKangGongBroadcast gcPlayerKangGongInfo.
- * @member {Array.<guandan.IGCPlayerKangGongInfo>} gcPlayerKangGongInfo
- * @memberof guandan.GCPlayerKangGongBroadcast
- * @instance
- */
- GCPlayerKangGongBroadcast.prototype.gcPlayerKangGongInfo = $util.emptyArray;
- /**
- * Creates a new GCPlayerKangGongBroadcast instance using the specified properties.
- * @function create
- * @memberof guandan.GCPlayerKangGongBroadcast
- * @static
- * @param {guandan.IGCPlayerKangGongBroadcast=} [properties] Properties to set
- * @returns {guandan.GCPlayerKangGongBroadcast} GCPlayerKangGongBroadcast instance
- */
- GCPlayerKangGongBroadcast.create = function create(properties) {
- return new GCPlayerKangGongBroadcast(properties);
- };
- /**
- * Encodes the specified GCPlayerKangGongBroadcast message. Does not implicitly {@link guandan.GCPlayerKangGongBroadcast.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCPlayerKangGongBroadcast
- * @static
- * @param {guandan.IGCPlayerKangGongBroadcast} message GCPlayerKangGongBroadcast message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCPlayerKangGongBroadcast.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.gcPlayerKangGongInfo != null && message.gcPlayerKangGongInfo.length)
- for (var i = 0; i < message.gcPlayerKangGongInfo.length; ++i)
- $root.guandan.GCPlayerKangGongInfo.encode(message.gcPlayerKangGongInfo[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified GCPlayerKangGongBroadcast message, length delimited. Does not implicitly {@link guandan.GCPlayerKangGongBroadcast.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCPlayerKangGongBroadcast
- * @static
- * @param {guandan.IGCPlayerKangGongBroadcast} message GCPlayerKangGongBroadcast message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCPlayerKangGongBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCPlayerKangGongBroadcast message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCPlayerKangGongBroadcast
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCPlayerKangGongBroadcast} GCPlayerKangGongBroadcast
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCPlayerKangGongBroadcast.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCPlayerKangGongBroadcast();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (!(message.gcPlayerKangGongInfo && message.gcPlayerKangGongInfo.length))
- message.gcPlayerKangGongInfo = [];
- message.gcPlayerKangGongInfo.push($root.guandan.GCPlayerKangGongInfo.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a GCPlayerKangGongBroadcast message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCPlayerKangGongBroadcast
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCPlayerKangGongBroadcast} GCPlayerKangGongBroadcast
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCPlayerKangGongBroadcast.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCPlayerKangGongBroadcast message.
- * @function verify
- * @memberof guandan.GCPlayerKangGongBroadcast
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCPlayerKangGongBroadcast.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.gcPlayerKangGongInfo != null && message.hasOwnProperty("gcPlayerKangGongInfo")) {
- if (!Array.isArray(message.gcPlayerKangGongInfo))
- return "gcPlayerKangGongInfo: array expected";
- for (var i = 0; i < message.gcPlayerKangGongInfo.length; ++i) {
- var error = $root.guandan.GCPlayerKangGongInfo.verify(message.gcPlayerKangGongInfo[i]);
- if (error)
- return "gcPlayerKangGongInfo." + error;
- }
- }
- return null;
- };
- /**
- * Creates a GCPlayerKangGongBroadcast message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCPlayerKangGongBroadcast
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCPlayerKangGongBroadcast} GCPlayerKangGongBroadcast
- */
- GCPlayerKangGongBroadcast.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCPlayerKangGongBroadcast)
- return object;
- var message = new $root.guandan.GCPlayerKangGongBroadcast();
- if (object.gcPlayerKangGongInfo) {
- if (!Array.isArray(object.gcPlayerKangGongInfo))
- throw TypeError(".guandan.GCPlayerKangGongBroadcast.gcPlayerKangGongInfo: array expected");
- message.gcPlayerKangGongInfo = [];
- for (var i = 0; i < object.gcPlayerKangGongInfo.length; ++i) {
- if (typeof object.gcPlayerKangGongInfo[i] !== "object")
- throw TypeError(".guandan.GCPlayerKangGongBroadcast.gcPlayerKangGongInfo: object expected");
- message.gcPlayerKangGongInfo[i] = $root.guandan.GCPlayerKangGongInfo.fromObject(object.gcPlayerKangGongInfo[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from a GCPlayerKangGongBroadcast message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCPlayerKangGongBroadcast
- * @static
- * @param {guandan.GCPlayerKangGongBroadcast} message GCPlayerKangGongBroadcast
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCPlayerKangGongBroadcast.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.arrays || options.defaults)
- object.gcPlayerKangGongInfo = [];
- if (message.gcPlayerKangGongInfo && message.gcPlayerKangGongInfo.length) {
- object.gcPlayerKangGongInfo = [];
- for (var j = 0; j < message.gcPlayerKangGongInfo.length; ++j)
- object.gcPlayerKangGongInfo[j] = $root.guandan.GCPlayerKangGongInfo.toObject(message.gcPlayerKangGongInfo[j], options);
- }
- return object;
- };
- /**
- * Converts this GCPlayerKangGongBroadcast to JSON.
- * @function toJSON
- * @memberof guandan.GCPlayerKangGongBroadcast
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCPlayerKangGongBroadcast.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCPlayerKangGongBroadcast;
- })();
- guandan.GCWaitPlayerJinGongBroadcast = (function() {
- /**
- * Properties of a GCWaitPlayerJinGongBroadcast.
- * @memberof guandan
- * @interface IGCWaitPlayerJinGongBroadcast
- * @property {Array.<number|Long>|null} [playerId] GCWaitPlayerJinGongBroadcast playerId
- */
- /**
- * Constructs a new GCWaitPlayerJinGongBroadcast.
- * @memberof guandan
- * @classdesc Represents a GCWaitPlayerJinGongBroadcast.
- * @implements IGCWaitPlayerJinGongBroadcast
- * @constructor
- * @param {guandan.IGCWaitPlayerJinGongBroadcast=} [properties] Properties to set
- */
- function GCWaitPlayerJinGongBroadcast(properties) {
- this.playerId = [];
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCWaitPlayerJinGongBroadcast playerId.
- * @member {Array.<number|Long>} playerId
- * @memberof guandan.GCWaitPlayerJinGongBroadcast
- * @instance
- */
- GCWaitPlayerJinGongBroadcast.prototype.playerId = $util.emptyArray;
- /**
- * Creates a new GCWaitPlayerJinGongBroadcast instance using the specified properties.
- * @function create
- * @memberof guandan.GCWaitPlayerJinGongBroadcast
- * @static
- * @param {guandan.IGCWaitPlayerJinGongBroadcast=} [properties] Properties to set
- * @returns {guandan.GCWaitPlayerJinGongBroadcast} GCWaitPlayerJinGongBroadcast instance
- */
- GCWaitPlayerJinGongBroadcast.create = function create(properties) {
- return new GCWaitPlayerJinGongBroadcast(properties);
- };
- /**
- * Encodes the specified GCWaitPlayerJinGongBroadcast message. Does not implicitly {@link guandan.GCWaitPlayerJinGongBroadcast.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCWaitPlayerJinGongBroadcast
- * @static
- * @param {guandan.IGCWaitPlayerJinGongBroadcast} message GCWaitPlayerJinGongBroadcast message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCWaitPlayerJinGongBroadcast.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.playerId != null && message.playerId.length)
- for (var i = 0; i < message.playerId.length; ++i)
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId[i]);
- return writer;
- };
- /**
- * Encodes the specified GCWaitPlayerJinGongBroadcast message, length delimited. Does not implicitly {@link guandan.GCWaitPlayerJinGongBroadcast.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCWaitPlayerJinGongBroadcast
- * @static
- * @param {guandan.IGCWaitPlayerJinGongBroadcast} message GCWaitPlayerJinGongBroadcast message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCWaitPlayerJinGongBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCWaitPlayerJinGongBroadcast message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCWaitPlayerJinGongBroadcast
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCWaitPlayerJinGongBroadcast} GCWaitPlayerJinGongBroadcast
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCWaitPlayerJinGongBroadcast.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCWaitPlayerJinGongBroadcast();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (!(message.playerId && message.playerId.length))
- message.playerId = [];
- if ((tag & 7) === 2) {
- var end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.playerId.push(reader.int64());
- } else
- message.playerId.push(reader.int64());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a GCWaitPlayerJinGongBroadcast message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCWaitPlayerJinGongBroadcast
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCWaitPlayerJinGongBroadcast} GCWaitPlayerJinGongBroadcast
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCWaitPlayerJinGongBroadcast.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCWaitPlayerJinGongBroadcast message.
- * @function verify
- * @memberof guandan.GCWaitPlayerJinGongBroadcast
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCWaitPlayerJinGongBroadcast.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.playerId != null && message.hasOwnProperty("playerId")) {
- if (!Array.isArray(message.playerId))
- return "playerId: array expected";
- for (var i = 0; i < message.playerId.length; ++i)
- if (!$util.isInteger(message.playerId[i]) && !(message.playerId[i] && $util.isInteger(message.playerId[i].low) && $util.isInteger(message.playerId[i].high)))
- return "playerId: integer|Long[] expected";
- }
- return null;
- };
- /**
- * Creates a GCWaitPlayerJinGongBroadcast message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCWaitPlayerJinGongBroadcast
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCWaitPlayerJinGongBroadcast} GCWaitPlayerJinGongBroadcast
- */
- GCWaitPlayerJinGongBroadcast.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCWaitPlayerJinGongBroadcast)
- return object;
- var message = new $root.guandan.GCWaitPlayerJinGongBroadcast();
- if (object.playerId) {
- if (!Array.isArray(object.playerId))
- throw TypeError(".guandan.GCWaitPlayerJinGongBroadcast.playerId: array expected");
- message.playerId = [];
- for (var i = 0; i < object.playerId.length; ++i)
- if ($util.Long)
- (message.playerId[i] = $util.Long.fromValue(object.playerId[i])).unsigned = false;
- else if (typeof object.playerId[i] === "string")
- message.playerId[i] = parseInt(object.playerId[i], 10);
- else if (typeof object.playerId[i] === "number")
- message.playerId[i] = object.playerId[i];
- else if (typeof object.playerId[i] === "object")
- message.playerId[i] = new $util.LongBits(object.playerId[i].low >>> 0, object.playerId[i].high >>> 0).toNumber();
- }
- return message;
- };
- /**
- * Creates a plain object from a GCWaitPlayerJinGongBroadcast message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCWaitPlayerJinGongBroadcast
- * @static
- * @param {guandan.GCWaitPlayerJinGongBroadcast} message GCWaitPlayerJinGongBroadcast
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCWaitPlayerJinGongBroadcast.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.arrays || options.defaults)
- object.playerId = [];
- if (message.playerId && message.playerId.length) {
- object.playerId = [];
- for (var j = 0; j < message.playerId.length; ++j)
- if (typeof message.playerId[j] === "number")
- object.playerId[j] = options.longs === String ? String(message.playerId[j]) : message.playerId[j];
- else
- 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];
- }
- return object;
- };
- /**
- * Converts this GCWaitPlayerJinGongBroadcast to JSON.
- * @function toJSON
- * @memberof guandan.GCWaitPlayerJinGongBroadcast
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCWaitPlayerJinGongBroadcast.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCWaitPlayerJinGongBroadcast;
- })();
- guandan.GCWaitPlayerHuanGongBroadcast = (function() {
- /**
- * Properties of a GCWaitPlayerHuanGongBroadcast.
- * @memberof guandan
- * @interface IGCWaitPlayerHuanGongBroadcast
- * @property {Array.<number|Long>|null} [playerId] GCWaitPlayerHuanGongBroadcast playerId
- */
- /**
- * Constructs a new GCWaitPlayerHuanGongBroadcast.
- * @memberof guandan
- * @classdesc Represents a GCWaitPlayerHuanGongBroadcast.
- * @implements IGCWaitPlayerHuanGongBroadcast
- * @constructor
- * @param {guandan.IGCWaitPlayerHuanGongBroadcast=} [properties] Properties to set
- */
- function GCWaitPlayerHuanGongBroadcast(properties) {
- this.playerId = [];
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCWaitPlayerHuanGongBroadcast playerId.
- * @member {Array.<number|Long>} playerId
- * @memberof guandan.GCWaitPlayerHuanGongBroadcast
- * @instance
- */
- GCWaitPlayerHuanGongBroadcast.prototype.playerId = $util.emptyArray;
- /**
- * Creates a new GCWaitPlayerHuanGongBroadcast instance using the specified properties.
- * @function create
- * @memberof guandan.GCWaitPlayerHuanGongBroadcast
- * @static
- * @param {guandan.IGCWaitPlayerHuanGongBroadcast=} [properties] Properties to set
- * @returns {guandan.GCWaitPlayerHuanGongBroadcast} GCWaitPlayerHuanGongBroadcast instance
- */
- GCWaitPlayerHuanGongBroadcast.create = function create(properties) {
- return new GCWaitPlayerHuanGongBroadcast(properties);
- };
- /**
- * Encodes the specified GCWaitPlayerHuanGongBroadcast message. Does not implicitly {@link guandan.GCWaitPlayerHuanGongBroadcast.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCWaitPlayerHuanGongBroadcast
- * @static
- * @param {guandan.IGCWaitPlayerHuanGongBroadcast} message GCWaitPlayerHuanGongBroadcast message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCWaitPlayerHuanGongBroadcast.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.playerId != null && message.playerId.length)
- for (var i = 0; i < message.playerId.length; ++i)
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId[i]);
- return writer;
- };
- /**
- * Encodes the specified GCWaitPlayerHuanGongBroadcast message, length delimited. Does not implicitly {@link guandan.GCWaitPlayerHuanGongBroadcast.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCWaitPlayerHuanGongBroadcast
- * @static
- * @param {guandan.IGCWaitPlayerHuanGongBroadcast} message GCWaitPlayerHuanGongBroadcast message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCWaitPlayerHuanGongBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCWaitPlayerHuanGongBroadcast message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCWaitPlayerHuanGongBroadcast
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCWaitPlayerHuanGongBroadcast} GCWaitPlayerHuanGongBroadcast
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCWaitPlayerHuanGongBroadcast.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCWaitPlayerHuanGongBroadcast();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (!(message.playerId && message.playerId.length))
- message.playerId = [];
- if ((tag & 7) === 2) {
- var end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.playerId.push(reader.int64());
- } else
- message.playerId.push(reader.int64());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a GCWaitPlayerHuanGongBroadcast message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCWaitPlayerHuanGongBroadcast
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCWaitPlayerHuanGongBroadcast} GCWaitPlayerHuanGongBroadcast
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCWaitPlayerHuanGongBroadcast.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCWaitPlayerHuanGongBroadcast message.
- * @function verify
- * @memberof guandan.GCWaitPlayerHuanGongBroadcast
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCWaitPlayerHuanGongBroadcast.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.playerId != null && message.hasOwnProperty("playerId")) {
- if (!Array.isArray(message.playerId))
- return "playerId: array expected";
- for (var i = 0; i < message.playerId.length; ++i)
- if (!$util.isInteger(message.playerId[i]) && !(message.playerId[i] && $util.isInteger(message.playerId[i].low) && $util.isInteger(message.playerId[i].high)))
- return "playerId: integer|Long[] expected";
- }
- return null;
- };
- /**
- * Creates a GCWaitPlayerHuanGongBroadcast message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCWaitPlayerHuanGongBroadcast
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCWaitPlayerHuanGongBroadcast} GCWaitPlayerHuanGongBroadcast
- */
- GCWaitPlayerHuanGongBroadcast.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCWaitPlayerHuanGongBroadcast)
- return object;
- var message = new $root.guandan.GCWaitPlayerHuanGongBroadcast();
- if (object.playerId) {
- if (!Array.isArray(object.playerId))
- throw TypeError(".guandan.GCWaitPlayerHuanGongBroadcast.playerId: array expected");
- message.playerId = [];
- for (var i = 0; i < object.playerId.length; ++i)
- if ($util.Long)
- (message.playerId[i] = $util.Long.fromValue(object.playerId[i])).unsigned = false;
- else if (typeof object.playerId[i] === "string")
- message.playerId[i] = parseInt(object.playerId[i], 10);
- else if (typeof object.playerId[i] === "number")
- message.playerId[i] = object.playerId[i];
- else if (typeof object.playerId[i] === "object")
- message.playerId[i] = new $util.LongBits(object.playerId[i].low >>> 0, object.playerId[i].high >>> 0).toNumber();
- }
- return message;
- };
- /**
- * Creates a plain object from a GCWaitPlayerHuanGongBroadcast message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCWaitPlayerHuanGongBroadcast
- * @static
- * @param {guandan.GCWaitPlayerHuanGongBroadcast} message GCWaitPlayerHuanGongBroadcast
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCWaitPlayerHuanGongBroadcast.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.arrays || options.defaults)
- object.playerId = [];
- if (message.playerId && message.playerId.length) {
- object.playerId = [];
- for (var j = 0; j < message.playerId.length; ++j)
- if (typeof message.playerId[j] === "number")
- object.playerId[j] = options.longs === String ? String(message.playerId[j]) : message.playerId[j];
- else
- 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];
- }
- return object;
- };
- /**
- * Converts this GCWaitPlayerHuanGongBroadcast to JSON.
- * @function toJSON
- * @memberof guandan.GCWaitPlayerHuanGongBroadcast
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCWaitPlayerHuanGongBroadcast.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCWaitPlayerHuanGongBroadcast;
- })();
- guandan.RoundSettlePlayerInfo = (function() {
- /**
- * Properties of a RoundSettlePlayerInfo.
- * @memberof guandan
- * @interface IRoundSettlePlayerInfo
- * @property {number|Long} playerId RoundSettlePlayerInfo playerId
- * @property {number|Long} score RoundSettlePlayerInfo score
- * @property {number|Long} gold RoundSettlePlayerInfo gold
- * @property {number} index RoundSettlePlayerInfo index
- * @property {number} doubleRate RoundSettlePlayerInfo doubleRate
- */
- /**
- * Constructs a new RoundSettlePlayerInfo.
- * @memberof guandan
- * @classdesc Represents a RoundSettlePlayerInfo.
- * @implements IRoundSettlePlayerInfo
- * @constructor
- * @param {guandan.IRoundSettlePlayerInfo=} [properties] Properties to set
- */
- function RoundSettlePlayerInfo(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * RoundSettlePlayerInfo playerId.
- * @member {number|Long} playerId
- * @memberof guandan.RoundSettlePlayerInfo
- * @instance
- */
- RoundSettlePlayerInfo.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * RoundSettlePlayerInfo score.
- * @member {number|Long} score
- * @memberof guandan.RoundSettlePlayerInfo
- * @instance
- */
- RoundSettlePlayerInfo.prototype.score = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * RoundSettlePlayerInfo gold.
- * @member {number|Long} gold
- * @memberof guandan.RoundSettlePlayerInfo
- * @instance
- */
- RoundSettlePlayerInfo.prototype.gold = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * RoundSettlePlayerInfo index.
- * @member {number} index
- * @memberof guandan.RoundSettlePlayerInfo
- * @instance
- */
- RoundSettlePlayerInfo.prototype.index = 0;
- /**
- * RoundSettlePlayerInfo doubleRate.
- * @member {number} doubleRate
- * @memberof guandan.RoundSettlePlayerInfo
- * @instance
- */
- RoundSettlePlayerInfo.prototype.doubleRate = 0;
- /**
- * Creates a new RoundSettlePlayerInfo instance using the specified properties.
- * @function create
- * @memberof guandan.RoundSettlePlayerInfo
- * @static
- * @param {guandan.IRoundSettlePlayerInfo=} [properties] Properties to set
- * @returns {guandan.RoundSettlePlayerInfo} RoundSettlePlayerInfo instance
- */
- RoundSettlePlayerInfo.create = function create(properties) {
- return new RoundSettlePlayerInfo(properties);
- };
- /**
- * Encodes the specified RoundSettlePlayerInfo message. Does not implicitly {@link guandan.RoundSettlePlayerInfo.verify|verify} messages.
- * @function encode
- * @memberof guandan.RoundSettlePlayerInfo
- * @static
- * @param {guandan.IRoundSettlePlayerInfo} message RoundSettlePlayerInfo message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- RoundSettlePlayerInfo.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.score);
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.gold);
- writer.uint32(/* id 4, wireType 0 =*/32).int32(message.index);
- writer.uint32(/* id 5, wireType 0 =*/40).int32(message.doubleRate);
- return writer;
- };
- /**
- * Encodes the specified RoundSettlePlayerInfo message, length delimited. Does not implicitly {@link guandan.RoundSettlePlayerInfo.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.RoundSettlePlayerInfo
- * @static
- * @param {guandan.IRoundSettlePlayerInfo} message RoundSettlePlayerInfo message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- RoundSettlePlayerInfo.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a RoundSettlePlayerInfo message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.RoundSettlePlayerInfo
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.RoundSettlePlayerInfo} RoundSettlePlayerInfo
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- RoundSettlePlayerInfo.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.RoundSettlePlayerInfo();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.playerId = reader.int64();
- break;
- case 2:
- message.score = reader.int64();
- break;
- case 3:
- message.gold = reader.int64();
- break;
- case 4:
- message.index = reader.int32();
- break;
- case 5:
- message.doubleRate = reader.int32();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("playerId"))
- throw $util.ProtocolError("missing required 'playerId'", { instance: message });
- if (!message.hasOwnProperty("score"))
- throw $util.ProtocolError("missing required 'score'", { instance: message });
- if (!message.hasOwnProperty("gold"))
- throw $util.ProtocolError("missing required 'gold'", { instance: message });
- if (!message.hasOwnProperty("index"))
- throw $util.ProtocolError("missing required 'index'", { instance: message });
- if (!message.hasOwnProperty("doubleRate"))
- throw $util.ProtocolError("missing required 'doubleRate'", { instance: message });
- return message;
- };
- /**
- * Decodes a RoundSettlePlayerInfo message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.RoundSettlePlayerInfo
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.RoundSettlePlayerInfo} RoundSettlePlayerInfo
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- RoundSettlePlayerInfo.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a RoundSettlePlayerInfo message.
- * @function verify
- * @memberof guandan.RoundSettlePlayerInfo
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- RoundSettlePlayerInfo.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
- return "playerId: integer|Long expected";
- if (!$util.isInteger(message.score) && !(message.score && $util.isInteger(message.score.low) && $util.isInteger(message.score.high)))
- return "score: integer|Long expected";
- if (!$util.isInteger(message.gold) && !(message.gold && $util.isInteger(message.gold.low) && $util.isInteger(message.gold.high)))
- return "gold: integer|Long expected";
- if (!$util.isInteger(message.index))
- return "index: integer expected";
- if (!$util.isInteger(message.doubleRate))
- return "doubleRate: integer expected";
- return null;
- };
- /**
- * Creates a RoundSettlePlayerInfo message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.RoundSettlePlayerInfo
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.RoundSettlePlayerInfo} RoundSettlePlayerInfo
- */
- RoundSettlePlayerInfo.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.RoundSettlePlayerInfo)
- return object;
- var message = new $root.guandan.RoundSettlePlayerInfo();
- if (object.playerId != null)
- if ($util.Long)
- (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
- else if (typeof object.playerId === "string")
- message.playerId = parseInt(object.playerId, 10);
- else if (typeof object.playerId === "number")
- message.playerId = object.playerId;
- else if (typeof object.playerId === "object")
- message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
- if (object.score != null)
- if ($util.Long)
- (message.score = $util.Long.fromValue(object.score)).unsigned = false;
- else if (typeof object.score === "string")
- message.score = parseInt(object.score, 10);
- else if (typeof object.score === "number")
- message.score = object.score;
- else if (typeof object.score === "object")
- message.score = new $util.LongBits(object.score.low >>> 0, object.score.high >>> 0).toNumber();
- if (object.gold != null)
- if ($util.Long)
- (message.gold = $util.Long.fromValue(object.gold)).unsigned = false;
- else if (typeof object.gold === "string")
- message.gold = parseInt(object.gold, 10);
- else if (typeof object.gold === "number")
- message.gold = object.gold;
- else if (typeof object.gold === "object")
- message.gold = new $util.LongBits(object.gold.low >>> 0, object.gold.high >>> 0).toNumber();
- if (object.index != null)
- message.index = object.index | 0;
- if (object.doubleRate != null)
- message.doubleRate = object.doubleRate | 0;
- return message;
- };
- /**
- * Creates a plain object from a RoundSettlePlayerInfo message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.RoundSettlePlayerInfo
- * @static
- * @param {guandan.RoundSettlePlayerInfo} message RoundSettlePlayerInfo
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- RoundSettlePlayerInfo.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults) {
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.playerId = options.longs === String ? "0" : 0;
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.score = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.score = options.longs === String ? "0" : 0;
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.gold = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.gold = options.longs === String ? "0" : 0;
- object.index = 0;
- object.doubleRate = 0;
- }
- if (message.playerId != null && message.hasOwnProperty("playerId"))
- if (typeof message.playerId === "number")
- object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
- else
- 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;
- if (message.score != null && message.hasOwnProperty("score"))
- if (typeof message.score === "number")
- object.score = options.longs === String ? String(message.score) : message.score;
- else
- 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;
- if (message.gold != null && message.hasOwnProperty("gold"))
- if (typeof message.gold === "number")
- object.gold = options.longs === String ? String(message.gold) : message.gold;
- else
- 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;
- if (message.index != null && message.hasOwnProperty("index"))
- object.index = message.index;
- if (message.doubleRate != null && message.hasOwnProperty("doubleRate"))
- object.doubleRate = message.doubleRate;
- return object;
- };
- /**
- * Converts this RoundSettlePlayerInfo to JSON.
- * @function toJSON
- * @memberof guandan.RoundSettlePlayerInfo
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- RoundSettlePlayerInfo.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return RoundSettlePlayerInfo;
- })();
- guandan.GCPlayerYou = (function() {
- /**
- * Properties of a GCPlayerYou.
- * @memberof guandan
- * @interface IGCPlayerYou
- * @property {number|Long} playerId GCPlayerYou playerId
- * @property {Array.<guandan.IRoundSettlePlayerInfo>|null} [settlePlayerList] GCPlayerYou settlePlayerList
- */
- /**
- * Constructs a new GCPlayerYou.
- * @memberof guandan
- * @classdesc Represents a GCPlayerYou.
- * @implements IGCPlayerYou
- * @constructor
- * @param {guandan.IGCPlayerYou=} [properties] Properties to set
- */
- function GCPlayerYou(properties) {
- this.settlePlayerList = [];
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCPlayerYou playerId.
- * @member {number|Long} playerId
- * @memberof guandan.GCPlayerYou
- * @instance
- */
- GCPlayerYou.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * GCPlayerYou settlePlayerList.
- * @member {Array.<guandan.IRoundSettlePlayerInfo>} settlePlayerList
- * @memberof guandan.GCPlayerYou
- * @instance
- */
- GCPlayerYou.prototype.settlePlayerList = $util.emptyArray;
- /**
- * Creates a new GCPlayerYou instance using the specified properties.
- * @function create
- * @memberof guandan.GCPlayerYou
- * @static
- * @param {guandan.IGCPlayerYou=} [properties] Properties to set
- * @returns {guandan.GCPlayerYou} GCPlayerYou instance
- */
- GCPlayerYou.create = function create(properties) {
- return new GCPlayerYou(properties);
- };
- /**
- * Encodes the specified GCPlayerYou message. Does not implicitly {@link guandan.GCPlayerYou.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCPlayerYou
- * @static
- * @param {guandan.IGCPlayerYou} message GCPlayerYou message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCPlayerYou.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
- if (message.settlePlayerList != null && message.settlePlayerList.length)
- for (var i = 0; i < message.settlePlayerList.length; ++i)
- $root.guandan.RoundSettlePlayerInfo.encode(message.settlePlayerList[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified GCPlayerYou message, length delimited. Does not implicitly {@link guandan.GCPlayerYou.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCPlayerYou
- * @static
- * @param {guandan.IGCPlayerYou} message GCPlayerYou message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCPlayerYou.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCPlayerYou message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCPlayerYou
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCPlayerYou} GCPlayerYou
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCPlayerYou.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCPlayerYou();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.playerId = reader.int64();
- break;
- case 2:
- if (!(message.settlePlayerList && message.settlePlayerList.length))
- message.settlePlayerList = [];
- message.settlePlayerList.push($root.guandan.RoundSettlePlayerInfo.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("playerId"))
- throw $util.ProtocolError("missing required 'playerId'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCPlayerYou message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCPlayerYou
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCPlayerYou} GCPlayerYou
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCPlayerYou.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCPlayerYou message.
- * @function verify
- * @memberof guandan.GCPlayerYou
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCPlayerYou.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
- return "playerId: integer|Long expected";
- if (message.settlePlayerList != null && message.hasOwnProperty("settlePlayerList")) {
- if (!Array.isArray(message.settlePlayerList))
- return "settlePlayerList: array expected";
- for (var i = 0; i < message.settlePlayerList.length; ++i) {
- var error = $root.guandan.RoundSettlePlayerInfo.verify(message.settlePlayerList[i]);
- if (error)
- return "settlePlayerList." + error;
- }
- }
- return null;
- };
- /**
- * Creates a GCPlayerYou message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCPlayerYou
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCPlayerYou} GCPlayerYou
- */
- GCPlayerYou.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCPlayerYou)
- return object;
- var message = new $root.guandan.GCPlayerYou();
- if (object.playerId != null)
- if ($util.Long)
- (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
- else if (typeof object.playerId === "string")
- message.playerId = parseInt(object.playerId, 10);
- else if (typeof object.playerId === "number")
- message.playerId = object.playerId;
- else if (typeof object.playerId === "object")
- message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
- if (object.settlePlayerList) {
- if (!Array.isArray(object.settlePlayerList))
- throw TypeError(".guandan.GCPlayerYou.settlePlayerList: array expected");
- message.settlePlayerList = [];
- for (var i = 0; i < object.settlePlayerList.length; ++i) {
- if (typeof object.settlePlayerList[i] !== "object")
- throw TypeError(".guandan.GCPlayerYou.settlePlayerList: object expected");
- message.settlePlayerList[i] = $root.guandan.RoundSettlePlayerInfo.fromObject(object.settlePlayerList[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from a GCPlayerYou message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCPlayerYou
- * @static
- * @param {guandan.GCPlayerYou} message GCPlayerYou
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCPlayerYou.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.arrays || options.defaults)
- object.settlePlayerList = [];
- if (options.defaults)
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.playerId = options.longs === String ? "0" : 0;
- if (message.playerId != null && message.hasOwnProperty("playerId"))
- if (typeof message.playerId === "number")
- object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
- else
- 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;
- if (message.settlePlayerList && message.settlePlayerList.length) {
- object.settlePlayerList = [];
- for (var j = 0; j < message.settlePlayerList.length; ++j)
- object.settlePlayerList[j] = $root.guandan.RoundSettlePlayerInfo.toObject(message.settlePlayerList[j], options);
- }
- return object;
- };
- /**
- * Converts this GCPlayerYou to JSON.
- * @function toJSON
- * @memberof guandan.GCPlayerYou
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCPlayerYou.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCPlayerYou;
- })();
- guandan.GCPlayerEmptyBroadcast = (function() {
- /**
- * Properties of a GCPlayerEmptyBroadcast.
- * @memberof guandan
- * @interface IGCPlayerEmptyBroadcast
- * @property {number|Long} playerId GCPlayerEmptyBroadcast playerId
- * @property {number} index GCPlayerEmptyBroadcast index
- */
- /**
- * Constructs a new GCPlayerEmptyBroadcast.
- * @memberof guandan
- * @classdesc Represents a GCPlayerEmptyBroadcast.
- * @implements IGCPlayerEmptyBroadcast
- * @constructor
- * @param {guandan.IGCPlayerEmptyBroadcast=} [properties] Properties to set
- */
- function GCPlayerEmptyBroadcast(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCPlayerEmptyBroadcast playerId.
- * @member {number|Long} playerId
- * @memberof guandan.GCPlayerEmptyBroadcast
- * @instance
- */
- GCPlayerEmptyBroadcast.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * GCPlayerEmptyBroadcast index.
- * @member {number} index
- * @memberof guandan.GCPlayerEmptyBroadcast
- * @instance
- */
- GCPlayerEmptyBroadcast.prototype.index = 0;
- /**
- * Creates a new GCPlayerEmptyBroadcast instance using the specified properties.
- * @function create
- * @memberof guandan.GCPlayerEmptyBroadcast
- * @static
- * @param {guandan.IGCPlayerEmptyBroadcast=} [properties] Properties to set
- * @returns {guandan.GCPlayerEmptyBroadcast} GCPlayerEmptyBroadcast instance
- */
- GCPlayerEmptyBroadcast.create = function create(properties) {
- return new GCPlayerEmptyBroadcast(properties);
- };
- /**
- * Encodes the specified GCPlayerEmptyBroadcast message. Does not implicitly {@link guandan.GCPlayerEmptyBroadcast.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCPlayerEmptyBroadcast
- * @static
- * @param {guandan.IGCPlayerEmptyBroadcast} message GCPlayerEmptyBroadcast message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCPlayerEmptyBroadcast.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
- writer.uint32(/* id 4, wireType 0 =*/32).int32(message.index);
- return writer;
- };
- /**
- * Encodes the specified GCPlayerEmptyBroadcast message, length delimited. Does not implicitly {@link guandan.GCPlayerEmptyBroadcast.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCPlayerEmptyBroadcast
- * @static
- * @param {guandan.IGCPlayerEmptyBroadcast} message GCPlayerEmptyBroadcast message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCPlayerEmptyBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCPlayerEmptyBroadcast message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCPlayerEmptyBroadcast
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCPlayerEmptyBroadcast} GCPlayerEmptyBroadcast
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCPlayerEmptyBroadcast.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCPlayerEmptyBroadcast();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.playerId = reader.int64();
- break;
- case 4:
- message.index = reader.int32();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("playerId"))
- throw $util.ProtocolError("missing required 'playerId'", { instance: message });
- if (!message.hasOwnProperty("index"))
- throw $util.ProtocolError("missing required 'index'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCPlayerEmptyBroadcast message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCPlayerEmptyBroadcast
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCPlayerEmptyBroadcast} GCPlayerEmptyBroadcast
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCPlayerEmptyBroadcast.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCPlayerEmptyBroadcast message.
- * @function verify
- * @memberof guandan.GCPlayerEmptyBroadcast
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCPlayerEmptyBroadcast.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
- return "playerId: integer|Long expected";
- if (!$util.isInteger(message.index))
- return "index: integer expected";
- return null;
- };
- /**
- * Creates a GCPlayerEmptyBroadcast message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCPlayerEmptyBroadcast
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCPlayerEmptyBroadcast} GCPlayerEmptyBroadcast
- */
- GCPlayerEmptyBroadcast.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCPlayerEmptyBroadcast)
- return object;
- var message = new $root.guandan.GCPlayerEmptyBroadcast();
- if (object.playerId != null)
- if ($util.Long)
- (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
- else if (typeof object.playerId === "string")
- message.playerId = parseInt(object.playerId, 10);
- else if (typeof object.playerId === "number")
- message.playerId = object.playerId;
- else if (typeof object.playerId === "object")
- message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
- if (object.index != null)
- message.index = object.index | 0;
- return message;
- };
- /**
- * Creates a plain object from a GCPlayerEmptyBroadcast message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCPlayerEmptyBroadcast
- * @static
- * @param {guandan.GCPlayerEmptyBroadcast} message GCPlayerEmptyBroadcast
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCPlayerEmptyBroadcast.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults) {
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.playerId = options.longs === String ? "0" : 0;
- object.index = 0;
- }
- if (message.playerId != null && message.hasOwnProperty("playerId"))
- if (typeof message.playerId === "number")
- object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
- else
- 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;
- if (message.index != null && message.hasOwnProperty("index"))
- object.index = message.index;
- return object;
- };
- /**
- * Converts this GCPlayerEmptyBroadcast to JSON.
- * @function toJSON
- * @memberof guandan.GCPlayerEmptyBroadcast
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCPlayerEmptyBroadcast.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCPlayerEmptyBroadcast;
- })();
- guandan.CGPlayerOperate = (function() {
- /**
- * Properties of a CGPlayerOperate.
- * @memberof guandan
- * @interface ICGPlayerOperate
- * @property {guandan.IOperation} operation CGPlayerOperate operation
- * @property {Array.<number>|null} [cardList] CGPlayerOperate cardList
- */
- /**
- * Constructs a new CGPlayerOperate.
- * @memberof guandan
- * @classdesc Represents a CGPlayerOperate.
- * @implements ICGPlayerOperate
- * @constructor
- * @param {guandan.ICGPlayerOperate=} [properties] Properties to set
- */
- function CGPlayerOperate(properties) {
- this.cardList = [];
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * CGPlayerOperate operation.
- * @member {guandan.IOperation} operation
- * @memberof guandan.CGPlayerOperate
- * @instance
- */
- CGPlayerOperate.prototype.operation = null;
- /**
- * CGPlayerOperate cardList.
- * @member {Array.<number>} cardList
- * @memberof guandan.CGPlayerOperate
- * @instance
- */
- CGPlayerOperate.prototype.cardList = $util.emptyArray;
- /**
- * Creates a new CGPlayerOperate instance using the specified properties.
- * @function create
- * @memberof guandan.CGPlayerOperate
- * @static
- * @param {guandan.ICGPlayerOperate=} [properties] Properties to set
- * @returns {guandan.CGPlayerOperate} CGPlayerOperate instance
- */
- CGPlayerOperate.create = function create(properties) {
- return new CGPlayerOperate(properties);
- };
- /**
- * Encodes the specified CGPlayerOperate message. Does not implicitly {@link guandan.CGPlayerOperate.verify|verify} messages.
- * @function encode
- * @memberof guandan.CGPlayerOperate
- * @static
- * @param {guandan.ICGPlayerOperate} message CGPlayerOperate message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- CGPlayerOperate.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- $root.guandan.Operation.encode(message.operation, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
- if (message.cardList != null && message.cardList.length)
- for (var i = 0; i < message.cardList.length; ++i)
- writer.uint32(/* id 2, wireType 0 =*/16).int32(message.cardList[i]);
- return writer;
- };
- /**
- * Encodes the specified CGPlayerOperate message, length delimited. Does not implicitly {@link guandan.CGPlayerOperate.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.CGPlayerOperate
- * @static
- * @param {guandan.ICGPlayerOperate} message CGPlayerOperate message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- CGPlayerOperate.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a CGPlayerOperate message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.CGPlayerOperate
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.CGPlayerOperate} CGPlayerOperate
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- CGPlayerOperate.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.CGPlayerOperate();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.operation = $root.guandan.Operation.decode(reader, reader.uint32());
- break;
- case 2:
- if (!(message.cardList && message.cardList.length))
- message.cardList = [];
- if ((tag & 7) === 2) {
- var end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.cardList.push(reader.int32());
- } else
- message.cardList.push(reader.int32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("operation"))
- throw $util.ProtocolError("missing required 'operation'", { instance: message });
- return message;
- };
- /**
- * Decodes a CGPlayerOperate message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.CGPlayerOperate
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.CGPlayerOperate} CGPlayerOperate
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- CGPlayerOperate.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a CGPlayerOperate message.
- * @function verify
- * @memberof guandan.CGPlayerOperate
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- CGPlayerOperate.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- {
- var error = $root.guandan.Operation.verify(message.operation);
- if (error)
- return "operation." + error;
- }
- if (message.cardList != null && message.hasOwnProperty("cardList")) {
- if (!Array.isArray(message.cardList))
- return "cardList: array expected";
- for (var i = 0; i < message.cardList.length; ++i)
- if (!$util.isInteger(message.cardList[i]))
- return "cardList: integer[] expected";
- }
- return null;
- };
- /**
- * Creates a CGPlayerOperate message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.CGPlayerOperate
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.CGPlayerOperate} CGPlayerOperate
- */
- CGPlayerOperate.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.CGPlayerOperate)
- return object;
- var message = new $root.guandan.CGPlayerOperate();
- if (object.operation != null) {
- if (typeof object.operation !== "object")
- throw TypeError(".guandan.CGPlayerOperate.operation: object expected");
- message.operation = $root.guandan.Operation.fromObject(object.operation);
- }
- if (object.cardList) {
- if (!Array.isArray(object.cardList))
- throw TypeError(".guandan.CGPlayerOperate.cardList: array expected");
- message.cardList = [];
- for (var i = 0; i < object.cardList.length; ++i)
- message.cardList[i] = object.cardList[i] | 0;
- }
- return message;
- };
- /**
- * Creates a plain object from a CGPlayerOperate message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.CGPlayerOperate
- * @static
- * @param {guandan.CGPlayerOperate} message CGPlayerOperate
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- CGPlayerOperate.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.arrays || options.defaults)
- object.cardList = [];
- if (options.defaults)
- object.operation = null;
- if (message.operation != null && message.hasOwnProperty("operation"))
- object.operation = $root.guandan.Operation.toObject(message.operation, options);
- if (message.cardList && message.cardList.length) {
- object.cardList = [];
- for (var j = 0; j < message.cardList.length; ++j)
- object.cardList[j] = message.cardList[j];
- }
- return object;
- };
- /**
- * Converts this CGPlayerOperate to JSON.
- * @function toJSON
- * @memberof guandan.CGPlayerOperate
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- CGPlayerOperate.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return CGPlayerOperate;
- })();
- guandan.GCClear = (function() {
- /**
- * Properties of a GCClear.
- * @memberof guandan
- * @interface IGCClear
- */
- /**
- * Constructs a new GCClear.
- * @memberof guandan
- * @classdesc Represents a GCClear.
- * @implements IGCClear
- * @constructor
- * @param {guandan.IGCClear=} [properties] Properties to set
- */
- function GCClear(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new GCClear instance using the specified properties.
- * @function create
- * @memberof guandan.GCClear
- * @static
- * @param {guandan.IGCClear=} [properties] Properties to set
- * @returns {guandan.GCClear} GCClear instance
- */
- GCClear.create = function create(properties) {
- return new GCClear(properties);
- };
- /**
- * Encodes the specified GCClear message. Does not implicitly {@link guandan.GCClear.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCClear
- * @static
- * @param {guandan.IGCClear} message GCClear message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCClear.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified GCClear message, length delimited. Does not implicitly {@link guandan.GCClear.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCClear
- * @static
- * @param {guandan.IGCClear} message GCClear message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCClear.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCClear message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCClear
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCClear} GCClear
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCClear.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCClear();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a GCClear message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCClear
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCClear} GCClear
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCClear.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCClear message.
- * @function verify
- * @memberof guandan.GCClear
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCClear.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a GCClear message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCClear
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCClear} GCClear
- */
- GCClear.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCClear)
- return object;
- return new $root.guandan.GCClear();
- };
- /**
- * Creates a plain object from a GCClear message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCClear
- * @static
- * @param {guandan.GCClear} message GCClear
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCClear.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this GCClear to JSON.
- * @function toJSON
- * @memberof guandan.GCClear
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCClear.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCClear;
- })();
- guandan.GCReconnectPlayer = (function() {
- /**
- * Properties of a GCReconnectPlayer.
- * @memberof guandan
- * @interface IGCReconnectPlayer
- * @property {number|Long} playerId GCReconnectPlayer playerId
- */
- /**
- * Constructs a new GCReconnectPlayer.
- * @memberof guandan
- * @classdesc Represents a GCReconnectPlayer.
- * @implements IGCReconnectPlayer
- * @constructor
- * @param {guandan.IGCReconnectPlayer=} [properties] Properties to set
- */
- function GCReconnectPlayer(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCReconnectPlayer playerId.
- * @member {number|Long} playerId
- * @memberof guandan.GCReconnectPlayer
- * @instance
- */
- GCReconnectPlayer.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new GCReconnectPlayer instance using the specified properties.
- * @function create
- * @memberof guandan.GCReconnectPlayer
- * @static
- * @param {guandan.IGCReconnectPlayer=} [properties] Properties to set
- * @returns {guandan.GCReconnectPlayer} GCReconnectPlayer instance
- */
- GCReconnectPlayer.create = function create(properties) {
- return new GCReconnectPlayer(properties);
- };
- /**
- * Encodes the specified GCReconnectPlayer message. Does not implicitly {@link guandan.GCReconnectPlayer.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCReconnectPlayer
- * @static
- * @param {guandan.IGCReconnectPlayer} message GCReconnectPlayer message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCReconnectPlayer.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
- return writer;
- };
- /**
- * Encodes the specified GCReconnectPlayer message, length delimited. Does not implicitly {@link guandan.GCReconnectPlayer.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCReconnectPlayer
- * @static
- * @param {guandan.IGCReconnectPlayer} message GCReconnectPlayer message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCReconnectPlayer.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCReconnectPlayer message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCReconnectPlayer
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCReconnectPlayer} GCReconnectPlayer
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCReconnectPlayer.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCReconnectPlayer();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.playerId = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("playerId"))
- throw $util.ProtocolError("missing required 'playerId'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCReconnectPlayer message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCReconnectPlayer
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCReconnectPlayer} GCReconnectPlayer
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCReconnectPlayer.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCReconnectPlayer message.
- * @function verify
- * @memberof guandan.GCReconnectPlayer
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCReconnectPlayer.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
- return "playerId: integer|Long expected";
- return null;
- };
- /**
- * Creates a GCReconnectPlayer message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCReconnectPlayer
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCReconnectPlayer} GCReconnectPlayer
- */
- GCReconnectPlayer.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCReconnectPlayer)
- return object;
- var message = new $root.guandan.GCReconnectPlayer();
- if (object.playerId != null)
- if ($util.Long)
- (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
- else if (typeof object.playerId === "string")
- message.playerId = parseInt(object.playerId, 10);
- else if (typeof object.playerId === "number")
- message.playerId = object.playerId;
- else if (typeof object.playerId === "object")
- message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a GCReconnectPlayer message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCReconnectPlayer
- * @static
- * @param {guandan.GCReconnectPlayer} message GCReconnectPlayer
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCReconnectPlayer.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults)
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.playerId = options.longs === String ? "0" : 0;
- if (message.playerId != null && message.hasOwnProperty("playerId"))
- if (typeof message.playerId === "number")
- object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
- else
- 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;
- return object;
- };
- /**
- * Converts this GCReconnectPlayer to JSON.
- * @function toJSON
- * @memberof guandan.GCReconnectPlayer
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCReconnectPlayer.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCReconnectPlayer;
- })();
- guandan.GCDisconnectPlayer = (function() {
- /**
- * Properties of a GCDisconnectPlayer.
- * @memberof guandan
- * @interface IGCDisconnectPlayer
- * @property {number|Long} playerId GCDisconnectPlayer playerId
- */
- /**
- * Constructs a new GCDisconnectPlayer.
- * @memberof guandan
- * @classdesc Represents a GCDisconnectPlayer.
- * @implements IGCDisconnectPlayer
- * @constructor
- * @param {guandan.IGCDisconnectPlayer=} [properties] Properties to set
- */
- function GCDisconnectPlayer(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCDisconnectPlayer playerId.
- * @member {number|Long} playerId
- * @memberof guandan.GCDisconnectPlayer
- * @instance
- */
- GCDisconnectPlayer.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new GCDisconnectPlayer instance using the specified properties.
- * @function create
- * @memberof guandan.GCDisconnectPlayer
- * @static
- * @param {guandan.IGCDisconnectPlayer=} [properties] Properties to set
- * @returns {guandan.GCDisconnectPlayer} GCDisconnectPlayer instance
- */
- GCDisconnectPlayer.create = function create(properties) {
- return new GCDisconnectPlayer(properties);
- };
- /**
- * Encodes the specified GCDisconnectPlayer message. Does not implicitly {@link guandan.GCDisconnectPlayer.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCDisconnectPlayer
- * @static
- * @param {guandan.IGCDisconnectPlayer} message GCDisconnectPlayer message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCDisconnectPlayer.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
- return writer;
- };
- /**
- * Encodes the specified GCDisconnectPlayer message, length delimited. Does not implicitly {@link guandan.GCDisconnectPlayer.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCDisconnectPlayer
- * @static
- * @param {guandan.IGCDisconnectPlayer} message GCDisconnectPlayer message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCDisconnectPlayer.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCDisconnectPlayer message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCDisconnectPlayer
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCDisconnectPlayer} GCDisconnectPlayer
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCDisconnectPlayer.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCDisconnectPlayer();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.playerId = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("playerId"))
- throw $util.ProtocolError("missing required 'playerId'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCDisconnectPlayer message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCDisconnectPlayer
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCDisconnectPlayer} GCDisconnectPlayer
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCDisconnectPlayer.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCDisconnectPlayer message.
- * @function verify
- * @memberof guandan.GCDisconnectPlayer
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCDisconnectPlayer.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
- return "playerId: integer|Long expected";
- return null;
- };
- /**
- * Creates a GCDisconnectPlayer message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCDisconnectPlayer
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCDisconnectPlayer} GCDisconnectPlayer
- */
- GCDisconnectPlayer.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCDisconnectPlayer)
- return object;
- var message = new $root.guandan.GCDisconnectPlayer();
- if (object.playerId != null)
- if ($util.Long)
- (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
- else if (typeof object.playerId === "string")
- message.playerId = parseInt(object.playerId, 10);
- else if (typeof object.playerId === "number")
- message.playerId = object.playerId;
- else if (typeof object.playerId === "object")
- message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a GCDisconnectPlayer message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCDisconnectPlayer
- * @static
- * @param {guandan.GCDisconnectPlayer} message GCDisconnectPlayer
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCDisconnectPlayer.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults)
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.playerId = options.longs === String ? "0" : 0;
- if (message.playerId != null && message.hasOwnProperty("playerId"))
- if (typeof message.playerId === "number")
- object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
- else
- 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;
- return object;
- };
- /**
- * Converts this GCDisconnectPlayer to JSON.
- * @function toJSON
- * @memberof guandan.GCDisconnectPlayer
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCDisconnectPlayer.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCDisconnectPlayer;
- })();
- guandan.CGPlayerLeave = (function() {
- /**
- * Properties of a CGPlayerLeave.
- * @memberof guandan
- * @interface ICGPlayerLeave
- */
- /**
- * Constructs a new CGPlayerLeave.
- * @memberof guandan
- * @classdesc Represents a CGPlayerLeave.
- * @implements ICGPlayerLeave
- * @constructor
- * @param {guandan.ICGPlayerLeave=} [properties] Properties to set
- */
- function CGPlayerLeave(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new CGPlayerLeave instance using the specified properties.
- * @function create
- * @memberof guandan.CGPlayerLeave
- * @static
- * @param {guandan.ICGPlayerLeave=} [properties] Properties to set
- * @returns {guandan.CGPlayerLeave} CGPlayerLeave instance
- */
- CGPlayerLeave.create = function create(properties) {
- return new CGPlayerLeave(properties);
- };
- /**
- * Encodes the specified CGPlayerLeave message. Does not implicitly {@link guandan.CGPlayerLeave.verify|verify} messages.
- * @function encode
- * @memberof guandan.CGPlayerLeave
- * @static
- * @param {guandan.ICGPlayerLeave} message CGPlayerLeave message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- CGPlayerLeave.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified CGPlayerLeave message, length delimited. Does not implicitly {@link guandan.CGPlayerLeave.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.CGPlayerLeave
- * @static
- * @param {guandan.ICGPlayerLeave} message CGPlayerLeave message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- CGPlayerLeave.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a CGPlayerLeave message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.CGPlayerLeave
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.CGPlayerLeave} CGPlayerLeave
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- CGPlayerLeave.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.CGPlayerLeave();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a CGPlayerLeave message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.CGPlayerLeave
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.CGPlayerLeave} CGPlayerLeave
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- CGPlayerLeave.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a CGPlayerLeave message.
- * @function verify
- * @memberof guandan.CGPlayerLeave
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- CGPlayerLeave.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a CGPlayerLeave message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.CGPlayerLeave
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.CGPlayerLeave} CGPlayerLeave
- */
- CGPlayerLeave.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.CGPlayerLeave)
- return object;
- return new $root.guandan.CGPlayerLeave();
- };
- /**
- * Creates a plain object from a CGPlayerLeave message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.CGPlayerLeave
- * @static
- * @param {guandan.CGPlayerLeave} message CGPlayerLeave
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- CGPlayerLeave.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this CGPlayerLeave to JSON.
- * @function toJSON
- * @memberof guandan.CGPlayerLeave
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- CGPlayerLeave.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return CGPlayerLeave;
- })();
- guandan.GCPlayerLeave = (function() {
- /**
- * Properties of a GCPlayerLeave.
- * @memberof guandan
- * @interface IGCPlayerLeave
- * @property {number|Long} playerId GCPlayerLeave playerId
- */
- /**
- * Constructs a new GCPlayerLeave.
- * @memberof guandan
- * @classdesc Represents a GCPlayerLeave.
- * @implements IGCPlayerLeave
- * @constructor
- * @param {guandan.IGCPlayerLeave=} [properties] Properties to set
- */
- function GCPlayerLeave(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCPlayerLeave playerId.
- * @member {number|Long} playerId
- * @memberof guandan.GCPlayerLeave
- * @instance
- */
- GCPlayerLeave.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new GCPlayerLeave instance using the specified properties.
- * @function create
- * @memberof guandan.GCPlayerLeave
- * @static
- * @param {guandan.IGCPlayerLeave=} [properties] Properties to set
- * @returns {guandan.GCPlayerLeave} GCPlayerLeave instance
- */
- GCPlayerLeave.create = function create(properties) {
- return new GCPlayerLeave(properties);
- };
- /**
- * Encodes the specified GCPlayerLeave message. Does not implicitly {@link guandan.GCPlayerLeave.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCPlayerLeave
- * @static
- * @param {guandan.IGCPlayerLeave} message GCPlayerLeave message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCPlayerLeave.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
- return writer;
- };
- /**
- * Encodes the specified GCPlayerLeave message, length delimited. Does not implicitly {@link guandan.GCPlayerLeave.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCPlayerLeave
- * @static
- * @param {guandan.IGCPlayerLeave} message GCPlayerLeave message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCPlayerLeave.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCPlayerLeave message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCPlayerLeave
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCPlayerLeave} GCPlayerLeave
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCPlayerLeave.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCPlayerLeave();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.playerId = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("playerId"))
- throw $util.ProtocolError("missing required 'playerId'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCPlayerLeave message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCPlayerLeave
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCPlayerLeave} GCPlayerLeave
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCPlayerLeave.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCPlayerLeave message.
- * @function verify
- * @memberof guandan.GCPlayerLeave
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCPlayerLeave.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
- return "playerId: integer|Long expected";
- return null;
- };
- /**
- * Creates a GCPlayerLeave message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCPlayerLeave
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCPlayerLeave} GCPlayerLeave
- */
- GCPlayerLeave.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCPlayerLeave)
- return object;
- var message = new $root.guandan.GCPlayerLeave();
- if (object.playerId != null)
- if ($util.Long)
- (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
- else if (typeof object.playerId === "string")
- message.playerId = parseInt(object.playerId, 10);
- else if (typeof object.playerId === "number")
- message.playerId = object.playerId;
- else if (typeof object.playerId === "object")
- message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a GCPlayerLeave message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCPlayerLeave
- * @static
- * @param {guandan.GCPlayerLeave} message GCPlayerLeave
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCPlayerLeave.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults)
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.playerId = options.longs === String ? "0" : 0;
- if (message.playerId != null && message.hasOwnProperty("playerId"))
- if (typeof message.playerId === "number")
- object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
- else
- 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;
- return object;
- };
- /**
- * Converts this GCPlayerLeave to JSON.
- * @function toJSON
- * @memberof guandan.GCPlayerLeave
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCPlayerLeave.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCPlayerLeave;
- })();
- guandan.CGPlayerStart = (function() {
- /**
- * Properties of a CGPlayerStart.
- * @memberof guandan
- * @interface ICGPlayerStart
- */
- /**
- * Constructs a new CGPlayerStart.
- * @memberof guandan
- * @classdesc Represents a CGPlayerStart.
- * @implements ICGPlayerStart
- * @constructor
- * @param {guandan.ICGPlayerStart=} [properties] Properties to set
- */
- function CGPlayerStart(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new CGPlayerStart instance using the specified properties.
- * @function create
- * @memberof guandan.CGPlayerStart
- * @static
- * @param {guandan.ICGPlayerStart=} [properties] Properties to set
- * @returns {guandan.CGPlayerStart} CGPlayerStart instance
- */
- CGPlayerStart.create = function create(properties) {
- return new CGPlayerStart(properties);
- };
- /**
- * Encodes the specified CGPlayerStart message. Does not implicitly {@link guandan.CGPlayerStart.verify|verify} messages.
- * @function encode
- * @memberof guandan.CGPlayerStart
- * @static
- * @param {guandan.ICGPlayerStart} message CGPlayerStart message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- CGPlayerStart.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified CGPlayerStart message, length delimited. Does not implicitly {@link guandan.CGPlayerStart.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.CGPlayerStart
- * @static
- * @param {guandan.ICGPlayerStart} message CGPlayerStart message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- CGPlayerStart.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a CGPlayerStart message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.CGPlayerStart
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.CGPlayerStart} CGPlayerStart
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- CGPlayerStart.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.CGPlayerStart();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a CGPlayerStart message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.CGPlayerStart
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.CGPlayerStart} CGPlayerStart
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- CGPlayerStart.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a CGPlayerStart message.
- * @function verify
- * @memberof guandan.CGPlayerStart
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- CGPlayerStart.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a CGPlayerStart message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.CGPlayerStart
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.CGPlayerStart} CGPlayerStart
- */
- CGPlayerStart.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.CGPlayerStart)
- return object;
- return new $root.guandan.CGPlayerStart();
- };
- /**
- * Creates a plain object from a CGPlayerStart message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.CGPlayerStart
- * @static
- * @param {guandan.CGPlayerStart} message CGPlayerStart
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- CGPlayerStart.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this CGPlayerStart to JSON.
- * @function toJSON
- * @memberof guandan.CGPlayerStart
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- CGPlayerStart.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return CGPlayerStart;
- })();
- guandan.GCLastBroadcast = (function() {
- /**
- * Properties of a GCLastBroadcast.
- * @memberof guandan
- * @interface IGCLastBroadcast
- */
- /**
- * Constructs a new GCLastBroadcast.
- * @memberof guandan
- * @classdesc Represents a GCLastBroadcast.
- * @implements IGCLastBroadcast
- * @constructor
- * @param {guandan.IGCLastBroadcast=} [properties] Properties to set
- */
- function GCLastBroadcast(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new GCLastBroadcast instance using the specified properties.
- * @function create
- * @memberof guandan.GCLastBroadcast
- * @static
- * @param {guandan.IGCLastBroadcast=} [properties] Properties to set
- * @returns {guandan.GCLastBroadcast} GCLastBroadcast instance
- */
- GCLastBroadcast.create = function create(properties) {
- return new GCLastBroadcast(properties);
- };
- /**
- * Encodes the specified GCLastBroadcast message. Does not implicitly {@link guandan.GCLastBroadcast.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCLastBroadcast
- * @static
- * @param {guandan.IGCLastBroadcast} message GCLastBroadcast message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCLastBroadcast.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified GCLastBroadcast message, length delimited. Does not implicitly {@link guandan.GCLastBroadcast.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCLastBroadcast
- * @static
- * @param {guandan.IGCLastBroadcast} message GCLastBroadcast message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCLastBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCLastBroadcast message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCLastBroadcast
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCLastBroadcast} GCLastBroadcast
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCLastBroadcast.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCLastBroadcast();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a GCLastBroadcast message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCLastBroadcast
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCLastBroadcast} GCLastBroadcast
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCLastBroadcast.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCLastBroadcast message.
- * @function verify
- * @memberof guandan.GCLastBroadcast
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCLastBroadcast.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a GCLastBroadcast message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCLastBroadcast
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCLastBroadcast} GCLastBroadcast
- */
- GCLastBroadcast.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCLastBroadcast)
- return object;
- return new $root.guandan.GCLastBroadcast();
- };
- /**
- * Creates a plain object from a GCLastBroadcast message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCLastBroadcast
- * @static
- * @param {guandan.GCLastBroadcast} message GCLastBroadcast
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCLastBroadcast.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this GCLastBroadcast to JSON.
- * @function toJSON
- * @memberof guandan.GCLastBroadcast
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCLastBroadcast.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCLastBroadcast;
- })();
- guandan.GCPlayerStart = (function() {
- /**
- * Properties of a GCPlayerStart.
- * @memberof guandan
- * @interface IGCPlayerStart
- * @property {number|Long} playerId GCPlayerStart playerId
- */
- /**
- * Constructs a new GCPlayerStart.
- * @memberof guandan
- * @classdesc Represents a GCPlayerStart.
- * @implements IGCPlayerStart
- * @constructor
- * @param {guandan.IGCPlayerStart=} [properties] Properties to set
- */
- function GCPlayerStart(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCPlayerStart playerId.
- * @member {number|Long} playerId
- * @memberof guandan.GCPlayerStart
- * @instance
- */
- GCPlayerStart.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new GCPlayerStart instance using the specified properties.
- * @function create
- * @memberof guandan.GCPlayerStart
- * @static
- * @param {guandan.IGCPlayerStart=} [properties] Properties to set
- * @returns {guandan.GCPlayerStart} GCPlayerStart instance
- */
- GCPlayerStart.create = function create(properties) {
- return new GCPlayerStart(properties);
- };
- /**
- * Encodes the specified GCPlayerStart message. Does not implicitly {@link guandan.GCPlayerStart.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCPlayerStart
- * @static
- * @param {guandan.IGCPlayerStart} message GCPlayerStart message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCPlayerStart.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
- return writer;
- };
- /**
- * Encodes the specified GCPlayerStart message, length delimited. Does not implicitly {@link guandan.GCPlayerStart.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCPlayerStart
- * @static
- * @param {guandan.IGCPlayerStart} message GCPlayerStart message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCPlayerStart.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCPlayerStart message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCPlayerStart
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCPlayerStart} GCPlayerStart
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCPlayerStart.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCPlayerStart();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.playerId = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("playerId"))
- throw $util.ProtocolError("missing required 'playerId'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCPlayerStart message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCPlayerStart
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCPlayerStart} GCPlayerStart
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCPlayerStart.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCPlayerStart message.
- * @function verify
- * @memberof guandan.GCPlayerStart
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCPlayerStart.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
- return "playerId: integer|Long expected";
- return null;
- };
- /**
- * Creates a GCPlayerStart message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCPlayerStart
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCPlayerStart} GCPlayerStart
- */
- GCPlayerStart.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCPlayerStart)
- return object;
- var message = new $root.guandan.GCPlayerStart();
- if (object.playerId != null)
- if ($util.Long)
- (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
- else if (typeof object.playerId === "string")
- message.playerId = parseInt(object.playerId, 10);
- else if (typeof object.playerId === "number")
- message.playerId = object.playerId;
- else if (typeof object.playerId === "object")
- message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a GCPlayerStart message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCPlayerStart
- * @static
- * @param {guandan.GCPlayerStart} message GCPlayerStart
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCPlayerStart.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults)
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.playerId = options.longs === String ? "0" : 0;
- if (message.playerId != null && message.hasOwnProperty("playerId"))
- if (typeof message.playerId === "number")
- object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
- else
- 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;
- return object;
- };
- /**
- * Converts this GCPlayerStart to JSON.
- * @function toJSON
- * @memberof guandan.GCPlayerStart
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCPlayerStart.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCPlayerStart;
- })();
- guandan.CGPlayerDissolve = (function() {
- /**
- * Properties of a CGPlayerDissolve.
- * @memberof guandan
- * @interface ICGPlayerDissolve
- * @property {number|Long} playerId CGPlayerDissolve playerId
- */
- /**
- * Constructs a new CGPlayerDissolve.
- * @memberof guandan
- * @classdesc Represents a CGPlayerDissolve.
- * @implements ICGPlayerDissolve
- * @constructor
- * @param {guandan.ICGPlayerDissolve=} [properties] Properties to set
- */
- function CGPlayerDissolve(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * CGPlayerDissolve playerId.
- * @member {number|Long} playerId
- * @memberof guandan.CGPlayerDissolve
- * @instance
- */
- CGPlayerDissolve.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new CGPlayerDissolve instance using the specified properties.
- * @function create
- * @memberof guandan.CGPlayerDissolve
- * @static
- * @param {guandan.ICGPlayerDissolve=} [properties] Properties to set
- * @returns {guandan.CGPlayerDissolve} CGPlayerDissolve instance
- */
- CGPlayerDissolve.create = function create(properties) {
- return new CGPlayerDissolve(properties);
- };
- /**
- * Encodes the specified CGPlayerDissolve message. Does not implicitly {@link guandan.CGPlayerDissolve.verify|verify} messages.
- * @function encode
- * @memberof guandan.CGPlayerDissolve
- * @static
- * @param {guandan.ICGPlayerDissolve} message CGPlayerDissolve message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- CGPlayerDissolve.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
- return writer;
- };
- /**
- * Encodes the specified CGPlayerDissolve message, length delimited. Does not implicitly {@link guandan.CGPlayerDissolve.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.CGPlayerDissolve
- * @static
- * @param {guandan.ICGPlayerDissolve} message CGPlayerDissolve message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- CGPlayerDissolve.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a CGPlayerDissolve message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.CGPlayerDissolve
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.CGPlayerDissolve} CGPlayerDissolve
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- CGPlayerDissolve.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.CGPlayerDissolve();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.playerId = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("playerId"))
- throw $util.ProtocolError("missing required 'playerId'", { instance: message });
- return message;
- };
- /**
- * Decodes a CGPlayerDissolve message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.CGPlayerDissolve
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.CGPlayerDissolve} CGPlayerDissolve
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- CGPlayerDissolve.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a CGPlayerDissolve message.
- * @function verify
- * @memberof guandan.CGPlayerDissolve
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- CGPlayerDissolve.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
- return "playerId: integer|Long expected";
- return null;
- };
- /**
- * Creates a CGPlayerDissolve message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.CGPlayerDissolve
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.CGPlayerDissolve} CGPlayerDissolve
- */
- CGPlayerDissolve.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.CGPlayerDissolve)
- return object;
- var message = new $root.guandan.CGPlayerDissolve();
- if (object.playerId != null)
- if ($util.Long)
- (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
- else if (typeof object.playerId === "string")
- message.playerId = parseInt(object.playerId, 10);
- else if (typeof object.playerId === "number")
- message.playerId = object.playerId;
- else if (typeof object.playerId === "object")
- message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a CGPlayerDissolve message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.CGPlayerDissolve
- * @static
- * @param {guandan.CGPlayerDissolve} message CGPlayerDissolve
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- CGPlayerDissolve.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults)
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.playerId = options.longs === String ? "0" : 0;
- if (message.playerId != null && message.hasOwnProperty("playerId"))
- if (typeof message.playerId === "number")
- object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
- else
- 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;
- return object;
- };
- /**
- * Converts this CGPlayerDissolve to JSON.
- * @function toJSON
- * @memberof guandan.CGPlayerDissolve
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- CGPlayerDissolve.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return CGPlayerDissolve;
- })();
- guandan.GCPlayerDissolve = (function() {
- /**
- * Properties of a GCPlayerDissolve.
- * @memberof guandan
- * @interface IGCPlayerDissolve
- * @property {number|Long} playerId GCPlayerDissolve playerId
- */
- /**
- * Constructs a new GCPlayerDissolve.
- * @memberof guandan
- * @classdesc Represents a GCPlayerDissolve.
- * @implements IGCPlayerDissolve
- * @constructor
- * @param {guandan.IGCPlayerDissolve=} [properties] Properties to set
- */
- function GCPlayerDissolve(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCPlayerDissolve playerId.
- * @member {number|Long} playerId
- * @memberof guandan.GCPlayerDissolve
- * @instance
- */
- GCPlayerDissolve.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new GCPlayerDissolve instance using the specified properties.
- * @function create
- * @memberof guandan.GCPlayerDissolve
- * @static
- * @param {guandan.IGCPlayerDissolve=} [properties] Properties to set
- * @returns {guandan.GCPlayerDissolve} GCPlayerDissolve instance
- */
- GCPlayerDissolve.create = function create(properties) {
- return new GCPlayerDissolve(properties);
- };
- /**
- * Encodes the specified GCPlayerDissolve message. Does not implicitly {@link guandan.GCPlayerDissolve.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCPlayerDissolve
- * @static
- * @param {guandan.IGCPlayerDissolve} message GCPlayerDissolve message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCPlayerDissolve.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
- return writer;
- };
- /**
- * Encodes the specified GCPlayerDissolve message, length delimited. Does not implicitly {@link guandan.GCPlayerDissolve.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCPlayerDissolve
- * @static
- * @param {guandan.IGCPlayerDissolve} message GCPlayerDissolve message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCPlayerDissolve.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCPlayerDissolve message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCPlayerDissolve
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCPlayerDissolve} GCPlayerDissolve
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCPlayerDissolve.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCPlayerDissolve();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.playerId = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("playerId"))
- throw $util.ProtocolError("missing required 'playerId'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCPlayerDissolve message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCPlayerDissolve
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCPlayerDissolve} GCPlayerDissolve
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCPlayerDissolve.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCPlayerDissolve message.
- * @function verify
- * @memberof guandan.GCPlayerDissolve
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCPlayerDissolve.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
- return "playerId: integer|Long expected";
- return null;
- };
- /**
- * Creates a GCPlayerDissolve message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCPlayerDissolve
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCPlayerDissolve} GCPlayerDissolve
- */
- GCPlayerDissolve.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCPlayerDissolve)
- return object;
- var message = new $root.guandan.GCPlayerDissolve();
- if (object.playerId != null)
- if ($util.Long)
- (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
- else if (typeof object.playerId === "string")
- message.playerId = parseInt(object.playerId, 10);
- else if (typeof object.playerId === "number")
- message.playerId = object.playerId;
- else if (typeof object.playerId === "object")
- message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a GCPlayerDissolve message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCPlayerDissolve
- * @static
- * @param {guandan.GCPlayerDissolve} message GCPlayerDissolve
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCPlayerDissolve.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults)
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.playerId = options.longs === String ? "0" : 0;
- if (message.playerId != null && message.hasOwnProperty("playerId"))
- if (typeof message.playerId === "number")
- object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
- else
- 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;
- return object;
- };
- /**
- * Converts this GCPlayerDissolve to JSON.
- * @function toJSON
- * @memberof guandan.GCPlayerDissolve
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCPlayerDissolve.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCPlayerDissolve;
- })();
- guandan.CGPlayerDissolveAgree = (function() {
- /**
- * Properties of a CGPlayerDissolveAgree.
- * @memberof guandan
- * @interface ICGPlayerDissolveAgree
- * @property {boolean} agree CGPlayerDissolveAgree agree
- */
- /**
- * Constructs a new CGPlayerDissolveAgree.
- * @memberof guandan
- * @classdesc Represents a CGPlayerDissolveAgree.
- * @implements ICGPlayerDissolveAgree
- * @constructor
- * @param {guandan.ICGPlayerDissolveAgree=} [properties] Properties to set
- */
- function CGPlayerDissolveAgree(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * CGPlayerDissolveAgree agree.
- * @member {boolean} agree
- * @memberof guandan.CGPlayerDissolveAgree
- * @instance
- */
- CGPlayerDissolveAgree.prototype.agree = false;
- /**
- * Creates a new CGPlayerDissolveAgree instance using the specified properties.
- * @function create
- * @memberof guandan.CGPlayerDissolveAgree
- * @static
- * @param {guandan.ICGPlayerDissolveAgree=} [properties] Properties to set
- * @returns {guandan.CGPlayerDissolveAgree} CGPlayerDissolveAgree instance
- */
- CGPlayerDissolveAgree.create = function create(properties) {
- return new CGPlayerDissolveAgree(properties);
- };
- /**
- * Encodes the specified CGPlayerDissolveAgree message. Does not implicitly {@link guandan.CGPlayerDissolveAgree.verify|verify} messages.
- * @function encode
- * @memberof guandan.CGPlayerDissolveAgree
- * @static
- * @param {guandan.ICGPlayerDissolveAgree} message CGPlayerDissolveAgree message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- CGPlayerDissolveAgree.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).bool(message.agree);
- return writer;
- };
- /**
- * Encodes the specified CGPlayerDissolveAgree message, length delimited. Does not implicitly {@link guandan.CGPlayerDissolveAgree.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.CGPlayerDissolveAgree
- * @static
- * @param {guandan.ICGPlayerDissolveAgree} message CGPlayerDissolveAgree message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- CGPlayerDissolveAgree.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a CGPlayerDissolveAgree message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.CGPlayerDissolveAgree
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.CGPlayerDissolveAgree} CGPlayerDissolveAgree
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- CGPlayerDissolveAgree.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.CGPlayerDissolveAgree();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.agree = reader.bool();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("agree"))
- throw $util.ProtocolError("missing required 'agree'", { instance: message });
- return message;
- };
- /**
- * Decodes a CGPlayerDissolveAgree message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.CGPlayerDissolveAgree
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.CGPlayerDissolveAgree} CGPlayerDissolveAgree
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- CGPlayerDissolveAgree.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a CGPlayerDissolveAgree message.
- * @function verify
- * @memberof guandan.CGPlayerDissolveAgree
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- CGPlayerDissolveAgree.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (typeof message.agree !== "boolean")
- return "agree: boolean expected";
- return null;
- };
- /**
- * Creates a CGPlayerDissolveAgree message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.CGPlayerDissolveAgree
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.CGPlayerDissolveAgree} CGPlayerDissolveAgree
- */
- CGPlayerDissolveAgree.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.CGPlayerDissolveAgree)
- return object;
- var message = new $root.guandan.CGPlayerDissolveAgree();
- if (object.agree != null)
- message.agree = Boolean(object.agree);
- return message;
- };
- /**
- * Creates a plain object from a CGPlayerDissolveAgree message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.CGPlayerDissolveAgree
- * @static
- * @param {guandan.CGPlayerDissolveAgree} message CGPlayerDissolveAgree
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- CGPlayerDissolveAgree.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults)
- object.agree = false;
- if (message.agree != null && message.hasOwnProperty("agree"))
- object.agree = message.agree;
- return object;
- };
- /**
- * Converts this CGPlayerDissolveAgree to JSON.
- * @function toJSON
- * @memberof guandan.CGPlayerDissolveAgree
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- CGPlayerDissolveAgree.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return CGPlayerDissolveAgree;
- })();
- guandan.GCPlayerDissolveAgree = (function() {
- /**
- * Properties of a GCPlayerDissolveAgree.
- * @memberof guandan
- * @interface IGCPlayerDissolveAgree
- * @property {boolean} agree GCPlayerDissolveAgree agree
- * @property {number|Long} playerId GCPlayerDissolveAgree playerId
- */
- /**
- * Constructs a new GCPlayerDissolveAgree.
- * @memberof guandan
- * @classdesc Represents a GCPlayerDissolveAgree.
- * @implements IGCPlayerDissolveAgree
- * @constructor
- * @param {guandan.IGCPlayerDissolveAgree=} [properties] Properties to set
- */
- function GCPlayerDissolveAgree(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCPlayerDissolveAgree agree.
- * @member {boolean} agree
- * @memberof guandan.GCPlayerDissolveAgree
- * @instance
- */
- GCPlayerDissolveAgree.prototype.agree = false;
- /**
- * GCPlayerDissolveAgree playerId.
- * @member {number|Long} playerId
- * @memberof guandan.GCPlayerDissolveAgree
- * @instance
- */
- GCPlayerDissolveAgree.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new GCPlayerDissolveAgree instance using the specified properties.
- * @function create
- * @memberof guandan.GCPlayerDissolveAgree
- * @static
- * @param {guandan.IGCPlayerDissolveAgree=} [properties] Properties to set
- * @returns {guandan.GCPlayerDissolveAgree} GCPlayerDissolveAgree instance
- */
- GCPlayerDissolveAgree.create = function create(properties) {
- return new GCPlayerDissolveAgree(properties);
- };
- /**
- * Encodes the specified GCPlayerDissolveAgree message. Does not implicitly {@link guandan.GCPlayerDissolveAgree.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCPlayerDissolveAgree
- * @static
- * @param {guandan.IGCPlayerDissolveAgree} message GCPlayerDissolveAgree message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCPlayerDissolveAgree.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).bool(message.agree);
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.playerId);
- return writer;
- };
- /**
- * Encodes the specified GCPlayerDissolveAgree message, length delimited. Does not implicitly {@link guandan.GCPlayerDissolveAgree.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCPlayerDissolveAgree
- * @static
- * @param {guandan.IGCPlayerDissolveAgree} message GCPlayerDissolveAgree message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCPlayerDissolveAgree.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCPlayerDissolveAgree message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCPlayerDissolveAgree
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCPlayerDissolveAgree} GCPlayerDissolveAgree
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCPlayerDissolveAgree.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCPlayerDissolveAgree();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.agree = reader.bool();
- break;
- case 2:
- message.playerId = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("agree"))
- throw $util.ProtocolError("missing required 'agree'", { instance: message });
- if (!message.hasOwnProperty("playerId"))
- throw $util.ProtocolError("missing required 'playerId'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCPlayerDissolveAgree message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCPlayerDissolveAgree
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCPlayerDissolveAgree} GCPlayerDissolveAgree
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCPlayerDissolveAgree.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCPlayerDissolveAgree message.
- * @function verify
- * @memberof guandan.GCPlayerDissolveAgree
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCPlayerDissolveAgree.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (typeof message.agree !== "boolean")
- return "agree: boolean expected";
- if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
- return "playerId: integer|Long expected";
- return null;
- };
- /**
- * Creates a GCPlayerDissolveAgree message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCPlayerDissolveAgree
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCPlayerDissolveAgree} GCPlayerDissolveAgree
- */
- GCPlayerDissolveAgree.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCPlayerDissolveAgree)
- return object;
- var message = new $root.guandan.GCPlayerDissolveAgree();
- if (object.agree != null)
- message.agree = Boolean(object.agree);
- if (object.playerId != null)
- if ($util.Long)
- (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
- else if (typeof object.playerId === "string")
- message.playerId = parseInt(object.playerId, 10);
- else if (typeof object.playerId === "number")
- message.playerId = object.playerId;
- else if (typeof object.playerId === "object")
- message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a GCPlayerDissolveAgree message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCPlayerDissolveAgree
- * @static
- * @param {guandan.GCPlayerDissolveAgree} message GCPlayerDissolveAgree
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCPlayerDissolveAgree.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults) {
- object.agree = false;
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.playerId = options.longs === String ? "0" : 0;
- }
- if (message.agree != null && message.hasOwnProperty("agree"))
- object.agree = message.agree;
- if (message.playerId != null && message.hasOwnProperty("playerId"))
- if (typeof message.playerId === "number")
- object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
- else
- 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;
- return object;
- };
- /**
- * Converts this GCPlayerDissolveAgree to JSON.
- * @function toJSON
- * @memberof guandan.GCPlayerDissolveAgree
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCPlayerDissolveAgree.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCPlayerDissolveAgree;
- })();
- guandan.GCLiuJu = (function() {
- /**
- * Properties of a GCLiuJu.
- * @memberof guandan
- * @interface IGCLiuJu
- * @property {Array.<guandan.IRoundSettlePlayerInfo>|null} [settlePlayerList] GCLiuJu settlePlayerList
- */
- /**
- * Constructs a new GCLiuJu.
- * @memberof guandan
- * @classdesc Represents a GCLiuJu.
- * @implements IGCLiuJu
- * @constructor
- * @param {guandan.IGCLiuJu=} [properties] Properties to set
- */
- function GCLiuJu(properties) {
- this.settlePlayerList = [];
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCLiuJu settlePlayerList.
- * @member {Array.<guandan.IRoundSettlePlayerInfo>} settlePlayerList
- * @memberof guandan.GCLiuJu
- * @instance
- */
- GCLiuJu.prototype.settlePlayerList = $util.emptyArray;
- /**
- * Creates a new GCLiuJu instance using the specified properties.
- * @function create
- * @memberof guandan.GCLiuJu
- * @static
- * @param {guandan.IGCLiuJu=} [properties] Properties to set
- * @returns {guandan.GCLiuJu} GCLiuJu instance
- */
- GCLiuJu.create = function create(properties) {
- return new GCLiuJu(properties);
- };
- /**
- * Encodes the specified GCLiuJu message. Does not implicitly {@link guandan.GCLiuJu.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCLiuJu
- * @static
- * @param {guandan.IGCLiuJu} message GCLiuJu message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCLiuJu.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.settlePlayerList != null && message.settlePlayerList.length)
- for (var i = 0; i < message.settlePlayerList.length; ++i)
- $root.guandan.RoundSettlePlayerInfo.encode(message.settlePlayerList[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified GCLiuJu message, length delimited. Does not implicitly {@link guandan.GCLiuJu.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCLiuJu
- * @static
- * @param {guandan.IGCLiuJu} message GCLiuJu message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCLiuJu.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCLiuJu message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCLiuJu
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCLiuJu} GCLiuJu
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCLiuJu.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCLiuJu();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (!(message.settlePlayerList && message.settlePlayerList.length))
- message.settlePlayerList = [];
- message.settlePlayerList.push($root.guandan.RoundSettlePlayerInfo.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a GCLiuJu message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCLiuJu
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCLiuJu} GCLiuJu
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCLiuJu.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCLiuJu message.
- * @function verify
- * @memberof guandan.GCLiuJu
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCLiuJu.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.settlePlayerList != null && message.hasOwnProperty("settlePlayerList")) {
- if (!Array.isArray(message.settlePlayerList))
- return "settlePlayerList: array expected";
- for (var i = 0; i < message.settlePlayerList.length; ++i) {
- var error = $root.guandan.RoundSettlePlayerInfo.verify(message.settlePlayerList[i]);
- if (error)
- return "settlePlayerList." + error;
- }
- }
- return null;
- };
- /**
- * Creates a GCLiuJu message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCLiuJu
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCLiuJu} GCLiuJu
- */
- GCLiuJu.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCLiuJu)
- return object;
- var message = new $root.guandan.GCLiuJu();
- if (object.settlePlayerList) {
- if (!Array.isArray(object.settlePlayerList))
- throw TypeError(".guandan.GCLiuJu.settlePlayerList: array expected");
- message.settlePlayerList = [];
- for (var i = 0; i < object.settlePlayerList.length; ++i) {
- if (typeof object.settlePlayerList[i] !== "object")
- throw TypeError(".guandan.GCLiuJu.settlePlayerList: object expected");
- message.settlePlayerList[i] = $root.guandan.RoundSettlePlayerInfo.fromObject(object.settlePlayerList[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from a GCLiuJu message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCLiuJu
- * @static
- * @param {guandan.GCLiuJu} message GCLiuJu
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCLiuJu.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.arrays || options.defaults)
- object.settlePlayerList = [];
- if (message.settlePlayerList && message.settlePlayerList.length) {
- object.settlePlayerList = [];
- for (var j = 0; j < message.settlePlayerList.length; ++j)
- object.settlePlayerList[j] = $root.guandan.RoundSettlePlayerInfo.toObject(message.settlePlayerList[j], options);
- }
- return object;
- };
- /**
- * Converts this GCLiuJu to JSON.
- * @function toJSON
- * @memberof guandan.GCLiuJu
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCLiuJu.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCLiuJu;
- })();
- guandan.SettleInfo = (function() {
- /**
- * Properties of a SettleInfo.
- * @memberof guandan
- * @interface ISettleInfo
- * @property {number} settleType SettleInfo settleType
- * @property {number} num SettleInfo num
- */
- /**
- * Constructs a new SettleInfo.
- * @memberof guandan
- * @classdesc Represents a SettleInfo.
- * @implements ISettleInfo
- * @constructor
- * @param {guandan.ISettleInfo=} [properties] Properties to set
- */
- function SettleInfo(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * SettleInfo settleType.
- * @member {number} settleType
- * @memberof guandan.SettleInfo
- * @instance
- */
- SettleInfo.prototype.settleType = 0;
- /**
- * SettleInfo num.
- * @member {number} num
- * @memberof guandan.SettleInfo
- * @instance
- */
- SettleInfo.prototype.num = 0;
- /**
- * Creates a new SettleInfo instance using the specified properties.
- * @function create
- * @memberof guandan.SettleInfo
- * @static
- * @param {guandan.ISettleInfo=} [properties] Properties to set
- * @returns {guandan.SettleInfo} SettleInfo instance
- */
- SettleInfo.create = function create(properties) {
- return new SettleInfo(properties);
- };
- /**
- * Encodes the specified SettleInfo message. Does not implicitly {@link guandan.SettleInfo.verify|verify} messages.
- * @function encode
- * @memberof guandan.SettleInfo
- * @static
- * @param {guandan.ISettleInfo} message SettleInfo message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- SettleInfo.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int32(message.settleType);
- writer.uint32(/* id 2, wireType 0 =*/16).int32(message.num);
- return writer;
- };
- /**
- * Encodes the specified SettleInfo message, length delimited. Does not implicitly {@link guandan.SettleInfo.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.SettleInfo
- * @static
- * @param {guandan.ISettleInfo} message SettleInfo message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- SettleInfo.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a SettleInfo message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.SettleInfo
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.SettleInfo} SettleInfo
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- SettleInfo.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.SettleInfo();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.settleType = reader.int32();
- break;
- case 2:
- message.num = reader.int32();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("settleType"))
- throw $util.ProtocolError("missing required 'settleType'", { instance: message });
- if (!message.hasOwnProperty("num"))
- throw $util.ProtocolError("missing required 'num'", { instance: message });
- return message;
- };
- /**
- * Decodes a SettleInfo message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.SettleInfo
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.SettleInfo} SettleInfo
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- SettleInfo.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a SettleInfo message.
- * @function verify
- * @memberof guandan.SettleInfo
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- SettleInfo.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.settleType))
- return "settleType: integer expected";
- if (!$util.isInteger(message.num))
- return "num: integer expected";
- return null;
- };
- /**
- * Creates a SettleInfo message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.SettleInfo
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.SettleInfo} SettleInfo
- */
- SettleInfo.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.SettleInfo)
- return object;
- var message = new $root.guandan.SettleInfo();
- if (object.settleType != null)
- message.settleType = object.settleType | 0;
- if (object.num != null)
- message.num = object.num | 0;
- return message;
- };
- /**
- * Creates a plain object from a SettleInfo message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.SettleInfo
- * @static
- * @param {guandan.SettleInfo} message SettleInfo
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- SettleInfo.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults) {
- object.settleType = 0;
- object.num = 0;
- }
- if (message.settleType != null && message.hasOwnProperty("settleType"))
- object.settleType = message.settleType;
- if (message.num != null && message.hasOwnProperty("num"))
- object.num = message.num;
- return object;
- };
- /**
- * Converts this SettleInfo to JSON.
- * @function toJSON
- * @memberof guandan.SettleInfo
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- SettleInfo.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return SettleInfo;
- })();
- guandan.TotalSettlePlayerInfo = (function() {
- /**
- * Properties of a TotalSettlePlayerInfo.
- * @memberof guandan
- * @interface ITotalSettlePlayerInfo
- * @property {Array.<guandan.ISettleInfo>|null} [settleInfoList] TotalSettlePlayerInfo settleInfoList
- * @property {number} totalscore TotalSettlePlayerInfo totalscore
- * @property {number|Long} playerId TotalSettlePlayerInfo playerId
- * @property {number} winRoundNum TotalSettlePlayerInfo winRoundNum
- */
- /**
- * Constructs a new TotalSettlePlayerInfo.
- * @memberof guandan
- * @classdesc Represents a TotalSettlePlayerInfo.
- * @implements ITotalSettlePlayerInfo
- * @constructor
- * @param {guandan.ITotalSettlePlayerInfo=} [properties] Properties to set
- */
- function TotalSettlePlayerInfo(properties) {
- this.settleInfoList = [];
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * TotalSettlePlayerInfo settleInfoList.
- * @member {Array.<guandan.ISettleInfo>} settleInfoList
- * @memberof guandan.TotalSettlePlayerInfo
- * @instance
- */
- TotalSettlePlayerInfo.prototype.settleInfoList = $util.emptyArray;
- /**
- * TotalSettlePlayerInfo totalscore.
- * @member {number} totalscore
- * @memberof guandan.TotalSettlePlayerInfo
- * @instance
- */
- TotalSettlePlayerInfo.prototype.totalscore = 0;
- /**
- * TotalSettlePlayerInfo playerId.
- * @member {number|Long} playerId
- * @memberof guandan.TotalSettlePlayerInfo
- * @instance
- */
- TotalSettlePlayerInfo.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * TotalSettlePlayerInfo winRoundNum.
- * @member {number} winRoundNum
- * @memberof guandan.TotalSettlePlayerInfo
- * @instance
- */
- TotalSettlePlayerInfo.prototype.winRoundNum = 0;
- /**
- * Creates a new TotalSettlePlayerInfo instance using the specified properties.
- * @function create
- * @memberof guandan.TotalSettlePlayerInfo
- * @static
- * @param {guandan.ITotalSettlePlayerInfo=} [properties] Properties to set
- * @returns {guandan.TotalSettlePlayerInfo} TotalSettlePlayerInfo instance
- */
- TotalSettlePlayerInfo.create = function create(properties) {
- return new TotalSettlePlayerInfo(properties);
- };
- /**
- * Encodes the specified TotalSettlePlayerInfo message. Does not implicitly {@link guandan.TotalSettlePlayerInfo.verify|verify} messages.
- * @function encode
- * @memberof guandan.TotalSettlePlayerInfo
- * @static
- * @param {guandan.ITotalSettlePlayerInfo} message TotalSettlePlayerInfo message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- TotalSettlePlayerInfo.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.settleInfoList != null && message.settleInfoList.length)
- for (var i = 0; i < message.settleInfoList.length; ++i)
- $root.guandan.SettleInfo.encode(message.settleInfoList[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
- writer.uint32(/* id 2, wireType 0 =*/16).int32(message.totalscore);
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.playerId);
- writer.uint32(/* id 4, wireType 0 =*/32).int32(message.winRoundNum);
- return writer;
- };
- /**
- * Encodes the specified TotalSettlePlayerInfo message, length delimited. Does not implicitly {@link guandan.TotalSettlePlayerInfo.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.TotalSettlePlayerInfo
- * @static
- * @param {guandan.ITotalSettlePlayerInfo} message TotalSettlePlayerInfo message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- TotalSettlePlayerInfo.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a TotalSettlePlayerInfo message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.TotalSettlePlayerInfo
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.TotalSettlePlayerInfo} TotalSettlePlayerInfo
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- TotalSettlePlayerInfo.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.TotalSettlePlayerInfo();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (!(message.settleInfoList && message.settleInfoList.length))
- message.settleInfoList = [];
- message.settleInfoList.push($root.guandan.SettleInfo.decode(reader, reader.uint32()));
- break;
- case 2:
- message.totalscore = reader.int32();
- break;
- case 3:
- message.playerId = reader.int64();
- break;
- case 4:
- message.winRoundNum = reader.int32();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("totalscore"))
- throw $util.ProtocolError("missing required 'totalscore'", { instance: message });
- if (!message.hasOwnProperty("playerId"))
- throw $util.ProtocolError("missing required 'playerId'", { instance: message });
- if (!message.hasOwnProperty("winRoundNum"))
- throw $util.ProtocolError("missing required 'winRoundNum'", { instance: message });
- return message;
- };
- /**
- * Decodes a TotalSettlePlayerInfo message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.TotalSettlePlayerInfo
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.TotalSettlePlayerInfo} TotalSettlePlayerInfo
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- TotalSettlePlayerInfo.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a TotalSettlePlayerInfo message.
- * @function verify
- * @memberof guandan.TotalSettlePlayerInfo
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- TotalSettlePlayerInfo.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.settleInfoList != null && message.hasOwnProperty("settleInfoList")) {
- if (!Array.isArray(message.settleInfoList))
- return "settleInfoList: array expected";
- for (var i = 0; i < message.settleInfoList.length; ++i) {
- var error = $root.guandan.SettleInfo.verify(message.settleInfoList[i]);
- if (error)
- return "settleInfoList." + error;
- }
- }
- if (!$util.isInteger(message.totalscore))
- return "totalscore: integer expected";
- if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
- return "playerId: integer|Long expected";
- if (!$util.isInteger(message.winRoundNum))
- return "winRoundNum: integer expected";
- return null;
- };
- /**
- * Creates a TotalSettlePlayerInfo message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.TotalSettlePlayerInfo
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.TotalSettlePlayerInfo} TotalSettlePlayerInfo
- */
- TotalSettlePlayerInfo.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.TotalSettlePlayerInfo)
- return object;
- var message = new $root.guandan.TotalSettlePlayerInfo();
- if (object.settleInfoList) {
- if (!Array.isArray(object.settleInfoList))
- throw TypeError(".guandan.TotalSettlePlayerInfo.settleInfoList: array expected");
- message.settleInfoList = [];
- for (var i = 0; i < object.settleInfoList.length; ++i) {
- if (typeof object.settleInfoList[i] !== "object")
- throw TypeError(".guandan.TotalSettlePlayerInfo.settleInfoList: object expected");
- message.settleInfoList[i] = $root.guandan.SettleInfo.fromObject(object.settleInfoList[i]);
- }
- }
- if (object.totalscore != null)
- message.totalscore = object.totalscore | 0;
- if (object.playerId != null)
- if ($util.Long)
- (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
- else if (typeof object.playerId === "string")
- message.playerId = parseInt(object.playerId, 10);
- else if (typeof object.playerId === "number")
- message.playerId = object.playerId;
- else if (typeof object.playerId === "object")
- message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
- if (object.winRoundNum != null)
- message.winRoundNum = object.winRoundNum | 0;
- return message;
- };
- /**
- * Creates a plain object from a TotalSettlePlayerInfo message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.TotalSettlePlayerInfo
- * @static
- * @param {guandan.TotalSettlePlayerInfo} message TotalSettlePlayerInfo
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- TotalSettlePlayerInfo.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.arrays || options.defaults)
- object.settleInfoList = [];
- if (options.defaults) {
- object.totalscore = 0;
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.playerId = options.longs === String ? "0" : 0;
- object.winRoundNum = 0;
- }
- if (message.settleInfoList && message.settleInfoList.length) {
- object.settleInfoList = [];
- for (var j = 0; j < message.settleInfoList.length; ++j)
- object.settleInfoList[j] = $root.guandan.SettleInfo.toObject(message.settleInfoList[j], options);
- }
- if (message.totalscore != null && message.hasOwnProperty("totalscore"))
- object.totalscore = message.totalscore;
- if (message.playerId != null && message.hasOwnProperty("playerId"))
- if (typeof message.playerId === "number")
- object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
- else
- 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;
- if (message.winRoundNum != null && message.hasOwnProperty("winRoundNum"))
- object.winRoundNum = message.winRoundNum;
- return object;
- };
- /**
- * Converts this TotalSettlePlayerInfo to JSON.
- * @function toJSON
- * @memberof guandan.TotalSettlePlayerInfo
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- TotalSettlePlayerInfo.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return TotalSettlePlayerInfo;
- })();
- guandan.GCTotalSettle = (function() {
- /**
- * Properties of a GCTotalSettle.
- * @memberof guandan
- * @interface IGCTotalSettle
- * @property {Array.<guandan.ITotalSettlePlayerInfo>|null} [totalSettlePlayerInfoList] GCTotalSettle totalSettlePlayerInfoList
- */
- /**
- * Constructs a new GCTotalSettle.
- * @memberof guandan
- * @classdesc Represents a GCTotalSettle.
- * @implements IGCTotalSettle
- * @constructor
- * @param {guandan.IGCTotalSettle=} [properties] Properties to set
- */
- function GCTotalSettle(properties) {
- this.totalSettlePlayerInfoList = [];
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCTotalSettle totalSettlePlayerInfoList.
- * @member {Array.<guandan.ITotalSettlePlayerInfo>} totalSettlePlayerInfoList
- * @memberof guandan.GCTotalSettle
- * @instance
- */
- GCTotalSettle.prototype.totalSettlePlayerInfoList = $util.emptyArray;
- /**
- * Creates a new GCTotalSettle instance using the specified properties.
- * @function create
- * @memberof guandan.GCTotalSettle
- * @static
- * @param {guandan.IGCTotalSettle=} [properties] Properties to set
- * @returns {guandan.GCTotalSettle} GCTotalSettle instance
- */
- GCTotalSettle.create = function create(properties) {
- return new GCTotalSettle(properties);
- };
- /**
- * Encodes the specified GCTotalSettle message. Does not implicitly {@link guandan.GCTotalSettle.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCTotalSettle
- * @static
- * @param {guandan.IGCTotalSettle} message GCTotalSettle message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCTotalSettle.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.totalSettlePlayerInfoList != null && message.totalSettlePlayerInfoList.length)
- for (var i = 0; i < message.totalSettlePlayerInfoList.length; ++i)
- $root.guandan.TotalSettlePlayerInfo.encode(message.totalSettlePlayerInfoList[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified GCTotalSettle message, length delimited. Does not implicitly {@link guandan.GCTotalSettle.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCTotalSettle
- * @static
- * @param {guandan.IGCTotalSettle} message GCTotalSettle message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCTotalSettle.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCTotalSettle message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCTotalSettle
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCTotalSettle} GCTotalSettle
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCTotalSettle.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCTotalSettle();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (!(message.totalSettlePlayerInfoList && message.totalSettlePlayerInfoList.length))
- message.totalSettlePlayerInfoList = [];
- message.totalSettlePlayerInfoList.push($root.guandan.TotalSettlePlayerInfo.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a GCTotalSettle message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCTotalSettle
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCTotalSettle} GCTotalSettle
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCTotalSettle.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCTotalSettle message.
- * @function verify
- * @memberof guandan.GCTotalSettle
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCTotalSettle.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.totalSettlePlayerInfoList != null && message.hasOwnProperty("totalSettlePlayerInfoList")) {
- if (!Array.isArray(message.totalSettlePlayerInfoList))
- return "totalSettlePlayerInfoList: array expected";
- for (var i = 0; i < message.totalSettlePlayerInfoList.length; ++i) {
- var error = $root.guandan.TotalSettlePlayerInfo.verify(message.totalSettlePlayerInfoList[i]);
- if (error)
- return "totalSettlePlayerInfoList." + error;
- }
- }
- return null;
- };
- /**
- * Creates a GCTotalSettle message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCTotalSettle
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCTotalSettle} GCTotalSettle
- */
- GCTotalSettle.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCTotalSettle)
- return object;
- var message = new $root.guandan.GCTotalSettle();
- if (object.totalSettlePlayerInfoList) {
- if (!Array.isArray(object.totalSettlePlayerInfoList))
- throw TypeError(".guandan.GCTotalSettle.totalSettlePlayerInfoList: array expected");
- message.totalSettlePlayerInfoList = [];
- for (var i = 0; i < object.totalSettlePlayerInfoList.length; ++i) {
- if (typeof object.totalSettlePlayerInfoList[i] !== "object")
- throw TypeError(".guandan.GCTotalSettle.totalSettlePlayerInfoList: object expected");
- message.totalSettlePlayerInfoList[i] = $root.guandan.TotalSettlePlayerInfo.fromObject(object.totalSettlePlayerInfoList[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from a GCTotalSettle message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCTotalSettle
- * @static
- * @param {guandan.GCTotalSettle} message GCTotalSettle
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCTotalSettle.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.arrays || options.defaults)
- object.totalSettlePlayerInfoList = [];
- if (message.totalSettlePlayerInfoList && message.totalSettlePlayerInfoList.length) {
- object.totalSettlePlayerInfoList = [];
- for (var j = 0; j < message.totalSettlePlayerInfoList.length; ++j)
- object.totalSettlePlayerInfoList[j] = $root.guandan.TotalSettlePlayerInfo.toObject(message.totalSettlePlayerInfoList[j], options);
- }
- return object;
- };
- /**
- * Converts this GCTotalSettle to JSON.
- * @function toJSON
- * @memberof guandan.GCTotalSettle
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCTotalSettle.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCTotalSettle;
- })();
- guandan.GCKaiJin = (function() {
- /**
- * Properties of a GCKaiJin.
- * @memberof guandan
- * @interface IGCKaiJin
- * @property {Array.<number>|null} [cards] GCKaiJin cards
- * @property {number} posGroup GCKaiJin posGroup
- */
- /**
- * Constructs a new GCKaiJin.
- * @memberof guandan
- * @classdesc Represents a GCKaiJin.
- * @implements IGCKaiJin
- * @constructor
- * @param {guandan.IGCKaiJin=} [properties] Properties to set
- */
- function GCKaiJin(properties) {
- this.cards = [];
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCKaiJin cards.
- * @member {Array.<number>} cards
- * @memberof guandan.GCKaiJin
- * @instance
- */
- GCKaiJin.prototype.cards = $util.emptyArray;
- /**
- * GCKaiJin posGroup.
- * @member {number} posGroup
- * @memberof guandan.GCKaiJin
- * @instance
- */
- GCKaiJin.prototype.posGroup = 0;
- /**
- * Creates a new GCKaiJin instance using the specified properties.
- * @function create
- * @memberof guandan.GCKaiJin
- * @static
- * @param {guandan.IGCKaiJin=} [properties] Properties to set
- * @returns {guandan.GCKaiJin} GCKaiJin instance
- */
- GCKaiJin.create = function create(properties) {
- return new GCKaiJin(properties);
- };
- /**
- * Encodes the specified GCKaiJin message. Does not implicitly {@link guandan.GCKaiJin.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCKaiJin
- * @static
- * @param {guandan.IGCKaiJin} message GCKaiJin message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCKaiJin.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.cards != null && message.cards.length)
- for (var i = 0; i < message.cards.length; ++i)
- writer.uint32(/* id 1, wireType 0 =*/8).int32(message.cards[i]);
- writer.uint32(/* id 2, wireType 0 =*/16).int32(message.posGroup);
- return writer;
- };
- /**
- * Encodes the specified GCKaiJin message, length delimited. Does not implicitly {@link guandan.GCKaiJin.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCKaiJin
- * @static
- * @param {guandan.IGCKaiJin} message GCKaiJin message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCKaiJin.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCKaiJin message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCKaiJin
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCKaiJin} GCKaiJin
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCKaiJin.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCKaiJin();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (!(message.cards && message.cards.length))
- message.cards = [];
- if ((tag & 7) === 2) {
- var end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.cards.push(reader.int32());
- } else
- message.cards.push(reader.int32());
- break;
- case 2:
- message.posGroup = reader.int32();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("posGroup"))
- throw $util.ProtocolError("missing required 'posGroup'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCKaiJin message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCKaiJin
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCKaiJin} GCKaiJin
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCKaiJin.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCKaiJin message.
- * @function verify
- * @memberof guandan.GCKaiJin
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCKaiJin.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.cards != null && message.hasOwnProperty("cards")) {
- if (!Array.isArray(message.cards))
- return "cards: array expected";
- for (var i = 0; i < message.cards.length; ++i)
- if (!$util.isInteger(message.cards[i]))
- return "cards: integer[] expected";
- }
- if (!$util.isInteger(message.posGroup))
- return "posGroup: integer expected";
- return null;
- };
- /**
- * Creates a GCKaiJin message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCKaiJin
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCKaiJin} GCKaiJin
- */
- GCKaiJin.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCKaiJin)
- return object;
- var message = new $root.guandan.GCKaiJin();
- if (object.cards) {
- if (!Array.isArray(object.cards))
- throw TypeError(".guandan.GCKaiJin.cards: array expected");
- message.cards = [];
- for (var i = 0; i < object.cards.length; ++i)
- message.cards[i] = object.cards[i] | 0;
- }
- if (object.posGroup != null)
- message.posGroup = object.posGroup | 0;
- return message;
- };
- /**
- * Creates a plain object from a GCKaiJin message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCKaiJin
- * @static
- * @param {guandan.GCKaiJin} message GCKaiJin
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCKaiJin.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.arrays || options.defaults)
- object.cards = [];
- if (options.defaults)
- object.posGroup = 0;
- if (message.cards && message.cards.length) {
- object.cards = [];
- for (var j = 0; j < message.cards.length; ++j)
- object.cards[j] = message.cards[j];
- }
- if (message.posGroup != null && message.hasOwnProperty("posGroup"))
- object.posGroup = message.posGroup;
- return object;
- };
- /**
- * Converts this GCKaiJin to JSON.
- * @function toJSON
- * @memberof guandan.GCKaiJin
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCKaiJin.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCKaiJin;
- })();
- guandan.CGDisconnectPlayer = (function() {
- /**
- * Properties of a CGDisconnectPlayer.
- * @memberof guandan
- * @interface ICGDisconnectPlayer
- * @property {number|Long} playerId CGDisconnectPlayer playerId
- * @property {number|Long} roomId CGDisconnectPlayer roomId
- */
- /**
- * Constructs a new CGDisconnectPlayer.
- * @memberof guandan
- * @classdesc Represents a CGDisconnectPlayer.
- * @implements ICGDisconnectPlayer
- * @constructor
- * @param {guandan.ICGDisconnectPlayer=} [properties] Properties to set
- */
- function CGDisconnectPlayer(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * CGDisconnectPlayer playerId.
- * @member {number|Long} playerId
- * @memberof guandan.CGDisconnectPlayer
- * @instance
- */
- CGDisconnectPlayer.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * CGDisconnectPlayer roomId.
- * @member {number|Long} roomId
- * @memberof guandan.CGDisconnectPlayer
- * @instance
- */
- CGDisconnectPlayer.prototype.roomId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new CGDisconnectPlayer instance using the specified properties.
- * @function create
- * @memberof guandan.CGDisconnectPlayer
- * @static
- * @param {guandan.ICGDisconnectPlayer=} [properties] Properties to set
- * @returns {guandan.CGDisconnectPlayer} CGDisconnectPlayer instance
- */
- CGDisconnectPlayer.create = function create(properties) {
- return new CGDisconnectPlayer(properties);
- };
- /**
- * Encodes the specified CGDisconnectPlayer message. Does not implicitly {@link guandan.CGDisconnectPlayer.verify|verify} messages.
- * @function encode
- * @memberof guandan.CGDisconnectPlayer
- * @static
- * @param {guandan.ICGDisconnectPlayer} message CGDisconnectPlayer message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- CGDisconnectPlayer.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
- writer.uint32(/* id 2, wireType 0 =*/16).int64(message.roomId);
- return writer;
- };
- /**
- * Encodes the specified CGDisconnectPlayer message, length delimited. Does not implicitly {@link guandan.CGDisconnectPlayer.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.CGDisconnectPlayer
- * @static
- * @param {guandan.ICGDisconnectPlayer} message CGDisconnectPlayer message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- CGDisconnectPlayer.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a CGDisconnectPlayer message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.CGDisconnectPlayer
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.CGDisconnectPlayer} CGDisconnectPlayer
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- CGDisconnectPlayer.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.CGDisconnectPlayer();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.playerId = reader.int64();
- break;
- case 2:
- message.roomId = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("playerId"))
- throw $util.ProtocolError("missing required 'playerId'", { instance: message });
- if (!message.hasOwnProperty("roomId"))
- throw $util.ProtocolError("missing required 'roomId'", { instance: message });
- return message;
- };
- /**
- * Decodes a CGDisconnectPlayer message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.CGDisconnectPlayer
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.CGDisconnectPlayer} CGDisconnectPlayer
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- CGDisconnectPlayer.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a CGDisconnectPlayer message.
- * @function verify
- * @memberof guandan.CGDisconnectPlayer
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- CGDisconnectPlayer.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
- return "playerId: integer|Long expected";
- if (!$util.isInteger(message.roomId) && !(message.roomId && $util.isInteger(message.roomId.low) && $util.isInteger(message.roomId.high)))
- return "roomId: integer|Long expected";
- return null;
- };
- /**
- * Creates a CGDisconnectPlayer message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.CGDisconnectPlayer
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.CGDisconnectPlayer} CGDisconnectPlayer
- */
- CGDisconnectPlayer.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.CGDisconnectPlayer)
- return object;
- var message = new $root.guandan.CGDisconnectPlayer();
- if (object.playerId != null)
- if ($util.Long)
- (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
- else if (typeof object.playerId === "string")
- message.playerId = parseInt(object.playerId, 10);
- else if (typeof object.playerId === "number")
- message.playerId = object.playerId;
- else if (typeof object.playerId === "object")
- message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
- if (object.roomId != null)
- if ($util.Long)
- (message.roomId = $util.Long.fromValue(object.roomId)).unsigned = false;
- else if (typeof object.roomId === "string")
- message.roomId = parseInt(object.roomId, 10);
- else if (typeof object.roomId === "number")
- message.roomId = object.roomId;
- else if (typeof object.roomId === "object")
- message.roomId = new $util.LongBits(object.roomId.low >>> 0, object.roomId.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a CGDisconnectPlayer message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.CGDisconnectPlayer
- * @static
- * @param {guandan.CGDisconnectPlayer} message CGDisconnectPlayer
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- CGDisconnectPlayer.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults) {
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.playerId = options.longs === String ? "0" : 0;
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.roomId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.roomId = options.longs === String ? "0" : 0;
- }
- if (message.playerId != null && message.hasOwnProperty("playerId"))
- if (typeof message.playerId === "number")
- object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
- else
- 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;
- if (message.roomId != null && message.hasOwnProperty("roomId"))
- if (typeof message.roomId === "number")
- object.roomId = options.longs === String ? String(message.roomId) : message.roomId;
- else
- 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;
- return object;
- };
- /**
- * Converts this CGDisconnectPlayer to JSON.
- * @function toJSON
- * @memberof guandan.CGDisconnectPlayer
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- CGDisconnectPlayer.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return CGDisconnectPlayer;
- })();
- guandan.GCPlayerTuoGuan = (function() {
- /**
- * Properties of a GCPlayerTuoGuan.
- * @memberof guandan
- * @interface IGCPlayerTuoGuan
- * @property {number|Long} playerId GCPlayerTuoGuan playerId
- */
- /**
- * Constructs a new GCPlayerTuoGuan.
- * @memberof guandan
- * @classdesc Represents a GCPlayerTuoGuan.
- * @implements IGCPlayerTuoGuan
- * @constructor
- * @param {guandan.IGCPlayerTuoGuan=} [properties] Properties to set
- */
- function GCPlayerTuoGuan(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCPlayerTuoGuan playerId.
- * @member {number|Long} playerId
- * @memberof guandan.GCPlayerTuoGuan
- * @instance
- */
- GCPlayerTuoGuan.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new GCPlayerTuoGuan instance using the specified properties.
- * @function create
- * @memberof guandan.GCPlayerTuoGuan
- * @static
- * @param {guandan.IGCPlayerTuoGuan=} [properties] Properties to set
- * @returns {guandan.GCPlayerTuoGuan} GCPlayerTuoGuan instance
- */
- GCPlayerTuoGuan.create = function create(properties) {
- return new GCPlayerTuoGuan(properties);
- };
- /**
- * Encodes the specified GCPlayerTuoGuan message. Does not implicitly {@link guandan.GCPlayerTuoGuan.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCPlayerTuoGuan
- * @static
- * @param {guandan.IGCPlayerTuoGuan} message GCPlayerTuoGuan message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCPlayerTuoGuan.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
- return writer;
- };
- /**
- * Encodes the specified GCPlayerTuoGuan message, length delimited. Does not implicitly {@link guandan.GCPlayerTuoGuan.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCPlayerTuoGuan
- * @static
- * @param {guandan.IGCPlayerTuoGuan} message GCPlayerTuoGuan message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCPlayerTuoGuan.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCPlayerTuoGuan message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCPlayerTuoGuan
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCPlayerTuoGuan} GCPlayerTuoGuan
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCPlayerTuoGuan.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCPlayerTuoGuan();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.playerId = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("playerId"))
- throw $util.ProtocolError("missing required 'playerId'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCPlayerTuoGuan message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCPlayerTuoGuan
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCPlayerTuoGuan} GCPlayerTuoGuan
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCPlayerTuoGuan.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCPlayerTuoGuan message.
- * @function verify
- * @memberof guandan.GCPlayerTuoGuan
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCPlayerTuoGuan.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
- return "playerId: integer|Long expected";
- return null;
- };
- /**
- * Creates a GCPlayerTuoGuan message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCPlayerTuoGuan
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCPlayerTuoGuan} GCPlayerTuoGuan
- */
- GCPlayerTuoGuan.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCPlayerTuoGuan)
- return object;
- var message = new $root.guandan.GCPlayerTuoGuan();
- if (object.playerId != null)
- if ($util.Long)
- (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
- else if (typeof object.playerId === "string")
- message.playerId = parseInt(object.playerId, 10);
- else if (typeof object.playerId === "number")
- message.playerId = object.playerId;
- else if (typeof object.playerId === "object")
- message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a GCPlayerTuoGuan message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCPlayerTuoGuan
- * @static
- * @param {guandan.GCPlayerTuoGuan} message GCPlayerTuoGuan
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCPlayerTuoGuan.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults)
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.playerId = options.longs === String ? "0" : 0;
- if (message.playerId != null && message.hasOwnProperty("playerId"))
- if (typeof message.playerId === "number")
- object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
- else
- 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;
- return object;
- };
- /**
- * Converts this GCPlayerTuoGuan to JSON.
- * @function toJSON
- * @memberof guandan.GCPlayerTuoGuan
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCPlayerTuoGuan.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCPlayerTuoGuan;
- })();
- guandan.CGPlayerCancelTuoGuan = (function() {
- /**
- * Properties of a CGPlayerCancelTuoGuan.
- * @memberof guandan
- * @interface ICGPlayerCancelTuoGuan
- */
- /**
- * Constructs a new CGPlayerCancelTuoGuan.
- * @memberof guandan
- * @classdesc Represents a CGPlayerCancelTuoGuan.
- * @implements ICGPlayerCancelTuoGuan
- * @constructor
- * @param {guandan.ICGPlayerCancelTuoGuan=} [properties] Properties to set
- */
- function CGPlayerCancelTuoGuan(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * Creates a new CGPlayerCancelTuoGuan instance using the specified properties.
- * @function create
- * @memberof guandan.CGPlayerCancelTuoGuan
- * @static
- * @param {guandan.ICGPlayerCancelTuoGuan=} [properties] Properties to set
- * @returns {guandan.CGPlayerCancelTuoGuan} CGPlayerCancelTuoGuan instance
- */
- CGPlayerCancelTuoGuan.create = function create(properties) {
- return new CGPlayerCancelTuoGuan(properties);
- };
- /**
- * Encodes the specified CGPlayerCancelTuoGuan message. Does not implicitly {@link guandan.CGPlayerCancelTuoGuan.verify|verify} messages.
- * @function encode
- * @memberof guandan.CGPlayerCancelTuoGuan
- * @static
- * @param {guandan.ICGPlayerCancelTuoGuan} message CGPlayerCancelTuoGuan message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- CGPlayerCancelTuoGuan.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- return writer;
- };
- /**
- * Encodes the specified CGPlayerCancelTuoGuan message, length delimited. Does not implicitly {@link guandan.CGPlayerCancelTuoGuan.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.CGPlayerCancelTuoGuan
- * @static
- * @param {guandan.ICGPlayerCancelTuoGuan} message CGPlayerCancelTuoGuan message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- CGPlayerCancelTuoGuan.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a CGPlayerCancelTuoGuan message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.CGPlayerCancelTuoGuan
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.CGPlayerCancelTuoGuan} CGPlayerCancelTuoGuan
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- CGPlayerCancelTuoGuan.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.CGPlayerCancelTuoGuan();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a CGPlayerCancelTuoGuan message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.CGPlayerCancelTuoGuan
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.CGPlayerCancelTuoGuan} CGPlayerCancelTuoGuan
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- CGPlayerCancelTuoGuan.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a CGPlayerCancelTuoGuan message.
- * @function verify
- * @memberof guandan.CGPlayerCancelTuoGuan
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- CGPlayerCancelTuoGuan.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- return null;
- };
- /**
- * Creates a CGPlayerCancelTuoGuan message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.CGPlayerCancelTuoGuan
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.CGPlayerCancelTuoGuan} CGPlayerCancelTuoGuan
- */
- CGPlayerCancelTuoGuan.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.CGPlayerCancelTuoGuan)
- return object;
- return new $root.guandan.CGPlayerCancelTuoGuan();
- };
- /**
- * Creates a plain object from a CGPlayerCancelTuoGuan message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.CGPlayerCancelTuoGuan
- * @static
- * @param {guandan.CGPlayerCancelTuoGuan} message CGPlayerCancelTuoGuan
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- CGPlayerCancelTuoGuan.toObject = function toObject() {
- return {};
- };
- /**
- * Converts this CGPlayerCancelTuoGuan to JSON.
- * @function toJSON
- * @memberof guandan.CGPlayerCancelTuoGuan
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- CGPlayerCancelTuoGuan.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return CGPlayerCancelTuoGuan;
- })();
- guandan.GCPlayerCancelTuoGuan = (function() {
- /**
- * Properties of a GCPlayerCancelTuoGuan.
- * @memberof guandan
- * @interface IGCPlayerCancelTuoGuan
- * @property {number|Long} playerId GCPlayerCancelTuoGuan playerId
- */
- /**
- * Constructs a new GCPlayerCancelTuoGuan.
- * @memberof guandan
- * @classdesc Represents a GCPlayerCancelTuoGuan.
- * @implements IGCPlayerCancelTuoGuan
- * @constructor
- * @param {guandan.IGCPlayerCancelTuoGuan=} [properties] Properties to set
- */
- function GCPlayerCancelTuoGuan(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCPlayerCancelTuoGuan playerId.
- * @member {number|Long} playerId
- * @memberof guandan.GCPlayerCancelTuoGuan
- * @instance
- */
- GCPlayerCancelTuoGuan.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new GCPlayerCancelTuoGuan instance using the specified properties.
- * @function create
- * @memberof guandan.GCPlayerCancelTuoGuan
- * @static
- * @param {guandan.IGCPlayerCancelTuoGuan=} [properties] Properties to set
- * @returns {guandan.GCPlayerCancelTuoGuan} GCPlayerCancelTuoGuan instance
- */
- GCPlayerCancelTuoGuan.create = function create(properties) {
- return new GCPlayerCancelTuoGuan(properties);
- };
- /**
- * Encodes the specified GCPlayerCancelTuoGuan message. Does not implicitly {@link guandan.GCPlayerCancelTuoGuan.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCPlayerCancelTuoGuan
- * @static
- * @param {guandan.IGCPlayerCancelTuoGuan} message GCPlayerCancelTuoGuan message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCPlayerCancelTuoGuan.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
- return writer;
- };
- /**
- * Encodes the specified GCPlayerCancelTuoGuan message, length delimited. Does not implicitly {@link guandan.GCPlayerCancelTuoGuan.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCPlayerCancelTuoGuan
- * @static
- * @param {guandan.IGCPlayerCancelTuoGuan} message GCPlayerCancelTuoGuan message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCPlayerCancelTuoGuan.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCPlayerCancelTuoGuan message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCPlayerCancelTuoGuan
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCPlayerCancelTuoGuan} GCPlayerCancelTuoGuan
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCPlayerCancelTuoGuan.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCPlayerCancelTuoGuan();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.playerId = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("playerId"))
- throw $util.ProtocolError("missing required 'playerId'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCPlayerCancelTuoGuan message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCPlayerCancelTuoGuan
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCPlayerCancelTuoGuan} GCPlayerCancelTuoGuan
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCPlayerCancelTuoGuan.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCPlayerCancelTuoGuan message.
- * @function verify
- * @memberof guandan.GCPlayerCancelTuoGuan
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCPlayerCancelTuoGuan.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
- return "playerId: integer|Long expected";
- return null;
- };
- /**
- * Creates a GCPlayerCancelTuoGuan message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCPlayerCancelTuoGuan
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCPlayerCancelTuoGuan} GCPlayerCancelTuoGuan
- */
- GCPlayerCancelTuoGuan.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCPlayerCancelTuoGuan)
- return object;
- var message = new $root.guandan.GCPlayerCancelTuoGuan();
- if (object.playerId != null)
- if ($util.Long)
- (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
- else if (typeof object.playerId === "string")
- message.playerId = parseInt(object.playerId, 10);
- else if (typeof object.playerId === "number")
- message.playerId = object.playerId;
- else if (typeof object.playerId === "object")
- message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a GCPlayerCancelTuoGuan message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCPlayerCancelTuoGuan
- * @static
- * @param {guandan.GCPlayerCancelTuoGuan} message GCPlayerCancelTuoGuan
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCPlayerCancelTuoGuan.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults)
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.playerId = options.longs === String ? "0" : 0;
- if (message.playerId != null && message.hasOwnProperty("playerId"))
- if (typeof message.playerId === "number")
- object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
- else
- 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;
- return object;
- };
- /**
- * Converts this GCPlayerCancelTuoGuan to JSON.
- * @function toJSON
- * @memberof guandan.GCPlayerCancelTuoGuan
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCPlayerCancelTuoGuan.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCPlayerCancelTuoGuan;
- })();
- guandan.GCRoomRoundStart = (function() {
- /**
- * Properties of a GCRoomRoundStart.
- * @memberof guandan
- * @interface IGCRoomRoundStart
- * @property {number|null} [currentRound] GCRoomRoundStart currentRound
- */
- /**
- * Constructs a new GCRoomRoundStart.
- * @memberof guandan
- * @classdesc Represents a GCRoomRoundStart.
- * @implements IGCRoomRoundStart
- * @constructor
- * @param {guandan.IGCRoomRoundStart=} [properties] Properties to set
- */
- function GCRoomRoundStart(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCRoomRoundStart currentRound.
- * @member {number} currentRound
- * @memberof guandan.GCRoomRoundStart
- * @instance
- */
- GCRoomRoundStart.prototype.currentRound = 0;
- /**
- * Creates a new GCRoomRoundStart instance using the specified properties.
- * @function create
- * @memberof guandan.GCRoomRoundStart
- * @static
- * @param {guandan.IGCRoomRoundStart=} [properties] Properties to set
- * @returns {guandan.GCRoomRoundStart} GCRoomRoundStart instance
- */
- GCRoomRoundStart.create = function create(properties) {
- return new GCRoomRoundStart(properties);
- };
- /**
- * Encodes the specified GCRoomRoundStart message. Does not implicitly {@link guandan.GCRoomRoundStart.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCRoomRoundStart
- * @static
- * @param {guandan.IGCRoomRoundStart} message GCRoomRoundStart message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCRoomRoundStart.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.currentRound != null && Object.hasOwnProperty.call(message, "currentRound"))
- writer.uint32(/* id 1, wireType 0 =*/8).int32(message.currentRound);
- return writer;
- };
- /**
- * Encodes the specified GCRoomRoundStart message, length delimited. Does not implicitly {@link guandan.GCRoomRoundStart.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCRoomRoundStart
- * @static
- * @param {guandan.IGCRoomRoundStart} message GCRoomRoundStart message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCRoomRoundStart.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCRoomRoundStart message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCRoomRoundStart
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCRoomRoundStart} GCRoomRoundStart
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCRoomRoundStart.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCRoomRoundStart();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.currentRound = reader.int32();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a GCRoomRoundStart message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCRoomRoundStart
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCRoomRoundStart} GCRoomRoundStart
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCRoomRoundStart.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCRoomRoundStart message.
- * @function verify
- * @memberof guandan.GCRoomRoundStart
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCRoomRoundStart.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.currentRound != null && message.hasOwnProperty("currentRound"))
- if (!$util.isInteger(message.currentRound))
- return "currentRound: integer expected";
- return null;
- };
- /**
- * Creates a GCRoomRoundStart message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCRoomRoundStart
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCRoomRoundStart} GCRoomRoundStart
- */
- GCRoomRoundStart.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCRoomRoundStart)
- return object;
- var message = new $root.guandan.GCRoomRoundStart();
- if (object.currentRound != null)
- message.currentRound = object.currentRound | 0;
- return message;
- };
- /**
- * Creates a plain object from a GCRoomRoundStart message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCRoomRoundStart
- * @static
- * @param {guandan.GCRoomRoundStart} message GCRoomRoundStart
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCRoomRoundStart.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults)
- object.currentRound = 0;
- if (message.currentRound != null && message.hasOwnProperty("currentRound"))
- object.currentRound = message.currentRound;
- return object;
- };
- /**
- * Converts this GCRoomRoundStart to JSON.
- * @function toJSON
- * @memberof guandan.GCRoomRoundStart
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCRoomRoundStart.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCRoomRoundStart;
- })();
- guandan.GCPlayerRemainCardBroadcast = (function() {
- /**
- * Properties of a GCPlayerRemainCardBroadcast.
- * @memberof guandan
- * @interface IGCPlayerRemainCardBroadcast
- * @property {number|Long} playerId GCPlayerRemainCardBroadcast playerId
- * @property {number} remainCards GCPlayerRemainCardBroadcast remainCards
- */
- /**
- * Constructs a new GCPlayerRemainCardBroadcast.
- * @memberof guandan
- * @classdesc Represents a GCPlayerRemainCardBroadcast.
- * @implements IGCPlayerRemainCardBroadcast
- * @constructor
- * @param {guandan.IGCPlayerRemainCardBroadcast=} [properties] Properties to set
- */
- function GCPlayerRemainCardBroadcast(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCPlayerRemainCardBroadcast playerId.
- * @member {number|Long} playerId
- * @memberof guandan.GCPlayerRemainCardBroadcast
- * @instance
- */
- GCPlayerRemainCardBroadcast.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * GCPlayerRemainCardBroadcast remainCards.
- * @member {number} remainCards
- * @memberof guandan.GCPlayerRemainCardBroadcast
- * @instance
- */
- GCPlayerRemainCardBroadcast.prototype.remainCards = 0;
- /**
- * Creates a new GCPlayerRemainCardBroadcast instance using the specified properties.
- * @function create
- * @memberof guandan.GCPlayerRemainCardBroadcast
- * @static
- * @param {guandan.IGCPlayerRemainCardBroadcast=} [properties] Properties to set
- * @returns {guandan.GCPlayerRemainCardBroadcast} GCPlayerRemainCardBroadcast instance
- */
- GCPlayerRemainCardBroadcast.create = function create(properties) {
- return new GCPlayerRemainCardBroadcast(properties);
- };
- /**
- * Encodes the specified GCPlayerRemainCardBroadcast message. Does not implicitly {@link guandan.GCPlayerRemainCardBroadcast.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCPlayerRemainCardBroadcast
- * @static
- * @param {guandan.IGCPlayerRemainCardBroadcast} message GCPlayerRemainCardBroadcast message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCPlayerRemainCardBroadcast.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
- writer.uint32(/* id 2, wireType 0 =*/16).int32(message.remainCards);
- return writer;
- };
- /**
- * Encodes the specified GCPlayerRemainCardBroadcast message, length delimited. Does not implicitly {@link guandan.GCPlayerRemainCardBroadcast.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCPlayerRemainCardBroadcast
- * @static
- * @param {guandan.IGCPlayerRemainCardBroadcast} message GCPlayerRemainCardBroadcast message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCPlayerRemainCardBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCPlayerRemainCardBroadcast message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCPlayerRemainCardBroadcast
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCPlayerRemainCardBroadcast} GCPlayerRemainCardBroadcast
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCPlayerRemainCardBroadcast.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCPlayerRemainCardBroadcast();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.playerId = reader.int64();
- break;
- case 2:
- message.remainCards = reader.int32();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("playerId"))
- throw $util.ProtocolError("missing required 'playerId'", { instance: message });
- if (!message.hasOwnProperty("remainCards"))
- throw $util.ProtocolError("missing required 'remainCards'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCPlayerRemainCardBroadcast message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCPlayerRemainCardBroadcast
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCPlayerRemainCardBroadcast} GCPlayerRemainCardBroadcast
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCPlayerRemainCardBroadcast.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCPlayerRemainCardBroadcast message.
- * @function verify
- * @memberof guandan.GCPlayerRemainCardBroadcast
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCPlayerRemainCardBroadcast.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
- return "playerId: integer|Long expected";
- if (!$util.isInteger(message.remainCards))
- return "remainCards: integer expected";
- return null;
- };
- /**
- * Creates a GCPlayerRemainCardBroadcast message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCPlayerRemainCardBroadcast
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCPlayerRemainCardBroadcast} GCPlayerRemainCardBroadcast
- */
- GCPlayerRemainCardBroadcast.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCPlayerRemainCardBroadcast)
- return object;
- var message = new $root.guandan.GCPlayerRemainCardBroadcast();
- if (object.playerId != null)
- if ($util.Long)
- (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
- else if (typeof object.playerId === "string")
- message.playerId = parseInt(object.playerId, 10);
- else if (typeof object.playerId === "number")
- message.playerId = object.playerId;
- else if (typeof object.playerId === "object")
- message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
- if (object.remainCards != null)
- message.remainCards = object.remainCards | 0;
- return message;
- };
- /**
- * Creates a plain object from a GCPlayerRemainCardBroadcast message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCPlayerRemainCardBroadcast
- * @static
- * @param {guandan.GCPlayerRemainCardBroadcast} message GCPlayerRemainCardBroadcast
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCPlayerRemainCardBroadcast.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults) {
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.playerId = options.longs === String ? "0" : 0;
- object.remainCards = 0;
- }
- if (message.playerId != null && message.hasOwnProperty("playerId"))
- if (typeof message.playerId === "number")
- object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
- else
- 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;
- if (message.remainCards != null && message.hasOwnProperty("remainCards"))
- object.remainCards = message.remainCards;
- return object;
- };
- /**
- * Converts this GCPlayerRemainCardBroadcast to JSON.
- * @function toJSON
- * @memberof guandan.GCPlayerRemainCardBroadcast
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCPlayerRemainCardBroadcast.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCPlayerRemainCardBroadcast;
- })();
- guandan.GCPlayerDoubleBroadcast = (function() {
- /**
- * Properties of a GCPlayerDoubleBroadcast.
- * @memberof guandan
- * @interface IGCPlayerDoubleBroadcast
- * @property {number|Long} playerId GCPlayerDoubleBroadcast playerId
- * @property {boolean} isDouble GCPlayerDoubleBroadcast isDouble
- */
- /**
- * Constructs a new GCPlayerDoubleBroadcast.
- * @memberof guandan
- * @classdesc Represents a GCPlayerDoubleBroadcast.
- * @implements IGCPlayerDoubleBroadcast
- * @constructor
- * @param {guandan.IGCPlayerDoubleBroadcast=} [properties] Properties to set
- */
- function GCPlayerDoubleBroadcast(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCPlayerDoubleBroadcast playerId.
- * @member {number|Long} playerId
- * @memberof guandan.GCPlayerDoubleBroadcast
- * @instance
- */
- GCPlayerDoubleBroadcast.prototype.playerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * GCPlayerDoubleBroadcast isDouble.
- * @member {boolean} isDouble
- * @memberof guandan.GCPlayerDoubleBroadcast
- * @instance
- */
- GCPlayerDoubleBroadcast.prototype.isDouble = false;
- /**
- * Creates a new GCPlayerDoubleBroadcast instance using the specified properties.
- * @function create
- * @memberof guandan.GCPlayerDoubleBroadcast
- * @static
- * @param {guandan.IGCPlayerDoubleBroadcast=} [properties] Properties to set
- * @returns {guandan.GCPlayerDoubleBroadcast} GCPlayerDoubleBroadcast instance
- */
- GCPlayerDoubleBroadcast.create = function create(properties) {
- return new GCPlayerDoubleBroadcast(properties);
- };
- /**
- * Encodes the specified GCPlayerDoubleBroadcast message. Does not implicitly {@link guandan.GCPlayerDoubleBroadcast.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCPlayerDoubleBroadcast
- * @static
- * @param {guandan.IGCPlayerDoubleBroadcast} message GCPlayerDoubleBroadcast message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCPlayerDoubleBroadcast.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerId);
- writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isDouble);
- return writer;
- };
- /**
- * Encodes the specified GCPlayerDoubleBroadcast message, length delimited. Does not implicitly {@link guandan.GCPlayerDoubleBroadcast.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCPlayerDoubleBroadcast
- * @static
- * @param {guandan.IGCPlayerDoubleBroadcast} message GCPlayerDoubleBroadcast message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCPlayerDoubleBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCPlayerDoubleBroadcast message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCPlayerDoubleBroadcast
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCPlayerDoubleBroadcast} GCPlayerDoubleBroadcast
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCPlayerDoubleBroadcast.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCPlayerDoubleBroadcast();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.playerId = reader.int64();
- break;
- case 2:
- message.isDouble = reader.bool();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("playerId"))
- throw $util.ProtocolError("missing required 'playerId'", { instance: message });
- if (!message.hasOwnProperty("isDouble"))
- throw $util.ProtocolError("missing required 'isDouble'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCPlayerDoubleBroadcast message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCPlayerDoubleBroadcast
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCPlayerDoubleBroadcast} GCPlayerDoubleBroadcast
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCPlayerDoubleBroadcast.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCPlayerDoubleBroadcast message.
- * @function verify
- * @memberof guandan.GCPlayerDoubleBroadcast
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCPlayerDoubleBroadcast.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.playerId) && !(message.playerId && $util.isInteger(message.playerId.low) && $util.isInteger(message.playerId.high)))
- return "playerId: integer|Long expected";
- if (typeof message.isDouble !== "boolean")
- return "isDouble: boolean expected";
- return null;
- };
- /**
- * Creates a GCPlayerDoubleBroadcast message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCPlayerDoubleBroadcast
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCPlayerDoubleBroadcast} GCPlayerDoubleBroadcast
- */
- GCPlayerDoubleBroadcast.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCPlayerDoubleBroadcast)
- return object;
- var message = new $root.guandan.GCPlayerDoubleBroadcast();
- if (object.playerId != null)
- if ($util.Long)
- (message.playerId = $util.Long.fromValue(object.playerId)).unsigned = false;
- else if (typeof object.playerId === "string")
- message.playerId = parseInt(object.playerId, 10);
- else if (typeof object.playerId === "number")
- message.playerId = object.playerId;
- else if (typeof object.playerId === "object")
- message.playerId = new $util.LongBits(object.playerId.low >>> 0, object.playerId.high >>> 0).toNumber();
- if (object.isDouble != null)
- message.isDouble = Boolean(object.isDouble);
- return message;
- };
- /**
- * Creates a plain object from a GCPlayerDoubleBroadcast message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCPlayerDoubleBroadcast
- * @static
- * @param {guandan.GCPlayerDoubleBroadcast} message GCPlayerDoubleBroadcast
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCPlayerDoubleBroadcast.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults) {
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.playerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.playerId = options.longs === String ? "0" : 0;
- object.isDouble = false;
- }
- if (message.playerId != null && message.hasOwnProperty("playerId"))
- if (typeof message.playerId === "number")
- object.playerId = options.longs === String ? String(message.playerId) : message.playerId;
- else
- 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;
- if (message.isDouble != null && message.hasOwnProperty("isDouble"))
- object.isDouble = message.isDouble;
- return object;
- };
- /**
- * Converts this GCPlayerDoubleBroadcast to JSON.
- * @function toJSON
- * @memberof guandan.GCPlayerDoubleBroadcast
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCPlayerDoubleBroadcast.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCPlayerDoubleBroadcast;
- })();
- guandan.GCTuanTuanZhuanShowCardBroadcast = (function() {
- /**
- * Properties of a GCTuanTuanZhuanShowCardBroadcast.
- * @memberof guandan
- * @interface IGCTuanTuanZhuanShowCardBroadcast
- * @property {Array.<number|Long>|null} [playerIds] GCTuanTuanZhuanShowCardBroadcast playerIds
- * @property {number} card GCTuanTuanZhuanShowCardBroadcast card
- * @property {Array.<number|Long>|null} [sameGroupPlayerIds] GCTuanTuanZhuanShowCardBroadcast sameGroupPlayerIds
- */
- /**
- * Constructs a new GCTuanTuanZhuanShowCardBroadcast.
- * @memberof guandan
- * @classdesc Represents a GCTuanTuanZhuanShowCardBroadcast.
- * @implements IGCTuanTuanZhuanShowCardBroadcast
- * @constructor
- * @param {guandan.IGCTuanTuanZhuanShowCardBroadcast=} [properties] Properties to set
- */
- function GCTuanTuanZhuanShowCardBroadcast(properties) {
- this.playerIds = [];
- this.sameGroupPlayerIds = [];
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCTuanTuanZhuanShowCardBroadcast playerIds.
- * @member {Array.<number|Long>} playerIds
- * @memberof guandan.GCTuanTuanZhuanShowCardBroadcast
- * @instance
- */
- GCTuanTuanZhuanShowCardBroadcast.prototype.playerIds = $util.emptyArray;
- /**
- * GCTuanTuanZhuanShowCardBroadcast card.
- * @member {number} card
- * @memberof guandan.GCTuanTuanZhuanShowCardBroadcast
- * @instance
- */
- GCTuanTuanZhuanShowCardBroadcast.prototype.card = 0;
- /**
- * GCTuanTuanZhuanShowCardBroadcast sameGroupPlayerIds.
- * @member {Array.<number|Long>} sameGroupPlayerIds
- * @memberof guandan.GCTuanTuanZhuanShowCardBroadcast
- * @instance
- */
- GCTuanTuanZhuanShowCardBroadcast.prototype.sameGroupPlayerIds = $util.emptyArray;
- /**
- * Creates a new GCTuanTuanZhuanShowCardBroadcast instance using the specified properties.
- * @function create
- * @memberof guandan.GCTuanTuanZhuanShowCardBroadcast
- * @static
- * @param {guandan.IGCTuanTuanZhuanShowCardBroadcast=} [properties] Properties to set
- * @returns {guandan.GCTuanTuanZhuanShowCardBroadcast} GCTuanTuanZhuanShowCardBroadcast instance
- */
- GCTuanTuanZhuanShowCardBroadcast.create = function create(properties) {
- return new GCTuanTuanZhuanShowCardBroadcast(properties);
- };
- /**
- * Encodes the specified GCTuanTuanZhuanShowCardBroadcast message. Does not implicitly {@link guandan.GCTuanTuanZhuanShowCardBroadcast.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCTuanTuanZhuanShowCardBroadcast
- * @static
- * @param {guandan.IGCTuanTuanZhuanShowCardBroadcast} message GCTuanTuanZhuanShowCardBroadcast message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCTuanTuanZhuanShowCardBroadcast.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.playerIds != null && message.playerIds.length)
- for (var i = 0; i < message.playerIds.length; ++i)
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerIds[i]);
- writer.uint32(/* id 2, wireType 0 =*/16).int32(message.card);
- if (message.sameGroupPlayerIds != null && message.sameGroupPlayerIds.length)
- for (var i = 0; i < message.sameGroupPlayerIds.length; ++i)
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.sameGroupPlayerIds[i]);
- return writer;
- };
- /**
- * Encodes the specified GCTuanTuanZhuanShowCardBroadcast message, length delimited. Does not implicitly {@link guandan.GCTuanTuanZhuanShowCardBroadcast.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCTuanTuanZhuanShowCardBroadcast
- * @static
- * @param {guandan.IGCTuanTuanZhuanShowCardBroadcast} message GCTuanTuanZhuanShowCardBroadcast message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCTuanTuanZhuanShowCardBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCTuanTuanZhuanShowCardBroadcast message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCTuanTuanZhuanShowCardBroadcast
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCTuanTuanZhuanShowCardBroadcast} GCTuanTuanZhuanShowCardBroadcast
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCTuanTuanZhuanShowCardBroadcast.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCTuanTuanZhuanShowCardBroadcast();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (!(message.playerIds && message.playerIds.length))
- message.playerIds = [];
- if ((tag & 7) === 2) {
- var end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.playerIds.push(reader.int64());
- } else
- message.playerIds.push(reader.int64());
- break;
- case 2:
- message.card = reader.int32();
- break;
- case 3:
- if (!(message.sameGroupPlayerIds && message.sameGroupPlayerIds.length))
- message.sameGroupPlayerIds = [];
- if ((tag & 7) === 2) {
- var end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.sameGroupPlayerIds.push(reader.int64());
- } else
- message.sameGroupPlayerIds.push(reader.int64());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("card"))
- throw $util.ProtocolError("missing required 'card'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCTuanTuanZhuanShowCardBroadcast message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCTuanTuanZhuanShowCardBroadcast
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCTuanTuanZhuanShowCardBroadcast} GCTuanTuanZhuanShowCardBroadcast
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCTuanTuanZhuanShowCardBroadcast.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCTuanTuanZhuanShowCardBroadcast message.
- * @function verify
- * @memberof guandan.GCTuanTuanZhuanShowCardBroadcast
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCTuanTuanZhuanShowCardBroadcast.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.playerIds != null && message.hasOwnProperty("playerIds")) {
- if (!Array.isArray(message.playerIds))
- return "playerIds: array expected";
- for (var i = 0; i < message.playerIds.length; ++i)
- if (!$util.isInteger(message.playerIds[i]) && !(message.playerIds[i] && $util.isInteger(message.playerIds[i].low) && $util.isInteger(message.playerIds[i].high)))
- return "playerIds: integer|Long[] expected";
- }
- if (!$util.isInteger(message.card))
- return "card: integer expected";
- if (message.sameGroupPlayerIds != null && message.hasOwnProperty("sameGroupPlayerIds")) {
- if (!Array.isArray(message.sameGroupPlayerIds))
- return "sameGroupPlayerIds: array expected";
- for (var i = 0; i < message.sameGroupPlayerIds.length; ++i)
- if (!$util.isInteger(message.sameGroupPlayerIds[i]) && !(message.sameGroupPlayerIds[i] && $util.isInteger(message.sameGroupPlayerIds[i].low) && $util.isInteger(message.sameGroupPlayerIds[i].high)))
- return "sameGroupPlayerIds: integer|Long[] expected";
- }
- return null;
- };
- /**
- * Creates a GCTuanTuanZhuanShowCardBroadcast message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCTuanTuanZhuanShowCardBroadcast
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCTuanTuanZhuanShowCardBroadcast} GCTuanTuanZhuanShowCardBroadcast
- */
- GCTuanTuanZhuanShowCardBroadcast.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCTuanTuanZhuanShowCardBroadcast)
- return object;
- var message = new $root.guandan.GCTuanTuanZhuanShowCardBroadcast();
- if (object.playerIds) {
- if (!Array.isArray(object.playerIds))
- throw TypeError(".guandan.GCTuanTuanZhuanShowCardBroadcast.playerIds: array expected");
- message.playerIds = [];
- for (var i = 0; i < object.playerIds.length; ++i)
- if ($util.Long)
- (message.playerIds[i] = $util.Long.fromValue(object.playerIds[i])).unsigned = false;
- else if (typeof object.playerIds[i] === "string")
- message.playerIds[i] = parseInt(object.playerIds[i], 10);
- else if (typeof object.playerIds[i] === "number")
- message.playerIds[i] = object.playerIds[i];
- else if (typeof object.playerIds[i] === "object")
- message.playerIds[i] = new $util.LongBits(object.playerIds[i].low >>> 0, object.playerIds[i].high >>> 0).toNumber();
- }
- if (object.card != null)
- message.card = object.card | 0;
- if (object.sameGroupPlayerIds) {
- if (!Array.isArray(object.sameGroupPlayerIds))
- throw TypeError(".guandan.GCTuanTuanZhuanShowCardBroadcast.sameGroupPlayerIds: array expected");
- message.sameGroupPlayerIds = [];
- for (var i = 0; i < object.sameGroupPlayerIds.length; ++i)
- if ($util.Long)
- (message.sameGroupPlayerIds[i] = $util.Long.fromValue(object.sameGroupPlayerIds[i])).unsigned = false;
- else if (typeof object.sameGroupPlayerIds[i] === "string")
- message.sameGroupPlayerIds[i] = parseInt(object.sameGroupPlayerIds[i], 10);
- else if (typeof object.sameGroupPlayerIds[i] === "number")
- message.sameGroupPlayerIds[i] = object.sameGroupPlayerIds[i];
- else if (typeof object.sameGroupPlayerIds[i] === "object")
- message.sameGroupPlayerIds[i] = new $util.LongBits(object.sameGroupPlayerIds[i].low >>> 0, object.sameGroupPlayerIds[i].high >>> 0).toNumber();
- }
- return message;
- };
- /**
- * Creates a plain object from a GCTuanTuanZhuanShowCardBroadcast message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCTuanTuanZhuanShowCardBroadcast
- * @static
- * @param {guandan.GCTuanTuanZhuanShowCardBroadcast} message GCTuanTuanZhuanShowCardBroadcast
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCTuanTuanZhuanShowCardBroadcast.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.arrays || options.defaults) {
- object.playerIds = [];
- object.sameGroupPlayerIds = [];
- }
- if (options.defaults)
- object.card = 0;
- if (message.playerIds && message.playerIds.length) {
- object.playerIds = [];
- for (var j = 0; j < message.playerIds.length; ++j)
- if (typeof message.playerIds[j] === "number")
- object.playerIds[j] = options.longs === String ? String(message.playerIds[j]) : message.playerIds[j];
- else
- 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];
- }
- if (message.card != null && message.hasOwnProperty("card"))
- object.card = message.card;
- if (message.sameGroupPlayerIds && message.sameGroupPlayerIds.length) {
- object.sameGroupPlayerIds = [];
- for (var j = 0; j < message.sameGroupPlayerIds.length; ++j)
- if (typeof message.sameGroupPlayerIds[j] === "number")
- object.sameGroupPlayerIds[j] = options.longs === String ? String(message.sameGroupPlayerIds[j]) : message.sameGroupPlayerIds[j];
- else
- 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];
- }
- return object;
- };
- /**
- * Converts this GCTuanTuanZhuanShowCardBroadcast to JSON.
- * @function toJSON
- * @memberof guandan.GCTuanTuanZhuanShowCardBroadcast
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCTuanTuanZhuanShowCardBroadcast.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCTuanTuanZhuanShowCardBroadcast;
- })();
- guandan.GCOppositePlayerCard = (function() {
- /**
- * Properties of a GCOppositePlayerCard.
- * @memberof guandan
- * @interface IGCOppositePlayerCard
- * @property {Array.<number>|null} [card] GCOppositePlayerCard card
- */
- /**
- * Constructs a new GCOppositePlayerCard.
- * @memberof guandan
- * @classdesc Represents a GCOppositePlayerCard.
- * @implements IGCOppositePlayerCard
- * @constructor
- * @param {guandan.IGCOppositePlayerCard=} [properties] Properties to set
- */
- function GCOppositePlayerCard(properties) {
- this.card = [];
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCOppositePlayerCard card.
- * @member {Array.<number>} card
- * @memberof guandan.GCOppositePlayerCard
- * @instance
- */
- GCOppositePlayerCard.prototype.card = $util.emptyArray;
- /**
- * Creates a new GCOppositePlayerCard instance using the specified properties.
- * @function create
- * @memberof guandan.GCOppositePlayerCard
- * @static
- * @param {guandan.IGCOppositePlayerCard=} [properties] Properties to set
- * @returns {guandan.GCOppositePlayerCard} GCOppositePlayerCard instance
- */
- GCOppositePlayerCard.create = function create(properties) {
- return new GCOppositePlayerCard(properties);
- };
- /**
- * Encodes the specified GCOppositePlayerCard message. Does not implicitly {@link guandan.GCOppositePlayerCard.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCOppositePlayerCard
- * @static
- * @param {guandan.IGCOppositePlayerCard} message GCOppositePlayerCard message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCOppositePlayerCard.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.card != null && message.card.length)
- for (var i = 0; i < message.card.length; ++i)
- writer.uint32(/* id 1, wireType 0 =*/8).int32(message.card[i]);
- return writer;
- };
- /**
- * Encodes the specified GCOppositePlayerCard message, length delimited. Does not implicitly {@link guandan.GCOppositePlayerCard.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCOppositePlayerCard
- * @static
- * @param {guandan.IGCOppositePlayerCard} message GCOppositePlayerCard message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCOppositePlayerCard.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCOppositePlayerCard message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCOppositePlayerCard
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCOppositePlayerCard} GCOppositePlayerCard
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCOppositePlayerCard.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCOppositePlayerCard();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (!(message.card && message.card.length))
- message.card = [];
- if ((tag & 7) === 2) {
- var end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.card.push(reader.int32());
- } else
- message.card.push(reader.int32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a GCOppositePlayerCard message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCOppositePlayerCard
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCOppositePlayerCard} GCOppositePlayerCard
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCOppositePlayerCard.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCOppositePlayerCard message.
- * @function verify
- * @memberof guandan.GCOppositePlayerCard
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCOppositePlayerCard.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.card != null && message.hasOwnProperty("card")) {
- if (!Array.isArray(message.card))
- return "card: array expected";
- for (var i = 0; i < message.card.length; ++i)
- if (!$util.isInteger(message.card[i]))
- return "card: integer[] expected";
- }
- return null;
- };
- /**
- * Creates a GCOppositePlayerCard message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCOppositePlayerCard
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCOppositePlayerCard} GCOppositePlayerCard
- */
- GCOppositePlayerCard.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCOppositePlayerCard)
- return object;
- var message = new $root.guandan.GCOppositePlayerCard();
- if (object.card) {
- if (!Array.isArray(object.card))
- throw TypeError(".guandan.GCOppositePlayerCard.card: array expected");
- message.card = [];
- for (var i = 0; i < object.card.length; ++i)
- message.card[i] = object.card[i] | 0;
- }
- return message;
- };
- /**
- * Creates a plain object from a GCOppositePlayerCard message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCOppositePlayerCard
- * @static
- * @param {guandan.GCOppositePlayerCard} message GCOppositePlayerCard
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCOppositePlayerCard.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.arrays || options.defaults)
- object.card = [];
- if (message.card && message.card.length) {
- object.card = [];
- for (var j = 0; j < message.card.length; ++j)
- object.card[j] = message.card[j];
- }
- return object;
- };
- /**
- * Converts this GCOppositePlayerCard to JSON.
- * @function toJSON
- * @memberof guandan.GCOppositePlayerCard
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCOppositePlayerCard.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCOppositePlayerCard;
- })();
- guandan.CGPlayerDouble = (function() {
- /**
- * Properties of a CGPlayerDouble.
- * @memberof guandan
- * @interface ICGPlayerDouble
- * @property {boolean} isDouble CGPlayerDouble isDouble
- */
- /**
- * Constructs a new CGPlayerDouble.
- * @memberof guandan
- * @classdesc Represents a CGPlayerDouble.
- * @implements ICGPlayerDouble
- * @constructor
- * @param {guandan.ICGPlayerDouble=} [properties] Properties to set
- */
- function CGPlayerDouble(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * CGPlayerDouble isDouble.
- * @member {boolean} isDouble
- * @memberof guandan.CGPlayerDouble
- * @instance
- */
- CGPlayerDouble.prototype.isDouble = false;
- /**
- * Creates a new CGPlayerDouble instance using the specified properties.
- * @function create
- * @memberof guandan.CGPlayerDouble
- * @static
- * @param {guandan.ICGPlayerDouble=} [properties] Properties to set
- * @returns {guandan.CGPlayerDouble} CGPlayerDouble instance
- */
- CGPlayerDouble.create = function create(properties) {
- return new CGPlayerDouble(properties);
- };
- /**
- * Encodes the specified CGPlayerDouble message. Does not implicitly {@link guandan.CGPlayerDouble.verify|verify} messages.
- * @function encode
- * @memberof guandan.CGPlayerDouble
- * @static
- * @param {guandan.ICGPlayerDouble} message CGPlayerDouble message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- CGPlayerDouble.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).bool(message.isDouble);
- return writer;
- };
- /**
- * Encodes the specified CGPlayerDouble message, length delimited. Does not implicitly {@link guandan.CGPlayerDouble.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.CGPlayerDouble
- * @static
- * @param {guandan.ICGPlayerDouble} message CGPlayerDouble message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- CGPlayerDouble.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a CGPlayerDouble message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.CGPlayerDouble
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.CGPlayerDouble} CGPlayerDouble
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- CGPlayerDouble.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.CGPlayerDouble();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.isDouble = reader.bool();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("isDouble"))
- throw $util.ProtocolError("missing required 'isDouble'", { instance: message });
- return message;
- };
- /**
- * Decodes a CGPlayerDouble message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.CGPlayerDouble
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.CGPlayerDouble} CGPlayerDouble
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- CGPlayerDouble.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a CGPlayerDouble message.
- * @function verify
- * @memberof guandan.CGPlayerDouble
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- CGPlayerDouble.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (typeof message.isDouble !== "boolean")
- return "isDouble: boolean expected";
- return null;
- };
- /**
- * Creates a CGPlayerDouble message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.CGPlayerDouble
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.CGPlayerDouble} CGPlayerDouble
- */
- CGPlayerDouble.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.CGPlayerDouble)
- return object;
- var message = new $root.guandan.CGPlayerDouble();
- if (object.isDouble != null)
- message.isDouble = Boolean(object.isDouble);
- return message;
- };
- /**
- * Creates a plain object from a CGPlayerDouble message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.CGPlayerDouble
- * @static
- * @param {guandan.CGPlayerDouble} message CGPlayerDouble
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- CGPlayerDouble.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults)
- object.isDouble = false;
- if (message.isDouble != null && message.hasOwnProperty("isDouble"))
- object.isDouble = message.isDouble;
- return object;
- };
- /**
- * Converts this CGPlayerDouble to JSON.
- * @function toJSON
- * @memberof guandan.CGPlayerDouble
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- CGPlayerDouble.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return CGPlayerDouble;
- })();
- guandan.GCWaitPlayerDouble = (function() {
- /**
- * Properties of a GCWaitPlayerDouble.
- * @memberof guandan
- * @interface IGCWaitPlayerDouble
- * @property {number|Long} endTime GCWaitPlayerDouble endTime
- */
- /**
- * Constructs a new GCWaitPlayerDouble.
- * @memberof guandan
- * @classdesc Represents a GCWaitPlayerDouble.
- * @implements IGCWaitPlayerDouble
- * @constructor
- * @param {guandan.IGCWaitPlayerDouble=} [properties] Properties to set
- */
- function GCWaitPlayerDouble(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCWaitPlayerDouble endTime.
- * @member {number|Long} endTime
- * @memberof guandan.GCWaitPlayerDouble
- * @instance
- */
- GCWaitPlayerDouble.prototype.endTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new GCWaitPlayerDouble instance using the specified properties.
- * @function create
- * @memberof guandan.GCWaitPlayerDouble
- * @static
- * @param {guandan.IGCWaitPlayerDouble=} [properties] Properties to set
- * @returns {guandan.GCWaitPlayerDouble} GCWaitPlayerDouble instance
- */
- GCWaitPlayerDouble.create = function create(properties) {
- return new GCWaitPlayerDouble(properties);
- };
- /**
- * Encodes the specified GCWaitPlayerDouble message. Does not implicitly {@link guandan.GCWaitPlayerDouble.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCWaitPlayerDouble
- * @static
- * @param {guandan.IGCWaitPlayerDouble} message GCWaitPlayerDouble message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCWaitPlayerDouble.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.endTime);
- return writer;
- };
- /**
- * Encodes the specified GCWaitPlayerDouble message, length delimited. Does not implicitly {@link guandan.GCWaitPlayerDouble.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCWaitPlayerDouble
- * @static
- * @param {guandan.IGCWaitPlayerDouble} message GCWaitPlayerDouble message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCWaitPlayerDouble.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCWaitPlayerDouble message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCWaitPlayerDouble
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCWaitPlayerDouble} GCWaitPlayerDouble
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCWaitPlayerDouble.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCWaitPlayerDouble();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.endTime = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("endTime"))
- throw $util.ProtocolError("missing required 'endTime'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCWaitPlayerDouble message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCWaitPlayerDouble
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCWaitPlayerDouble} GCWaitPlayerDouble
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCWaitPlayerDouble.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCWaitPlayerDouble message.
- * @function verify
- * @memberof guandan.GCWaitPlayerDouble
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCWaitPlayerDouble.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.endTime) && !(message.endTime && $util.isInteger(message.endTime.low) && $util.isInteger(message.endTime.high)))
- return "endTime: integer|Long expected";
- return null;
- };
- /**
- * Creates a GCWaitPlayerDouble message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCWaitPlayerDouble
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCWaitPlayerDouble} GCWaitPlayerDouble
- */
- GCWaitPlayerDouble.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCWaitPlayerDouble)
- return object;
- var message = new $root.guandan.GCWaitPlayerDouble();
- if (object.endTime != null)
- if ($util.Long)
- (message.endTime = $util.Long.fromValue(object.endTime)).unsigned = false;
- else if (typeof object.endTime === "string")
- message.endTime = parseInt(object.endTime, 10);
- else if (typeof object.endTime === "number")
- message.endTime = object.endTime;
- else if (typeof object.endTime === "object")
- message.endTime = new $util.LongBits(object.endTime.low >>> 0, object.endTime.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a GCWaitPlayerDouble message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCWaitPlayerDouble
- * @static
- * @param {guandan.GCWaitPlayerDouble} message GCWaitPlayerDouble
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCWaitPlayerDouble.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults)
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.endTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.endTime = options.longs === String ? "0" : 0;
- if (message.endTime != null && message.hasOwnProperty("endTime"))
- if (typeof message.endTime === "number")
- object.endTime = options.longs === String ? String(message.endTime) : message.endTime;
- else
- 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;
- return object;
- };
- /**
- * Converts this GCWaitPlayerDouble to JSON.
- * @function toJSON
- * @memberof guandan.GCWaitPlayerDouble
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCWaitPlayerDouble.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCWaitPlayerDouble;
- })();
- guandan.GCBombDoubleBroadcast = (function() {
- /**
- * Properties of a GCBombDoubleBroadcast.
- * @memberof guandan
- * @interface IGCBombDoubleBroadcast
- * @property {number} bombNum GCBombDoubleBroadcast bombNum
- */
- /**
- * Constructs a new GCBombDoubleBroadcast.
- * @memberof guandan
- * @classdesc Represents a GCBombDoubleBroadcast.
- * @implements IGCBombDoubleBroadcast
- * @constructor
- * @param {guandan.IGCBombDoubleBroadcast=} [properties] Properties to set
- */
- function GCBombDoubleBroadcast(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCBombDoubleBroadcast bombNum.
- * @member {number} bombNum
- * @memberof guandan.GCBombDoubleBroadcast
- * @instance
- */
- GCBombDoubleBroadcast.prototype.bombNum = 0;
- /**
- * Creates a new GCBombDoubleBroadcast instance using the specified properties.
- * @function create
- * @memberof guandan.GCBombDoubleBroadcast
- * @static
- * @param {guandan.IGCBombDoubleBroadcast=} [properties] Properties to set
- * @returns {guandan.GCBombDoubleBroadcast} GCBombDoubleBroadcast instance
- */
- GCBombDoubleBroadcast.create = function create(properties) {
- return new GCBombDoubleBroadcast(properties);
- };
- /**
- * Encodes the specified GCBombDoubleBroadcast message. Does not implicitly {@link guandan.GCBombDoubleBroadcast.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCBombDoubleBroadcast
- * @static
- * @param {guandan.IGCBombDoubleBroadcast} message GCBombDoubleBroadcast message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCBombDoubleBroadcast.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int32(message.bombNum);
- return writer;
- };
- /**
- * Encodes the specified GCBombDoubleBroadcast message, length delimited. Does not implicitly {@link guandan.GCBombDoubleBroadcast.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCBombDoubleBroadcast
- * @static
- * @param {guandan.IGCBombDoubleBroadcast} message GCBombDoubleBroadcast message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCBombDoubleBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCBombDoubleBroadcast message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCBombDoubleBroadcast
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCBombDoubleBroadcast} GCBombDoubleBroadcast
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCBombDoubleBroadcast.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCBombDoubleBroadcast();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.bombNum = reader.int32();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("bombNum"))
- throw $util.ProtocolError("missing required 'bombNum'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCBombDoubleBroadcast message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCBombDoubleBroadcast
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCBombDoubleBroadcast} GCBombDoubleBroadcast
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCBombDoubleBroadcast.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCBombDoubleBroadcast message.
- * @function verify
- * @memberof guandan.GCBombDoubleBroadcast
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCBombDoubleBroadcast.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.bombNum))
- return "bombNum: integer expected";
- return null;
- };
- /**
- * Creates a GCBombDoubleBroadcast message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCBombDoubleBroadcast
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCBombDoubleBroadcast} GCBombDoubleBroadcast
- */
- GCBombDoubleBroadcast.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCBombDoubleBroadcast)
- return object;
- var message = new $root.guandan.GCBombDoubleBroadcast();
- if (object.bombNum != null)
- message.bombNum = object.bombNum | 0;
- return message;
- };
- /**
- * Creates a plain object from a GCBombDoubleBroadcast message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCBombDoubleBroadcast
- * @static
- * @param {guandan.GCBombDoubleBroadcast} message GCBombDoubleBroadcast
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCBombDoubleBroadcast.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults)
- object.bombNum = 0;
- if (message.bombNum != null && message.hasOwnProperty("bombNum"))
- object.bombNum = message.bombNum;
- return object;
- };
- /**
- * Converts this GCBombDoubleBroadcast to JSON.
- * @function toJSON
- * @memberof guandan.GCBombDoubleBroadcast
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCBombDoubleBroadcast.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCBombDoubleBroadcast;
- })();
- guandan.GCJieFengBroadcast = (function() {
- /**
- * Properties of a GCJieFengBroadcast.
- * @memberof guandan
- * @interface IGCJieFengBroadcast
- * @property {number|Long} playerID GCJieFengBroadcast playerID
- */
- /**
- * Constructs a new GCJieFengBroadcast.
- * @memberof guandan
- * @classdesc Represents a GCJieFengBroadcast.
- * @implements IGCJieFengBroadcast
- * @constructor
- * @param {guandan.IGCJieFengBroadcast=} [properties] Properties to set
- */
- function GCJieFengBroadcast(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCJieFengBroadcast playerID.
- * @member {number|Long} playerID
- * @memberof guandan.GCJieFengBroadcast
- * @instance
- */
- GCJieFengBroadcast.prototype.playerID = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new GCJieFengBroadcast instance using the specified properties.
- * @function create
- * @memberof guandan.GCJieFengBroadcast
- * @static
- * @param {guandan.IGCJieFengBroadcast=} [properties] Properties to set
- * @returns {guandan.GCJieFengBroadcast} GCJieFengBroadcast instance
- */
- GCJieFengBroadcast.create = function create(properties) {
- return new GCJieFengBroadcast(properties);
- };
- /**
- * Encodes the specified GCJieFengBroadcast message. Does not implicitly {@link guandan.GCJieFengBroadcast.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCJieFengBroadcast
- * @static
- * @param {guandan.IGCJieFengBroadcast} message GCJieFengBroadcast message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCJieFengBroadcast.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerID);
- return writer;
- };
- /**
- * Encodes the specified GCJieFengBroadcast message, length delimited. Does not implicitly {@link guandan.GCJieFengBroadcast.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCJieFengBroadcast
- * @static
- * @param {guandan.IGCJieFengBroadcast} message GCJieFengBroadcast message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCJieFengBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCJieFengBroadcast message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCJieFengBroadcast
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCJieFengBroadcast} GCJieFengBroadcast
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCJieFengBroadcast.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCJieFengBroadcast();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.playerID = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("playerID"))
- throw $util.ProtocolError("missing required 'playerID'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCJieFengBroadcast message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCJieFengBroadcast
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCJieFengBroadcast} GCJieFengBroadcast
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCJieFengBroadcast.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCJieFengBroadcast message.
- * @function verify
- * @memberof guandan.GCJieFengBroadcast
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCJieFengBroadcast.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.playerID) && !(message.playerID && $util.isInteger(message.playerID.low) && $util.isInteger(message.playerID.high)))
- return "playerID: integer|Long expected";
- return null;
- };
- /**
- * Creates a GCJieFengBroadcast message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCJieFengBroadcast
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCJieFengBroadcast} GCJieFengBroadcast
- */
- GCJieFengBroadcast.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCJieFengBroadcast)
- return object;
- var message = new $root.guandan.GCJieFengBroadcast();
- if (object.playerID != null)
- if ($util.Long)
- (message.playerID = $util.Long.fromValue(object.playerID)).unsigned = false;
- else if (typeof object.playerID === "string")
- message.playerID = parseInt(object.playerID, 10);
- else if (typeof object.playerID === "number")
- message.playerID = object.playerID;
- else if (typeof object.playerID === "object")
- message.playerID = new $util.LongBits(object.playerID.low >>> 0, object.playerID.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a GCJieFengBroadcast message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCJieFengBroadcast
- * @static
- * @param {guandan.GCJieFengBroadcast} message GCJieFengBroadcast
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCJieFengBroadcast.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults)
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.playerID = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.playerID = options.longs === String ? "0" : 0;
- if (message.playerID != null && message.hasOwnProperty("playerID"))
- if (typeof message.playerID === "number")
- object.playerID = options.longs === String ? String(message.playerID) : message.playerID;
- else
- 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;
- return object;
- };
- /**
- * Converts this GCJieFengBroadcast to JSON.
- * @function toJSON
- * @memberof guandan.GCJieFengBroadcast
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCJieFengBroadcast.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCJieFengBroadcast;
- })();
- guandan.GCStartArrangeCardBroadcast = (function() {
- /**
- * Properties of a GCStartArrangeCardBroadcast.
- * @memberof guandan
- * @interface IGCStartArrangeCardBroadcast
- * @property {number|Long} endTime GCStartArrangeCardBroadcast endTime
- */
- /**
- * Constructs a new GCStartArrangeCardBroadcast.
- * @memberof guandan
- * @classdesc Represents a GCStartArrangeCardBroadcast.
- * @implements IGCStartArrangeCardBroadcast
- * @constructor
- * @param {guandan.IGCStartArrangeCardBroadcast=} [properties] Properties to set
- */
- function GCStartArrangeCardBroadcast(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCStartArrangeCardBroadcast endTime.
- * @member {number|Long} endTime
- * @memberof guandan.GCStartArrangeCardBroadcast
- * @instance
- */
- GCStartArrangeCardBroadcast.prototype.endTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new GCStartArrangeCardBroadcast instance using the specified properties.
- * @function create
- * @memberof guandan.GCStartArrangeCardBroadcast
- * @static
- * @param {guandan.IGCStartArrangeCardBroadcast=} [properties] Properties to set
- * @returns {guandan.GCStartArrangeCardBroadcast} GCStartArrangeCardBroadcast instance
- */
- GCStartArrangeCardBroadcast.create = function create(properties) {
- return new GCStartArrangeCardBroadcast(properties);
- };
- /**
- * Encodes the specified GCStartArrangeCardBroadcast message. Does not implicitly {@link guandan.GCStartArrangeCardBroadcast.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCStartArrangeCardBroadcast
- * @static
- * @param {guandan.IGCStartArrangeCardBroadcast} message GCStartArrangeCardBroadcast message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCStartArrangeCardBroadcast.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.endTime);
- return writer;
- };
- /**
- * Encodes the specified GCStartArrangeCardBroadcast message, length delimited. Does not implicitly {@link guandan.GCStartArrangeCardBroadcast.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCStartArrangeCardBroadcast
- * @static
- * @param {guandan.IGCStartArrangeCardBroadcast} message GCStartArrangeCardBroadcast message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCStartArrangeCardBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCStartArrangeCardBroadcast message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCStartArrangeCardBroadcast
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCStartArrangeCardBroadcast} GCStartArrangeCardBroadcast
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCStartArrangeCardBroadcast.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCStartArrangeCardBroadcast();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.endTime = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("endTime"))
- throw $util.ProtocolError("missing required 'endTime'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCStartArrangeCardBroadcast message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCStartArrangeCardBroadcast
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCStartArrangeCardBroadcast} GCStartArrangeCardBroadcast
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCStartArrangeCardBroadcast.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCStartArrangeCardBroadcast message.
- * @function verify
- * @memberof guandan.GCStartArrangeCardBroadcast
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCStartArrangeCardBroadcast.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.endTime) && !(message.endTime && $util.isInteger(message.endTime.low) && $util.isInteger(message.endTime.high)))
- return "endTime: integer|Long expected";
- return null;
- };
- /**
- * Creates a GCStartArrangeCardBroadcast message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCStartArrangeCardBroadcast
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCStartArrangeCardBroadcast} GCStartArrangeCardBroadcast
- */
- GCStartArrangeCardBroadcast.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCStartArrangeCardBroadcast)
- return object;
- var message = new $root.guandan.GCStartArrangeCardBroadcast();
- if (object.endTime != null)
- if ($util.Long)
- (message.endTime = $util.Long.fromValue(object.endTime)).unsigned = false;
- else if (typeof object.endTime === "string")
- message.endTime = parseInt(object.endTime, 10);
- else if (typeof object.endTime === "number")
- message.endTime = object.endTime;
- else if (typeof object.endTime === "object")
- message.endTime = new $util.LongBits(object.endTime.low >>> 0, object.endTime.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a GCStartArrangeCardBroadcast message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCStartArrangeCardBroadcast
- * @static
- * @param {guandan.GCStartArrangeCardBroadcast} message GCStartArrangeCardBroadcast
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCStartArrangeCardBroadcast.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults)
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.endTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.endTime = options.longs === String ? "0" : 0;
- if (message.endTime != null && message.hasOwnProperty("endTime"))
- if (typeof message.endTime === "number")
- object.endTime = options.longs === String ? String(message.endTime) : message.endTime;
- else
- 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;
- return object;
- };
- /**
- * Converts this GCStartArrangeCardBroadcast to JSON.
- * @function toJSON
- * @memberof guandan.GCStartArrangeCardBroadcast
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCStartArrangeCardBroadcast.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCStartArrangeCardBroadcast;
- })();
- guandan.GCEndArrangeCardBroadcast = (function() {
- /**
- * Properties of a GCEndArrangeCardBroadcast.
- * @memberof guandan
- * @interface IGCEndArrangeCardBroadcast
- * @property {number|Long} endTime GCEndArrangeCardBroadcast endTime
- */
- /**
- * Constructs a new GCEndArrangeCardBroadcast.
- * @memberof guandan
- * @classdesc Represents a GCEndArrangeCardBroadcast.
- * @implements IGCEndArrangeCardBroadcast
- * @constructor
- * @param {guandan.IGCEndArrangeCardBroadcast=} [properties] Properties to set
- */
- function GCEndArrangeCardBroadcast(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCEndArrangeCardBroadcast endTime.
- * @member {number|Long} endTime
- * @memberof guandan.GCEndArrangeCardBroadcast
- * @instance
- */
- GCEndArrangeCardBroadcast.prototype.endTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new GCEndArrangeCardBroadcast instance using the specified properties.
- * @function create
- * @memberof guandan.GCEndArrangeCardBroadcast
- * @static
- * @param {guandan.IGCEndArrangeCardBroadcast=} [properties] Properties to set
- * @returns {guandan.GCEndArrangeCardBroadcast} GCEndArrangeCardBroadcast instance
- */
- GCEndArrangeCardBroadcast.create = function create(properties) {
- return new GCEndArrangeCardBroadcast(properties);
- };
- /**
- * Encodes the specified GCEndArrangeCardBroadcast message. Does not implicitly {@link guandan.GCEndArrangeCardBroadcast.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCEndArrangeCardBroadcast
- * @static
- * @param {guandan.IGCEndArrangeCardBroadcast} message GCEndArrangeCardBroadcast message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCEndArrangeCardBroadcast.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.endTime);
- return writer;
- };
- /**
- * Encodes the specified GCEndArrangeCardBroadcast message, length delimited. Does not implicitly {@link guandan.GCEndArrangeCardBroadcast.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCEndArrangeCardBroadcast
- * @static
- * @param {guandan.IGCEndArrangeCardBroadcast} message GCEndArrangeCardBroadcast message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCEndArrangeCardBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCEndArrangeCardBroadcast message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCEndArrangeCardBroadcast
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCEndArrangeCardBroadcast} GCEndArrangeCardBroadcast
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCEndArrangeCardBroadcast.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCEndArrangeCardBroadcast();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.endTime = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("endTime"))
- throw $util.ProtocolError("missing required 'endTime'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCEndArrangeCardBroadcast message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCEndArrangeCardBroadcast
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCEndArrangeCardBroadcast} GCEndArrangeCardBroadcast
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCEndArrangeCardBroadcast.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCEndArrangeCardBroadcast message.
- * @function verify
- * @memberof guandan.GCEndArrangeCardBroadcast
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCEndArrangeCardBroadcast.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.endTime) && !(message.endTime && $util.isInteger(message.endTime.low) && $util.isInteger(message.endTime.high)))
- return "endTime: integer|Long expected";
- return null;
- };
- /**
- * Creates a GCEndArrangeCardBroadcast message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCEndArrangeCardBroadcast
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCEndArrangeCardBroadcast} GCEndArrangeCardBroadcast
- */
- GCEndArrangeCardBroadcast.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCEndArrangeCardBroadcast)
- return object;
- var message = new $root.guandan.GCEndArrangeCardBroadcast();
- if (object.endTime != null)
- if ($util.Long)
- (message.endTime = $util.Long.fromValue(object.endTime)).unsigned = false;
- else if (typeof object.endTime === "string")
- message.endTime = parseInt(object.endTime, 10);
- else if (typeof object.endTime === "number")
- message.endTime = object.endTime;
- else if (typeof object.endTime === "object")
- message.endTime = new $util.LongBits(object.endTime.low >>> 0, object.endTime.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a GCEndArrangeCardBroadcast message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCEndArrangeCardBroadcast
- * @static
- * @param {guandan.GCEndArrangeCardBroadcast} message GCEndArrangeCardBroadcast
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCEndArrangeCardBroadcast.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults)
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.endTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.endTime = options.longs === String ? "0" : 0;
- if (message.endTime != null && message.hasOwnProperty("endTime"))
- if (typeof message.endTime === "number")
- object.endTime = options.longs === String ? String(message.endTime) : message.endTime;
- else
- 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;
- return object;
- };
- /**
- * Converts this GCEndArrangeCardBroadcast to JSON.
- * @function toJSON
- * @memberof guandan.GCEndArrangeCardBroadcast
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCEndArrangeCardBroadcast.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCEndArrangeCardBroadcast;
- })();
- guandan.GCRestCardInfo = (function() {
- /**
- * Properties of a GCRestCardInfo.
- * @memberof guandan
- * @interface IGCRestCardInfo
- * @property {number|Long} playerID GCRestCardInfo playerID
- * @property {Array.<number>|null} [cardList] GCRestCardInfo cardList
- * @property {Array.<number>|null} [lastPlayList] GCRestCardInfo lastPlayList
- */
- /**
- * Constructs a new GCRestCardInfo.
- * @memberof guandan
- * @classdesc Represents a GCRestCardInfo.
- * @implements IGCRestCardInfo
- * @constructor
- * @param {guandan.IGCRestCardInfo=} [properties] Properties to set
- */
- function GCRestCardInfo(properties) {
- this.cardList = [];
- this.lastPlayList = [];
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCRestCardInfo playerID.
- * @member {number|Long} playerID
- * @memberof guandan.GCRestCardInfo
- * @instance
- */
- GCRestCardInfo.prototype.playerID = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * GCRestCardInfo cardList.
- * @member {Array.<number>} cardList
- * @memberof guandan.GCRestCardInfo
- * @instance
- */
- GCRestCardInfo.prototype.cardList = $util.emptyArray;
- /**
- * GCRestCardInfo lastPlayList.
- * @member {Array.<number>} lastPlayList
- * @memberof guandan.GCRestCardInfo
- * @instance
- */
- GCRestCardInfo.prototype.lastPlayList = $util.emptyArray;
- /**
- * Creates a new GCRestCardInfo instance using the specified properties.
- * @function create
- * @memberof guandan.GCRestCardInfo
- * @static
- * @param {guandan.IGCRestCardInfo=} [properties] Properties to set
- * @returns {guandan.GCRestCardInfo} GCRestCardInfo instance
- */
- GCRestCardInfo.create = function create(properties) {
- return new GCRestCardInfo(properties);
- };
- /**
- * Encodes the specified GCRestCardInfo message. Does not implicitly {@link guandan.GCRestCardInfo.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCRestCardInfo
- * @static
- * @param {guandan.IGCRestCardInfo} message GCRestCardInfo message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCRestCardInfo.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int64(message.playerID);
- if (message.cardList != null && message.cardList.length)
- for (var i = 0; i < message.cardList.length; ++i)
- writer.uint32(/* id 2, wireType 0 =*/16).int32(message.cardList[i]);
- if (message.lastPlayList != null && message.lastPlayList.length)
- for (var i = 0; i < message.lastPlayList.length; ++i)
- writer.uint32(/* id 3, wireType 0 =*/24).int32(message.lastPlayList[i]);
- return writer;
- };
- /**
- * Encodes the specified GCRestCardInfo message, length delimited. Does not implicitly {@link guandan.GCRestCardInfo.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCRestCardInfo
- * @static
- * @param {guandan.IGCRestCardInfo} message GCRestCardInfo message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCRestCardInfo.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCRestCardInfo message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCRestCardInfo
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCRestCardInfo} GCRestCardInfo
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCRestCardInfo.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCRestCardInfo();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.playerID = reader.int64();
- break;
- case 2:
- if (!(message.cardList && message.cardList.length))
- message.cardList = [];
- if ((tag & 7) === 2) {
- var end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.cardList.push(reader.int32());
- } else
- message.cardList.push(reader.int32());
- break;
- case 3:
- if (!(message.lastPlayList && message.lastPlayList.length))
- message.lastPlayList = [];
- if ((tag & 7) === 2) {
- var end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.lastPlayList.push(reader.int32());
- } else
- message.lastPlayList.push(reader.int32());
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("playerID"))
- throw $util.ProtocolError("missing required 'playerID'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCRestCardInfo message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCRestCardInfo
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCRestCardInfo} GCRestCardInfo
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCRestCardInfo.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCRestCardInfo message.
- * @function verify
- * @memberof guandan.GCRestCardInfo
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCRestCardInfo.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.playerID) && !(message.playerID && $util.isInteger(message.playerID.low) && $util.isInteger(message.playerID.high)))
- return "playerID: integer|Long expected";
- if (message.cardList != null && message.hasOwnProperty("cardList")) {
- if (!Array.isArray(message.cardList))
- return "cardList: array expected";
- for (var i = 0; i < message.cardList.length; ++i)
- if (!$util.isInteger(message.cardList[i]))
- return "cardList: integer[] expected";
- }
- if (message.lastPlayList != null && message.hasOwnProperty("lastPlayList")) {
- if (!Array.isArray(message.lastPlayList))
- return "lastPlayList: array expected";
- for (var i = 0; i < message.lastPlayList.length; ++i)
- if (!$util.isInteger(message.lastPlayList[i]))
- return "lastPlayList: integer[] expected";
- }
- return null;
- };
- /**
- * Creates a GCRestCardInfo message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCRestCardInfo
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCRestCardInfo} GCRestCardInfo
- */
- GCRestCardInfo.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCRestCardInfo)
- return object;
- var message = new $root.guandan.GCRestCardInfo();
- if (object.playerID != null)
- if ($util.Long)
- (message.playerID = $util.Long.fromValue(object.playerID)).unsigned = false;
- else if (typeof object.playerID === "string")
- message.playerID = parseInt(object.playerID, 10);
- else if (typeof object.playerID === "number")
- message.playerID = object.playerID;
- else if (typeof object.playerID === "object")
- message.playerID = new $util.LongBits(object.playerID.low >>> 0, object.playerID.high >>> 0).toNumber();
- if (object.cardList) {
- if (!Array.isArray(object.cardList))
- throw TypeError(".guandan.GCRestCardInfo.cardList: array expected");
- message.cardList = [];
- for (var i = 0; i < object.cardList.length; ++i)
- message.cardList[i] = object.cardList[i] | 0;
- }
- if (object.lastPlayList) {
- if (!Array.isArray(object.lastPlayList))
- throw TypeError(".guandan.GCRestCardInfo.lastPlayList: array expected");
- message.lastPlayList = [];
- for (var i = 0; i < object.lastPlayList.length; ++i)
- message.lastPlayList[i] = object.lastPlayList[i] | 0;
- }
- return message;
- };
- /**
- * Creates a plain object from a GCRestCardInfo message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCRestCardInfo
- * @static
- * @param {guandan.GCRestCardInfo} message GCRestCardInfo
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCRestCardInfo.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.arrays || options.defaults) {
- object.cardList = [];
- object.lastPlayList = [];
- }
- if (options.defaults)
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.playerID = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.playerID = options.longs === String ? "0" : 0;
- if (message.playerID != null && message.hasOwnProperty("playerID"))
- if (typeof message.playerID === "number")
- object.playerID = options.longs === String ? String(message.playerID) : message.playerID;
- else
- 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;
- if (message.cardList && message.cardList.length) {
- object.cardList = [];
- for (var j = 0; j < message.cardList.length; ++j)
- object.cardList[j] = message.cardList[j];
- }
- if (message.lastPlayList && message.lastPlayList.length) {
- object.lastPlayList = [];
- for (var j = 0; j < message.lastPlayList.length; ++j)
- object.lastPlayList[j] = message.lastPlayList[j];
- }
- return object;
- };
- /**
- * Converts this GCRestCardInfo to JSON.
- * @function toJSON
- * @memberof guandan.GCRestCardInfo
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCRestCardInfo.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCRestCardInfo;
- })();
- guandan.GCRestCardBroadcast = (function() {
- /**
- * Properties of a GCRestCardBroadcast.
- * @memberof guandan
- * @interface IGCRestCardBroadcast
- * @property {Array.<guandan.IGCRestCardInfo>|null} [gcRestCardList] GCRestCardBroadcast gcRestCardList
- */
- /**
- * Constructs a new GCRestCardBroadcast.
- * @memberof guandan
- * @classdesc Represents a GCRestCardBroadcast.
- * @implements IGCRestCardBroadcast
- * @constructor
- * @param {guandan.IGCRestCardBroadcast=} [properties] Properties to set
- */
- function GCRestCardBroadcast(properties) {
- this.gcRestCardList = [];
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCRestCardBroadcast gcRestCardList.
- * @member {Array.<guandan.IGCRestCardInfo>} gcRestCardList
- * @memberof guandan.GCRestCardBroadcast
- * @instance
- */
- GCRestCardBroadcast.prototype.gcRestCardList = $util.emptyArray;
- /**
- * Creates a new GCRestCardBroadcast instance using the specified properties.
- * @function create
- * @memberof guandan.GCRestCardBroadcast
- * @static
- * @param {guandan.IGCRestCardBroadcast=} [properties] Properties to set
- * @returns {guandan.GCRestCardBroadcast} GCRestCardBroadcast instance
- */
- GCRestCardBroadcast.create = function create(properties) {
- return new GCRestCardBroadcast(properties);
- };
- /**
- * Encodes the specified GCRestCardBroadcast message. Does not implicitly {@link guandan.GCRestCardBroadcast.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCRestCardBroadcast
- * @static
- * @param {guandan.IGCRestCardBroadcast} message GCRestCardBroadcast message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCRestCardBroadcast.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.gcRestCardList != null && message.gcRestCardList.length)
- for (var i = 0; i < message.gcRestCardList.length; ++i)
- $root.guandan.GCRestCardInfo.encode(message.gcRestCardList[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
- return writer;
- };
- /**
- * Encodes the specified GCRestCardBroadcast message, length delimited. Does not implicitly {@link guandan.GCRestCardBroadcast.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCRestCardBroadcast
- * @static
- * @param {guandan.IGCRestCardBroadcast} message GCRestCardBroadcast message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCRestCardBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCRestCardBroadcast message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCRestCardBroadcast
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCRestCardBroadcast} GCRestCardBroadcast
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCRestCardBroadcast.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCRestCardBroadcast();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (!(message.gcRestCardList && message.gcRestCardList.length))
- message.gcRestCardList = [];
- message.gcRestCardList.push($root.guandan.GCRestCardInfo.decode(reader, reader.uint32()));
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
- /**
- * Decodes a GCRestCardBroadcast message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCRestCardBroadcast
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCRestCardBroadcast} GCRestCardBroadcast
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCRestCardBroadcast.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCRestCardBroadcast message.
- * @function verify
- * @memberof guandan.GCRestCardBroadcast
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCRestCardBroadcast.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.gcRestCardList != null && message.hasOwnProperty("gcRestCardList")) {
- if (!Array.isArray(message.gcRestCardList))
- return "gcRestCardList: array expected";
- for (var i = 0; i < message.gcRestCardList.length; ++i) {
- var error = $root.guandan.GCRestCardInfo.verify(message.gcRestCardList[i]);
- if (error)
- return "gcRestCardList." + error;
- }
- }
- return null;
- };
- /**
- * Creates a GCRestCardBroadcast message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCRestCardBroadcast
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCRestCardBroadcast} GCRestCardBroadcast
- */
- GCRestCardBroadcast.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCRestCardBroadcast)
- return object;
- var message = new $root.guandan.GCRestCardBroadcast();
- if (object.gcRestCardList) {
- if (!Array.isArray(object.gcRestCardList))
- throw TypeError(".guandan.GCRestCardBroadcast.gcRestCardList: array expected");
- message.gcRestCardList = [];
- for (var i = 0; i < object.gcRestCardList.length; ++i) {
- if (typeof object.gcRestCardList[i] !== "object")
- throw TypeError(".guandan.GCRestCardBroadcast.gcRestCardList: object expected");
- message.gcRestCardList[i] = $root.guandan.GCRestCardInfo.fromObject(object.gcRestCardList[i]);
- }
- }
- return message;
- };
- /**
- * Creates a plain object from a GCRestCardBroadcast message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCRestCardBroadcast
- * @static
- * @param {guandan.GCRestCardBroadcast} message GCRestCardBroadcast
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCRestCardBroadcast.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.arrays || options.defaults)
- object.gcRestCardList = [];
- if (message.gcRestCardList && message.gcRestCardList.length) {
- object.gcRestCardList = [];
- for (var j = 0; j < message.gcRestCardList.length; ++j)
- object.gcRestCardList[j] = $root.guandan.GCRestCardInfo.toObject(message.gcRestCardList[j], options);
- }
- return object;
- };
- /**
- * Converts this GCRestCardBroadcast to JSON.
- * @function toJSON
- * @memberof guandan.GCRestCardBroadcast
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCRestCardBroadcast.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCRestCardBroadcast;
- })();
- guandan.CGChat = (function() {
- /**
- * Properties of a CGChat.
- * @memberof guandan
- * @interface ICGChat
- * @property {number} typ CGChat typ
- * @property {Uint8Array} content CGChat content
- */
- /**
- * Constructs a new CGChat.
- * @memberof guandan
- * @classdesc Represents a CGChat.
- * @implements ICGChat
- * @constructor
- * @param {guandan.ICGChat=} [properties] Properties to set
- */
- function CGChat(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * CGChat typ.
- * @member {number} typ
- * @memberof guandan.CGChat
- * @instance
- */
- CGChat.prototype.typ = 0;
- /**
- * CGChat content.
- * @member {Uint8Array} content
- * @memberof guandan.CGChat
- * @instance
- */
- CGChat.prototype.content = $util.newBuffer([]);
- /**
- * Creates a new CGChat instance using the specified properties.
- * @function create
- * @memberof guandan.CGChat
- * @static
- * @param {guandan.ICGChat=} [properties] Properties to set
- * @returns {guandan.CGChat} CGChat instance
- */
- CGChat.create = function create(properties) {
- return new CGChat(properties);
- };
- /**
- * Encodes the specified CGChat message. Does not implicitly {@link guandan.CGChat.verify|verify} messages.
- * @function encode
- * @memberof guandan.CGChat
- * @static
- * @param {guandan.ICGChat} message CGChat message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- CGChat.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int32(message.typ);
- writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.content);
- return writer;
- };
- /**
- * Encodes the specified CGChat message, length delimited. Does not implicitly {@link guandan.CGChat.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.CGChat
- * @static
- * @param {guandan.ICGChat} message CGChat message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- CGChat.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a CGChat message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.CGChat
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.CGChat} CGChat
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- CGChat.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.CGChat();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.typ = reader.int32();
- break;
- case 2:
- message.content = reader.bytes();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("typ"))
- throw $util.ProtocolError("missing required 'typ'", { instance: message });
- if (!message.hasOwnProperty("content"))
- throw $util.ProtocolError("missing required 'content'", { instance: message });
- return message;
- };
- /**
- * Decodes a CGChat message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.CGChat
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.CGChat} CGChat
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- CGChat.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a CGChat message.
- * @function verify
- * @memberof guandan.CGChat
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- CGChat.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.typ))
- return "typ: integer expected";
- if (!(message.content && typeof message.content.length === "number" || $util.isString(message.content)))
- return "content: buffer expected";
- return null;
- };
- /**
- * Creates a CGChat message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.CGChat
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.CGChat} CGChat
- */
- CGChat.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.CGChat)
- return object;
- var message = new $root.guandan.CGChat();
- if (object.typ != null)
- message.typ = object.typ | 0;
- if (object.content != null)
- if (typeof object.content === "string")
- $util.base64.decode(object.content, message.content = $util.newBuffer($util.base64.length(object.content)), 0);
- else if (object.content.length)
- message.content = object.content;
- return message;
- };
- /**
- * Creates a plain object from a CGChat message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.CGChat
- * @static
- * @param {guandan.CGChat} message CGChat
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- CGChat.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults) {
- object.typ = 0;
- if (options.bytes === String)
- object.content = "";
- else {
- object.content = [];
- if (options.bytes !== Array)
- object.content = $util.newBuffer(object.content);
- }
- }
- if (message.typ != null && message.hasOwnProperty("typ"))
- object.typ = message.typ;
- if (message.content != null && message.hasOwnProperty("content"))
- 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;
- return object;
- };
- /**
- * Converts this CGChat to JSON.
- * @function toJSON
- * @memberof guandan.CGChat
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- CGChat.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return CGChat;
- })();
- guandan.GCChat = (function() {
- /**
- * Properties of a GCChat.
- * @memberof guandan
- * @interface IGCChat
- * @property {number} typ GCChat typ
- * @property {Uint8Array} content GCChat content
- * @property {number|Long} sender GCChat sender
- */
- /**
- * Constructs a new GCChat.
- * @memberof guandan
- * @classdesc Represents a GCChat.
- * @implements IGCChat
- * @constructor
- * @param {guandan.IGCChat=} [properties] Properties to set
- */
- function GCChat(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCChat typ.
- * @member {number} typ
- * @memberof guandan.GCChat
- * @instance
- */
- GCChat.prototype.typ = 0;
- /**
- * GCChat content.
- * @member {Uint8Array} content
- * @memberof guandan.GCChat
- * @instance
- */
- GCChat.prototype.content = $util.newBuffer([]);
- /**
- * GCChat sender.
- * @member {number|Long} sender
- * @memberof guandan.GCChat
- * @instance
- */
- GCChat.prototype.sender = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
- /**
- * Creates a new GCChat instance using the specified properties.
- * @function create
- * @memberof guandan.GCChat
- * @static
- * @param {guandan.IGCChat=} [properties] Properties to set
- * @returns {guandan.GCChat} GCChat instance
- */
- GCChat.create = function create(properties) {
- return new GCChat(properties);
- };
- /**
- * Encodes the specified GCChat message. Does not implicitly {@link guandan.GCChat.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCChat
- * @static
- * @param {guandan.IGCChat} message GCChat message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCChat.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int32(message.typ);
- writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.content);
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.sender);
- return writer;
- };
- /**
- * Encodes the specified GCChat message, length delimited. Does not implicitly {@link guandan.GCChat.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCChat
- * @static
- * @param {guandan.IGCChat} message GCChat message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCChat.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCChat message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCChat
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCChat} GCChat
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCChat.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCChat();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.typ = reader.int32();
- break;
- case 2:
- message.content = reader.bytes();
- break;
- case 3:
- message.sender = reader.int64();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("typ"))
- throw $util.ProtocolError("missing required 'typ'", { instance: message });
- if (!message.hasOwnProperty("content"))
- throw $util.ProtocolError("missing required 'content'", { instance: message });
- if (!message.hasOwnProperty("sender"))
- throw $util.ProtocolError("missing required 'sender'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCChat message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCChat
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCChat} GCChat
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCChat.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCChat message.
- * @function verify
- * @memberof guandan.GCChat
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCChat.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.typ))
- return "typ: integer expected";
- if (!(message.content && typeof message.content.length === "number" || $util.isString(message.content)))
- return "content: buffer expected";
- if (!$util.isInteger(message.sender) && !(message.sender && $util.isInteger(message.sender.low) && $util.isInteger(message.sender.high)))
- return "sender: integer|Long expected";
- return null;
- };
- /**
- * Creates a GCChat message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCChat
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCChat} GCChat
- */
- GCChat.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCChat)
- return object;
- var message = new $root.guandan.GCChat();
- if (object.typ != null)
- message.typ = object.typ | 0;
- if (object.content != null)
- if (typeof object.content === "string")
- $util.base64.decode(object.content, message.content = $util.newBuffer($util.base64.length(object.content)), 0);
- else if (object.content.length)
- message.content = object.content;
- if (object.sender != null)
- if ($util.Long)
- (message.sender = $util.Long.fromValue(object.sender)).unsigned = false;
- else if (typeof object.sender === "string")
- message.sender = parseInt(object.sender, 10);
- else if (typeof object.sender === "number")
- message.sender = object.sender;
- else if (typeof object.sender === "object")
- message.sender = new $util.LongBits(object.sender.low >>> 0, object.sender.high >>> 0).toNumber();
- return message;
- };
- /**
- * Creates a plain object from a GCChat message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCChat
- * @static
- * @param {guandan.GCChat} message GCChat
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCChat.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults) {
- object.typ = 0;
- if (options.bytes === String)
- object.content = "";
- else {
- object.content = [];
- if (options.bytes !== Array)
- object.content = $util.newBuffer(object.content);
- }
- if ($util.Long) {
- var long = new $util.Long(0, 0, false);
- object.sender = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
- } else
- object.sender = options.longs === String ? "0" : 0;
- }
- if (message.typ != null && message.hasOwnProperty("typ"))
- object.typ = message.typ;
- if (message.content != null && message.hasOwnProperty("content"))
- 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;
- if (message.sender != null && message.hasOwnProperty("sender"))
- if (typeof message.sender === "number")
- object.sender = options.longs === String ? String(message.sender) : message.sender;
- else
- 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;
- return object;
- };
- /**
- * Converts this GCChat to JSON.
- * @function toJSON
- * @memberof guandan.GCChat
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCChat.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCChat;
- })();
- guandan.GCErrorNotice = (function() {
- /**
- * Properties of a GCErrorNotice.
- * @memberof guandan
- * @interface IGCErrorNotice
- * @property {string} errorMsg GCErrorNotice errorMsg
- */
- /**
- * Constructs a new GCErrorNotice.
- * @memberof guandan
- * @classdesc Represents a GCErrorNotice.
- * @implements IGCErrorNotice
- * @constructor
- * @param {guandan.IGCErrorNotice=} [properties] Properties to set
- */
- function GCErrorNotice(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCErrorNotice errorMsg.
- * @member {string} errorMsg
- * @memberof guandan.GCErrorNotice
- * @instance
- */
- GCErrorNotice.prototype.errorMsg = "";
- /**
- * Creates a new GCErrorNotice instance using the specified properties.
- * @function create
- * @memberof guandan.GCErrorNotice
- * @static
- * @param {guandan.IGCErrorNotice=} [properties] Properties to set
- * @returns {guandan.GCErrorNotice} GCErrorNotice instance
- */
- GCErrorNotice.create = function create(properties) {
- return new GCErrorNotice(properties);
- };
- /**
- * Encodes the specified GCErrorNotice message. Does not implicitly {@link guandan.GCErrorNotice.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCErrorNotice
- * @static
- * @param {guandan.IGCErrorNotice} message GCErrorNotice message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCErrorNotice.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.errorMsg);
- return writer;
- };
- /**
- * Encodes the specified GCErrorNotice message, length delimited. Does not implicitly {@link guandan.GCErrorNotice.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCErrorNotice
- * @static
- * @param {guandan.IGCErrorNotice} message GCErrorNotice message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCErrorNotice.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCErrorNotice message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCErrorNotice
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCErrorNotice} GCErrorNotice
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCErrorNotice.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCErrorNotice();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.errorMsg = reader.string();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("errorMsg"))
- throw $util.ProtocolError("missing required 'errorMsg'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCErrorNotice message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCErrorNotice
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCErrorNotice} GCErrorNotice
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCErrorNotice.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCErrorNotice message.
- * @function verify
- * @memberof guandan.GCErrorNotice
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCErrorNotice.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isString(message.errorMsg))
- return "errorMsg: string expected";
- return null;
- };
- /**
- * Creates a GCErrorNotice message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCErrorNotice
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCErrorNotice} GCErrorNotice
- */
- GCErrorNotice.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCErrorNotice)
- return object;
- var message = new $root.guandan.GCErrorNotice();
- if (object.errorMsg != null)
- message.errorMsg = String(object.errorMsg);
- return message;
- };
- /**
- * Creates a plain object from a GCErrorNotice message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCErrorNotice
- * @static
- * @param {guandan.GCErrorNotice} message GCErrorNotice
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCErrorNotice.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults)
- object.errorMsg = "";
- if (message.errorMsg != null && message.hasOwnProperty("errorMsg"))
- object.errorMsg = message.errorMsg;
- return object;
- };
- /**
- * Converts this GCErrorNotice to JSON.
- * @function toJSON
- * @memberof guandan.GCErrorNotice
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCErrorNotice.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCErrorNotice;
- })();
- guandan.GCKickOutReason = (function() {
- /**
- * Properties of a GCKickOutReason.
- * @memberof guandan
- * @interface IGCKickOutReason
- * @property {number} reasonCode GCKickOutReason reasonCode
- * @property {string|null} [reasonMsg] GCKickOutReason reasonMsg
- */
- /**
- * Constructs a new GCKickOutReason.
- * @memberof guandan
- * @classdesc Represents a GCKickOutReason.
- * @implements IGCKickOutReason
- * @constructor
- * @param {guandan.IGCKickOutReason=} [properties] Properties to set
- */
- function GCKickOutReason(properties) {
- if (properties)
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
- if (properties[keys[i]] != null)
- this[keys[i]] = properties[keys[i]];
- }
- /**
- * GCKickOutReason reasonCode.
- * @member {number} reasonCode
- * @memberof guandan.GCKickOutReason
- * @instance
- */
- GCKickOutReason.prototype.reasonCode = 0;
- /**
- * GCKickOutReason reasonMsg.
- * @member {string} reasonMsg
- * @memberof guandan.GCKickOutReason
- * @instance
- */
- GCKickOutReason.prototype.reasonMsg = "";
- /**
- * Creates a new GCKickOutReason instance using the specified properties.
- * @function create
- * @memberof guandan.GCKickOutReason
- * @static
- * @param {guandan.IGCKickOutReason=} [properties] Properties to set
- * @returns {guandan.GCKickOutReason} GCKickOutReason instance
- */
- GCKickOutReason.create = function create(properties) {
- return new GCKickOutReason(properties);
- };
- /**
- * Encodes the specified GCKickOutReason message. Does not implicitly {@link guandan.GCKickOutReason.verify|verify} messages.
- * @function encode
- * @memberof guandan.GCKickOutReason
- * @static
- * @param {guandan.IGCKickOutReason} message GCKickOutReason message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCKickOutReason.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- writer.uint32(/* id 1, wireType 0 =*/8).int32(message.reasonCode);
- if (message.reasonMsg != null && Object.hasOwnProperty.call(message, "reasonMsg"))
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.reasonMsg);
- return writer;
- };
- /**
- * Encodes the specified GCKickOutReason message, length delimited. Does not implicitly {@link guandan.GCKickOutReason.verify|verify} messages.
- * @function encodeDelimited
- * @memberof guandan.GCKickOutReason
- * @static
- * @param {guandan.IGCKickOutReason} message GCKickOutReason message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- GCKickOutReason.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
- /**
- * Decodes a GCKickOutReason message from the specified reader or buffer.
- * @function decode
- * @memberof guandan.GCKickOutReason
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {guandan.GCKickOutReason} GCKickOutReason
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCKickOutReason.decode = function decode(reader, length) {
- if (!(reader instanceof $Reader))
- reader = $Reader.create(reader);
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.guandan.GCKickOutReason();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.reasonCode = reader.int32();
- break;
- case 2:
- message.reasonMsg = reader.string();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- if (!message.hasOwnProperty("reasonCode"))
- throw $util.ProtocolError("missing required 'reasonCode'", { instance: message });
- return message;
- };
- /**
- * Decodes a GCKickOutReason message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof guandan.GCKickOutReason
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {guandan.GCKickOutReason} GCKickOutReason
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- GCKickOutReason.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
- /**
- * Verifies a GCKickOutReason message.
- * @function verify
- * @memberof guandan.GCKickOutReason
- * @static
- * @param {Object.<string,*>} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- GCKickOutReason.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (!$util.isInteger(message.reasonCode))
- return "reasonCode: integer expected";
- if (message.reasonMsg != null && message.hasOwnProperty("reasonMsg"))
- if (!$util.isString(message.reasonMsg))
- return "reasonMsg: string expected";
- return null;
- };
- /**
- * Creates a GCKickOutReason message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof guandan.GCKickOutReason
- * @static
- * @param {Object.<string,*>} object Plain object
- * @returns {guandan.GCKickOutReason} GCKickOutReason
- */
- GCKickOutReason.fromObject = function fromObject(object) {
- if (object instanceof $root.guandan.GCKickOutReason)
- return object;
- var message = new $root.guandan.GCKickOutReason();
- if (object.reasonCode != null)
- message.reasonCode = object.reasonCode | 0;
- if (object.reasonMsg != null)
- message.reasonMsg = String(object.reasonMsg);
- return message;
- };
- /**
- * Creates a plain object from a GCKickOutReason message. Also converts values to other types if specified.
- * @function toObject
- * @memberof guandan.GCKickOutReason
- * @static
- * @param {guandan.GCKickOutReason} message GCKickOutReason
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.<string,*>} Plain object
- */
- GCKickOutReason.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults) {
- object.reasonCode = 0;
- object.reasonMsg = "";
- }
- if (message.reasonCode != null && message.hasOwnProperty("reasonCode"))
- object.reasonCode = message.reasonCode;
- if (message.reasonMsg != null && message.hasOwnProperty("reasonMsg"))
- object.reasonMsg = message.reasonMsg;
- return object;
- };
- /**
- * Converts this GCKickOutReason to JSON.
- * @function toJSON
- * @memberof guandan.GCKickOutReason
- * @instance
- * @returns {Object.<string,*>} JSON object
- */
- GCKickOutReason.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
- return GCKickOutReason;
- })();
- return guandan;
- })();
- $root.messagetype = (function() {
- /**
- * Namespace messagetype.
- * @exports messagetype
- * @namespace
- */
- var messagetype = {};
- /**
- * QiPaiMessageType enum.
- * @name messagetype.QiPaiMessageType
- * @enum {number}
- * @property {number} SessionOpen=101 SessionOpen value
- * @property {number} SessionClose=102 SessionClose value
- * @property {number} CGLoginType=1001 CGLoginType value
- * @property {number} GCLoginType=1002 GCLoginType value
- * @property {number} CGPingType=1003 CGPingType value
- * @property {number} GCPingType=1004 GCPingType value
- * @property {number} GCError=1101 GCError value
- */
- messagetype.QiPaiMessageType = (function() {
- var valuesById = {}, values = Object.create(valuesById);
- values[valuesById[101] = "SessionOpen"] = 101;
- values[valuesById[102] = "SessionClose"] = 102;
- values[valuesById[1001] = "CGLoginType"] = 1001;
- values[valuesById[1002] = "GCLoginType"] = 1002;
- values[valuesById[1003] = "CGPingType"] = 1003;
- values[valuesById[1004] = "GCPingType"] = 1004;
- values[valuesById[1101] = "GCError"] = 1101;
- return values;
- })();
- /**
- * MessageType enum.
- * @name messagetype.MessageType
- * @enum {number}
- * @property {number} CGJoinRoomType=2001 CGJoinRoomType value
- * @property {number} GCJoinRoomType=2002 GCJoinRoomType value
- * @property {number} GCJoinRoomBroadcastType=2003 GCJoinRoomBroadcastType value
- * @property {number} GCSelectBankerBroadcastType=2004 GCSelectBankerBroadcastType value
- * @property {number} GCDealCardsType=2005 GCDealCardsType value
- * @property {number} CGPlayerPlayCardType=2006 CGPlayerPlayCardType value
- * @property {number} GCPlayerPlayCardType=2007 GCPlayerPlayCardType value
- * @property {number} GCPlayerOperationsType=2008 GCPlayerOperationsType value
- * @property {number} GCWaitPlayerPlayCardType=2009 GCWaitPlayerPlayCardType value
- * @property {number} CGPlayerJinGongType=2010 CGPlayerJinGongType value
- * @property {number} GCPlayerJinGongBroadcastType=2011 GCPlayerJinGongBroadcastType value
- * @property {number} CGPlayerHuanGongType=2012 CGPlayerHuanGongType value
- * @property {number} GCPlayerHuanGongBroadcastType=2013 GCPlayerHuanGongBroadcastType value
- * @property {number} GCPlayerKangGongBroadcastType=2014 GCPlayerKangGongBroadcastType value
- * @property {number} GCWaitPlayerJinGongBroadcastType=2015 GCWaitPlayerJinGongBroadcastType value
- * @property {number} GCWaitPlayerHuanGongBroadcastType=2016 GCWaitPlayerHuanGongBroadcastType value
- * @property {number} CGPlayerOperateType=2017 CGPlayerOperateType value
- * @property {number} GCClearCircleBroadcastType=2018 GCClearCircleBroadcastType value
- * @property {number} GCClearType=2019 GCClearType value
- * @property {number} GCReconnectPlayerType=2020 GCReconnectPlayerType value
- * @property {number} GCDisconnectPlayerType=2021 GCDisconnectPlayerType value
- * @property {number} CGDisconnectPlayerType=2022 CGDisconnectPlayerType value
- * @property {number} CGPlayerLeaveType=2023 CGPlayerLeaveType value
- * @property {number} GCPlayerLeaveType=2024 GCPlayerLeaveType value
- * @property {number} CGPlayerStartType=2025 CGPlayerStartType value
- * @property {number} GCPlayerStartType=2026 GCPlayerStartType value
- * @property {number} CGPlayerDissolveType=2027 CGPlayerDissolveType value
- * @property {number} GCPlayerDissolveType=2028 GCPlayerDissolveType value
- * @property {number} CGPlayerDissolveAgreeType=2029 CGPlayerDissolveAgreeType value
- * @property {number} GCPlayerDissolveAgreeType=2030 GCPlayerDissolveAgreeType value
- * @property {number} GCTotalSettleType=2031 GCTotalSettleType value
- * @property {number} GCPlayerKaiJinType=2032 GCPlayerKaiJinType value
- * @property {number} GCPlayerTuoGuan=2033 GCPlayerTuoGuan value
- * @property {number} CGPlayerCancelTuoGuan=2034 CGPlayerCancelTuoGuan value
- * @property {number} GCPlayerCancelTuoGuan=2035 GCPlayerCancelTuoGuan value
- * @property {number} GCRoomRoundStartType=2036 GCRoomRoundStartType value
- * @property {number} GCLiuJuType=2037 GCLiuJuType value
- * @property {number} GCLastBroadcastType=2038 GCLastBroadcastType value
- * @property {number} GCPlayerYouType=2039 GCPlayerYouType value
- * @property {number} GCPlayerEmptyBroadcastType=2040 GCPlayerEmptyBroadcastType value
- * @property {number} GCPlayerRemainCardBroadcastType=2041 GCPlayerRemainCardBroadcastType value
- * @property {number} GCPlayerDoubleBroadcastType=2042 GCPlayerDoubleBroadcastType value
- * @property {number} GCTuanTuanZhuanShowCardBroadcastType=2043 GCTuanTuanZhuanShowCardBroadcastType value
- * @property {number} GCOppositePlayerCardType=2044 GCOppositePlayerCardType value
- * @property {number} CGPlayerDoubleType=2047 CGPlayerDoubleType value
- * @property {number} GCPlayerPlayCardBroadcastType=2048 GCPlayerPlayCardBroadcastType value
- * @property {number} GCWaitPlayerDoubleType=2049 GCWaitPlayerDoubleType value
- * @property {number} GCBombDoubleType=2050 GCBombDoubleType value
- * @property {number} GCJieFengBroadcastType=2051 GCJieFengBroadcastType value
- * @property {number} GCStartArrangeCardBroadcastType=2052 GCStartArrangeCardBroadcastType value
- * @property {number} GCEndArrangeCardBroadcastType=2053 GCEndArrangeCardBroadcastType value
- * @property {number} GCRestCardBroadcastType=2054 GCRestCardBroadcastType value
- * @property {number} CGChatType=3001 CGChatType value
- * @property {number} GCChatType=3002 GCChatType value
- * @property {number} GCErrorNoticeType=4001 GCErrorNoticeType value
- * @property {number} GCKickOutReasonType=4002 GCKickOutReasonType value
- */
- messagetype.MessageType = (function() {
- var valuesById = {}, values = Object.create(valuesById);
- values[valuesById[2001] = "CGJoinRoomType"] = 2001;
- values[valuesById[2002] = "GCJoinRoomType"] = 2002;
- values[valuesById[2003] = "GCJoinRoomBroadcastType"] = 2003;
- values[valuesById[2004] = "GCSelectBankerBroadcastType"] = 2004;
- values[valuesById[2005] = "GCDealCardsType"] = 2005;
- values[valuesById[2006] = "CGPlayerPlayCardType"] = 2006;
- values[valuesById[2007] = "GCPlayerPlayCardType"] = 2007;
- values[valuesById[2008] = "GCPlayerOperationsType"] = 2008;
- values[valuesById[2009] = "GCWaitPlayerPlayCardType"] = 2009;
- values[valuesById[2010] = "CGPlayerJinGongType"] = 2010;
- values[valuesById[2011] = "GCPlayerJinGongBroadcastType"] = 2011;
- values[valuesById[2012] = "CGPlayerHuanGongType"] = 2012;
- values[valuesById[2013] = "GCPlayerHuanGongBroadcastType"] = 2013;
- values[valuesById[2014] = "GCPlayerKangGongBroadcastType"] = 2014;
- values[valuesById[2015] = "GCWaitPlayerJinGongBroadcastType"] = 2015;
- values[valuesById[2016] = "GCWaitPlayerHuanGongBroadcastType"] = 2016;
- values[valuesById[2017] = "CGPlayerOperateType"] = 2017;
- values[valuesById[2018] = "GCClearCircleBroadcastType"] = 2018;
- values[valuesById[2019] = "GCClearType"] = 2019;
- values[valuesById[2020] = "GCReconnectPlayerType"] = 2020;
- values[valuesById[2021] = "GCDisconnectPlayerType"] = 2021;
- values[valuesById[2022] = "CGDisconnectPlayerType"] = 2022;
- values[valuesById[2023] = "CGPlayerLeaveType"] = 2023;
- values[valuesById[2024] = "GCPlayerLeaveType"] = 2024;
- values[valuesById[2025] = "CGPlayerStartType"] = 2025;
- values[valuesById[2026] = "GCPlayerStartType"] = 2026;
- values[valuesById[2027] = "CGPlayerDissolveType"] = 2027;
- values[valuesById[2028] = "GCPlayerDissolveType"] = 2028;
- values[valuesById[2029] = "CGPlayerDissolveAgreeType"] = 2029;
- values[valuesById[2030] = "GCPlayerDissolveAgreeType"] = 2030;
- values[valuesById[2031] = "GCTotalSettleType"] = 2031;
- values[valuesById[2032] = "GCPlayerKaiJinType"] = 2032;
- values[valuesById[2033] = "GCPlayerTuoGuan"] = 2033;
- values[valuesById[2034] = "CGPlayerCancelTuoGuan"] = 2034;
- values[valuesById[2035] = "GCPlayerCancelTuoGuan"] = 2035;
- values[valuesById[2036] = "GCRoomRoundStartType"] = 2036;
- values[valuesById[2037] = "GCLiuJuType"] = 2037;
- values[valuesById[2038] = "GCLastBroadcastType"] = 2038;
- values[valuesById[2039] = "GCPlayerYouType"] = 2039;
- values[valuesById[2040] = "GCPlayerEmptyBroadcastType"] = 2040;
- values[valuesById[2041] = "GCPlayerRemainCardBroadcastType"] = 2041;
- values[valuesById[2042] = "GCPlayerDoubleBroadcastType"] = 2042;
- values[valuesById[2043] = "GCTuanTuanZhuanShowCardBroadcastType"] = 2043;
- values[valuesById[2044] = "GCOppositePlayerCardType"] = 2044;
- values[valuesById[2047] = "CGPlayerDoubleType"] = 2047;
- values[valuesById[2048] = "GCPlayerPlayCardBroadcastType"] = 2048;
- values[valuesById[2049] = "GCWaitPlayerDoubleType"] = 2049;
- values[valuesById[2050] = "GCBombDoubleType"] = 2050;
- values[valuesById[2051] = "GCJieFengBroadcastType"] = 2051;
- values[valuesById[2052] = "GCStartArrangeCardBroadcastType"] = 2052;
- values[valuesById[2053] = "GCEndArrangeCardBroadcastType"] = 2053;
- values[valuesById[2054] = "GCRestCardBroadcastType"] = 2054;
- values[valuesById[3001] = "CGChatType"] = 3001;
- values[valuesById[3002] = "GCChatType"] = 3002;
- values[valuesById[4001] = "GCErrorNoticeType"] = 4001;
- values[valuesById[4002] = "GCKickOutReasonType"] = 4002;
- return values;
- })();
- return messagetype;
- })();
- module.exports = $root;
|