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

Message2Clients.pb.cc 316 kB

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