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

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