You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

Message2Clients.pb.cc 334 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: Message2Clients.proto
  3. #include "Message2Clients.pb.h"
  4. #include <algorithm>
  5. #include <google/protobuf/io/coded_stream.h>
  6. #include <google/protobuf/extension_set.h>
  7. #include <google/protobuf/wire_format_lite.h>
  8. #include <google/protobuf/descriptor.h>
  9. #include <google/protobuf/generated_message_reflection.h>
  10. #include <google/protobuf/reflection_ops.h>
  11. #include <google/protobuf/wire_format.h>
  12. // @@protoc_insertion_point(includes)
  13. #include <google/protobuf/port_def.inc>
  14. PROTOBUF_PRAGMA_INIT_SEG
  15. namespace _pb = ::PROTOBUF_NAMESPACE_ID;
  16. namespace _pbi = _pb::internal;
  17. namespace protobuf
  18. {
  19. PROTOBUF_CONSTEXPR MessageOfStudent::MessageOfStudent(
  20. ::_pbi::ConstantInitialized
  21. ) :
  22. _impl_{
  23. /*decltype(_impl_.prop_)*/ {}, /*decltype(_impl_._prop_cached_byte_size_)*/ {0}, /*decltype(_impl_.buff_)*/ {}, /*decltype(_impl_._buff_cached_byte_size_)*/ {0}, /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.speed_)*/ 0, /*decltype(_impl_.determination_)*/ 0, /*decltype(_impl_.time_until_skill_available_)*/ 0, /*decltype(_impl_.fail_num_)*/ 0, /*decltype(_impl_.place_)*/ 0, /*decltype(_impl_.guid_)*/ int64_t{0}, /*decltype(_impl_.player_state_)*/ 0, /*decltype(_impl_.state_)*/ 0, /*decltype(_impl_.fail_time_)*/ 0, /*decltype(_impl_.emo_time_)*/ 0, /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_.view_range_)*/ 0, /*decltype(_impl_.radius_)*/ 0, /*decltype(_impl_.danger_alert_)*/ 0, /*decltype(_impl_.damage_)*/ 0, /*decltype(_impl_.score_)*/ 0, /*decltype(_impl_.treat_progress_)*/ 0, /*decltype(_impl_.rescue_progress_)*/ 0, /*decltype(_impl_.student_type_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
  24. {
  25. }
  26. struct MessageOfStudentDefaultTypeInternal
  27. {
  28. PROTOBUF_CONSTEXPR MessageOfStudentDefaultTypeInternal() :
  29. _instance(::_pbi::ConstantInitialized{})
  30. {
  31. }
  32. ~MessageOfStudentDefaultTypeInternal()
  33. {
  34. }
  35. union
  36. {
  37. MessageOfStudent _instance;
  38. };
  39. };
  40. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfStudentDefaultTypeInternal _MessageOfStudent_default_instance_;
  41. PROTOBUF_CONSTEXPR MessageOfTricker::MessageOfTricker(
  42. ::_pbi::ConstantInitialized
  43. ) :
  44. _impl_{
  45. /*decltype(_impl_.prop_)*/ {}, /*decltype(_impl_._prop_cached_byte_size_)*/ {0}, /*decltype(_impl_.buff_)*/ {}, /*decltype(_impl_._buff_cached_byte_size_)*/ {0}, /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.speed_)*/ 0, /*decltype(_impl_.damage_)*/ 0, /*decltype(_impl_.time_until_skill_available_)*/ 0, /*decltype(_impl_.place_)*/ 0, /*decltype(_impl_.tricker_type_)*/ 0, /*decltype(_impl_.guid_)*/ int64_t{0}, /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_.movable_)*/ false, /*decltype(_impl_.view_range_)*/ 0, /*decltype(_impl_.radius_)*/ 0, /*decltype(_impl_.player_state_)*/ 0, /*decltype(_impl_.trick_desire_)*/ 0, /*decltype(_impl_.class_volume_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
  46. {
  47. }
  48. struct MessageOfTrickerDefaultTypeInternal
  49. {
  50. PROTOBUF_CONSTEXPR MessageOfTrickerDefaultTypeInternal() :
  51. _instance(::_pbi::ConstantInitialized{})
  52. {
  53. }
  54. ~MessageOfTrickerDefaultTypeInternal()
  55. {
  56. }
  57. union
  58. {
  59. MessageOfTricker _instance;
  60. };
  61. };
  62. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfTrickerDefaultTypeInternal _MessageOfTricker_default_instance_;
  63. PROTOBUF_CONSTEXPR MessageOfBullet::MessageOfBullet(
  64. ::_pbi::ConstantInitialized
  65. ) :
  66. _impl_{
  67. /*decltype(_impl_.type_)*/ 0, /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.facing_direction_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.team_)*/ 0, /*decltype(_impl_.guid_)*/ int64_t{0}, /*decltype(_impl_.bomb_range_)*/ 0, /*decltype(_impl_.place_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
  68. {
  69. }
  70. struct MessageOfBulletDefaultTypeInternal
  71. {
  72. PROTOBUF_CONSTEXPR MessageOfBulletDefaultTypeInternal() :
  73. _instance(::_pbi::ConstantInitialized{})
  74. {
  75. }
  76. ~MessageOfBulletDefaultTypeInternal()
  77. {
  78. }
  79. union
  80. {
  81. MessageOfBullet _instance;
  82. };
  83. };
  84. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfBulletDefaultTypeInternal _MessageOfBullet_default_instance_;
  85. PROTOBUF_CONSTEXPR MessageOfBombedBullet::MessageOfBombedBullet(
  86. ::_pbi::ConstantInitialized
  87. ) :
  88. _impl_{
  89. /*decltype(_impl_.type_)*/ 0, /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.facing_direction_)*/ 0, /*decltype(_impl_.mapping_id_)*/ int64_t{0}, /*decltype(_impl_.bomb_range_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
  90. {
  91. }
  92. struct MessageOfBombedBulletDefaultTypeInternal
  93. {
  94. PROTOBUF_CONSTEXPR MessageOfBombedBulletDefaultTypeInternal() :
  95. _instance(::_pbi::ConstantInitialized{})
  96. {
  97. }
  98. ~MessageOfBombedBulletDefaultTypeInternal()
  99. {
  100. }
  101. union
  102. {
  103. MessageOfBombedBullet _instance;
  104. };
  105. };
  106. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfBombedBulletDefaultTypeInternal _MessageOfBombedBullet_default_instance_;
  107. PROTOBUF_CONSTEXPR MessageOfProp::MessageOfProp(
  108. ::_pbi::ConstantInitialized
  109. ) :
  110. _impl_{
  111. /*decltype(_impl_.type_)*/ 0, /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.facing_direction_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.place_)*/ 0, /*decltype(_impl_.guid_)*/ int64_t{0}, /*decltype(_impl_.size_)*/ 0, /*decltype(_impl_.is_moving_)*/ false, /*decltype(_impl_._cached_size_)*/ {}}
  112. {
  113. }
  114. struct MessageOfPropDefaultTypeInternal
  115. {
  116. PROTOBUF_CONSTEXPR MessageOfPropDefaultTypeInternal() :
  117. _instance(::_pbi::ConstantInitialized{})
  118. {
  119. }
  120. ~MessageOfPropDefaultTypeInternal()
  121. {
  122. }
  123. union
  124. {
  125. MessageOfProp _instance;
  126. };
  127. };
  128. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfPropDefaultTypeInternal _MessageOfProp_default_instance_;
  129. PROTOBUF_CONSTEXPR MessageOfPickedProp::MessageOfPickedProp(
  130. ::_pbi::ConstantInitialized
  131. ) :
  132. _impl_{
  133. /*decltype(_impl_.type_)*/ 0, /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.facing_direction_)*/ 0, /*decltype(_impl_.mapping_id_)*/ int64_t{0}, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
  134. {
  135. }
  136. struct MessageOfPickedPropDefaultTypeInternal
  137. {
  138. PROTOBUF_CONSTEXPR MessageOfPickedPropDefaultTypeInternal() :
  139. _instance(::_pbi::ConstantInitialized{})
  140. {
  141. }
  142. ~MessageOfPickedPropDefaultTypeInternal()
  143. {
  144. }
  145. union
  146. {
  147. MessageOfPickedProp _instance;
  148. };
  149. };
  150. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfPickedPropDefaultTypeInternal _MessageOfPickedProp_default_instance_;
  151. PROTOBUF_CONSTEXPR MessageOfClassroom::MessageOfClassroom(
  152. ::_pbi::ConstantInitialized
  153. ) :
  154. _impl_{
  155. /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.progress_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
  156. {
  157. }
  158. struct MessageOfClassroomDefaultTypeInternal
  159. {
  160. PROTOBUF_CONSTEXPR MessageOfClassroomDefaultTypeInternal() :
  161. _instance(::_pbi::ConstantInitialized{})
  162. {
  163. }
  164. ~MessageOfClassroomDefaultTypeInternal()
  165. {
  166. }
  167. union
  168. {
  169. MessageOfClassroom _instance;
  170. };
  171. };
  172. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfClassroomDefaultTypeInternal _MessageOfClassroom_default_instance_;
  173. PROTOBUF_CONSTEXPR MessageOfGate::MessageOfGate(
  174. ::_pbi::ConstantInitialized
  175. ) :
  176. _impl_{
  177. /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.progress_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
  178. {
  179. }
  180. struct MessageOfGateDefaultTypeInternal
  181. {
  182. PROTOBUF_CONSTEXPR MessageOfGateDefaultTypeInternal() :
  183. _instance(::_pbi::ConstantInitialized{})
  184. {
  185. }
  186. ~MessageOfGateDefaultTypeInternal()
  187. {
  188. }
  189. union
  190. {
  191. MessageOfGate _instance;
  192. };
  193. };
  194. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfGateDefaultTypeInternal _MessageOfGate_default_instance_;
  195. PROTOBUF_CONSTEXPR MessageOfDoor::MessageOfDoor(
  196. ::_pbi::ConstantInitialized
  197. ) :
  198. _impl_{
  199. /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.is_open_)*/ false, /*decltype(_impl_._cached_size_)*/ {}}
  200. {
  201. }
  202. struct MessageOfDoorDefaultTypeInternal
  203. {
  204. PROTOBUF_CONSTEXPR MessageOfDoorDefaultTypeInternal() :
  205. _instance(::_pbi::ConstantInitialized{})
  206. {
  207. }
  208. ~MessageOfDoorDefaultTypeInternal()
  209. {
  210. }
  211. union
  212. {
  213. MessageOfDoor _instance;
  214. };
  215. };
  216. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfDoorDefaultTypeInternal _MessageOfDoor_default_instance_;
  217. PROTOBUF_CONSTEXPR MessageOfChest::MessageOfChest(
  218. ::_pbi::ConstantInitialized
  219. ) :
  220. _impl_{
  221. /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.progress_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
  222. {
  223. }
  224. struct MessageOfChestDefaultTypeInternal
  225. {
  226. PROTOBUF_CONSTEXPR MessageOfChestDefaultTypeInternal() :
  227. _instance(::_pbi::ConstantInitialized{})
  228. {
  229. }
  230. ~MessageOfChestDefaultTypeInternal()
  231. {
  232. }
  233. union
  234. {
  235. MessageOfChest _instance;
  236. };
  237. };
  238. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfChestDefaultTypeInternal _MessageOfChest_default_instance_;
  239. PROTOBUF_CONSTEXPR MessageOfMapObj::MessageOfMapObj(
  240. ::_pbi::ConstantInitialized
  241. ) :
  242. _impl_{
  243. /*decltype(_impl_.message_of_map_obj_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_._oneof_case_)*/ {}}
  244. {
  245. }
  246. struct MessageOfMapObjDefaultTypeInternal
  247. {
  248. PROTOBUF_CONSTEXPR MessageOfMapObjDefaultTypeInternal() :
  249. _instance(::_pbi::ConstantInitialized{})
  250. {
  251. }
  252. ~MessageOfMapObjDefaultTypeInternal()
  253. {
  254. }
  255. union
  256. {
  257. MessageOfMapObj _instance;
  258. };
  259. };
  260. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfMapObjDefaultTypeInternal _MessageOfMapObj_default_instance_;
  261. PROTOBUF_CONSTEXPR MessageOfMap_Row::MessageOfMap_Row(
  262. ::_pbi::ConstantInitialized
  263. ) :
  264. _impl_{
  265. /*decltype(_impl_.col_)*/ {}, /*decltype(_impl_._col_cached_byte_size_)*/ {0}, /*decltype(_impl_._cached_size_)*/ {}}
  266. {
  267. }
  268. struct MessageOfMap_RowDefaultTypeInternal
  269. {
  270. PROTOBUF_CONSTEXPR MessageOfMap_RowDefaultTypeInternal() :
  271. _instance(::_pbi::ConstantInitialized{})
  272. {
  273. }
  274. ~MessageOfMap_RowDefaultTypeInternal()
  275. {
  276. }
  277. union
  278. {
  279. MessageOfMap_Row _instance;
  280. };
  281. };
  282. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfMap_RowDefaultTypeInternal _MessageOfMap_Row_default_instance_;
  283. PROTOBUF_CONSTEXPR MessageOfMap::MessageOfMap(
  284. ::_pbi::ConstantInitialized
  285. ) :
  286. _impl_{
  287. /*decltype(_impl_.row_)*/ {}, /*decltype(_impl_.map_obj_message_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}}
  288. {
  289. }
  290. struct MessageOfMapDefaultTypeInternal
  291. {
  292. PROTOBUF_CONSTEXPR MessageOfMapDefaultTypeInternal() :
  293. _instance(::_pbi::ConstantInitialized{})
  294. {
  295. }
  296. ~MessageOfMapDefaultTypeInternal()
  297. {
  298. }
  299. union
  300. {
  301. MessageOfMap _instance;
  302. };
  303. };
  304. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfMapDefaultTypeInternal _MessageOfMap_default_instance_;
  305. PROTOBUF_CONSTEXPR MessageOfObj::MessageOfObj(
  306. ::_pbi::ConstantInitialized
  307. ) :
  308. _impl_{
  309. /*decltype(_impl_.message_of_obj_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_._oneof_case_)*/ {}}
  310. {
  311. }
  312. struct MessageOfObjDefaultTypeInternal
  313. {
  314. PROTOBUF_CONSTEXPR MessageOfObjDefaultTypeInternal() :
  315. _instance(::_pbi::ConstantInitialized{})
  316. {
  317. }
  318. ~MessageOfObjDefaultTypeInternal()
  319. {
  320. }
  321. union
  322. {
  323. MessageOfObj _instance;
  324. };
  325. };
  326. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfObjDefaultTypeInternal _MessageOfObj_default_instance_;
  327. PROTOBUF_CONSTEXPR MessageOfAll::MessageOfAll(
  328. ::_pbi::ConstantInitialized
  329. ) :
  330. _impl_{
  331. /*decltype(_impl_.game_time_)*/ 0, /*decltype(_impl_.subject_left_)*/ 0, /*decltype(_impl_.student_graduated_)*/ 0, /*decltype(_impl_.student_quited_)*/ 0, /*decltype(_impl_.student_score_)*/ 0, /*decltype(_impl_.tricker_score_)*/ 0, /*decltype(_impl_.gate_opened_)*/ false, /*decltype(_impl_.hidden_gate_refreshed_)*/ false, /*decltype(_impl_.hidden_gate_opened_)*/ false, /*decltype(_impl_._cached_size_)*/ {}}
  332. {
  333. }
  334. struct MessageOfAllDefaultTypeInternal
  335. {
  336. PROTOBUF_CONSTEXPR MessageOfAllDefaultTypeInternal() :
  337. _instance(::_pbi::ConstantInitialized{})
  338. {
  339. }
  340. ~MessageOfAllDefaultTypeInternal()
  341. {
  342. }
  343. union
  344. {
  345. MessageOfAll _instance;
  346. };
  347. };
  348. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfAllDefaultTypeInternal _MessageOfAll_default_instance_;
  349. PROTOBUF_CONSTEXPR MessageToClient::MessageToClient(
  350. ::_pbi::ConstantInitialized
  351. ) :
  352. _impl_{
  353. /*decltype(_impl_.obj_message_)*/ {}, /*decltype(_impl_.map_message_)*/ nullptr, /*decltype(_impl_.all_message_)*/ nullptr, /*decltype(_impl_.game_state_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
  354. {
  355. }
  356. struct MessageToClientDefaultTypeInternal
  357. {
  358. PROTOBUF_CONSTEXPR MessageToClientDefaultTypeInternal() :
  359. _instance(::_pbi::ConstantInitialized{})
  360. {
  361. }
  362. ~MessageToClientDefaultTypeInternal()
  363. {
  364. }
  365. union
  366. {
  367. MessageToClient _instance;
  368. };
  369. };
  370. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageToClientDefaultTypeInternal _MessageToClient_default_instance_;
  371. PROTOBUF_CONSTEXPR MoveRes::MoveRes(
  372. ::_pbi::ConstantInitialized
  373. ) :
  374. _impl_{
  375. /*decltype(_impl_.actual_speed_)*/ int64_t{0}, /*decltype(_impl_.actual_angle_)*/ 0, /*decltype(_impl_.act_success_)*/ false, /*decltype(_impl_._cached_size_)*/ {}}
  376. {
  377. }
  378. struct MoveResDefaultTypeInternal
  379. {
  380. PROTOBUF_CONSTEXPR MoveResDefaultTypeInternal() :
  381. _instance(::_pbi::ConstantInitialized{})
  382. {
  383. }
  384. ~MoveResDefaultTypeInternal()
  385. {
  386. }
  387. union
  388. {
  389. MoveRes _instance;
  390. };
  391. };
  392. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveResDefaultTypeInternal _MoveRes_default_instance_;
  393. PROTOBUF_CONSTEXPR BoolRes::BoolRes(
  394. ::_pbi::ConstantInitialized
  395. ) :
  396. _impl_{
  397. /*decltype(_impl_.act_success_)*/ false, /*decltype(_impl_._cached_size_)*/ {}}
  398. {
  399. }
  400. struct BoolResDefaultTypeInternal
  401. {
  402. PROTOBUF_CONSTEXPR BoolResDefaultTypeInternal() :
  403. _instance(::_pbi::ConstantInitialized{})
  404. {
  405. }
  406. ~BoolResDefaultTypeInternal()
  407. {
  408. }
  409. union
  410. {
  411. BoolRes _instance;
  412. };
  413. };
  414. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BoolResDefaultTypeInternal _BoolRes_default_instance_;
  415. PROTOBUF_CONSTEXPR MsgRes::MsgRes(
  416. ::_pbi::ConstantInitialized
  417. ) :
  418. _impl_{
  419. /*decltype(_impl_.message_received_)*/ {&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}, /*decltype(_impl_.from_player_id_)*/ int64_t{0}, /*decltype(_impl_.have_message_)*/ false, /*decltype(_impl_._cached_size_)*/ {}}
  420. {
  421. }
  422. struct MsgResDefaultTypeInternal
  423. {
  424. PROTOBUF_CONSTEXPR MsgResDefaultTypeInternal() :
  425. _instance(::_pbi::ConstantInitialized{})
  426. {
  427. }
  428. ~MsgResDefaultTypeInternal()
  429. {
  430. }
  431. union
  432. {
  433. MsgRes _instance;
  434. };
  435. };
  436. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MsgResDefaultTypeInternal _MsgRes_default_instance_;
  437. } // namespace protobuf
  438. static ::_pb::Metadata file_level_metadata_Message2Clients_2eproto[19];
  439. static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_Message2Clients_2eproto = nullptr;
  440. static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_Message2Clients_2eproto = nullptr;
  441. const uint32_t TableStruct_Message2Clients_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  442. ~0u, // no _has_bits_
  443. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _internal_metadata_),
  444. ~0u, // no _extensions_
  445. ~0u, // no _oneof_case_
  446. ~0u, // no _weak_field_map_
  447. ~0u, // no _inlined_string_donated_
  448. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.x_),
  449. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.y_),
  450. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.speed_),
  451. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.determination_),
  452. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.fail_num_),
  453. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.time_until_skill_available_),
  454. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.place_),
  455. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.prop_),
  456. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.player_state_),
  457. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.guid_),
  458. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.state_),
  459. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.fail_time_),
  460. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.emo_time_),
  461. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.player_id_),
  462. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.view_range_),
  463. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.radius_),
  464. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.damage_),
  465. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.danger_alert_),
  466. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.score_),
  467. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.treat_progress_),
  468. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.rescue_progress_),
  469. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.student_type_),
  470. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.buff_),
  471. ~0u, // no _has_bits_
  472. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _internal_metadata_),
  473. ~0u, // no _extensions_
  474. ~0u, // no _oneof_case_
  475. ~0u, // no _weak_field_map_
  476. ~0u, // no _inlined_string_donated_
  477. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.x_),
  478. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.y_),
  479. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.speed_),
  480. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.damage_),
  481. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.time_until_skill_available_),
  482. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.place_),
  483. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.prop_),
  484. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.tricker_type_),
  485. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.guid_),
  486. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.movable_),
  487. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.player_id_),
  488. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.view_range_),
  489. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.radius_),
  490. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.player_state_),
  491. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.trick_desire_),
  492. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.class_volume_),
  493. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.buff_),
  494. ~0u, // no _has_bits_
  495. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _internal_metadata_),
  496. ~0u, // no _extensions_
  497. ~0u, // no _oneof_case_
  498. ~0u, // no _weak_field_map_
  499. ~0u, // no _inlined_string_donated_
  500. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.type_),
  501. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.x_),
  502. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.y_),
  503. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.facing_direction_),
  504. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.guid_),
  505. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.team_),
  506. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.place_),
  507. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.bomb_range_),
  508. ~0u, // no _has_bits_
  509. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _internal_metadata_),
  510. ~0u, // no _extensions_
  511. ~0u, // no _oneof_case_
  512. ~0u, // no _weak_field_map_
  513. ~0u, // no _inlined_string_donated_
  514. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _impl_.type_),
  515. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _impl_.x_),
  516. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _impl_.y_),
  517. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _impl_.facing_direction_),
  518. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _impl_.mapping_id_),
  519. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _impl_.bomb_range_),
  520. ~0u, // no _has_bits_
  521. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _internal_metadata_),
  522. ~0u, // no _extensions_
  523. ~0u, // no _oneof_case_
  524. ~0u, // no _weak_field_map_
  525. ~0u, // no _inlined_string_donated_
  526. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.type_),
  527. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.x_),
  528. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.y_),
  529. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.facing_direction_),
  530. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.guid_),
  531. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.place_),
  532. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.size_),
  533. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.is_moving_),
  534. ~0u, // no _has_bits_
  535. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _internal_metadata_),
  536. ~0u, // no _extensions_
  537. ~0u, // no _oneof_case_
  538. ~0u, // no _weak_field_map_
  539. ~0u, // no _inlined_string_donated_
  540. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _impl_.type_),
  541. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _impl_.x_),
  542. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _impl_.y_),
  543. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _impl_.facing_direction_),
  544. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _impl_.mapping_id_),
  545. ~0u, // no _has_bits_
  546. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfClassroom, _internal_metadata_),
  547. ~0u, // no _extensions_
  548. ~0u, // no _oneof_case_
  549. ~0u, // no _weak_field_map_
  550. ~0u, // no _inlined_string_donated_
  551. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfClassroom, _impl_.x_),
  552. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfClassroom, _impl_.y_),
  553. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfClassroom, _impl_.progress_),
  554. ~0u, // no _has_bits_
  555. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfGate, _internal_metadata_),
  556. ~0u, // no _extensions_
  557. ~0u, // no _oneof_case_
  558. ~0u, // no _weak_field_map_
  559. ~0u, // no _inlined_string_donated_
  560. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfGate, _impl_.x_),
  561. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfGate, _impl_.y_),
  562. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfGate, _impl_.progress_),
  563. ~0u, // no _has_bits_
  564. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfDoor, _internal_metadata_),
  565. ~0u, // no _extensions_
  566. ~0u, // no _oneof_case_
  567. ~0u, // no _weak_field_map_
  568. ~0u, // no _inlined_string_donated_
  569. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfDoor, _impl_.x_),
  570. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfDoor, _impl_.y_),
  571. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfDoor, _impl_.is_open_),
  572. ~0u, // no _has_bits_
  573. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfChest, _internal_metadata_),
  574. ~0u, // no _extensions_
  575. ~0u, // no _oneof_case_
  576. ~0u, // no _weak_field_map_
  577. ~0u, // no _inlined_string_donated_
  578. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfChest, _impl_.x_),
  579. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfChest, _impl_.y_),
  580. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfChest, _impl_.progress_),
  581. ~0u, // no _has_bits_
  582. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMapObj, _internal_metadata_),
  583. ~0u, // no _extensions_
  584. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMapObj, _impl_._oneof_case_[0]),
  585. ~0u, // no _weak_field_map_
  586. ~0u, // no _inlined_string_donated_
  587. ::_pbi::kInvalidFieldOffsetTag,
  588. ::_pbi::kInvalidFieldOffsetTag,
  589. ::_pbi::kInvalidFieldOffsetTag,
  590. ::_pbi::kInvalidFieldOffsetTag,
  591. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMapObj, _impl_.message_of_map_obj_),
  592. ~0u, // no _has_bits_
  593. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap_Row, _internal_metadata_),
  594. ~0u, // no _extensions_
  595. ~0u, // no _oneof_case_
  596. ~0u, // no _weak_field_map_
  597. ~0u, // no _inlined_string_donated_
  598. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap_Row, _impl_.col_),
  599. ~0u, // no _has_bits_
  600. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap, _internal_metadata_),
  601. ~0u, // no _extensions_
  602. ~0u, // no _oneof_case_
  603. ~0u, // no _weak_field_map_
  604. ~0u, // no _inlined_string_donated_
  605. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap, _impl_.row_),
  606. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap, _impl_.map_obj_message_),
  607. ~0u, // no _has_bits_
  608. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfObj, _internal_metadata_),
  609. ~0u, // no _extensions_
  610. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfObj, _impl_._oneof_case_[0]),
  611. ~0u, // no _weak_field_map_
  612. ~0u, // no _inlined_string_donated_
  613. ::_pbi::kInvalidFieldOffsetTag,
  614. ::_pbi::kInvalidFieldOffsetTag,
  615. ::_pbi::kInvalidFieldOffsetTag,
  616. ::_pbi::kInvalidFieldOffsetTag,
  617. ::_pbi::kInvalidFieldOffsetTag,
  618. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfObj, _impl_.message_of_obj_),
  619. ~0u, // no _has_bits_
  620. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfAll, _internal_metadata_),
  621. ~0u, // no _extensions_
  622. ~0u, // no _oneof_case_
  623. ~0u, // no _weak_field_map_
  624. ~0u, // no _inlined_string_donated_
  625. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfAll, _impl_.game_time_),
  626. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfAll, _impl_.subject_left_),
  627. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfAll, _impl_.student_graduated_),
  628. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfAll, _impl_.student_quited_),
  629. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfAll, _impl_.student_score_),
  630. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfAll, _impl_.tricker_score_),
  631. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfAll, _impl_.gate_opened_),
  632. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfAll, _impl_.hidden_gate_refreshed_),
  633. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfAll, _impl_.hidden_gate_opened_),
  634. ~0u, // no _has_bits_
  635. PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _internal_metadata_),
  636. ~0u, // no _extensions_
  637. ~0u, // no _oneof_case_
  638. ~0u, // no _weak_field_map_
  639. ~0u, // no _inlined_string_donated_
  640. PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _impl_.obj_message_),
  641. PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _impl_.map_message_),
  642. PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _impl_.game_state_),
  643. PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _impl_.all_message_),
  644. ~0u, // no _has_bits_
  645. PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, _internal_metadata_),
  646. ~0u, // no _extensions_
  647. ~0u, // no _oneof_case_
  648. ~0u, // no _weak_field_map_
  649. ~0u, // no _inlined_string_donated_
  650. PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, _impl_.actual_speed_),
  651. PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, _impl_.actual_angle_),
  652. PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, _impl_.act_success_),
  653. ~0u, // no _has_bits_
  654. PROTOBUF_FIELD_OFFSET(::protobuf::BoolRes, _internal_metadata_),
  655. ~0u, // no _extensions_
  656. ~0u, // no _oneof_case_
  657. ~0u, // no _weak_field_map_
  658. ~0u, // no _inlined_string_donated_
  659. PROTOBUF_FIELD_OFFSET(::protobuf::BoolRes, _impl_.act_success_),
  660. ~0u, // no _has_bits_
  661. PROTOBUF_FIELD_OFFSET(::protobuf::MsgRes, _internal_metadata_),
  662. ~0u, // no _extensions_
  663. ~0u, // no _oneof_case_
  664. ~0u, // no _weak_field_map_
  665. ~0u, // no _inlined_string_donated_
  666. PROTOBUF_FIELD_OFFSET(::protobuf::MsgRes, _impl_.have_message_),
  667. PROTOBUF_FIELD_OFFSET(::protobuf::MsgRes, _impl_.from_player_id_),
  668. PROTOBUF_FIELD_OFFSET(::protobuf::MsgRes, _impl_.message_received_),
  669. };
  670. static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  671. {0, -1, -1, sizeof(::protobuf::MessageOfStudent)},
  672. {29, -1, -1, sizeof(::protobuf::MessageOfTricker)},
  673. {52, -1, -1, sizeof(::protobuf::MessageOfBullet)},
  674. {66, -1, -1, sizeof(::protobuf::MessageOfBombedBullet)},
  675. {78, -1, -1, sizeof(::protobuf::MessageOfProp)},
  676. {92, -1, -1, sizeof(::protobuf::MessageOfPickedProp)},
  677. {103, -1, -1, sizeof(::protobuf::MessageOfClassroom)},
  678. {112, -1, -1, sizeof(::protobuf::MessageOfGate)},
  679. {121, -1, -1, sizeof(::protobuf::MessageOfDoor)},
  680. {130, -1, -1, sizeof(::protobuf::MessageOfChest)},
  681. {139, -1, -1, sizeof(::protobuf::MessageOfMapObj)},
  682. {150, -1, -1, sizeof(::protobuf::MessageOfMap_Row)},
  683. {157, -1, -1, sizeof(::protobuf::MessageOfMap)},
  684. {165, -1, -1, sizeof(::protobuf::MessageOfObj)},
  685. {177, -1, -1, sizeof(::protobuf::MessageOfAll)},
  686. {192, -1, -1, sizeof(::protobuf::MessageToClient)},
  687. {202, -1, -1, sizeof(::protobuf::MoveRes)},
  688. {211, -1, -1, sizeof(::protobuf::BoolRes)},
  689. {218, -1, -1, sizeof(::protobuf::MsgRes)},
  690. };
  691. static const ::_pb::Message* const file_default_instances[] = {
  692. &::protobuf::_MessageOfStudent_default_instance_._instance,
  693. &::protobuf::_MessageOfTricker_default_instance_._instance,
  694. &::protobuf::_MessageOfBullet_default_instance_._instance,
  695. &::protobuf::_MessageOfBombedBullet_default_instance_._instance,
  696. &::protobuf::_MessageOfProp_default_instance_._instance,
  697. &::protobuf::_MessageOfPickedProp_default_instance_._instance,
  698. &::protobuf::_MessageOfClassroom_default_instance_._instance,
  699. &::protobuf::_MessageOfGate_default_instance_._instance,
  700. &::protobuf::_MessageOfDoor_default_instance_._instance,
  701. &::protobuf::_MessageOfChest_default_instance_._instance,
  702. &::protobuf::_MessageOfMapObj_default_instance_._instance,
  703. &::protobuf::_MessageOfMap_Row_default_instance_._instance,
  704. &::protobuf::_MessageOfMap_default_instance_._instance,
  705. &::protobuf::_MessageOfObj_default_instance_._instance,
  706. &::protobuf::_MessageOfAll_default_instance_._instance,
  707. &::protobuf::_MessageToClient_default_instance_._instance,
  708. &::protobuf::_MoveRes_default_instance_._instance,
  709. &::protobuf::_BoolRes_default_instance_._instance,
  710. &::protobuf::_MsgRes_default_instance_._instance,
  711. };
  712. const char descriptor_table_protodef_Message2Clients_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  713. "\n\025Message2Clients.proto\022\010protobuf\032\021Messa"
  714. "geType.proto\"\303\004\n\020MessageOfStudent\022\t\n\001x\030\001"
  715. " \001(\005\022\t\n\001y\030\002 \001(\005\022\r\n\005speed\030\003 \001(\005\022\025\n\rdeterm"
  716. "ination\030\004 \001(\005\022\020\n\010fail_num\030\005 \001(\005\022\"\n\032time_"
  717. "until_skill_available\030\006 \001(\001\022\"\n\005place\030\007 \001"
  718. "(\0162\023.protobuf.PlaceType\022 \n\004prop\030\010 \003(\0162\022."
  719. "protobuf.PropType\022+\n\014player_state\030\t \001(\0162"
  720. "\025.protobuf.PlayerState\022\014\n\004guid\030\n \001(\003\022$\n\005"
  721. "state\030\013 \001(\0162\025.protobuf.PlayerState\022\021\n\tfa"
  722. "il_time\030\014 \001(\001\022\020\n\010emo_time\030\016 \001(\001\022\021\n\tplaye"
  723. "r_id\030\017 \001(\003\022\022\n\nview_range\030\020 \001(\005\022\016\n\006radius"
  724. "\030\021 \001(\005\022\016\n\006damage\030\022 \001(\005\022\024\n\014danger_alert\030\023"
  725. " \001(\001\022\r\n\005score\030\024 \001(\005\022\026\n\016treat_progress\030\025 "
  726. "\001(\005\022\027\n\017rescue_progress\030\026 \001(\005\022+\n\014student_"
  727. "type\030\027 \001(\0162\025.protobuf.StudentType\022\'\n\004buf"
  728. "f\030\030 \003(\0162\031.protobuf.StudentBuffType\"\266\003\n\020M"
  729. "essageOfTricker\022\t\n\001x\030\001 \001(\005\022\t\n\001y\030\002 \001(\005\022\r\n"
  730. "\005speed\030\003 \001(\005\022\016\n\006damage\030\004 \001(\005\022\"\n\032time_unt"
  731. "il_skill_available\030\005 \001(\001\022\"\n\005place\030\006 \001(\0162"
  732. "\023.protobuf.PlaceType\022 \n\004prop\030\007 \003(\0162\022.pro"
  733. "tobuf.PropType\022+\n\014tricker_type\030\010 \001(\0162\025.p"
  734. "rotobuf.TrickerType\022\014\n\004guid\030\t \001(\003\022\017\n\007mov"
  735. "able\030\n \001(\010\022\021\n\tplayer_id\030\013 \001(\003\022\022\n\nview_ra"
  736. "nge\030\014 \001(\005\022\016\n\006radius\030\r \001(\005\022+\n\014player_stat"
  737. "e\030\016 \001(\0162\025.protobuf.PlayerState\022\024\n\014trick_"
  738. "desire\030\017 \001(\001\022\024\n\014class_volume\030\020 \001(\001\022\'\n\004bu"
  739. "ff\030\021 \003(\0162\031.protobuf.TrickerBuffType\"\317\001\n\017"
  740. "MessageOfBullet\022\"\n\004type\030\001 \001(\0162\024.protobuf"
  741. ".BulletType\022\t\n\001x\030\002 \001(\005\022\t\n\001y\030\003 \001(\005\022\030\n\020fac"
  742. "ing_direction\030\004 \001(\001\022\014\n\004guid\030\005 \001(\003\022\"\n\004tea"
  743. "m\030\006 \001(\0162\024.protobuf.PlayerType\022\"\n\005place\030\007"
  744. " \001(\0162\023.protobuf.PlaceType\022\022\n\nbomb_range\030"
  745. "\010 \001(\001\"\223\001\n\025MessageOfBombedBullet\022\"\n\004type\030"
  746. "\001 \001(\0162\024.protobuf.BulletType\022\t\n\001x\030\002 \001(\005\022\t"
  747. "\n\001y\030\003 \001(\005\022\030\n\020facing_direction\030\004 \001(\001\022\022\n\nm"
  748. "apping_id\030\005 \001(\003\022\022\n\nbomb_range\030\006 \001(\001\"\264\001\n\r"
  749. "MessageOfProp\022 \n\004type\030\001 \001(\0162\022.protobuf.P"
  750. "ropType\022\t\n\001x\030\002 \001(\005\022\t\n\001y\030\003 \001(\005\022\030\n\020facing_"
  751. "direction\030\004 \001(\001\022\014\n\004guid\030\005 \001(\003\022\"\n\005place\030\006"
  752. " \001(\0162\023.protobuf.PlaceType\022\014\n\004size\030\007 \001(\005\022"
  753. "\021\n\tis_moving\030\010 \001(\010\"{\n\023MessageOfPickedPro"
  754. "p\022 \n\004type\030\001 \001(\0162\022.protobuf.PropType\022\t\n\001x"
  755. "\030\002 \001(\005\022\t\n\001y\030\003 \001(\005\022\030\n\020facing_direction\030\004 "
  756. "\001(\001\022\022\n\nmapping_id\030\005 \001(\003\"<\n\022MessageOfClas"
  757. "sroom\022\t\n\001x\030\001 \001(\005\022\t\n\001y\030\002 \001(\005\022\020\n\010progress\030"
  758. "\003 \001(\005\"7\n\rMessageOfGate\022\t\n\001x\030\001 \001(\005\022\t\n\001y\030\002"
  759. " \001(\005\022\020\n\010progress\030\003 \001(\005\"6\n\rMessageOfDoor\022"
  760. "\t\n\001x\030\001 \001(\005\022\t\n\001y\030\002 \001(\005\022\017\n\007is_open\030\003 \001(\010\"8"
  761. "\n\016MessageOfChest\022\t\n\001x\030\001 \001(\005\022\t\n\001y\030\002 \001(\005\022\020"
  762. "\n\010progress\030\003 \001(\005\"\367\001\n\017MessageOfMapObj\0229\n\021"
  763. "classroom_message\030\001 \001(\0132\034.protobuf.Messa"
  764. "geOfClassroomH\000\022/\n\014door_message\030\002 \001(\0132\027."
  765. "protobuf.MessageOfDoorH\000\022/\n\014gate_message"
  766. "\030\003 \001(\0132\027.protobuf.MessageOfGateH\000\0221\n\rche"
  767. "st_message\030\004 \001(\0132\030.protobuf.MessageOfChe"
  768. "stH\000B\024\n\022message_of_map_obj\"\224\001\n\014MessageOf"
  769. "Map\022\'\n\003row\030\002 \003(\0132\032.protobuf.MessageOfMap"
  770. ".Row\0222\n\017map_obj_message\030\003 \003(\0132\031.protobuf"
  771. ".MessageOfMapObj\032\'\n\003Row\022 \n\003col\030\001 \003(\0162\023.p"
  772. "rotobuf.PlaceType\"\266\002\n\014MessageOfObj\0225\n\017st"
  773. "udent_message\030\001 \001(\0132\032.protobuf.MessageOf"
  774. "StudentH\000\0225\n\017tricker_message\030\002 \001(\0132\032.pro"
  775. "tobuf.MessageOfTrickerH\000\022/\n\014prop_message"
  776. "\030\003 \001(\0132\027.protobuf.MessageOfPropH\000\0223\n\016bul"
  777. "let_message\030\004 \001(\0132\031.protobuf.MessageOfBu"
  778. "lletH\000\022@\n\025bombed_bullet_message\030\005 \001(\0132\037."
  779. "protobuf.MessageOfBombedBulletH\000B\020\n\016mess"
  780. "age_of_obj\"\350\001\n\014MessageOfAll\022\021\n\tgame_time"
  781. "\030\001 \001(\005\022\024\n\014subject_left\030\002 \001(\005\022\031\n\021student_"
  782. "graduated\030\003 \001(\005\022\026\n\016student_quited\030\004 \001(\005\022"
  783. "\025\n\rstudent_score\030\005 \001(\005\022\025\n\rtricker_score\030"
  784. "\006 \001(\005\022\023\n\013gate_opened\030\007 \001(\010\022\035\n\025hidden_gat"
  785. "e_refreshed\030\010 \001(\010\022\032\n\022hidden_gate_opened\030"
  786. "\t \001(\010\"\301\001\n\017MessageToClient\022+\n\013obj_message"
  787. "\030\001 \003(\0132\026.protobuf.MessageOfObj\022+\n\013map_me"
  788. "ssage\030\002 \001(\0132\026.protobuf.MessageOfMap\022\'\n\ng"
  789. "ame_state\030\003 \001(\0162\023.protobuf.GameState\022+\n\013"
  790. "all_message\030\004 \001(\0132\026.protobuf.MessageOfAl"
  791. "l\"J\n\007MoveRes\022\024\n\014actual_speed\030\001 \001(\003\022\024\n\014ac"
  792. "tual_angle\030\002 \001(\001\022\023\n\013act_success\030\003 \001(\010\"\036\n"
  793. "\007BoolRes\022\023\n\013act_success\030\001 \001(\010\"P\n\006MsgRes\022"
  794. "\024\n\014have_message\030\001 \001(\010\022\026\n\016from_player_id\030"
  795. "\002 \001(\003\022\030\n\020message_received\030\003 \001(\tb\006proto3";
  796. static const ::_pbi::DescriptorTable* const descriptor_table_Message2Clients_2eproto_deps[1] = {
  797. &::descriptor_table_MessageType_2eproto,
  798. };
  799. static ::_pbi::once_flag descriptor_table_Message2Clients_2eproto_once;
  800. const ::_pbi::DescriptorTable descriptor_table_Message2Clients_2eproto = {
  801. false,
  802. false,
  803. 3319,
  804. descriptor_table_protodef_Message2Clients_2eproto,
  805. "Message2Clients.proto",
  806. &descriptor_table_Message2Clients_2eproto_once,
  807. descriptor_table_Message2Clients_2eproto_deps,
  808. 1,
  809. 19,
  810. schemas,
  811. file_default_instances,
  812. TableStruct_Message2Clients_2eproto::offsets,
  813. file_level_metadata_Message2Clients_2eproto,
  814. file_level_enum_descriptors_Message2Clients_2eproto,
  815. file_level_service_descriptors_Message2Clients_2eproto,
  816. };
  817. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_Message2Clients_2eproto_getter()
  818. {
  819. return &descriptor_table_Message2Clients_2eproto;
  820. }
  821. // Force running AddDescriptors() at dynamic initialization time.
  822. PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_Message2Clients_2eproto(&descriptor_table_Message2Clients_2eproto);
  823. namespace protobuf
  824. {
  825. // ===================================================================
  826. class MessageOfStudent::_Internal
  827. {
  828. public:
  829. };
  830. MessageOfStudent::MessageOfStudent(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  831. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  832. {
  833. SharedCtor(arena, is_message_owned);
  834. // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfStudent)
  835. }
  836. MessageOfStudent::MessageOfStudent(const MessageOfStudent& from) :
  837. ::PROTOBUF_NAMESPACE_ID::Message()
  838. {
  839. MessageOfStudent* const _this = this;
  840. (void)_this;
  841. new (&_impl_) Impl_{
  842. decltype(_impl_.prop_){from._impl_.prop_}, /*decltype(_impl_._prop_cached_byte_size_)*/ {0}, decltype(_impl_.buff_){from._impl_.buff_}, /*decltype(_impl_._buff_cached_byte_size_)*/ {0}, decltype(_impl_.x_){}, decltype(_impl_.y_){}, decltype(_impl_.speed_){}, decltype(_impl_.determination_){}, decltype(_impl_.time_until_skill_available_){}, decltype(_impl_.fail_num_){}, decltype(_impl_.place_){}, decltype(_impl_.guid_){}, decltype(_impl_.player_state_){}, decltype(_impl_.state_){}, decltype(_impl_.fail_time_){}, decltype(_impl_.emo_time_){}, decltype(_impl_.player_id_){}, decltype(_impl_.view_range_){}, decltype(_impl_.radius_){}, decltype(_impl_.danger_alert_){}, decltype(_impl_.damage_){}, decltype(_impl_.score_){}, decltype(_impl_.treat_progress_){}, decltype(_impl_.rescue_progress_){}, decltype(_impl_.student_type_){}, /*decltype(_impl_._cached_size_)*/ {}};
  843. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  844. ::memcpy(&_impl_.x_, &from._impl_.x_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.student_type_) - reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.student_type_));
  845. // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfStudent)
  846. }
  847. inline void MessageOfStudent::SharedCtor(
  848. ::_pb::Arena* arena, bool is_message_owned
  849. )
  850. {
  851. (void)arena;
  852. (void)is_message_owned;
  853. new (&_impl_) Impl_{
  854. decltype(_impl_.prop_){arena}, /*decltype(_impl_._prop_cached_byte_size_)*/ {0}, decltype(_impl_.buff_){arena}, /*decltype(_impl_._buff_cached_byte_size_)*/ {0}, decltype(_impl_.x_){0}, decltype(_impl_.y_){0}, decltype(_impl_.speed_){0}, decltype(_impl_.determination_){0}, decltype(_impl_.time_until_skill_available_){0}, decltype(_impl_.fail_num_){0}, decltype(_impl_.place_){0}, decltype(_impl_.guid_){int64_t{0}}, decltype(_impl_.player_state_){0}, decltype(_impl_.state_){0}, decltype(_impl_.fail_time_){0}, decltype(_impl_.emo_time_){0}, decltype(_impl_.player_id_){int64_t{0}}, decltype(_impl_.view_range_){0}, decltype(_impl_.radius_){0}, decltype(_impl_.danger_alert_){0}, decltype(_impl_.damage_){0}, decltype(_impl_.score_){0}, decltype(_impl_.treat_progress_){0}, decltype(_impl_.rescue_progress_){0}, decltype(_impl_.student_type_){0}, /*decltype(_impl_._cached_size_)*/ {}};
  855. }
  856. MessageOfStudent::~MessageOfStudent()
  857. {
  858. // @@protoc_insertion_point(destructor:protobuf.MessageOfStudent)
  859. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  860. {
  861. (void)arena;
  862. return;
  863. }
  864. SharedDtor();
  865. }
  866. inline void MessageOfStudent::SharedDtor()
  867. {
  868. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  869. _impl_.prop_.~RepeatedField();
  870. _impl_.buff_.~RepeatedField();
  871. }
  872. void MessageOfStudent::SetCachedSize(int size) const
  873. {
  874. _impl_._cached_size_.Set(size);
  875. }
  876. void MessageOfStudent::Clear()
  877. {
  878. // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfStudent)
  879. uint32_t cached_has_bits = 0;
  880. // Prevent compiler warnings about cached_has_bits being unused
  881. (void)cached_has_bits;
  882. _impl_.prop_.Clear();
  883. _impl_.buff_.Clear();
  884. ::memset(&_impl_.x_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.student_type_) - reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.student_type_));
  885. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  886. }
  887. const char* MessageOfStudent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  888. {
  889. #define CHK_(x) \
  890. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  891. goto failure
  892. while (!ctx->Done(&ptr))
  893. {
  894. uint32_t tag;
  895. ptr = ::_pbi::ReadTag(ptr, &tag);
  896. switch (tag >> 3)
  897. {
  898. // int32 x = 1;
  899. case 1:
  900. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  901. {
  902. _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  903. CHK_(ptr);
  904. }
  905. else
  906. goto handle_unusual;
  907. continue;
  908. // int32 y = 2;
  909. case 2:
  910. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  911. {
  912. _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  913. CHK_(ptr);
  914. }
  915. else
  916. goto handle_unusual;
  917. continue;
  918. // int32 speed = 3;
  919. case 3:
  920. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
  921. {
  922. _impl_.speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  923. CHK_(ptr);
  924. }
  925. else
  926. goto handle_unusual;
  927. continue;
  928. // int32 determination = 4;
  929. case 4:
  930. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32))
  931. {
  932. _impl_.determination_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  933. CHK_(ptr);
  934. }
  935. else
  936. goto handle_unusual;
  937. continue;
  938. // int32 fail_num = 5;
  939. case 5:
  940. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40))
  941. {
  942. _impl_.fail_num_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  943. CHK_(ptr);
  944. }
  945. else
  946. goto handle_unusual;
  947. continue;
  948. // double time_until_skill_available = 6;
  949. case 6:
  950. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 49))
  951. {
  952. _impl_.time_until_skill_available_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  953. ptr += sizeof(double);
  954. }
  955. else
  956. goto handle_unusual;
  957. continue;
  958. // .protobuf.PlaceType place = 7;
  959. case 7:
  960. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56))
  961. {
  962. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  963. CHK_(ptr);
  964. _internal_set_place(static_cast<::protobuf::PlaceType>(val));
  965. }
  966. else
  967. goto handle_unusual;
  968. continue;
  969. // repeated .protobuf.PropType prop = 8;
  970. case 8:
  971. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66))
  972. {
  973. ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_prop(), ptr, ctx);
  974. CHK_(ptr);
  975. }
  976. else if (static_cast<uint8_t>(tag) == 64)
  977. {
  978. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  979. CHK_(ptr);
  980. _internal_add_prop(static_cast<::protobuf::PropType>(val));
  981. }
  982. else
  983. goto handle_unusual;
  984. continue;
  985. // .protobuf.PlayerState player_state = 9;
  986. case 9:
  987. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72))
  988. {
  989. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  990. CHK_(ptr);
  991. _internal_set_player_state(static_cast<::protobuf::PlayerState>(val));
  992. }
  993. else
  994. goto handle_unusual;
  995. continue;
  996. // int64 guid = 10;
  997. case 10:
  998. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80))
  999. {
  1000. _impl_.guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1001. CHK_(ptr);
  1002. }
  1003. else
  1004. goto handle_unusual;
  1005. continue;
  1006. // .protobuf.PlayerState state = 11;
  1007. case 11:
  1008. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 88))
  1009. {
  1010. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1011. CHK_(ptr);
  1012. _internal_set_state(static_cast<::protobuf::PlayerState>(val));
  1013. }
  1014. else
  1015. goto handle_unusual;
  1016. continue;
  1017. // double fail_time = 12;
  1018. case 12:
  1019. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 97))
  1020. {
  1021. _impl_.fail_time_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  1022. ptr += sizeof(double);
  1023. }
  1024. else
  1025. goto handle_unusual;
  1026. continue;
  1027. // double emo_time = 14;
  1028. case 14:
  1029. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 113))
  1030. {
  1031. _impl_.emo_time_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  1032. ptr += sizeof(double);
  1033. }
  1034. else
  1035. goto handle_unusual;
  1036. continue;
  1037. // int64 player_id = 15;
  1038. case 15:
  1039. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 120))
  1040. {
  1041. _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1042. CHK_(ptr);
  1043. }
  1044. else
  1045. goto handle_unusual;
  1046. continue;
  1047. // int32 view_range = 16;
  1048. case 16:
  1049. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 128))
  1050. {
  1051. _impl_.view_range_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1052. CHK_(ptr);
  1053. }
  1054. else
  1055. goto handle_unusual;
  1056. continue;
  1057. // int32 radius = 17;
  1058. case 17:
  1059. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 136))
  1060. {
  1061. _impl_.radius_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1062. CHK_(ptr);
  1063. }
  1064. else
  1065. goto handle_unusual;
  1066. continue;
  1067. // int32 damage = 18;
  1068. case 18:
  1069. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 144))
  1070. {
  1071. _impl_.damage_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1072. CHK_(ptr);
  1073. }
  1074. else
  1075. goto handle_unusual;
  1076. continue;
  1077. // double danger_alert = 19;
  1078. case 19:
  1079. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 153))
  1080. {
  1081. _impl_.danger_alert_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  1082. ptr += sizeof(double);
  1083. }
  1084. else
  1085. goto handle_unusual;
  1086. continue;
  1087. // int32 score = 20;
  1088. case 20:
  1089. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 160))
  1090. {
  1091. _impl_.score_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1092. CHK_(ptr);
  1093. }
  1094. else
  1095. goto handle_unusual;
  1096. continue;
  1097. // int32 treat_progress = 21;
  1098. case 21:
  1099. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 168))
  1100. {
  1101. _impl_.treat_progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1102. CHK_(ptr);
  1103. }
  1104. else
  1105. goto handle_unusual;
  1106. continue;
  1107. // int32 rescue_progress = 22;
  1108. case 22:
  1109. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 176))
  1110. {
  1111. _impl_.rescue_progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1112. CHK_(ptr);
  1113. }
  1114. else
  1115. goto handle_unusual;
  1116. continue;
  1117. // .protobuf.StudentType student_type = 23;
  1118. case 23:
  1119. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 184))
  1120. {
  1121. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1122. CHK_(ptr);
  1123. _internal_set_student_type(static_cast<::protobuf::StudentType>(val));
  1124. }
  1125. else
  1126. goto handle_unusual;
  1127. continue;
  1128. // repeated .protobuf.StudentBuffType buff = 24;
  1129. case 24:
  1130. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 194))
  1131. {
  1132. ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_buff(), ptr, ctx);
  1133. CHK_(ptr);
  1134. }
  1135. else if (static_cast<uint8_t>(tag) == 192)
  1136. {
  1137. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1138. CHK_(ptr);
  1139. _internal_add_buff(static_cast<::protobuf::StudentBuffType>(val));
  1140. }
  1141. else
  1142. goto handle_unusual;
  1143. continue;
  1144. default:
  1145. goto handle_unusual;
  1146. } // switch
  1147. handle_unusual:
  1148. if ((tag == 0) || ((tag & 7) == 4))
  1149. {
  1150. CHK_(ptr);
  1151. ctx->SetLastTag(tag);
  1152. goto message_done;
  1153. }
  1154. ptr = UnknownFieldParse(
  1155. tag,
  1156. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1157. ptr,
  1158. ctx
  1159. );
  1160. CHK_(ptr != nullptr);
  1161. } // while
  1162. message_done:
  1163. return ptr;
  1164. failure:
  1165. ptr = nullptr;
  1166. goto message_done;
  1167. #undef CHK_
  1168. }
  1169. uint8_t* MessageOfStudent::_InternalSerialize(
  1170. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  1171. ) const
  1172. {
  1173. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfStudent)
  1174. uint32_t cached_has_bits = 0;
  1175. (void)cached_has_bits;
  1176. // int32 x = 1;
  1177. if (this->_internal_x() != 0)
  1178. {
  1179. target = stream->EnsureSpace(target);
  1180. target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target);
  1181. }
  1182. // int32 y = 2;
  1183. if (this->_internal_y() != 0)
  1184. {
  1185. target = stream->EnsureSpace(target);
  1186. target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target);
  1187. }
  1188. // int32 speed = 3;
  1189. if (this->_internal_speed() != 0)
  1190. {
  1191. target = stream->EnsureSpace(target);
  1192. target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_speed(), target);
  1193. }
  1194. // int32 determination = 4;
  1195. if (this->_internal_determination() != 0)
  1196. {
  1197. target = stream->EnsureSpace(target);
  1198. target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_determination(), target);
  1199. }
  1200. // int32 fail_num = 5;
  1201. if (this->_internal_fail_num() != 0)
  1202. {
  1203. target = stream->EnsureSpace(target);
  1204. target = ::_pbi::WireFormatLite::WriteInt32ToArray(5, this->_internal_fail_num(), target);
  1205. }
  1206. // double time_until_skill_available = 6;
  1207. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1208. double tmp_time_until_skill_available = this->_internal_time_until_skill_available();
  1209. uint64_t raw_time_until_skill_available;
  1210. memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available));
  1211. if (raw_time_until_skill_available != 0)
  1212. {
  1213. target = stream->EnsureSpace(target);
  1214. target = ::_pbi::WireFormatLite::WriteDoubleToArray(6, this->_internal_time_until_skill_available(), target);
  1215. }
  1216. // .protobuf.PlaceType place = 7;
  1217. if (this->_internal_place() != 0)
  1218. {
  1219. target = stream->EnsureSpace(target);
  1220. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  1221. 7, this->_internal_place(), target
  1222. );
  1223. }
  1224. // repeated .protobuf.PropType prop = 8;
  1225. {
  1226. int byte_size = _impl_._prop_cached_byte_size_.load(std::memory_order_relaxed);
  1227. if (byte_size > 0)
  1228. {
  1229. target = stream->WriteEnumPacked(
  1230. 8, _impl_.prop_, byte_size, target
  1231. );
  1232. }
  1233. }
  1234. // .protobuf.PlayerState player_state = 9;
  1235. if (this->_internal_player_state() != 0)
  1236. {
  1237. target = stream->EnsureSpace(target);
  1238. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  1239. 9, this->_internal_player_state(), target
  1240. );
  1241. }
  1242. // int64 guid = 10;
  1243. if (this->_internal_guid() != 0)
  1244. {
  1245. target = stream->EnsureSpace(target);
  1246. target = ::_pbi::WireFormatLite::WriteInt64ToArray(10, this->_internal_guid(), target);
  1247. }
  1248. // .protobuf.PlayerState state = 11;
  1249. if (this->_internal_state() != 0)
  1250. {
  1251. target = stream->EnsureSpace(target);
  1252. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  1253. 11, this->_internal_state(), target
  1254. );
  1255. }
  1256. // double fail_time = 12;
  1257. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1258. double tmp_fail_time = this->_internal_fail_time();
  1259. uint64_t raw_fail_time;
  1260. memcpy(&raw_fail_time, &tmp_fail_time, sizeof(tmp_fail_time));
  1261. if (raw_fail_time != 0)
  1262. {
  1263. target = stream->EnsureSpace(target);
  1264. target = ::_pbi::WireFormatLite::WriteDoubleToArray(12, this->_internal_fail_time(), target);
  1265. }
  1266. // double emo_time = 14;
  1267. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1268. double tmp_emo_time = this->_internal_emo_time();
  1269. uint64_t raw_emo_time;
  1270. memcpy(&raw_emo_time, &tmp_emo_time, sizeof(tmp_emo_time));
  1271. if (raw_emo_time != 0)
  1272. {
  1273. target = stream->EnsureSpace(target);
  1274. target = ::_pbi::WireFormatLite::WriteDoubleToArray(14, this->_internal_emo_time(), target);
  1275. }
  1276. // int64 player_id = 15;
  1277. if (this->_internal_player_id() != 0)
  1278. {
  1279. target = stream->EnsureSpace(target);
  1280. target = ::_pbi::WireFormatLite::WriteInt64ToArray(15, this->_internal_player_id(), target);
  1281. }
  1282. // int32 view_range = 16;
  1283. if (this->_internal_view_range() != 0)
  1284. {
  1285. target = stream->EnsureSpace(target);
  1286. target = ::_pbi::WireFormatLite::WriteInt32ToArray(16, this->_internal_view_range(), target);
  1287. }
  1288. // int32 radius = 17;
  1289. if (this->_internal_radius() != 0)
  1290. {
  1291. target = stream->EnsureSpace(target);
  1292. target = ::_pbi::WireFormatLite::WriteInt32ToArray(17, this->_internal_radius(), target);
  1293. }
  1294. // int32 damage = 18;
  1295. if (this->_internal_damage() != 0)
  1296. {
  1297. target = stream->EnsureSpace(target);
  1298. target = ::_pbi::WireFormatLite::WriteInt32ToArray(18, this->_internal_damage(), target);
  1299. }
  1300. // double danger_alert = 19;
  1301. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1302. double tmp_danger_alert = this->_internal_danger_alert();
  1303. uint64_t raw_danger_alert;
  1304. memcpy(&raw_danger_alert, &tmp_danger_alert, sizeof(tmp_danger_alert));
  1305. if (raw_danger_alert != 0)
  1306. {
  1307. target = stream->EnsureSpace(target);
  1308. target = ::_pbi::WireFormatLite::WriteDoubleToArray(19, this->_internal_danger_alert(), target);
  1309. }
  1310. // int32 score = 20;
  1311. if (this->_internal_score() != 0)
  1312. {
  1313. target = stream->EnsureSpace(target);
  1314. target = ::_pbi::WireFormatLite::WriteInt32ToArray(20, this->_internal_score(), target);
  1315. }
  1316. // int32 treat_progress = 21;
  1317. if (this->_internal_treat_progress() != 0)
  1318. {
  1319. target = stream->EnsureSpace(target);
  1320. target = ::_pbi::WireFormatLite::WriteInt32ToArray(21, this->_internal_treat_progress(), target);
  1321. }
  1322. // int32 rescue_progress = 22;
  1323. if (this->_internal_rescue_progress() != 0)
  1324. {
  1325. target = stream->EnsureSpace(target);
  1326. target = ::_pbi::WireFormatLite::WriteInt32ToArray(22, this->_internal_rescue_progress(), target);
  1327. }
  1328. // .protobuf.StudentType student_type = 23;
  1329. if (this->_internal_student_type() != 0)
  1330. {
  1331. target = stream->EnsureSpace(target);
  1332. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  1333. 23, this->_internal_student_type(), target
  1334. );
  1335. }
  1336. // repeated .protobuf.StudentBuffType buff = 24;
  1337. {
  1338. int byte_size = _impl_._buff_cached_byte_size_.load(std::memory_order_relaxed);
  1339. if (byte_size > 0)
  1340. {
  1341. target = stream->WriteEnumPacked(
  1342. 24, _impl_.buff_, byte_size, target
  1343. );
  1344. }
  1345. }
  1346. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  1347. {
  1348. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  1349. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  1350. );
  1351. }
  1352. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfStudent)
  1353. return target;
  1354. }
  1355. size_t MessageOfStudent::ByteSizeLong() const
  1356. {
  1357. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfStudent)
  1358. size_t total_size = 0;
  1359. uint32_t cached_has_bits = 0;
  1360. // Prevent compiler warnings about cached_has_bits being unused
  1361. (void)cached_has_bits;
  1362. // repeated .protobuf.PropType prop = 8;
  1363. {
  1364. size_t data_size = 0;
  1365. unsigned int count = static_cast<unsigned int>(this->_internal_prop_size());
  1366. for (unsigned int i = 0; i < count; i++)
  1367. {
  1368. data_size += ::_pbi::WireFormatLite::EnumSize(
  1369. this->_internal_prop(static_cast<int>(i))
  1370. );
  1371. }
  1372. if (data_size > 0)
  1373. {
  1374. total_size += 1 +
  1375. ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
  1376. }
  1377. int cached_size = ::_pbi::ToCachedSize(data_size);
  1378. _impl_._prop_cached_byte_size_.store(cached_size, std::memory_order_relaxed);
  1379. total_size += data_size;
  1380. }
  1381. // repeated .protobuf.StudentBuffType buff = 24;
  1382. {
  1383. size_t data_size = 0;
  1384. unsigned int count = static_cast<unsigned int>(this->_internal_buff_size());
  1385. for (unsigned int i = 0; i < count; i++)
  1386. {
  1387. data_size += ::_pbi::WireFormatLite::EnumSize(
  1388. this->_internal_buff(static_cast<int>(i))
  1389. );
  1390. }
  1391. if (data_size > 0)
  1392. {
  1393. total_size += 2 +
  1394. ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
  1395. }
  1396. int cached_size = ::_pbi::ToCachedSize(data_size);
  1397. _impl_._buff_cached_byte_size_.store(cached_size, std::memory_order_relaxed);
  1398. total_size += data_size;
  1399. }
  1400. // int32 x = 1;
  1401. if (this->_internal_x() != 0)
  1402. {
  1403. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
  1404. }
  1405. // int32 y = 2;
  1406. if (this->_internal_y() != 0)
  1407. {
  1408. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
  1409. }
  1410. // int32 speed = 3;
  1411. if (this->_internal_speed() != 0)
  1412. {
  1413. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_speed());
  1414. }
  1415. // int32 determination = 4;
  1416. if (this->_internal_determination() != 0)
  1417. {
  1418. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_determination());
  1419. }
  1420. // double time_until_skill_available = 6;
  1421. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1422. double tmp_time_until_skill_available = this->_internal_time_until_skill_available();
  1423. uint64_t raw_time_until_skill_available;
  1424. memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available));
  1425. if (raw_time_until_skill_available != 0)
  1426. {
  1427. total_size += 1 + 8;
  1428. }
  1429. // int32 fail_num = 5;
  1430. if (this->_internal_fail_num() != 0)
  1431. {
  1432. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_fail_num());
  1433. }
  1434. // .protobuf.PlaceType place = 7;
  1435. if (this->_internal_place() != 0)
  1436. {
  1437. total_size += 1 +
  1438. ::_pbi::WireFormatLite::EnumSize(this->_internal_place());
  1439. }
  1440. // int64 guid = 10;
  1441. if (this->_internal_guid() != 0)
  1442. {
  1443. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_guid());
  1444. }
  1445. // .protobuf.PlayerState player_state = 9;
  1446. if (this->_internal_player_state() != 0)
  1447. {
  1448. total_size += 1 +
  1449. ::_pbi::WireFormatLite::EnumSize(this->_internal_player_state());
  1450. }
  1451. // .protobuf.PlayerState state = 11;
  1452. if (this->_internal_state() != 0)
  1453. {
  1454. total_size += 1 +
  1455. ::_pbi::WireFormatLite::EnumSize(this->_internal_state());
  1456. }
  1457. // double fail_time = 12;
  1458. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1459. double tmp_fail_time = this->_internal_fail_time();
  1460. uint64_t raw_fail_time;
  1461. memcpy(&raw_fail_time, &tmp_fail_time, sizeof(tmp_fail_time));
  1462. if (raw_fail_time != 0)
  1463. {
  1464. total_size += 1 + 8;
  1465. }
  1466. // double emo_time = 14;
  1467. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1468. double tmp_emo_time = this->_internal_emo_time();
  1469. uint64_t raw_emo_time;
  1470. memcpy(&raw_emo_time, &tmp_emo_time, sizeof(tmp_emo_time));
  1471. if (raw_emo_time != 0)
  1472. {
  1473. total_size += 1 + 8;
  1474. }
  1475. // int64 player_id = 15;
  1476. if (this->_internal_player_id() != 0)
  1477. {
  1478. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id());
  1479. }
  1480. // int32 view_range = 16;
  1481. if (this->_internal_view_range() != 0)
  1482. {
  1483. total_size += 2 +
  1484. ::_pbi::WireFormatLite::Int32Size(
  1485. this->_internal_view_range()
  1486. );
  1487. }
  1488. // int32 radius = 17;
  1489. if (this->_internal_radius() != 0)
  1490. {
  1491. total_size += 2 +
  1492. ::_pbi::WireFormatLite::Int32Size(
  1493. this->_internal_radius()
  1494. );
  1495. }
  1496. // double danger_alert = 19;
  1497. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1498. double tmp_danger_alert = this->_internal_danger_alert();
  1499. uint64_t raw_danger_alert;
  1500. memcpy(&raw_danger_alert, &tmp_danger_alert, sizeof(tmp_danger_alert));
  1501. if (raw_danger_alert != 0)
  1502. {
  1503. total_size += 2 + 8;
  1504. }
  1505. // int32 damage = 18;
  1506. if (this->_internal_damage() != 0)
  1507. {
  1508. total_size += 2 +
  1509. ::_pbi::WireFormatLite::Int32Size(
  1510. this->_internal_damage()
  1511. );
  1512. }
  1513. // int32 score = 20;
  1514. if (this->_internal_score() != 0)
  1515. {
  1516. total_size += 2 +
  1517. ::_pbi::WireFormatLite::Int32Size(
  1518. this->_internal_score()
  1519. );
  1520. }
  1521. // int32 treat_progress = 21;
  1522. if (this->_internal_treat_progress() != 0)
  1523. {
  1524. total_size += 2 +
  1525. ::_pbi::WireFormatLite::Int32Size(
  1526. this->_internal_treat_progress()
  1527. );
  1528. }
  1529. // int32 rescue_progress = 22;
  1530. if (this->_internal_rescue_progress() != 0)
  1531. {
  1532. total_size += 2 +
  1533. ::_pbi::WireFormatLite::Int32Size(
  1534. this->_internal_rescue_progress()
  1535. );
  1536. }
  1537. // .protobuf.StudentType student_type = 23;
  1538. if (this->_internal_student_type() != 0)
  1539. {
  1540. total_size += 2 +
  1541. ::_pbi::WireFormatLite::EnumSize(this->_internal_student_type());
  1542. }
  1543. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  1544. }
  1545. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfStudent::_class_data_ = {
  1546. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  1547. MessageOfStudent::MergeImpl};
  1548. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfStudent::GetClassData() const
  1549. {
  1550. return &_class_data_;
  1551. }
  1552. void MessageOfStudent::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  1553. {
  1554. auto* const _this = static_cast<MessageOfStudent*>(&to_msg);
  1555. auto& from = static_cast<const MessageOfStudent&>(from_msg);
  1556. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfStudent)
  1557. GOOGLE_DCHECK_NE(&from, _this);
  1558. uint32_t cached_has_bits = 0;
  1559. (void)cached_has_bits;
  1560. _this->_impl_.prop_.MergeFrom(from._impl_.prop_);
  1561. _this->_impl_.buff_.MergeFrom(from._impl_.buff_);
  1562. if (from._internal_x() != 0)
  1563. {
  1564. _this->_internal_set_x(from._internal_x());
  1565. }
  1566. if (from._internal_y() != 0)
  1567. {
  1568. _this->_internal_set_y(from._internal_y());
  1569. }
  1570. if (from._internal_speed() != 0)
  1571. {
  1572. _this->_internal_set_speed(from._internal_speed());
  1573. }
  1574. if (from._internal_determination() != 0)
  1575. {
  1576. _this->_internal_set_determination(from._internal_determination());
  1577. }
  1578. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1579. double tmp_time_until_skill_available = from._internal_time_until_skill_available();
  1580. uint64_t raw_time_until_skill_available;
  1581. memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available));
  1582. if (raw_time_until_skill_available != 0)
  1583. {
  1584. _this->_internal_set_time_until_skill_available(from._internal_time_until_skill_available());
  1585. }
  1586. if (from._internal_fail_num() != 0)
  1587. {
  1588. _this->_internal_set_fail_num(from._internal_fail_num());
  1589. }
  1590. if (from._internal_place() != 0)
  1591. {
  1592. _this->_internal_set_place(from._internal_place());
  1593. }
  1594. if (from._internal_guid() != 0)
  1595. {
  1596. _this->_internal_set_guid(from._internal_guid());
  1597. }
  1598. if (from._internal_player_state() != 0)
  1599. {
  1600. _this->_internal_set_player_state(from._internal_player_state());
  1601. }
  1602. if (from._internal_state() != 0)
  1603. {
  1604. _this->_internal_set_state(from._internal_state());
  1605. }
  1606. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1607. double tmp_fail_time = from._internal_fail_time();
  1608. uint64_t raw_fail_time;
  1609. memcpy(&raw_fail_time, &tmp_fail_time, sizeof(tmp_fail_time));
  1610. if (raw_fail_time != 0)
  1611. {
  1612. _this->_internal_set_fail_time(from._internal_fail_time());
  1613. }
  1614. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1615. double tmp_emo_time = from._internal_emo_time();
  1616. uint64_t raw_emo_time;
  1617. memcpy(&raw_emo_time, &tmp_emo_time, sizeof(tmp_emo_time));
  1618. if (raw_emo_time != 0)
  1619. {
  1620. _this->_internal_set_emo_time(from._internal_emo_time());
  1621. }
  1622. if (from._internal_player_id() != 0)
  1623. {
  1624. _this->_internal_set_player_id(from._internal_player_id());
  1625. }
  1626. if (from._internal_view_range() != 0)
  1627. {
  1628. _this->_internal_set_view_range(from._internal_view_range());
  1629. }
  1630. if (from._internal_radius() != 0)
  1631. {
  1632. _this->_internal_set_radius(from._internal_radius());
  1633. }
  1634. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1635. double tmp_danger_alert = from._internal_danger_alert();
  1636. uint64_t raw_danger_alert;
  1637. memcpy(&raw_danger_alert, &tmp_danger_alert, sizeof(tmp_danger_alert));
  1638. if (raw_danger_alert != 0)
  1639. {
  1640. _this->_internal_set_danger_alert(from._internal_danger_alert());
  1641. }
  1642. if (from._internal_damage() != 0)
  1643. {
  1644. _this->_internal_set_damage(from._internal_damage());
  1645. }
  1646. if (from._internal_score() != 0)
  1647. {
  1648. _this->_internal_set_score(from._internal_score());
  1649. }
  1650. if (from._internal_treat_progress() != 0)
  1651. {
  1652. _this->_internal_set_treat_progress(from._internal_treat_progress());
  1653. }
  1654. if (from._internal_rescue_progress() != 0)
  1655. {
  1656. _this->_internal_set_rescue_progress(from._internal_rescue_progress());
  1657. }
  1658. if (from._internal_student_type() != 0)
  1659. {
  1660. _this->_internal_set_student_type(from._internal_student_type());
  1661. }
  1662. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1663. }
  1664. void MessageOfStudent::CopyFrom(const MessageOfStudent& from)
  1665. {
  1666. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfStudent)
  1667. if (&from == this)
  1668. return;
  1669. Clear();
  1670. MergeFrom(from);
  1671. }
  1672. bool MessageOfStudent::IsInitialized() const
  1673. {
  1674. return true;
  1675. }
  1676. void MessageOfStudent::InternalSwap(MessageOfStudent* other)
  1677. {
  1678. using std::swap;
  1679. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1680. _impl_.prop_.InternalSwap(&other->_impl_.prop_);
  1681. _impl_.buff_.InternalSwap(&other->_impl_.buff_);
  1682. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1683. PROTOBUF_FIELD_OFFSET(MessageOfStudent, _impl_.student_type_) + sizeof(MessageOfStudent::_impl_.student_type_) - PROTOBUF_FIELD_OFFSET(MessageOfStudent, _impl_.x_)>(
  1684. reinterpret_cast<char*>(&_impl_.x_),
  1685. reinterpret_cast<char*>(&other->_impl_.x_)
  1686. );
  1687. }
  1688. ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfStudent::GetMetadata() const
  1689. {
  1690. return ::_pbi::AssignDescriptors(
  1691. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[0]
  1692. );
  1693. }
  1694. // ===================================================================
  1695. class MessageOfTricker::_Internal
  1696. {
  1697. public:
  1698. };
  1699. MessageOfTricker::MessageOfTricker(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  1700. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  1701. {
  1702. SharedCtor(arena, is_message_owned);
  1703. // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfTricker)
  1704. }
  1705. MessageOfTricker::MessageOfTricker(const MessageOfTricker& from) :
  1706. ::PROTOBUF_NAMESPACE_ID::Message()
  1707. {
  1708. MessageOfTricker* const _this = this;
  1709. (void)_this;
  1710. new (&_impl_) Impl_{
  1711. decltype(_impl_.prop_){from._impl_.prop_}, /*decltype(_impl_._prop_cached_byte_size_)*/ {0}, decltype(_impl_.buff_){from._impl_.buff_}, /*decltype(_impl_._buff_cached_byte_size_)*/ {0}, decltype(_impl_.x_){}, decltype(_impl_.y_){}, decltype(_impl_.speed_){}, decltype(_impl_.damage_){}, decltype(_impl_.time_until_skill_available_){}, decltype(_impl_.place_){}, decltype(_impl_.tricker_type_){}, decltype(_impl_.guid_){}, decltype(_impl_.player_id_){}, decltype(_impl_.movable_){}, decltype(_impl_.view_range_){}, decltype(_impl_.radius_){}, decltype(_impl_.player_state_){}, decltype(_impl_.trick_desire_){}, decltype(_impl_.class_volume_){}, /*decltype(_impl_._cached_size_)*/ {}};
  1712. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1713. ::memcpy(&_impl_.x_, &from._impl_.x_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.class_volume_) - reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.class_volume_));
  1714. // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfTricker)
  1715. }
  1716. inline void MessageOfTricker::SharedCtor(
  1717. ::_pb::Arena* arena, bool is_message_owned
  1718. )
  1719. {
  1720. (void)arena;
  1721. (void)is_message_owned;
  1722. new (&_impl_) Impl_{
  1723. decltype(_impl_.prop_){arena}, /*decltype(_impl_._prop_cached_byte_size_)*/ {0}, decltype(_impl_.buff_){arena}, /*decltype(_impl_._buff_cached_byte_size_)*/ {0}, decltype(_impl_.x_){0}, decltype(_impl_.y_){0}, decltype(_impl_.speed_){0}, decltype(_impl_.damage_){0}, decltype(_impl_.time_until_skill_available_){0}, decltype(_impl_.place_){0}, decltype(_impl_.tricker_type_){0}, decltype(_impl_.guid_){int64_t{0}}, decltype(_impl_.player_id_){int64_t{0}}, decltype(_impl_.movable_){false}, decltype(_impl_.view_range_){0}, decltype(_impl_.radius_){0}, decltype(_impl_.player_state_){0}, decltype(_impl_.trick_desire_){0}, decltype(_impl_.class_volume_){0}, /*decltype(_impl_._cached_size_)*/ {}};
  1724. }
  1725. MessageOfTricker::~MessageOfTricker()
  1726. {
  1727. // @@protoc_insertion_point(destructor:protobuf.MessageOfTricker)
  1728. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  1729. {
  1730. (void)arena;
  1731. return;
  1732. }
  1733. SharedDtor();
  1734. }
  1735. inline void MessageOfTricker::SharedDtor()
  1736. {
  1737. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1738. _impl_.prop_.~RepeatedField();
  1739. _impl_.buff_.~RepeatedField();
  1740. }
  1741. void MessageOfTricker::SetCachedSize(int size) const
  1742. {
  1743. _impl_._cached_size_.Set(size);
  1744. }
  1745. void MessageOfTricker::Clear()
  1746. {
  1747. // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfTricker)
  1748. uint32_t cached_has_bits = 0;
  1749. // Prevent compiler warnings about cached_has_bits being unused
  1750. (void)cached_has_bits;
  1751. _impl_.prop_.Clear();
  1752. _impl_.buff_.Clear();
  1753. ::memset(&_impl_.x_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.class_volume_) - reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.class_volume_));
  1754. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1755. }
  1756. const char* MessageOfTricker::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  1757. {
  1758. #define CHK_(x) \
  1759. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  1760. goto failure
  1761. while (!ctx->Done(&ptr))
  1762. {
  1763. uint32_t tag;
  1764. ptr = ::_pbi::ReadTag(ptr, &tag);
  1765. switch (tag >> 3)
  1766. {
  1767. // int32 x = 1;
  1768. case 1:
  1769. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  1770. {
  1771. _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1772. CHK_(ptr);
  1773. }
  1774. else
  1775. goto handle_unusual;
  1776. continue;
  1777. // int32 y = 2;
  1778. case 2:
  1779. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  1780. {
  1781. _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1782. CHK_(ptr);
  1783. }
  1784. else
  1785. goto handle_unusual;
  1786. continue;
  1787. // int32 speed = 3;
  1788. case 3:
  1789. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
  1790. {
  1791. _impl_.speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1792. CHK_(ptr);
  1793. }
  1794. else
  1795. goto handle_unusual;
  1796. continue;
  1797. // int32 damage = 4;
  1798. case 4:
  1799. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32))
  1800. {
  1801. _impl_.damage_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1802. CHK_(ptr);
  1803. }
  1804. else
  1805. goto handle_unusual;
  1806. continue;
  1807. // double time_until_skill_available = 5;
  1808. case 5:
  1809. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 41))
  1810. {
  1811. _impl_.time_until_skill_available_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  1812. ptr += sizeof(double);
  1813. }
  1814. else
  1815. goto handle_unusual;
  1816. continue;
  1817. // .protobuf.PlaceType place = 6;
  1818. case 6:
  1819. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48))
  1820. {
  1821. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1822. CHK_(ptr);
  1823. _internal_set_place(static_cast<::protobuf::PlaceType>(val));
  1824. }
  1825. else
  1826. goto handle_unusual;
  1827. continue;
  1828. // repeated .protobuf.PropType prop = 7;
  1829. case 7:
  1830. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58))
  1831. {
  1832. ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_prop(), ptr, ctx);
  1833. CHK_(ptr);
  1834. }
  1835. else if (static_cast<uint8_t>(tag) == 56)
  1836. {
  1837. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1838. CHK_(ptr);
  1839. _internal_add_prop(static_cast<::protobuf::PropType>(val));
  1840. }
  1841. else
  1842. goto handle_unusual;
  1843. continue;
  1844. // .protobuf.TrickerType tricker_type = 8;
  1845. case 8:
  1846. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64))
  1847. {
  1848. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1849. CHK_(ptr);
  1850. _internal_set_tricker_type(static_cast<::protobuf::TrickerType>(val));
  1851. }
  1852. else
  1853. goto handle_unusual;
  1854. continue;
  1855. // int64 guid = 9;
  1856. case 9:
  1857. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72))
  1858. {
  1859. _impl_.guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1860. CHK_(ptr);
  1861. }
  1862. else
  1863. goto handle_unusual;
  1864. continue;
  1865. // bool movable = 10;
  1866. case 10:
  1867. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80))
  1868. {
  1869. _impl_.movable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1870. CHK_(ptr);
  1871. }
  1872. else
  1873. goto handle_unusual;
  1874. continue;
  1875. // int64 player_id = 11;
  1876. case 11:
  1877. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 88))
  1878. {
  1879. _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1880. CHK_(ptr);
  1881. }
  1882. else
  1883. goto handle_unusual;
  1884. continue;
  1885. // int32 view_range = 12;
  1886. case 12:
  1887. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 96))
  1888. {
  1889. _impl_.view_range_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1890. CHK_(ptr);
  1891. }
  1892. else
  1893. goto handle_unusual;
  1894. continue;
  1895. // int32 radius = 13;
  1896. case 13:
  1897. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 104))
  1898. {
  1899. _impl_.radius_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1900. CHK_(ptr);
  1901. }
  1902. else
  1903. goto handle_unusual;
  1904. continue;
  1905. // .protobuf.PlayerState player_state = 14;
  1906. case 14:
  1907. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 112))
  1908. {
  1909. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1910. CHK_(ptr);
  1911. _internal_set_player_state(static_cast<::protobuf::PlayerState>(val));
  1912. }
  1913. else
  1914. goto handle_unusual;
  1915. continue;
  1916. // double trick_desire = 15;
  1917. case 15:
  1918. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 121))
  1919. {
  1920. _impl_.trick_desire_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  1921. ptr += sizeof(double);
  1922. }
  1923. else
  1924. goto handle_unusual;
  1925. continue;
  1926. // double class_volume = 16;
  1927. case 16:
  1928. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 129))
  1929. {
  1930. _impl_.class_volume_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  1931. ptr += sizeof(double);
  1932. }
  1933. else
  1934. goto handle_unusual;
  1935. continue;
  1936. // repeated .protobuf.TrickerBuffType buff = 17;
  1937. case 17:
  1938. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 138))
  1939. {
  1940. ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_buff(), ptr, ctx);
  1941. CHK_(ptr);
  1942. }
  1943. else if (static_cast<uint8_t>(tag) == 136)
  1944. {
  1945. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1946. CHK_(ptr);
  1947. _internal_add_buff(static_cast<::protobuf::TrickerBuffType>(val));
  1948. }
  1949. else
  1950. goto handle_unusual;
  1951. continue;
  1952. default:
  1953. goto handle_unusual;
  1954. } // switch
  1955. handle_unusual:
  1956. if ((tag == 0) || ((tag & 7) == 4))
  1957. {
  1958. CHK_(ptr);
  1959. ctx->SetLastTag(tag);
  1960. goto message_done;
  1961. }
  1962. ptr = UnknownFieldParse(
  1963. tag,
  1964. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1965. ptr,
  1966. ctx
  1967. );
  1968. CHK_(ptr != nullptr);
  1969. } // while
  1970. message_done:
  1971. return ptr;
  1972. failure:
  1973. ptr = nullptr;
  1974. goto message_done;
  1975. #undef CHK_
  1976. }
  1977. uint8_t* MessageOfTricker::_InternalSerialize(
  1978. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  1979. ) const
  1980. {
  1981. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfTricker)
  1982. uint32_t cached_has_bits = 0;
  1983. (void)cached_has_bits;
  1984. // int32 x = 1;
  1985. if (this->_internal_x() != 0)
  1986. {
  1987. target = stream->EnsureSpace(target);
  1988. target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target);
  1989. }
  1990. // int32 y = 2;
  1991. if (this->_internal_y() != 0)
  1992. {
  1993. target = stream->EnsureSpace(target);
  1994. target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target);
  1995. }
  1996. // int32 speed = 3;
  1997. if (this->_internal_speed() != 0)
  1998. {
  1999. target = stream->EnsureSpace(target);
  2000. target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_speed(), target);
  2001. }
  2002. // int32 damage = 4;
  2003. if (this->_internal_damage() != 0)
  2004. {
  2005. target = stream->EnsureSpace(target);
  2006. target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_damage(), target);
  2007. }
  2008. // double time_until_skill_available = 5;
  2009. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2010. double tmp_time_until_skill_available = this->_internal_time_until_skill_available();
  2011. uint64_t raw_time_until_skill_available;
  2012. memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available));
  2013. if (raw_time_until_skill_available != 0)
  2014. {
  2015. target = stream->EnsureSpace(target);
  2016. target = ::_pbi::WireFormatLite::WriteDoubleToArray(5, this->_internal_time_until_skill_available(), target);
  2017. }
  2018. // .protobuf.PlaceType place = 6;
  2019. if (this->_internal_place() != 0)
  2020. {
  2021. target = stream->EnsureSpace(target);
  2022. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  2023. 6, this->_internal_place(), target
  2024. );
  2025. }
  2026. // repeated .protobuf.PropType prop = 7;
  2027. {
  2028. int byte_size = _impl_._prop_cached_byte_size_.load(std::memory_order_relaxed);
  2029. if (byte_size > 0)
  2030. {
  2031. target = stream->WriteEnumPacked(
  2032. 7, _impl_.prop_, byte_size, target
  2033. );
  2034. }
  2035. }
  2036. // .protobuf.TrickerType tricker_type = 8;
  2037. if (this->_internal_tricker_type() != 0)
  2038. {
  2039. target = stream->EnsureSpace(target);
  2040. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  2041. 8, this->_internal_tricker_type(), target
  2042. );
  2043. }
  2044. // int64 guid = 9;
  2045. if (this->_internal_guid() != 0)
  2046. {
  2047. target = stream->EnsureSpace(target);
  2048. target = ::_pbi::WireFormatLite::WriteInt64ToArray(9, this->_internal_guid(), target);
  2049. }
  2050. // bool movable = 10;
  2051. if (this->_internal_movable() != 0)
  2052. {
  2053. target = stream->EnsureSpace(target);
  2054. target = ::_pbi::WireFormatLite::WriteBoolToArray(10, this->_internal_movable(), target);
  2055. }
  2056. // int64 player_id = 11;
  2057. if (this->_internal_player_id() != 0)
  2058. {
  2059. target = stream->EnsureSpace(target);
  2060. target = ::_pbi::WireFormatLite::WriteInt64ToArray(11, this->_internal_player_id(), target);
  2061. }
  2062. // int32 view_range = 12;
  2063. if (this->_internal_view_range() != 0)
  2064. {
  2065. target = stream->EnsureSpace(target);
  2066. target = ::_pbi::WireFormatLite::WriteInt32ToArray(12, this->_internal_view_range(), target);
  2067. }
  2068. // int32 radius = 13;
  2069. if (this->_internal_radius() != 0)
  2070. {
  2071. target = stream->EnsureSpace(target);
  2072. target = ::_pbi::WireFormatLite::WriteInt32ToArray(13, this->_internal_radius(), target);
  2073. }
  2074. // .protobuf.PlayerState player_state = 14;
  2075. if (this->_internal_player_state() != 0)
  2076. {
  2077. target = stream->EnsureSpace(target);
  2078. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  2079. 14, this->_internal_player_state(), target
  2080. );
  2081. }
  2082. // double trick_desire = 15;
  2083. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2084. double tmp_trick_desire = this->_internal_trick_desire();
  2085. uint64_t raw_trick_desire;
  2086. memcpy(&raw_trick_desire, &tmp_trick_desire, sizeof(tmp_trick_desire));
  2087. if (raw_trick_desire != 0)
  2088. {
  2089. target = stream->EnsureSpace(target);
  2090. target = ::_pbi::WireFormatLite::WriteDoubleToArray(15, this->_internal_trick_desire(), target);
  2091. }
  2092. // double class_volume = 16;
  2093. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2094. double tmp_class_volume = this->_internal_class_volume();
  2095. uint64_t raw_class_volume;
  2096. memcpy(&raw_class_volume, &tmp_class_volume, sizeof(tmp_class_volume));
  2097. if (raw_class_volume != 0)
  2098. {
  2099. target = stream->EnsureSpace(target);
  2100. target = ::_pbi::WireFormatLite::WriteDoubleToArray(16, this->_internal_class_volume(), target);
  2101. }
  2102. // repeated .protobuf.TrickerBuffType buff = 17;
  2103. {
  2104. int byte_size = _impl_._buff_cached_byte_size_.load(std::memory_order_relaxed);
  2105. if (byte_size > 0)
  2106. {
  2107. target = stream->WriteEnumPacked(
  2108. 17, _impl_.buff_, byte_size, target
  2109. );
  2110. }
  2111. }
  2112. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  2113. {
  2114. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  2115. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  2116. );
  2117. }
  2118. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfTricker)
  2119. return target;
  2120. }
  2121. size_t MessageOfTricker::ByteSizeLong() const
  2122. {
  2123. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfTricker)
  2124. size_t total_size = 0;
  2125. uint32_t cached_has_bits = 0;
  2126. // Prevent compiler warnings about cached_has_bits being unused
  2127. (void)cached_has_bits;
  2128. // repeated .protobuf.PropType prop = 7;
  2129. {
  2130. size_t data_size = 0;
  2131. unsigned int count = static_cast<unsigned int>(this->_internal_prop_size());
  2132. for (unsigned int i = 0; i < count; i++)
  2133. {
  2134. data_size += ::_pbi::WireFormatLite::EnumSize(
  2135. this->_internal_prop(static_cast<int>(i))
  2136. );
  2137. }
  2138. if (data_size > 0)
  2139. {
  2140. total_size += 1 +
  2141. ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
  2142. }
  2143. int cached_size = ::_pbi::ToCachedSize(data_size);
  2144. _impl_._prop_cached_byte_size_.store(cached_size, std::memory_order_relaxed);
  2145. total_size += data_size;
  2146. }
  2147. // repeated .protobuf.TrickerBuffType buff = 17;
  2148. {
  2149. size_t data_size = 0;
  2150. unsigned int count = static_cast<unsigned int>(this->_internal_buff_size());
  2151. for (unsigned int i = 0; i < count; i++)
  2152. {
  2153. data_size += ::_pbi::WireFormatLite::EnumSize(
  2154. this->_internal_buff(static_cast<int>(i))
  2155. );
  2156. }
  2157. if (data_size > 0)
  2158. {
  2159. total_size += 2 +
  2160. ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
  2161. }
  2162. int cached_size = ::_pbi::ToCachedSize(data_size);
  2163. _impl_._buff_cached_byte_size_.store(cached_size, std::memory_order_relaxed);
  2164. total_size += data_size;
  2165. }
  2166. // int32 x = 1;
  2167. if (this->_internal_x() != 0)
  2168. {
  2169. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
  2170. }
  2171. // int32 y = 2;
  2172. if (this->_internal_y() != 0)
  2173. {
  2174. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
  2175. }
  2176. // int32 speed = 3;
  2177. if (this->_internal_speed() != 0)
  2178. {
  2179. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_speed());
  2180. }
  2181. // int32 damage = 4;
  2182. if (this->_internal_damage() != 0)
  2183. {
  2184. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_damage());
  2185. }
  2186. // double time_until_skill_available = 5;
  2187. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2188. double tmp_time_until_skill_available = this->_internal_time_until_skill_available();
  2189. uint64_t raw_time_until_skill_available;
  2190. memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available));
  2191. if (raw_time_until_skill_available != 0)
  2192. {
  2193. total_size += 1 + 8;
  2194. }
  2195. // .protobuf.PlaceType place = 6;
  2196. if (this->_internal_place() != 0)
  2197. {
  2198. total_size += 1 +
  2199. ::_pbi::WireFormatLite::EnumSize(this->_internal_place());
  2200. }
  2201. // .protobuf.TrickerType tricker_type = 8;
  2202. if (this->_internal_tricker_type() != 0)
  2203. {
  2204. total_size += 1 +
  2205. ::_pbi::WireFormatLite::EnumSize(this->_internal_tricker_type());
  2206. }
  2207. // int64 guid = 9;
  2208. if (this->_internal_guid() != 0)
  2209. {
  2210. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_guid());
  2211. }
  2212. // int64 player_id = 11;
  2213. if (this->_internal_player_id() != 0)
  2214. {
  2215. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id());
  2216. }
  2217. // bool movable = 10;
  2218. if (this->_internal_movable() != 0)
  2219. {
  2220. total_size += 1 + 1;
  2221. }
  2222. // int32 view_range = 12;
  2223. if (this->_internal_view_range() != 0)
  2224. {
  2225. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_view_range());
  2226. }
  2227. // int32 radius = 13;
  2228. if (this->_internal_radius() != 0)
  2229. {
  2230. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_radius());
  2231. }
  2232. // .protobuf.PlayerState player_state = 14;
  2233. if (this->_internal_player_state() != 0)
  2234. {
  2235. total_size += 1 +
  2236. ::_pbi::WireFormatLite::EnumSize(this->_internal_player_state());
  2237. }
  2238. // double trick_desire = 15;
  2239. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2240. double tmp_trick_desire = this->_internal_trick_desire();
  2241. uint64_t raw_trick_desire;
  2242. memcpy(&raw_trick_desire, &tmp_trick_desire, sizeof(tmp_trick_desire));
  2243. if (raw_trick_desire != 0)
  2244. {
  2245. total_size += 1 + 8;
  2246. }
  2247. // double class_volume = 16;
  2248. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2249. double tmp_class_volume = this->_internal_class_volume();
  2250. uint64_t raw_class_volume;
  2251. memcpy(&raw_class_volume, &tmp_class_volume, sizeof(tmp_class_volume));
  2252. if (raw_class_volume != 0)
  2253. {
  2254. total_size += 2 + 8;
  2255. }
  2256. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  2257. }
  2258. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfTricker::_class_data_ = {
  2259. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  2260. MessageOfTricker::MergeImpl};
  2261. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfTricker::GetClassData() const
  2262. {
  2263. return &_class_data_;
  2264. }
  2265. void MessageOfTricker::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  2266. {
  2267. auto* const _this = static_cast<MessageOfTricker*>(&to_msg);
  2268. auto& from = static_cast<const MessageOfTricker&>(from_msg);
  2269. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfTricker)
  2270. GOOGLE_DCHECK_NE(&from, _this);
  2271. uint32_t cached_has_bits = 0;
  2272. (void)cached_has_bits;
  2273. _this->_impl_.prop_.MergeFrom(from._impl_.prop_);
  2274. _this->_impl_.buff_.MergeFrom(from._impl_.buff_);
  2275. if (from._internal_x() != 0)
  2276. {
  2277. _this->_internal_set_x(from._internal_x());
  2278. }
  2279. if (from._internal_y() != 0)
  2280. {
  2281. _this->_internal_set_y(from._internal_y());
  2282. }
  2283. if (from._internal_speed() != 0)
  2284. {
  2285. _this->_internal_set_speed(from._internal_speed());
  2286. }
  2287. if (from._internal_damage() != 0)
  2288. {
  2289. _this->_internal_set_damage(from._internal_damage());
  2290. }
  2291. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2292. double tmp_time_until_skill_available = from._internal_time_until_skill_available();
  2293. uint64_t raw_time_until_skill_available;
  2294. memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available));
  2295. if (raw_time_until_skill_available != 0)
  2296. {
  2297. _this->_internal_set_time_until_skill_available(from._internal_time_until_skill_available());
  2298. }
  2299. if (from._internal_place() != 0)
  2300. {
  2301. _this->_internal_set_place(from._internal_place());
  2302. }
  2303. if (from._internal_tricker_type() != 0)
  2304. {
  2305. _this->_internal_set_tricker_type(from._internal_tricker_type());
  2306. }
  2307. if (from._internal_guid() != 0)
  2308. {
  2309. _this->_internal_set_guid(from._internal_guid());
  2310. }
  2311. if (from._internal_player_id() != 0)
  2312. {
  2313. _this->_internal_set_player_id(from._internal_player_id());
  2314. }
  2315. if (from._internal_movable() != 0)
  2316. {
  2317. _this->_internal_set_movable(from._internal_movable());
  2318. }
  2319. if (from._internal_view_range() != 0)
  2320. {
  2321. _this->_internal_set_view_range(from._internal_view_range());
  2322. }
  2323. if (from._internal_radius() != 0)
  2324. {
  2325. _this->_internal_set_radius(from._internal_radius());
  2326. }
  2327. if (from._internal_player_state() != 0)
  2328. {
  2329. _this->_internal_set_player_state(from._internal_player_state());
  2330. }
  2331. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2332. double tmp_trick_desire = from._internal_trick_desire();
  2333. uint64_t raw_trick_desire;
  2334. memcpy(&raw_trick_desire, &tmp_trick_desire, sizeof(tmp_trick_desire));
  2335. if (raw_trick_desire != 0)
  2336. {
  2337. _this->_internal_set_trick_desire(from._internal_trick_desire());
  2338. }
  2339. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2340. double tmp_class_volume = from._internal_class_volume();
  2341. uint64_t raw_class_volume;
  2342. memcpy(&raw_class_volume, &tmp_class_volume, sizeof(tmp_class_volume));
  2343. if (raw_class_volume != 0)
  2344. {
  2345. _this->_internal_set_class_volume(from._internal_class_volume());
  2346. }
  2347. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2348. }
  2349. void MessageOfTricker::CopyFrom(const MessageOfTricker& from)
  2350. {
  2351. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfTricker)
  2352. if (&from == this)
  2353. return;
  2354. Clear();
  2355. MergeFrom(from);
  2356. }
  2357. bool MessageOfTricker::IsInitialized() const
  2358. {
  2359. return true;
  2360. }
  2361. void MessageOfTricker::InternalSwap(MessageOfTricker* other)
  2362. {
  2363. using std::swap;
  2364. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2365. _impl_.prop_.InternalSwap(&other->_impl_.prop_);
  2366. _impl_.buff_.InternalSwap(&other->_impl_.buff_);
  2367. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2368. PROTOBUF_FIELD_OFFSET(MessageOfTricker, _impl_.class_volume_) + sizeof(MessageOfTricker::_impl_.class_volume_) - PROTOBUF_FIELD_OFFSET(MessageOfTricker, _impl_.x_)>(
  2369. reinterpret_cast<char*>(&_impl_.x_),
  2370. reinterpret_cast<char*>(&other->_impl_.x_)
  2371. );
  2372. }
  2373. ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfTricker::GetMetadata() const
  2374. {
  2375. return ::_pbi::AssignDescriptors(
  2376. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[1]
  2377. );
  2378. }
  2379. // ===================================================================
  2380. class MessageOfBullet::_Internal
  2381. {
  2382. public:
  2383. };
  2384. MessageOfBullet::MessageOfBullet(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  2385. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  2386. {
  2387. SharedCtor(arena, is_message_owned);
  2388. // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfBullet)
  2389. }
  2390. MessageOfBullet::MessageOfBullet(const MessageOfBullet& from) :
  2391. ::PROTOBUF_NAMESPACE_ID::Message()
  2392. {
  2393. MessageOfBullet* const _this = this;
  2394. (void)_this;
  2395. new (&_impl_) Impl_{
  2396. decltype(_impl_.type_){}, decltype(_impl_.x_){}, decltype(_impl_.facing_direction_){}, decltype(_impl_.y_){}, decltype(_impl_.team_){}, decltype(_impl_.guid_){}, decltype(_impl_.bomb_range_){}, decltype(_impl_.place_){}, /*decltype(_impl_._cached_size_)*/ {}};
  2397. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2398. ::memcpy(&_impl_.type_, &from._impl_.type_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.place_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.place_));
  2399. // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfBullet)
  2400. }
  2401. inline void MessageOfBullet::SharedCtor(
  2402. ::_pb::Arena* arena, bool is_message_owned
  2403. )
  2404. {
  2405. (void)arena;
  2406. (void)is_message_owned;
  2407. new (&_impl_) Impl_{
  2408. decltype(_impl_.type_){0}, decltype(_impl_.x_){0}, decltype(_impl_.facing_direction_){0}, decltype(_impl_.y_){0}, decltype(_impl_.team_){0}, decltype(_impl_.guid_){int64_t{0}}, decltype(_impl_.bomb_range_){0}, decltype(_impl_.place_){0}, /*decltype(_impl_._cached_size_)*/ {}};
  2409. }
  2410. MessageOfBullet::~MessageOfBullet()
  2411. {
  2412. // @@protoc_insertion_point(destructor:protobuf.MessageOfBullet)
  2413. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  2414. {
  2415. (void)arena;
  2416. return;
  2417. }
  2418. SharedDtor();
  2419. }
  2420. inline void MessageOfBullet::SharedDtor()
  2421. {
  2422. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2423. }
  2424. void MessageOfBullet::SetCachedSize(int size) const
  2425. {
  2426. _impl_._cached_size_.Set(size);
  2427. }
  2428. void MessageOfBullet::Clear()
  2429. {
  2430. // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfBullet)
  2431. uint32_t cached_has_bits = 0;
  2432. // Prevent compiler warnings about cached_has_bits being unused
  2433. (void)cached_has_bits;
  2434. ::memset(&_impl_.type_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.place_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.place_));
  2435. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2436. }
  2437. const char* MessageOfBullet::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  2438. {
  2439. #define CHK_(x) \
  2440. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  2441. goto failure
  2442. while (!ctx->Done(&ptr))
  2443. {
  2444. uint32_t tag;
  2445. ptr = ::_pbi::ReadTag(ptr, &tag);
  2446. switch (tag >> 3)
  2447. {
  2448. // .protobuf.BulletType type = 1;
  2449. case 1:
  2450. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  2451. {
  2452. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2453. CHK_(ptr);
  2454. _internal_set_type(static_cast<::protobuf::BulletType>(val));
  2455. }
  2456. else
  2457. goto handle_unusual;
  2458. continue;
  2459. // int32 x = 2;
  2460. case 2:
  2461. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  2462. {
  2463. _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2464. CHK_(ptr);
  2465. }
  2466. else
  2467. goto handle_unusual;
  2468. continue;
  2469. // int32 y = 3;
  2470. case 3:
  2471. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
  2472. {
  2473. _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2474. CHK_(ptr);
  2475. }
  2476. else
  2477. goto handle_unusual;
  2478. continue;
  2479. // double facing_direction = 4;
  2480. case 4:
  2481. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 33))
  2482. {
  2483. _impl_.facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  2484. ptr += sizeof(double);
  2485. }
  2486. else
  2487. goto handle_unusual;
  2488. continue;
  2489. // int64 guid = 5;
  2490. case 5:
  2491. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40))
  2492. {
  2493. _impl_.guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2494. CHK_(ptr);
  2495. }
  2496. else
  2497. goto handle_unusual;
  2498. continue;
  2499. // .protobuf.PlayerType team = 6;
  2500. case 6:
  2501. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48))
  2502. {
  2503. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2504. CHK_(ptr);
  2505. _internal_set_team(static_cast<::protobuf::PlayerType>(val));
  2506. }
  2507. else
  2508. goto handle_unusual;
  2509. continue;
  2510. // .protobuf.PlaceType place = 7;
  2511. case 7:
  2512. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56))
  2513. {
  2514. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2515. CHK_(ptr);
  2516. _internal_set_place(static_cast<::protobuf::PlaceType>(val));
  2517. }
  2518. else
  2519. goto handle_unusual;
  2520. continue;
  2521. // double bomb_range = 8;
  2522. case 8:
  2523. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 65))
  2524. {
  2525. _impl_.bomb_range_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  2526. ptr += sizeof(double);
  2527. }
  2528. else
  2529. goto handle_unusual;
  2530. continue;
  2531. default:
  2532. goto handle_unusual;
  2533. } // switch
  2534. handle_unusual:
  2535. if ((tag == 0) || ((tag & 7) == 4))
  2536. {
  2537. CHK_(ptr);
  2538. ctx->SetLastTag(tag);
  2539. goto message_done;
  2540. }
  2541. ptr = UnknownFieldParse(
  2542. tag,
  2543. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2544. ptr,
  2545. ctx
  2546. );
  2547. CHK_(ptr != nullptr);
  2548. } // while
  2549. message_done:
  2550. return ptr;
  2551. failure:
  2552. ptr = nullptr;
  2553. goto message_done;
  2554. #undef CHK_
  2555. }
  2556. uint8_t* MessageOfBullet::_InternalSerialize(
  2557. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  2558. ) const
  2559. {
  2560. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfBullet)
  2561. uint32_t cached_has_bits = 0;
  2562. (void)cached_has_bits;
  2563. // .protobuf.BulletType type = 1;
  2564. if (this->_internal_type() != 0)
  2565. {
  2566. target = stream->EnsureSpace(target);
  2567. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  2568. 1, this->_internal_type(), target
  2569. );
  2570. }
  2571. // int32 x = 2;
  2572. if (this->_internal_x() != 0)
  2573. {
  2574. target = stream->EnsureSpace(target);
  2575. target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target);
  2576. }
  2577. // int32 y = 3;
  2578. if (this->_internal_y() != 0)
  2579. {
  2580. target = stream->EnsureSpace(target);
  2581. target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target);
  2582. }
  2583. // double facing_direction = 4;
  2584. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2585. double tmp_facing_direction = this->_internal_facing_direction();
  2586. uint64_t raw_facing_direction;
  2587. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  2588. if (raw_facing_direction != 0)
  2589. {
  2590. target = stream->EnsureSpace(target);
  2591. target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target);
  2592. }
  2593. // int64 guid = 5;
  2594. if (this->_internal_guid() != 0)
  2595. {
  2596. target = stream->EnsureSpace(target);
  2597. target = ::_pbi::WireFormatLite::WriteInt64ToArray(5, this->_internal_guid(), target);
  2598. }
  2599. // .protobuf.PlayerType team = 6;
  2600. if (this->_internal_team() != 0)
  2601. {
  2602. target = stream->EnsureSpace(target);
  2603. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  2604. 6, this->_internal_team(), target
  2605. );
  2606. }
  2607. // .protobuf.PlaceType place = 7;
  2608. if (this->_internal_place() != 0)
  2609. {
  2610. target = stream->EnsureSpace(target);
  2611. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  2612. 7, this->_internal_place(), target
  2613. );
  2614. }
  2615. // double bomb_range = 8;
  2616. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2617. double tmp_bomb_range = this->_internal_bomb_range();
  2618. uint64_t raw_bomb_range;
  2619. memcpy(&raw_bomb_range, &tmp_bomb_range, sizeof(tmp_bomb_range));
  2620. if (raw_bomb_range != 0)
  2621. {
  2622. target = stream->EnsureSpace(target);
  2623. target = ::_pbi::WireFormatLite::WriteDoubleToArray(8, this->_internal_bomb_range(), target);
  2624. }
  2625. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  2626. {
  2627. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  2628. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  2629. );
  2630. }
  2631. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfBullet)
  2632. return target;
  2633. }
  2634. size_t MessageOfBullet::ByteSizeLong() const
  2635. {
  2636. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfBullet)
  2637. size_t total_size = 0;
  2638. uint32_t cached_has_bits = 0;
  2639. // Prevent compiler warnings about cached_has_bits being unused
  2640. (void)cached_has_bits;
  2641. // .protobuf.BulletType type = 1;
  2642. if (this->_internal_type() != 0)
  2643. {
  2644. total_size += 1 +
  2645. ::_pbi::WireFormatLite::EnumSize(this->_internal_type());
  2646. }
  2647. // int32 x = 2;
  2648. if (this->_internal_x() != 0)
  2649. {
  2650. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
  2651. }
  2652. // double facing_direction = 4;
  2653. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2654. double tmp_facing_direction = this->_internal_facing_direction();
  2655. uint64_t raw_facing_direction;
  2656. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  2657. if (raw_facing_direction != 0)
  2658. {
  2659. total_size += 1 + 8;
  2660. }
  2661. // int32 y = 3;
  2662. if (this->_internal_y() != 0)
  2663. {
  2664. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
  2665. }
  2666. // .protobuf.PlayerType team = 6;
  2667. if (this->_internal_team() != 0)
  2668. {
  2669. total_size += 1 +
  2670. ::_pbi::WireFormatLite::EnumSize(this->_internal_team());
  2671. }
  2672. // int64 guid = 5;
  2673. if (this->_internal_guid() != 0)
  2674. {
  2675. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_guid());
  2676. }
  2677. // double bomb_range = 8;
  2678. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2679. double tmp_bomb_range = this->_internal_bomb_range();
  2680. uint64_t raw_bomb_range;
  2681. memcpy(&raw_bomb_range, &tmp_bomb_range, sizeof(tmp_bomb_range));
  2682. if (raw_bomb_range != 0)
  2683. {
  2684. total_size += 1 + 8;
  2685. }
  2686. // .protobuf.PlaceType place = 7;
  2687. if (this->_internal_place() != 0)
  2688. {
  2689. total_size += 1 +
  2690. ::_pbi::WireFormatLite::EnumSize(this->_internal_place());
  2691. }
  2692. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  2693. }
  2694. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfBullet::_class_data_ = {
  2695. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  2696. MessageOfBullet::MergeImpl};
  2697. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfBullet::GetClassData() const
  2698. {
  2699. return &_class_data_;
  2700. }
  2701. void MessageOfBullet::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  2702. {
  2703. auto* const _this = static_cast<MessageOfBullet*>(&to_msg);
  2704. auto& from = static_cast<const MessageOfBullet&>(from_msg);
  2705. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfBullet)
  2706. GOOGLE_DCHECK_NE(&from, _this);
  2707. uint32_t cached_has_bits = 0;
  2708. (void)cached_has_bits;
  2709. if (from._internal_type() != 0)
  2710. {
  2711. _this->_internal_set_type(from._internal_type());
  2712. }
  2713. if (from._internal_x() != 0)
  2714. {
  2715. _this->_internal_set_x(from._internal_x());
  2716. }
  2717. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2718. double tmp_facing_direction = from._internal_facing_direction();
  2719. uint64_t raw_facing_direction;
  2720. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  2721. if (raw_facing_direction != 0)
  2722. {
  2723. _this->_internal_set_facing_direction(from._internal_facing_direction());
  2724. }
  2725. if (from._internal_y() != 0)
  2726. {
  2727. _this->_internal_set_y(from._internal_y());
  2728. }
  2729. if (from._internal_team() != 0)
  2730. {
  2731. _this->_internal_set_team(from._internal_team());
  2732. }
  2733. if (from._internal_guid() != 0)
  2734. {
  2735. _this->_internal_set_guid(from._internal_guid());
  2736. }
  2737. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2738. double tmp_bomb_range = from._internal_bomb_range();
  2739. uint64_t raw_bomb_range;
  2740. memcpy(&raw_bomb_range, &tmp_bomb_range, sizeof(tmp_bomb_range));
  2741. if (raw_bomb_range != 0)
  2742. {
  2743. _this->_internal_set_bomb_range(from._internal_bomb_range());
  2744. }
  2745. if (from._internal_place() != 0)
  2746. {
  2747. _this->_internal_set_place(from._internal_place());
  2748. }
  2749. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2750. }
  2751. void MessageOfBullet::CopyFrom(const MessageOfBullet& from)
  2752. {
  2753. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfBullet)
  2754. if (&from == this)
  2755. return;
  2756. Clear();
  2757. MergeFrom(from);
  2758. }
  2759. bool MessageOfBullet::IsInitialized() const
  2760. {
  2761. return true;
  2762. }
  2763. void MessageOfBullet::InternalSwap(MessageOfBullet* other)
  2764. {
  2765. using std::swap;
  2766. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2767. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2768. PROTOBUF_FIELD_OFFSET(MessageOfBullet, _impl_.place_) + sizeof(MessageOfBullet::_impl_.place_) - PROTOBUF_FIELD_OFFSET(MessageOfBullet, _impl_.type_)>(
  2769. reinterpret_cast<char*>(&_impl_.type_),
  2770. reinterpret_cast<char*>(&other->_impl_.type_)
  2771. );
  2772. }
  2773. ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfBullet::GetMetadata() const
  2774. {
  2775. return ::_pbi::AssignDescriptors(
  2776. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[2]
  2777. );
  2778. }
  2779. // ===================================================================
  2780. class MessageOfBombedBullet::_Internal
  2781. {
  2782. public:
  2783. };
  2784. MessageOfBombedBullet::MessageOfBombedBullet(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  2785. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  2786. {
  2787. SharedCtor(arena, is_message_owned);
  2788. // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfBombedBullet)
  2789. }
  2790. MessageOfBombedBullet::MessageOfBombedBullet(const MessageOfBombedBullet& from) :
  2791. ::PROTOBUF_NAMESPACE_ID::Message()
  2792. {
  2793. MessageOfBombedBullet* const _this = this;
  2794. (void)_this;
  2795. new (&_impl_) Impl_{
  2796. decltype(_impl_.type_){}, decltype(_impl_.x_){}, decltype(_impl_.facing_direction_){}, decltype(_impl_.mapping_id_){}, decltype(_impl_.bomb_range_){}, decltype(_impl_.y_){}, /*decltype(_impl_._cached_size_)*/ {}};
  2797. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2798. ::memcpy(&_impl_.type_, &from._impl_.type_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.y_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.y_));
  2799. // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfBombedBullet)
  2800. }
  2801. inline void MessageOfBombedBullet::SharedCtor(
  2802. ::_pb::Arena* arena, bool is_message_owned
  2803. )
  2804. {
  2805. (void)arena;
  2806. (void)is_message_owned;
  2807. new (&_impl_) Impl_{
  2808. decltype(_impl_.type_){0}, decltype(_impl_.x_){0}, decltype(_impl_.facing_direction_){0}, decltype(_impl_.mapping_id_){int64_t{0}}, decltype(_impl_.bomb_range_){0}, decltype(_impl_.y_){0}, /*decltype(_impl_._cached_size_)*/ {}};
  2809. }
  2810. MessageOfBombedBullet::~MessageOfBombedBullet()
  2811. {
  2812. // @@protoc_insertion_point(destructor:protobuf.MessageOfBombedBullet)
  2813. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  2814. {
  2815. (void)arena;
  2816. return;
  2817. }
  2818. SharedDtor();
  2819. }
  2820. inline void MessageOfBombedBullet::SharedDtor()
  2821. {
  2822. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2823. }
  2824. void MessageOfBombedBullet::SetCachedSize(int size) const
  2825. {
  2826. _impl_._cached_size_.Set(size);
  2827. }
  2828. void MessageOfBombedBullet::Clear()
  2829. {
  2830. // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfBombedBullet)
  2831. uint32_t cached_has_bits = 0;
  2832. // Prevent compiler warnings about cached_has_bits being unused
  2833. (void)cached_has_bits;
  2834. ::memset(&_impl_.type_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.y_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.y_));
  2835. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2836. }
  2837. const char* MessageOfBombedBullet::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  2838. {
  2839. #define CHK_(x) \
  2840. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  2841. goto failure
  2842. while (!ctx->Done(&ptr))
  2843. {
  2844. uint32_t tag;
  2845. ptr = ::_pbi::ReadTag(ptr, &tag);
  2846. switch (tag >> 3)
  2847. {
  2848. // .protobuf.BulletType type = 1;
  2849. case 1:
  2850. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  2851. {
  2852. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2853. CHK_(ptr);
  2854. _internal_set_type(static_cast<::protobuf::BulletType>(val));
  2855. }
  2856. else
  2857. goto handle_unusual;
  2858. continue;
  2859. // int32 x = 2;
  2860. case 2:
  2861. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  2862. {
  2863. _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2864. CHK_(ptr);
  2865. }
  2866. else
  2867. goto handle_unusual;
  2868. continue;
  2869. // int32 y = 3;
  2870. case 3:
  2871. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
  2872. {
  2873. _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2874. CHK_(ptr);
  2875. }
  2876. else
  2877. goto handle_unusual;
  2878. continue;
  2879. // double facing_direction = 4;
  2880. case 4:
  2881. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 33))
  2882. {
  2883. _impl_.facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  2884. ptr += sizeof(double);
  2885. }
  2886. else
  2887. goto handle_unusual;
  2888. continue;
  2889. // int64 mapping_id = 5;
  2890. case 5:
  2891. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40))
  2892. {
  2893. _impl_.mapping_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2894. CHK_(ptr);
  2895. }
  2896. else
  2897. goto handle_unusual;
  2898. continue;
  2899. // double bomb_range = 6;
  2900. case 6:
  2901. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 49))
  2902. {
  2903. _impl_.bomb_range_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  2904. ptr += sizeof(double);
  2905. }
  2906. else
  2907. goto handle_unusual;
  2908. continue;
  2909. default:
  2910. goto handle_unusual;
  2911. } // switch
  2912. handle_unusual:
  2913. if ((tag == 0) || ((tag & 7) == 4))
  2914. {
  2915. CHK_(ptr);
  2916. ctx->SetLastTag(tag);
  2917. goto message_done;
  2918. }
  2919. ptr = UnknownFieldParse(
  2920. tag,
  2921. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2922. ptr,
  2923. ctx
  2924. );
  2925. CHK_(ptr != nullptr);
  2926. } // while
  2927. message_done:
  2928. return ptr;
  2929. failure:
  2930. ptr = nullptr;
  2931. goto message_done;
  2932. #undef CHK_
  2933. }
  2934. uint8_t* MessageOfBombedBullet::_InternalSerialize(
  2935. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  2936. ) const
  2937. {
  2938. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfBombedBullet)
  2939. uint32_t cached_has_bits = 0;
  2940. (void)cached_has_bits;
  2941. // .protobuf.BulletType type = 1;
  2942. if (this->_internal_type() != 0)
  2943. {
  2944. target = stream->EnsureSpace(target);
  2945. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  2946. 1, this->_internal_type(), target
  2947. );
  2948. }
  2949. // int32 x = 2;
  2950. if (this->_internal_x() != 0)
  2951. {
  2952. target = stream->EnsureSpace(target);
  2953. target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target);
  2954. }
  2955. // int32 y = 3;
  2956. if (this->_internal_y() != 0)
  2957. {
  2958. target = stream->EnsureSpace(target);
  2959. target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target);
  2960. }
  2961. // double facing_direction = 4;
  2962. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2963. double tmp_facing_direction = this->_internal_facing_direction();
  2964. uint64_t raw_facing_direction;
  2965. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  2966. if (raw_facing_direction != 0)
  2967. {
  2968. target = stream->EnsureSpace(target);
  2969. target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target);
  2970. }
  2971. // int64 mapping_id = 5;
  2972. if (this->_internal_mapping_id() != 0)
  2973. {
  2974. target = stream->EnsureSpace(target);
  2975. target = ::_pbi::WireFormatLite::WriteInt64ToArray(5, this->_internal_mapping_id(), target);
  2976. }
  2977. // double bomb_range = 6;
  2978. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2979. double tmp_bomb_range = this->_internal_bomb_range();
  2980. uint64_t raw_bomb_range;
  2981. memcpy(&raw_bomb_range, &tmp_bomb_range, sizeof(tmp_bomb_range));
  2982. if (raw_bomb_range != 0)
  2983. {
  2984. target = stream->EnsureSpace(target);
  2985. target = ::_pbi::WireFormatLite::WriteDoubleToArray(6, this->_internal_bomb_range(), target);
  2986. }
  2987. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  2988. {
  2989. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  2990. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  2991. );
  2992. }
  2993. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfBombedBullet)
  2994. return target;
  2995. }
  2996. size_t MessageOfBombedBullet::ByteSizeLong() const
  2997. {
  2998. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfBombedBullet)
  2999. size_t total_size = 0;
  3000. uint32_t cached_has_bits = 0;
  3001. // Prevent compiler warnings about cached_has_bits being unused
  3002. (void)cached_has_bits;
  3003. // .protobuf.BulletType type = 1;
  3004. if (this->_internal_type() != 0)
  3005. {
  3006. total_size += 1 +
  3007. ::_pbi::WireFormatLite::EnumSize(this->_internal_type());
  3008. }
  3009. // int32 x = 2;
  3010. if (this->_internal_x() != 0)
  3011. {
  3012. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
  3013. }
  3014. // double facing_direction = 4;
  3015. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  3016. double tmp_facing_direction = this->_internal_facing_direction();
  3017. uint64_t raw_facing_direction;
  3018. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  3019. if (raw_facing_direction != 0)
  3020. {
  3021. total_size += 1 + 8;
  3022. }
  3023. // int64 mapping_id = 5;
  3024. if (this->_internal_mapping_id() != 0)
  3025. {
  3026. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_mapping_id());
  3027. }
  3028. // double bomb_range = 6;
  3029. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  3030. double tmp_bomb_range = this->_internal_bomb_range();
  3031. uint64_t raw_bomb_range;
  3032. memcpy(&raw_bomb_range, &tmp_bomb_range, sizeof(tmp_bomb_range));
  3033. if (raw_bomb_range != 0)
  3034. {
  3035. total_size += 1 + 8;
  3036. }
  3037. // int32 y = 3;
  3038. if (this->_internal_y() != 0)
  3039. {
  3040. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
  3041. }
  3042. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  3043. }
  3044. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfBombedBullet::_class_data_ = {
  3045. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  3046. MessageOfBombedBullet::MergeImpl};
  3047. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfBombedBullet::GetClassData() const
  3048. {
  3049. return &_class_data_;
  3050. }
  3051. void MessageOfBombedBullet::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  3052. {
  3053. auto* const _this = static_cast<MessageOfBombedBullet*>(&to_msg);
  3054. auto& from = static_cast<const MessageOfBombedBullet&>(from_msg);
  3055. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfBombedBullet)
  3056. GOOGLE_DCHECK_NE(&from, _this);
  3057. uint32_t cached_has_bits = 0;
  3058. (void)cached_has_bits;
  3059. if (from._internal_type() != 0)
  3060. {
  3061. _this->_internal_set_type(from._internal_type());
  3062. }
  3063. if (from._internal_x() != 0)
  3064. {
  3065. _this->_internal_set_x(from._internal_x());
  3066. }
  3067. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  3068. double tmp_facing_direction = from._internal_facing_direction();
  3069. uint64_t raw_facing_direction;
  3070. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  3071. if (raw_facing_direction != 0)
  3072. {
  3073. _this->_internal_set_facing_direction(from._internal_facing_direction());
  3074. }
  3075. if (from._internal_mapping_id() != 0)
  3076. {
  3077. _this->_internal_set_mapping_id(from._internal_mapping_id());
  3078. }
  3079. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  3080. double tmp_bomb_range = from._internal_bomb_range();
  3081. uint64_t raw_bomb_range;
  3082. memcpy(&raw_bomb_range, &tmp_bomb_range, sizeof(tmp_bomb_range));
  3083. if (raw_bomb_range != 0)
  3084. {
  3085. _this->_internal_set_bomb_range(from._internal_bomb_range());
  3086. }
  3087. if (from._internal_y() != 0)
  3088. {
  3089. _this->_internal_set_y(from._internal_y());
  3090. }
  3091. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3092. }
  3093. void MessageOfBombedBullet::CopyFrom(const MessageOfBombedBullet& from)
  3094. {
  3095. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfBombedBullet)
  3096. if (&from == this)
  3097. return;
  3098. Clear();
  3099. MergeFrom(from);
  3100. }
  3101. bool MessageOfBombedBullet::IsInitialized() const
  3102. {
  3103. return true;
  3104. }
  3105. void MessageOfBombedBullet::InternalSwap(MessageOfBombedBullet* other)
  3106. {
  3107. using std::swap;
  3108. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3109. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3110. PROTOBUF_FIELD_OFFSET(MessageOfBombedBullet, _impl_.y_) + sizeof(MessageOfBombedBullet::_impl_.y_) - PROTOBUF_FIELD_OFFSET(MessageOfBombedBullet, _impl_.type_)>(
  3111. reinterpret_cast<char*>(&_impl_.type_),
  3112. reinterpret_cast<char*>(&other->_impl_.type_)
  3113. );
  3114. }
  3115. ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfBombedBullet::GetMetadata() const
  3116. {
  3117. return ::_pbi::AssignDescriptors(
  3118. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[3]
  3119. );
  3120. }
  3121. // ===================================================================
  3122. class MessageOfProp::_Internal
  3123. {
  3124. public:
  3125. };
  3126. MessageOfProp::MessageOfProp(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  3127. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  3128. {
  3129. SharedCtor(arena, is_message_owned);
  3130. // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfProp)
  3131. }
  3132. MessageOfProp::MessageOfProp(const MessageOfProp& from) :
  3133. ::PROTOBUF_NAMESPACE_ID::Message()
  3134. {
  3135. MessageOfProp* const _this = this;
  3136. (void)_this;
  3137. new (&_impl_) Impl_{
  3138. decltype(_impl_.type_){}, decltype(_impl_.x_){}, decltype(_impl_.facing_direction_){}, decltype(_impl_.y_){}, decltype(_impl_.place_){}, decltype(_impl_.guid_){}, decltype(_impl_.size_){}, decltype(_impl_.is_moving_){}, /*decltype(_impl_._cached_size_)*/ {}};
  3139. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3140. ::memcpy(&_impl_.type_, &from._impl_.type_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.is_moving_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.is_moving_));
  3141. // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfProp)
  3142. }
  3143. inline void MessageOfProp::SharedCtor(
  3144. ::_pb::Arena* arena, bool is_message_owned
  3145. )
  3146. {
  3147. (void)arena;
  3148. (void)is_message_owned;
  3149. new (&_impl_) Impl_{
  3150. decltype(_impl_.type_){0}, decltype(_impl_.x_){0}, decltype(_impl_.facing_direction_){0}, decltype(_impl_.y_){0}, decltype(_impl_.place_){0}, decltype(_impl_.guid_){int64_t{0}}, decltype(_impl_.size_){0}, decltype(_impl_.is_moving_){false}, /*decltype(_impl_._cached_size_)*/ {}};
  3151. }
  3152. MessageOfProp::~MessageOfProp()
  3153. {
  3154. // @@protoc_insertion_point(destructor:protobuf.MessageOfProp)
  3155. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  3156. {
  3157. (void)arena;
  3158. return;
  3159. }
  3160. SharedDtor();
  3161. }
  3162. inline void MessageOfProp::SharedDtor()
  3163. {
  3164. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3165. }
  3166. void MessageOfProp::SetCachedSize(int size) const
  3167. {
  3168. _impl_._cached_size_.Set(size);
  3169. }
  3170. void MessageOfProp::Clear()
  3171. {
  3172. // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfProp)
  3173. uint32_t cached_has_bits = 0;
  3174. // Prevent compiler warnings about cached_has_bits being unused
  3175. (void)cached_has_bits;
  3176. ::memset(&_impl_.type_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.is_moving_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.is_moving_));
  3177. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3178. }
  3179. const char* MessageOfProp::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  3180. {
  3181. #define CHK_(x) \
  3182. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  3183. goto failure
  3184. while (!ctx->Done(&ptr))
  3185. {
  3186. uint32_t tag;
  3187. ptr = ::_pbi::ReadTag(ptr, &tag);
  3188. switch (tag >> 3)
  3189. {
  3190. // .protobuf.PropType type = 1;
  3191. case 1:
  3192. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  3193. {
  3194. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3195. CHK_(ptr);
  3196. _internal_set_type(static_cast<::protobuf::PropType>(val));
  3197. }
  3198. else
  3199. goto handle_unusual;
  3200. continue;
  3201. // int32 x = 2;
  3202. case 2:
  3203. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  3204. {
  3205. _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3206. CHK_(ptr);
  3207. }
  3208. else
  3209. goto handle_unusual;
  3210. continue;
  3211. // int32 y = 3;
  3212. case 3:
  3213. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
  3214. {
  3215. _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3216. CHK_(ptr);
  3217. }
  3218. else
  3219. goto handle_unusual;
  3220. continue;
  3221. // double facing_direction = 4;
  3222. case 4:
  3223. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 33))
  3224. {
  3225. _impl_.facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  3226. ptr += sizeof(double);
  3227. }
  3228. else
  3229. goto handle_unusual;
  3230. continue;
  3231. // int64 guid = 5;
  3232. case 5:
  3233. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40))
  3234. {
  3235. _impl_.guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3236. CHK_(ptr);
  3237. }
  3238. else
  3239. goto handle_unusual;
  3240. continue;
  3241. // .protobuf.PlaceType place = 6;
  3242. case 6:
  3243. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48))
  3244. {
  3245. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3246. CHK_(ptr);
  3247. _internal_set_place(static_cast<::protobuf::PlaceType>(val));
  3248. }
  3249. else
  3250. goto handle_unusual;
  3251. continue;
  3252. // int32 size = 7;
  3253. case 7:
  3254. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56))
  3255. {
  3256. _impl_.size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3257. CHK_(ptr);
  3258. }
  3259. else
  3260. goto handle_unusual;
  3261. continue;
  3262. // bool is_moving = 8;
  3263. case 8:
  3264. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64))
  3265. {
  3266. _impl_.is_moving_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3267. CHK_(ptr);
  3268. }
  3269. else
  3270. goto handle_unusual;
  3271. continue;
  3272. default:
  3273. goto handle_unusual;
  3274. } // switch
  3275. handle_unusual:
  3276. if ((tag == 0) || ((tag & 7) == 4))
  3277. {
  3278. CHK_(ptr);
  3279. ctx->SetLastTag(tag);
  3280. goto message_done;
  3281. }
  3282. ptr = UnknownFieldParse(
  3283. tag,
  3284. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3285. ptr,
  3286. ctx
  3287. );
  3288. CHK_(ptr != nullptr);
  3289. } // while
  3290. message_done:
  3291. return ptr;
  3292. failure:
  3293. ptr = nullptr;
  3294. goto message_done;
  3295. #undef CHK_
  3296. }
  3297. uint8_t* MessageOfProp::_InternalSerialize(
  3298. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  3299. ) const
  3300. {
  3301. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfProp)
  3302. uint32_t cached_has_bits = 0;
  3303. (void)cached_has_bits;
  3304. // .protobuf.PropType type = 1;
  3305. if (this->_internal_type() != 0)
  3306. {
  3307. target = stream->EnsureSpace(target);
  3308. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  3309. 1, this->_internal_type(), target
  3310. );
  3311. }
  3312. // int32 x = 2;
  3313. if (this->_internal_x() != 0)
  3314. {
  3315. target = stream->EnsureSpace(target);
  3316. target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target);
  3317. }
  3318. // int32 y = 3;
  3319. if (this->_internal_y() != 0)
  3320. {
  3321. target = stream->EnsureSpace(target);
  3322. target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target);
  3323. }
  3324. // double facing_direction = 4;
  3325. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  3326. double tmp_facing_direction = this->_internal_facing_direction();
  3327. uint64_t raw_facing_direction;
  3328. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  3329. if (raw_facing_direction != 0)
  3330. {
  3331. target = stream->EnsureSpace(target);
  3332. target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target);
  3333. }
  3334. // int64 guid = 5;
  3335. if (this->_internal_guid() != 0)
  3336. {
  3337. target = stream->EnsureSpace(target);
  3338. target = ::_pbi::WireFormatLite::WriteInt64ToArray(5, this->_internal_guid(), target);
  3339. }
  3340. // .protobuf.PlaceType place = 6;
  3341. if (this->_internal_place() != 0)
  3342. {
  3343. target = stream->EnsureSpace(target);
  3344. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  3345. 6, this->_internal_place(), target
  3346. );
  3347. }
  3348. // int32 size = 7;
  3349. if (this->_internal_size() != 0)
  3350. {
  3351. target = stream->EnsureSpace(target);
  3352. target = ::_pbi::WireFormatLite::WriteInt32ToArray(7, this->_internal_size(), target);
  3353. }
  3354. // bool is_moving = 8;
  3355. if (this->_internal_is_moving() != 0)
  3356. {
  3357. target = stream->EnsureSpace(target);
  3358. target = ::_pbi::WireFormatLite::WriteBoolToArray(8, this->_internal_is_moving(), target);
  3359. }
  3360. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  3361. {
  3362. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  3363. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  3364. );
  3365. }
  3366. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfProp)
  3367. return target;
  3368. }
  3369. size_t MessageOfProp::ByteSizeLong() const
  3370. {
  3371. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfProp)
  3372. size_t total_size = 0;
  3373. uint32_t cached_has_bits = 0;
  3374. // Prevent compiler warnings about cached_has_bits being unused
  3375. (void)cached_has_bits;
  3376. // .protobuf.PropType type = 1;
  3377. if (this->_internal_type() != 0)
  3378. {
  3379. total_size += 1 +
  3380. ::_pbi::WireFormatLite::EnumSize(this->_internal_type());
  3381. }
  3382. // int32 x = 2;
  3383. if (this->_internal_x() != 0)
  3384. {
  3385. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
  3386. }
  3387. // double facing_direction = 4;
  3388. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  3389. double tmp_facing_direction = this->_internal_facing_direction();
  3390. uint64_t raw_facing_direction;
  3391. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  3392. if (raw_facing_direction != 0)
  3393. {
  3394. total_size += 1 + 8;
  3395. }
  3396. // int32 y = 3;
  3397. if (this->_internal_y() != 0)
  3398. {
  3399. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
  3400. }
  3401. // .protobuf.PlaceType place = 6;
  3402. if (this->_internal_place() != 0)
  3403. {
  3404. total_size += 1 +
  3405. ::_pbi::WireFormatLite::EnumSize(this->_internal_place());
  3406. }
  3407. // int64 guid = 5;
  3408. if (this->_internal_guid() != 0)
  3409. {
  3410. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_guid());
  3411. }
  3412. // int32 size = 7;
  3413. if (this->_internal_size() != 0)
  3414. {
  3415. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_size());
  3416. }
  3417. // bool is_moving = 8;
  3418. if (this->_internal_is_moving() != 0)
  3419. {
  3420. total_size += 1 + 1;
  3421. }
  3422. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  3423. }
  3424. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfProp::_class_data_ = {
  3425. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  3426. MessageOfProp::MergeImpl};
  3427. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfProp::GetClassData() const
  3428. {
  3429. return &_class_data_;
  3430. }
  3431. void MessageOfProp::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  3432. {
  3433. auto* const _this = static_cast<MessageOfProp*>(&to_msg);
  3434. auto& from = static_cast<const MessageOfProp&>(from_msg);
  3435. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfProp)
  3436. GOOGLE_DCHECK_NE(&from, _this);
  3437. uint32_t cached_has_bits = 0;
  3438. (void)cached_has_bits;
  3439. if (from._internal_type() != 0)
  3440. {
  3441. _this->_internal_set_type(from._internal_type());
  3442. }
  3443. if (from._internal_x() != 0)
  3444. {
  3445. _this->_internal_set_x(from._internal_x());
  3446. }
  3447. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  3448. double tmp_facing_direction = from._internal_facing_direction();
  3449. uint64_t raw_facing_direction;
  3450. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  3451. if (raw_facing_direction != 0)
  3452. {
  3453. _this->_internal_set_facing_direction(from._internal_facing_direction());
  3454. }
  3455. if (from._internal_y() != 0)
  3456. {
  3457. _this->_internal_set_y(from._internal_y());
  3458. }
  3459. if (from._internal_place() != 0)
  3460. {
  3461. _this->_internal_set_place(from._internal_place());
  3462. }
  3463. if (from._internal_guid() != 0)
  3464. {
  3465. _this->_internal_set_guid(from._internal_guid());
  3466. }
  3467. if (from._internal_size() != 0)
  3468. {
  3469. _this->_internal_set_size(from._internal_size());
  3470. }
  3471. if (from._internal_is_moving() != 0)
  3472. {
  3473. _this->_internal_set_is_moving(from._internal_is_moving());
  3474. }
  3475. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3476. }
  3477. void MessageOfProp::CopyFrom(const MessageOfProp& from)
  3478. {
  3479. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfProp)
  3480. if (&from == this)
  3481. return;
  3482. Clear();
  3483. MergeFrom(from);
  3484. }
  3485. bool MessageOfProp::IsInitialized() const
  3486. {
  3487. return true;
  3488. }
  3489. void MessageOfProp::InternalSwap(MessageOfProp* other)
  3490. {
  3491. using std::swap;
  3492. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3493. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3494. PROTOBUF_FIELD_OFFSET(MessageOfProp, _impl_.is_moving_) + sizeof(MessageOfProp::_impl_.is_moving_) - PROTOBUF_FIELD_OFFSET(MessageOfProp, _impl_.type_)>(
  3495. reinterpret_cast<char*>(&_impl_.type_),
  3496. reinterpret_cast<char*>(&other->_impl_.type_)
  3497. );
  3498. }
  3499. ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfProp::GetMetadata() const
  3500. {
  3501. return ::_pbi::AssignDescriptors(
  3502. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[4]
  3503. );
  3504. }
  3505. // ===================================================================
  3506. class MessageOfPickedProp::_Internal
  3507. {
  3508. public:
  3509. };
  3510. MessageOfPickedProp::MessageOfPickedProp(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  3511. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  3512. {
  3513. SharedCtor(arena, is_message_owned);
  3514. // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfPickedProp)
  3515. }
  3516. MessageOfPickedProp::MessageOfPickedProp(const MessageOfPickedProp& from) :
  3517. ::PROTOBUF_NAMESPACE_ID::Message()
  3518. {
  3519. MessageOfPickedProp* const _this = this;
  3520. (void)_this;
  3521. new (&_impl_) Impl_{
  3522. decltype(_impl_.type_){}, decltype(_impl_.x_){}, decltype(_impl_.facing_direction_){}, decltype(_impl_.mapping_id_){}, decltype(_impl_.y_){}, /*decltype(_impl_._cached_size_)*/ {}};
  3523. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3524. ::memcpy(&_impl_.type_, &from._impl_.type_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.y_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.y_));
  3525. // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfPickedProp)
  3526. }
  3527. inline void MessageOfPickedProp::SharedCtor(
  3528. ::_pb::Arena* arena, bool is_message_owned
  3529. )
  3530. {
  3531. (void)arena;
  3532. (void)is_message_owned;
  3533. new (&_impl_) Impl_{
  3534. decltype(_impl_.type_){0}, decltype(_impl_.x_){0}, decltype(_impl_.facing_direction_){0}, decltype(_impl_.mapping_id_){int64_t{0}}, decltype(_impl_.y_){0}, /*decltype(_impl_._cached_size_)*/ {}};
  3535. }
  3536. MessageOfPickedProp::~MessageOfPickedProp()
  3537. {
  3538. // @@protoc_insertion_point(destructor:protobuf.MessageOfPickedProp)
  3539. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  3540. {
  3541. (void)arena;
  3542. return;
  3543. }
  3544. SharedDtor();
  3545. }
  3546. inline void MessageOfPickedProp::SharedDtor()
  3547. {
  3548. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3549. }
  3550. void MessageOfPickedProp::SetCachedSize(int size) const
  3551. {
  3552. _impl_._cached_size_.Set(size);
  3553. }
  3554. void MessageOfPickedProp::Clear()
  3555. {
  3556. // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfPickedProp)
  3557. uint32_t cached_has_bits = 0;
  3558. // Prevent compiler warnings about cached_has_bits being unused
  3559. (void)cached_has_bits;
  3560. ::memset(&_impl_.type_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.y_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.y_));
  3561. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3562. }
  3563. const char* MessageOfPickedProp::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  3564. {
  3565. #define CHK_(x) \
  3566. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  3567. goto failure
  3568. while (!ctx->Done(&ptr))
  3569. {
  3570. uint32_t tag;
  3571. ptr = ::_pbi::ReadTag(ptr, &tag);
  3572. switch (tag >> 3)
  3573. {
  3574. // .protobuf.PropType type = 1;
  3575. case 1:
  3576. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  3577. {
  3578. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3579. CHK_(ptr);
  3580. _internal_set_type(static_cast<::protobuf::PropType>(val));
  3581. }
  3582. else
  3583. goto handle_unusual;
  3584. continue;
  3585. // int32 x = 2;
  3586. case 2:
  3587. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  3588. {
  3589. _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3590. CHK_(ptr);
  3591. }
  3592. else
  3593. goto handle_unusual;
  3594. continue;
  3595. // int32 y = 3;
  3596. case 3:
  3597. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
  3598. {
  3599. _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3600. CHK_(ptr);
  3601. }
  3602. else
  3603. goto handle_unusual;
  3604. continue;
  3605. // double facing_direction = 4;
  3606. case 4:
  3607. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 33))
  3608. {
  3609. _impl_.facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  3610. ptr += sizeof(double);
  3611. }
  3612. else
  3613. goto handle_unusual;
  3614. continue;
  3615. // int64 mapping_id = 5;
  3616. case 5:
  3617. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40))
  3618. {
  3619. _impl_.mapping_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3620. CHK_(ptr);
  3621. }
  3622. else
  3623. goto handle_unusual;
  3624. continue;
  3625. default:
  3626. goto handle_unusual;
  3627. } // switch
  3628. handle_unusual:
  3629. if ((tag == 0) || ((tag & 7) == 4))
  3630. {
  3631. CHK_(ptr);
  3632. ctx->SetLastTag(tag);
  3633. goto message_done;
  3634. }
  3635. ptr = UnknownFieldParse(
  3636. tag,
  3637. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3638. ptr,
  3639. ctx
  3640. );
  3641. CHK_(ptr != nullptr);
  3642. } // while
  3643. message_done:
  3644. return ptr;
  3645. failure:
  3646. ptr = nullptr;
  3647. goto message_done;
  3648. #undef CHK_
  3649. }
  3650. uint8_t* MessageOfPickedProp::_InternalSerialize(
  3651. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  3652. ) const
  3653. {
  3654. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfPickedProp)
  3655. uint32_t cached_has_bits = 0;
  3656. (void)cached_has_bits;
  3657. // .protobuf.PropType type = 1;
  3658. if (this->_internal_type() != 0)
  3659. {
  3660. target = stream->EnsureSpace(target);
  3661. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  3662. 1, this->_internal_type(), target
  3663. );
  3664. }
  3665. // int32 x = 2;
  3666. if (this->_internal_x() != 0)
  3667. {
  3668. target = stream->EnsureSpace(target);
  3669. target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target);
  3670. }
  3671. // int32 y = 3;
  3672. if (this->_internal_y() != 0)
  3673. {
  3674. target = stream->EnsureSpace(target);
  3675. target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target);
  3676. }
  3677. // double facing_direction = 4;
  3678. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  3679. double tmp_facing_direction = this->_internal_facing_direction();
  3680. uint64_t raw_facing_direction;
  3681. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  3682. if (raw_facing_direction != 0)
  3683. {
  3684. target = stream->EnsureSpace(target);
  3685. target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target);
  3686. }
  3687. // int64 mapping_id = 5;
  3688. if (this->_internal_mapping_id() != 0)
  3689. {
  3690. target = stream->EnsureSpace(target);
  3691. target = ::_pbi::WireFormatLite::WriteInt64ToArray(5, this->_internal_mapping_id(), target);
  3692. }
  3693. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  3694. {
  3695. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  3696. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  3697. );
  3698. }
  3699. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfPickedProp)
  3700. return target;
  3701. }
  3702. size_t MessageOfPickedProp::ByteSizeLong() const
  3703. {
  3704. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfPickedProp)
  3705. size_t total_size = 0;
  3706. uint32_t cached_has_bits = 0;
  3707. // Prevent compiler warnings about cached_has_bits being unused
  3708. (void)cached_has_bits;
  3709. // .protobuf.PropType type = 1;
  3710. if (this->_internal_type() != 0)
  3711. {
  3712. total_size += 1 +
  3713. ::_pbi::WireFormatLite::EnumSize(this->_internal_type());
  3714. }
  3715. // int32 x = 2;
  3716. if (this->_internal_x() != 0)
  3717. {
  3718. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
  3719. }
  3720. // double facing_direction = 4;
  3721. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  3722. double tmp_facing_direction = this->_internal_facing_direction();
  3723. uint64_t raw_facing_direction;
  3724. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  3725. if (raw_facing_direction != 0)
  3726. {
  3727. total_size += 1 + 8;
  3728. }
  3729. // int64 mapping_id = 5;
  3730. if (this->_internal_mapping_id() != 0)
  3731. {
  3732. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_mapping_id());
  3733. }
  3734. // int32 y = 3;
  3735. if (this->_internal_y() != 0)
  3736. {
  3737. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
  3738. }
  3739. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  3740. }
  3741. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfPickedProp::_class_data_ = {
  3742. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  3743. MessageOfPickedProp::MergeImpl};
  3744. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfPickedProp::GetClassData() const
  3745. {
  3746. return &_class_data_;
  3747. }
  3748. void MessageOfPickedProp::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  3749. {
  3750. auto* const _this = static_cast<MessageOfPickedProp*>(&to_msg);
  3751. auto& from = static_cast<const MessageOfPickedProp&>(from_msg);
  3752. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfPickedProp)
  3753. GOOGLE_DCHECK_NE(&from, _this);
  3754. uint32_t cached_has_bits = 0;
  3755. (void)cached_has_bits;
  3756. if (from._internal_type() != 0)
  3757. {
  3758. _this->_internal_set_type(from._internal_type());
  3759. }
  3760. if (from._internal_x() != 0)
  3761. {
  3762. _this->_internal_set_x(from._internal_x());
  3763. }
  3764. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  3765. double tmp_facing_direction = from._internal_facing_direction();
  3766. uint64_t raw_facing_direction;
  3767. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  3768. if (raw_facing_direction != 0)
  3769. {
  3770. _this->_internal_set_facing_direction(from._internal_facing_direction());
  3771. }
  3772. if (from._internal_mapping_id() != 0)
  3773. {
  3774. _this->_internal_set_mapping_id(from._internal_mapping_id());
  3775. }
  3776. if (from._internal_y() != 0)
  3777. {
  3778. _this->_internal_set_y(from._internal_y());
  3779. }
  3780. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3781. }
  3782. void MessageOfPickedProp::CopyFrom(const MessageOfPickedProp& from)
  3783. {
  3784. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfPickedProp)
  3785. if (&from == this)
  3786. return;
  3787. Clear();
  3788. MergeFrom(from);
  3789. }
  3790. bool MessageOfPickedProp::IsInitialized() const
  3791. {
  3792. return true;
  3793. }
  3794. void MessageOfPickedProp::InternalSwap(MessageOfPickedProp* other)
  3795. {
  3796. using std::swap;
  3797. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3798. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3799. PROTOBUF_FIELD_OFFSET(MessageOfPickedProp, _impl_.y_) + sizeof(MessageOfPickedProp::_impl_.y_) - PROTOBUF_FIELD_OFFSET(MessageOfPickedProp, _impl_.type_)>(
  3800. reinterpret_cast<char*>(&_impl_.type_),
  3801. reinterpret_cast<char*>(&other->_impl_.type_)
  3802. );
  3803. }
  3804. ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfPickedProp::GetMetadata() const
  3805. {
  3806. return ::_pbi::AssignDescriptors(
  3807. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[5]
  3808. );
  3809. }
  3810. // ===================================================================
  3811. class MessageOfClassroom::_Internal
  3812. {
  3813. public:
  3814. };
  3815. MessageOfClassroom::MessageOfClassroom(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  3816. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  3817. {
  3818. SharedCtor(arena, is_message_owned);
  3819. // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfClassroom)
  3820. }
  3821. MessageOfClassroom::MessageOfClassroom(const MessageOfClassroom& from) :
  3822. ::PROTOBUF_NAMESPACE_ID::Message()
  3823. {
  3824. MessageOfClassroom* const _this = this;
  3825. (void)_this;
  3826. new (&_impl_) Impl_{
  3827. decltype(_impl_.x_){}, decltype(_impl_.y_){}, decltype(_impl_.progress_){}, /*decltype(_impl_._cached_size_)*/ {}};
  3828. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3829. ::memcpy(&_impl_.x_, &from._impl_.x_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.progress_) - reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.progress_));
  3830. // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfClassroom)
  3831. }
  3832. inline void MessageOfClassroom::SharedCtor(
  3833. ::_pb::Arena* arena, bool is_message_owned
  3834. )
  3835. {
  3836. (void)arena;
  3837. (void)is_message_owned;
  3838. new (&_impl_) Impl_{
  3839. decltype(_impl_.x_){0}, decltype(_impl_.y_){0}, decltype(_impl_.progress_){0}, /*decltype(_impl_._cached_size_)*/ {}};
  3840. }
  3841. MessageOfClassroom::~MessageOfClassroom()
  3842. {
  3843. // @@protoc_insertion_point(destructor:protobuf.MessageOfClassroom)
  3844. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  3845. {
  3846. (void)arena;
  3847. return;
  3848. }
  3849. SharedDtor();
  3850. }
  3851. inline void MessageOfClassroom::SharedDtor()
  3852. {
  3853. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3854. }
  3855. void MessageOfClassroom::SetCachedSize(int size) const
  3856. {
  3857. _impl_._cached_size_.Set(size);
  3858. }
  3859. void MessageOfClassroom::Clear()
  3860. {
  3861. // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfClassroom)
  3862. uint32_t cached_has_bits = 0;
  3863. // Prevent compiler warnings about cached_has_bits being unused
  3864. (void)cached_has_bits;
  3865. ::memset(&_impl_.x_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.progress_) - reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.progress_));
  3866. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3867. }
  3868. const char* MessageOfClassroom::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  3869. {
  3870. #define CHK_(x) \
  3871. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  3872. goto failure
  3873. while (!ctx->Done(&ptr))
  3874. {
  3875. uint32_t tag;
  3876. ptr = ::_pbi::ReadTag(ptr, &tag);
  3877. switch (tag >> 3)
  3878. {
  3879. // int32 x = 1;
  3880. case 1:
  3881. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  3882. {
  3883. _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3884. CHK_(ptr);
  3885. }
  3886. else
  3887. goto handle_unusual;
  3888. continue;
  3889. // int32 y = 2;
  3890. case 2:
  3891. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  3892. {
  3893. _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3894. CHK_(ptr);
  3895. }
  3896. else
  3897. goto handle_unusual;
  3898. continue;
  3899. // int32 progress = 3;
  3900. case 3:
  3901. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
  3902. {
  3903. _impl_.progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3904. CHK_(ptr);
  3905. }
  3906. else
  3907. goto handle_unusual;
  3908. continue;
  3909. default:
  3910. goto handle_unusual;
  3911. } // switch
  3912. handle_unusual:
  3913. if ((tag == 0) || ((tag & 7) == 4))
  3914. {
  3915. CHK_(ptr);
  3916. ctx->SetLastTag(tag);
  3917. goto message_done;
  3918. }
  3919. ptr = UnknownFieldParse(
  3920. tag,
  3921. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3922. ptr,
  3923. ctx
  3924. );
  3925. CHK_(ptr != nullptr);
  3926. } // while
  3927. message_done:
  3928. return ptr;
  3929. failure:
  3930. ptr = nullptr;
  3931. goto message_done;
  3932. #undef CHK_
  3933. }
  3934. uint8_t* MessageOfClassroom::_InternalSerialize(
  3935. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  3936. ) const
  3937. {
  3938. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfClassroom)
  3939. uint32_t cached_has_bits = 0;
  3940. (void)cached_has_bits;
  3941. // int32 x = 1;
  3942. if (this->_internal_x() != 0)
  3943. {
  3944. target = stream->EnsureSpace(target);
  3945. target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target);
  3946. }
  3947. // int32 y = 2;
  3948. if (this->_internal_y() != 0)
  3949. {
  3950. target = stream->EnsureSpace(target);
  3951. target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target);
  3952. }
  3953. // int32 progress = 3;
  3954. if (this->_internal_progress() != 0)
  3955. {
  3956. target = stream->EnsureSpace(target);
  3957. target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_progress(), target);
  3958. }
  3959. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  3960. {
  3961. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  3962. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  3963. );
  3964. }
  3965. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfClassroom)
  3966. return target;
  3967. }
  3968. size_t MessageOfClassroom::ByteSizeLong() const
  3969. {
  3970. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfClassroom)
  3971. size_t total_size = 0;
  3972. uint32_t cached_has_bits = 0;
  3973. // Prevent compiler warnings about cached_has_bits being unused
  3974. (void)cached_has_bits;
  3975. // int32 x = 1;
  3976. if (this->_internal_x() != 0)
  3977. {
  3978. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
  3979. }
  3980. // int32 y = 2;
  3981. if (this->_internal_y() != 0)
  3982. {
  3983. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
  3984. }
  3985. // int32 progress = 3;
  3986. if (this->_internal_progress() != 0)
  3987. {
  3988. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_progress());
  3989. }
  3990. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  3991. }
  3992. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfClassroom::_class_data_ = {
  3993. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  3994. MessageOfClassroom::MergeImpl};
  3995. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfClassroom::GetClassData() const
  3996. {
  3997. return &_class_data_;
  3998. }
  3999. void MessageOfClassroom::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  4000. {
  4001. auto* const _this = static_cast<MessageOfClassroom*>(&to_msg);
  4002. auto& from = static_cast<const MessageOfClassroom&>(from_msg);
  4003. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfClassroom)
  4004. GOOGLE_DCHECK_NE(&from, _this);
  4005. uint32_t cached_has_bits = 0;
  4006. (void)cached_has_bits;
  4007. if (from._internal_x() != 0)
  4008. {
  4009. _this->_internal_set_x(from._internal_x());
  4010. }
  4011. if (from._internal_y() != 0)
  4012. {
  4013. _this->_internal_set_y(from._internal_y());
  4014. }
  4015. if (from._internal_progress() != 0)
  4016. {
  4017. _this->_internal_set_progress(from._internal_progress());
  4018. }
  4019. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4020. }
  4021. void MessageOfClassroom::CopyFrom(const MessageOfClassroom& from)
  4022. {
  4023. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfClassroom)
  4024. if (&from == this)
  4025. return;
  4026. Clear();
  4027. MergeFrom(from);
  4028. }
  4029. bool MessageOfClassroom::IsInitialized() const
  4030. {
  4031. return true;
  4032. }
  4033. void MessageOfClassroom::InternalSwap(MessageOfClassroom* other)
  4034. {
  4035. using std::swap;
  4036. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4037. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  4038. PROTOBUF_FIELD_OFFSET(MessageOfClassroom, _impl_.progress_) + sizeof(MessageOfClassroom::_impl_.progress_) - PROTOBUF_FIELD_OFFSET(MessageOfClassroom, _impl_.x_)>(
  4039. reinterpret_cast<char*>(&_impl_.x_),
  4040. reinterpret_cast<char*>(&other->_impl_.x_)
  4041. );
  4042. }
  4043. ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfClassroom::GetMetadata() const
  4044. {
  4045. return ::_pbi::AssignDescriptors(
  4046. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[6]
  4047. );
  4048. }
  4049. // ===================================================================
  4050. class MessageOfGate::_Internal
  4051. {
  4052. public:
  4053. };
  4054. MessageOfGate::MessageOfGate(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  4055. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  4056. {
  4057. SharedCtor(arena, is_message_owned);
  4058. // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfGate)
  4059. }
  4060. MessageOfGate::MessageOfGate(const MessageOfGate& from) :
  4061. ::PROTOBUF_NAMESPACE_ID::Message()
  4062. {
  4063. MessageOfGate* const _this = this;
  4064. (void)_this;
  4065. new (&_impl_) Impl_{
  4066. decltype(_impl_.x_){}, decltype(_impl_.y_){}, decltype(_impl_.progress_){}, /*decltype(_impl_._cached_size_)*/ {}};
  4067. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4068. ::memcpy(&_impl_.x_, &from._impl_.x_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.progress_) - reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.progress_));
  4069. // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfGate)
  4070. }
  4071. inline void MessageOfGate::SharedCtor(
  4072. ::_pb::Arena* arena, bool is_message_owned
  4073. )
  4074. {
  4075. (void)arena;
  4076. (void)is_message_owned;
  4077. new (&_impl_) Impl_{
  4078. decltype(_impl_.x_){0}, decltype(_impl_.y_){0}, decltype(_impl_.progress_){0}, /*decltype(_impl_._cached_size_)*/ {}};
  4079. }
  4080. MessageOfGate::~MessageOfGate()
  4081. {
  4082. // @@protoc_insertion_point(destructor:protobuf.MessageOfGate)
  4083. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  4084. {
  4085. (void)arena;
  4086. return;
  4087. }
  4088. SharedDtor();
  4089. }
  4090. inline void MessageOfGate::SharedDtor()
  4091. {
  4092. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4093. }
  4094. void MessageOfGate::SetCachedSize(int size) const
  4095. {
  4096. _impl_._cached_size_.Set(size);
  4097. }
  4098. void MessageOfGate::Clear()
  4099. {
  4100. // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfGate)
  4101. uint32_t cached_has_bits = 0;
  4102. // Prevent compiler warnings about cached_has_bits being unused
  4103. (void)cached_has_bits;
  4104. ::memset(&_impl_.x_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.progress_) - reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.progress_));
  4105. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4106. }
  4107. const char* MessageOfGate::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  4108. {
  4109. #define CHK_(x) \
  4110. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  4111. goto failure
  4112. while (!ctx->Done(&ptr))
  4113. {
  4114. uint32_t tag;
  4115. ptr = ::_pbi::ReadTag(ptr, &tag);
  4116. switch (tag >> 3)
  4117. {
  4118. // int32 x = 1;
  4119. case 1:
  4120. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  4121. {
  4122. _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4123. CHK_(ptr);
  4124. }
  4125. else
  4126. goto handle_unusual;
  4127. continue;
  4128. // int32 y = 2;
  4129. case 2:
  4130. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  4131. {
  4132. _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4133. CHK_(ptr);
  4134. }
  4135. else
  4136. goto handle_unusual;
  4137. continue;
  4138. // int32 progress = 3;
  4139. case 3:
  4140. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
  4141. {
  4142. _impl_.progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4143. CHK_(ptr);
  4144. }
  4145. else
  4146. goto handle_unusual;
  4147. continue;
  4148. default:
  4149. goto handle_unusual;
  4150. } // switch
  4151. handle_unusual:
  4152. if ((tag == 0) || ((tag & 7) == 4))
  4153. {
  4154. CHK_(ptr);
  4155. ctx->SetLastTag(tag);
  4156. goto message_done;
  4157. }
  4158. ptr = UnknownFieldParse(
  4159. tag,
  4160. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4161. ptr,
  4162. ctx
  4163. );
  4164. CHK_(ptr != nullptr);
  4165. } // while
  4166. message_done:
  4167. return ptr;
  4168. failure:
  4169. ptr = nullptr;
  4170. goto message_done;
  4171. #undef CHK_
  4172. }
  4173. uint8_t* MessageOfGate::_InternalSerialize(
  4174. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  4175. ) const
  4176. {
  4177. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfGate)
  4178. uint32_t cached_has_bits = 0;
  4179. (void)cached_has_bits;
  4180. // int32 x = 1;
  4181. if (this->_internal_x() != 0)
  4182. {
  4183. target = stream->EnsureSpace(target);
  4184. target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target);
  4185. }
  4186. // int32 y = 2;
  4187. if (this->_internal_y() != 0)
  4188. {
  4189. target = stream->EnsureSpace(target);
  4190. target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target);
  4191. }
  4192. // int32 progress = 3;
  4193. if (this->_internal_progress() != 0)
  4194. {
  4195. target = stream->EnsureSpace(target);
  4196. target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_progress(), target);
  4197. }
  4198. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  4199. {
  4200. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  4201. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  4202. );
  4203. }
  4204. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfGate)
  4205. return target;
  4206. }
  4207. size_t MessageOfGate::ByteSizeLong() const
  4208. {
  4209. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfGate)
  4210. size_t total_size = 0;
  4211. uint32_t cached_has_bits = 0;
  4212. // Prevent compiler warnings about cached_has_bits being unused
  4213. (void)cached_has_bits;
  4214. // int32 x = 1;
  4215. if (this->_internal_x() != 0)
  4216. {
  4217. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
  4218. }
  4219. // int32 y = 2;
  4220. if (this->_internal_y() != 0)
  4221. {
  4222. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
  4223. }
  4224. // int32 progress = 3;
  4225. if (this->_internal_progress() != 0)
  4226. {
  4227. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_progress());
  4228. }
  4229. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  4230. }
  4231. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfGate::_class_data_ = {
  4232. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  4233. MessageOfGate::MergeImpl};
  4234. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfGate::GetClassData() const
  4235. {
  4236. return &_class_data_;
  4237. }
  4238. void MessageOfGate::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  4239. {
  4240. auto* const _this = static_cast<MessageOfGate*>(&to_msg);
  4241. auto& from = static_cast<const MessageOfGate&>(from_msg);
  4242. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfGate)
  4243. GOOGLE_DCHECK_NE(&from, _this);
  4244. uint32_t cached_has_bits = 0;
  4245. (void)cached_has_bits;
  4246. if (from._internal_x() != 0)
  4247. {
  4248. _this->_internal_set_x(from._internal_x());
  4249. }
  4250. if (from._internal_y() != 0)
  4251. {
  4252. _this->_internal_set_y(from._internal_y());
  4253. }
  4254. if (from._internal_progress() != 0)
  4255. {
  4256. _this->_internal_set_progress(from._internal_progress());
  4257. }
  4258. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4259. }
  4260. void MessageOfGate::CopyFrom(const MessageOfGate& from)
  4261. {
  4262. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfGate)
  4263. if (&from == this)
  4264. return;
  4265. Clear();
  4266. MergeFrom(from);
  4267. }
  4268. bool MessageOfGate::IsInitialized() const
  4269. {
  4270. return true;
  4271. }
  4272. void MessageOfGate::InternalSwap(MessageOfGate* other)
  4273. {
  4274. using std::swap;
  4275. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4276. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  4277. PROTOBUF_FIELD_OFFSET(MessageOfGate, _impl_.progress_) + sizeof(MessageOfGate::_impl_.progress_) - PROTOBUF_FIELD_OFFSET(MessageOfGate, _impl_.x_)>(
  4278. reinterpret_cast<char*>(&_impl_.x_),
  4279. reinterpret_cast<char*>(&other->_impl_.x_)
  4280. );
  4281. }
  4282. ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfGate::GetMetadata() const
  4283. {
  4284. return ::_pbi::AssignDescriptors(
  4285. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[7]
  4286. );
  4287. }
  4288. // ===================================================================
  4289. class MessageOfDoor::_Internal
  4290. {
  4291. public:
  4292. };
  4293. MessageOfDoor::MessageOfDoor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  4294. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  4295. {
  4296. SharedCtor(arena, is_message_owned);
  4297. // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfDoor)
  4298. }
  4299. MessageOfDoor::MessageOfDoor(const MessageOfDoor& from) :
  4300. ::PROTOBUF_NAMESPACE_ID::Message()
  4301. {
  4302. MessageOfDoor* const _this = this;
  4303. (void)_this;
  4304. new (&_impl_) Impl_{
  4305. decltype(_impl_.x_){}, decltype(_impl_.y_){}, decltype(_impl_.is_open_){}, /*decltype(_impl_._cached_size_)*/ {}};
  4306. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4307. ::memcpy(&_impl_.x_, &from._impl_.x_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.is_open_) - reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.is_open_));
  4308. // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfDoor)
  4309. }
  4310. inline void MessageOfDoor::SharedCtor(
  4311. ::_pb::Arena* arena, bool is_message_owned
  4312. )
  4313. {
  4314. (void)arena;
  4315. (void)is_message_owned;
  4316. new (&_impl_) Impl_{
  4317. decltype(_impl_.x_){0}, decltype(_impl_.y_){0}, decltype(_impl_.is_open_){false}, /*decltype(_impl_._cached_size_)*/ {}};
  4318. }
  4319. MessageOfDoor::~MessageOfDoor()
  4320. {
  4321. // @@protoc_insertion_point(destructor:protobuf.MessageOfDoor)
  4322. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  4323. {
  4324. (void)arena;
  4325. return;
  4326. }
  4327. SharedDtor();
  4328. }
  4329. inline void MessageOfDoor::SharedDtor()
  4330. {
  4331. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4332. }
  4333. void MessageOfDoor::SetCachedSize(int size) const
  4334. {
  4335. _impl_._cached_size_.Set(size);
  4336. }
  4337. void MessageOfDoor::Clear()
  4338. {
  4339. // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfDoor)
  4340. uint32_t cached_has_bits = 0;
  4341. // Prevent compiler warnings about cached_has_bits being unused
  4342. (void)cached_has_bits;
  4343. ::memset(&_impl_.x_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.is_open_) - reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.is_open_));
  4344. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4345. }
  4346. const char* MessageOfDoor::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  4347. {
  4348. #define CHK_(x) \
  4349. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  4350. goto failure
  4351. while (!ctx->Done(&ptr))
  4352. {
  4353. uint32_t tag;
  4354. ptr = ::_pbi::ReadTag(ptr, &tag);
  4355. switch (tag >> 3)
  4356. {
  4357. // int32 x = 1;
  4358. case 1:
  4359. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  4360. {
  4361. _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4362. CHK_(ptr);
  4363. }
  4364. else
  4365. goto handle_unusual;
  4366. continue;
  4367. // int32 y = 2;
  4368. case 2:
  4369. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  4370. {
  4371. _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4372. CHK_(ptr);
  4373. }
  4374. else
  4375. goto handle_unusual;
  4376. continue;
  4377. // bool is_open = 3;
  4378. case 3:
  4379. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
  4380. {
  4381. _impl_.is_open_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  4382. CHK_(ptr);
  4383. }
  4384. else
  4385. goto handle_unusual;
  4386. continue;
  4387. default:
  4388. goto handle_unusual;
  4389. } // switch
  4390. handle_unusual:
  4391. if ((tag == 0) || ((tag & 7) == 4))
  4392. {
  4393. CHK_(ptr);
  4394. ctx->SetLastTag(tag);
  4395. goto message_done;
  4396. }
  4397. ptr = UnknownFieldParse(
  4398. tag,
  4399. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4400. ptr,
  4401. ctx
  4402. );
  4403. CHK_(ptr != nullptr);
  4404. } // while
  4405. message_done:
  4406. return ptr;
  4407. failure:
  4408. ptr = nullptr;
  4409. goto message_done;
  4410. #undef CHK_
  4411. }
  4412. uint8_t* MessageOfDoor::_InternalSerialize(
  4413. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  4414. ) const
  4415. {
  4416. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfDoor)
  4417. uint32_t cached_has_bits = 0;
  4418. (void)cached_has_bits;
  4419. // int32 x = 1;
  4420. if (this->_internal_x() != 0)
  4421. {
  4422. target = stream->EnsureSpace(target);
  4423. target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target);
  4424. }
  4425. // int32 y = 2;
  4426. if (this->_internal_y() != 0)
  4427. {
  4428. target = stream->EnsureSpace(target);
  4429. target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target);
  4430. }
  4431. // bool is_open = 3;
  4432. if (this->_internal_is_open() != 0)
  4433. {
  4434. target = stream->EnsureSpace(target);
  4435. target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_is_open(), target);
  4436. }
  4437. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  4438. {
  4439. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  4440. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  4441. );
  4442. }
  4443. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfDoor)
  4444. return target;
  4445. }
  4446. size_t MessageOfDoor::ByteSizeLong() const
  4447. {
  4448. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfDoor)
  4449. size_t total_size = 0;
  4450. uint32_t cached_has_bits = 0;
  4451. // Prevent compiler warnings about cached_has_bits being unused
  4452. (void)cached_has_bits;
  4453. // int32 x = 1;
  4454. if (this->_internal_x() != 0)
  4455. {
  4456. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
  4457. }
  4458. // int32 y = 2;
  4459. if (this->_internal_y() != 0)
  4460. {
  4461. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
  4462. }
  4463. // bool is_open = 3;
  4464. if (this->_internal_is_open() != 0)
  4465. {
  4466. total_size += 1 + 1;
  4467. }
  4468. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  4469. }
  4470. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfDoor::_class_data_ = {
  4471. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  4472. MessageOfDoor::MergeImpl};
  4473. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfDoor::GetClassData() const
  4474. {
  4475. return &_class_data_;
  4476. }
  4477. void MessageOfDoor::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  4478. {
  4479. auto* const _this = static_cast<MessageOfDoor*>(&to_msg);
  4480. auto& from = static_cast<const MessageOfDoor&>(from_msg);
  4481. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfDoor)
  4482. GOOGLE_DCHECK_NE(&from, _this);
  4483. uint32_t cached_has_bits = 0;
  4484. (void)cached_has_bits;
  4485. if (from._internal_x() != 0)
  4486. {
  4487. _this->_internal_set_x(from._internal_x());
  4488. }
  4489. if (from._internal_y() != 0)
  4490. {
  4491. _this->_internal_set_y(from._internal_y());
  4492. }
  4493. if (from._internal_is_open() != 0)
  4494. {
  4495. _this->_internal_set_is_open(from._internal_is_open());
  4496. }
  4497. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4498. }
  4499. void MessageOfDoor::CopyFrom(const MessageOfDoor& from)
  4500. {
  4501. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfDoor)
  4502. if (&from == this)
  4503. return;
  4504. Clear();
  4505. MergeFrom(from);
  4506. }
  4507. bool MessageOfDoor::IsInitialized() const
  4508. {
  4509. return true;
  4510. }
  4511. void MessageOfDoor::InternalSwap(MessageOfDoor* other)
  4512. {
  4513. using std::swap;
  4514. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4515. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  4516. PROTOBUF_FIELD_OFFSET(MessageOfDoor, _impl_.is_open_) + sizeof(MessageOfDoor::_impl_.is_open_) - PROTOBUF_FIELD_OFFSET(MessageOfDoor, _impl_.x_)>(
  4517. reinterpret_cast<char*>(&_impl_.x_),
  4518. reinterpret_cast<char*>(&other->_impl_.x_)
  4519. );
  4520. }
  4521. ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfDoor::GetMetadata() const
  4522. {
  4523. return ::_pbi::AssignDescriptors(
  4524. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[8]
  4525. );
  4526. }
  4527. // ===================================================================
  4528. class MessageOfChest::_Internal
  4529. {
  4530. public:
  4531. };
  4532. MessageOfChest::MessageOfChest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  4533. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  4534. {
  4535. SharedCtor(arena, is_message_owned);
  4536. // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfChest)
  4537. }
  4538. MessageOfChest::MessageOfChest(const MessageOfChest& from) :
  4539. ::PROTOBUF_NAMESPACE_ID::Message()
  4540. {
  4541. MessageOfChest* const _this = this;
  4542. (void)_this;
  4543. new (&_impl_) Impl_{
  4544. decltype(_impl_.x_){}, decltype(_impl_.y_){}, decltype(_impl_.progress_){}, /*decltype(_impl_._cached_size_)*/ {}};
  4545. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4546. ::memcpy(&_impl_.x_, &from._impl_.x_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.progress_) - reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.progress_));
  4547. // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfChest)
  4548. }
  4549. inline void MessageOfChest::SharedCtor(
  4550. ::_pb::Arena* arena, bool is_message_owned
  4551. )
  4552. {
  4553. (void)arena;
  4554. (void)is_message_owned;
  4555. new (&_impl_) Impl_{
  4556. decltype(_impl_.x_){0}, decltype(_impl_.y_){0}, decltype(_impl_.progress_){0}, /*decltype(_impl_._cached_size_)*/ {}};
  4557. }
  4558. MessageOfChest::~MessageOfChest()
  4559. {
  4560. // @@protoc_insertion_point(destructor:protobuf.MessageOfChest)
  4561. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  4562. {
  4563. (void)arena;
  4564. return;
  4565. }
  4566. SharedDtor();
  4567. }
  4568. inline void MessageOfChest::SharedDtor()
  4569. {
  4570. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4571. }
  4572. void MessageOfChest::SetCachedSize(int size) const
  4573. {
  4574. _impl_._cached_size_.Set(size);
  4575. }
  4576. void MessageOfChest::Clear()
  4577. {
  4578. // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfChest)
  4579. uint32_t cached_has_bits = 0;
  4580. // Prevent compiler warnings about cached_has_bits being unused
  4581. (void)cached_has_bits;
  4582. ::memset(&_impl_.x_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.progress_) - reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.progress_));
  4583. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4584. }
  4585. const char* MessageOfChest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  4586. {
  4587. #define CHK_(x) \
  4588. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  4589. goto failure
  4590. while (!ctx->Done(&ptr))
  4591. {
  4592. uint32_t tag;
  4593. ptr = ::_pbi::ReadTag(ptr, &tag);
  4594. switch (tag >> 3)
  4595. {
  4596. // int32 x = 1;
  4597. case 1:
  4598. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  4599. {
  4600. _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4601. CHK_(ptr);
  4602. }
  4603. else
  4604. goto handle_unusual;
  4605. continue;
  4606. // int32 y = 2;
  4607. case 2:
  4608. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  4609. {
  4610. _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4611. CHK_(ptr);
  4612. }
  4613. else
  4614. goto handle_unusual;
  4615. continue;
  4616. // int32 progress = 3;
  4617. case 3:
  4618. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
  4619. {
  4620. _impl_.progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4621. CHK_(ptr);
  4622. }
  4623. else
  4624. goto handle_unusual;
  4625. continue;
  4626. default:
  4627. goto handle_unusual;
  4628. } // switch
  4629. handle_unusual:
  4630. if ((tag == 0) || ((tag & 7) == 4))
  4631. {
  4632. CHK_(ptr);
  4633. ctx->SetLastTag(tag);
  4634. goto message_done;
  4635. }
  4636. ptr = UnknownFieldParse(
  4637. tag,
  4638. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4639. ptr,
  4640. ctx
  4641. );
  4642. CHK_(ptr != nullptr);
  4643. } // while
  4644. message_done:
  4645. return ptr;
  4646. failure:
  4647. ptr = nullptr;
  4648. goto message_done;
  4649. #undef CHK_
  4650. }
  4651. uint8_t* MessageOfChest::_InternalSerialize(
  4652. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  4653. ) const
  4654. {
  4655. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfChest)
  4656. uint32_t cached_has_bits = 0;
  4657. (void)cached_has_bits;
  4658. // int32 x = 1;
  4659. if (this->_internal_x() != 0)
  4660. {
  4661. target = stream->EnsureSpace(target);
  4662. target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target);
  4663. }
  4664. // int32 y = 2;
  4665. if (this->_internal_y() != 0)
  4666. {
  4667. target = stream->EnsureSpace(target);
  4668. target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target);
  4669. }
  4670. // int32 progress = 3;
  4671. if (this->_internal_progress() != 0)
  4672. {
  4673. target = stream->EnsureSpace(target);
  4674. target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_progress(), target);
  4675. }
  4676. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  4677. {
  4678. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  4679. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  4680. );
  4681. }
  4682. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfChest)
  4683. return target;
  4684. }
  4685. size_t MessageOfChest::ByteSizeLong() const
  4686. {
  4687. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfChest)
  4688. size_t total_size = 0;
  4689. uint32_t cached_has_bits = 0;
  4690. // Prevent compiler warnings about cached_has_bits being unused
  4691. (void)cached_has_bits;
  4692. // int32 x = 1;
  4693. if (this->_internal_x() != 0)
  4694. {
  4695. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
  4696. }
  4697. // int32 y = 2;
  4698. if (this->_internal_y() != 0)
  4699. {
  4700. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
  4701. }
  4702. // int32 progress = 3;
  4703. if (this->_internal_progress() != 0)
  4704. {
  4705. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_progress());
  4706. }
  4707. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  4708. }
  4709. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfChest::_class_data_ = {
  4710. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  4711. MessageOfChest::MergeImpl};
  4712. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfChest::GetClassData() const
  4713. {
  4714. return &_class_data_;
  4715. }
  4716. void MessageOfChest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  4717. {
  4718. auto* const _this = static_cast<MessageOfChest*>(&to_msg);
  4719. auto& from = static_cast<const MessageOfChest&>(from_msg);
  4720. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfChest)
  4721. GOOGLE_DCHECK_NE(&from, _this);
  4722. uint32_t cached_has_bits = 0;
  4723. (void)cached_has_bits;
  4724. if (from._internal_x() != 0)
  4725. {
  4726. _this->_internal_set_x(from._internal_x());
  4727. }
  4728. if (from._internal_y() != 0)
  4729. {
  4730. _this->_internal_set_y(from._internal_y());
  4731. }
  4732. if (from._internal_progress() != 0)
  4733. {
  4734. _this->_internal_set_progress(from._internal_progress());
  4735. }
  4736. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4737. }
  4738. void MessageOfChest::CopyFrom(const MessageOfChest& from)
  4739. {
  4740. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfChest)
  4741. if (&from == this)
  4742. return;
  4743. Clear();
  4744. MergeFrom(from);
  4745. }
  4746. bool MessageOfChest::IsInitialized() const
  4747. {
  4748. return true;
  4749. }
  4750. void MessageOfChest::InternalSwap(MessageOfChest* other)
  4751. {
  4752. using std::swap;
  4753. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4754. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  4755. PROTOBUF_FIELD_OFFSET(MessageOfChest, _impl_.progress_) + sizeof(MessageOfChest::_impl_.progress_) - PROTOBUF_FIELD_OFFSET(MessageOfChest, _impl_.x_)>(
  4756. reinterpret_cast<char*>(&_impl_.x_),
  4757. reinterpret_cast<char*>(&other->_impl_.x_)
  4758. );
  4759. }
  4760. ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfChest::GetMetadata() const
  4761. {
  4762. return ::_pbi::AssignDescriptors(
  4763. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[9]
  4764. );
  4765. }
  4766. // ===================================================================
  4767. class MessageOfMapObj::_Internal
  4768. {
  4769. public:
  4770. static const ::protobuf::MessageOfClassroom& classroom_message(const MessageOfMapObj* msg);
  4771. static const ::protobuf::MessageOfDoor& door_message(const MessageOfMapObj* msg);
  4772. static const ::protobuf::MessageOfGate& gate_message(const MessageOfMapObj* msg);
  4773. static const ::protobuf::MessageOfChest& chest_message(const MessageOfMapObj* msg);
  4774. };
  4775. const ::protobuf::MessageOfClassroom&
  4776. MessageOfMapObj::_Internal::classroom_message(const MessageOfMapObj* msg)
  4777. {
  4778. return *msg->_impl_.message_of_map_obj_.classroom_message_;
  4779. }
  4780. const ::protobuf::MessageOfDoor&
  4781. MessageOfMapObj::_Internal::door_message(const MessageOfMapObj* msg)
  4782. {
  4783. return *msg->_impl_.message_of_map_obj_.door_message_;
  4784. }
  4785. const ::protobuf::MessageOfGate&
  4786. MessageOfMapObj::_Internal::gate_message(const MessageOfMapObj* msg)
  4787. {
  4788. return *msg->_impl_.message_of_map_obj_.gate_message_;
  4789. }
  4790. const ::protobuf::MessageOfChest&
  4791. MessageOfMapObj::_Internal::chest_message(const MessageOfMapObj* msg)
  4792. {
  4793. return *msg->_impl_.message_of_map_obj_.chest_message_;
  4794. }
  4795. void MessageOfMapObj::set_allocated_classroom_message(::protobuf::MessageOfClassroom* classroom_message)
  4796. {
  4797. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  4798. clear_message_of_map_obj();
  4799. if (classroom_message)
  4800. {
  4801. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  4802. ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(classroom_message);
  4803. if (message_arena != submessage_arena)
  4804. {
  4805. classroom_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  4806. message_arena, classroom_message, submessage_arena
  4807. );
  4808. }
  4809. set_has_classroom_message();
  4810. _impl_.message_of_map_obj_.classroom_message_ = classroom_message;
  4811. }
  4812. // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfMapObj.classroom_message)
  4813. }
  4814. void MessageOfMapObj::set_allocated_door_message(::protobuf::MessageOfDoor* door_message)
  4815. {
  4816. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  4817. clear_message_of_map_obj();
  4818. if (door_message)
  4819. {
  4820. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  4821. ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(door_message);
  4822. if (message_arena != submessage_arena)
  4823. {
  4824. door_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  4825. message_arena, door_message, submessage_arena
  4826. );
  4827. }
  4828. set_has_door_message();
  4829. _impl_.message_of_map_obj_.door_message_ = door_message;
  4830. }
  4831. // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfMapObj.door_message)
  4832. }
  4833. void MessageOfMapObj::set_allocated_gate_message(::protobuf::MessageOfGate* gate_message)
  4834. {
  4835. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  4836. clear_message_of_map_obj();
  4837. if (gate_message)
  4838. {
  4839. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  4840. ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(gate_message);
  4841. if (message_arena != submessage_arena)
  4842. {
  4843. gate_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  4844. message_arena, gate_message, submessage_arena
  4845. );
  4846. }
  4847. set_has_gate_message();
  4848. _impl_.message_of_map_obj_.gate_message_ = gate_message;
  4849. }
  4850. // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfMapObj.gate_message)
  4851. }
  4852. void MessageOfMapObj::set_allocated_chest_message(::protobuf::MessageOfChest* chest_message)
  4853. {
  4854. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  4855. clear_message_of_map_obj();
  4856. if (chest_message)
  4857. {
  4858. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  4859. ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(chest_message);
  4860. if (message_arena != submessage_arena)
  4861. {
  4862. chest_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  4863. message_arena, chest_message, submessage_arena
  4864. );
  4865. }
  4866. set_has_chest_message();
  4867. _impl_.message_of_map_obj_.chest_message_ = chest_message;
  4868. }
  4869. // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfMapObj.chest_message)
  4870. }
  4871. MessageOfMapObj::MessageOfMapObj(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  4872. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  4873. {
  4874. SharedCtor(arena, is_message_owned);
  4875. // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfMapObj)
  4876. }
  4877. MessageOfMapObj::MessageOfMapObj(const MessageOfMapObj& from) :
  4878. ::PROTOBUF_NAMESPACE_ID::Message()
  4879. {
  4880. MessageOfMapObj* const _this = this;
  4881. (void)_this;
  4882. new (&_impl_) Impl_{
  4883. decltype(_impl_.message_of_map_obj_){}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_._oneof_case_)*/ {}};
  4884. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4885. clear_has_message_of_map_obj();
  4886. switch (from.message_of_map_obj_case())
  4887. {
  4888. case kClassroomMessage:
  4889. {
  4890. _this->_internal_mutable_classroom_message()->::protobuf::MessageOfClassroom::MergeFrom(
  4891. from._internal_classroom_message()
  4892. );
  4893. break;
  4894. }
  4895. case kDoorMessage:
  4896. {
  4897. _this->_internal_mutable_door_message()->::protobuf::MessageOfDoor::MergeFrom(
  4898. from._internal_door_message()
  4899. );
  4900. break;
  4901. }
  4902. case kGateMessage:
  4903. {
  4904. _this->_internal_mutable_gate_message()->::protobuf::MessageOfGate::MergeFrom(
  4905. from._internal_gate_message()
  4906. );
  4907. break;
  4908. }
  4909. case kChestMessage:
  4910. {
  4911. _this->_internal_mutable_chest_message()->::protobuf::MessageOfChest::MergeFrom(
  4912. from._internal_chest_message()
  4913. );
  4914. break;
  4915. }
  4916. case MESSAGE_OF_MAP_OBJ_NOT_SET:
  4917. {
  4918. break;
  4919. }
  4920. }
  4921. // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfMapObj)
  4922. }
  4923. inline void MessageOfMapObj::SharedCtor(
  4924. ::_pb::Arena* arena, bool is_message_owned
  4925. )
  4926. {
  4927. (void)arena;
  4928. (void)is_message_owned;
  4929. new (&_impl_) Impl_{
  4930. decltype(_impl_.message_of_map_obj_){}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_._oneof_case_)*/ {}};
  4931. clear_has_message_of_map_obj();
  4932. }
  4933. MessageOfMapObj::~MessageOfMapObj()
  4934. {
  4935. // @@protoc_insertion_point(destructor:protobuf.MessageOfMapObj)
  4936. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  4937. {
  4938. (void)arena;
  4939. return;
  4940. }
  4941. SharedDtor();
  4942. }
  4943. inline void MessageOfMapObj::SharedDtor()
  4944. {
  4945. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4946. if (has_message_of_map_obj())
  4947. {
  4948. clear_message_of_map_obj();
  4949. }
  4950. }
  4951. void MessageOfMapObj::SetCachedSize(int size) const
  4952. {
  4953. _impl_._cached_size_.Set(size);
  4954. }
  4955. void MessageOfMapObj::clear_message_of_map_obj()
  4956. {
  4957. // @@protoc_insertion_point(one_of_clear_start:protobuf.MessageOfMapObj)
  4958. switch (message_of_map_obj_case())
  4959. {
  4960. case kClassroomMessage:
  4961. {
  4962. if (GetArenaForAllocation() == nullptr)
  4963. {
  4964. delete _impl_.message_of_map_obj_.classroom_message_;
  4965. }
  4966. break;
  4967. }
  4968. case kDoorMessage:
  4969. {
  4970. if (GetArenaForAllocation() == nullptr)
  4971. {
  4972. delete _impl_.message_of_map_obj_.door_message_;
  4973. }
  4974. break;
  4975. }
  4976. case kGateMessage:
  4977. {
  4978. if (GetArenaForAllocation() == nullptr)
  4979. {
  4980. delete _impl_.message_of_map_obj_.gate_message_;
  4981. }
  4982. break;
  4983. }
  4984. case kChestMessage:
  4985. {
  4986. if (GetArenaForAllocation() == nullptr)
  4987. {
  4988. delete _impl_.message_of_map_obj_.chest_message_;
  4989. }
  4990. break;
  4991. }
  4992. case MESSAGE_OF_MAP_OBJ_NOT_SET:
  4993. {
  4994. break;
  4995. }
  4996. }
  4997. _impl_._oneof_case_[0] = MESSAGE_OF_MAP_OBJ_NOT_SET;
  4998. }
  4999. void MessageOfMapObj::Clear()
  5000. {
  5001. // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfMapObj)
  5002. uint32_t cached_has_bits = 0;
  5003. // Prevent compiler warnings about cached_has_bits being unused
  5004. (void)cached_has_bits;
  5005. clear_message_of_map_obj();
  5006. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5007. }
  5008. const char* MessageOfMapObj::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  5009. {
  5010. #define CHK_(x) \
  5011. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  5012. goto failure
  5013. while (!ctx->Done(&ptr))
  5014. {
  5015. uint32_t tag;
  5016. ptr = ::_pbi::ReadTag(ptr, &tag);
  5017. switch (tag >> 3)
  5018. {
  5019. // .protobuf.MessageOfClassroom classroom_message = 1;
  5020. case 1:
  5021. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10))
  5022. {
  5023. ptr = ctx->ParseMessage(_internal_mutable_classroom_message(), ptr);
  5024. CHK_(ptr);
  5025. }
  5026. else
  5027. goto handle_unusual;
  5028. continue;
  5029. // .protobuf.MessageOfDoor door_message = 2;
  5030. case 2:
  5031. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18))
  5032. {
  5033. ptr = ctx->ParseMessage(_internal_mutable_door_message(), ptr);
  5034. CHK_(ptr);
  5035. }
  5036. else
  5037. goto handle_unusual;
  5038. continue;
  5039. // .protobuf.MessageOfGate gate_message = 3;
  5040. case 3:
  5041. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26))
  5042. {
  5043. ptr = ctx->ParseMessage(_internal_mutable_gate_message(), ptr);
  5044. CHK_(ptr);
  5045. }
  5046. else
  5047. goto handle_unusual;
  5048. continue;
  5049. // .protobuf.MessageOfChest chest_message = 4;
  5050. case 4:
  5051. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34))
  5052. {
  5053. ptr = ctx->ParseMessage(_internal_mutable_chest_message(), ptr);
  5054. CHK_(ptr);
  5055. }
  5056. else
  5057. goto handle_unusual;
  5058. continue;
  5059. default:
  5060. goto handle_unusual;
  5061. } // switch
  5062. handle_unusual:
  5063. if ((tag == 0) || ((tag & 7) == 4))
  5064. {
  5065. CHK_(ptr);
  5066. ctx->SetLastTag(tag);
  5067. goto message_done;
  5068. }
  5069. ptr = UnknownFieldParse(
  5070. tag,
  5071. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  5072. ptr,
  5073. ctx
  5074. );
  5075. CHK_(ptr != nullptr);
  5076. } // while
  5077. message_done:
  5078. return ptr;
  5079. failure:
  5080. ptr = nullptr;
  5081. goto message_done;
  5082. #undef CHK_
  5083. }
  5084. uint8_t* MessageOfMapObj::_InternalSerialize(
  5085. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  5086. ) const
  5087. {
  5088. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfMapObj)
  5089. uint32_t cached_has_bits = 0;
  5090. (void)cached_has_bits;
  5091. // .protobuf.MessageOfClassroom classroom_message = 1;
  5092. if (_internal_has_classroom_message())
  5093. {
  5094. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  5095. InternalWriteMessage(1, _Internal::classroom_message(this), _Internal::classroom_message(this).GetCachedSize(), target, stream);
  5096. }
  5097. // .protobuf.MessageOfDoor door_message = 2;
  5098. if (_internal_has_door_message())
  5099. {
  5100. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  5101. InternalWriteMessage(2, _Internal::door_message(this), _Internal::door_message(this).GetCachedSize(), target, stream);
  5102. }
  5103. // .protobuf.MessageOfGate gate_message = 3;
  5104. if (_internal_has_gate_message())
  5105. {
  5106. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  5107. InternalWriteMessage(3, _Internal::gate_message(this), _Internal::gate_message(this).GetCachedSize(), target, stream);
  5108. }
  5109. // .protobuf.MessageOfChest chest_message = 4;
  5110. if (_internal_has_chest_message())
  5111. {
  5112. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  5113. InternalWriteMessage(4, _Internal::chest_message(this), _Internal::chest_message(this).GetCachedSize(), target, stream);
  5114. }
  5115. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  5116. {
  5117. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  5118. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  5119. );
  5120. }
  5121. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfMapObj)
  5122. return target;
  5123. }
  5124. size_t MessageOfMapObj::ByteSizeLong() const
  5125. {
  5126. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfMapObj)
  5127. size_t total_size = 0;
  5128. uint32_t cached_has_bits = 0;
  5129. // Prevent compiler warnings about cached_has_bits being unused
  5130. (void)cached_has_bits;
  5131. switch (message_of_map_obj_case())
  5132. {
  5133. // .protobuf.MessageOfClassroom classroom_message = 1;
  5134. case kClassroomMessage:
  5135. {
  5136. total_size += 1 +
  5137. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  5138. *_impl_.message_of_map_obj_.classroom_message_
  5139. );
  5140. break;
  5141. }
  5142. // .protobuf.MessageOfDoor door_message = 2;
  5143. case kDoorMessage:
  5144. {
  5145. total_size += 1 +
  5146. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  5147. *_impl_.message_of_map_obj_.door_message_
  5148. );
  5149. break;
  5150. }
  5151. // .protobuf.MessageOfGate gate_message = 3;
  5152. case kGateMessage:
  5153. {
  5154. total_size += 1 +
  5155. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  5156. *_impl_.message_of_map_obj_.gate_message_
  5157. );
  5158. break;
  5159. }
  5160. // .protobuf.MessageOfChest chest_message = 4;
  5161. case kChestMessage:
  5162. {
  5163. total_size += 1 +
  5164. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  5165. *_impl_.message_of_map_obj_.chest_message_
  5166. );
  5167. break;
  5168. }
  5169. case MESSAGE_OF_MAP_OBJ_NOT_SET:
  5170. {
  5171. break;
  5172. }
  5173. }
  5174. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  5175. }
  5176. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfMapObj::_class_data_ = {
  5177. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  5178. MessageOfMapObj::MergeImpl};
  5179. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfMapObj::GetClassData() const
  5180. {
  5181. return &_class_data_;
  5182. }
  5183. void MessageOfMapObj::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  5184. {
  5185. auto* const _this = static_cast<MessageOfMapObj*>(&to_msg);
  5186. auto& from = static_cast<const MessageOfMapObj&>(from_msg);
  5187. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfMapObj)
  5188. GOOGLE_DCHECK_NE(&from, _this);
  5189. uint32_t cached_has_bits = 0;
  5190. (void)cached_has_bits;
  5191. switch (from.message_of_map_obj_case())
  5192. {
  5193. case kClassroomMessage:
  5194. {
  5195. _this->_internal_mutable_classroom_message()->::protobuf::MessageOfClassroom::MergeFrom(
  5196. from._internal_classroom_message()
  5197. );
  5198. break;
  5199. }
  5200. case kDoorMessage:
  5201. {
  5202. _this->_internal_mutable_door_message()->::protobuf::MessageOfDoor::MergeFrom(
  5203. from._internal_door_message()
  5204. );
  5205. break;
  5206. }
  5207. case kGateMessage:
  5208. {
  5209. _this->_internal_mutable_gate_message()->::protobuf::MessageOfGate::MergeFrom(
  5210. from._internal_gate_message()
  5211. );
  5212. break;
  5213. }
  5214. case kChestMessage:
  5215. {
  5216. _this->_internal_mutable_chest_message()->::protobuf::MessageOfChest::MergeFrom(
  5217. from._internal_chest_message()
  5218. );
  5219. break;
  5220. }
  5221. case MESSAGE_OF_MAP_OBJ_NOT_SET:
  5222. {
  5223. break;
  5224. }
  5225. }
  5226. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5227. }
  5228. void MessageOfMapObj::CopyFrom(const MessageOfMapObj& from)
  5229. {
  5230. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfMapObj)
  5231. if (&from == this)
  5232. return;
  5233. Clear();
  5234. MergeFrom(from);
  5235. }
  5236. bool MessageOfMapObj::IsInitialized() const
  5237. {
  5238. return true;
  5239. }
  5240. void MessageOfMapObj::InternalSwap(MessageOfMapObj* other)
  5241. {
  5242. using std::swap;
  5243. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5244. swap(_impl_.message_of_map_obj_, other->_impl_.message_of_map_obj_);
  5245. swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
  5246. }
  5247. ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfMapObj::GetMetadata() const
  5248. {
  5249. return ::_pbi::AssignDescriptors(
  5250. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[10]
  5251. );
  5252. }
  5253. // ===================================================================
  5254. class MessageOfMap_Row::_Internal
  5255. {
  5256. public:
  5257. };
  5258. MessageOfMap_Row::MessageOfMap_Row(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  5259. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  5260. {
  5261. SharedCtor(arena, is_message_owned);
  5262. // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfMap.Row)
  5263. }
  5264. MessageOfMap_Row::MessageOfMap_Row(const MessageOfMap_Row& from) :
  5265. ::PROTOBUF_NAMESPACE_ID::Message()
  5266. {
  5267. MessageOfMap_Row* const _this = this;
  5268. (void)_this;
  5269. new (&_impl_) Impl_{
  5270. decltype(_impl_.col_){from._impl_.col_}, /*decltype(_impl_._col_cached_byte_size_)*/ {0}, /*decltype(_impl_._cached_size_)*/ {}};
  5271. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5272. // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfMap.Row)
  5273. }
  5274. inline void MessageOfMap_Row::SharedCtor(
  5275. ::_pb::Arena* arena, bool is_message_owned
  5276. )
  5277. {
  5278. (void)arena;
  5279. (void)is_message_owned;
  5280. new (&_impl_) Impl_{
  5281. decltype(_impl_.col_){arena}, /*decltype(_impl_._col_cached_byte_size_)*/ {0}, /*decltype(_impl_._cached_size_)*/ {}};
  5282. }
  5283. MessageOfMap_Row::~MessageOfMap_Row()
  5284. {
  5285. // @@protoc_insertion_point(destructor:protobuf.MessageOfMap.Row)
  5286. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  5287. {
  5288. (void)arena;
  5289. return;
  5290. }
  5291. SharedDtor();
  5292. }
  5293. inline void MessageOfMap_Row::SharedDtor()
  5294. {
  5295. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  5296. _impl_.col_.~RepeatedField();
  5297. }
  5298. void MessageOfMap_Row::SetCachedSize(int size) const
  5299. {
  5300. _impl_._cached_size_.Set(size);
  5301. }
  5302. void MessageOfMap_Row::Clear()
  5303. {
  5304. // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfMap.Row)
  5305. uint32_t cached_has_bits = 0;
  5306. // Prevent compiler warnings about cached_has_bits being unused
  5307. (void)cached_has_bits;
  5308. _impl_.col_.Clear();
  5309. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5310. }
  5311. const char* MessageOfMap_Row::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  5312. {
  5313. #define CHK_(x) \
  5314. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  5315. goto failure
  5316. while (!ctx->Done(&ptr))
  5317. {
  5318. uint32_t tag;
  5319. ptr = ::_pbi::ReadTag(ptr, &tag);
  5320. switch (tag >> 3)
  5321. {
  5322. // repeated .protobuf.PlaceType col = 1;
  5323. case 1:
  5324. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10))
  5325. {
  5326. ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_col(), ptr, ctx);
  5327. CHK_(ptr);
  5328. }
  5329. else if (static_cast<uint8_t>(tag) == 8)
  5330. {
  5331. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  5332. CHK_(ptr);
  5333. _internal_add_col(static_cast<::protobuf::PlaceType>(val));
  5334. }
  5335. else
  5336. goto handle_unusual;
  5337. continue;
  5338. default:
  5339. goto handle_unusual;
  5340. } // switch
  5341. handle_unusual:
  5342. if ((tag == 0) || ((tag & 7) == 4))
  5343. {
  5344. CHK_(ptr);
  5345. ctx->SetLastTag(tag);
  5346. goto message_done;
  5347. }
  5348. ptr = UnknownFieldParse(
  5349. tag,
  5350. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  5351. ptr,
  5352. ctx
  5353. );
  5354. CHK_(ptr != nullptr);
  5355. } // while
  5356. message_done:
  5357. return ptr;
  5358. failure:
  5359. ptr = nullptr;
  5360. goto message_done;
  5361. #undef CHK_
  5362. }
  5363. uint8_t* MessageOfMap_Row::_InternalSerialize(
  5364. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  5365. ) const
  5366. {
  5367. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfMap.Row)
  5368. uint32_t cached_has_bits = 0;
  5369. (void)cached_has_bits;
  5370. // repeated .protobuf.PlaceType col = 1;
  5371. {
  5372. int byte_size = _impl_._col_cached_byte_size_.load(std::memory_order_relaxed);
  5373. if (byte_size > 0)
  5374. {
  5375. target = stream->WriteEnumPacked(
  5376. 1, _impl_.col_, byte_size, target
  5377. );
  5378. }
  5379. }
  5380. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  5381. {
  5382. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  5383. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  5384. );
  5385. }
  5386. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfMap.Row)
  5387. return target;
  5388. }
  5389. size_t MessageOfMap_Row::ByteSizeLong() const
  5390. {
  5391. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfMap.Row)
  5392. size_t total_size = 0;
  5393. uint32_t cached_has_bits = 0;
  5394. // Prevent compiler warnings about cached_has_bits being unused
  5395. (void)cached_has_bits;
  5396. // repeated .protobuf.PlaceType col = 1;
  5397. {
  5398. size_t data_size = 0;
  5399. unsigned int count = static_cast<unsigned int>(this->_internal_col_size());
  5400. for (unsigned int i = 0; i < count; i++)
  5401. {
  5402. data_size += ::_pbi::WireFormatLite::EnumSize(
  5403. this->_internal_col(static_cast<int>(i))
  5404. );
  5405. }
  5406. if (data_size > 0)
  5407. {
  5408. total_size += 1 +
  5409. ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
  5410. }
  5411. int cached_size = ::_pbi::ToCachedSize(data_size);
  5412. _impl_._col_cached_byte_size_.store(cached_size, std::memory_order_relaxed);
  5413. total_size += data_size;
  5414. }
  5415. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  5416. }
  5417. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfMap_Row::_class_data_ = {
  5418. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  5419. MessageOfMap_Row::MergeImpl};
  5420. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfMap_Row::GetClassData() const
  5421. {
  5422. return &_class_data_;
  5423. }
  5424. void MessageOfMap_Row::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  5425. {
  5426. auto* const _this = static_cast<MessageOfMap_Row*>(&to_msg);
  5427. auto& from = static_cast<const MessageOfMap_Row&>(from_msg);
  5428. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfMap.Row)
  5429. GOOGLE_DCHECK_NE(&from, _this);
  5430. uint32_t cached_has_bits = 0;
  5431. (void)cached_has_bits;
  5432. _this->_impl_.col_.MergeFrom(from._impl_.col_);
  5433. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5434. }
  5435. void MessageOfMap_Row::CopyFrom(const MessageOfMap_Row& from)
  5436. {
  5437. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfMap.Row)
  5438. if (&from == this)
  5439. return;
  5440. Clear();
  5441. MergeFrom(from);
  5442. }
  5443. bool MessageOfMap_Row::IsInitialized() const
  5444. {
  5445. return true;
  5446. }
  5447. void MessageOfMap_Row::InternalSwap(MessageOfMap_Row* other)
  5448. {
  5449. using std::swap;
  5450. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5451. _impl_.col_.InternalSwap(&other->_impl_.col_);
  5452. }
  5453. ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfMap_Row::GetMetadata() const
  5454. {
  5455. return ::_pbi::AssignDescriptors(
  5456. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[11]
  5457. );
  5458. }
  5459. // ===================================================================
  5460. class MessageOfMap::_Internal
  5461. {
  5462. public:
  5463. };
  5464. MessageOfMap::MessageOfMap(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  5465. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  5466. {
  5467. SharedCtor(arena, is_message_owned);
  5468. // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfMap)
  5469. }
  5470. MessageOfMap::MessageOfMap(const MessageOfMap& from) :
  5471. ::PROTOBUF_NAMESPACE_ID::Message()
  5472. {
  5473. MessageOfMap* const _this = this;
  5474. (void)_this;
  5475. new (&_impl_) Impl_{
  5476. decltype(_impl_.row_){from._impl_.row_}, decltype(_impl_.map_obj_message_){from._impl_.map_obj_message_}, /*decltype(_impl_._cached_size_)*/ {}};
  5477. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5478. // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfMap)
  5479. }
  5480. inline void MessageOfMap::SharedCtor(
  5481. ::_pb::Arena* arena, bool is_message_owned
  5482. )
  5483. {
  5484. (void)arena;
  5485. (void)is_message_owned;
  5486. new (&_impl_) Impl_{
  5487. decltype(_impl_.row_){arena}, decltype(_impl_.map_obj_message_){arena}, /*decltype(_impl_._cached_size_)*/ {}};
  5488. }
  5489. MessageOfMap::~MessageOfMap()
  5490. {
  5491. // @@protoc_insertion_point(destructor:protobuf.MessageOfMap)
  5492. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  5493. {
  5494. (void)arena;
  5495. return;
  5496. }
  5497. SharedDtor();
  5498. }
  5499. inline void MessageOfMap::SharedDtor()
  5500. {
  5501. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  5502. _impl_.row_.~RepeatedPtrField();
  5503. _impl_.map_obj_message_.~RepeatedPtrField();
  5504. }
  5505. void MessageOfMap::SetCachedSize(int size) const
  5506. {
  5507. _impl_._cached_size_.Set(size);
  5508. }
  5509. void MessageOfMap::Clear()
  5510. {
  5511. // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfMap)
  5512. uint32_t cached_has_bits = 0;
  5513. // Prevent compiler warnings about cached_has_bits being unused
  5514. (void)cached_has_bits;
  5515. _impl_.row_.Clear();
  5516. _impl_.map_obj_message_.Clear();
  5517. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5518. }
  5519. const char* MessageOfMap::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  5520. {
  5521. #define CHK_(x) \
  5522. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  5523. goto failure
  5524. while (!ctx->Done(&ptr))
  5525. {
  5526. uint32_t tag;
  5527. ptr = ::_pbi::ReadTag(ptr, &tag);
  5528. switch (tag >> 3)
  5529. {
  5530. // repeated .protobuf.MessageOfMap.Row row = 2;
  5531. case 2:
  5532. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18))
  5533. {
  5534. ptr -= 1;
  5535. do
  5536. {
  5537. ptr += 1;
  5538. ptr = ctx->ParseMessage(_internal_add_row(), ptr);
  5539. CHK_(ptr);
  5540. if (!ctx->DataAvailable(ptr))
  5541. break;
  5542. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
  5543. }
  5544. else
  5545. goto handle_unusual;
  5546. continue;
  5547. // repeated .protobuf.MessageOfMapObj map_obj_message = 3;
  5548. case 3:
  5549. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26))
  5550. {
  5551. ptr -= 1;
  5552. do
  5553. {
  5554. ptr += 1;
  5555. ptr = ctx->ParseMessage(_internal_add_map_obj_message(), ptr);
  5556. CHK_(ptr);
  5557. if (!ctx->DataAvailable(ptr))
  5558. break;
  5559. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
  5560. }
  5561. else
  5562. goto handle_unusual;
  5563. continue;
  5564. default:
  5565. goto handle_unusual;
  5566. } // switch
  5567. handle_unusual:
  5568. if ((tag == 0) || ((tag & 7) == 4))
  5569. {
  5570. CHK_(ptr);
  5571. ctx->SetLastTag(tag);
  5572. goto message_done;
  5573. }
  5574. ptr = UnknownFieldParse(
  5575. tag,
  5576. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  5577. ptr,
  5578. ctx
  5579. );
  5580. CHK_(ptr != nullptr);
  5581. } // while
  5582. message_done:
  5583. return ptr;
  5584. failure:
  5585. ptr = nullptr;
  5586. goto message_done;
  5587. #undef CHK_
  5588. }
  5589. uint8_t* MessageOfMap::_InternalSerialize(
  5590. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  5591. ) const
  5592. {
  5593. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfMap)
  5594. uint32_t cached_has_bits = 0;
  5595. (void)cached_has_bits;
  5596. // repeated .protobuf.MessageOfMap.Row row = 2;
  5597. for (unsigned i = 0,
  5598. n = static_cast<unsigned>(this->_internal_row_size());
  5599. i < n;
  5600. i++)
  5601. {
  5602. const auto& repfield = this->_internal_row(i);
  5603. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  5604. InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
  5605. }
  5606. // repeated .protobuf.MessageOfMapObj map_obj_message = 3;
  5607. for (unsigned i = 0,
  5608. n = static_cast<unsigned>(this->_internal_map_obj_message_size());
  5609. i < n;
  5610. i++)
  5611. {
  5612. const auto& repfield = this->_internal_map_obj_message(i);
  5613. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  5614. InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream);
  5615. }
  5616. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  5617. {
  5618. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  5619. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  5620. );
  5621. }
  5622. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfMap)
  5623. return target;
  5624. }
  5625. size_t MessageOfMap::ByteSizeLong() const
  5626. {
  5627. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfMap)
  5628. size_t total_size = 0;
  5629. uint32_t cached_has_bits = 0;
  5630. // Prevent compiler warnings about cached_has_bits being unused
  5631. (void)cached_has_bits;
  5632. // repeated .protobuf.MessageOfMap.Row row = 2;
  5633. total_size += 1UL * this->_internal_row_size();
  5634. for (const auto& msg : this->_impl_.row_)
  5635. {
  5636. total_size +=
  5637. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  5638. }
  5639. // repeated .protobuf.MessageOfMapObj map_obj_message = 3;
  5640. total_size += 1UL * this->_internal_map_obj_message_size();
  5641. for (const auto& msg : this->_impl_.map_obj_message_)
  5642. {
  5643. total_size +=
  5644. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  5645. }
  5646. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  5647. }
  5648. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfMap::_class_data_ = {
  5649. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  5650. MessageOfMap::MergeImpl};
  5651. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfMap::GetClassData() const
  5652. {
  5653. return &_class_data_;
  5654. }
  5655. void MessageOfMap::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  5656. {
  5657. auto* const _this = static_cast<MessageOfMap*>(&to_msg);
  5658. auto& from = static_cast<const MessageOfMap&>(from_msg);
  5659. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfMap)
  5660. GOOGLE_DCHECK_NE(&from, _this);
  5661. uint32_t cached_has_bits = 0;
  5662. (void)cached_has_bits;
  5663. _this->_impl_.row_.MergeFrom(from._impl_.row_);
  5664. _this->_impl_.map_obj_message_.MergeFrom(from._impl_.map_obj_message_);
  5665. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5666. }
  5667. void MessageOfMap::CopyFrom(const MessageOfMap& from)
  5668. {
  5669. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfMap)
  5670. if (&from == this)
  5671. return;
  5672. Clear();
  5673. MergeFrom(from);
  5674. }
  5675. bool MessageOfMap::IsInitialized() const
  5676. {
  5677. return true;
  5678. }
  5679. void MessageOfMap::InternalSwap(MessageOfMap* other)
  5680. {
  5681. using std::swap;
  5682. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5683. _impl_.row_.InternalSwap(&other->_impl_.row_);
  5684. _impl_.map_obj_message_.InternalSwap(&other->_impl_.map_obj_message_);
  5685. }
  5686. ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfMap::GetMetadata() const
  5687. {
  5688. return ::_pbi::AssignDescriptors(
  5689. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[12]
  5690. );
  5691. }
  5692. // ===================================================================
  5693. class MessageOfObj::_Internal
  5694. {
  5695. public:
  5696. static const ::protobuf::MessageOfStudent& student_message(const MessageOfObj* msg);
  5697. static const ::protobuf::MessageOfTricker& tricker_message(const MessageOfObj* msg);
  5698. static const ::protobuf::MessageOfProp& prop_message(const MessageOfObj* msg);
  5699. static const ::protobuf::MessageOfBullet& bullet_message(const MessageOfObj* msg);
  5700. static const ::protobuf::MessageOfBombedBullet& bombed_bullet_message(const MessageOfObj* msg);
  5701. };
  5702. const ::protobuf::MessageOfStudent&
  5703. MessageOfObj::_Internal::student_message(const MessageOfObj* msg)
  5704. {
  5705. return *msg->_impl_.message_of_obj_.student_message_;
  5706. }
  5707. const ::protobuf::MessageOfTricker&
  5708. MessageOfObj::_Internal::tricker_message(const MessageOfObj* msg)
  5709. {
  5710. return *msg->_impl_.message_of_obj_.tricker_message_;
  5711. }
  5712. const ::protobuf::MessageOfProp&
  5713. MessageOfObj::_Internal::prop_message(const MessageOfObj* msg)
  5714. {
  5715. return *msg->_impl_.message_of_obj_.prop_message_;
  5716. }
  5717. const ::protobuf::MessageOfBullet&
  5718. MessageOfObj::_Internal::bullet_message(const MessageOfObj* msg)
  5719. {
  5720. return *msg->_impl_.message_of_obj_.bullet_message_;
  5721. }
  5722. const ::protobuf::MessageOfBombedBullet&
  5723. MessageOfObj::_Internal::bombed_bullet_message(const MessageOfObj* msg)
  5724. {
  5725. return *msg->_impl_.message_of_obj_.bombed_bullet_message_;
  5726. }
  5727. void MessageOfObj::set_allocated_student_message(::protobuf::MessageOfStudent* student_message)
  5728. {
  5729. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  5730. clear_message_of_obj();
  5731. if (student_message)
  5732. {
  5733. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  5734. ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(student_message);
  5735. if (message_arena != submessage_arena)
  5736. {
  5737. student_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  5738. message_arena, student_message, submessage_arena
  5739. );
  5740. }
  5741. set_has_student_message();
  5742. _impl_.message_of_obj_.student_message_ = student_message;
  5743. }
  5744. // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.student_message)
  5745. }
  5746. void MessageOfObj::set_allocated_tricker_message(::protobuf::MessageOfTricker* tricker_message)
  5747. {
  5748. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  5749. clear_message_of_obj();
  5750. if (tricker_message)
  5751. {
  5752. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  5753. ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(tricker_message);
  5754. if (message_arena != submessage_arena)
  5755. {
  5756. tricker_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  5757. message_arena, tricker_message, submessage_arena
  5758. );
  5759. }
  5760. set_has_tricker_message();
  5761. _impl_.message_of_obj_.tricker_message_ = tricker_message;
  5762. }
  5763. // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.tricker_message)
  5764. }
  5765. void MessageOfObj::set_allocated_prop_message(::protobuf::MessageOfProp* prop_message)
  5766. {
  5767. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  5768. clear_message_of_obj();
  5769. if (prop_message)
  5770. {
  5771. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  5772. ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(prop_message);
  5773. if (message_arena != submessage_arena)
  5774. {
  5775. prop_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  5776. message_arena, prop_message, submessage_arena
  5777. );
  5778. }
  5779. set_has_prop_message();
  5780. _impl_.message_of_obj_.prop_message_ = prop_message;
  5781. }
  5782. // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.prop_message)
  5783. }
  5784. void MessageOfObj::set_allocated_bullet_message(::protobuf::MessageOfBullet* bullet_message)
  5785. {
  5786. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  5787. clear_message_of_obj();
  5788. if (bullet_message)
  5789. {
  5790. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  5791. ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(bullet_message);
  5792. if (message_arena != submessage_arena)
  5793. {
  5794. bullet_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  5795. message_arena, bullet_message, submessage_arena
  5796. );
  5797. }
  5798. set_has_bullet_message();
  5799. _impl_.message_of_obj_.bullet_message_ = bullet_message;
  5800. }
  5801. // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.bullet_message)
  5802. }
  5803. void MessageOfObj::set_allocated_bombed_bullet_message(::protobuf::MessageOfBombedBullet* bombed_bullet_message)
  5804. {
  5805. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  5806. clear_message_of_obj();
  5807. if (bombed_bullet_message)
  5808. {
  5809. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  5810. ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(bombed_bullet_message);
  5811. if (message_arena != submessage_arena)
  5812. {
  5813. bombed_bullet_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  5814. message_arena, bombed_bullet_message, submessage_arena
  5815. );
  5816. }
  5817. set_has_bombed_bullet_message();
  5818. _impl_.message_of_obj_.bombed_bullet_message_ = bombed_bullet_message;
  5819. }
  5820. // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.bombed_bullet_message)
  5821. }
  5822. MessageOfObj::MessageOfObj(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  5823. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  5824. {
  5825. SharedCtor(arena, is_message_owned);
  5826. // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfObj)
  5827. }
  5828. MessageOfObj::MessageOfObj(const MessageOfObj& from) :
  5829. ::PROTOBUF_NAMESPACE_ID::Message()
  5830. {
  5831. MessageOfObj* const _this = this;
  5832. (void)_this;
  5833. new (&_impl_) Impl_{
  5834. decltype(_impl_.message_of_obj_){}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_._oneof_case_)*/ {}};
  5835. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5836. clear_has_message_of_obj();
  5837. switch (from.message_of_obj_case())
  5838. {
  5839. case kStudentMessage:
  5840. {
  5841. _this->_internal_mutable_student_message()->::protobuf::MessageOfStudent::MergeFrom(
  5842. from._internal_student_message()
  5843. );
  5844. break;
  5845. }
  5846. case kTrickerMessage:
  5847. {
  5848. _this->_internal_mutable_tricker_message()->::protobuf::MessageOfTricker::MergeFrom(
  5849. from._internal_tricker_message()
  5850. );
  5851. break;
  5852. }
  5853. case kPropMessage:
  5854. {
  5855. _this->_internal_mutable_prop_message()->::protobuf::MessageOfProp::MergeFrom(
  5856. from._internal_prop_message()
  5857. );
  5858. break;
  5859. }
  5860. case kBulletMessage:
  5861. {
  5862. _this->_internal_mutable_bullet_message()->::protobuf::MessageOfBullet::MergeFrom(
  5863. from._internal_bullet_message()
  5864. );
  5865. break;
  5866. }
  5867. case kBombedBulletMessage:
  5868. {
  5869. _this->_internal_mutable_bombed_bullet_message()->::protobuf::MessageOfBombedBullet::MergeFrom(
  5870. from._internal_bombed_bullet_message()
  5871. );
  5872. break;
  5873. }
  5874. case MESSAGE_OF_OBJ_NOT_SET:
  5875. {
  5876. break;
  5877. }
  5878. }
  5879. // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfObj)
  5880. }
  5881. inline void MessageOfObj::SharedCtor(
  5882. ::_pb::Arena* arena, bool is_message_owned
  5883. )
  5884. {
  5885. (void)arena;
  5886. (void)is_message_owned;
  5887. new (&_impl_) Impl_{
  5888. decltype(_impl_.message_of_obj_){}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_._oneof_case_)*/ {}};
  5889. clear_has_message_of_obj();
  5890. }
  5891. MessageOfObj::~MessageOfObj()
  5892. {
  5893. // @@protoc_insertion_point(destructor:protobuf.MessageOfObj)
  5894. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  5895. {
  5896. (void)arena;
  5897. return;
  5898. }
  5899. SharedDtor();
  5900. }
  5901. inline void MessageOfObj::SharedDtor()
  5902. {
  5903. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  5904. if (has_message_of_obj())
  5905. {
  5906. clear_message_of_obj();
  5907. }
  5908. }
  5909. void MessageOfObj::SetCachedSize(int size) const
  5910. {
  5911. _impl_._cached_size_.Set(size);
  5912. }
  5913. void MessageOfObj::clear_message_of_obj()
  5914. {
  5915. // @@protoc_insertion_point(one_of_clear_start:protobuf.MessageOfObj)
  5916. switch (message_of_obj_case())
  5917. {
  5918. case kStudentMessage:
  5919. {
  5920. if (GetArenaForAllocation() == nullptr)
  5921. {
  5922. delete _impl_.message_of_obj_.student_message_;
  5923. }
  5924. break;
  5925. }
  5926. case kTrickerMessage:
  5927. {
  5928. if (GetArenaForAllocation() == nullptr)
  5929. {
  5930. delete _impl_.message_of_obj_.tricker_message_;
  5931. }
  5932. break;
  5933. }
  5934. case kPropMessage:
  5935. {
  5936. if (GetArenaForAllocation() == nullptr)
  5937. {
  5938. delete _impl_.message_of_obj_.prop_message_;
  5939. }
  5940. break;
  5941. }
  5942. case kBulletMessage:
  5943. {
  5944. if (GetArenaForAllocation() == nullptr)
  5945. {
  5946. delete _impl_.message_of_obj_.bullet_message_;
  5947. }
  5948. break;
  5949. }
  5950. case kBombedBulletMessage:
  5951. {
  5952. if (GetArenaForAllocation() == nullptr)
  5953. {
  5954. delete _impl_.message_of_obj_.bombed_bullet_message_;
  5955. }
  5956. break;
  5957. }
  5958. case MESSAGE_OF_OBJ_NOT_SET:
  5959. {
  5960. break;
  5961. }
  5962. }
  5963. _impl_._oneof_case_[0] = MESSAGE_OF_OBJ_NOT_SET;
  5964. }
  5965. void MessageOfObj::Clear()
  5966. {
  5967. // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfObj)
  5968. uint32_t cached_has_bits = 0;
  5969. // Prevent compiler warnings about cached_has_bits being unused
  5970. (void)cached_has_bits;
  5971. clear_message_of_obj();
  5972. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5973. }
  5974. const char* MessageOfObj::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  5975. {
  5976. #define CHK_(x) \
  5977. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  5978. goto failure
  5979. while (!ctx->Done(&ptr))
  5980. {
  5981. uint32_t tag;
  5982. ptr = ::_pbi::ReadTag(ptr, &tag);
  5983. switch (tag >> 3)
  5984. {
  5985. // .protobuf.MessageOfStudent student_message = 1;
  5986. case 1:
  5987. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10))
  5988. {
  5989. ptr = ctx->ParseMessage(_internal_mutable_student_message(), ptr);
  5990. CHK_(ptr);
  5991. }
  5992. else
  5993. goto handle_unusual;
  5994. continue;
  5995. // .protobuf.MessageOfTricker tricker_message = 2;
  5996. case 2:
  5997. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18))
  5998. {
  5999. ptr = ctx->ParseMessage(_internal_mutable_tricker_message(), ptr);
  6000. CHK_(ptr);
  6001. }
  6002. else
  6003. goto handle_unusual;
  6004. continue;
  6005. // .protobuf.MessageOfProp prop_message = 3;
  6006. case 3:
  6007. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26))
  6008. {
  6009. ptr = ctx->ParseMessage(_internal_mutable_prop_message(), ptr);
  6010. CHK_(ptr);
  6011. }
  6012. else
  6013. goto handle_unusual;
  6014. continue;
  6015. // .protobuf.MessageOfBullet bullet_message = 4;
  6016. case 4:
  6017. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34))
  6018. {
  6019. ptr = ctx->ParseMessage(_internal_mutable_bullet_message(), ptr);
  6020. CHK_(ptr);
  6021. }
  6022. else
  6023. goto handle_unusual;
  6024. continue;
  6025. // .protobuf.MessageOfBombedBullet bombed_bullet_message = 5;
  6026. case 5:
  6027. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42))
  6028. {
  6029. ptr = ctx->ParseMessage(_internal_mutable_bombed_bullet_message(), ptr);
  6030. CHK_(ptr);
  6031. }
  6032. else
  6033. goto handle_unusual;
  6034. continue;
  6035. default:
  6036. goto handle_unusual;
  6037. } // switch
  6038. handle_unusual:
  6039. if ((tag == 0) || ((tag & 7) == 4))
  6040. {
  6041. CHK_(ptr);
  6042. ctx->SetLastTag(tag);
  6043. goto message_done;
  6044. }
  6045. ptr = UnknownFieldParse(
  6046. tag,
  6047. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  6048. ptr,
  6049. ctx
  6050. );
  6051. CHK_(ptr != nullptr);
  6052. } // while
  6053. message_done:
  6054. return ptr;
  6055. failure:
  6056. ptr = nullptr;
  6057. goto message_done;
  6058. #undef CHK_
  6059. }
  6060. uint8_t* MessageOfObj::_InternalSerialize(
  6061. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  6062. ) const
  6063. {
  6064. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfObj)
  6065. uint32_t cached_has_bits = 0;
  6066. (void)cached_has_bits;
  6067. // .protobuf.MessageOfStudent student_message = 1;
  6068. if (_internal_has_student_message())
  6069. {
  6070. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  6071. InternalWriteMessage(1, _Internal::student_message(this), _Internal::student_message(this).GetCachedSize(), target, stream);
  6072. }
  6073. // .protobuf.MessageOfTricker tricker_message = 2;
  6074. if (_internal_has_tricker_message())
  6075. {
  6076. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  6077. InternalWriteMessage(2, _Internal::tricker_message(this), _Internal::tricker_message(this).GetCachedSize(), target, stream);
  6078. }
  6079. // .protobuf.MessageOfProp prop_message = 3;
  6080. if (_internal_has_prop_message())
  6081. {
  6082. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  6083. InternalWriteMessage(3, _Internal::prop_message(this), _Internal::prop_message(this).GetCachedSize(), target, stream);
  6084. }
  6085. // .protobuf.MessageOfBullet bullet_message = 4;
  6086. if (_internal_has_bullet_message())
  6087. {
  6088. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  6089. InternalWriteMessage(4, _Internal::bullet_message(this), _Internal::bullet_message(this).GetCachedSize(), target, stream);
  6090. }
  6091. // .protobuf.MessageOfBombedBullet bombed_bullet_message = 5;
  6092. if (_internal_has_bombed_bullet_message())
  6093. {
  6094. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  6095. InternalWriteMessage(5, _Internal::bombed_bullet_message(this), _Internal::bombed_bullet_message(this).GetCachedSize(), target, stream);
  6096. }
  6097. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  6098. {
  6099. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  6100. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  6101. );
  6102. }
  6103. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfObj)
  6104. return target;
  6105. }
  6106. size_t MessageOfObj::ByteSizeLong() const
  6107. {
  6108. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfObj)
  6109. size_t total_size = 0;
  6110. uint32_t cached_has_bits = 0;
  6111. // Prevent compiler warnings about cached_has_bits being unused
  6112. (void)cached_has_bits;
  6113. switch (message_of_obj_case())
  6114. {
  6115. // .protobuf.MessageOfStudent student_message = 1;
  6116. case kStudentMessage:
  6117. {
  6118. total_size += 1 +
  6119. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  6120. *_impl_.message_of_obj_.student_message_
  6121. );
  6122. break;
  6123. }
  6124. // .protobuf.MessageOfTricker tricker_message = 2;
  6125. case kTrickerMessage:
  6126. {
  6127. total_size += 1 +
  6128. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  6129. *_impl_.message_of_obj_.tricker_message_
  6130. );
  6131. break;
  6132. }
  6133. // .protobuf.MessageOfProp prop_message = 3;
  6134. case kPropMessage:
  6135. {
  6136. total_size += 1 +
  6137. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  6138. *_impl_.message_of_obj_.prop_message_
  6139. );
  6140. break;
  6141. }
  6142. // .protobuf.MessageOfBullet bullet_message = 4;
  6143. case kBulletMessage:
  6144. {
  6145. total_size += 1 +
  6146. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  6147. *_impl_.message_of_obj_.bullet_message_
  6148. );
  6149. break;
  6150. }
  6151. // .protobuf.MessageOfBombedBullet bombed_bullet_message = 5;
  6152. case kBombedBulletMessage:
  6153. {
  6154. total_size += 1 +
  6155. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  6156. *_impl_.message_of_obj_.bombed_bullet_message_
  6157. );
  6158. break;
  6159. }
  6160. case MESSAGE_OF_OBJ_NOT_SET:
  6161. {
  6162. break;
  6163. }
  6164. }
  6165. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  6166. }
  6167. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfObj::_class_data_ = {
  6168. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  6169. MessageOfObj::MergeImpl};
  6170. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfObj::GetClassData() const
  6171. {
  6172. return &_class_data_;
  6173. }
  6174. void MessageOfObj::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  6175. {
  6176. auto* const _this = static_cast<MessageOfObj*>(&to_msg);
  6177. auto& from = static_cast<const MessageOfObj&>(from_msg);
  6178. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfObj)
  6179. GOOGLE_DCHECK_NE(&from, _this);
  6180. uint32_t cached_has_bits = 0;
  6181. (void)cached_has_bits;
  6182. switch (from.message_of_obj_case())
  6183. {
  6184. case kStudentMessage:
  6185. {
  6186. _this->_internal_mutable_student_message()->::protobuf::MessageOfStudent::MergeFrom(
  6187. from._internal_student_message()
  6188. );
  6189. break;
  6190. }
  6191. case kTrickerMessage:
  6192. {
  6193. _this->_internal_mutable_tricker_message()->::protobuf::MessageOfTricker::MergeFrom(
  6194. from._internal_tricker_message()
  6195. );
  6196. break;
  6197. }
  6198. case kPropMessage:
  6199. {
  6200. _this->_internal_mutable_prop_message()->::protobuf::MessageOfProp::MergeFrom(
  6201. from._internal_prop_message()
  6202. );
  6203. break;
  6204. }
  6205. case kBulletMessage:
  6206. {
  6207. _this->_internal_mutable_bullet_message()->::protobuf::MessageOfBullet::MergeFrom(
  6208. from._internal_bullet_message()
  6209. );
  6210. break;
  6211. }
  6212. case kBombedBulletMessage:
  6213. {
  6214. _this->_internal_mutable_bombed_bullet_message()->::protobuf::MessageOfBombedBullet::MergeFrom(
  6215. from._internal_bombed_bullet_message()
  6216. );
  6217. break;
  6218. }
  6219. case MESSAGE_OF_OBJ_NOT_SET:
  6220. {
  6221. break;
  6222. }
  6223. }
  6224. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6225. }
  6226. void MessageOfObj::CopyFrom(const MessageOfObj& from)
  6227. {
  6228. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfObj)
  6229. if (&from == this)
  6230. return;
  6231. Clear();
  6232. MergeFrom(from);
  6233. }
  6234. bool MessageOfObj::IsInitialized() const
  6235. {
  6236. return true;
  6237. }
  6238. void MessageOfObj::InternalSwap(MessageOfObj* other)
  6239. {
  6240. using std::swap;
  6241. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  6242. swap(_impl_.message_of_obj_, other->_impl_.message_of_obj_);
  6243. swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
  6244. }
  6245. ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfObj::GetMetadata() const
  6246. {
  6247. return ::_pbi::AssignDescriptors(
  6248. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[13]
  6249. );
  6250. }
  6251. // ===================================================================
  6252. class MessageOfAll::_Internal
  6253. {
  6254. public:
  6255. };
  6256. MessageOfAll::MessageOfAll(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  6257. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  6258. {
  6259. SharedCtor(arena, is_message_owned);
  6260. // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfAll)
  6261. }
  6262. MessageOfAll::MessageOfAll(const MessageOfAll& from) :
  6263. ::PROTOBUF_NAMESPACE_ID::Message()
  6264. {
  6265. MessageOfAll* const _this = this;
  6266. (void)_this;
  6267. new (&_impl_) Impl_{
  6268. decltype(_impl_.game_time_){}, decltype(_impl_.subject_left_){}, decltype(_impl_.student_graduated_){}, decltype(_impl_.student_quited_){}, decltype(_impl_.student_score_){}, decltype(_impl_.tricker_score_){}, decltype(_impl_.gate_opened_){}, decltype(_impl_.hidden_gate_refreshed_){}, decltype(_impl_.hidden_gate_opened_){}, /*decltype(_impl_._cached_size_)*/ {}};
  6269. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6270. ::memcpy(&_impl_.game_time_, &from._impl_.game_time_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.hidden_gate_opened_) - reinterpret_cast<char*>(&_impl_.game_time_)) + sizeof(_impl_.hidden_gate_opened_));
  6271. // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfAll)
  6272. }
  6273. inline void MessageOfAll::SharedCtor(
  6274. ::_pb::Arena* arena, bool is_message_owned
  6275. )
  6276. {
  6277. (void)arena;
  6278. (void)is_message_owned;
  6279. new (&_impl_) Impl_{
  6280. decltype(_impl_.game_time_){0}, decltype(_impl_.subject_left_){0}, decltype(_impl_.student_graduated_){0}, decltype(_impl_.student_quited_){0}, decltype(_impl_.student_score_){0}, decltype(_impl_.tricker_score_){0}, decltype(_impl_.gate_opened_){false}, decltype(_impl_.hidden_gate_refreshed_){false}, decltype(_impl_.hidden_gate_opened_){false}, /*decltype(_impl_._cached_size_)*/ {}};
  6281. }
  6282. MessageOfAll::~MessageOfAll()
  6283. {
  6284. // @@protoc_insertion_point(destructor:protobuf.MessageOfAll)
  6285. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  6286. {
  6287. (void)arena;
  6288. return;
  6289. }
  6290. SharedDtor();
  6291. }
  6292. inline void MessageOfAll::SharedDtor()
  6293. {
  6294. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  6295. }
  6296. void MessageOfAll::SetCachedSize(int size) const
  6297. {
  6298. _impl_._cached_size_.Set(size);
  6299. }
  6300. void MessageOfAll::Clear()
  6301. {
  6302. // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfAll)
  6303. uint32_t cached_has_bits = 0;
  6304. // Prevent compiler warnings about cached_has_bits being unused
  6305. (void)cached_has_bits;
  6306. ::memset(&_impl_.game_time_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.hidden_gate_opened_) - reinterpret_cast<char*>(&_impl_.game_time_)) + sizeof(_impl_.hidden_gate_opened_));
  6307. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6308. }
  6309. const char* MessageOfAll::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  6310. {
  6311. #define CHK_(x) \
  6312. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  6313. goto failure
  6314. while (!ctx->Done(&ptr))
  6315. {
  6316. uint32_t tag;
  6317. ptr = ::_pbi::ReadTag(ptr, &tag);
  6318. switch (tag >> 3)
  6319. {
  6320. // int32 game_time = 1;
  6321. case 1:
  6322. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  6323. {
  6324. _impl_.game_time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6325. CHK_(ptr);
  6326. }
  6327. else
  6328. goto handle_unusual;
  6329. continue;
  6330. // int32 subject_left = 2;
  6331. case 2:
  6332. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  6333. {
  6334. _impl_.subject_left_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6335. CHK_(ptr);
  6336. }
  6337. else
  6338. goto handle_unusual;
  6339. continue;
  6340. // int32 student_graduated = 3;
  6341. case 3:
  6342. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
  6343. {
  6344. _impl_.student_graduated_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6345. CHK_(ptr);
  6346. }
  6347. else
  6348. goto handle_unusual;
  6349. continue;
  6350. // int32 student_quited = 4;
  6351. case 4:
  6352. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32))
  6353. {
  6354. _impl_.student_quited_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6355. CHK_(ptr);
  6356. }
  6357. else
  6358. goto handle_unusual;
  6359. continue;
  6360. // int32 student_score = 5;
  6361. case 5:
  6362. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40))
  6363. {
  6364. _impl_.student_score_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6365. CHK_(ptr);
  6366. }
  6367. else
  6368. goto handle_unusual;
  6369. continue;
  6370. // int32 tricker_score = 6;
  6371. case 6:
  6372. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48))
  6373. {
  6374. _impl_.tricker_score_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6375. CHK_(ptr);
  6376. }
  6377. else
  6378. goto handle_unusual;
  6379. continue;
  6380. // bool gate_opened = 7;
  6381. case 7:
  6382. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56))
  6383. {
  6384. _impl_.gate_opened_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  6385. CHK_(ptr);
  6386. }
  6387. else
  6388. goto handle_unusual;
  6389. continue;
  6390. // bool hidden_gate_refreshed = 8;
  6391. case 8:
  6392. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64))
  6393. {
  6394. _impl_.hidden_gate_refreshed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  6395. CHK_(ptr);
  6396. }
  6397. else
  6398. goto handle_unusual;
  6399. continue;
  6400. // bool hidden_gate_opened = 9;
  6401. case 9:
  6402. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72))
  6403. {
  6404. _impl_.hidden_gate_opened_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  6405. CHK_(ptr);
  6406. }
  6407. else
  6408. goto handle_unusual;
  6409. continue;
  6410. default:
  6411. goto handle_unusual;
  6412. } // switch
  6413. handle_unusual:
  6414. if ((tag == 0) || ((tag & 7) == 4))
  6415. {
  6416. CHK_(ptr);
  6417. ctx->SetLastTag(tag);
  6418. goto message_done;
  6419. }
  6420. ptr = UnknownFieldParse(
  6421. tag,
  6422. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  6423. ptr,
  6424. ctx
  6425. );
  6426. CHK_(ptr != nullptr);
  6427. } // while
  6428. message_done:
  6429. return ptr;
  6430. failure:
  6431. ptr = nullptr;
  6432. goto message_done;
  6433. #undef CHK_
  6434. }
  6435. uint8_t* MessageOfAll::_InternalSerialize(
  6436. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  6437. ) const
  6438. {
  6439. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfAll)
  6440. uint32_t cached_has_bits = 0;
  6441. (void)cached_has_bits;
  6442. // int32 game_time = 1;
  6443. if (this->_internal_game_time() != 0)
  6444. {
  6445. target = stream->EnsureSpace(target);
  6446. target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_game_time(), target);
  6447. }
  6448. // int32 subject_left = 2;
  6449. if (this->_internal_subject_left() != 0)
  6450. {
  6451. target = stream->EnsureSpace(target);
  6452. target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_subject_left(), target);
  6453. }
  6454. // int32 student_graduated = 3;
  6455. if (this->_internal_student_graduated() != 0)
  6456. {
  6457. target = stream->EnsureSpace(target);
  6458. target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_student_graduated(), target);
  6459. }
  6460. // int32 student_quited = 4;
  6461. if (this->_internal_student_quited() != 0)
  6462. {
  6463. target = stream->EnsureSpace(target);
  6464. target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_student_quited(), target);
  6465. }
  6466. // int32 student_score = 5;
  6467. if (this->_internal_student_score() != 0)
  6468. {
  6469. target = stream->EnsureSpace(target);
  6470. target = ::_pbi::WireFormatLite::WriteInt32ToArray(5, this->_internal_student_score(), target);
  6471. }
  6472. // int32 tricker_score = 6;
  6473. if (this->_internal_tricker_score() != 0)
  6474. {
  6475. target = stream->EnsureSpace(target);
  6476. target = ::_pbi::WireFormatLite::WriteInt32ToArray(6, this->_internal_tricker_score(), target);
  6477. }
  6478. // bool gate_opened = 7;
  6479. if (this->_internal_gate_opened() != 0)
  6480. {
  6481. target = stream->EnsureSpace(target);
  6482. target = ::_pbi::WireFormatLite::WriteBoolToArray(7, this->_internal_gate_opened(), target);
  6483. }
  6484. // bool hidden_gate_refreshed = 8;
  6485. if (this->_internal_hidden_gate_refreshed() != 0)
  6486. {
  6487. target = stream->EnsureSpace(target);
  6488. target = ::_pbi::WireFormatLite::WriteBoolToArray(8, this->_internal_hidden_gate_refreshed(), target);
  6489. }
  6490. // bool hidden_gate_opened = 9;
  6491. if (this->_internal_hidden_gate_opened() != 0)
  6492. {
  6493. target = stream->EnsureSpace(target);
  6494. target = ::_pbi::WireFormatLite::WriteBoolToArray(9, this->_internal_hidden_gate_opened(), target);
  6495. }
  6496. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  6497. {
  6498. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  6499. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  6500. );
  6501. }
  6502. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfAll)
  6503. return target;
  6504. }
  6505. size_t MessageOfAll::ByteSizeLong() const
  6506. {
  6507. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfAll)
  6508. size_t total_size = 0;
  6509. uint32_t cached_has_bits = 0;
  6510. // Prevent compiler warnings about cached_has_bits being unused
  6511. (void)cached_has_bits;
  6512. // int32 game_time = 1;
  6513. if (this->_internal_game_time() != 0)
  6514. {
  6515. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_game_time());
  6516. }
  6517. // int32 subject_left = 2;
  6518. if (this->_internal_subject_left() != 0)
  6519. {
  6520. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_subject_left());
  6521. }
  6522. // int32 student_graduated = 3;
  6523. if (this->_internal_student_graduated() != 0)
  6524. {
  6525. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_student_graduated());
  6526. }
  6527. // int32 student_quited = 4;
  6528. if (this->_internal_student_quited() != 0)
  6529. {
  6530. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_student_quited());
  6531. }
  6532. // int32 student_score = 5;
  6533. if (this->_internal_student_score() != 0)
  6534. {
  6535. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_student_score());
  6536. }
  6537. // int32 tricker_score = 6;
  6538. if (this->_internal_tricker_score() != 0)
  6539. {
  6540. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_tricker_score());
  6541. }
  6542. // bool gate_opened = 7;
  6543. if (this->_internal_gate_opened() != 0)
  6544. {
  6545. total_size += 1 + 1;
  6546. }
  6547. // bool hidden_gate_refreshed = 8;
  6548. if (this->_internal_hidden_gate_refreshed() != 0)
  6549. {
  6550. total_size += 1 + 1;
  6551. }
  6552. // bool hidden_gate_opened = 9;
  6553. if (this->_internal_hidden_gate_opened() != 0)
  6554. {
  6555. total_size += 1 + 1;
  6556. }
  6557. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  6558. }
  6559. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfAll::_class_data_ = {
  6560. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  6561. MessageOfAll::MergeImpl};
  6562. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfAll::GetClassData() const
  6563. {
  6564. return &_class_data_;
  6565. }
  6566. void MessageOfAll::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  6567. {
  6568. auto* const _this = static_cast<MessageOfAll*>(&to_msg);
  6569. auto& from = static_cast<const MessageOfAll&>(from_msg);
  6570. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfAll)
  6571. GOOGLE_DCHECK_NE(&from, _this);
  6572. uint32_t cached_has_bits = 0;
  6573. (void)cached_has_bits;
  6574. if (from._internal_game_time() != 0)
  6575. {
  6576. _this->_internal_set_game_time(from._internal_game_time());
  6577. }
  6578. if (from._internal_subject_left() != 0)
  6579. {
  6580. _this->_internal_set_subject_left(from._internal_subject_left());
  6581. }
  6582. if (from._internal_student_graduated() != 0)
  6583. {
  6584. _this->_internal_set_student_graduated(from._internal_student_graduated());
  6585. }
  6586. if (from._internal_student_quited() != 0)
  6587. {
  6588. _this->_internal_set_student_quited(from._internal_student_quited());
  6589. }
  6590. if (from._internal_student_score() != 0)
  6591. {
  6592. _this->_internal_set_student_score(from._internal_student_score());
  6593. }
  6594. if (from._internal_tricker_score() != 0)
  6595. {
  6596. _this->_internal_set_tricker_score(from._internal_tricker_score());
  6597. }
  6598. if (from._internal_gate_opened() != 0)
  6599. {
  6600. _this->_internal_set_gate_opened(from._internal_gate_opened());
  6601. }
  6602. if (from._internal_hidden_gate_refreshed() != 0)
  6603. {
  6604. _this->_internal_set_hidden_gate_refreshed(from._internal_hidden_gate_refreshed());
  6605. }
  6606. if (from._internal_hidden_gate_opened() != 0)
  6607. {
  6608. _this->_internal_set_hidden_gate_opened(from._internal_hidden_gate_opened());
  6609. }
  6610. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6611. }
  6612. void MessageOfAll::CopyFrom(const MessageOfAll& from)
  6613. {
  6614. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfAll)
  6615. if (&from == this)
  6616. return;
  6617. Clear();
  6618. MergeFrom(from);
  6619. }
  6620. bool MessageOfAll::IsInitialized() const
  6621. {
  6622. return true;
  6623. }
  6624. void MessageOfAll::InternalSwap(MessageOfAll* other)
  6625. {
  6626. using std::swap;
  6627. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  6628. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  6629. PROTOBUF_FIELD_OFFSET(MessageOfAll, _impl_.hidden_gate_opened_) + sizeof(MessageOfAll::_impl_.hidden_gate_opened_) - PROTOBUF_FIELD_OFFSET(MessageOfAll, _impl_.game_time_)>(
  6630. reinterpret_cast<char*>(&_impl_.game_time_),
  6631. reinterpret_cast<char*>(&other->_impl_.game_time_)
  6632. );
  6633. }
  6634. ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfAll::GetMetadata() const
  6635. {
  6636. return ::_pbi::AssignDescriptors(
  6637. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[14]
  6638. );
  6639. }
  6640. // ===================================================================
  6641. class MessageToClient::_Internal
  6642. {
  6643. public:
  6644. static const ::protobuf::MessageOfMap& map_message(const MessageToClient* msg);
  6645. static const ::protobuf::MessageOfAll& all_message(const MessageToClient* msg);
  6646. };
  6647. const ::protobuf::MessageOfMap&
  6648. MessageToClient::_Internal::map_message(const MessageToClient* msg)
  6649. {
  6650. return *msg->_impl_.map_message_;
  6651. }
  6652. const ::protobuf::MessageOfAll&
  6653. MessageToClient::_Internal::all_message(const MessageToClient* msg)
  6654. {
  6655. return *msg->_impl_.all_message_;
  6656. }
  6657. MessageToClient::MessageToClient(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  6658. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  6659. {
  6660. SharedCtor(arena, is_message_owned);
  6661. // @@protoc_insertion_point(arena_constructor:protobuf.MessageToClient)
  6662. }
  6663. MessageToClient::MessageToClient(const MessageToClient& from) :
  6664. ::PROTOBUF_NAMESPACE_ID::Message()
  6665. {
  6666. MessageToClient* const _this = this;
  6667. (void)_this;
  6668. new (&_impl_) Impl_{
  6669. decltype(_impl_.obj_message_){from._impl_.obj_message_}, decltype(_impl_.map_message_){nullptr}, decltype(_impl_.all_message_){nullptr}, decltype(_impl_.game_state_){}, /*decltype(_impl_._cached_size_)*/ {}};
  6670. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6671. if (from._internal_has_map_message())
  6672. {
  6673. _this->_impl_.map_message_ = new ::protobuf::MessageOfMap(*from._impl_.map_message_);
  6674. }
  6675. if (from._internal_has_all_message())
  6676. {
  6677. _this->_impl_.all_message_ = new ::protobuf::MessageOfAll(*from._impl_.all_message_);
  6678. }
  6679. _this->_impl_.game_state_ = from._impl_.game_state_;
  6680. // @@protoc_insertion_point(copy_constructor:protobuf.MessageToClient)
  6681. }
  6682. inline void MessageToClient::SharedCtor(
  6683. ::_pb::Arena* arena, bool is_message_owned
  6684. )
  6685. {
  6686. (void)arena;
  6687. (void)is_message_owned;
  6688. new (&_impl_) Impl_{
  6689. decltype(_impl_.obj_message_){arena}, decltype(_impl_.map_message_){nullptr}, decltype(_impl_.all_message_){nullptr}, decltype(_impl_.game_state_){0}, /*decltype(_impl_._cached_size_)*/ {}};
  6690. }
  6691. MessageToClient::~MessageToClient()
  6692. {
  6693. // @@protoc_insertion_point(destructor:protobuf.MessageToClient)
  6694. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  6695. {
  6696. (void)arena;
  6697. return;
  6698. }
  6699. SharedDtor();
  6700. }
  6701. inline void MessageToClient::SharedDtor()
  6702. {
  6703. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  6704. _impl_.obj_message_.~RepeatedPtrField();
  6705. if (this != internal_default_instance())
  6706. delete _impl_.map_message_;
  6707. if (this != internal_default_instance())
  6708. delete _impl_.all_message_;
  6709. }
  6710. void MessageToClient::SetCachedSize(int size) const
  6711. {
  6712. _impl_._cached_size_.Set(size);
  6713. }
  6714. void MessageToClient::Clear()
  6715. {
  6716. // @@protoc_insertion_point(message_clear_start:protobuf.MessageToClient)
  6717. uint32_t cached_has_bits = 0;
  6718. // Prevent compiler warnings about cached_has_bits being unused
  6719. (void)cached_has_bits;
  6720. _impl_.obj_message_.Clear();
  6721. if (GetArenaForAllocation() == nullptr && _impl_.map_message_ != nullptr)
  6722. {
  6723. delete _impl_.map_message_;
  6724. }
  6725. _impl_.map_message_ = nullptr;
  6726. if (GetArenaForAllocation() == nullptr && _impl_.all_message_ != nullptr)
  6727. {
  6728. delete _impl_.all_message_;
  6729. }
  6730. _impl_.all_message_ = nullptr;
  6731. _impl_.game_state_ = 0;
  6732. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6733. }
  6734. const char* MessageToClient::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  6735. {
  6736. #define CHK_(x) \
  6737. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  6738. goto failure
  6739. while (!ctx->Done(&ptr))
  6740. {
  6741. uint32_t tag;
  6742. ptr = ::_pbi::ReadTag(ptr, &tag);
  6743. switch (tag >> 3)
  6744. {
  6745. // repeated .protobuf.MessageOfObj obj_message = 1;
  6746. case 1:
  6747. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10))
  6748. {
  6749. ptr -= 1;
  6750. do
  6751. {
  6752. ptr += 1;
  6753. ptr = ctx->ParseMessage(_internal_add_obj_message(), ptr);
  6754. CHK_(ptr);
  6755. if (!ctx->DataAvailable(ptr))
  6756. break;
  6757. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
  6758. }
  6759. else
  6760. goto handle_unusual;
  6761. continue;
  6762. // .protobuf.MessageOfMap map_message = 2;
  6763. case 2:
  6764. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18))
  6765. {
  6766. ptr = ctx->ParseMessage(_internal_mutable_map_message(), ptr);
  6767. CHK_(ptr);
  6768. }
  6769. else
  6770. goto handle_unusual;
  6771. continue;
  6772. // .protobuf.GameState game_state = 3;
  6773. case 3:
  6774. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
  6775. {
  6776. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  6777. CHK_(ptr);
  6778. _internal_set_game_state(static_cast<::protobuf::GameState>(val));
  6779. }
  6780. else
  6781. goto handle_unusual;
  6782. continue;
  6783. // .protobuf.MessageOfAll all_message = 4;
  6784. case 4:
  6785. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34))
  6786. {
  6787. ptr = ctx->ParseMessage(_internal_mutable_all_message(), ptr);
  6788. CHK_(ptr);
  6789. }
  6790. else
  6791. goto handle_unusual;
  6792. continue;
  6793. default:
  6794. goto handle_unusual;
  6795. } // switch
  6796. handle_unusual:
  6797. if ((tag == 0) || ((tag & 7) == 4))
  6798. {
  6799. CHK_(ptr);
  6800. ctx->SetLastTag(tag);
  6801. goto message_done;
  6802. }
  6803. ptr = UnknownFieldParse(
  6804. tag,
  6805. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  6806. ptr,
  6807. ctx
  6808. );
  6809. CHK_(ptr != nullptr);
  6810. } // while
  6811. message_done:
  6812. return ptr;
  6813. failure:
  6814. ptr = nullptr;
  6815. goto message_done;
  6816. #undef CHK_
  6817. }
  6818. uint8_t* MessageToClient::_InternalSerialize(
  6819. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  6820. ) const
  6821. {
  6822. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageToClient)
  6823. uint32_t cached_has_bits = 0;
  6824. (void)cached_has_bits;
  6825. // repeated .protobuf.MessageOfObj obj_message = 1;
  6826. for (unsigned i = 0,
  6827. n = static_cast<unsigned>(this->_internal_obj_message_size());
  6828. i < n;
  6829. i++)
  6830. {
  6831. const auto& repfield = this->_internal_obj_message(i);
  6832. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  6833. InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
  6834. }
  6835. // .protobuf.MessageOfMap map_message = 2;
  6836. if (this->_internal_has_map_message())
  6837. {
  6838. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  6839. InternalWriteMessage(2, _Internal::map_message(this), _Internal::map_message(this).GetCachedSize(), target, stream);
  6840. }
  6841. // .protobuf.GameState game_state = 3;
  6842. if (this->_internal_game_state() != 0)
  6843. {
  6844. target = stream->EnsureSpace(target);
  6845. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  6846. 3, this->_internal_game_state(), target
  6847. );
  6848. }
  6849. // .protobuf.MessageOfAll all_message = 4;
  6850. if (this->_internal_has_all_message())
  6851. {
  6852. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  6853. InternalWriteMessage(4, _Internal::all_message(this), _Internal::all_message(this).GetCachedSize(), target, stream);
  6854. }
  6855. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  6856. {
  6857. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  6858. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  6859. );
  6860. }
  6861. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageToClient)
  6862. return target;
  6863. }
  6864. size_t MessageToClient::ByteSizeLong() const
  6865. {
  6866. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageToClient)
  6867. size_t total_size = 0;
  6868. uint32_t cached_has_bits = 0;
  6869. // Prevent compiler warnings about cached_has_bits being unused
  6870. (void)cached_has_bits;
  6871. // repeated .protobuf.MessageOfObj obj_message = 1;
  6872. total_size += 1UL * this->_internal_obj_message_size();
  6873. for (const auto& msg : this->_impl_.obj_message_)
  6874. {
  6875. total_size +=
  6876. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  6877. }
  6878. // .protobuf.MessageOfMap map_message = 2;
  6879. if (this->_internal_has_map_message())
  6880. {
  6881. total_size += 1 +
  6882. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  6883. *_impl_.map_message_
  6884. );
  6885. }
  6886. // .protobuf.MessageOfAll all_message = 4;
  6887. if (this->_internal_has_all_message())
  6888. {
  6889. total_size += 1 +
  6890. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  6891. *_impl_.all_message_
  6892. );
  6893. }
  6894. // .protobuf.GameState game_state = 3;
  6895. if (this->_internal_game_state() != 0)
  6896. {
  6897. total_size += 1 +
  6898. ::_pbi::WireFormatLite::EnumSize(this->_internal_game_state());
  6899. }
  6900. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  6901. }
  6902. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageToClient::_class_data_ = {
  6903. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  6904. MessageToClient::MergeImpl};
  6905. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageToClient::GetClassData() const
  6906. {
  6907. return &_class_data_;
  6908. }
  6909. void MessageToClient::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  6910. {
  6911. auto* const _this = static_cast<MessageToClient*>(&to_msg);
  6912. auto& from = static_cast<const MessageToClient&>(from_msg);
  6913. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageToClient)
  6914. GOOGLE_DCHECK_NE(&from, _this);
  6915. uint32_t cached_has_bits = 0;
  6916. (void)cached_has_bits;
  6917. _this->_impl_.obj_message_.MergeFrom(from._impl_.obj_message_);
  6918. if (from._internal_has_map_message())
  6919. {
  6920. _this->_internal_mutable_map_message()->::protobuf::MessageOfMap::MergeFrom(
  6921. from._internal_map_message()
  6922. );
  6923. }
  6924. if (from._internal_has_all_message())
  6925. {
  6926. _this->_internal_mutable_all_message()->::protobuf::MessageOfAll::MergeFrom(
  6927. from._internal_all_message()
  6928. );
  6929. }
  6930. if (from._internal_game_state() != 0)
  6931. {
  6932. _this->_internal_set_game_state(from._internal_game_state());
  6933. }
  6934. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6935. }
  6936. void MessageToClient::CopyFrom(const MessageToClient& from)
  6937. {
  6938. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageToClient)
  6939. if (&from == this)
  6940. return;
  6941. Clear();
  6942. MergeFrom(from);
  6943. }
  6944. bool MessageToClient::IsInitialized() const
  6945. {
  6946. return true;
  6947. }
  6948. void MessageToClient::InternalSwap(MessageToClient* other)
  6949. {
  6950. using std::swap;
  6951. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  6952. _impl_.obj_message_.InternalSwap(&other->_impl_.obj_message_);
  6953. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  6954. PROTOBUF_FIELD_OFFSET(MessageToClient, _impl_.game_state_) + sizeof(MessageToClient::_impl_.game_state_) - PROTOBUF_FIELD_OFFSET(MessageToClient, _impl_.map_message_)>(
  6955. reinterpret_cast<char*>(&_impl_.map_message_),
  6956. reinterpret_cast<char*>(&other->_impl_.map_message_)
  6957. );
  6958. }
  6959. ::PROTOBUF_NAMESPACE_ID::Metadata MessageToClient::GetMetadata() const
  6960. {
  6961. return ::_pbi::AssignDescriptors(
  6962. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[15]
  6963. );
  6964. }
  6965. // ===================================================================
  6966. class MoveRes::_Internal
  6967. {
  6968. public:
  6969. };
  6970. MoveRes::MoveRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  6971. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  6972. {
  6973. SharedCtor(arena, is_message_owned);
  6974. // @@protoc_insertion_point(arena_constructor:protobuf.MoveRes)
  6975. }
  6976. MoveRes::MoveRes(const MoveRes& from) :
  6977. ::PROTOBUF_NAMESPACE_ID::Message()
  6978. {
  6979. MoveRes* const _this = this;
  6980. (void)_this;
  6981. new (&_impl_) Impl_{
  6982. decltype(_impl_.actual_speed_){}, decltype(_impl_.actual_angle_){}, decltype(_impl_.act_success_){}, /*decltype(_impl_._cached_size_)*/ {}};
  6983. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6984. ::memcpy(&_impl_.actual_speed_, &from._impl_.actual_speed_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.act_success_) - reinterpret_cast<char*>(&_impl_.actual_speed_)) + sizeof(_impl_.act_success_));
  6985. // @@protoc_insertion_point(copy_constructor:protobuf.MoveRes)
  6986. }
  6987. inline void MoveRes::SharedCtor(
  6988. ::_pb::Arena* arena, bool is_message_owned
  6989. )
  6990. {
  6991. (void)arena;
  6992. (void)is_message_owned;
  6993. new (&_impl_) Impl_{
  6994. decltype(_impl_.actual_speed_){int64_t{0}}, decltype(_impl_.actual_angle_){0}, decltype(_impl_.act_success_){false}, /*decltype(_impl_._cached_size_)*/ {}};
  6995. }
  6996. MoveRes::~MoveRes()
  6997. {
  6998. // @@protoc_insertion_point(destructor:protobuf.MoveRes)
  6999. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  7000. {
  7001. (void)arena;
  7002. return;
  7003. }
  7004. SharedDtor();
  7005. }
  7006. inline void MoveRes::SharedDtor()
  7007. {
  7008. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  7009. }
  7010. void MoveRes::SetCachedSize(int size) const
  7011. {
  7012. _impl_._cached_size_.Set(size);
  7013. }
  7014. void MoveRes::Clear()
  7015. {
  7016. // @@protoc_insertion_point(message_clear_start:protobuf.MoveRes)
  7017. uint32_t cached_has_bits = 0;
  7018. // Prevent compiler warnings about cached_has_bits being unused
  7019. (void)cached_has_bits;
  7020. ::memset(&_impl_.actual_speed_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.act_success_) - reinterpret_cast<char*>(&_impl_.actual_speed_)) + sizeof(_impl_.act_success_));
  7021. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7022. }
  7023. const char* MoveRes::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  7024. {
  7025. #define CHK_(x) \
  7026. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  7027. goto failure
  7028. while (!ctx->Done(&ptr))
  7029. {
  7030. uint32_t tag;
  7031. ptr = ::_pbi::ReadTag(ptr, &tag);
  7032. switch (tag >> 3)
  7033. {
  7034. // int64 actual_speed = 1;
  7035. case 1:
  7036. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  7037. {
  7038. _impl_.actual_speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  7039. CHK_(ptr);
  7040. }
  7041. else
  7042. goto handle_unusual;
  7043. continue;
  7044. // double actual_angle = 2;
  7045. case 2:
  7046. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 17))
  7047. {
  7048. _impl_.actual_angle_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  7049. ptr += sizeof(double);
  7050. }
  7051. else
  7052. goto handle_unusual;
  7053. continue;
  7054. // bool act_success = 3;
  7055. case 3:
  7056. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
  7057. {
  7058. _impl_.act_success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  7059. CHK_(ptr);
  7060. }
  7061. else
  7062. goto handle_unusual;
  7063. continue;
  7064. default:
  7065. goto handle_unusual;
  7066. } // switch
  7067. handle_unusual:
  7068. if ((tag == 0) || ((tag & 7) == 4))
  7069. {
  7070. CHK_(ptr);
  7071. ctx->SetLastTag(tag);
  7072. goto message_done;
  7073. }
  7074. ptr = UnknownFieldParse(
  7075. tag,
  7076. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  7077. ptr,
  7078. ctx
  7079. );
  7080. CHK_(ptr != nullptr);
  7081. } // while
  7082. message_done:
  7083. return ptr;
  7084. failure:
  7085. ptr = nullptr;
  7086. goto message_done;
  7087. #undef CHK_
  7088. }
  7089. uint8_t* MoveRes::_InternalSerialize(
  7090. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  7091. ) const
  7092. {
  7093. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MoveRes)
  7094. uint32_t cached_has_bits = 0;
  7095. (void)cached_has_bits;
  7096. // int64 actual_speed = 1;
  7097. if (this->_internal_actual_speed() != 0)
  7098. {
  7099. target = stream->EnsureSpace(target);
  7100. target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_actual_speed(), target);
  7101. }
  7102. // double actual_angle = 2;
  7103. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  7104. double tmp_actual_angle = this->_internal_actual_angle();
  7105. uint64_t raw_actual_angle;
  7106. memcpy(&raw_actual_angle, &tmp_actual_angle, sizeof(tmp_actual_angle));
  7107. if (raw_actual_angle != 0)
  7108. {
  7109. target = stream->EnsureSpace(target);
  7110. target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_actual_angle(), target);
  7111. }
  7112. // bool act_success = 3;
  7113. if (this->_internal_act_success() != 0)
  7114. {
  7115. target = stream->EnsureSpace(target);
  7116. target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_act_success(), target);
  7117. }
  7118. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  7119. {
  7120. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  7121. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  7122. );
  7123. }
  7124. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MoveRes)
  7125. return target;
  7126. }
  7127. size_t MoveRes::ByteSizeLong() const
  7128. {
  7129. // @@protoc_insertion_point(message_byte_size_start:protobuf.MoveRes)
  7130. size_t total_size = 0;
  7131. uint32_t cached_has_bits = 0;
  7132. // Prevent compiler warnings about cached_has_bits being unused
  7133. (void)cached_has_bits;
  7134. // int64 actual_speed = 1;
  7135. if (this->_internal_actual_speed() != 0)
  7136. {
  7137. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_actual_speed());
  7138. }
  7139. // double actual_angle = 2;
  7140. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  7141. double tmp_actual_angle = this->_internal_actual_angle();
  7142. uint64_t raw_actual_angle;
  7143. memcpy(&raw_actual_angle, &tmp_actual_angle, sizeof(tmp_actual_angle));
  7144. if (raw_actual_angle != 0)
  7145. {
  7146. total_size += 1 + 8;
  7147. }
  7148. // bool act_success = 3;
  7149. if (this->_internal_act_success() != 0)
  7150. {
  7151. total_size += 1 + 1;
  7152. }
  7153. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  7154. }
  7155. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveRes::_class_data_ = {
  7156. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  7157. MoveRes::MergeImpl};
  7158. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MoveRes::GetClassData() const
  7159. {
  7160. return &_class_data_;
  7161. }
  7162. void MoveRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  7163. {
  7164. auto* const _this = static_cast<MoveRes*>(&to_msg);
  7165. auto& from = static_cast<const MoveRes&>(from_msg);
  7166. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MoveRes)
  7167. GOOGLE_DCHECK_NE(&from, _this);
  7168. uint32_t cached_has_bits = 0;
  7169. (void)cached_has_bits;
  7170. if (from._internal_actual_speed() != 0)
  7171. {
  7172. _this->_internal_set_actual_speed(from._internal_actual_speed());
  7173. }
  7174. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  7175. double tmp_actual_angle = from._internal_actual_angle();
  7176. uint64_t raw_actual_angle;
  7177. memcpy(&raw_actual_angle, &tmp_actual_angle, sizeof(tmp_actual_angle));
  7178. if (raw_actual_angle != 0)
  7179. {
  7180. _this->_internal_set_actual_angle(from._internal_actual_angle());
  7181. }
  7182. if (from._internal_act_success() != 0)
  7183. {
  7184. _this->_internal_set_act_success(from._internal_act_success());
  7185. }
  7186. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7187. }
  7188. void MoveRes::CopyFrom(const MoveRes& from)
  7189. {
  7190. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MoveRes)
  7191. if (&from == this)
  7192. return;
  7193. Clear();
  7194. MergeFrom(from);
  7195. }
  7196. bool MoveRes::IsInitialized() const
  7197. {
  7198. return true;
  7199. }
  7200. void MoveRes::InternalSwap(MoveRes* other)
  7201. {
  7202. using std::swap;
  7203. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  7204. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  7205. PROTOBUF_FIELD_OFFSET(MoveRes, _impl_.act_success_) + sizeof(MoveRes::_impl_.act_success_) - PROTOBUF_FIELD_OFFSET(MoveRes, _impl_.actual_speed_)>(
  7206. reinterpret_cast<char*>(&_impl_.actual_speed_),
  7207. reinterpret_cast<char*>(&other->_impl_.actual_speed_)
  7208. );
  7209. }
  7210. ::PROTOBUF_NAMESPACE_ID::Metadata MoveRes::GetMetadata() const
  7211. {
  7212. return ::_pbi::AssignDescriptors(
  7213. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[16]
  7214. );
  7215. }
  7216. // ===================================================================
  7217. class BoolRes::_Internal
  7218. {
  7219. public:
  7220. };
  7221. BoolRes::BoolRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  7222. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  7223. {
  7224. SharedCtor(arena, is_message_owned);
  7225. // @@protoc_insertion_point(arena_constructor:protobuf.BoolRes)
  7226. }
  7227. BoolRes::BoolRes(const BoolRes& from) :
  7228. ::PROTOBUF_NAMESPACE_ID::Message()
  7229. {
  7230. BoolRes* const _this = this;
  7231. (void)_this;
  7232. new (&_impl_) Impl_{
  7233. decltype(_impl_.act_success_){}, /*decltype(_impl_._cached_size_)*/ {}};
  7234. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7235. _this->_impl_.act_success_ = from._impl_.act_success_;
  7236. // @@protoc_insertion_point(copy_constructor:protobuf.BoolRes)
  7237. }
  7238. inline void BoolRes::SharedCtor(
  7239. ::_pb::Arena* arena, bool is_message_owned
  7240. )
  7241. {
  7242. (void)arena;
  7243. (void)is_message_owned;
  7244. new (&_impl_) Impl_{
  7245. decltype(_impl_.act_success_){false}, /*decltype(_impl_._cached_size_)*/ {}};
  7246. }
  7247. BoolRes::~BoolRes()
  7248. {
  7249. // @@protoc_insertion_point(destructor:protobuf.BoolRes)
  7250. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  7251. {
  7252. (void)arena;
  7253. return;
  7254. }
  7255. SharedDtor();
  7256. }
  7257. inline void BoolRes::SharedDtor()
  7258. {
  7259. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  7260. }
  7261. void BoolRes::SetCachedSize(int size) const
  7262. {
  7263. _impl_._cached_size_.Set(size);
  7264. }
  7265. void BoolRes::Clear()
  7266. {
  7267. // @@protoc_insertion_point(message_clear_start:protobuf.BoolRes)
  7268. uint32_t cached_has_bits = 0;
  7269. // Prevent compiler warnings about cached_has_bits being unused
  7270. (void)cached_has_bits;
  7271. _impl_.act_success_ = false;
  7272. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7273. }
  7274. const char* BoolRes::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  7275. {
  7276. #define CHK_(x) \
  7277. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  7278. goto failure
  7279. while (!ctx->Done(&ptr))
  7280. {
  7281. uint32_t tag;
  7282. ptr = ::_pbi::ReadTag(ptr, &tag);
  7283. switch (tag >> 3)
  7284. {
  7285. // bool act_success = 1;
  7286. case 1:
  7287. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  7288. {
  7289. _impl_.act_success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  7290. CHK_(ptr);
  7291. }
  7292. else
  7293. goto handle_unusual;
  7294. continue;
  7295. default:
  7296. goto handle_unusual;
  7297. } // switch
  7298. handle_unusual:
  7299. if ((tag == 0) || ((tag & 7) == 4))
  7300. {
  7301. CHK_(ptr);
  7302. ctx->SetLastTag(tag);
  7303. goto message_done;
  7304. }
  7305. ptr = UnknownFieldParse(
  7306. tag,
  7307. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  7308. ptr,
  7309. ctx
  7310. );
  7311. CHK_(ptr != nullptr);
  7312. } // while
  7313. message_done:
  7314. return ptr;
  7315. failure:
  7316. ptr = nullptr;
  7317. goto message_done;
  7318. #undef CHK_
  7319. }
  7320. uint8_t* BoolRes::_InternalSerialize(
  7321. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  7322. ) const
  7323. {
  7324. // @@protoc_insertion_point(serialize_to_array_start:protobuf.BoolRes)
  7325. uint32_t cached_has_bits = 0;
  7326. (void)cached_has_bits;
  7327. // bool act_success = 1;
  7328. if (this->_internal_act_success() != 0)
  7329. {
  7330. target = stream->EnsureSpace(target);
  7331. target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_act_success(), target);
  7332. }
  7333. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  7334. {
  7335. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  7336. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  7337. );
  7338. }
  7339. // @@protoc_insertion_point(serialize_to_array_end:protobuf.BoolRes)
  7340. return target;
  7341. }
  7342. size_t BoolRes::ByteSizeLong() const
  7343. {
  7344. // @@protoc_insertion_point(message_byte_size_start:protobuf.BoolRes)
  7345. size_t total_size = 0;
  7346. uint32_t cached_has_bits = 0;
  7347. // Prevent compiler warnings about cached_has_bits being unused
  7348. (void)cached_has_bits;
  7349. // bool act_success = 1;
  7350. if (this->_internal_act_success() != 0)
  7351. {
  7352. total_size += 1 + 1;
  7353. }
  7354. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  7355. }
  7356. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BoolRes::_class_data_ = {
  7357. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  7358. BoolRes::MergeImpl};
  7359. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* BoolRes::GetClassData() const
  7360. {
  7361. return &_class_data_;
  7362. }
  7363. void BoolRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  7364. {
  7365. auto* const _this = static_cast<BoolRes*>(&to_msg);
  7366. auto& from = static_cast<const BoolRes&>(from_msg);
  7367. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.BoolRes)
  7368. GOOGLE_DCHECK_NE(&from, _this);
  7369. uint32_t cached_has_bits = 0;
  7370. (void)cached_has_bits;
  7371. if (from._internal_act_success() != 0)
  7372. {
  7373. _this->_internal_set_act_success(from._internal_act_success());
  7374. }
  7375. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7376. }
  7377. void BoolRes::CopyFrom(const BoolRes& from)
  7378. {
  7379. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.BoolRes)
  7380. if (&from == this)
  7381. return;
  7382. Clear();
  7383. MergeFrom(from);
  7384. }
  7385. bool BoolRes::IsInitialized() const
  7386. {
  7387. return true;
  7388. }
  7389. void BoolRes::InternalSwap(BoolRes* other)
  7390. {
  7391. using std::swap;
  7392. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  7393. swap(_impl_.act_success_, other->_impl_.act_success_);
  7394. }
  7395. ::PROTOBUF_NAMESPACE_ID::Metadata BoolRes::GetMetadata() const
  7396. {
  7397. return ::_pbi::AssignDescriptors(
  7398. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[17]
  7399. );
  7400. }
  7401. // ===================================================================
  7402. class MsgRes::_Internal
  7403. {
  7404. public:
  7405. };
  7406. MsgRes::MsgRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  7407. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  7408. {
  7409. SharedCtor(arena, is_message_owned);
  7410. // @@protoc_insertion_point(arena_constructor:protobuf.MsgRes)
  7411. }
  7412. MsgRes::MsgRes(const MsgRes& from) :
  7413. ::PROTOBUF_NAMESPACE_ID::Message()
  7414. {
  7415. MsgRes* const _this = this;
  7416. (void)_this;
  7417. new (&_impl_) Impl_{
  7418. decltype(_impl_.message_received_){}, decltype(_impl_.from_player_id_){}, decltype(_impl_.have_message_){}, /*decltype(_impl_._cached_size_)*/ {}};
  7419. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7420. _impl_.message_received_.InitDefault();
  7421. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7422. _impl_.message_received_.Set("", GetArenaForAllocation());
  7423. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7424. if (!from._internal_message_received().empty())
  7425. {
  7426. _this->_impl_.message_received_.Set(from._internal_message_received(), _this->GetArenaForAllocation());
  7427. }
  7428. ::memcpy(&_impl_.from_player_id_, &from._impl_.from_player_id_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.have_message_) - reinterpret_cast<char*>(&_impl_.from_player_id_)) + sizeof(_impl_.have_message_));
  7429. // @@protoc_insertion_point(copy_constructor:protobuf.MsgRes)
  7430. }
  7431. inline void MsgRes::SharedCtor(
  7432. ::_pb::Arena* arena, bool is_message_owned
  7433. )
  7434. {
  7435. (void)arena;
  7436. (void)is_message_owned;
  7437. new (&_impl_) Impl_{
  7438. decltype(_impl_.message_received_){}, decltype(_impl_.from_player_id_){int64_t{0}}, decltype(_impl_.have_message_){false}, /*decltype(_impl_._cached_size_)*/ {}};
  7439. _impl_.message_received_.InitDefault();
  7440. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7441. _impl_.message_received_.Set("", GetArenaForAllocation());
  7442. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7443. }
  7444. MsgRes::~MsgRes()
  7445. {
  7446. // @@protoc_insertion_point(destructor:protobuf.MsgRes)
  7447. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  7448. {
  7449. (void)arena;
  7450. return;
  7451. }
  7452. SharedDtor();
  7453. }
  7454. inline void MsgRes::SharedDtor()
  7455. {
  7456. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  7457. _impl_.message_received_.Destroy();
  7458. }
  7459. void MsgRes::SetCachedSize(int size) const
  7460. {
  7461. _impl_._cached_size_.Set(size);
  7462. }
  7463. void MsgRes::Clear()
  7464. {
  7465. // @@protoc_insertion_point(message_clear_start:protobuf.MsgRes)
  7466. uint32_t cached_has_bits = 0;
  7467. // Prevent compiler warnings about cached_has_bits being unused
  7468. (void)cached_has_bits;
  7469. _impl_.message_received_.ClearToEmpty();
  7470. ::memset(&_impl_.from_player_id_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.have_message_) - reinterpret_cast<char*>(&_impl_.from_player_id_)) + sizeof(_impl_.have_message_));
  7471. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7472. }
  7473. const char* MsgRes::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  7474. {
  7475. #define CHK_(x) \
  7476. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  7477. goto failure
  7478. while (!ctx->Done(&ptr))
  7479. {
  7480. uint32_t tag;
  7481. ptr = ::_pbi::ReadTag(ptr, &tag);
  7482. switch (tag >> 3)
  7483. {
  7484. // bool have_message = 1;
  7485. case 1:
  7486. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  7487. {
  7488. _impl_.have_message_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  7489. CHK_(ptr);
  7490. }
  7491. else
  7492. goto handle_unusual;
  7493. continue;
  7494. // int64 from_player_id = 2;
  7495. case 2:
  7496. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  7497. {
  7498. _impl_.from_player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  7499. CHK_(ptr);
  7500. }
  7501. else
  7502. goto handle_unusual;
  7503. continue;
  7504. // string message_received = 3;
  7505. case 3:
  7506. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26))
  7507. {
  7508. auto str = _internal_mutable_message_received();
  7509. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  7510. CHK_(ptr);
  7511. CHK_(::_pbi::VerifyUTF8(str, "protobuf.MsgRes.message_received"));
  7512. }
  7513. else
  7514. goto handle_unusual;
  7515. continue;
  7516. default:
  7517. goto handle_unusual;
  7518. } // switch
  7519. handle_unusual:
  7520. if ((tag == 0) || ((tag & 7) == 4))
  7521. {
  7522. CHK_(ptr);
  7523. ctx->SetLastTag(tag);
  7524. goto message_done;
  7525. }
  7526. ptr = UnknownFieldParse(
  7527. tag,
  7528. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  7529. ptr,
  7530. ctx
  7531. );
  7532. CHK_(ptr != nullptr);
  7533. } // while
  7534. message_done:
  7535. return ptr;
  7536. failure:
  7537. ptr = nullptr;
  7538. goto message_done;
  7539. #undef CHK_
  7540. }
  7541. uint8_t* MsgRes::_InternalSerialize(
  7542. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  7543. ) const
  7544. {
  7545. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MsgRes)
  7546. uint32_t cached_has_bits = 0;
  7547. (void)cached_has_bits;
  7548. // bool have_message = 1;
  7549. if (this->_internal_have_message() != 0)
  7550. {
  7551. target = stream->EnsureSpace(target);
  7552. target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_have_message(), target);
  7553. }
  7554. // int64 from_player_id = 2;
  7555. if (this->_internal_from_player_id() != 0)
  7556. {
  7557. target = stream->EnsureSpace(target);
  7558. target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_from_player_id(), target);
  7559. }
  7560. // string message_received = 3;
  7561. if (!this->_internal_message_received().empty())
  7562. {
  7563. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  7564. this->_internal_message_received().data(), static_cast<int>(this->_internal_message_received().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "protobuf.MsgRes.message_received"
  7565. );
  7566. target = stream->WriteStringMaybeAliased(
  7567. 3, this->_internal_message_received(), target
  7568. );
  7569. }
  7570. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  7571. {
  7572. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  7573. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  7574. );
  7575. }
  7576. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MsgRes)
  7577. return target;
  7578. }
  7579. size_t MsgRes::ByteSizeLong() const
  7580. {
  7581. // @@protoc_insertion_point(message_byte_size_start:protobuf.MsgRes)
  7582. size_t total_size = 0;
  7583. uint32_t cached_has_bits = 0;
  7584. // Prevent compiler warnings about cached_has_bits being unused
  7585. (void)cached_has_bits;
  7586. // string message_received = 3;
  7587. if (!this->_internal_message_received().empty())
  7588. {
  7589. total_size += 1 +
  7590. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  7591. this->_internal_message_received()
  7592. );
  7593. }
  7594. // int64 from_player_id = 2;
  7595. if (this->_internal_from_player_id() != 0)
  7596. {
  7597. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_from_player_id());
  7598. }
  7599. // bool have_message = 1;
  7600. if (this->_internal_have_message() != 0)
  7601. {
  7602. total_size += 1 + 1;
  7603. }
  7604. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  7605. }
  7606. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MsgRes::_class_data_ = {
  7607. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  7608. MsgRes::MergeImpl};
  7609. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MsgRes::GetClassData() const
  7610. {
  7611. return &_class_data_;
  7612. }
  7613. void MsgRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  7614. {
  7615. auto* const _this = static_cast<MsgRes*>(&to_msg);
  7616. auto& from = static_cast<const MsgRes&>(from_msg);
  7617. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MsgRes)
  7618. GOOGLE_DCHECK_NE(&from, _this);
  7619. uint32_t cached_has_bits = 0;
  7620. (void)cached_has_bits;
  7621. if (!from._internal_message_received().empty())
  7622. {
  7623. _this->_internal_set_message_received(from._internal_message_received());
  7624. }
  7625. if (from._internal_from_player_id() != 0)
  7626. {
  7627. _this->_internal_set_from_player_id(from._internal_from_player_id());
  7628. }
  7629. if (from._internal_have_message() != 0)
  7630. {
  7631. _this->_internal_set_have_message(from._internal_have_message());
  7632. }
  7633. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7634. }
  7635. void MsgRes::CopyFrom(const MsgRes& from)
  7636. {
  7637. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MsgRes)
  7638. if (&from == this)
  7639. return;
  7640. Clear();
  7641. MergeFrom(from);
  7642. }
  7643. bool MsgRes::IsInitialized() const
  7644. {
  7645. return true;
  7646. }
  7647. void MsgRes::InternalSwap(MsgRes* other)
  7648. {
  7649. using std::swap;
  7650. auto* lhs_arena = GetArenaForAllocation();
  7651. auto* rhs_arena = other->GetArenaForAllocation();
  7652. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  7653. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  7654. &_impl_.message_received_, lhs_arena, &other->_impl_.message_received_, rhs_arena
  7655. );
  7656. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  7657. PROTOBUF_FIELD_OFFSET(MsgRes, _impl_.have_message_) + sizeof(MsgRes::_impl_.have_message_) - PROTOBUF_FIELD_OFFSET(MsgRes, _impl_.from_player_id_)>(
  7658. reinterpret_cast<char*>(&_impl_.from_player_id_),
  7659. reinterpret_cast<char*>(&other->_impl_.from_player_id_)
  7660. );
  7661. }
  7662. ::PROTOBUF_NAMESPACE_ID::Metadata MsgRes::GetMetadata() const
  7663. {
  7664. return ::_pbi::AssignDescriptors(
  7665. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[18]
  7666. );
  7667. }
  7668. // @@protoc_insertion_point(namespace_scope)
  7669. } // namespace protobuf
  7670. PROTOBUF_NAMESPACE_OPEN
  7671. template<>
  7672. PROTOBUF_NOINLINE ::protobuf::MessageOfStudent*
  7673. Arena::CreateMaybeMessage<::protobuf::MessageOfStudent>(Arena* arena)
  7674. {
  7675. return Arena::CreateMessageInternal<::protobuf::MessageOfStudent>(arena);
  7676. }
  7677. template<>
  7678. PROTOBUF_NOINLINE ::protobuf::MessageOfTricker*
  7679. Arena::CreateMaybeMessage<::protobuf::MessageOfTricker>(Arena* arena)
  7680. {
  7681. return Arena::CreateMessageInternal<::protobuf::MessageOfTricker>(arena);
  7682. }
  7683. template<>
  7684. PROTOBUF_NOINLINE ::protobuf::MessageOfBullet*
  7685. Arena::CreateMaybeMessage<::protobuf::MessageOfBullet>(Arena* arena)
  7686. {
  7687. return Arena::CreateMessageInternal<::protobuf::MessageOfBullet>(arena);
  7688. }
  7689. template<>
  7690. PROTOBUF_NOINLINE ::protobuf::MessageOfBombedBullet*
  7691. Arena::CreateMaybeMessage<::protobuf::MessageOfBombedBullet>(Arena* arena)
  7692. {
  7693. return Arena::CreateMessageInternal<::protobuf::MessageOfBombedBullet>(arena);
  7694. }
  7695. template<>
  7696. PROTOBUF_NOINLINE ::protobuf::MessageOfProp*
  7697. Arena::CreateMaybeMessage<::protobuf::MessageOfProp>(Arena* arena)
  7698. {
  7699. return Arena::CreateMessageInternal<::protobuf::MessageOfProp>(arena);
  7700. }
  7701. template<>
  7702. PROTOBUF_NOINLINE ::protobuf::MessageOfPickedProp*
  7703. Arena::CreateMaybeMessage<::protobuf::MessageOfPickedProp>(Arena* arena)
  7704. {
  7705. return Arena::CreateMessageInternal<::protobuf::MessageOfPickedProp>(arena);
  7706. }
  7707. template<>
  7708. PROTOBUF_NOINLINE ::protobuf::MessageOfClassroom*
  7709. Arena::CreateMaybeMessage<::protobuf::MessageOfClassroom>(Arena* arena)
  7710. {
  7711. return Arena::CreateMessageInternal<::protobuf::MessageOfClassroom>(arena);
  7712. }
  7713. template<>
  7714. PROTOBUF_NOINLINE ::protobuf::MessageOfGate*
  7715. Arena::CreateMaybeMessage<::protobuf::MessageOfGate>(Arena* arena)
  7716. {
  7717. return Arena::CreateMessageInternal<::protobuf::MessageOfGate>(arena);
  7718. }
  7719. template<>
  7720. PROTOBUF_NOINLINE ::protobuf::MessageOfDoor*
  7721. Arena::CreateMaybeMessage<::protobuf::MessageOfDoor>(Arena* arena)
  7722. {
  7723. return Arena::CreateMessageInternal<::protobuf::MessageOfDoor>(arena);
  7724. }
  7725. template<>
  7726. PROTOBUF_NOINLINE ::protobuf::MessageOfChest*
  7727. Arena::CreateMaybeMessage<::protobuf::MessageOfChest>(Arena* arena)
  7728. {
  7729. return Arena::CreateMessageInternal<::protobuf::MessageOfChest>(arena);
  7730. }
  7731. template<>
  7732. PROTOBUF_NOINLINE ::protobuf::MessageOfMapObj*
  7733. Arena::CreateMaybeMessage<::protobuf::MessageOfMapObj>(Arena* arena)
  7734. {
  7735. return Arena::CreateMessageInternal<::protobuf::MessageOfMapObj>(arena);
  7736. }
  7737. template<>
  7738. PROTOBUF_NOINLINE ::protobuf::MessageOfMap_Row*
  7739. Arena::CreateMaybeMessage<::protobuf::MessageOfMap_Row>(Arena* arena)
  7740. {
  7741. return Arena::CreateMessageInternal<::protobuf::MessageOfMap_Row>(arena);
  7742. }
  7743. template<>
  7744. PROTOBUF_NOINLINE ::protobuf::MessageOfMap*
  7745. Arena::CreateMaybeMessage<::protobuf::MessageOfMap>(Arena* arena)
  7746. {
  7747. return Arena::CreateMessageInternal<::protobuf::MessageOfMap>(arena);
  7748. }
  7749. template<>
  7750. PROTOBUF_NOINLINE ::protobuf::MessageOfObj*
  7751. Arena::CreateMaybeMessage<::protobuf::MessageOfObj>(Arena* arena)
  7752. {
  7753. return Arena::CreateMessageInternal<::protobuf::MessageOfObj>(arena);
  7754. }
  7755. template<>
  7756. PROTOBUF_NOINLINE ::protobuf::MessageOfAll*
  7757. Arena::CreateMaybeMessage<::protobuf::MessageOfAll>(Arena* arena)
  7758. {
  7759. return Arena::CreateMessageInternal<::protobuf::MessageOfAll>(arena);
  7760. }
  7761. template<>
  7762. PROTOBUF_NOINLINE ::protobuf::MessageToClient*
  7763. Arena::CreateMaybeMessage<::protobuf::MessageToClient>(Arena* arena)
  7764. {
  7765. return Arena::CreateMessageInternal<::protobuf::MessageToClient>(arena);
  7766. }
  7767. template<>
  7768. PROTOBUF_NOINLINE ::protobuf::MoveRes*
  7769. Arena::CreateMaybeMessage<::protobuf::MoveRes>(Arena* arena)
  7770. {
  7771. return Arena::CreateMessageInternal<::protobuf::MoveRes>(arena);
  7772. }
  7773. template<>
  7774. PROTOBUF_NOINLINE ::protobuf::BoolRes*
  7775. Arena::CreateMaybeMessage<::protobuf::BoolRes>(Arena* arena)
  7776. {
  7777. return Arena::CreateMessageInternal<::protobuf::BoolRes>(arena);
  7778. }
  7779. template<>
  7780. PROTOBUF_NOINLINE ::protobuf::MsgRes*
  7781. Arena::CreateMaybeMessage<::protobuf::MsgRes>(Arena* arena)
  7782. {
  7783. return Arena::CreateMessageInternal<::protobuf::MsgRes>(arena);
  7784. }
  7785. PROTOBUF_NAMESPACE_CLOSE
  7786. // @@protoc_insertion_point(global_scope)
  7787. #include <google/protobuf/port_undef.inc>