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

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