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

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