|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: Message2Clients.proto
-
- #include "Message2Clients.pb.h"
-
- #include <algorithm>
-
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/extension_set.h>
- #include <google/protobuf/wire_format_lite.h>
- #include <google/protobuf/descriptor.h>
- #include <google/protobuf/generated_message_reflection.h>
- #include <google/protobuf/reflection_ops.h>
- #include <google/protobuf/wire_format.h>
- // @@protoc_insertion_point(includes)
- #include <google/protobuf/port_def.inc>
-
- PROTOBUF_PRAGMA_INIT_SEG
-
- namespace _pb = ::PROTOBUF_NAMESPACE_ID;
- namespace _pbi = _pb::internal;
-
- namespace protobuf
- {
- PROTOBUF_CONSTEXPR MessageOfStudent::MessageOfStudent(
- ::_pbi::ConstantInitialized
- ) :
- _impl_{
- /*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_)*/ {}}
- {
- }
- struct MessageOfStudentDefaultTypeInternal
- {
- PROTOBUF_CONSTEXPR MessageOfStudentDefaultTypeInternal() :
- _instance(::_pbi::ConstantInitialized{})
- {
- }
- ~MessageOfStudentDefaultTypeInternal()
- {
- }
- union
- {
- MessageOfStudent _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfStudentDefaultTypeInternal _MessageOfStudent_default_instance_;
- PROTOBUF_CONSTEXPR MessageOfTricker::MessageOfTricker(
- ::_pbi::ConstantInitialized
- ) :
- _impl_{
- /*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_)*/ {}}
- {
- }
- struct MessageOfTrickerDefaultTypeInternal
- {
- PROTOBUF_CONSTEXPR MessageOfTrickerDefaultTypeInternal() :
- _instance(::_pbi::ConstantInitialized{})
- {
- }
- ~MessageOfTrickerDefaultTypeInternal()
- {
- }
- union
- {
- MessageOfTricker _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfTrickerDefaultTypeInternal _MessageOfTricker_default_instance_;
- PROTOBUF_CONSTEXPR MessageOfBullet::MessageOfBullet(
- ::_pbi::ConstantInitialized
- ) :
- _impl_{
- /*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_)*/ {}}
- {
- }
- struct MessageOfBulletDefaultTypeInternal
- {
- PROTOBUF_CONSTEXPR MessageOfBulletDefaultTypeInternal() :
- _instance(::_pbi::ConstantInitialized{})
- {
- }
- ~MessageOfBulletDefaultTypeInternal()
- {
- }
- union
- {
- MessageOfBullet _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfBulletDefaultTypeInternal _MessageOfBullet_default_instance_;
- PROTOBUF_CONSTEXPR MessageOfBombedBullet::MessageOfBombedBullet(
- ::_pbi::ConstantInitialized
- ) :
- _impl_{
- /*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_)*/ {}}
- {
- }
- struct MessageOfBombedBulletDefaultTypeInternal
- {
- PROTOBUF_CONSTEXPR MessageOfBombedBulletDefaultTypeInternal() :
- _instance(::_pbi::ConstantInitialized{})
- {
- }
- ~MessageOfBombedBulletDefaultTypeInternal()
- {
- }
- union
- {
- MessageOfBombedBullet _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfBombedBulletDefaultTypeInternal _MessageOfBombedBullet_default_instance_;
- PROTOBUF_CONSTEXPR MessageOfProp::MessageOfProp(
- ::_pbi::ConstantInitialized
- ) :
- _impl_{
- /*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_)*/ {}}
- {
- }
- struct MessageOfPropDefaultTypeInternal
- {
- PROTOBUF_CONSTEXPR MessageOfPropDefaultTypeInternal() :
- _instance(::_pbi::ConstantInitialized{})
- {
- }
- ~MessageOfPropDefaultTypeInternal()
- {
- }
- union
- {
- MessageOfProp _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfPropDefaultTypeInternal _MessageOfProp_default_instance_;
- PROTOBUF_CONSTEXPR MessageOfPickedProp::MessageOfPickedProp(
- ::_pbi::ConstantInitialized
- ) :
- _impl_{
- /*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_)*/ {}}
- {
- }
- struct MessageOfPickedPropDefaultTypeInternal
- {
- PROTOBUF_CONSTEXPR MessageOfPickedPropDefaultTypeInternal() :
- _instance(::_pbi::ConstantInitialized{})
- {
- }
- ~MessageOfPickedPropDefaultTypeInternal()
- {
- }
- union
- {
- MessageOfPickedProp _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfPickedPropDefaultTypeInternal _MessageOfPickedProp_default_instance_;
- PROTOBUF_CONSTEXPR MessageOfClassroom::MessageOfClassroom(
- ::_pbi::ConstantInitialized
- ) :
- _impl_{
- /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.progress_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
- {
- }
- struct MessageOfClassroomDefaultTypeInternal
- {
- PROTOBUF_CONSTEXPR MessageOfClassroomDefaultTypeInternal() :
- _instance(::_pbi::ConstantInitialized{})
- {
- }
- ~MessageOfClassroomDefaultTypeInternal()
- {
- }
- union
- {
- MessageOfClassroom _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfClassroomDefaultTypeInternal _MessageOfClassroom_default_instance_;
- PROTOBUF_CONSTEXPR MessageOfGate::MessageOfGate(
- ::_pbi::ConstantInitialized
- ) :
- _impl_{
- /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.progress_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
- {
- }
- struct MessageOfGateDefaultTypeInternal
- {
- PROTOBUF_CONSTEXPR MessageOfGateDefaultTypeInternal() :
- _instance(::_pbi::ConstantInitialized{})
- {
- }
- ~MessageOfGateDefaultTypeInternal()
- {
- }
- union
- {
- MessageOfGate _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfGateDefaultTypeInternal _MessageOfGate_default_instance_;
- PROTOBUF_CONSTEXPR MessageOfHiddenGate::MessageOfHiddenGate(
- ::_pbi::ConstantInitialized
- ) :
- _impl_{
- /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.opened_)*/ false, /*decltype(_impl_._cached_size_)*/ {}}
- {
- }
- struct MessageOfHiddenGateDefaultTypeInternal
- {
- PROTOBUF_CONSTEXPR MessageOfHiddenGateDefaultTypeInternal() :
- _instance(::_pbi::ConstantInitialized{})
- {
- }
- ~MessageOfHiddenGateDefaultTypeInternal()
- {
- }
- union
- {
- MessageOfHiddenGate _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfHiddenGateDefaultTypeInternal _MessageOfHiddenGate_default_instance_;
- PROTOBUF_CONSTEXPR MessageOfDoor::MessageOfDoor(
- ::_pbi::ConstantInitialized
- ) :
- _impl_{
- /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.is_open_)*/ false, /*decltype(_impl_.progress_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
- {
- }
- struct MessageOfDoorDefaultTypeInternal
- {
- PROTOBUF_CONSTEXPR MessageOfDoorDefaultTypeInternal() :
- _instance(::_pbi::ConstantInitialized{})
- {
- }
- ~MessageOfDoorDefaultTypeInternal()
- {
- }
- union
- {
- MessageOfDoor _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfDoorDefaultTypeInternal _MessageOfDoor_default_instance_;
- PROTOBUF_CONSTEXPR MessageOfChest::MessageOfChest(
- ::_pbi::ConstantInitialized
- ) :
- _impl_{
- /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.progress_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
- {
- }
- struct MessageOfChestDefaultTypeInternal
- {
- PROTOBUF_CONSTEXPR MessageOfChestDefaultTypeInternal() :
- _instance(::_pbi::ConstantInitialized{})
- {
- }
- ~MessageOfChestDefaultTypeInternal()
- {
- }
- union
- {
- MessageOfChest _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfChestDefaultTypeInternal _MessageOfChest_default_instance_;
- PROTOBUF_CONSTEXPR MessageOfMap_Row::MessageOfMap_Row(
- ::_pbi::ConstantInitialized
- ) :
- _impl_{
- /*decltype(_impl_.col_)*/ {}, /*decltype(_impl_._col_cached_byte_size_)*/ {0}, /*decltype(_impl_._cached_size_)*/ {}}
- {
- }
- struct MessageOfMap_RowDefaultTypeInternal
- {
- PROTOBUF_CONSTEXPR MessageOfMap_RowDefaultTypeInternal() :
- _instance(::_pbi::ConstantInitialized{})
- {
- }
- ~MessageOfMap_RowDefaultTypeInternal()
- {
- }
- union
- {
- MessageOfMap_Row _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfMap_RowDefaultTypeInternal _MessageOfMap_Row_default_instance_;
- PROTOBUF_CONSTEXPR MessageOfMap::MessageOfMap(
- ::_pbi::ConstantInitialized
- ) :
- _impl_{
- /*decltype(_impl_.row_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}}
- {
- }
- struct MessageOfMapDefaultTypeInternal
- {
- PROTOBUF_CONSTEXPR MessageOfMapDefaultTypeInternal() :
- _instance(::_pbi::ConstantInitialized{})
- {
- }
- ~MessageOfMapDefaultTypeInternal()
- {
- }
- union
- {
- MessageOfMap _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfMapDefaultTypeInternal _MessageOfMap_default_instance_;
- PROTOBUF_CONSTEXPR MessageOfNews::MessageOfNews(
- ::_pbi::ConstantInitialized
- ) :
- _impl_{
- /*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_)*/ {}}
- {
- }
- struct MessageOfNewsDefaultTypeInternal
- {
- PROTOBUF_CONSTEXPR MessageOfNewsDefaultTypeInternal() :
- _instance(::_pbi::ConstantInitialized{})
- {
- }
- ~MessageOfNewsDefaultTypeInternal()
- {
- }
- union
- {
- MessageOfNews _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfNewsDefaultTypeInternal _MessageOfNews_default_instance_;
- PROTOBUF_CONSTEXPR MessageOfObj::MessageOfObj(
- ::_pbi::ConstantInitialized
- ) :
- _impl_{
- /*decltype(_impl_.message_of_obj_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_._oneof_case_)*/ {}}
- {
- }
- struct MessageOfObjDefaultTypeInternal
- {
- PROTOBUF_CONSTEXPR MessageOfObjDefaultTypeInternal() :
- _instance(::_pbi::ConstantInitialized{})
- {
- }
- ~MessageOfObjDefaultTypeInternal()
- {
- }
- union
- {
- MessageOfObj _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfObjDefaultTypeInternal _MessageOfObj_default_instance_;
- PROTOBUF_CONSTEXPR MessageOfAll::MessageOfAll(
- ::_pbi::ConstantInitialized
- ) :
- _impl_{
- /*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_)*/ {}}
- {
- }
- struct MessageOfAllDefaultTypeInternal
- {
- PROTOBUF_CONSTEXPR MessageOfAllDefaultTypeInternal() :
- _instance(::_pbi::ConstantInitialized{})
- {
- }
- ~MessageOfAllDefaultTypeInternal()
- {
- }
- union
- {
- MessageOfAll _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfAllDefaultTypeInternal _MessageOfAll_default_instance_;
- PROTOBUF_CONSTEXPR MessageToClient::MessageToClient(
- ::_pbi::ConstantInitialized
- ) :
- _impl_{
- /*decltype(_impl_.obj_message_)*/ {}, /*decltype(_impl_.all_message_)*/ nullptr, /*decltype(_impl_.game_state_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
- {
- }
- struct MessageToClientDefaultTypeInternal
- {
- PROTOBUF_CONSTEXPR MessageToClientDefaultTypeInternal() :
- _instance(::_pbi::ConstantInitialized{})
- {
- }
- ~MessageToClientDefaultTypeInternal()
- {
- }
- union
- {
- MessageToClient _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageToClientDefaultTypeInternal _MessageToClient_default_instance_;
- PROTOBUF_CONSTEXPR MoveRes::MoveRes(
- ::_pbi::ConstantInitialized
- ) :
- _impl_{
- /*decltype(_impl_.actual_speed_)*/ int64_t{0}, /*decltype(_impl_.actual_angle_)*/ 0, /*decltype(_impl_.act_success_)*/ false, /*decltype(_impl_._cached_size_)*/ {}}
- {
- }
- struct MoveResDefaultTypeInternal
- {
- PROTOBUF_CONSTEXPR MoveResDefaultTypeInternal() :
- _instance(::_pbi::ConstantInitialized{})
- {
- }
- ~MoveResDefaultTypeInternal()
- {
- }
- union
- {
- MoveRes _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveResDefaultTypeInternal _MoveRes_default_instance_;
- PROTOBUF_CONSTEXPR BoolRes::BoolRes(
- ::_pbi::ConstantInitialized
- ) :
- _impl_{
- /*decltype(_impl_.act_success_)*/ false, /*decltype(_impl_._cached_size_)*/ {}}
- {
- }
- struct BoolResDefaultTypeInternal
- {
- PROTOBUF_CONSTEXPR BoolResDefaultTypeInternal() :
- _instance(::_pbi::ConstantInitialized{})
- {
- }
- ~BoolResDefaultTypeInternal()
- {
- }
- union
- {
- BoolRes _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BoolResDefaultTypeInternal _BoolRes_default_instance_;
- } // namespace protobuf
- static ::_pb::Metadata file_level_metadata_Message2Clients_2eproto[19];
- static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_Message2Clients_2eproto = nullptr;
- static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_Message2Clients_2eproto = nullptr;
-
- const uint32_t TableStruct_Message2Clients_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.x_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.y_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.speed_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.determination_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.addiction_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.time_until_skill_available_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.place_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.prop_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.player_state_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.guid_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.bullet_type_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.learning_speed_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.treat_speed_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.player_id_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.view_range_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.radius_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.danger_alert_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.score_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.treat_progress_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.rescue_progress_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.student_type_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.facing_direction_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.buff_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.x_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.y_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.speed_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.time_until_skill_available_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.place_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.prop_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.tricker_type_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.guid_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.score_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.player_id_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.view_range_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.radius_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.player_state_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.trick_desire_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.class_volume_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.facing_direction_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.bullet_type_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.buff_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.type_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.x_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.y_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.facing_direction_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.guid_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.team_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.place_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.bomb_range_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.speed_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _impl_.type_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _impl_.x_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _impl_.y_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _impl_.facing_direction_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _impl_.mapping_id_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _impl_.bomb_range_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.type_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.x_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.y_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.facing_direction_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.guid_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.place_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _impl_.type_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _impl_.x_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _impl_.y_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _impl_.facing_direction_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _impl_.mapping_id_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfClassroom, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfClassroom, _impl_.x_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfClassroom, _impl_.y_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfClassroom, _impl_.progress_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfGate, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfGate, _impl_.x_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfGate, _impl_.y_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfGate, _impl_.progress_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHiddenGate, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHiddenGate, _impl_.x_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHiddenGate, _impl_.y_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHiddenGate, _impl_.opened_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfDoor, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfDoor, _impl_.x_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfDoor, _impl_.y_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfDoor, _impl_.is_open_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfDoor, _impl_.progress_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfChest, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfChest, _impl_.x_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfChest, _impl_.y_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfChest, _impl_.progress_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap_Row, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap_Row, _impl_.col_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap, _impl_.row_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfNews, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfNews, _impl_.news_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfNews, _impl_.from_id_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfNews, _impl_.to_id_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfObj, _internal_metadata_),
- ~0u, // no _extensions_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfObj, _impl_._oneof_case_[0]),
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfObj, _impl_.message_of_obj_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfAll, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfAll, _impl_.game_time_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfAll, _impl_.subject_left_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfAll, _impl_.student_graduated_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfAll, _impl_.student_quited_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfAll, _impl_.student_score_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfAll, _impl_.tricker_score_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfAll, _impl_.gate_opened_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfAll, _impl_.hidden_gate_refreshed_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfAll, _impl_.hidden_gate_opened_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _impl_.obj_message_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _impl_.game_state_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _impl_.all_message_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, _impl_.actual_speed_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, _impl_.actual_angle_),
- PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, _impl_.act_success_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::protobuf::BoolRes, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::protobuf::BoolRes, _impl_.act_success_),
- };
- static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
- {0, -1, -1, sizeof(::protobuf::MessageOfStudent)},
- {29, -1, -1, sizeof(::protobuf::MessageOfTricker)},
- {53, -1, -1, sizeof(::protobuf::MessageOfBullet)},
- {68, -1, -1, sizeof(::protobuf::MessageOfBombedBullet)},
- {80, -1, -1, sizeof(::protobuf::MessageOfProp)},
- {92, -1, -1, sizeof(::protobuf::MessageOfPickedProp)},
- {103, -1, -1, sizeof(::protobuf::MessageOfClassroom)},
- {112, -1, -1, sizeof(::protobuf::MessageOfGate)},
- {121, -1, -1, sizeof(::protobuf::MessageOfHiddenGate)},
- {130, -1, -1, sizeof(::protobuf::MessageOfDoor)},
- {140, -1, -1, sizeof(::protobuf::MessageOfChest)},
- {149, -1, -1, sizeof(::protobuf::MessageOfMap_Row)},
- {156, -1, -1, sizeof(::protobuf::MessageOfMap)},
- {163, -1, -1, sizeof(::protobuf::MessageOfNews)},
- {172, -1, -1, sizeof(::protobuf::MessageOfObj)},
- {191, -1, -1, sizeof(::protobuf::MessageOfAll)},
- {206, -1, -1, sizeof(::protobuf::MessageToClient)},
- {215, -1, -1, sizeof(::protobuf::MoveRes)},
- {224, -1, -1, sizeof(::protobuf::BoolRes)},
- };
-
- static const ::_pb::Message* const file_default_instances[] = {
- &::protobuf::_MessageOfStudent_default_instance_._instance,
- &::protobuf::_MessageOfTricker_default_instance_._instance,
- &::protobuf::_MessageOfBullet_default_instance_._instance,
- &::protobuf::_MessageOfBombedBullet_default_instance_._instance,
- &::protobuf::_MessageOfProp_default_instance_._instance,
- &::protobuf::_MessageOfPickedProp_default_instance_._instance,
- &::protobuf::_MessageOfClassroom_default_instance_._instance,
- &::protobuf::_MessageOfGate_default_instance_._instance,
- &::protobuf::_MessageOfHiddenGate_default_instance_._instance,
- &::protobuf::_MessageOfDoor_default_instance_._instance,
- &::protobuf::_MessageOfChest_default_instance_._instance,
- &::protobuf::_MessageOfMap_Row_default_instance_._instance,
- &::protobuf::_MessageOfMap_default_instance_._instance,
- &::protobuf::_MessageOfNews_default_instance_._instance,
- &::protobuf::_MessageOfObj_default_instance_._instance,
- &::protobuf::_MessageOfAll_default_instance_._instance,
- &::protobuf::_MessageToClient_default_instance_._instance,
- &::protobuf::_MoveRes_default_instance_._instance,
- &::protobuf::_BoolRes_default_instance_._instance,
- };
-
- const char descriptor_table_protodef_Message2Clients_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
- "\n\025Message2Clients.proto\022\010protobuf\032\021Messa"
- "geType.proto\"\333\004\n\020MessageOfStudent\022\t\n\001x\030\001"
- " \001(\005\022\t\n\001y\030\002 \001(\005\022\r\n\005speed\030\003 \001(\005\022\025\n\rdeterm"
- "ination\030\004 \001(\005\022\021\n\taddiction\030\005 \001(\005\022\"\n\032time"
- "_until_skill_available\030\006 \003(\001\022\"\n\005place\030\007 "
- "\001(\0162\023.protobuf.PlaceType\022 \n\004prop\030\010 \003(\0162\022"
- ".protobuf.PropType\022+\n\014player_state\030\t \001(\016"
- "2\025.protobuf.PlayerState\022\014\n\004guid\030\n \001(\003\022)\n"
- "\013bullet_type\030\014 \001(\0162\024.protobuf.BulletType"
- "\022\026\n\016learning_speed\030\r \001(\005\022\023\n\013treat_speed\030"
- "\016 \001(\005\022\021\n\tplayer_id\030\017 \001(\003\022\022\n\nview_range\030\020"
- " \001(\005\022\016\n\006radius\030\021 \001(\005\022\024\n\014danger_alert\030\023 \001"
- "(\001\022\r\n\005score\030\024 \001(\005\022\026\n\016treat_progress\030\025 \001("
- "\005\022\027\n\017rescue_progress\030\026 \001(\005\022+\n\014student_ty"
- "pe\030\027 \001(\0162\025.protobuf.StudentType\022\030\n\020facin"
- "g_direction\030\030 \001(\001\022\'\n\004buff\030\031 \003(\0162\031.protob"
- "uf.StudentBuffType\"\351\003\n\020MessageOfTricker\022"
- "\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"
- "time_until_skill_available\030\005 \003(\001\022\"\n\005plac"
- "e\030\006 \001(\0162\023.protobuf.PlaceType\022 \n\004prop\030\007 \003"
- "(\0162\022.protobuf.PropType\022+\n\014tricker_type\030\010"
- " \001(\0162\025.protobuf.TrickerType\022\014\n\004guid\030\t \001("
- "\003\022\r\n\005score\030\n \001(\005\022\021\n\tplayer_id\030\013 \001(\003\022\022\n\nv"
- "iew_range\030\014 \001(\005\022\016\n\006radius\030\r \001(\005\022+\n\014playe"
- "r_state\030\016 \001(\0162\025.protobuf.PlayerState\022\024\n\014"
- "trick_desire\030\017 \001(\001\022\024\n\014class_volume\030\020 \001(\001"
- "\022\030\n\020facing_direction\030\021 \001(\001\022)\n\013bullet_typ"
- "e\030\022 \001(\0162\024.protobuf.BulletType\022\'\n\004buff\030\023 "
- "\003(\0162\031.protobuf.TrickerBuffType\"\336\001\n\017Messa"
- "geOfBullet\022\"\n\004type\030\001 \001(\0162\024.protobuf.Bull"
- "etType\022\t\n\001x\030\002 \001(\005\022\t\n\001y\030\003 \001(\005\022\030\n\020facing_d"
- "irection\030\004 \001(\001\022\014\n\004guid\030\005 \001(\003\022\"\n\004team\030\006 \001"
- "(\0162\024.protobuf.PlayerType\022\"\n\005place\030\007 \001(\0162"
- "\023.protobuf.PlaceType\022\022\n\nbomb_range\030\010 \001(\001"
- "\022\r\n\005speed\030\t \001(\005\"\223\001\n\025MessageOfBombedBulle"
- "t\022\"\n\004type\030\001 \001(\0162\024.protobuf.BulletType\022\t\n"
- "\001x\030\002 \001(\005\022\t\n\001y\030\003 \001(\005\022\030\n\020facing_direction\030"
- "\004 \001(\001\022\022\n\nmapping_id\030\005 \001(\003\022\022\n\nbomb_range\030"
- "\006 \001(\001\"\223\001\n\rMessageOfProp\022 \n\004type\030\001 \001(\0162\022."
- "protobuf.PropType\022\t\n\001x\030\002 \001(\005\022\t\n\001y\030\003 \001(\005\022"
- "\030\n\020facing_direction\030\004 \001(\001\022\014\n\004guid\030\005 \001(\003\022"
- "\"\n\005place\030\006 \001(\0162\023.protobuf.PlaceType\"{\n\023M"
- "essageOfPickedProp\022 \n\004type\030\001 \001(\0162\022.proto"
- "buf.PropType\022\t\n\001x\030\002 \001(\005\022\t\n\001y\030\003 \001(\005\022\030\n\020fa"
- "cing_direction\030\004 \001(\001\022\022\n\nmapping_id\030\005 \001(\003"
- "\"<\n\022MessageOfClassroom\022\t\n\001x\030\001 \001(\005\022\t\n\001y\030\002"
- " \001(\005\022\020\n\010progress\030\003 \001(\005\"7\n\rMessageOfGate\022"
- "\t\n\001x\030\001 \001(\005\022\t\n\001y\030\002 \001(\005\022\020\n\010progress\030\003 \001(\005\""
- ";\n\023MessageOfHiddenGate\022\t\n\001x\030\001 \001(\005\022\t\n\001y\030\002"
- " \001(\005\022\016\n\006opened\030\003 \001(\010\"H\n\rMessageOfDoor\022\t\n"
- "\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"
- "progress\030\004 \001(\005\"8\n\016MessageOfChest\022\t\n\001x\030\001 "
- "\001(\005\022\t\n\001y\030\002 \001(\005\022\020\n\010progress\030\003 \001(\005\"`\n\014Mess"
- "ageOfMap\022\'\n\003row\030\002 \003(\0132\032.protobuf.Message"
- "OfMap.Row\032\'\n\003Row\022 \n\003col\030\001 \003(\0162\023.protobuf"
- ".PlaceType\"=\n\rMessageOfNews\022\014\n\004news\030\001 \001("
- "\t\022\017\n\007from_id\030\002 \001(\003\022\r\n\005to_id\030\003 \001(\003\"\244\005\n\014Me"
- "ssageOfObj\0225\n\017student_message\030\001 \001(\0132\032.pr"
- "otobuf.MessageOfStudentH\000\0225\n\017tricker_mes"
- "sage\030\002 \001(\0132\032.protobuf.MessageOfTrickerH\000"
- "\022/\n\014prop_message\030\003 \001(\0132\027.protobuf.Messag"
- "eOfPropH\000\0223\n\016bullet_message\030\004 \001(\0132\031.prot"
- "obuf.MessageOfBulletH\000\022@\n\025bombed_bullet_"
- "message\030\005 \001(\0132\037.protobuf.MessageOfBombed"
- "BulletH\000\0229\n\021classroom_message\030\006 \001(\0132\034.pr"
- "otobuf.MessageOfClassroomH\000\022/\n\014door_mess"
- "age\030\007 \001(\0132\027.protobuf.MessageOfDoorH\000\022/\n\014"
- "gate_message\030\010 \001(\0132\027.protobuf.MessageOfG"
- "ateH\000\0221\n\rchest_message\030\t \001(\0132\030.protobuf."
- "MessageOfChestH\000\022<\n\023hidden_gate_message\030"
- "\n \001(\0132\035.protobuf.MessageOfHiddenGateH\000\022/"
- "\n\014news_message\030\013 \001(\0132\027.protobuf.MessageO"
- "fNewsH\000\022-\n\013map_message\030\014 \001(\0132\026.protobuf."
- "MessageOfMapH\000B\020\n\016message_of_obj\"\350\001\n\014Mes"
- "sageOfAll\022\021\n\tgame_time\030\001 \001(\005\022\024\n\014subject_"
- "left\030\002 \001(\005\022\031\n\021student_graduated\030\003 \001(\005\022\026\n"
- "\016student_quited\030\004 \001(\005\022\025\n\rstudent_score\030\005"
- " \001(\005\022\025\n\rtricker_score\030\006 \001(\005\022\023\n\013gate_open"
- "ed\030\007 \001(\010\022\035\n\025hidden_gate_refreshed\030\010 \001(\010\022"
- "\032\n\022hidden_gate_opened\030\t \001(\010\"\224\001\n\017MessageT"
- "oClient\022+\n\013obj_message\030\001 \003(\0132\026.protobuf."
- "MessageOfObj\022\'\n\ngame_state\030\002 \001(\0162\023.proto"
- "buf.GameState\022+\n\013all_message\030\003 \001(\0132\026.pro"
- "tobuf.MessageOfAll\"J\n\007MoveRes\022\024\n\014actual_"
- "speed\030\001 \001(\003\022\024\n\014actual_angle\030\002 \001(\001\022\023\n\013act"
- "_success\030\003 \001(\010\"\036\n\007BoolRes\022\023\n\013act_success"
- "\030\001 \001(\010b\006proto3";
- static const ::_pbi::DescriptorTable* const descriptor_table_Message2Clients_2eproto_deps[1] = {
- &::descriptor_table_MessageType_2eproto,
- };
- static ::_pbi::once_flag descriptor_table_Message2Clients_2eproto_once;
- const ::_pbi::DescriptorTable descriptor_table_Message2Clients_2eproto = {
- false,
- false,
- 3454,
- descriptor_table_protodef_Message2Clients_2eproto,
- "Message2Clients.proto",
- &descriptor_table_Message2Clients_2eproto_once,
- descriptor_table_Message2Clients_2eproto_deps,
- 1,
- 19,
- schemas,
- file_default_instances,
- TableStruct_Message2Clients_2eproto::offsets,
- file_level_metadata_Message2Clients_2eproto,
- file_level_enum_descriptors_Message2Clients_2eproto,
- file_level_service_descriptors_Message2Clients_2eproto,
- };
- PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_Message2Clients_2eproto_getter()
- {
- return &descriptor_table_Message2Clients_2eproto;
- }
-
- // Force running AddDescriptors() at dynamic initialization time.
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_Message2Clients_2eproto(&descriptor_table_Message2Clients_2eproto);
- namespace protobuf
- {
-
- // ===================================================================
-
- class MessageOfStudent::_Internal
- {
- public:
- };
-
- MessageOfStudent::MessageOfStudent(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
- {
- SharedCtor(arena, is_message_owned);
- // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfStudent)
- }
- MessageOfStudent::MessageOfStudent(const MessageOfStudent& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- MessageOfStudent* const _this = this;
- (void)_this;
- new (&_impl_) Impl_{
- 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_)*/ {}};
-
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::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_));
- // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfStudent)
- }
-
- inline void MessageOfStudent::SharedCtor(
- ::_pb::Arena* arena, bool is_message_owned
- )
- {
- (void)arena;
- (void)is_message_owned;
- new (&_impl_) Impl_{
- 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_)*/ {}};
- }
-
- MessageOfStudent::~MessageOfStudent()
- {
- // @@protoc_insertion_point(destructor:protobuf.MessageOfStudent)
- if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
- {
- (void)arena;
- return;
- }
- SharedDtor();
- }
-
- inline void MessageOfStudent::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- _impl_.time_until_skill_available_.~RepeatedField();
- _impl_.prop_.~RepeatedField();
- _impl_.buff_.~RepeatedField();
- }
-
- void MessageOfStudent::SetCachedSize(int size) const
- {
- _impl_._cached_size_.Set(size);
- }
-
- void MessageOfStudent::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfStudent)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- _impl_.time_until_skill_available_.Clear();
- _impl_.prop_.Clear();
- _impl_.buff_.Clear();
- ::memset(&_impl_.x_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.facing_direction_) - reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.facing_direction_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* MessageOfStudent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // int32 x = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
- {
- _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 y = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
- {
- _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 speed = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
- {
- _impl_.speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 determination = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32))
- {
- _impl_.determination_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 addiction = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40))
- {
- _impl_.addiction_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // repeated double time_until_skill_available = 6;
- case 6:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50))
- {
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_time_until_skill_available(), ptr, ctx);
- CHK_(ptr);
- }
- else if (static_cast<uint8_t>(tag) == 49)
- {
- _internal_add_time_until_skill_available(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr));
- ptr += sizeof(double);
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.PlaceType place = 7;
- case 7:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_place(static_cast<::protobuf::PlaceType>(val));
- }
- else
- goto handle_unusual;
- continue;
- // repeated .protobuf.PropType prop = 8;
- case 8:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66))
- {
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_prop(), ptr, ctx);
- CHK_(ptr);
- }
- else if (static_cast<uint8_t>(tag) == 64)
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_add_prop(static_cast<::protobuf::PropType>(val));
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.PlayerState player_state = 9;
- case 9:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_player_state(static_cast<::protobuf::PlayerState>(val));
- }
- else
- goto handle_unusual;
- continue;
- // int64 guid = 10;
- case 10:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80))
- {
- _impl_.guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.BulletType bullet_type = 12;
- case 12:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 96))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_bullet_type(static_cast<::protobuf::BulletType>(val));
- }
- else
- goto handle_unusual;
- continue;
- // int32 learning_speed = 13;
- case 13:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 104))
- {
- _impl_.learning_speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 treat_speed = 14;
- case 14:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 112))
- {
- _impl_.treat_speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int64 player_id = 15;
- case 15:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 120))
- {
- _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 view_range = 16;
- case 16:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 128))
- {
- _impl_.view_range_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 radius = 17;
- case 17:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 136))
- {
- _impl_.radius_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // double danger_alert = 19;
- case 19:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 153))
- {
- _impl_.danger_alert_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
- ptr += sizeof(double);
- }
- else
- goto handle_unusual;
- continue;
- // int32 score = 20;
- case 20:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 160))
- {
- _impl_.score_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 treat_progress = 21;
- case 21:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 168))
- {
- _impl_.treat_progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 rescue_progress = 22;
- case 22:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 176))
- {
- _impl_.rescue_progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.StudentType student_type = 23;
- case 23:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 184))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_student_type(static_cast<::protobuf::StudentType>(val));
- }
- else
- goto handle_unusual;
- continue;
- // double facing_direction = 24;
- case 24:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 193))
- {
- _impl_.facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
- ptr += sizeof(double);
- }
- else
- goto handle_unusual;
- continue;
- // repeated .protobuf.StudentBuffType buff = 25;
- case 25:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 202))
- {
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_buff(), ptr, ctx);
- CHK_(ptr);
- }
- else if (static_cast<uint8_t>(tag) == 200)
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_add_buff(static_cast<::protobuf::StudentBuffType>(val));
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* MessageOfStudent::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfStudent)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // int32 x = 1;
- if (this->_internal_x() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target);
- }
-
- // int32 y = 2;
- if (this->_internal_y() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target);
- }
-
- // int32 speed = 3;
- if (this->_internal_speed() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_speed(), target);
- }
-
- // int32 determination = 4;
- if (this->_internal_determination() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_determination(), target);
- }
-
- // int32 addiction = 5;
- if (this->_internal_addiction() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(5, this->_internal_addiction(), target);
- }
-
- // repeated double time_until_skill_available = 6;
- if (this->_internal_time_until_skill_available_size() > 0)
- {
- target = stream->WriteFixedPacked(6, _internal_time_until_skill_available(), target);
- }
-
- // .protobuf.PlaceType place = 7;
- if (this->_internal_place() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 7, this->_internal_place(), target
- );
- }
-
- // repeated .protobuf.PropType prop = 8;
- {
- int byte_size = _impl_._prop_cached_byte_size_.load(std::memory_order_relaxed);
- if (byte_size > 0)
- {
- target = stream->WriteEnumPacked(
- 8, _impl_.prop_, byte_size, target
- );
- }
- }
-
- // .protobuf.PlayerState player_state = 9;
- if (this->_internal_player_state() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 9, this->_internal_player_state(), target
- );
- }
-
- // int64 guid = 10;
- if (this->_internal_guid() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt64ToArray(10, this->_internal_guid(), target);
- }
-
- // .protobuf.BulletType bullet_type = 12;
- if (this->_internal_bullet_type() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 12, this->_internal_bullet_type(), target
- );
- }
-
- // int32 learning_speed = 13;
- if (this->_internal_learning_speed() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(13, this->_internal_learning_speed(), target);
- }
-
- // int32 treat_speed = 14;
- if (this->_internal_treat_speed() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(14, this->_internal_treat_speed(), target);
- }
-
- // int64 player_id = 15;
- if (this->_internal_player_id() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt64ToArray(15, this->_internal_player_id(), target);
- }
-
- // int32 view_range = 16;
- if (this->_internal_view_range() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(16, this->_internal_view_range(), target);
- }
-
- // int32 radius = 17;
- if (this->_internal_radius() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(17, this->_internal_radius(), target);
- }
-
- // double danger_alert = 19;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_danger_alert = this->_internal_danger_alert();
- uint64_t raw_danger_alert;
- memcpy(&raw_danger_alert, &tmp_danger_alert, sizeof(tmp_danger_alert));
- if (raw_danger_alert != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteDoubleToArray(19, this->_internal_danger_alert(), target);
- }
-
- // int32 score = 20;
- if (this->_internal_score() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(20, this->_internal_score(), target);
- }
-
- // int32 treat_progress = 21;
- if (this->_internal_treat_progress() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(21, this->_internal_treat_progress(), target);
- }
-
- // int32 rescue_progress = 22;
- if (this->_internal_rescue_progress() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(22, this->_internal_rescue_progress(), target);
- }
-
- // .protobuf.StudentType student_type = 23;
- if (this->_internal_student_type() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 23, this->_internal_student_type(), target
- );
- }
-
- // double facing_direction = 24;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_facing_direction = this->_internal_facing_direction();
- uint64_t raw_facing_direction;
- memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
- if (raw_facing_direction != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteDoubleToArray(24, this->_internal_facing_direction(), target);
- }
-
- // repeated .protobuf.StudentBuffType buff = 25;
- {
- int byte_size = _impl_._buff_cached_byte_size_.load(std::memory_order_relaxed);
- if (byte_size > 0)
- {
- target = stream->WriteEnumPacked(
- 25, _impl_.buff_, byte_size, target
- );
- }
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfStudent)
- return target;
- }
-
- size_t MessageOfStudent::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfStudent)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- // repeated double time_until_skill_available = 6;
- {
- unsigned int count = static_cast<unsigned int>(this->_internal_time_until_skill_available_size());
- size_t data_size = 8UL * count;
- if (data_size > 0)
- {
- total_size += 1 +
- ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
- }
- total_size += data_size;
- }
-
- // repeated .protobuf.PropType prop = 8;
- {
- size_t data_size = 0;
- unsigned int count = static_cast<unsigned int>(this->_internal_prop_size());
- for (unsigned int i = 0; i < count; i++)
- {
- data_size += ::_pbi::WireFormatLite::EnumSize(
- this->_internal_prop(static_cast<int>(i))
- );
- }
- if (data_size > 0)
- {
- total_size += 1 +
- ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
- }
- int cached_size = ::_pbi::ToCachedSize(data_size);
- _impl_._prop_cached_byte_size_.store(cached_size, std::memory_order_relaxed);
- total_size += data_size;
- }
-
- // repeated .protobuf.StudentBuffType buff = 25;
- {
- size_t data_size = 0;
- unsigned int count = static_cast<unsigned int>(this->_internal_buff_size());
- for (unsigned int i = 0; i < count; i++)
- {
- data_size += ::_pbi::WireFormatLite::EnumSize(
- this->_internal_buff(static_cast<int>(i))
- );
- }
- if (data_size > 0)
- {
- total_size += 2 +
- ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
- }
- int cached_size = ::_pbi::ToCachedSize(data_size);
- _impl_._buff_cached_byte_size_.store(cached_size, std::memory_order_relaxed);
- total_size += data_size;
- }
-
- // int32 x = 1;
- if (this->_internal_x() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
- }
-
- // int32 y = 2;
- if (this->_internal_y() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
- }
-
- // int32 speed = 3;
- if (this->_internal_speed() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_speed());
- }
-
- // int32 determination = 4;
- if (this->_internal_determination() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_determination());
- }
-
- // int32 addiction = 5;
- if (this->_internal_addiction() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_addiction());
- }
-
- // .protobuf.PlaceType place = 7;
- if (this->_internal_place() != 0)
- {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_place());
- }
-
- // int64 guid = 10;
- if (this->_internal_guid() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_guid());
- }
-
- // .protobuf.PlayerState player_state = 9;
- if (this->_internal_player_state() != 0)
- {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_player_state());
- }
-
- // .protobuf.BulletType bullet_type = 12;
- if (this->_internal_bullet_type() != 0)
- {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_bullet_type());
- }
-
- // int32 learning_speed = 13;
- if (this->_internal_learning_speed() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_learning_speed());
- }
-
- // int32 treat_speed = 14;
- if (this->_internal_treat_speed() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_treat_speed());
- }
-
- // int64 player_id = 15;
- if (this->_internal_player_id() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id());
- }
-
- // int32 view_range = 16;
- if (this->_internal_view_range() != 0)
- {
- total_size += 2 +
- ::_pbi::WireFormatLite::Int32Size(
- this->_internal_view_range()
- );
- }
-
- // int32 radius = 17;
- if (this->_internal_radius() != 0)
- {
- total_size += 2 +
- ::_pbi::WireFormatLite::Int32Size(
- this->_internal_radius()
- );
- }
-
- // double danger_alert = 19;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_danger_alert = this->_internal_danger_alert();
- uint64_t raw_danger_alert;
- memcpy(&raw_danger_alert, &tmp_danger_alert, sizeof(tmp_danger_alert));
- if (raw_danger_alert != 0)
- {
- total_size += 2 + 8;
- }
-
- // int32 score = 20;
- if (this->_internal_score() != 0)
- {
- total_size += 2 +
- ::_pbi::WireFormatLite::Int32Size(
- this->_internal_score()
- );
- }
-
- // int32 treat_progress = 21;
- if (this->_internal_treat_progress() != 0)
- {
- total_size += 2 +
- ::_pbi::WireFormatLite::Int32Size(
- this->_internal_treat_progress()
- );
- }
-
- // int32 rescue_progress = 22;
- if (this->_internal_rescue_progress() != 0)
- {
- total_size += 2 +
- ::_pbi::WireFormatLite::Int32Size(
- this->_internal_rescue_progress()
- );
- }
-
- // .protobuf.StudentType student_type = 23;
- if (this->_internal_student_type() != 0)
- {
- total_size += 2 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_student_type());
- }
-
- // double facing_direction = 24;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_facing_direction = this->_internal_facing_direction();
- uint64_t raw_facing_direction;
- memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
- if (raw_facing_direction != 0)
- {
- total_size += 2 + 8;
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfStudent::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- MessageOfStudent::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfStudent::GetClassData() const
- {
- return &_class_data_;
- }
-
- void MessageOfStudent::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
- {
- auto* const _this = static_cast<MessageOfStudent*>(&to_msg);
- auto& from = static_cast<const MessageOfStudent&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfStudent)
- GOOGLE_DCHECK_NE(&from, _this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- _this->_impl_.time_until_skill_available_.MergeFrom(from._impl_.time_until_skill_available_);
- _this->_impl_.prop_.MergeFrom(from._impl_.prop_);
- _this->_impl_.buff_.MergeFrom(from._impl_.buff_);
- if (from._internal_x() != 0)
- {
- _this->_internal_set_x(from._internal_x());
- }
- if (from._internal_y() != 0)
- {
- _this->_internal_set_y(from._internal_y());
- }
- if (from._internal_speed() != 0)
- {
- _this->_internal_set_speed(from._internal_speed());
- }
- if (from._internal_determination() != 0)
- {
- _this->_internal_set_determination(from._internal_determination());
- }
- if (from._internal_addiction() != 0)
- {
- _this->_internal_set_addiction(from._internal_addiction());
- }
- if (from._internal_place() != 0)
- {
- _this->_internal_set_place(from._internal_place());
- }
- if (from._internal_guid() != 0)
- {
- _this->_internal_set_guid(from._internal_guid());
- }
- if (from._internal_player_state() != 0)
- {
- _this->_internal_set_player_state(from._internal_player_state());
- }
- if (from._internal_bullet_type() != 0)
- {
- _this->_internal_set_bullet_type(from._internal_bullet_type());
- }
- if (from._internal_learning_speed() != 0)
- {
- _this->_internal_set_learning_speed(from._internal_learning_speed());
- }
- if (from._internal_treat_speed() != 0)
- {
- _this->_internal_set_treat_speed(from._internal_treat_speed());
- }
- if (from._internal_player_id() != 0)
- {
- _this->_internal_set_player_id(from._internal_player_id());
- }
- if (from._internal_view_range() != 0)
- {
- _this->_internal_set_view_range(from._internal_view_range());
- }
- if (from._internal_radius() != 0)
- {
- _this->_internal_set_radius(from._internal_radius());
- }
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_danger_alert = from._internal_danger_alert();
- uint64_t raw_danger_alert;
- memcpy(&raw_danger_alert, &tmp_danger_alert, sizeof(tmp_danger_alert));
- if (raw_danger_alert != 0)
- {
- _this->_internal_set_danger_alert(from._internal_danger_alert());
- }
- if (from._internal_score() != 0)
- {
- _this->_internal_set_score(from._internal_score());
- }
- if (from._internal_treat_progress() != 0)
- {
- _this->_internal_set_treat_progress(from._internal_treat_progress());
- }
- if (from._internal_rescue_progress() != 0)
- {
- _this->_internal_set_rescue_progress(from._internal_rescue_progress());
- }
- if (from._internal_student_type() != 0)
- {
- _this->_internal_set_student_type(from._internal_student_type());
- }
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_facing_direction = from._internal_facing_direction();
- uint64_t raw_facing_direction;
- memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
- if (raw_facing_direction != 0)
- {
- _this->_internal_set_facing_direction(from._internal_facing_direction());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void MessageOfStudent::CopyFrom(const MessageOfStudent& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfStudent)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool MessageOfStudent::IsInitialized() const
- {
- return true;
- }
-
- void MessageOfStudent::InternalSwap(MessageOfStudent* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- _impl_.time_until_skill_available_.InternalSwap(&other->_impl_.time_until_skill_available_);
- _impl_.prop_.InternalSwap(&other->_impl_.prop_);
- _impl_.buff_.InternalSwap(&other->_impl_.buff_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(MessageOfStudent, _impl_.facing_direction_) + sizeof(MessageOfStudent::_impl_.facing_direction_) - PROTOBUF_FIELD_OFFSET(MessageOfStudent, _impl_.x_)>(
- reinterpret_cast<char*>(&_impl_.x_),
- reinterpret_cast<char*>(&other->_impl_.x_)
- );
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfStudent::GetMetadata() const
- {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[0]
- );
- }
-
- // ===================================================================
-
- class MessageOfTricker::_Internal
- {
- public:
- };
-
- MessageOfTricker::MessageOfTricker(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
- {
- SharedCtor(arena, is_message_owned);
- // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfTricker)
- }
- MessageOfTricker::MessageOfTricker(const MessageOfTricker& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- MessageOfTricker* const _this = this;
- (void)_this;
- new (&_impl_) Impl_{
- 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_)*/ {}};
-
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::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_));
- // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfTricker)
- }
-
- inline void MessageOfTricker::SharedCtor(
- ::_pb::Arena* arena, bool is_message_owned
- )
- {
- (void)arena;
- (void)is_message_owned;
- new (&_impl_) Impl_{
- 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_)*/ {}};
- }
-
- MessageOfTricker::~MessageOfTricker()
- {
- // @@protoc_insertion_point(destructor:protobuf.MessageOfTricker)
- if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
- {
- (void)arena;
- return;
- }
- SharedDtor();
- }
-
- inline void MessageOfTricker::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- _impl_.time_until_skill_available_.~RepeatedField();
- _impl_.prop_.~RepeatedField();
- _impl_.buff_.~RepeatedField();
- }
-
- void MessageOfTricker::SetCachedSize(int size) const
- {
- _impl_._cached_size_.Set(size);
- }
-
- void MessageOfTricker::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfTricker)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- _impl_.time_until_skill_available_.Clear();
- _impl_.prop_.Clear();
- _impl_.buff_.Clear();
- ::memset(&_impl_.x_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.facing_direction_) - reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.facing_direction_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* MessageOfTricker::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // int32 x = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
- {
- _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 y = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
- {
- _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 speed = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
- {
- _impl_.speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // repeated double time_until_skill_available = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42))
- {
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_time_until_skill_available(), ptr, ctx);
- CHK_(ptr);
- }
- else if (static_cast<uint8_t>(tag) == 41)
- {
- _internal_add_time_until_skill_available(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr));
- ptr += sizeof(double);
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.PlaceType place = 6;
- case 6:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_place(static_cast<::protobuf::PlaceType>(val));
- }
- else
- goto handle_unusual;
- continue;
- // repeated .protobuf.PropType prop = 7;
- case 7:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58))
- {
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_prop(), ptr, ctx);
- CHK_(ptr);
- }
- else if (static_cast<uint8_t>(tag) == 56)
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_add_prop(static_cast<::protobuf::PropType>(val));
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.TrickerType tricker_type = 8;
- case 8:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_tricker_type(static_cast<::protobuf::TrickerType>(val));
- }
- else
- goto handle_unusual;
- continue;
- // int64 guid = 9;
- case 9:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72))
- {
- _impl_.guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 score = 10;
- case 10:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80))
- {
- _impl_.score_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int64 player_id = 11;
- case 11:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 88))
- {
- _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 view_range = 12;
- case 12:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 96))
- {
- _impl_.view_range_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 radius = 13;
- case 13:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 104))
- {
- _impl_.radius_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.PlayerState player_state = 14;
- case 14:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 112))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_player_state(static_cast<::protobuf::PlayerState>(val));
- }
- else
- goto handle_unusual;
- continue;
- // double trick_desire = 15;
- case 15:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 121))
- {
- _impl_.trick_desire_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
- ptr += sizeof(double);
- }
- else
- goto handle_unusual;
- continue;
- // double class_volume = 16;
- case 16:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 129))
- {
- _impl_.class_volume_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
- ptr += sizeof(double);
- }
- else
- goto handle_unusual;
- continue;
- // double facing_direction = 17;
- case 17:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 137))
- {
- _impl_.facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
- ptr += sizeof(double);
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.BulletType bullet_type = 18;
- case 18:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 144))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_bullet_type(static_cast<::protobuf::BulletType>(val));
- }
- else
- goto handle_unusual;
- continue;
- // repeated .protobuf.TrickerBuffType buff = 19;
- case 19:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 154))
- {
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_buff(), ptr, ctx);
- CHK_(ptr);
- }
- else if (static_cast<uint8_t>(tag) == 152)
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_add_buff(static_cast<::protobuf::TrickerBuffType>(val));
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* MessageOfTricker::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfTricker)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // int32 x = 1;
- if (this->_internal_x() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target);
- }
-
- // int32 y = 2;
- if (this->_internal_y() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target);
- }
-
- // int32 speed = 3;
- if (this->_internal_speed() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_speed(), target);
- }
-
- // repeated double time_until_skill_available = 5;
- if (this->_internal_time_until_skill_available_size() > 0)
- {
- target = stream->WriteFixedPacked(5, _internal_time_until_skill_available(), target);
- }
-
- // .protobuf.PlaceType place = 6;
- if (this->_internal_place() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 6, this->_internal_place(), target
- );
- }
-
- // repeated .protobuf.PropType prop = 7;
- {
- int byte_size = _impl_._prop_cached_byte_size_.load(std::memory_order_relaxed);
- if (byte_size > 0)
- {
- target = stream->WriteEnumPacked(
- 7, _impl_.prop_, byte_size, target
- );
- }
- }
-
- // .protobuf.TrickerType tricker_type = 8;
- if (this->_internal_tricker_type() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 8, this->_internal_tricker_type(), target
- );
- }
-
- // int64 guid = 9;
- if (this->_internal_guid() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt64ToArray(9, this->_internal_guid(), target);
- }
-
- // int32 score = 10;
- if (this->_internal_score() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(10, this->_internal_score(), target);
- }
-
- // int64 player_id = 11;
- if (this->_internal_player_id() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt64ToArray(11, this->_internal_player_id(), target);
- }
-
- // int32 view_range = 12;
- if (this->_internal_view_range() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(12, this->_internal_view_range(), target);
- }
-
- // int32 radius = 13;
- if (this->_internal_radius() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(13, this->_internal_radius(), target);
- }
-
- // .protobuf.PlayerState player_state = 14;
- if (this->_internal_player_state() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 14, this->_internal_player_state(), target
- );
- }
-
- // double trick_desire = 15;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_trick_desire = this->_internal_trick_desire();
- uint64_t raw_trick_desire;
- memcpy(&raw_trick_desire, &tmp_trick_desire, sizeof(tmp_trick_desire));
- if (raw_trick_desire != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteDoubleToArray(15, this->_internal_trick_desire(), target);
- }
-
- // double class_volume = 16;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_class_volume = this->_internal_class_volume();
- uint64_t raw_class_volume;
- memcpy(&raw_class_volume, &tmp_class_volume, sizeof(tmp_class_volume));
- if (raw_class_volume != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteDoubleToArray(16, this->_internal_class_volume(), target);
- }
-
- // double facing_direction = 17;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_facing_direction = this->_internal_facing_direction();
- uint64_t raw_facing_direction;
- memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
- if (raw_facing_direction != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteDoubleToArray(17, this->_internal_facing_direction(), target);
- }
-
- // .protobuf.BulletType bullet_type = 18;
- if (this->_internal_bullet_type() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 18, this->_internal_bullet_type(), target
- );
- }
-
- // repeated .protobuf.TrickerBuffType buff = 19;
- {
- int byte_size = _impl_._buff_cached_byte_size_.load(std::memory_order_relaxed);
- if (byte_size > 0)
- {
- target = stream->WriteEnumPacked(
- 19, _impl_.buff_, byte_size, target
- );
- }
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfTricker)
- return target;
- }
-
- size_t MessageOfTricker::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfTricker)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- // repeated double time_until_skill_available = 5;
- {
- unsigned int count = static_cast<unsigned int>(this->_internal_time_until_skill_available_size());
- size_t data_size = 8UL * count;
- if (data_size > 0)
- {
- total_size += 1 +
- ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
- }
- total_size += data_size;
- }
-
- // repeated .protobuf.PropType prop = 7;
- {
- size_t data_size = 0;
- unsigned int count = static_cast<unsigned int>(this->_internal_prop_size());
- for (unsigned int i = 0; i < count; i++)
- {
- data_size += ::_pbi::WireFormatLite::EnumSize(
- this->_internal_prop(static_cast<int>(i))
- );
- }
- if (data_size > 0)
- {
- total_size += 1 +
- ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
- }
- int cached_size = ::_pbi::ToCachedSize(data_size);
- _impl_._prop_cached_byte_size_.store(cached_size, std::memory_order_relaxed);
- total_size += data_size;
- }
-
- // repeated .protobuf.TrickerBuffType buff = 19;
- {
- size_t data_size = 0;
- unsigned int count = static_cast<unsigned int>(this->_internal_buff_size());
- for (unsigned int i = 0; i < count; i++)
- {
- data_size += ::_pbi::WireFormatLite::EnumSize(
- this->_internal_buff(static_cast<int>(i))
- );
- }
- if (data_size > 0)
- {
- total_size += 2 +
- ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
- }
- int cached_size = ::_pbi::ToCachedSize(data_size);
- _impl_._buff_cached_byte_size_.store(cached_size, std::memory_order_relaxed);
- total_size += data_size;
- }
-
- // int32 x = 1;
- if (this->_internal_x() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
- }
-
- // int32 y = 2;
- if (this->_internal_y() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
- }
-
- // int32 speed = 3;
- if (this->_internal_speed() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_speed());
- }
-
- // .protobuf.PlaceType place = 6;
- if (this->_internal_place() != 0)
- {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_place());
- }
-
- // int64 guid = 9;
- if (this->_internal_guid() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_guid());
- }
-
- // .protobuf.TrickerType tricker_type = 8;
- if (this->_internal_tricker_type() != 0)
- {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_tricker_type());
- }
-
- // int32 score = 10;
- if (this->_internal_score() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_score());
- }
-
- // int64 player_id = 11;
- if (this->_internal_player_id() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id());
- }
-
- // int32 view_range = 12;
- if (this->_internal_view_range() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_view_range());
- }
-
- // int32 radius = 13;
- if (this->_internal_radius() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_radius());
- }
-
- // double trick_desire = 15;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_trick_desire = this->_internal_trick_desire();
- uint64_t raw_trick_desire;
- memcpy(&raw_trick_desire, &tmp_trick_desire, sizeof(tmp_trick_desire));
- if (raw_trick_desire != 0)
- {
- total_size += 1 + 8;
- }
-
- // double class_volume = 16;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_class_volume = this->_internal_class_volume();
- uint64_t raw_class_volume;
- memcpy(&raw_class_volume, &tmp_class_volume, sizeof(tmp_class_volume));
- if (raw_class_volume != 0)
- {
- total_size += 2 + 8;
- }
-
- // .protobuf.PlayerState player_state = 14;
- if (this->_internal_player_state() != 0)
- {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_player_state());
- }
-
- // .protobuf.BulletType bullet_type = 18;
- if (this->_internal_bullet_type() != 0)
- {
- total_size += 2 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_bullet_type());
- }
-
- // double facing_direction = 17;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_facing_direction = this->_internal_facing_direction();
- uint64_t raw_facing_direction;
- memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
- if (raw_facing_direction != 0)
- {
- total_size += 2 + 8;
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfTricker::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- MessageOfTricker::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfTricker::GetClassData() const
- {
- return &_class_data_;
- }
-
- void MessageOfTricker::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
- {
- auto* const _this = static_cast<MessageOfTricker*>(&to_msg);
- auto& from = static_cast<const MessageOfTricker&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfTricker)
- GOOGLE_DCHECK_NE(&from, _this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- _this->_impl_.time_until_skill_available_.MergeFrom(from._impl_.time_until_skill_available_);
- _this->_impl_.prop_.MergeFrom(from._impl_.prop_);
- _this->_impl_.buff_.MergeFrom(from._impl_.buff_);
- if (from._internal_x() != 0)
- {
- _this->_internal_set_x(from._internal_x());
- }
- if (from._internal_y() != 0)
- {
- _this->_internal_set_y(from._internal_y());
- }
- if (from._internal_speed() != 0)
- {
- _this->_internal_set_speed(from._internal_speed());
- }
- if (from._internal_place() != 0)
- {
- _this->_internal_set_place(from._internal_place());
- }
- if (from._internal_guid() != 0)
- {
- _this->_internal_set_guid(from._internal_guid());
- }
- if (from._internal_tricker_type() != 0)
- {
- _this->_internal_set_tricker_type(from._internal_tricker_type());
- }
- if (from._internal_score() != 0)
- {
- _this->_internal_set_score(from._internal_score());
- }
- if (from._internal_player_id() != 0)
- {
- _this->_internal_set_player_id(from._internal_player_id());
- }
- if (from._internal_view_range() != 0)
- {
- _this->_internal_set_view_range(from._internal_view_range());
- }
- if (from._internal_radius() != 0)
- {
- _this->_internal_set_radius(from._internal_radius());
- }
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_trick_desire = from._internal_trick_desire();
- uint64_t raw_trick_desire;
- memcpy(&raw_trick_desire, &tmp_trick_desire, sizeof(tmp_trick_desire));
- if (raw_trick_desire != 0)
- {
- _this->_internal_set_trick_desire(from._internal_trick_desire());
- }
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_class_volume = from._internal_class_volume();
- uint64_t raw_class_volume;
- memcpy(&raw_class_volume, &tmp_class_volume, sizeof(tmp_class_volume));
- if (raw_class_volume != 0)
- {
- _this->_internal_set_class_volume(from._internal_class_volume());
- }
- if (from._internal_player_state() != 0)
- {
- _this->_internal_set_player_state(from._internal_player_state());
- }
- if (from._internal_bullet_type() != 0)
- {
- _this->_internal_set_bullet_type(from._internal_bullet_type());
- }
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_facing_direction = from._internal_facing_direction();
- uint64_t raw_facing_direction;
- memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
- if (raw_facing_direction != 0)
- {
- _this->_internal_set_facing_direction(from._internal_facing_direction());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void MessageOfTricker::CopyFrom(const MessageOfTricker& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfTricker)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool MessageOfTricker::IsInitialized() const
- {
- return true;
- }
-
- void MessageOfTricker::InternalSwap(MessageOfTricker* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- _impl_.time_until_skill_available_.InternalSwap(&other->_impl_.time_until_skill_available_);
- _impl_.prop_.InternalSwap(&other->_impl_.prop_);
- _impl_.buff_.InternalSwap(&other->_impl_.buff_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(MessageOfTricker, _impl_.facing_direction_) + sizeof(MessageOfTricker::_impl_.facing_direction_) - PROTOBUF_FIELD_OFFSET(MessageOfTricker, _impl_.x_)>(
- reinterpret_cast<char*>(&_impl_.x_),
- reinterpret_cast<char*>(&other->_impl_.x_)
- );
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfTricker::GetMetadata() const
- {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[1]
- );
- }
-
- // ===================================================================
-
- class MessageOfBullet::_Internal
- {
- public:
- };
-
- MessageOfBullet::MessageOfBullet(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
- {
- SharedCtor(arena, is_message_owned);
- // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfBullet)
- }
- MessageOfBullet::MessageOfBullet(const MessageOfBullet& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- MessageOfBullet* const _this = this;
- (void)_this;
- new (&_impl_) Impl_{
- 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_)*/ {}};
-
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::memcpy(&_impl_.type_, &from._impl_.type_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.speed_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.speed_));
- // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfBullet)
- }
-
- inline void MessageOfBullet::SharedCtor(
- ::_pb::Arena* arena, bool is_message_owned
- )
- {
- (void)arena;
- (void)is_message_owned;
- new (&_impl_) Impl_{
- 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_)*/ {}};
- }
-
- MessageOfBullet::~MessageOfBullet()
- {
- // @@protoc_insertion_point(destructor:protobuf.MessageOfBullet)
- if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
- {
- (void)arena;
- return;
- }
- SharedDtor();
- }
-
- inline void MessageOfBullet::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- }
-
- void MessageOfBullet::SetCachedSize(int size) const
- {
- _impl_._cached_size_.Set(size);
- }
-
- void MessageOfBullet::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfBullet)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- ::memset(&_impl_.type_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.speed_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.speed_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* MessageOfBullet::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // .protobuf.BulletType type = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_type(static_cast<::protobuf::BulletType>(val));
- }
- else
- goto handle_unusual;
- continue;
- // int32 x = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
- {
- _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 y = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
- {
- _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // double facing_direction = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 33))
- {
- _impl_.facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
- ptr += sizeof(double);
- }
- else
- goto handle_unusual;
- continue;
- // int64 guid = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40))
- {
- _impl_.guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.PlayerType team = 6;
- case 6:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_team(static_cast<::protobuf::PlayerType>(val));
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.PlaceType place = 7;
- case 7:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_place(static_cast<::protobuf::PlaceType>(val));
- }
- else
- goto handle_unusual;
- continue;
- // double bomb_range = 8;
- case 8:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 65))
- {
- _impl_.bomb_range_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
- ptr += sizeof(double);
- }
- else
- goto handle_unusual;
- continue;
- // int32 speed = 9;
- case 9:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72))
- {
- _impl_.speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* MessageOfBullet::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfBullet)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // .protobuf.BulletType type = 1;
- if (this->_internal_type() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 1, this->_internal_type(), target
- );
- }
-
- // int32 x = 2;
- if (this->_internal_x() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target);
- }
-
- // int32 y = 3;
- if (this->_internal_y() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target);
- }
-
- // double facing_direction = 4;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_facing_direction = this->_internal_facing_direction();
- uint64_t raw_facing_direction;
- memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
- if (raw_facing_direction != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target);
- }
-
- // int64 guid = 5;
- if (this->_internal_guid() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt64ToArray(5, this->_internal_guid(), target);
- }
-
- // .protobuf.PlayerType team = 6;
- if (this->_internal_team() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 6, this->_internal_team(), target
- );
- }
-
- // .protobuf.PlaceType place = 7;
- if (this->_internal_place() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 7, this->_internal_place(), target
- );
- }
-
- // double bomb_range = 8;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_bomb_range = this->_internal_bomb_range();
- uint64_t raw_bomb_range;
- memcpy(&raw_bomb_range, &tmp_bomb_range, sizeof(tmp_bomb_range));
- if (raw_bomb_range != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteDoubleToArray(8, this->_internal_bomb_range(), target);
- }
-
- // int32 speed = 9;
- if (this->_internal_speed() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(9, this->_internal_speed(), target);
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfBullet)
- return target;
- }
-
- size_t MessageOfBullet::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfBullet)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- // .protobuf.BulletType type = 1;
- if (this->_internal_type() != 0)
- {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_type());
- }
-
- // int32 x = 2;
- if (this->_internal_x() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
- }
-
- // double facing_direction = 4;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_facing_direction = this->_internal_facing_direction();
- uint64_t raw_facing_direction;
- memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
- if (raw_facing_direction != 0)
- {
- total_size += 1 + 8;
- }
-
- // int32 y = 3;
- if (this->_internal_y() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
- }
-
- // .protobuf.PlayerType team = 6;
- if (this->_internal_team() != 0)
- {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_team());
- }
-
- // int64 guid = 5;
- if (this->_internal_guid() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_guid());
- }
-
- // double bomb_range = 8;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_bomb_range = this->_internal_bomb_range();
- uint64_t raw_bomb_range;
- memcpy(&raw_bomb_range, &tmp_bomb_range, sizeof(tmp_bomb_range));
- if (raw_bomb_range != 0)
- {
- total_size += 1 + 8;
- }
-
- // .protobuf.PlaceType place = 7;
- if (this->_internal_place() != 0)
- {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_place());
- }
-
- // int32 speed = 9;
- if (this->_internal_speed() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_speed());
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfBullet::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- MessageOfBullet::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfBullet::GetClassData() const
- {
- return &_class_data_;
- }
-
- void MessageOfBullet::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
- {
- auto* const _this = static_cast<MessageOfBullet*>(&to_msg);
- auto& from = static_cast<const MessageOfBullet&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfBullet)
- GOOGLE_DCHECK_NE(&from, _this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- if (from._internal_type() != 0)
- {
- _this->_internal_set_type(from._internal_type());
- }
- if (from._internal_x() != 0)
- {
- _this->_internal_set_x(from._internal_x());
- }
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_facing_direction = from._internal_facing_direction();
- uint64_t raw_facing_direction;
- memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
- if (raw_facing_direction != 0)
- {
- _this->_internal_set_facing_direction(from._internal_facing_direction());
- }
- if (from._internal_y() != 0)
- {
- _this->_internal_set_y(from._internal_y());
- }
- if (from._internal_team() != 0)
- {
- _this->_internal_set_team(from._internal_team());
- }
- if (from._internal_guid() != 0)
- {
- _this->_internal_set_guid(from._internal_guid());
- }
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_bomb_range = from._internal_bomb_range();
- uint64_t raw_bomb_range;
- memcpy(&raw_bomb_range, &tmp_bomb_range, sizeof(tmp_bomb_range));
- if (raw_bomb_range != 0)
- {
- _this->_internal_set_bomb_range(from._internal_bomb_range());
- }
- if (from._internal_place() != 0)
- {
- _this->_internal_set_place(from._internal_place());
- }
- if (from._internal_speed() != 0)
- {
- _this->_internal_set_speed(from._internal_speed());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void MessageOfBullet::CopyFrom(const MessageOfBullet& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfBullet)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool MessageOfBullet::IsInitialized() const
- {
- return true;
- }
-
- void MessageOfBullet::InternalSwap(MessageOfBullet* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(MessageOfBullet, _impl_.speed_) + sizeof(MessageOfBullet::_impl_.speed_) - PROTOBUF_FIELD_OFFSET(MessageOfBullet, _impl_.type_)>(
- reinterpret_cast<char*>(&_impl_.type_),
- reinterpret_cast<char*>(&other->_impl_.type_)
- );
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfBullet::GetMetadata() const
- {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[2]
- );
- }
-
- // ===================================================================
-
- class MessageOfBombedBullet::_Internal
- {
- public:
- };
-
- MessageOfBombedBullet::MessageOfBombedBullet(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
- {
- SharedCtor(arena, is_message_owned);
- // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfBombedBullet)
- }
- MessageOfBombedBullet::MessageOfBombedBullet(const MessageOfBombedBullet& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- MessageOfBombedBullet* const _this = this;
- (void)_this;
- new (&_impl_) Impl_{
- 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_)*/ {}};
-
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::memcpy(&_impl_.type_, &from._impl_.type_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.y_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.y_));
- // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfBombedBullet)
- }
-
- inline void MessageOfBombedBullet::SharedCtor(
- ::_pb::Arena* arena, bool is_message_owned
- )
- {
- (void)arena;
- (void)is_message_owned;
- new (&_impl_) Impl_{
- 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_)*/ {}};
- }
-
- MessageOfBombedBullet::~MessageOfBombedBullet()
- {
- // @@protoc_insertion_point(destructor:protobuf.MessageOfBombedBullet)
- if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
- {
- (void)arena;
- return;
- }
- SharedDtor();
- }
-
- inline void MessageOfBombedBullet::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- }
-
- void MessageOfBombedBullet::SetCachedSize(int size) const
- {
- _impl_._cached_size_.Set(size);
- }
-
- void MessageOfBombedBullet::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfBombedBullet)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- ::memset(&_impl_.type_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.y_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.y_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* MessageOfBombedBullet::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // .protobuf.BulletType type = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_type(static_cast<::protobuf::BulletType>(val));
- }
- else
- goto handle_unusual;
- continue;
- // int32 x = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
- {
- _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 y = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
- {
- _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // double facing_direction = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 33))
- {
- _impl_.facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
- ptr += sizeof(double);
- }
- else
- goto handle_unusual;
- continue;
- // int64 mapping_id = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40))
- {
- _impl_.mapping_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // double bomb_range = 6;
- case 6:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 49))
- {
- _impl_.bomb_range_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
- ptr += sizeof(double);
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* MessageOfBombedBullet::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfBombedBullet)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // .protobuf.BulletType type = 1;
- if (this->_internal_type() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 1, this->_internal_type(), target
- );
- }
-
- // int32 x = 2;
- if (this->_internal_x() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target);
- }
-
- // int32 y = 3;
- if (this->_internal_y() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target);
- }
-
- // double facing_direction = 4;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_facing_direction = this->_internal_facing_direction();
- uint64_t raw_facing_direction;
- memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
- if (raw_facing_direction != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target);
- }
-
- // int64 mapping_id = 5;
- if (this->_internal_mapping_id() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt64ToArray(5, this->_internal_mapping_id(), target);
- }
-
- // double bomb_range = 6;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_bomb_range = this->_internal_bomb_range();
- uint64_t raw_bomb_range;
- memcpy(&raw_bomb_range, &tmp_bomb_range, sizeof(tmp_bomb_range));
- if (raw_bomb_range != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteDoubleToArray(6, this->_internal_bomb_range(), target);
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfBombedBullet)
- return target;
- }
-
- size_t MessageOfBombedBullet::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfBombedBullet)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- // .protobuf.BulletType type = 1;
- if (this->_internal_type() != 0)
- {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_type());
- }
-
- // int32 x = 2;
- if (this->_internal_x() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
- }
-
- // double facing_direction = 4;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_facing_direction = this->_internal_facing_direction();
- uint64_t raw_facing_direction;
- memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
- if (raw_facing_direction != 0)
- {
- total_size += 1 + 8;
- }
-
- // int64 mapping_id = 5;
- if (this->_internal_mapping_id() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_mapping_id());
- }
-
- // double bomb_range = 6;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_bomb_range = this->_internal_bomb_range();
- uint64_t raw_bomb_range;
- memcpy(&raw_bomb_range, &tmp_bomb_range, sizeof(tmp_bomb_range));
- if (raw_bomb_range != 0)
- {
- total_size += 1 + 8;
- }
-
- // int32 y = 3;
- if (this->_internal_y() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfBombedBullet::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- MessageOfBombedBullet::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfBombedBullet::GetClassData() const
- {
- return &_class_data_;
- }
-
- void MessageOfBombedBullet::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
- {
- auto* const _this = static_cast<MessageOfBombedBullet*>(&to_msg);
- auto& from = static_cast<const MessageOfBombedBullet&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfBombedBullet)
- GOOGLE_DCHECK_NE(&from, _this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- if (from._internal_type() != 0)
- {
- _this->_internal_set_type(from._internal_type());
- }
- if (from._internal_x() != 0)
- {
- _this->_internal_set_x(from._internal_x());
- }
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_facing_direction = from._internal_facing_direction();
- uint64_t raw_facing_direction;
- memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
- if (raw_facing_direction != 0)
- {
- _this->_internal_set_facing_direction(from._internal_facing_direction());
- }
- if (from._internal_mapping_id() != 0)
- {
- _this->_internal_set_mapping_id(from._internal_mapping_id());
- }
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_bomb_range = from._internal_bomb_range();
- uint64_t raw_bomb_range;
- memcpy(&raw_bomb_range, &tmp_bomb_range, sizeof(tmp_bomb_range));
- if (raw_bomb_range != 0)
- {
- _this->_internal_set_bomb_range(from._internal_bomb_range());
- }
- if (from._internal_y() != 0)
- {
- _this->_internal_set_y(from._internal_y());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void MessageOfBombedBullet::CopyFrom(const MessageOfBombedBullet& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfBombedBullet)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool MessageOfBombedBullet::IsInitialized() const
- {
- return true;
- }
-
- void MessageOfBombedBullet::InternalSwap(MessageOfBombedBullet* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(MessageOfBombedBullet, _impl_.y_) + sizeof(MessageOfBombedBullet::_impl_.y_) - PROTOBUF_FIELD_OFFSET(MessageOfBombedBullet, _impl_.type_)>(
- reinterpret_cast<char*>(&_impl_.type_),
- reinterpret_cast<char*>(&other->_impl_.type_)
- );
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfBombedBullet::GetMetadata() const
- {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[3]
- );
- }
-
- // ===================================================================
-
- class MessageOfProp::_Internal
- {
- public:
- };
-
- MessageOfProp::MessageOfProp(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
- {
- SharedCtor(arena, is_message_owned);
- // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfProp)
- }
- MessageOfProp::MessageOfProp(const MessageOfProp& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- MessageOfProp* const _this = this;
- (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.type_){}, decltype(_impl_.x_){}, decltype(_impl_.facing_direction_){}, decltype(_impl_.y_){}, decltype(_impl_.place_){}, decltype(_impl_.guid_){}, /*decltype(_impl_._cached_size_)*/ {}};
-
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::memcpy(&_impl_.type_, &from._impl_.type_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.guid_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.guid_));
- // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfProp)
- }
-
- inline void MessageOfProp::SharedCtor(
- ::_pb::Arena* arena, bool is_message_owned
- )
- {
- (void)arena;
- (void)is_message_owned;
- new (&_impl_) Impl_{
- 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_)*/ {}};
- }
-
- MessageOfProp::~MessageOfProp()
- {
- // @@protoc_insertion_point(destructor:protobuf.MessageOfProp)
- if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
- {
- (void)arena;
- return;
- }
- SharedDtor();
- }
-
- inline void MessageOfProp::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- }
-
- void MessageOfProp::SetCachedSize(int size) const
- {
- _impl_._cached_size_.Set(size);
- }
-
- void MessageOfProp::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfProp)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- ::memset(&_impl_.type_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.guid_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.guid_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* MessageOfProp::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // .protobuf.PropType type = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_type(static_cast<::protobuf::PropType>(val));
- }
- else
- goto handle_unusual;
- continue;
- // int32 x = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
- {
- _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 y = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
- {
- _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // double facing_direction = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 33))
- {
- _impl_.facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
- ptr += sizeof(double);
- }
- else
- goto handle_unusual;
- continue;
- // int64 guid = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40))
- {
- _impl_.guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.PlaceType place = 6;
- case 6:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_place(static_cast<::protobuf::PlaceType>(val));
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* MessageOfProp::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfProp)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // .protobuf.PropType type = 1;
- if (this->_internal_type() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 1, this->_internal_type(), target
- );
- }
-
- // int32 x = 2;
- if (this->_internal_x() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target);
- }
-
- // int32 y = 3;
- if (this->_internal_y() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target);
- }
-
- // double facing_direction = 4;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_facing_direction = this->_internal_facing_direction();
- uint64_t raw_facing_direction;
- memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
- if (raw_facing_direction != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target);
- }
-
- // int64 guid = 5;
- if (this->_internal_guid() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt64ToArray(5, this->_internal_guid(), target);
- }
-
- // .protobuf.PlaceType place = 6;
- if (this->_internal_place() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 6, this->_internal_place(), target
- );
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfProp)
- return target;
- }
-
- size_t MessageOfProp::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfProp)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- // .protobuf.PropType type = 1;
- if (this->_internal_type() != 0)
- {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_type());
- }
-
- // int32 x = 2;
- if (this->_internal_x() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
- }
-
- // double facing_direction = 4;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_facing_direction = this->_internal_facing_direction();
- uint64_t raw_facing_direction;
- memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
- if (raw_facing_direction != 0)
- {
- total_size += 1 + 8;
- }
-
- // int32 y = 3;
- if (this->_internal_y() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
- }
-
- // .protobuf.PlaceType place = 6;
- if (this->_internal_place() != 0)
- {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_place());
- }
-
- // int64 guid = 5;
- if (this->_internal_guid() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_guid());
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfProp::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- MessageOfProp::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfProp::GetClassData() const
- {
- return &_class_data_;
- }
-
- void MessageOfProp::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
- {
- auto* const _this = static_cast<MessageOfProp*>(&to_msg);
- auto& from = static_cast<const MessageOfProp&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfProp)
- GOOGLE_DCHECK_NE(&from, _this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- if (from._internal_type() != 0)
- {
- _this->_internal_set_type(from._internal_type());
- }
- if (from._internal_x() != 0)
- {
- _this->_internal_set_x(from._internal_x());
- }
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_facing_direction = from._internal_facing_direction();
- uint64_t raw_facing_direction;
- memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
- if (raw_facing_direction != 0)
- {
- _this->_internal_set_facing_direction(from._internal_facing_direction());
- }
- if (from._internal_y() != 0)
- {
- _this->_internal_set_y(from._internal_y());
- }
- if (from._internal_place() != 0)
- {
- _this->_internal_set_place(from._internal_place());
- }
- if (from._internal_guid() != 0)
- {
- _this->_internal_set_guid(from._internal_guid());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void MessageOfProp::CopyFrom(const MessageOfProp& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfProp)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool MessageOfProp::IsInitialized() const
- {
- return true;
- }
-
- void MessageOfProp::InternalSwap(MessageOfProp* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(MessageOfProp, _impl_.guid_) + sizeof(MessageOfProp::_impl_.guid_) - PROTOBUF_FIELD_OFFSET(MessageOfProp, _impl_.type_)>(
- reinterpret_cast<char*>(&_impl_.type_),
- reinterpret_cast<char*>(&other->_impl_.type_)
- );
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfProp::GetMetadata() const
- {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[4]
- );
- }
-
- // ===================================================================
-
- class MessageOfPickedProp::_Internal
- {
- public:
- };
-
- MessageOfPickedProp::MessageOfPickedProp(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
- {
- SharedCtor(arena, is_message_owned);
- // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfPickedProp)
- }
- MessageOfPickedProp::MessageOfPickedProp(const MessageOfPickedProp& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- MessageOfPickedProp* const _this = this;
- (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.type_){}, decltype(_impl_.x_){}, decltype(_impl_.facing_direction_){}, decltype(_impl_.mapping_id_){}, decltype(_impl_.y_){}, /*decltype(_impl_._cached_size_)*/ {}};
-
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::memcpy(&_impl_.type_, &from._impl_.type_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.y_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.y_));
- // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfPickedProp)
- }
-
- inline void MessageOfPickedProp::SharedCtor(
- ::_pb::Arena* arena, bool is_message_owned
- )
- {
- (void)arena;
- (void)is_message_owned;
- new (&_impl_) Impl_{
- 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_)*/ {}};
- }
-
- MessageOfPickedProp::~MessageOfPickedProp()
- {
- // @@protoc_insertion_point(destructor:protobuf.MessageOfPickedProp)
- if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
- {
- (void)arena;
- return;
- }
- SharedDtor();
- }
-
- inline void MessageOfPickedProp::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- }
-
- void MessageOfPickedProp::SetCachedSize(int size) const
- {
- _impl_._cached_size_.Set(size);
- }
-
- void MessageOfPickedProp::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfPickedProp)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- ::memset(&_impl_.type_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.y_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.y_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* MessageOfPickedProp::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // .protobuf.PropType type = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_type(static_cast<::protobuf::PropType>(val));
- }
- else
- goto handle_unusual;
- continue;
- // int32 x = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
- {
- _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 y = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
- {
- _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // double facing_direction = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 33))
- {
- _impl_.facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
- ptr += sizeof(double);
- }
- else
- goto handle_unusual;
- continue;
- // int64 mapping_id = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40))
- {
- _impl_.mapping_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* MessageOfPickedProp::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfPickedProp)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // .protobuf.PropType type = 1;
- if (this->_internal_type() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 1, this->_internal_type(), target
- );
- }
-
- // int32 x = 2;
- if (this->_internal_x() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target);
- }
-
- // int32 y = 3;
- if (this->_internal_y() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target);
- }
-
- // double facing_direction = 4;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_facing_direction = this->_internal_facing_direction();
- uint64_t raw_facing_direction;
- memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
- if (raw_facing_direction != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target);
- }
-
- // int64 mapping_id = 5;
- if (this->_internal_mapping_id() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt64ToArray(5, this->_internal_mapping_id(), target);
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfPickedProp)
- return target;
- }
-
- size_t MessageOfPickedProp::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfPickedProp)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- // .protobuf.PropType type = 1;
- if (this->_internal_type() != 0)
- {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_type());
- }
-
- // int32 x = 2;
- if (this->_internal_x() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
- }
-
- // double facing_direction = 4;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_facing_direction = this->_internal_facing_direction();
- uint64_t raw_facing_direction;
- memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
- if (raw_facing_direction != 0)
- {
- total_size += 1 + 8;
- }
-
- // int64 mapping_id = 5;
- if (this->_internal_mapping_id() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_mapping_id());
- }
-
- // int32 y = 3;
- if (this->_internal_y() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfPickedProp::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- MessageOfPickedProp::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfPickedProp::GetClassData() const
- {
- return &_class_data_;
- }
-
- void MessageOfPickedProp::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
- {
- auto* const _this = static_cast<MessageOfPickedProp*>(&to_msg);
- auto& from = static_cast<const MessageOfPickedProp&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfPickedProp)
- GOOGLE_DCHECK_NE(&from, _this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- if (from._internal_type() != 0)
- {
- _this->_internal_set_type(from._internal_type());
- }
- if (from._internal_x() != 0)
- {
- _this->_internal_set_x(from._internal_x());
- }
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_facing_direction = from._internal_facing_direction();
- uint64_t raw_facing_direction;
- memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
- if (raw_facing_direction != 0)
- {
- _this->_internal_set_facing_direction(from._internal_facing_direction());
- }
- if (from._internal_mapping_id() != 0)
- {
- _this->_internal_set_mapping_id(from._internal_mapping_id());
- }
- if (from._internal_y() != 0)
- {
- _this->_internal_set_y(from._internal_y());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void MessageOfPickedProp::CopyFrom(const MessageOfPickedProp& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfPickedProp)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool MessageOfPickedProp::IsInitialized() const
- {
- return true;
- }
-
- void MessageOfPickedProp::InternalSwap(MessageOfPickedProp* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(MessageOfPickedProp, _impl_.y_) + sizeof(MessageOfPickedProp::_impl_.y_) - PROTOBUF_FIELD_OFFSET(MessageOfPickedProp, _impl_.type_)>(
- reinterpret_cast<char*>(&_impl_.type_),
- reinterpret_cast<char*>(&other->_impl_.type_)
- );
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfPickedProp::GetMetadata() const
- {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[5]
- );
- }
-
- // ===================================================================
-
- class MessageOfClassroom::_Internal
- {
- public:
- };
-
- MessageOfClassroom::MessageOfClassroom(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
- {
- SharedCtor(arena, is_message_owned);
- // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfClassroom)
- }
- MessageOfClassroom::MessageOfClassroom(const MessageOfClassroom& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- MessageOfClassroom* const _this = this;
- (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.x_){}, decltype(_impl_.y_){}, decltype(_impl_.progress_){}, /*decltype(_impl_._cached_size_)*/ {}};
-
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::memcpy(&_impl_.x_, &from._impl_.x_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.progress_) - reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.progress_));
- // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfClassroom)
- }
-
- inline void MessageOfClassroom::SharedCtor(
- ::_pb::Arena* arena, bool is_message_owned
- )
- {
- (void)arena;
- (void)is_message_owned;
- new (&_impl_) Impl_{
- decltype(_impl_.x_){0}, decltype(_impl_.y_){0}, decltype(_impl_.progress_){0}, /*decltype(_impl_._cached_size_)*/ {}};
- }
-
- MessageOfClassroom::~MessageOfClassroom()
- {
- // @@protoc_insertion_point(destructor:protobuf.MessageOfClassroom)
- if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
- {
- (void)arena;
- return;
- }
- SharedDtor();
- }
-
- inline void MessageOfClassroom::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- }
-
- void MessageOfClassroom::SetCachedSize(int size) const
- {
- _impl_._cached_size_.Set(size);
- }
-
- void MessageOfClassroom::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfClassroom)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- ::memset(&_impl_.x_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.progress_) - reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.progress_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* MessageOfClassroom::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // int32 x = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
- {
- _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 y = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
- {
- _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 progress = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
- {
- _impl_.progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* MessageOfClassroom::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfClassroom)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // int32 x = 1;
- if (this->_internal_x() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target);
- }
-
- // int32 y = 2;
- if (this->_internal_y() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target);
- }
-
- // int32 progress = 3;
- if (this->_internal_progress() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_progress(), target);
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfClassroom)
- return target;
- }
-
- size_t MessageOfClassroom::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfClassroom)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- // int32 x = 1;
- if (this->_internal_x() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
- }
-
- // int32 y = 2;
- if (this->_internal_y() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
- }
-
- // int32 progress = 3;
- if (this->_internal_progress() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_progress());
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfClassroom::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- MessageOfClassroom::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfClassroom::GetClassData() const
- {
- return &_class_data_;
- }
-
- void MessageOfClassroom::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
- {
- auto* const _this = static_cast<MessageOfClassroom*>(&to_msg);
- auto& from = static_cast<const MessageOfClassroom&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfClassroom)
- GOOGLE_DCHECK_NE(&from, _this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- if (from._internal_x() != 0)
- {
- _this->_internal_set_x(from._internal_x());
- }
- if (from._internal_y() != 0)
- {
- _this->_internal_set_y(from._internal_y());
- }
- if (from._internal_progress() != 0)
- {
- _this->_internal_set_progress(from._internal_progress());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void MessageOfClassroom::CopyFrom(const MessageOfClassroom& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfClassroom)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool MessageOfClassroom::IsInitialized() const
- {
- return true;
- }
-
- void MessageOfClassroom::InternalSwap(MessageOfClassroom* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(MessageOfClassroom, _impl_.progress_) + sizeof(MessageOfClassroom::_impl_.progress_) - PROTOBUF_FIELD_OFFSET(MessageOfClassroom, _impl_.x_)>(
- reinterpret_cast<char*>(&_impl_.x_),
- reinterpret_cast<char*>(&other->_impl_.x_)
- );
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfClassroom::GetMetadata() const
- {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[6]
- );
- }
-
- // ===================================================================
-
- class MessageOfGate::_Internal
- {
- public:
- };
-
- MessageOfGate::MessageOfGate(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
- {
- SharedCtor(arena, is_message_owned);
- // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfGate)
- }
- MessageOfGate::MessageOfGate(const MessageOfGate& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- MessageOfGate* const _this = this;
- (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.x_){}, decltype(_impl_.y_){}, decltype(_impl_.progress_){}, /*decltype(_impl_._cached_size_)*/ {}};
-
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::memcpy(&_impl_.x_, &from._impl_.x_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.progress_) - reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.progress_));
- // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfGate)
- }
-
- inline void MessageOfGate::SharedCtor(
- ::_pb::Arena* arena, bool is_message_owned
- )
- {
- (void)arena;
- (void)is_message_owned;
- new (&_impl_) Impl_{
- decltype(_impl_.x_){0}, decltype(_impl_.y_){0}, decltype(_impl_.progress_){0}, /*decltype(_impl_._cached_size_)*/ {}};
- }
-
- MessageOfGate::~MessageOfGate()
- {
- // @@protoc_insertion_point(destructor:protobuf.MessageOfGate)
- if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
- {
- (void)arena;
- return;
- }
- SharedDtor();
- }
-
- inline void MessageOfGate::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- }
-
- void MessageOfGate::SetCachedSize(int size) const
- {
- _impl_._cached_size_.Set(size);
- }
-
- void MessageOfGate::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfGate)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- ::memset(&_impl_.x_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.progress_) - reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.progress_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* MessageOfGate::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // int32 x = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
- {
- _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 y = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
- {
- _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 progress = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
- {
- _impl_.progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* MessageOfGate::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfGate)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // int32 x = 1;
- if (this->_internal_x() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target);
- }
-
- // int32 y = 2;
- if (this->_internal_y() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target);
- }
-
- // int32 progress = 3;
- if (this->_internal_progress() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_progress(), target);
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfGate)
- return target;
- }
-
- size_t MessageOfGate::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfGate)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- // int32 x = 1;
- if (this->_internal_x() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
- }
-
- // int32 y = 2;
- if (this->_internal_y() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
- }
-
- // int32 progress = 3;
- if (this->_internal_progress() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_progress());
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfGate::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- MessageOfGate::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfGate::GetClassData() const
- {
- return &_class_data_;
- }
-
- void MessageOfGate::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
- {
- auto* const _this = static_cast<MessageOfGate*>(&to_msg);
- auto& from = static_cast<const MessageOfGate&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfGate)
- GOOGLE_DCHECK_NE(&from, _this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- if (from._internal_x() != 0)
- {
- _this->_internal_set_x(from._internal_x());
- }
- if (from._internal_y() != 0)
- {
- _this->_internal_set_y(from._internal_y());
- }
- if (from._internal_progress() != 0)
- {
- _this->_internal_set_progress(from._internal_progress());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void MessageOfGate::CopyFrom(const MessageOfGate& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfGate)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool MessageOfGate::IsInitialized() const
- {
- return true;
- }
-
- void MessageOfGate::InternalSwap(MessageOfGate* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(MessageOfGate, _impl_.progress_) + sizeof(MessageOfGate::_impl_.progress_) - PROTOBUF_FIELD_OFFSET(MessageOfGate, _impl_.x_)>(
- reinterpret_cast<char*>(&_impl_.x_),
- reinterpret_cast<char*>(&other->_impl_.x_)
- );
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfGate::GetMetadata() const
- {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[7]
- );
- }
-
- // ===================================================================
-
- class MessageOfHiddenGate::_Internal
- {
- public:
- };
-
- MessageOfHiddenGate::MessageOfHiddenGate(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
- {
- SharedCtor(arena, is_message_owned);
- // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfHiddenGate)
- }
- MessageOfHiddenGate::MessageOfHiddenGate(const MessageOfHiddenGate& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- MessageOfHiddenGate* const _this = this;
- (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.x_){}, decltype(_impl_.y_){}, decltype(_impl_.opened_){}, /*decltype(_impl_._cached_size_)*/ {}};
-
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::memcpy(&_impl_.x_, &from._impl_.x_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.opened_) - reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.opened_));
- // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfHiddenGate)
- }
-
- inline void MessageOfHiddenGate::SharedCtor(
- ::_pb::Arena* arena, bool is_message_owned
- )
- {
- (void)arena;
- (void)is_message_owned;
- new (&_impl_) Impl_{
- decltype(_impl_.x_){0}, decltype(_impl_.y_){0}, decltype(_impl_.opened_){false}, /*decltype(_impl_._cached_size_)*/ {}};
- }
-
- MessageOfHiddenGate::~MessageOfHiddenGate()
- {
- // @@protoc_insertion_point(destructor:protobuf.MessageOfHiddenGate)
- if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
- {
- (void)arena;
- return;
- }
- SharedDtor();
- }
-
- inline void MessageOfHiddenGate::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- }
-
- void MessageOfHiddenGate::SetCachedSize(int size) const
- {
- _impl_._cached_size_.Set(size);
- }
-
- void MessageOfHiddenGate::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfHiddenGate)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- ::memset(&_impl_.x_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.opened_) - reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.opened_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* MessageOfHiddenGate::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // int32 x = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
- {
- _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 y = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
- {
- _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // bool opened = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
- {
- _impl_.opened_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* MessageOfHiddenGate::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfHiddenGate)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // int32 x = 1;
- if (this->_internal_x() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target);
- }
-
- // int32 y = 2;
- if (this->_internal_y() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target);
- }
-
- // bool opened = 3;
- if (this->_internal_opened() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_opened(), target);
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfHiddenGate)
- return target;
- }
-
- size_t MessageOfHiddenGate::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfHiddenGate)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- // int32 x = 1;
- if (this->_internal_x() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
- }
-
- // int32 y = 2;
- if (this->_internal_y() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
- }
-
- // bool opened = 3;
- if (this->_internal_opened() != 0)
- {
- total_size += 1 + 1;
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfHiddenGate::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- MessageOfHiddenGate::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfHiddenGate::GetClassData() const
- {
- return &_class_data_;
- }
-
- void MessageOfHiddenGate::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
- {
- auto* const _this = static_cast<MessageOfHiddenGate*>(&to_msg);
- auto& from = static_cast<const MessageOfHiddenGate&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfHiddenGate)
- GOOGLE_DCHECK_NE(&from, _this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- if (from._internal_x() != 0)
- {
- _this->_internal_set_x(from._internal_x());
- }
- if (from._internal_y() != 0)
- {
- _this->_internal_set_y(from._internal_y());
- }
- if (from._internal_opened() != 0)
- {
- _this->_internal_set_opened(from._internal_opened());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void MessageOfHiddenGate::CopyFrom(const MessageOfHiddenGate& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfHiddenGate)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool MessageOfHiddenGate::IsInitialized() const
- {
- return true;
- }
-
- void MessageOfHiddenGate::InternalSwap(MessageOfHiddenGate* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(MessageOfHiddenGate, _impl_.opened_) + sizeof(MessageOfHiddenGate::_impl_.opened_) - PROTOBUF_FIELD_OFFSET(MessageOfHiddenGate, _impl_.x_)>(
- reinterpret_cast<char*>(&_impl_.x_),
- reinterpret_cast<char*>(&other->_impl_.x_)
- );
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfHiddenGate::GetMetadata() const
- {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[8]
- );
- }
-
- // ===================================================================
-
- class MessageOfDoor::_Internal
- {
- public:
- };
-
- MessageOfDoor::MessageOfDoor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
- {
- SharedCtor(arena, is_message_owned);
- // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfDoor)
- }
- MessageOfDoor::MessageOfDoor(const MessageOfDoor& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- MessageOfDoor* const _this = this;
- (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.x_){}, decltype(_impl_.y_){}, decltype(_impl_.is_open_){}, decltype(_impl_.progress_){}, /*decltype(_impl_._cached_size_)*/ {}};
-
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::memcpy(&_impl_.x_, &from._impl_.x_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.progress_) - reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.progress_));
- // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfDoor)
- }
-
- inline void MessageOfDoor::SharedCtor(
- ::_pb::Arena* arena, bool is_message_owned
- )
- {
- (void)arena;
- (void)is_message_owned;
- new (&_impl_) Impl_{
- decltype(_impl_.x_){0}, decltype(_impl_.y_){0}, decltype(_impl_.is_open_){false}, decltype(_impl_.progress_){0}, /*decltype(_impl_._cached_size_)*/ {}};
- }
-
- MessageOfDoor::~MessageOfDoor()
- {
- // @@protoc_insertion_point(destructor:protobuf.MessageOfDoor)
- if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
- {
- (void)arena;
- return;
- }
- SharedDtor();
- }
-
- inline void MessageOfDoor::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- }
-
- void MessageOfDoor::SetCachedSize(int size) const
- {
- _impl_._cached_size_.Set(size);
- }
-
- void MessageOfDoor::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfDoor)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- ::memset(&_impl_.x_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.progress_) - reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.progress_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* MessageOfDoor::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // int32 x = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
- {
- _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 y = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
- {
- _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // bool is_open = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
- {
- _impl_.is_open_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 progress = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32))
- {
- _impl_.progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* MessageOfDoor::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfDoor)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // int32 x = 1;
- if (this->_internal_x() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target);
- }
-
- // int32 y = 2;
- if (this->_internal_y() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target);
- }
-
- // bool is_open = 3;
- if (this->_internal_is_open() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_is_open(), target);
- }
-
- // int32 progress = 4;
- if (this->_internal_progress() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_progress(), target);
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfDoor)
- return target;
- }
-
- size_t MessageOfDoor::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfDoor)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- // int32 x = 1;
- if (this->_internal_x() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
- }
-
- // int32 y = 2;
- if (this->_internal_y() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
- }
-
- // bool is_open = 3;
- if (this->_internal_is_open() != 0)
- {
- total_size += 1 + 1;
- }
-
- // int32 progress = 4;
- if (this->_internal_progress() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_progress());
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfDoor::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- MessageOfDoor::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfDoor::GetClassData() const
- {
- return &_class_data_;
- }
-
- void MessageOfDoor::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
- {
- auto* const _this = static_cast<MessageOfDoor*>(&to_msg);
- auto& from = static_cast<const MessageOfDoor&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfDoor)
- GOOGLE_DCHECK_NE(&from, _this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- if (from._internal_x() != 0)
- {
- _this->_internal_set_x(from._internal_x());
- }
- if (from._internal_y() != 0)
- {
- _this->_internal_set_y(from._internal_y());
- }
- if (from._internal_is_open() != 0)
- {
- _this->_internal_set_is_open(from._internal_is_open());
- }
- if (from._internal_progress() != 0)
- {
- _this->_internal_set_progress(from._internal_progress());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void MessageOfDoor::CopyFrom(const MessageOfDoor& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfDoor)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool MessageOfDoor::IsInitialized() const
- {
- return true;
- }
-
- void MessageOfDoor::InternalSwap(MessageOfDoor* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(MessageOfDoor, _impl_.progress_) + sizeof(MessageOfDoor::_impl_.progress_) - PROTOBUF_FIELD_OFFSET(MessageOfDoor, _impl_.x_)>(
- reinterpret_cast<char*>(&_impl_.x_),
- reinterpret_cast<char*>(&other->_impl_.x_)
- );
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfDoor::GetMetadata() const
- {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[9]
- );
- }
-
- // ===================================================================
-
- class MessageOfChest::_Internal
- {
- public:
- };
-
- MessageOfChest::MessageOfChest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
- {
- SharedCtor(arena, is_message_owned);
- // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfChest)
- }
- MessageOfChest::MessageOfChest(const MessageOfChest& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- MessageOfChest* const _this = this;
- (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.x_){}, decltype(_impl_.y_){}, decltype(_impl_.progress_){}, /*decltype(_impl_._cached_size_)*/ {}};
-
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::memcpy(&_impl_.x_, &from._impl_.x_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.progress_) - reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.progress_));
- // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfChest)
- }
-
- inline void MessageOfChest::SharedCtor(
- ::_pb::Arena* arena, bool is_message_owned
- )
- {
- (void)arena;
- (void)is_message_owned;
- new (&_impl_) Impl_{
- decltype(_impl_.x_){0}, decltype(_impl_.y_){0}, decltype(_impl_.progress_){0}, /*decltype(_impl_._cached_size_)*/ {}};
- }
-
- MessageOfChest::~MessageOfChest()
- {
- // @@protoc_insertion_point(destructor:protobuf.MessageOfChest)
- if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
- {
- (void)arena;
- return;
- }
- SharedDtor();
- }
-
- inline void MessageOfChest::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- }
-
- void MessageOfChest::SetCachedSize(int size) const
- {
- _impl_._cached_size_.Set(size);
- }
-
- void MessageOfChest::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfChest)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- ::memset(&_impl_.x_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.progress_) - reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.progress_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* MessageOfChest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // int32 x = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
- {
- _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 y = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
- {
- _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 progress = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
- {
- _impl_.progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* MessageOfChest::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfChest)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // int32 x = 1;
- if (this->_internal_x() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target);
- }
-
- // int32 y = 2;
- if (this->_internal_y() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target);
- }
-
- // int32 progress = 3;
- if (this->_internal_progress() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_progress(), target);
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfChest)
- return target;
- }
-
- size_t MessageOfChest::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfChest)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- // int32 x = 1;
- if (this->_internal_x() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
- }
-
- // int32 y = 2;
- if (this->_internal_y() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
- }
-
- // int32 progress = 3;
- if (this->_internal_progress() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_progress());
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfChest::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- MessageOfChest::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfChest::GetClassData() const
- {
- return &_class_data_;
- }
-
- void MessageOfChest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
- {
- auto* const _this = static_cast<MessageOfChest*>(&to_msg);
- auto& from = static_cast<const MessageOfChest&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfChest)
- GOOGLE_DCHECK_NE(&from, _this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- if (from._internal_x() != 0)
- {
- _this->_internal_set_x(from._internal_x());
- }
- if (from._internal_y() != 0)
- {
- _this->_internal_set_y(from._internal_y());
- }
- if (from._internal_progress() != 0)
- {
- _this->_internal_set_progress(from._internal_progress());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void MessageOfChest::CopyFrom(const MessageOfChest& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfChest)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool MessageOfChest::IsInitialized() const
- {
- return true;
- }
-
- void MessageOfChest::InternalSwap(MessageOfChest* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(MessageOfChest, _impl_.progress_) + sizeof(MessageOfChest::_impl_.progress_) - PROTOBUF_FIELD_OFFSET(MessageOfChest, _impl_.x_)>(
- reinterpret_cast<char*>(&_impl_.x_),
- reinterpret_cast<char*>(&other->_impl_.x_)
- );
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfChest::GetMetadata() const
- {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[10]
- );
- }
-
- // ===================================================================
-
- class MessageOfMap_Row::_Internal
- {
- public:
- };
-
- MessageOfMap_Row::MessageOfMap_Row(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
- {
- SharedCtor(arena, is_message_owned);
- // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfMap.Row)
- }
- MessageOfMap_Row::MessageOfMap_Row(const MessageOfMap_Row& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- MessageOfMap_Row* const _this = this;
- (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.col_){from._impl_.col_}, /*decltype(_impl_._col_cached_byte_size_)*/ {0}, /*decltype(_impl_._cached_size_)*/ {}};
-
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfMap.Row)
- }
-
- inline void MessageOfMap_Row::SharedCtor(
- ::_pb::Arena* arena, bool is_message_owned
- )
- {
- (void)arena;
- (void)is_message_owned;
- new (&_impl_) Impl_{
- decltype(_impl_.col_){arena}, /*decltype(_impl_._col_cached_byte_size_)*/ {0}, /*decltype(_impl_._cached_size_)*/ {}};
- }
-
- MessageOfMap_Row::~MessageOfMap_Row()
- {
- // @@protoc_insertion_point(destructor:protobuf.MessageOfMap.Row)
- if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
- {
- (void)arena;
- return;
- }
- SharedDtor();
- }
-
- inline void MessageOfMap_Row::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- _impl_.col_.~RepeatedField();
- }
-
- void MessageOfMap_Row::SetCachedSize(int size) const
- {
- _impl_._cached_size_.Set(size);
- }
-
- void MessageOfMap_Row::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfMap.Row)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- _impl_.col_.Clear();
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* MessageOfMap_Row::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // repeated .protobuf.PlaceType col = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10))
- {
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_col(), ptr, ctx);
- CHK_(ptr);
- }
- else if (static_cast<uint8_t>(tag) == 8)
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_add_col(static_cast<::protobuf::PlaceType>(val));
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* MessageOfMap_Row::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfMap.Row)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // repeated .protobuf.PlaceType col = 1;
- {
- int byte_size = _impl_._col_cached_byte_size_.load(std::memory_order_relaxed);
- if (byte_size > 0)
- {
- target = stream->WriteEnumPacked(
- 1, _impl_.col_, byte_size, target
- );
- }
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfMap.Row)
- return target;
- }
-
- size_t MessageOfMap_Row::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfMap.Row)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- // repeated .protobuf.PlaceType col = 1;
- {
- size_t data_size = 0;
- unsigned int count = static_cast<unsigned int>(this->_internal_col_size());
- for (unsigned int i = 0; i < count; i++)
- {
- data_size += ::_pbi::WireFormatLite::EnumSize(
- this->_internal_col(static_cast<int>(i))
- );
- }
- if (data_size > 0)
- {
- total_size += 1 +
- ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
- }
- int cached_size = ::_pbi::ToCachedSize(data_size);
- _impl_._col_cached_byte_size_.store(cached_size, std::memory_order_relaxed);
- total_size += data_size;
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfMap_Row::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- MessageOfMap_Row::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfMap_Row::GetClassData() const
- {
- return &_class_data_;
- }
-
- void MessageOfMap_Row::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
- {
- auto* const _this = static_cast<MessageOfMap_Row*>(&to_msg);
- auto& from = static_cast<const MessageOfMap_Row&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfMap.Row)
- GOOGLE_DCHECK_NE(&from, _this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- _this->_impl_.col_.MergeFrom(from._impl_.col_);
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void MessageOfMap_Row::CopyFrom(const MessageOfMap_Row& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfMap.Row)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool MessageOfMap_Row::IsInitialized() const
- {
- return true;
- }
-
- void MessageOfMap_Row::InternalSwap(MessageOfMap_Row* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- _impl_.col_.InternalSwap(&other->_impl_.col_);
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfMap_Row::GetMetadata() const
- {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[11]
- );
- }
-
- // ===================================================================
-
- class MessageOfMap::_Internal
- {
- public:
- };
-
- MessageOfMap::MessageOfMap(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
- {
- SharedCtor(arena, is_message_owned);
- // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfMap)
- }
- MessageOfMap::MessageOfMap(const MessageOfMap& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- MessageOfMap* const _this = this;
- (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.row_){from._impl_.row_}, /*decltype(_impl_._cached_size_)*/ {}};
-
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfMap)
- }
-
- inline void MessageOfMap::SharedCtor(
- ::_pb::Arena* arena, bool is_message_owned
- )
- {
- (void)arena;
- (void)is_message_owned;
- new (&_impl_) Impl_{
- decltype(_impl_.row_){arena}, /*decltype(_impl_._cached_size_)*/ {}};
- }
-
- MessageOfMap::~MessageOfMap()
- {
- // @@protoc_insertion_point(destructor:protobuf.MessageOfMap)
- if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
- {
- (void)arena;
- return;
- }
- SharedDtor();
- }
-
- inline void MessageOfMap::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- _impl_.row_.~RepeatedPtrField();
- }
-
- void MessageOfMap::SetCachedSize(int size) const
- {
- _impl_._cached_size_.Set(size);
- }
-
- void MessageOfMap::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfMap)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- _impl_.row_.Clear();
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* MessageOfMap::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // repeated .protobuf.MessageOfMap.Row row = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18))
- {
- ptr -= 1;
- do
- {
- ptr += 1;
- ptr = ctx->ParseMessage(_internal_add_row(), ptr);
- CHK_(ptr);
- if (!ctx->DataAvailable(ptr))
- break;
- } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* MessageOfMap::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfMap)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // repeated .protobuf.MessageOfMap.Row row = 2;
- for (unsigned i = 0,
- n = static_cast<unsigned>(this->_internal_row_size());
- i < n;
- i++)
- {
- const auto& repfield = this->_internal_row(i);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfMap)
- return target;
- }
-
- size_t MessageOfMap::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfMap)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- // repeated .protobuf.MessageOfMap.Row row = 2;
- total_size += 1UL * this->_internal_row_size();
- for (const auto& msg : this->_impl_.row_)
- {
- total_size +=
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfMap::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- MessageOfMap::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfMap::GetClassData() const
- {
- return &_class_data_;
- }
-
- void MessageOfMap::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
- {
- auto* const _this = static_cast<MessageOfMap*>(&to_msg);
- auto& from = static_cast<const MessageOfMap&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfMap)
- GOOGLE_DCHECK_NE(&from, _this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- _this->_impl_.row_.MergeFrom(from._impl_.row_);
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void MessageOfMap::CopyFrom(const MessageOfMap& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfMap)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool MessageOfMap::IsInitialized() const
- {
- return true;
- }
-
- void MessageOfMap::InternalSwap(MessageOfMap* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- _impl_.row_.InternalSwap(&other->_impl_.row_);
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfMap::GetMetadata() const
- {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[12]
- );
- }
-
- // ===================================================================
-
- class MessageOfNews::_Internal
- {
- public:
- };
-
- MessageOfNews::MessageOfNews(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
- {
- SharedCtor(arena, is_message_owned);
- // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfNews)
- }
- MessageOfNews::MessageOfNews(const MessageOfNews& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- MessageOfNews* const _this = this;
- (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.news_){}, decltype(_impl_.from_id_){}, decltype(_impl_.to_id_){}, /*decltype(_impl_._cached_size_)*/ {}};
-
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- _impl_.news_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.news_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_news().empty())
- {
- _this->_impl_.news_.Set(from._internal_news(), _this->GetArenaForAllocation());
- }
- ::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_));
- // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfNews)
- }
-
- inline void MessageOfNews::SharedCtor(
- ::_pb::Arena* arena, bool is_message_owned
- )
- {
- (void)arena;
- (void)is_message_owned;
- new (&_impl_) Impl_{
- decltype(_impl_.news_){}, decltype(_impl_.from_id_){int64_t{0}}, decltype(_impl_.to_id_){int64_t{0}}, /*decltype(_impl_._cached_size_)*/ {}};
- _impl_.news_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.news_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- }
-
- MessageOfNews::~MessageOfNews()
- {
- // @@protoc_insertion_point(destructor:protobuf.MessageOfNews)
- if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
- {
- (void)arena;
- return;
- }
- SharedDtor();
- }
-
- inline void MessageOfNews::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- _impl_.news_.Destroy();
- }
-
- void MessageOfNews::SetCachedSize(int size) const
- {
- _impl_._cached_size_.Set(size);
- }
-
- void MessageOfNews::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfNews)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- _impl_.news_.ClearToEmpty();
- ::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_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* MessageOfNews::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // string news = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10))
- {
- auto str = _internal_mutable_news();
- ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(ptr);
- CHK_(::_pbi::VerifyUTF8(str, "protobuf.MessageOfNews.news"));
- }
- else
- goto handle_unusual;
- continue;
- // int64 from_id = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
- {
- _impl_.from_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int64 to_id = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
- {
- _impl_.to_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* MessageOfNews::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfNews)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // string news = 1;
- if (!this->_internal_news().empty())
- {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_news().data(), static_cast<int>(this->_internal_news().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "protobuf.MessageOfNews.news"
- );
- target = stream->WriteStringMaybeAliased(
- 1, this->_internal_news(), target
- );
- }
-
- // int64 from_id = 2;
- if (this->_internal_from_id() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_from_id(), target);
- }
-
- // int64 to_id = 3;
- if (this->_internal_to_id() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt64ToArray(3, this->_internal_to_id(), target);
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfNews)
- return target;
- }
-
- size_t MessageOfNews::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfNews)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- // string news = 1;
- if (!this->_internal_news().empty())
- {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_news()
- );
- }
-
- // int64 from_id = 2;
- if (this->_internal_from_id() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_from_id());
- }
-
- // int64 to_id = 3;
- if (this->_internal_to_id() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_to_id());
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfNews::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- MessageOfNews::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfNews::GetClassData() const
- {
- return &_class_data_;
- }
-
- void MessageOfNews::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
- {
- auto* const _this = static_cast<MessageOfNews*>(&to_msg);
- auto& from = static_cast<const MessageOfNews&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfNews)
- GOOGLE_DCHECK_NE(&from, _this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- if (!from._internal_news().empty())
- {
- _this->_internal_set_news(from._internal_news());
- }
- if (from._internal_from_id() != 0)
- {
- _this->_internal_set_from_id(from._internal_from_id());
- }
- if (from._internal_to_id() != 0)
- {
- _this->_internal_set_to_id(from._internal_to_id());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void MessageOfNews::CopyFrom(const MessageOfNews& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfNews)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool MessageOfNews::IsInitialized() const
- {
- return true;
- }
-
- void MessageOfNews::InternalSwap(MessageOfNews* other)
- {
- using std::swap;
- auto* lhs_arena = GetArenaForAllocation();
- auto* rhs_arena = other->GetArenaForAllocation();
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
- &_impl_.news_, lhs_arena, &other->_impl_.news_, rhs_arena
- );
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(MessageOfNews, _impl_.to_id_) + sizeof(MessageOfNews::_impl_.to_id_) - PROTOBUF_FIELD_OFFSET(MessageOfNews, _impl_.from_id_)>(
- reinterpret_cast<char*>(&_impl_.from_id_),
- reinterpret_cast<char*>(&other->_impl_.from_id_)
- );
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfNews::GetMetadata() const
- {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[13]
- );
- }
-
- // ===================================================================
-
- class MessageOfObj::_Internal
- {
- public:
- static const ::protobuf::MessageOfStudent& student_message(const MessageOfObj* msg);
- static const ::protobuf::MessageOfTricker& tricker_message(const MessageOfObj* msg);
- static const ::protobuf::MessageOfProp& prop_message(const MessageOfObj* msg);
- static const ::protobuf::MessageOfBullet& bullet_message(const MessageOfObj* msg);
- static const ::protobuf::MessageOfBombedBullet& bombed_bullet_message(const MessageOfObj* msg);
- static const ::protobuf::MessageOfClassroom& classroom_message(const MessageOfObj* msg);
- static const ::protobuf::MessageOfDoor& door_message(const MessageOfObj* msg);
- static const ::protobuf::MessageOfGate& gate_message(const MessageOfObj* msg);
- static const ::protobuf::MessageOfChest& chest_message(const MessageOfObj* msg);
- static const ::protobuf::MessageOfHiddenGate& hidden_gate_message(const MessageOfObj* msg);
- static const ::protobuf::MessageOfNews& news_message(const MessageOfObj* msg);
- static const ::protobuf::MessageOfMap& map_message(const MessageOfObj* msg);
- };
-
- const ::protobuf::MessageOfStudent&
- MessageOfObj::_Internal::student_message(const MessageOfObj* msg)
- {
- return *msg->_impl_.message_of_obj_.student_message_;
- }
- const ::protobuf::MessageOfTricker&
- MessageOfObj::_Internal::tricker_message(const MessageOfObj* msg)
- {
- return *msg->_impl_.message_of_obj_.tricker_message_;
- }
- const ::protobuf::MessageOfProp&
- MessageOfObj::_Internal::prop_message(const MessageOfObj* msg)
- {
- return *msg->_impl_.message_of_obj_.prop_message_;
- }
- const ::protobuf::MessageOfBullet&
- MessageOfObj::_Internal::bullet_message(const MessageOfObj* msg)
- {
- return *msg->_impl_.message_of_obj_.bullet_message_;
- }
- const ::protobuf::MessageOfBombedBullet&
- MessageOfObj::_Internal::bombed_bullet_message(const MessageOfObj* msg)
- {
- return *msg->_impl_.message_of_obj_.bombed_bullet_message_;
- }
- const ::protobuf::MessageOfClassroom&
- MessageOfObj::_Internal::classroom_message(const MessageOfObj* msg)
- {
- return *msg->_impl_.message_of_obj_.classroom_message_;
- }
- const ::protobuf::MessageOfDoor&
- MessageOfObj::_Internal::door_message(const MessageOfObj* msg)
- {
- return *msg->_impl_.message_of_obj_.door_message_;
- }
- const ::protobuf::MessageOfGate&
- MessageOfObj::_Internal::gate_message(const MessageOfObj* msg)
- {
- return *msg->_impl_.message_of_obj_.gate_message_;
- }
- const ::protobuf::MessageOfChest&
- MessageOfObj::_Internal::chest_message(const MessageOfObj* msg)
- {
- return *msg->_impl_.message_of_obj_.chest_message_;
- }
- const ::protobuf::MessageOfHiddenGate&
- MessageOfObj::_Internal::hidden_gate_message(const MessageOfObj* msg)
- {
- return *msg->_impl_.message_of_obj_.hidden_gate_message_;
- }
- const ::protobuf::MessageOfNews&
- MessageOfObj::_Internal::news_message(const MessageOfObj* msg)
- {
- return *msg->_impl_.message_of_obj_.news_message_;
- }
- const ::protobuf::MessageOfMap&
- MessageOfObj::_Internal::map_message(const MessageOfObj* msg)
- {
- return *msg->_impl_.message_of_obj_.map_message_;
- }
- void MessageOfObj::set_allocated_student_message(::protobuf::MessageOfStudent* student_message)
- {
- ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
- clear_message_of_obj();
- if (student_message)
- {
- ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(student_message);
- if (message_arena != submessage_arena)
- {
- student_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, student_message, submessage_arena
- );
- }
- set_has_student_message();
- _impl_.message_of_obj_.student_message_ = student_message;
- }
- // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.student_message)
- }
- void MessageOfObj::set_allocated_tricker_message(::protobuf::MessageOfTricker* tricker_message)
- {
- ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
- clear_message_of_obj();
- if (tricker_message)
- {
- ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(tricker_message);
- if (message_arena != submessage_arena)
- {
- tricker_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, tricker_message, submessage_arena
- );
- }
- set_has_tricker_message();
- _impl_.message_of_obj_.tricker_message_ = tricker_message;
- }
- // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.tricker_message)
- }
- void MessageOfObj::set_allocated_prop_message(::protobuf::MessageOfProp* prop_message)
- {
- ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
- clear_message_of_obj();
- if (prop_message)
- {
- ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(prop_message);
- if (message_arena != submessage_arena)
- {
- prop_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, prop_message, submessage_arena
- );
- }
- set_has_prop_message();
- _impl_.message_of_obj_.prop_message_ = prop_message;
- }
- // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.prop_message)
- }
- void MessageOfObj::set_allocated_bullet_message(::protobuf::MessageOfBullet* bullet_message)
- {
- ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
- clear_message_of_obj();
- if (bullet_message)
- {
- ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(bullet_message);
- if (message_arena != submessage_arena)
- {
- bullet_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, bullet_message, submessage_arena
- );
- }
- set_has_bullet_message();
- _impl_.message_of_obj_.bullet_message_ = bullet_message;
- }
- // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.bullet_message)
- }
- void MessageOfObj::set_allocated_bombed_bullet_message(::protobuf::MessageOfBombedBullet* bombed_bullet_message)
- {
- ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
- clear_message_of_obj();
- if (bombed_bullet_message)
- {
- ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(bombed_bullet_message);
- if (message_arena != submessage_arena)
- {
- bombed_bullet_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, bombed_bullet_message, submessage_arena
- );
- }
- set_has_bombed_bullet_message();
- _impl_.message_of_obj_.bombed_bullet_message_ = bombed_bullet_message;
- }
- // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.bombed_bullet_message)
- }
- void MessageOfObj::set_allocated_classroom_message(::protobuf::MessageOfClassroom* classroom_message)
- {
- ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
- clear_message_of_obj();
- if (classroom_message)
- {
- ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(classroom_message);
- if (message_arena != submessage_arena)
- {
- classroom_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, classroom_message, submessage_arena
- );
- }
- set_has_classroom_message();
- _impl_.message_of_obj_.classroom_message_ = classroom_message;
- }
- // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.classroom_message)
- }
- void MessageOfObj::set_allocated_door_message(::protobuf::MessageOfDoor* door_message)
- {
- ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
- clear_message_of_obj();
- if (door_message)
- {
- ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(door_message);
- if (message_arena != submessage_arena)
- {
- door_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, door_message, submessage_arena
- );
- }
- set_has_door_message();
- _impl_.message_of_obj_.door_message_ = door_message;
- }
- // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.door_message)
- }
- void MessageOfObj::set_allocated_gate_message(::protobuf::MessageOfGate* gate_message)
- {
- ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
- clear_message_of_obj();
- if (gate_message)
- {
- ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(gate_message);
- if (message_arena != submessage_arena)
- {
- gate_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, gate_message, submessage_arena
- );
- }
- set_has_gate_message();
- _impl_.message_of_obj_.gate_message_ = gate_message;
- }
- // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.gate_message)
- }
- void MessageOfObj::set_allocated_chest_message(::protobuf::MessageOfChest* chest_message)
- {
- ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
- clear_message_of_obj();
- if (chest_message)
- {
- ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(chest_message);
- if (message_arena != submessage_arena)
- {
- chest_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, chest_message, submessage_arena
- );
- }
- set_has_chest_message();
- _impl_.message_of_obj_.chest_message_ = chest_message;
- }
- // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.chest_message)
- }
- void MessageOfObj::set_allocated_hidden_gate_message(::protobuf::MessageOfHiddenGate* hidden_gate_message)
- {
- ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
- clear_message_of_obj();
- if (hidden_gate_message)
- {
- ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(hidden_gate_message);
- if (message_arena != submessage_arena)
- {
- hidden_gate_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, hidden_gate_message, submessage_arena
- );
- }
- set_has_hidden_gate_message();
- _impl_.message_of_obj_.hidden_gate_message_ = hidden_gate_message;
- }
- // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.hidden_gate_message)
- }
- void MessageOfObj::set_allocated_news_message(::protobuf::MessageOfNews* news_message)
- {
- ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
- clear_message_of_obj();
- if (news_message)
- {
- ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(news_message);
- if (message_arena != submessage_arena)
- {
- news_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, news_message, submessage_arena
- );
- }
- set_has_news_message();
- _impl_.message_of_obj_.news_message_ = news_message;
- }
- // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.news_message)
- }
- void MessageOfObj::set_allocated_map_message(::protobuf::MessageOfMap* map_message)
- {
- ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
- clear_message_of_obj();
- if (map_message)
- {
- ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(map_message);
- if (message_arena != submessage_arena)
- {
- map_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, map_message, submessage_arena
- );
- }
- set_has_map_message();
- _impl_.message_of_obj_.map_message_ = map_message;
- }
- // @@protoc_insertion_point(field_set_allocated:protobuf.MessageOfObj.map_message)
- }
- MessageOfObj::MessageOfObj(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
- {
- SharedCtor(arena, is_message_owned);
- // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfObj)
- }
- MessageOfObj::MessageOfObj(const MessageOfObj& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- MessageOfObj* const _this = this;
- (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.message_of_obj_){}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_._oneof_case_)*/ {}};
-
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- clear_has_message_of_obj();
- switch (from.message_of_obj_case())
- {
- case kStudentMessage:
- {
- _this->_internal_mutable_student_message()->::protobuf::MessageOfStudent::MergeFrom(
- from._internal_student_message()
- );
- break;
- }
- case kTrickerMessage:
- {
- _this->_internal_mutable_tricker_message()->::protobuf::MessageOfTricker::MergeFrom(
- from._internal_tricker_message()
- );
- break;
- }
- case kPropMessage:
- {
- _this->_internal_mutable_prop_message()->::protobuf::MessageOfProp::MergeFrom(
- from._internal_prop_message()
- );
- break;
- }
- case kBulletMessage:
- {
- _this->_internal_mutable_bullet_message()->::protobuf::MessageOfBullet::MergeFrom(
- from._internal_bullet_message()
- );
- break;
- }
- case kBombedBulletMessage:
- {
- _this->_internal_mutable_bombed_bullet_message()->::protobuf::MessageOfBombedBullet::MergeFrom(
- from._internal_bombed_bullet_message()
- );
- break;
- }
- case kClassroomMessage:
- {
- _this->_internal_mutable_classroom_message()->::protobuf::MessageOfClassroom::MergeFrom(
- from._internal_classroom_message()
- );
- break;
- }
- case kDoorMessage:
- {
- _this->_internal_mutable_door_message()->::protobuf::MessageOfDoor::MergeFrom(
- from._internal_door_message()
- );
- break;
- }
- case kGateMessage:
- {
- _this->_internal_mutable_gate_message()->::protobuf::MessageOfGate::MergeFrom(
- from._internal_gate_message()
- );
- break;
- }
- case kChestMessage:
- {
- _this->_internal_mutable_chest_message()->::protobuf::MessageOfChest::MergeFrom(
- from._internal_chest_message()
- );
- break;
- }
- case kHiddenGateMessage:
- {
- _this->_internal_mutable_hidden_gate_message()->::protobuf::MessageOfHiddenGate::MergeFrom(
- from._internal_hidden_gate_message()
- );
- break;
- }
- case kNewsMessage:
- {
- _this->_internal_mutable_news_message()->::protobuf::MessageOfNews::MergeFrom(
- from._internal_news_message()
- );
- break;
- }
- case kMapMessage:
- {
- _this->_internal_mutable_map_message()->::protobuf::MessageOfMap::MergeFrom(
- from._internal_map_message()
- );
- break;
- }
- case MESSAGE_OF_OBJ_NOT_SET:
- {
- break;
- }
- }
- // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfObj)
- }
-
- inline void MessageOfObj::SharedCtor(
- ::_pb::Arena* arena, bool is_message_owned
- )
- {
- (void)arena;
- (void)is_message_owned;
- new (&_impl_) Impl_{
- decltype(_impl_.message_of_obj_){}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_._oneof_case_)*/ {}};
- clear_has_message_of_obj();
- }
-
- MessageOfObj::~MessageOfObj()
- {
- // @@protoc_insertion_point(destructor:protobuf.MessageOfObj)
- if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
- {
- (void)arena;
- return;
- }
- SharedDtor();
- }
-
- inline void MessageOfObj::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- if (has_message_of_obj())
- {
- clear_message_of_obj();
- }
- }
-
- void MessageOfObj::SetCachedSize(int size) const
- {
- _impl_._cached_size_.Set(size);
- }
-
- void MessageOfObj::clear_message_of_obj()
- {
- // @@protoc_insertion_point(one_of_clear_start:protobuf.MessageOfObj)
- switch (message_of_obj_case())
- {
- case kStudentMessage:
- {
- if (GetArenaForAllocation() == nullptr)
- {
- delete _impl_.message_of_obj_.student_message_;
- }
- break;
- }
- case kTrickerMessage:
- {
- if (GetArenaForAllocation() == nullptr)
- {
- delete _impl_.message_of_obj_.tricker_message_;
- }
- break;
- }
- case kPropMessage:
- {
- if (GetArenaForAllocation() == nullptr)
- {
- delete _impl_.message_of_obj_.prop_message_;
- }
- break;
- }
- case kBulletMessage:
- {
- if (GetArenaForAllocation() == nullptr)
- {
- delete _impl_.message_of_obj_.bullet_message_;
- }
- break;
- }
- case kBombedBulletMessage:
- {
- if (GetArenaForAllocation() == nullptr)
- {
- delete _impl_.message_of_obj_.bombed_bullet_message_;
- }
- break;
- }
- case kClassroomMessage:
- {
- if (GetArenaForAllocation() == nullptr)
- {
- delete _impl_.message_of_obj_.classroom_message_;
- }
- break;
- }
- case kDoorMessage:
- {
- if (GetArenaForAllocation() == nullptr)
- {
- delete _impl_.message_of_obj_.door_message_;
- }
- break;
- }
- case kGateMessage:
- {
- if (GetArenaForAllocation() == nullptr)
- {
- delete _impl_.message_of_obj_.gate_message_;
- }
- break;
- }
- case kChestMessage:
- {
- if (GetArenaForAllocation() == nullptr)
- {
- delete _impl_.message_of_obj_.chest_message_;
- }
- break;
- }
- case kHiddenGateMessage:
- {
- if (GetArenaForAllocation() == nullptr)
- {
- delete _impl_.message_of_obj_.hidden_gate_message_;
- }
- break;
- }
- case kNewsMessage:
- {
- if (GetArenaForAllocation() == nullptr)
- {
- delete _impl_.message_of_obj_.news_message_;
- }
- break;
- }
- case kMapMessage:
- {
- if (GetArenaForAllocation() == nullptr)
- {
- delete _impl_.message_of_obj_.map_message_;
- }
- break;
- }
- case MESSAGE_OF_OBJ_NOT_SET:
- {
- break;
- }
- }
- _impl_._oneof_case_[0] = MESSAGE_OF_OBJ_NOT_SET;
- }
-
- void MessageOfObj::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfObj)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- clear_message_of_obj();
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* MessageOfObj::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // .protobuf.MessageOfStudent student_message = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10))
- {
- ptr = ctx->ParseMessage(_internal_mutable_student_message(), ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.MessageOfTricker tricker_message = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18))
- {
- ptr = ctx->ParseMessage(_internal_mutable_tricker_message(), ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.MessageOfProp prop_message = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26))
- {
- ptr = ctx->ParseMessage(_internal_mutable_prop_message(), ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.MessageOfBullet bullet_message = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34))
- {
- ptr = ctx->ParseMessage(_internal_mutable_bullet_message(), ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.MessageOfBombedBullet bombed_bullet_message = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42))
- {
- ptr = ctx->ParseMessage(_internal_mutable_bombed_bullet_message(), ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.MessageOfClassroom classroom_message = 6;
- case 6:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50))
- {
- ptr = ctx->ParseMessage(_internal_mutable_classroom_message(), ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.MessageOfDoor door_message = 7;
- case 7:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58))
- {
- ptr = ctx->ParseMessage(_internal_mutable_door_message(), ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.MessageOfGate gate_message = 8;
- case 8:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66))
- {
- ptr = ctx->ParseMessage(_internal_mutable_gate_message(), ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.MessageOfChest chest_message = 9;
- case 9:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 74))
- {
- ptr = ctx->ParseMessage(_internal_mutable_chest_message(), ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.MessageOfHiddenGate hidden_gate_message = 10;
- case 10:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 82))
- {
- ptr = ctx->ParseMessage(_internal_mutable_hidden_gate_message(), ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.MessageOfNews news_message = 11;
- case 11:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 90))
- {
- ptr = ctx->ParseMessage(_internal_mutable_news_message(), ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.MessageOfMap map_message = 12;
- case 12:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 98))
- {
- ptr = ctx->ParseMessage(_internal_mutable_map_message(), ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* MessageOfObj::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfObj)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // .protobuf.MessageOfStudent student_message = 1;
- if (_internal_has_student_message())
- {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(1, _Internal::student_message(this), _Internal::student_message(this).GetCachedSize(), target, stream);
- }
-
- // .protobuf.MessageOfTricker tricker_message = 2;
- if (_internal_has_tricker_message())
- {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(2, _Internal::tricker_message(this), _Internal::tricker_message(this).GetCachedSize(), target, stream);
- }
-
- // .protobuf.MessageOfProp prop_message = 3;
- if (_internal_has_prop_message())
- {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(3, _Internal::prop_message(this), _Internal::prop_message(this).GetCachedSize(), target, stream);
- }
-
- // .protobuf.MessageOfBullet bullet_message = 4;
- if (_internal_has_bullet_message())
- {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(4, _Internal::bullet_message(this), _Internal::bullet_message(this).GetCachedSize(), target, stream);
- }
-
- // .protobuf.MessageOfBombedBullet bombed_bullet_message = 5;
- if (_internal_has_bombed_bullet_message())
- {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(5, _Internal::bombed_bullet_message(this), _Internal::bombed_bullet_message(this).GetCachedSize(), target, stream);
- }
-
- // .protobuf.MessageOfClassroom classroom_message = 6;
- if (_internal_has_classroom_message())
- {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(6, _Internal::classroom_message(this), _Internal::classroom_message(this).GetCachedSize(), target, stream);
- }
-
- // .protobuf.MessageOfDoor door_message = 7;
- if (_internal_has_door_message())
- {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(7, _Internal::door_message(this), _Internal::door_message(this).GetCachedSize(), target, stream);
- }
-
- // .protobuf.MessageOfGate gate_message = 8;
- if (_internal_has_gate_message())
- {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(8, _Internal::gate_message(this), _Internal::gate_message(this).GetCachedSize(), target, stream);
- }
-
- // .protobuf.MessageOfChest chest_message = 9;
- if (_internal_has_chest_message())
- {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(9, _Internal::chest_message(this), _Internal::chest_message(this).GetCachedSize(), target, stream);
- }
-
- // .protobuf.MessageOfHiddenGate hidden_gate_message = 10;
- if (_internal_has_hidden_gate_message())
- {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(10, _Internal::hidden_gate_message(this), _Internal::hidden_gate_message(this).GetCachedSize(), target, stream);
- }
-
- // .protobuf.MessageOfNews news_message = 11;
- if (_internal_has_news_message())
- {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(11, _Internal::news_message(this), _Internal::news_message(this).GetCachedSize(), target, stream);
- }
-
- // .protobuf.MessageOfMap map_message = 12;
- if (_internal_has_map_message())
- {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(12, _Internal::map_message(this), _Internal::map_message(this).GetCachedSize(), target, stream);
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfObj)
- return target;
- }
-
- size_t MessageOfObj::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfObj)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- switch (message_of_obj_case())
- {
- // .protobuf.MessageOfStudent student_message = 1;
- case kStudentMessage:
- {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.message_of_obj_.student_message_
- );
- break;
- }
- // .protobuf.MessageOfTricker tricker_message = 2;
- case kTrickerMessage:
- {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.message_of_obj_.tricker_message_
- );
- break;
- }
- // .protobuf.MessageOfProp prop_message = 3;
- case kPropMessage:
- {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.message_of_obj_.prop_message_
- );
- break;
- }
- // .protobuf.MessageOfBullet bullet_message = 4;
- case kBulletMessage:
- {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.message_of_obj_.bullet_message_
- );
- break;
- }
- // .protobuf.MessageOfBombedBullet bombed_bullet_message = 5;
- case kBombedBulletMessage:
- {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.message_of_obj_.bombed_bullet_message_
- );
- break;
- }
- // .protobuf.MessageOfClassroom classroom_message = 6;
- case kClassroomMessage:
- {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.message_of_obj_.classroom_message_
- );
- break;
- }
- // .protobuf.MessageOfDoor door_message = 7;
- case kDoorMessage:
- {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.message_of_obj_.door_message_
- );
- break;
- }
- // .protobuf.MessageOfGate gate_message = 8;
- case kGateMessage:
- {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.message_of_obj_.gate_message_
- );
- break;
- }
- // .protobuf.MessageOfChest chest_message = 9;
- case kChestMessage:
- {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.message_of_obj_.chest_message_
- );
- break;
- }
- // .protobuf.MessageOfHiddenGate hidden_gate_message = 10;
- case kHiddenGateMessage:
- {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.message_of_obj_.hidden_gate_message_
- );
- break;
- }
- // .protobuf.MessageOfNews news_message = 11;
- case kNewsMessage:
- {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.message_of_obj_.news_message_
- );
- break;
- }
- // .protobuf.MessageOfMap map_message = 12;
- case kMapMessage:
- {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.message_of_obj_.map_message_
- );
- break;
- }
- case MESSAGE_OF_OBJ_NOT_SET:
- {
- break;
- }
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfObj::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- MessageOfObj::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfObj::GetClassData() const
- {
- return &_class_data_;
- }
-
- void MessageOfObj::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
- {
- auto* const _this = static_cast<MessageOfObj*>(&to_msg);
- auto& from = static_cast<const MessageOfObj&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfObj)
- GOOGLE_DCHECK_NE(&from, _this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- switch (from.message_of_obj_case())
- {
- case kStudentMessage:
- {
- _this->_internal_mutable_student_message()->::protobuf::MessageOfStudent::MergeFrom(
- from._internal_student_message()
- );
- break;
- }
- case kTrickerMessage:
- {
- _this->_internal_mutable_tricker_message()->::protobuf::MessageOfTricker::MergeFrom(
- from._internal_tricker_message()
- );
- break;
- }
- case kPropMessage:
- {
- _this->_internal_mutable_prop_message()->::protobuf::MessageOfProp::MergeFrom(
- from._internal_prop_message()
- );
- break;
- }
- case kBulletMessage:
- {
- _this->_internal_mutable_bullet_message()->::protobuf::MessageOfBullet::MergeFrom(
- from._internal_bullet_message()
- );
- break;
- }
- case kBombedBulletMessage:
- {
- _this->_internal_mutable_bombed_bullet_message()->::protobuf::MessageOfBombedBullet::MergeFrom(
- from._internal_bombed_bullet_message()
- );
- break;
- }
- case kClassroomMessage:
- {
- _this->_internal_mutable_classroom_message()->::protobuf::MessageOfClassroom::MergeFrom(
- from._internal_classroom_message()
- );
- break;
- }
- case kDoorMessage:
- {
- _this->_internal_mutable_door_message()->::protobuf::MessageOfDoor::MergeFrom(
- from._internal_door_message()
- );
- break;
- }
- case kGateMessage:
- {
- _this->_internal_mutable_gate_message()->::protobuf::MessageOfGate::MergeFrom(
- from._internal_gate_message()
- );
- break;
- }
- case kChestMessage:
- {
- _this->_internal_mutable_chest_message()->::protobuf::MessageOfChest::MergeFrom(
- from._internal_chest_message()
- );
- break;
- }
- case kHiddenGateMessage:
- {
- _this->_internal_mutable_hidden_gate_message()->::protobuf::MessageOfHiddenGate::MergeFrom(
- from._internal_hidden_gate_message()
- );
- break;
- }
- case kNewsMessage:
- {
- _this->_internal_mutable_news_message()->::protobuf::MessageOfNews::MergeFrom(
- from._internal_news_message()
- );
- break;
- }
- case kMapMessage:
- {
- _this->_internal_mutable_map_message()->::protobuf::MessageOfMap::MergeFrom(
- from._internal_map_message()
- );
- break;
- }
- case MESSAGE_OF_OBJ_NOT_SET:
- {
- break;
- }
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void MessageOfObj::CopyFrom(const MessageOfObj& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfObj)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool MessageOfObj::IsInitialized() const
- {
- return true;
- }
-
- void MessageOfObj::InternalSwap(MessageOfObj* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(_impl_.message_of_obj_, other->_impl_.message_of_obj_);
- swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfObj::GetMetadata() const
- {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[14]
- );
- }
-
- // ===================================================================
-
- class MessageOfAll::_Internal
- {
- public:
- };
-
- MessageOfAll::MessageOfAll(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
- {
- SharedCtor(arena, is_message_owned);
- // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfAll)
- }
- MessageOfAll::MessageOfAll(const MessageOfAll& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- MessageOfAll* const _this = this;
- (void)_this;
- new (&_impl_) Impl_{
- 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_)*/ {}};
-
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::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_));
- // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfAll)
- }
-
- inline void MessageOfAll::SharedCtor(
- ::_pb::Arena* arena, bool is_message_owned
- )
- {
- (void)arena;
- (void)is_message_owned;
- new (&_impl_) Impl_{
- 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_)*/ {}};
- }
-
- MessageOfAll::~MessageOfAll()
- {
- // @@protoc_insertion_point(destructor:protobuf.MessageOfAll)
- if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
- {
- (void)arena;
- return;
- }
- SharedDtor();
- }
-
- inline void MessageOfAll::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- }
-
- void MessageOfAll::SetCachedSize(int size) const
- {
- _impl_._cached_size_.Set(size);
- }
-
- void MessageOfAll::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfAll)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- ::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_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* MessageOfAll::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // int32 game_time = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
- {
- _impl_.game_time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 subject_left = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
- {
- _impl_.subject_left_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 student_graduated = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
- {
- _impl_.student_graduated_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 student_quited = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32))
- {
- _impl_.student_quited_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 student_score = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40))
- {
- _impl_.student_score_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // int32 tricker_score = 6;
- case 6:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48))
- {
- _impl_.tricker_score_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // bool gate_opened = 7;
- case 7:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56))
- {
- _impl_.gate_opened_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // bool hidden_gate_refreshed = 8;
- case 8:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64))
- {
- _impl_.hidden_gate_refreshed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // bool hidden_gate_opened = 9;
- case 9:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72))
- {
- _impl_.hidden_gate_opened_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* MessageOfAll::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfAll)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // int32 game_time = 1;
- if (this->_internal_game_time() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_game_time(), target);
- }
-
- // int32 subject_left = 2;
- if (this->_internal_subject_left() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_subject_left(), target);
- }
-
- // int32 student_graduated = 3;
- if (this->_internal_student_graduated() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_student_graduated(), target);
- }
-
- // int32 student_quited = 4;
- if (this->_internal_student_quited() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_student_quited(), target);
- }
-
- // int32 student_score = 5;
- if (this->_internal_student_score() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(5, this->_internal_student_score(), target);
- }
-
- // int32 tricker_score = 6;
- if (this->_internal_tricker_score() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(6, this->_internal_tricker_score(), target);
- }
-
- // bool gate_opened = 7;
- if (this->_internal_gate_opened() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteBoolToArray(7, this->_internal_gate_opened(), target);
- }
-
- // bool hidden_gate_refreshed = 8;
- if (this->_internal_hidden_gate_refreshed() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteBoolToArray(8, this->_internal_hidden_gate_refreshed(), target);
- }
-
- // bool hidden_gate_opened = 9;
- if (this->_internal_hidden_gate_opened() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteBoolToArray(9, this->_internal_hidden_gate_opened(), target);
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfAll)
- return target;
- }
-
- size_t MessageOfAll::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfAll)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- // int32 game_time = 1;
- if (this->_internal_game_time() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_game_time());
- }
-
- // int32 subject_left = 2;
- if (this->_internal_subject_left() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_subject_left());
- }
-
- // int32 student_graduated = 3;
- if (this->_internal_student_graduated() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_student_graduated());
- }
-
- // int32 student_quited = 4;
- if (this->_internal_student_quited() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_student_quited());
- }
-
- // int32 student_score = 5;
- if (this->_internal_student_score() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_student_score());
- }
-
- // int32 tricker_score = 6;
- if (this->_internal_tricker_score() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_tricker_score());
- }
-
- // bool gate_opened = 7;
- if (this->_internal_gate_opened() != 0)
- {
- total_size += 1 + 1;
- }
-
- // bool hidden_gate_refreshed = 8;
- if (this->_internal_hidden_gate_refreshed() != 0)
- {
- total_size += 1 + 1;
- }
-
- // bool hidden_gate_opened = 9;
- if (this->_internal_hidden_gate_opened() != 0)
- {
- total_size += 1 + 1;
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfAll::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- MessageOfAll::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfAll::GetClassData() const
- {
- return &_class_data_;
- }
-
- void MessageOfAll::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
- {
- auto* const _this = static_cast<MessageOfAll*>(&to_msg);
- auto& from = static_cast<const MessageOfAll&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfAll)
- GOOGLE_DCHECK_NE(&from, _this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- if (from._internal_game_time() != 0)
- {
- _this->_internal_set_game_time(from._internal_game_time());
- }
- if (from._internal_subject_left() != 0)
- {
- _this->_internal_set_subject_left(from._internal_subject_left());
- }
- if (from._internal_student_graduated() != 0)
- {
- _this->_internal_set_student_graduated(from._internal_student_graduated());
- }
- if (from._internal_student_quited() != 0)
- {
- _this->_internal_set_student_quited(from._internal_student_quited());
- }
- if (from._internal_student_score() != 0)
- {
- _this->_internal_set_student_score(from._internal_student_score());
- }
- if (from._internal_tricker_score() != 0)
- {
- _this->_internal_set_tricker_score(from._internal_tricker_score());
- }
- if (from._internal_gate_opened() != 0)
- {
- _this->_internal_set_gate_opened(from._internal_gate_opened());
- }
- if (from._internal_hidden_gate_refreshed() != 0)
- {
- _this->_internal_set_hidden_gate_refreshed(from._internal_hidden_gate_refreshed());
- }
- if (from._internal_hidden_gate_opened() != 0)
- {
- _this->_internal_set_hidden_gate_opened(from._internal_hidden_gate_opened());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void MessageOfAll::CopyFrom(const MessageOfAll& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfAll)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool MessageOfAll::IsInitialized() const
- {
- return true;
- }
-
- void MessageOfAll::InternalSwap(MessageOfAll* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(MessageOfAll, _impl_.hidden_gate_opened_) + sizeof(MessageOfAll::_impl_.hidden_gate_opened_) - PROTOBUF_FIELD_OFFSET(MessageOfAll, _impl_.game_time_)>(
- reinterpret_cast<char*>(&_impl_.game_time_),
- reinterpret_cast<char*>(&other->_impl_.game_time_)
- );
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfAll::GetMetadata() const
- {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[15]
- );
- }
-
- // ===================================================================
-
- class MessageToClient::_Internal
- {
- public:
- static const ::protobuf::MessageOfAll& all_message(const MessageToClient* msg);
- };
-
- const ::protobuf::MessageOfAll&
- MessageToClient::_Internal::all_message(const MessageToClient* msg)
- {
- return *msg->_impl_.all_message_;
- }
- MessageToClient::MessageToClient(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
- {
- SharedCtor(arena, is_message_owned);
- // @@protoc_insertion_point(arena_constructor:protobuf.MessageToClient)
- }
- MessageToClient::MessageToClient(const MessageToClient& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- MessageToClient* const _this = this;
- (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.obj_message_){from._impl_.obj_message_}, decltype(_impl_.all_message_){nullptr}, decltype(_impl_.game_state_){}, /*decltype(_impl_._cached_size_)*/ {}};
-
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- if (from._internal_has_all_message())
- {
- _this->_impl_.all_message_ = new ::protobuf::MessageOfAll(*from._impl_.all_message_);
- }
- _this->_impl_.game_state_ = from._impl_.game_state_;
- // @@protoc_insertion_point(copy_constructor:protobuf.MessageToClient)
- }
-
- inline void MessageToClient::SharedCtor(
- ::_pb::Arena* arena, bool is_message_owned
- )
- {
- (void)arena;
- (void)is_message_owned;
- new (&_impl_) Impl_{
- decltype(_impl_.obj_message_){arena}, decltype(_impl_.all_message_){nullptr}, decltype(_impl_.game_state_){0}, /*decltype(_impl_._cached_size_)*/ {}};
- }
-
- MessageToClient::~MessageToClient()
- {
- // @@protoc_insertion_point(destructor:protobuf.MessageToClient)
- if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
- {
- (void)arena;
- return;
- }
- SharedDtor();
- }
-
- inline void MessageToClient::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- _impl_.obj_message_.~RepeatedPtrField();
- if (this != internal_default_instance())
- delete _impl_.all_message_;
- }
-
- void MessageToClient::SetCachedSize(int size) const
- {
- _impl_._cached_size_.Set(size);
- }
-
- void MessageToClient::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.MessageToClient)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- _impl_.obj_message_.Clear();
- if (GetArenaForAllocation() == nullptr && _impl_.all_message_ != nullptr)
- {
- delete _impl_.all_message_;
- }
- _impl_.all_message_ = nullptr;
- _impl_.game_state_ = 0;
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* MessageToClient::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // repeated .protobuf.MessageOfObj obj_message = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10))
- {
- ptr -= 1;
- do
- {
- ptr += 1;
- ptr = ctx->ParseMessage(_internal_add_obj_message(), ptr);
- CHK_(ptr);
- if (!ctx->DataAvailable(ptr))
- break;
- } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.GameState game_state = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
- {
- uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- _internal_set_game_state(static_cast<::protobuf::GameState>(val));
- }
- else
- goto handle_unusual;
- continue;
- // .protobuf.MessageOfAll all_message = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26))
- {
- ptr = ctx->ParseMessage(_internal_mutable_all_message(), ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* MessageToClient::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageToClient)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // repeated .protobuf.MessageOfObj obj_message = 1;
- for (unsigned i = 0,
- n = static_cast<unsigned>(this->_internal_obj_message_size());
- i < n;
- i++)
- {
- const auto& repfield = this->_internal_obj_message(i);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
- }
-
- // .protobuf.GameState game_state = 2;
- if (this->_internal_game_state() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 2, this->_internal_game_state(), target
- );
- }
-
- // .protobuf.MessageOfAll all_message = 3;
- if (this->_internal_has_all_message())
- {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(3, _Internal::all_message(this), _Internal::all_message(this).GetCachedSize(), target, stream);
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageToClient)
- return target;
- }
-
- size_t MessageToClient::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageToClient)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- // repeated .protobuf.MessageOfObj obj_message = 1;
- total_size += 1UL * this->_internal_obj_message_size();
- for (const auto& msg : this->_impl_.obj_message_)
- {
- total_size +=
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
- }
-
- // .protobuf.MessageOfAll all_message = 3;
- if (this->_internal_has_all_message())
- {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.all_message_
- );
- }
-
- // .protobuf.GameState game_state = 2;
- if (this->_internal_game_state() != 0)
- {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_game_state());
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageToClient::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- MessageToClient::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageToClient::GetClassData() const
- {
- return &_class_data_;
- }
-
- void MessageToClient::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
- {
- auto* const _this = static_cast<MessageToClient*>(&to_msg);
- auto& from = static_cast<const MessageToClient&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageToClient)
- GOOGLE_DCHECK_NE(&from, _this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- _this->_impl_.obj_message_.MergeFrom(from._impl_.obj_message_);
- if (from._internal_has_all_message())
- {
- _this->_internal_mutable_all_message()->::protobuf::MessageOfAll::MergeFrom(
- from._internal_all_message()
- );
- }
- if (from._internal_game_state() != 0)
- {
- _this->_internal_set_game_state(from._internal_game_state());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void MessageToClient::CopyFrom(const MessageToClient& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageToClient)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool MessageToClient::IsInitialized() const
- {
- return true;
- }
-
- void MessageToClient::InternalSwap(MessageToClient* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- _impl_.obj_message_.InternalSwap(&other->_impl_.obj_message_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(MessageToClient, _impl_.game_state_) + sizeof(MessageToClient::_impl_.game_state_) - PROTOBUF_FIELD_OFFSET(MessageToClient, _impl_.all_message_)>(
- reinterpret_cast<char*>(&_impl_.all_message_),
- reinterpret_cast<char*>(&other->_impl_.all_message_)
- );
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata MessageToClient::GetMetadata() const
- {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[16]
- );
- }
-
- // ===================================================================
-
- class MoveRes::_Internal
- {
- public:
- };
-
- MoveRes::MoveRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
- {
- SharedCtor(arena, is_message_owned);
- // @@protoc_insertion_point(arena_constructor:protobuf.MoveRes)
- }
- MoveRes::MoveRes(const MoveRes& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- MoveRes* const _this = this;
- (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.actual_speed_){}, decltype(_impl_.actual_angle_){}, decltype(_impl_.act_success_){}, /*decltype(_impl_._cached_size_)*/ {}};
-
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::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_));
- // @@protoc_insertion_point(copy_constructor:protobuf.MoveRes)
- }
-
- inline void MoveRes::SharedCtor(
- ::_pb::Arena* arena, bool is_message_owned
- )
- {
- (void)arena;
- (void)is_message_owned;
- new (&_impl_) Impl_{
- decltype(_impl_.actual_speed_){int64_t{0}}, decltype(_impl_.actual_angle_){0}, decltype(_impl_.act_success_){false}, /*decltype(_impl_._cached_size_)*/ {}};
- }
-
- MoveRes::~MoveRes()
- {
- // @@protoc_insertion_point(destructor:protobuf.MoveRes)
- if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
- {
- (void)arena;
- return;
- }
- SharedDtor();
- }
-
- inline void MoveRes::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- }
-
- void MoveRes::SetCachedSize(int size) const
- {
- _impl_._cached_size_.Set(size);
- }
-
- void MoveRes::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.MoveRes)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- ::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_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* MoveRes::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // int64 actual_speed = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
- {
- _impl_.actual_speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- // double actual_angle = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 17))
- {
- _impl_.actual_angle_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
- ptr += sizeof(double);
- }
- else
- goto handle_unusual;
- continue;
- // bool act_success = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
- {
- _impl_.act_success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* MoveRes::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.MoveRes)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // int64 actual_speed = 1;
- if (this->_internal_actual_speed() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_actual_speed(), target);
- }
-
- // double actual_angle = 2;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_actual_angle = this->_internal_actual_angle();
- uint64_t raw_actual_angle;
- memcpy(&raw_actual_angle, &tmp_actual_angle, sizeof(tmp_actual_angle));
- if (raw_actual_angle != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_actual_angle(), target);
- }
-
- // bool act_success = 3;
- if (this->_internal_act_success() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_act_success(), target);
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.MoveRes)
- return target;
- }
-
- size_t MoveRes::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.MoveRes)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- // int64 actual_speed = 1;
- if (this->_internal_actual_speed() != 0)
- {
- total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_actual_speed());
- }
-
- // double actual_angle = 2;
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_actual_angle = this->_internal_actual_angle();
- uint64_t raw_actual_angle;
- memcpy(&raw_actual_angle, &tmp_actual_angle, sizeof(tmp_actual_angle));
- if (raw_actual_angle != 0)
- {
- total_size += 1 + 8;
- }
-
- // bool act_success = 3;
- if (this->_internal_act_success() != 0)
- {
- total_size += 1 + 1;
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveRes::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- MoveRes::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MoveRes::GetClassData() const
- {
- return &_class_data_;
- }
-
- void MoveRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
- {
- auto* const _this = static_cast<MoveRes*>(&to_msg);
- auto& from = static_cast<const MoveRes&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MoveRes)
- GOOGLE_DCHECK_NE(&from, _this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- if (from._internal_actual_speed() != 0)
- {
- _this->_internal_set_actual_speed(from._internal_actual_speed());
- }
- static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
- double tmp_actual_angle = from._internal_actual_angle();
- uint64_t raw_actual_angle;
- memcpy(&raw_actual_angle, &tmp_actual_angle, sizeof(tmp_actual_angle));
- if (raw_actual_angle != 0)
- {
- _this->_internal_set_actual_angle(from._internal_actual_angle());
- }
- if (from._internal_act_success() != 0)
- {
- _this->_internal_set_act_success(from._internal_act_success());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void MoveRes::CopyFrom(const MoveRes& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MoveRes)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool MoveRes::IsInitialized() const
- {
- return true;
- }
-
- void MoveRes::InternalSwap(MoveRes* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(MoveRes, _impl_.act_success_) + sizeof(MoveRes::_impl_.act_success_) - PROTOBUF_FIELD_OFFSET(MoveRes, _impl_.actual_speed_)>(
- reinterpret_cast<char*>(&_impl_.actual_speed_),
- reinterpret_cast<char*>(&other->_impl_.actual_speed_)
- );
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata MoveRes::GetMetadata() const
- {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[17]
- );
- }
-
- // ===================================================================
-
- class BoolRes::_Internal
- {
- public:
- };
-
- BoolRes::BoolRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
- ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
- {
- SharedCtor(arena, is_message_owned);
- // @@protoc_insertion_point(arena_constructor:protobuf.BoolRes)
- }
- BoolRes::BoolRes(const BoolRes& from) :
- ::PROTOBUF_NAMESPACE_ID::Message()
- {
- BoolRes* const _this = this;
- (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.act_success_){}, /*decltype(_impl_._cached_size_)*/ {}};
-
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- _this->_impl_.act_success_ = from._impl_.act_success_;
- // @@protoc_insertion_point(copy_constructor:protobuf.BoolRes)
- }
-
- inline void BoolRes::SharedCtor(
- ::_pb::Arena* arena, bool is_message_owned
- )
- {
- (void)arena;
- (void)is_message_owned;
- new (&_impl_) Impl_{
- decltype(_impl_.act_success_){false}, /*decltype(_impl_._cached_size_)*/ {}};
- }
-
- BoolRes::~BoolRes()
- {
- // @@protoc_insertion_point(destructor:protobuf.BoolRes)
- if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
- {
- (void)arena;
- return;
- }
- SharedDtor();
- }
-
- inline void BoolRes::SharedDtor()
- {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- }
-
- void BoolRes::SetCachedSize(int size) const
- {
- _impl_._cached_size_.Set(size);
- }
-
- void BoolRes::Clear()
- {
- // @@protoc_insertion_point(message_clear_start:protobuf.BoolRes)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- _impl_.act_success_ = false;
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
-
- const char* BoolRes::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
- {
- #define CHK_(x) \
- if (PROTOBUF_PREDICT_FALSE(!(x))) \
- goto failure
- while (!ctx->Done(&ptr))
- {
- uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3)
- {
- // bool act_success = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
- {
- _impl_.act_success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- }
- else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4))
- {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr,
- ctx
- );
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
-
- uint8_t* BoolRes::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
- ) const
- {
- // @@protoc_insertion_point(serialize_to_array_start:protobuf.BoolRes)
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- // bool act_success = 1;
- if (this->_internal_act_success() != 0)
- {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_act_success(), target);
- }
-
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
- {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
- );
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf.BoolRes)
- return target;
- }
-
- size_t BoolRes::ByteSizeLong() const
- {
- // @@protoc_insertion_point(message_byte_size_start:protobuf.BoolRes)
- size_t total_size = 0;
-
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
-
- // bool act_success = 1;
- if (this->_internal_act_success() != 0)
- {
- total_size += 1 + 1;
- }
-
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
-
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BoolRes::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- BoolRes::MergeImpl};
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* BoolRes::GetClassData() const
- {
- return &_class_data_;
- }
-
- void BoolRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
- {
- auto* const _this = static_cast<BoolRes*>(&to_msg);
- auto& from = static_cast<const BoolRes&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.BoolRes)
- GOOGLE_DCHECK_NE(&from, _this);
- uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
-
- if (from._internal_act_success() != 0)
- {
- _this->_internal_set_act_success(from._internal_act_success());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
-
- void BoolRes::CopyFrom(const BoolRes& from)
- {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.BoolRes)
- if (&from == this)
- return;
- Clear();
- MergeFrom(from);
- }
-
- bool BoolRes::IsInitialized() const
- {
- return true;
- }
-
- void BoolRes::InternalSwap(BoolRes* other)
- {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(_impl_.act_success_, other->_impl_.act_success_);
- }
-
- ::PROTOBUF_NAMESPACE_ID::Metadata BoolRes::GetMetadata() const
- {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[18]
- );
- }
-
- // @@protoc_insertion_point(namespace_scope)
- } // namespace protobuf
- PROTOBUF_NAMESPACE_OPEN
- template<>
- PROTOBUF_NOINLINE ::protobuf::MessageOfStudent*
- Arena::CreateMaybeMessage<::protobuf::MessageOfStudent>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::MessageOfStudent>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::MessageOfTricker*
- Arena::CreateMaybeMessage<::protobuf::MessageOfTricker>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::MessageOfTricker>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::MessageOfBullet*
- Arena::CreateMaybeMessage<::protobuf::MessageOfBullet>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::MessageOfBullet>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::MessageOfBombedBullet*
- Arena::CreateMaybeMessage<::protobuf::MessageOfBombedBullet>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::MessageOfBombedBullet>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::MessageOfProp*
- Arena::CreateMaybeMessage<::protobuf::MessageOfProp>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::MessageOfProp>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::MessageOfPickedProp*
- Arena::CreateMaybeMessage<::protobuf::MessageOfPickedProp>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::MessageOfPickedProp>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::MessageOfClassroom*
- Arena::CreateMaybeMessage<::protobuf::MessageOfClassroom>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::MessageOfClassroom>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::MessageOfGate*
- Arena::CreateMaybeMessage<::protobuf::MessageOfGate>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::MessageOfGate>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::MessageOfHiddenGate*
- Arena::CreateMaybeMessage<::protobuf::MessageOfHiddenGate>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::MessageOfHiddenGate>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::MessageOfDoor*
- Arena::CreateMaybeMessage<::protobuf::MessageOfDoor>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::MessageOfDoor>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::MessageOfChest*
- Arena::CreateMaybeMessage<::protobuf::MessageOfChest>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::MessageOfChest>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::MessageOfMap_Row*
- Arena::CreateMaybeMessage<::protobuf::MessageOfMap_Row>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::MessageOfMap_Row>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::MessageOfMap*
- Arena::CreateMaybeMessage<::protobuf::MessageOfMap>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::MessageOfMap>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::MessageOfNews*
- Arena::CreateMaybeMessage<::protobuf::MessageOfNews>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::MessageOfNews>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::MessageOfObj*
- Arena::CreateMaybeMessage<::protobuf::MessageOfObj>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::MessageOfObj>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::MessageOfAll*
- Arena::CreateMaybeMessage<::protobuf::MessageOfAll>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::MessageOfAll>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::MessageToClient*
- Arena::CreateMaybeMessage<::protobuf::MessageToClient>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::MessageToClient>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::MoveRes*
- Arena::CreateMaybeMessage<::protobuf::MoveRes>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::MoveRes>(arena);
- }
- template<>
- PROTOBUF_NOINLINE ::protobuf::BoolRes*
- Arena::CreateMaybeMessage<::protobuf::BoolRes>(Arena* arena)
- {
- return Arena::CreateMessageInternal<::protobuf::BoolRes>(arena);
- }
- PROTOBUF_NAMESPACE_CLOSE
-
- // @@protoc_insertion_point(global_scope)
- #include <google/protobuf/port_undef.inc>
|