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 343 kB

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