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

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