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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290
  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_.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_.time_until_skill_available_)*/ 0, /*decltype(_impl_.fail_num_)*/ 0, /*decltype(_impl_.place_)*/ 0, /*decltype(_impl_.prop_)*/ 0, /*decltype(_impl_.student_type_)*/ 0, /*decltype(_impl_.guid_)*/ int64_t{0}, /*decltype(_impl_.fail_time_)*/ 0, /*decltype(_impl_.state_)*/ 0, /*decltype(_impl_.view_range_)*/ 0, /*decltype(_impl_.emo_time_)*/ 0, /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_.radius_)*/ 0, /*decltype(_impl_.damage_)*/ 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_.buff_)*/ {}, /*decltype(_impl_._buff_cached_byte_size_)*/ {0}, /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.speed_)*/ 0, /*decltype(_impl_.damage_)*/ 0, /*decltype(_impl_.time_until_skill_available_)*/ 0, /*decltype(_impl_.place_)*/ 0, /*decltype(_impl_.prop_)*/ 0, /*decltype(_impl_.guid_)*/ int64_t{0}, /*decltype(_impl_.tricker_type_)*/ 0, /*decltype(_impl_.movable_)*/ false, /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_.view_range_)*/ 0, /*decltype(_impl_.radius_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
  46. {
  47. }
  48. struct MessageOfTrickerDefaultTypeInternal
  49. {
  50. PROTOBUF_CONSTEXPR MessageOfTrickerDefaultTypeInternal() :
  51. _instance(::_pbi::ConstantInitialized{})
  52. {
  53. }
  54. ~MessageOfTrickerDefaultTypeInternal()
  55. {
  56. }
  57. union
  58. {
  59. MessageOfTricker _instance;
  60. };
  61. };
  62. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfTrickerDefaultTypeInternal _MessageOfTricker_default_instance_;
  63. PROTOBUF_CONSTEXPR MessageOfBullet::MessageOfBullet(
  64. ::_pbi::ConstantInitialized
  65. ) :
  66. _impl_{
  67. /*decltype(_impl_.type_)*/ 0, /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.facing_direction_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.team_)*/ 0, /*decltype(_impl_.guid_)*/ int64_t{0}, /*decltype(_impl_.bomb_range_)*/ 0, /*decltype(_impl_.place_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
  68. {
  69. }
  70. struct MessageOfBulletDefaultTypeInternal
  71. {
  72. PROTOBUF_CONSTEXPR MessageOfBulletDefaultTypeInternal() :
  73. _instance(::_pbi::ConstantInitialized{})
  74. {
  75. }
  76. ~MessageOfBulletDefaultTypeInternal()
  77. {
  78. }
  79. union
  80. {
  81. MessageOfBullet _instance;
  82. };
  83. };
  84. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfBulletDefaultTypeInternal _MessageOfBullet_default_instance_;
  85. PROTOBUF_CONSTEXPR MessageOfBombedBullet::MessageOfBombedBullet(
  86. ::_pbi::ConstantInitialized
  87. ) :
  88. _impl_{
  89. /*decltype(_impl_.type_)*/ 0, /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.facing_direction_)*/ 0, /*decltype(_impl_.mapping_id_)*/ int64_t{0}, /*decltype(_impl_.bomb_range_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
  90. {
  91. }
  92. struct MessageOfBombedBulletDefaultTypeInternal
  93. {
  94. PROTOBUF_CONSTEXPR MessageOfBombedBulletDefaultTypeInternal() :
  95. _instance(::_pbi::ConstantInitialized{})
  96. {
  97. }
  98. ~MessageOfBombedBulletDefaultTypeInternal()
  99. {
  100. }
  101. union
  102. {
  103. MessageOfBombedBullet _instance;
  104. };
  105. };
  106. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfBombedBulletDefaultTypeInternal _MessageOfBombedBullet_default_instance_;
  107. PROTOBUF_CONSTEXPR MessageOfProp::MessageOfProp(
  108. ::_pbi::ConstantInitialized
  109. ) :
  110. _impl_{
  111. /*decltype(_impl_.type_)*/ 0, /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.facing_direction_)*/ 0, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_.place_)*/ 0, /*decltype(_impl_.guid_)*/ int64_t{0}, /*decltype(_impl_.size_)*/ 0, /*decltype(_impl_.is_moving_)*/ false, /*decltype(_impl_._cached_size_)*/ {}}
  112. {
  113. }
  114. struct MessageOfPropDefaultTypeInternal
  115. {
  116. PROTOBUF_CONSTEXPR MessageOfPropDefaultTypeInternal() :
  117. _instance(::_pbi::ConstantInitialized{})
  118. {
  119. }
  120. ~MessageOfPropDefaultTypeInternal()
  121. {
  122. }
  123. union
  124. {
  125. MessageOfProp _instance;
  126. };
  127. };
  128. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfPropDefaultTypeInternal _MessageOfProp_default_instance_;
  129. PROTOBUF_CONSTEXPR MessageOfPickedProp::MessageOfPickedProp(
  130. ::_pbi::ConstantInitialized
  131. ) :
  132. _impl_{
  133. /*decltype(_impl_.type_)*/ 0, /*decltype(_impl_.x_)*/ 0, /*decltype(_impl_.facing_direction_)*/ 0, /*decltype(_impl_.mapping_id_)*/ int64_t{0}, /*decltype(_impl_.y_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
  134. {
  135. }
  136. struct MessageOfPickedPropDefaultTypeInternal
  137. {
  138. PROTOBUF_CONSTEXPR MessageOfPickedPropDefaultTypeInternal() :
  139. _instance(::_pbi::ConstantInitialized{})
  140. {
  141. }
  142. ~MessageOfPickedPropDefaultTypeInternal()
  143. {
  144. }
  145. union
  146. {
  147. MessageOfPickedProp _instance;
  148. };
  149. };
  150. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfPickedPropDefaultTypeInternal _MessageOfPickedProp_default_instance_;
  151. PROTOBUF_CONSTEXPR MessageOfMap_Row::MessageOfMap_Row(
  152. ::_pbi::ConstantInitialized
  153. ) :
  154. _impl_{
  155. /*decltype(_impl_.col_)*/ {}, /*decltype(_impl_._col_cached_byte_size_)*/ {0}, /*decltype(_impl_._cached_size_)*/ {}}
  156. {
  157. }
  158. struct MessageOfMap_RowDefaultTypeInternal
  159. {
  160. PROTOBUF_CONSTEXPR MessageOfMap_RowDefaultTypeInternal() :
  161. _instance(::_pbi::ConstantInitialized{})
  162. {
  163. }
  164. ~MessageOfMap_RowDefaultTypeInternal()
  165. {
  166. }
  167. union
  168. {
  169. MessageOfMap_Row _instance;
  170. };
  171. };
  172. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfMap_RowDefaultTypeInternal _MessageOfMap_Row_default_instance_;
  173. PROTOBUF_CONSTEXPR MessageOfMap::MessageOfMap(
  174. ::_pbi::ConstantInitialized
  175. ) :
  176. _impl_{
  177. /*decltype(_impl_.row_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}}
  178. {
  179. }
  180. struct MessageOfMapDefaultTypeInternal
  181. {
  182. PROTOBUF_CONSTEXPR MessageOfMapDefaultTypeInternal() :
  183. _instance(::_pbi::ConstantInitialized{})
  184. {
  185. }
  186. ~MessageOfMapDefaultTypeInternal()
  187. {
  188. }
  189. union
  190. {
  191. MessageOfMap _instance;
  192. };
  193. };
  194. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOfMapDefaultTypeInternal _MessageOfMap_default_instance_;
  195. PROTOBUF_CONSTEXPR MessageToClient::MessageToClient(
  196. ::_pbi::ConstantInitialized
  197. ) :
  198. _impl_{
  199. /*decltype(_impl_.student_message_)*/ {}, /*decltype(_impl_.tricker_message_)*/ {}, /*decltype(_impl_.prop_message_)*/ {}, /*decltype(_impl_.bullet_message_)*/ {}, /*decltype(_impl_.bombed_bullet_message_)*/ {}, /*decltype(_impl_.map_message_)*/ nullptr, /*decltype(_impl_.game_state_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
  200. {
  201. }
  202. struct MessageToClientDefaultTypeInternal
  203. {
  204. PROTOBUF_CONSTEXPR MessageToClientDefaultTypeInternal() :
  205. _instance(::_pbi::ConstantInitialized{})
  206. {
  207. }
  208. ~MessageToClientDefaultTypeInternal()
  209. {
  210. }
  211. union
  212. {
  213. MessageToClient _instance;
  214. };
  215. };
  216. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageToClientDefaultTypeInternal _MessageToClient_default_instance_;
  217. PROTOBUF_CONSTEXPR MoveRes::MoveRes(
  218. ::_pbi::ConstantInitialized
  219. ) :
  220. _impl_{
  221. /*decltype(_impl_.actual_speed_)*/ int64_t{0}, /*decltype(_impl_.actual_angle_)*/ 0, /*decltype(_impl_.act_success_)*/ false, /*decltype(_impl_._cached_size_)*/ {}}
  222. {
  223. }
  224. struct MoveResDefaultTypeInternal
  225. {
  226. PROTOBUF_CONSTEXPR MoveResDefaultTypeInternal() :
  227. _instance(::_pbi::ConstantInitialized{})
  228. {
  229. }
  230. ~MoveResDefaultTypeInternal()
  231. {
  232. }
  233. union
  234. {
  235. MoveRes _instance;
  236. };
  237. };
  238. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveResDefaultTypeInternal _MoveRes_default_instance_;
  239. PROTOBUF_CONSTEXPR BoolRes::BoolRes(
  240. ::_pbi::ConstantInitialized
  241. ) :
  242. _impl_{
  243. /*decltype(_impl_.act_success_)*/ false, /*decltype(_impl_._cached_size_)*/ {}}
  244. {
  245. }
  246. struct BoolResDefaultTypeInternal
  247. {
  248. PROTOBUF_CONSTEXPR BoolResDefaultTypeInternal() :
  249. _instance(::_pbi::ConstantInitialized{})
  250. {
  251. }
  252. ~BoolResDefaultTypeInternal()
  253. {
  254. }
  255. union
  256. {
  257. BoolRes _instance;
  258. };
  259. };
  260. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BoolResDefaultTypeInternal _BoolRes_default_instance_;
  261. PROTOBUF_CONSTEXPR MsgRes::MsgRes(
  262. ::_pbi::ConstantInitialized
  263. ) :
  264. _impl_{
  265. /*decltype(_impl_.message_received_)*/ {&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}, /*decltype(_impl_.from_player_id_)*/ int64_t{0}, /*decltype(_impl_.have_message_)*/ false, /*decltype(_impl_._cached_size_)*/ {}}
  266. {
  267. }
  268. struct MsgResDefaultTypeInternal
  269. {
  270. PROTOBUF_CONSTEXPR MsgResDefaultTypeInternal() :
  271. _instance(::_pbi::ConstantInitialized{})
  272. {
  273. }
  274. ~MsgResDefaultTypeInternal()
  275. {
  276. }
  277. union
  278. {
  279. MsgRes _instance;
  280. };
  281. };
  282. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MsgResDefaultTypeInternal _MsgRes_default_instance_;
  283. } // namespace protobuf
  284. static ::_pb::Metadata file_level_metadata_Message2Clients_2eproto[12];
  285. static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_Message2Clients_2eproto = nullptr;
  286. static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_Message2Clients_2eproto = nullptr;
  287. const uint32_t TableStruct_Message2Clients_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  288. ~0u, // no _has_bits_
  289. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _internal_metadata_),
  290. ~0u, // no _extensions_
  291. ~0u, // no _oneof_case_
  292. ~0u, // no _weak_field_map_
  293. ~0u, // no _inlined_string_donated_
  294. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.x_),
  295. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.y_),
  296. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.speed_),
  297. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.determination_),
  298. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.fail_num_),
  299. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.time_until_skill_available_),
  300. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.place_),
  301. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.prop_),
  302. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.student_type_),
  303. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.guid_),
  304. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.state_),
  305. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.fail_time_),
  306. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.emo_time_),
  307. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.player_id_),
  308. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.view_range_),
  309. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.radius_),
  310. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.damage_),
  311. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfStudent, _impl_.buff_),
  312. ~0u, // no _has_bits_
  313. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _internal_metadata_),
  314. ~0u, // no _extensions_
  315. ~0u, // no _oneof_case_
  316. ~0u, // no _weak_field_map_
  317. ~0u, // no _inlined_string_donated_
  318. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.x_),
  319. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.y_),
  320. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.speed_),
  321. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.damage_),
  322. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.time_until_skill_available_),
  323. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.place_),
  324. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.prop_),
  325. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.tricker_type_),
  326. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.guid_),
  327. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.movable_),
  328. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.player_id_),
  329. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.view_range_),
  330. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.radius_),
  331. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfTricker, _impl_.buff_),
  332. ~0u, // no _has_bits_
  333. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _internal_metadata_),
  334. ~0u, // no _extensions_
  335. ~0u, // no _oneof_case_
  336. ~0u, // no _weak_field_map_
  337. ~0u, // no _inlined_string_donated_
  338. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.type_),
  339. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.x_),
  340. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.y_),
  341. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.facing_direction_),
  342. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.guid_),
  343. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.team_),
  344. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.place_),
  345. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBullet, _impl_.bomb_range_),
  346. ~0u, // no _has_bits_
  347. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _internal_metadata_),
  348. ~0u, // no _extensions_
  349. ~0u, // no _oneof_case_
  350. ~0u, // no _weak_field_map_
  351. ~0u, // no _inlined_string_donated_
  352. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _impl_.type_),
  353. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _impl_.x_),
  354. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _impl_.y_),
  355. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _impl_.facing_direction_),
  356. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _impl_.mapping_id_),
  357. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfBombedBullet, _impl_.bomb_range_),
  358. ~0u, // no _has_bits_
  359. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _internal_metadata_),
  360. ~0u, // no _extensions_
  361. ~0u, // no _oneof_case_
  362. ~0u, // no _weak_field_map_
  363. ~0u, // no _inlined_string_donated_
  364. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.type_),
  365. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.x_),
  366. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.y_),
  367. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.facing_direction_),
  368. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.guid_),
  369. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.place_),
  370. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.size_),
  371. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _impl_.is_moving_),
  372. ~0u, // no _has_bits_
  373. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _internal_metadata_),
  374. ~0u, // no _extensions_
  375. ~0u, // no _oneof_case_
  376. ~0u, // no _weak_field_map_
  377. ~0u, // no _inlined_string_donated_
  378. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _impl_.type_),
  379. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _impl_.x_),
  380. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _impl_.y_),
  381. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _impl_.facing_direction_),
  382. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _impl_.mapping_id_),
  383. ~0u, // no _has_bits_
  384. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap_Row, _internal_metadata_),
  385. ~0u, // no _extensions_
  386. ~0u, // no _oneof_case_
  387. ~0u, // no _weak_field_map_
  388. ~0u, // no _inlined_string_donated_
  389. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap_Row, _impl_.col_),
  390. ~0u, // no _has_bits_
  391. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap, _internal_metadata_),
  392. ~0u, // no _extensions_
  393. ~0u, // no _oneof_case_
  394. ~0u, // no _weak_field_map_
  395. ~0u, // no _inlined_string_donated_
  396. PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap, _impl_.row_),
  397. ~0u, // no _has_bits_
  398. PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _internal_metadata_),
  399. ~0u, // no _extensions_
  400. ~0u, // no _oneof_case_
  401. ~0u, // no _weak_field_map_
  402. ~0u, // no _inlined_string_donated_
  403. PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _impl_.student_message_),
  404. PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _impl_.tricker_message_),
  405. PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _impl_.prop_message_),
  406. PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _impl_.bullet_message_),
  407. PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _impl_.bombed_bullet_message_),
  408. PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _impl_.map_message_),
  409. PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _impl_.game_state_),
  410. ~0u, // no _has_bits_
  411. PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, _internal_metadata_),
  412. ~0u, // no _extensions_
  413. ~0u, // no _oneof_case_
  414. ~0u, // no _weak_field_map_
  415. ~0u, // no _inlined_string_donated_
  416. PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, _impl_.actual_speed_),
  417. PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, _impl_.actual_angle_),
  418. PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, _impl_.act_success_),
  419. ~0u, // no _has_bits_
  420. PROTOBUF_FIELD_OFFSET(::protobuf::BoolRes, _internal_metadata_),
  421. ~0u, // no _extensions_
  422. ~0u, // no _oneof_case_
  423. ~0u, // no _weak_field_map_
  424. ~0u, // no _inlined_string_donated_
  425. PROTOBUF_FIELD_OFFSET(::protobuf::BoolRes, _impl_.act_success_),
  426. ~0u, // no _has_bits_
  427. PROTOBUF_FIELD_OFFSET(::protobuf::MsgRes, _internal_metadata_),
  428. ~0u, // no _extensions_
  429. ~0u, // no _oneof_case_
  430. ~0u, // no _weak_field_map_
  431. ~0u, // no _inlined_string_donated_
  432. PROTOBUF_FIELD_OFFSET(::protobuf::MsgRes, _impl_.have_message_),
  433. PROTOBUF_FIELD_OFFSET(::protobuf::MsgRes, _impl_.from_player_id_),
  434. PROTOBUF_FIELD_OFFSET(::protobuf::MsgRes, _impl_.message_received_),
  435. };
  436. static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  437. {0, -1, -1, sizeof(::protobuf::MessageOfStudent)},
  438. {24, -1, -1, sizeof(::protobuf::MessageOfTricker)},
  439. {44, -1, -1, sizeof(::protobuf::MessageOfBullet)},
  440. {58, -1, -1, sizeof(::protobuf::MessageOfBombedBullet)},
  441. {70, -1, -1, sizeof(::protobuf::MessageOfProp)},
  442. {84, -1, -1, sizeof(::protobuf::MessageOfPickedProp)},
  443. {95, -1, -1, sizeof(::protobuf::MessageOfMap_Row)},
  444. {102, -1, -1, sizeof(::protobuf::MessageOfMap)},
  445. {109, -1, -1, sizeof(::protobuf::MessageToClient)},
  446. {122, -1, -1, sizeof(::protobuf::MoveRes)},
  447. {131, -1, -1, sizeof(::protobuf::BoolRes)},
  448. {138, -1, -1, sizeof(::protobuf::MsgRes)},
  449. };
  450. static const ::_pb::Message* const file_default_instances[] = {
  451. &::protobuf::_MessageOfStudent_default_instance_._instance,
  452. &::protobuf::_MessageOfTricker_default_instance_._instance,
  453. &::protobuf::_MessageOfBullet_default_instance_._instance,
  454. &::protobuf::_MessageOfBombedBullet_default_instance_._instance,
  455. &::protobuf::_MessageOfProp_default_instance_._instance,
  456. &::protobuf::_MessageOfPickedProp_default_instance_._instance,
  457. &::protobuf::_MessageOfMap_Row_default_instance_._instance,
  458. &::protobuf::_MessageOfMap_default_instance_._instance,
  459. &::protobuf::_MessageToClient_default_instance_._instance,
  460. &::protobuf::_MoveRes_default_instance_._instance,
  461. &::protobuf::_BoolRes_default_instance_._instance,
  462. &::protobuf::_MsgRes_default_instance_._instance,
  463. };
  464. const char descriptor_table_protodef_Message2Clients_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  465. "\n\025Message2Clients.proto\022\010protobuf\032\021Messa"
  466. "geType.proto\"\301\003\n\020MessageOfStudent\022\t\n\001x\030\001"
  467. " \001(\005\022\t\n\001y\030\002 \001(\005\022\r\n\005speed\030\003 \001(\005\022\025\n\rdeterm"
  468. "ination\030\004 \001(\005\022\020\n\010fail_num\030\005 \001(\005\022\"\n\032time_"
  469. "until_skill_available\030\006 \001(\001\022\"\n\005place\030\007 \001"
  470. "(\0162\023.protobuf.PlaceType\022 \n\004prop\030\010 \001(\0162\022."
  471. "protobuf.PropType\022+\n\014student_type\030\t \001(\0162"
  472. "\025.protobuf.StudentType\022\014\n\004guid\030\n \001(\003\022%\n\005"
  473. "state\030\013 \001(\0162\026.protobuf.StudentState\022\021\n\tf"
  474. "ail_time\030\014 \001(\001\022\020\n\010emo_time\030\016 \001(\001\022\021\n\tplay"
  475. "er_id\030\017 \001(\003\022\022\n\nview_range\030\020 \001(\005\022\016\n\006radiu"
  476. "s\030\021 \001(\005\022\016\n\006damage\030\022 \001(\005\022\'\n\004buff\030\023 \003(\0162\031."
  477. "protobuf.StudentBuffType\"\335\002\n\020MessageOfTr"
  478. "icker\022\t\n\001x\030\001 \001(\005\022\t\n\001y\030\002 \001(\005\022\r\n\005speed\030\003 \001"
  479. "(\005\022\016\n\006damage\030\004 \001(\005\022\"\n\032time_until_skill_a"
  480. "vailable\030\005 \001(\001\022\"\n\005place\030\006 \001(\0162\023.protobuf"
  481. ".PlaceType\022 \n\004prop\030\007 \001(\0162\022.protobuf.Prop"
  482. "Type\022+\n\014tricker_type\030\010 \001(\0162\025.protobuf.Tr"
  483. "ickerType\022\014\n\004guid\030\t \001(\003\022\017\n\007movable\030\n \001(\010"
  484. "\022\021\n\tplayer_id\030\013 \001(\003\022\022\n\nview_range\030\014 \001(\005\022"
  485. "\016\n\006radius\030\r \001(\005\022\'\n\004buff\030\016 \003(\0162\031.protobuf"
  486. ".TrickerBuffType\"\317\001\n\017MessageOfBullet\022\"\n\004"
  487. "type\030\001 \001(\0162\024.protobuf.BulletType\022\t\n\001x\030\002 "
  488. "\001(\005\022\t\n\001y\030\003 \001(\005\022\030\n\020facing_direction\030\004 \001(\001"
  489. "\022\014\n\004guid\030\005 \001(\003\022\"\n\004team\030\006 \001(\0162\024.protobuf."
  490. "PlayerType\022\"\n\005place\030\007 \001(\0162\023.protobuf.Pla"
  491. "ceType\022\022\n\nbomb_range\030\010 \001(\001\"\223\001\n\025MessageOf"
  492. "BombedBullet\022\"\n\004type\030\001 \001(\0162\024.protobuf.Bu"
  493. "lletType\022\t\n\001x\030\002 \001(\005\022\t\n\001y\030\003 \001(\005\022\030\n\020facing"
  494. "_direction\030\004 \001(\001\022\022\n\nmapping_id\030\005 \001(\003\022\022\n\n"
  495. "bomb_range\030\006 \001(\001\"\264\001\n\rMessageOfProp\022 \n\004ty"
  496. "pe\030\001 \001(\0162\022.protobuf.PropType\022\t\n\001x\030\002 \001(\005\022"
  497. "\t\n\001y\030\003 \001(\005\022\030\n\020facing_direction\030\004 \001(\001\022\014\n\004"
  498. "guid\030\005 \001(\003\022\"\n\005place\030\006 \001(\0162\023.protobuf.Pla"
  499. "ceType\022\014\n\004size\030\007 \001(\005\022\021\n\tis_moving\030\010 \001(\010\""
  500. "{\n\023MessageOfPickedProp\022 \n\004type\030\001 \001(\0162\022.p"
  501. "rotobuf.PropType\022\t\n\001x\030\002 \001(\005\022\t\n\001y\030\003 \001(\005\022\030"
  502. "\n\020facing_direction\030\004 \001(\001\022\022\n\nmapping_id\030\005"
  503. " \001(\003\"`\n\014MessageOfMap\022\'\n\003row\030\002 \003(\0132\032.prot"
  504. "obuf.MessageOfMap.Row\032\'\n\003Row\022 \n\003col\030\001 \003("
  505. "\0162\023.protobuf.PlaceType\"\363\002\n\017MessageToClie"
  506. "nt\0223\n\017student_message\030\001 \003(\0132\032.protobuf.M"
  507. "essageOfStudent\0223\n\017tricker_message\030\002 \003(\013"
  508. "2\032.protobuf.MessageOfTricker\022-\n\014prop_mes"
  509. "sage\030\003 \003(\0132\027.protobuf.MessageOfProp\0221\n\016b"
  510. "ullet_message\030\004 \003(\0132\031.protobuf.MessageOf"
  511. "Bullet\022>\n\025bombed_bullet_message\030\005 \003(\0132\037."
  512. "protobuf.MessageOfBombedBullet\022+\n\013map_me"
  513. "ssage\030\006 \001(\0132\026.protobuf.MessageOfMap\022\'\n\ng"
  514. "ame_state\030\007 \001(\0162\023.protobuf.GameState\"J\n\007"
  515. "MoveRes\022\024\n\014actual_speed\030\001 \001(\003\022\024\n\014actual_"
  516. "angle\030\002 \001(\001\022\023\n\013act_success\030\003 \001(\010\"\036\n\007Bool"
  517. "Res\022\023\n\013act_success\030\001 \001(\010\"P\n\006MsgRes\022\024\n\014ha"
  518. "ve_message\030\001 \001(\010\022\026\n\016from_player_id\030\002 \001(\003"
  519. "\022\030\n\020message_received\030\003 \001(\tb\006proto3";
  520. static const ::_pbi::DescriptorTable* const descriptor_table_Message2Clients_2eproto_deps[1] = {
  521. &::descriptor_table_MessageType_2eproto,
  522. };
  523. static ::_pbi::once_flag descriptor_table_Message2Clients_2eproto_once;
  524. const ::_pbi::DescriptorTable descriptor_table_Message2Clients_2eproto = {
  525. false,
  526. false,
  527. 2194,
  528. descriptor_table_protodef_Message2Clients_2eproto,
  529. "Message2Clients.proto",
  530. &descriptor_table_Message2Clients_2eproto_once,
  531. descriptor_table_Message2Clients_2eproto_deps,
  532. 1,
  533. 12,
  534. schemas,
  535. file_default_instances,
  536. TableStruct_Message2Clients_2eproto::offsets,
  537. file_level_metadata_Message2Clients_2eproto,
  538. file_level_enum_descriptors_Message2Clients_2eproto,
  539. file_level_service_descriptors_Message2Clients_2eproto,
  540. };
  541. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_Message2Clients_2eproto_getter()
  542. {
  543. return &descriptor_table_Message2Clients_2eproto;
  544. }
  545. // Force running AddDescriptors() at dynamic initialization time.
  546. PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_Message2Clients_2eproto(&descriptor_table_Message2Clients_2eproto);
  547. namespace protobuf
  548. {
  549. // ===================================================================
  550. class MessageOfStudent::_Internal
  551. {
  552. public:
  553. };
  554. MessageOfStudent::MessageOfStudent(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  555. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  556. {
  557. SharedCtor(arena, is_message_owned);
  558. // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfStudent)
  559. }
  560. MessageOfStudent::MessageOfStudent(const MessageOfStudent& from) :
  561. ::PROTOBUF_NAMESPACE_ID::Message()
  562. {
  563. MessageOfStudent* const _this = this;
  564. (void)_this;
  565. new (&_impl_) Impl_{
  566. 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_.time_until_skill_available_){}, decltype(_impl_.fail_num_){}, decltype(_impl_.place_){}, decltype(_impl_.prop_){}, decltype(_impl_.student_type_){}, decltype(_impl_.guid_){}, decltype(_impl_.fail_time_){}, decltype(_impl_.state_){}, decltype(_impl_.view_range_){}, decltype(_impl_.emo_time_){}, decltype(_impl_.player_id_){}, decltype(_impl_.radius_){}, decltype(_impl_.damage_){}, /*decltype(_impl_._cached_size_)*/ {}};
  567. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  568. ::memcpy(&_impl_.x_, &from._impl_.x_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.damage_) - reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.damage_));
  569. // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfStudent)
  570. }
  571. inline void MessageOfStudent::SharedCtor(
  572. ::_pb::Arena* arena, bool is_message_owned
  573. )
  574. {
  575. (void)arena;
  576. (void)is_message_owned;
  577. new (&_impl_) Impl_{
  578. 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_.time_until_skill_available_){0}, decltype(_impl_.fail_num_){0}, decltype(_impl_.place_){0}, decltype(_impl_.prop_){0}, decltype(_impl_.student_type_){0}, decltype(_impl_.guid_){int64_t{0}}, decltype(_impl_.fail_time_){0}, decltype(_impl_.state_){0}, decltype(_impl_.view_range_){0}, decltype(_impl_.emo_time_){0}, decltype(_impl_.player_id_){int64_t{0}}, decltype(_impl_.radius_){0}, decltype(_impl_.damage_){0}, /*decltype(_impl_._cached_size_)*/ {}};
  579. }
  580. MessageOfStudent::~MessageOfStudent()
  581. {
  582. // @@protoc_insertion_point(destructor:protobuf.MessageOfStudent)
  583. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  584. {
  585. (void)arena;
  586. return;
  587. }
  588. SharedDtor();
  589. }
  590. inline void MessageOfStudent::SharedDtor()
  591. {
  592. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  593. _impl_.buff_.~RepeatedField();
  594. }
  595. void MessageOfStudent::SetCachedSize(int size) const
  596. {
  597. _impl_._cached_size_.Set(size);
  598. }
  599. void MessageOfStudent::Clear()
  600. {
  601. // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfStudent)
  602. uint32_t cached_has_bits = 0;
  603. // Prevent compiler warnings about cached_has_bits being unused
  604. (void)cached_has_bits;
  605. _impl_.buff_.Clear();
  606. ::memset(&_impl_.x_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.damage_) - reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.damage_));
  607. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  608. }
  609. const char* MessageOfStudent::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  610. {
  611. #define CHK_(x) \
  612. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  613. goto failure
  614. while (!ctx->Done(&ptr))
  615. {
  616. uint32_t tag;
  617. ptr = ::_pbi::ReadTag(ptr, &tag);
  618. switch (tag >> 3)
  619. {
  620. // int32 x = 1;
  621. case 1:
  622. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  623. {
  624. _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  625. CHK_(ptr);
  626. }
  627. else
  628. goto handle_unusual;
  629. continue;
  630. // int32 y = 2;
  631. case 2:
  632. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  633. {
  634. _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  635. CHK_(ptr);
  636. }
  637. else
  638. goto handle_unusual;
  639. continue;
  640. // int32 speed = 3;
  641. case 3:
  642. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
  643. {
  644. _impl_.speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  645. CHK_(ptr);
  646. }
  647. else
  648. goto handle_unusual;
  649. continue;
  650. // int32 determination = 4;
  651. case 4:
  652. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32))
  653. {
  654. _impl_.determination_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  655. CHK_(ptr);
  656. }
  657. else
  658. goto handle_unusual;
  659. continue;
  660. // int32 fail_num = 5;
  661. case 5:
  662. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40))
  663. {
  664. _impl_.fail_num_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  665. CHK_(ptr);
  666. }
  667. else
  668. goto handle_unusual;
  669. continue;
  670. // double time_until_skill_available = 6;
  671. case 6:
  672. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 49))
  673. {
  674. _impl_.time_until_skill_available_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  675. ptr += sizeof(double);
  676. }
  677. else
  678. goto handle_unusual;
  679. continue;
  680. // .protobuf.PlaceType place = 7;
  681. case 7:
  682. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56))
  683. {
  684. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  685. CHK_(ptr);
  686. _internal_set_place(static_cast<::protobuf::PlaceType>(val));
  687. }
  688. else
  689. goto handle_unusual;
  690. continue;
  691. // .protobuf.PropType prop = 8;
  692. case 8:
  693. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64))
  694. {
  695. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  696. CHK_(ptr);
  697. _internal_set_prop(static_cast<::protobuf::PropType>(val));
  698. }
  699. else
  700. goto handle_unusual;
  701. continue;
  702. // .protobuf.StudentType student_type = 9;
  703. case 9:
  704. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72))
  705. {
  706. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  707. CHK_(ptr);
  708. _internal_set_student_type(static_cast<::protobuf::StudentType>(val));
  709. }
  710. else
  711. goto handle_unusual;
  712. continue;
  713. // int64 guid = 10;
  714. case 10:
  715. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80))
  716. {
  717. _impl_.guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  718. CHK_(ptr);
  719. }
  720. else
  721. goto handle_unusual;
  722. continue;
  723. // .protobuf.StudentState state = 11;
  724. case 11:
  725. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 88))
  726. {
  727. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  728. CHK_(ptr);
  729. _internal_set_state(static_cast<::protobuf::StudentState>(val));
  730. }
  731. else
  732. goto handle_unusual;
  733. continue;
  734. // double fail_time = 12;
  735. case 12:
  736. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 97))
  737. {
  738. _impl_.fail_time_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  739. ptr += sizeof(double);
  740. }
  741. else
  742. goto handle_unusual;
  743. continue;
  744. // double emo_time = 14;
  745. case 14:
  746. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 113))
  747. {
  748. _impl_.emo_time_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  749. ptr += sizeof(double);
  750. }
  751. else
  752. goto handle_unusual;
  753. continue;
  754. // int64 player_id = 15;
  755. case 15:
  756. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 120))
  757. {
  758. _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  759. CHK_(ptr);
  760. }
  761. else
  762. goto handle_unusual;
  763. continue;
  764. // int32 view_range = 16;
  765. case 16:
  766. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 128))
  767. {
  768. _impl_.view_range_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  769. CHK_(ptr);
  770. }
  771. else
  772. goto handle_unusual;
  773. continue;
  774. // int32 radius = 17;
  775. case 17:
  776. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 136))
  777. {
  778. _impl_.radius_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  779. CHK_(ptr);
  780. }
  781. else
  782. goto handle_unusual;
  783. continue;
  784. // int32 damage = 18;
  785. case 18:
  786. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 144))
  787. {
  788. _impl_.damage_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  789. CHK_(ptr);
  790. }
  791. else
  792. goto handle_unusual;
  793. continue;
  794. // repeated .protobuf.StudentBuffType buff = 19;
  795. case 19:
  796. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 154))
  797. {
  798. ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_buff(), ptr, ctx);
  799. CHK_(ptr);
  800. }
  801. else if (static_cast<uint8_t>(tag) == 152)
  802. {
  803. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  804. CHK_(ptr);
  805. _internal_add_buff(static_cast<::protobuf::StudentBuffType>(val));
  806. }
  807. else
  808. goto handle_unusual;
  809. continue;
  810. default:
  811. goto handle_unusual;
  812. } // switch
  813. handle_unusual:
  814. if ((tag == 0) || ((tag & 7) == 4))
  815. {
  816. CHK_(ptr);
  817. ctx->SetLastTag(tag);
  818. goto message_done;
  819. }
  820. ptr = UnknownFieldParse(
  821. tag,
  822. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  823. ptr,
  824. ctx
  825. );
  826. CHK_(ptr != nullptr);
  827. } // while
  828. message_done:
  829. return ptr;
  830. failure:
  831. ptr = nullptr;
  832. goto message_done;
  833. #undef CHK_
  834. }
  835. uint8_t* MessageOfStudent::_InternalSerialize(
  836. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  837. ) const
  838. {
  839. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfStudent)
  840. uint32_t cached_has_bits = 0;
  841. (void)cached_has_bits;
  842. // int32 x = 1;
  843. if (this->_internal_x() != 0)
  844. {
  845. target = stream->EnsureSpace(target);
  846. target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target);
  847. }
  848. // int32 y = 2;
  849. if (this->_internal_y() != 0)
  850. {
  851. target = stream->EnsureSpace(target);
  852. target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target);
  853. }
  854. // int32 speed = 3;
  855. if (this->_internal_speed() != 0)
  856. {
  857. target = stream->EnsureSpace(target);
  858. target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_speed(), target);
  859. }
  860. // int32 determination = 4;
  861. if (this->_internal_determination() != 0)
  862. {
  863. target = stream->EnsureSpace(target);
  864. target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_determination(), target);
  865. }
  866. // int32 fail_num = 5;
  867. if (this->_internal_fail_num() != 0)
  868. {
  869. target = stream->EnsureSpace(target);
  870. target = ::_pbi::WireFormatLite::WriteInt32ToArray(5, this->_internal_fail_num(), target);
  871. }
  872. // double time_until_skill_available = 6;
  873. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  874. double tmp_time_until_skill_available = this->_internal_time_until_skill_available();
  875. uint64_t raw_time_until_skill_available;
  876. memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available));
  877. if (raw_time_until_skill_available != 0)
  878. {
  879. target = stream->EnsureSpace(target);
  880. target = ::_pbi::WireFormatLite::WriteDoubleToArray(6, this->_internal_time_until_skill_available(), target);
  881. }
  882. // .protobuf.PlaceType place = 7;
  883. if (this->_internal_place() != 0)
  884. {
  885. target = stream->EnsureSpace(target);
  886. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  887. 7, this->_internal_place(), target
  888. );
  889. }
  890. // .protobuf.PropType prop = 8;
  891. if (this->_internal_prop() != 0)
  892. {
  893. target = stream->EnsureSpace(target);
  894. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  895. 8, this->_internal_prop(), target
  896. );
  897. }
  898. // .protobuf.StudentType student_type = 9;
  899. if (this->_internal_student_type() != 0)
  900. {
  901. target = stream->EnsureSpace(target);
  902. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  903. 9, this->_internal_student_type(), target
  904. );
  905. }
  906. // int64 guid = 10;
  907. if (this->_internal_guid() != 0)
  908. {
  909. target = stream->EnsureSpace(target);
  910. target = ::_pbi::WireFormatLite::WriteInt64ToArray(10, this->_internal_guid(), target);
  911. }
  912. // .protobuf.StudentState state = 11;
  913. if (this->_internal_state() != 0)
  914. {
  915. target = stream->EnsureSpace(target);
  916. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  917. 11, this->_internal_state(), target
  918. );
  919. }
  920. // double fail_time = 12;
  921. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  922. double tmp_fail_time = this->_internal_fail_time();
  923. uint64_t raw_fail_time;
  924. memcpy(&raw_fail_time, &tmp_fail_time, sizeof(tmp_fail_time));
  925. if (raw_fail_time != 0)
  926. {
  927. target = stream->EnsureSpace(target);
  928. target = ::_pbi::WireFormatLite::WriteDoubleToArray(12, this->_internal_fail_time(), target);
  929. }
  930. // double emo_time = 14;
  931. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  932. double tmp_emo_time = this->_internal_emo_time();
  933. uint64_t raw_emo_time;
  934. memcpy(&raw_emo_time, &tmp_emo_time, sizeof(tmp_emo_time));
  935. if (raw_emo_time != 0)
  936. {
  937. target = stream->EnsureSpace(target);
  938. target = ::_pbi::WireFormatLite::WriteDoubleToArray(14, this->_internal_emo_time(), target);
  939. }
  940. // int64 player_id = 15;
  941. if (this->_internal_player_id() != 0)
  942. {
  943. target = stream->EnsureSpace(target);
  944. target = ::_pbi::WireFormatLite::WriteInt64ToArray(15, this->_internal_player_id(), target);
  945. }
  946. // int32 view_range = 16;
  947. if (this->_internal_view_range() != 0)
  948. {
  949. target = stream->EnsureSpace(target);
  950. target = ::_pbi::WireFormatLite::WriteInt32ToArray(16, this->_internal_view_range(), target);
  951. }
  952. // int32 radius = 17;
  953. if (this->_internal_radius() != 0)
  954. {
  955. target = stream->EnsureSpace(target);
  956. target = ::_pbi::WireFormatLite::WriteInt32ToArray(17, this->_internal_radius(), target);
  957. }
  958. // int32 damage = 18;
  959. if (this->_internal_damage() != 0)
  960. {
  961. target = stream->EnsureSpace(target);
  962. target = ::_pbi::WireFormatLite::WriteInt32ToArray(18, this->_internal_damage(), target);
  963. }
  964. // repeated .protobuf.StudentBuffType buff = 19;
  965. {
  966. int byte_size = _impl_._buff_cached_byte_size_.load(std::memory_order_relaxed);
  967. if (byte_size > 0)
  968. {
  969. target = stream->WriteEnumPacked(
  970. 19, _impl_.buff_, byte_size, target
  971. );
  972. }
  973. }
  974. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  975. {
  976. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  977. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  978. );
  979. }
  980. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfStudent)
  981. return target;
  982. }
  983. size_t MessageOfStudent::ByteSizeLong() const
  984. {
  985. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfStudent)
  986. size_t total_size = 0;
  987. uint32_t cached_has_bits = 0;
  988. // Prevent compiler warnings about cached_has_bits being unused
  989. (void)cached_has_bits;
  990. // repeated .protobuf.StudentBuffType buff = 19;
  991. {
  992. size_t data_size = 0;
  993. unsigned int count = static_cast<unsigned int>(this->_internal_buff_size());
  994. for (unsigned int i = 0; i < count; i++)
  995. {
  996. data_size += ::_pbi::WireFormatLite::EnumSize(
  997. this->_internal_buff(static_cast<int>(i))
  998. );
  999. }
  1000. if (data_size > 0)
  1001. {
  1002. total_size += 2 +
  1003. ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
  1004. }
  1005. int cached_size = ::_pbi::ToCachedSize(data_size);
  1006. _impl_._buff_cached_byte_size_.store(cached_size, std::memory_order_relaxed);
  1007. total_size += data_size;
  1008. }
  1009. // int32 x = 1;
  1010. if (this->_internal_x() != 0)
  1011. {
  1012. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
  1013. }
  1014. // int32 y = 2;
  1015. if (this->_internal_y() != 0)
  1016. {
  1017. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
  1018. }
  1019. // int32 speed = 3;
  1020. if (this->_internal_speed() != 0)
  1021. {
  1022. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_speed());
  1023. }
  1024. // int32 determination = 4;
  1025. if (this->_internal_determination() != 0)
  1026. {
  1027. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_determination());
  1028. }
  1029. // double time_until_skill_available = 6;
  1030. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1031. double tmp_time_until_skill_available = this->_internal_time_until_skill_available();
  1032. uint64_t raw_time_until_skill_available;
  1033. memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available));
  1034. if (raw_time_until_skill_available != 0)
  1035. {
  1036. total_size += 1 + 8;
  1037. }
  1038. // int32 fail_num = 5;
  1039. if (this->_internal_fail_num() != 0)
  1040. {
  1041. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_fail_num());
  1042. }
  1043. // .protobuf.PlaceType place = 7;
  1044. if (this->_internal_place() != 0)
  1045. {
  1046. total_size += 1 +
  1047. ::_pbi::WireFormatLite::EnumSize(this->_internal_place());
  1048. }
  1049. // .protobuf.PropType prop = 8;
  1050. if (this->_internal_prop() != 0)
  1051. {
  1052. total_size += 1 +
  1053. ::_pbi::WireFormatLite::EnumSize(this->_internal_prop());
  1054. }
  1055. // .protobuf.StudentType student_type = 9;
  1056. if (this->_internal_student_type() != 0)
  1057. {
  1058. total_size += 1 +
  1059. ::_pbi::WireFormatLite::EnumSize(this->_internal_student_type());
  1060. }
  1061. // int64 guid = 10;
  1062. if (this->_internal_guid() != 0)
  1063. {
  1064. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_guid());
  1065. }
  1066. // double fail_time = 12;
  1067. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1068. double tmp_fail_time = this->_internal_fail_time();
  1069. uint64_t raw_fail_time;
  1070. memcpy(&raw_fail_time, &tmp_fail_time, sizeof(tmp_fail_time));
  1071. if (raw_fail_time != 0)
  1072. {
  1073. total_size += 1 + 8;
  1074. }
  1075. // .protobuf.StudentState state = 11;
  1076. if (this->_internal_state() != 0)
  1077. {
  1078. total_size += 1 +
  1079. ::_pbi::WireFormatLite::EnumSize(this->_internal_state());
  1080. }
  1081. // int32 view_range = 16;
  1082. if (this->_internal_view_range() != 0)
  1083. {
  1084. total_size += 2 +
  1085. ::_pbi::WireFormatLite::Int32Size(
  1086. this->_internal_view_range()
  1087. );
  1088. }
  1089. // double emo_time = 14;
  1090. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1091. double tmp_emo_time = this->_internal_emo_time();
  1092. uint64_t raw_emo_time;
  1093. memcpy(&raw_emo_time, &tmp_emo_time, sizeof(tmp_emo_time));
  1094. if (raw_emo_time != 0)
  1095. {
  1096. total_size += 1 + 8;
  1097. }
  1098. // int64 player_id = 15;
  1099. if (this->_internal_player_id() != 0)
  1100. {
  1101. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id());
  1102. }
  1103. // int32 radius = 17;
  1104. if (this->_internal_radius() != 0)
  1105. {
  1106. total_size += 2 +
  1107. ::_pbi::WireFormatLite::Int32Size(
  1108. this->_internal_radius()
  1109. );
  1110. }
  1111. // int32 damage = 18;
  1112. if (this->_internal_damage() != 0)
  1113. {
  1114. total_size += 2 +
  1115. ::_pbi::WireFormatLite::Int32Size(
  1116. this->_internal_damage()
  1117. );
  1118. }
  1119. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  1120. }
  1121. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfStudent::_class_data_ = {
  1122. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  1123. MessageOfStudent::MergeImpl};
  1124. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfStudent::GetClassData() const
  1125. {
  1126. return &_class_data_;
  1127. }
  1128. void MessageOfStudent::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  1129. {
  1130. auto* const _this = static_cast<MessageOfStudent*>(&to_msg);
  1131. auto& from = static_cast<const MessageOfStudent&>(from_msg);
  1132. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfStudent)
  1133. GOOGLE_DCHECK_NE(&from, _this);
  1134. uint32_t cached_has_bits = 0;
  1135. (void)cached_has_bits;
  1136. _this->_impl_.buff_.MergeFrom(from._impl_.buff_);
  1137. if (from._internal_x() != 0)
  1138. {
  1139. _this->_internal_set_x(from._internal_x());
  1140. }
  1141. if (from._internal_y() != 0)
  1142. {
  1143. _this->_internal_set_y(from._internal_y());
  1144. }
  1145. if (from._internal_speed() != 0)
  1146. {
  1147. _this->_internal_set_speed(from._internal_speed());
  1148. }
  1149. if (from._internal_determination() != 0)
  1150. {
  1151. _this->_internal_set_determination(from._internal_determination());
  1152. }
  1153. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1154. double tmp_time_until_skill_available = from._internal_time_until_skill_available();
  1155. uint64_t raw_time_until_skill_available;
  1156. memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available));
  1157. if (raw_time_until_skill_available != 0)
  1158. {
  1159. _this->_internal_set_time_until_skill_available(from._internal_time_until_skill_available());
  1160. }
  1161. if (from._internal_fail_num() != 0)
  1162. {
  1163. _this->_internal_set_fail_num(from._internal_fail_num());
  1164. }
  1165. if (from._internal_place() != 0)
  1166. {
  1167. _this->_internal_set_place(from._internal_place());
  1168. }
  1169. if (from._internal_prop() != 0)
  1170. {
  1171. _this->_internal_set_prop(from._internal_prop());
  1172. }
  1173. if (from._internal_student_type() != 0)
  1174. {
  1175. _this->_internal_set_student_type(from._internal_student_type());
  1176. }
  1177. if (from._internal_guid() != 0)
  1178. {
  1179. _this->_internal_set_guid(from._internal_guid());
  1180. }
  1181. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1182. double tmp_fail_time = from._internal_fail_time();
  1183. uint64_t raw_fail_time;
  1184. memcpy(&raw_fail_time, &tmp_fail_time, sizeof(tmp_fail_time));
  1185. if (raw_fail_time != 0)
  1186. {
  1187. _this->_internal_set_fail_time(from._internal_fail_time());
  1188. }
  1189. if (from._internal_state() != 0)
  1190. {
  1191. _this->_internal_set_state(from._internal_state());
  1192. }
  1193. if (from._internal_view_range() != 0)
  1194. {
  1195. _this->_internal_set_view_range(from._internal_view_range());
  1196. }
  1197. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1198. double tmp_emo_time = from._internal_emo_time();
  1199. uint64_t raw_emo_time;
  1200. memcpy(&raw_emo_time, &tmp_emo_time, sizeof(tmp_emo_time));
  1201. if (raw_emo_time != 0)
  1202. {
  1203. _this->_internal_set_emo_time(from._internal_emo_time());
  1204. }
  1205. if (from._internal_player_id() != 0)
  1206. {
  1207. _this->_internal_set_player_id(from._internal_player_id());
  1208. }
  1209. if (from._internal_radius() != 0)
  1210. {
  1211. _this->_internal_set_radius(from._internal_radius());
  1212. }
  1213. if (from._internal_damage() != 0)
  1214. {
  1215. _this->_internal_set_damage(from._internal_damage());
  1216. }
  1217. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1218. }
  1219. void MessageOfStudent::CopyFrom(const MessageOfStudent& from)
  1220. {
  1221. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfStudent)
  1222. if (&from == this)
  1223. return;
  1224. Clear();
  1225. MergeFrom(from);
  1226. }
  1227. bool MessageOfStudent::IsInitialized() const
  1228. {
  1229. return true;
  1230. }
  1231. void MessageOfStudent::InternalSwap(MessageOfStudent* other)
  1232. {
  1233. using std::swap;
  1234. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1235. _impl_.buff_.InternalSwap(&other->_impl_.buff_);
  1236. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1237. PROTOBUF_FIELD_OFFSET(MessageOfStudent, _impl_.damage_) + sizeof(MessageOfStudent::_impl_.damage_) - PROTOBUF_FIELD_OFFSET(MessageOfStudent, _impl_.x_)>(
  1238. reinterpret_cast<char*>(&_impl_.x_),
  1239. reinterpret_cast<char*>(&other->_impl_.x_)
  1240. );
  1241. }
  1242. ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfStudent::GetMetadata() const
  1243. {
  1244. return ::_pbi::AssignDescriptors(
  1245. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[0]
  1246. );
  1247. }
  1248. // ===================================================================
  1249. class MessageOfTricker::_Internal
  1250. {
  1251. public:
  1252. };
  1253. MessageOfTricker::MessageOfTricker(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  1254. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  1255. {
  1256. SharedCtor(arena, is_message_owned);
  1257. // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfTricker)
  1258. }
  1259. MessageOfTricker::MessageOfTricker(const MessageOfTricker& from) :
  1260. ::PROTOBUF_NAMESPACE_ID::Message()
  1261. {
  1262. MessageOfTricker* const _this = this;
  1263. (void)_this;
  1264. new (&_impl_) Impl_{
  1265. decltype(_impl_.buff_){from._impl_.buff_}, /*decltype(_impl_._buff_cached_byte_size_)*/ {0}, decltype(_impl_.x_){}, decltype(_impl_.y_){}, decltype(_impl_.speed_){}, decltype(_impl_.damage_){}, decltype(_impl_.time_until_skill_available_){}, decltype(_impl_.place_){}, decltype(_impl_.prop_){}, decltype(_impl_.guid_){}, decltype(_impl_.tricker_type_){}, decltype(_impl_.movable_){}, decltype(_impl_.player_id_){}, decltype(_impl_.view_range_){}, decltype(_impl_.radius_){}, /*decltype(_impl_._cached_size_)*/ {}};
  1266. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1267. ::memcpy(&_impl_.x_, &from._impl_.x_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.radius_) - reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.radius_));
  1268. // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfTricker)
  1269. }
  1270. inline void MessageOfTricker::SharedCtor(
  1271. ::_pb::Arena* arena, bool is_message_owned
  1272. )
  1273. {
  1274. (void)arena;
  1275. (void)is_message_owned;
  1276. new (&_impl_) Impl_{
  1277. decltype(_impl_.buff_){arena}, /*decltype(_impl_._buff_cached_byte_size_)*/ {0}, decltype(_impl_.x_){0}, decltype(_impl_.y_){0}, decltype(_impl_.speed_){0}, decltype(_impl_.damage_){0}, decltype(_impl_.time_until_skill_available_){0}, decltype(_impl_.place_){0}, decltype(_impl_.prop_){0}, decltype(_impl_.guid_){int64_t{0}}, decltype(_impl_.tricker_type_){0}, decltype(_impl_.movable_){false}, decltype(_impl_.player_id_){int64_t{0}}, decltype(_impl_.view_range_){0}, decltype(_impl_.radius_){0}, /*decltype(_impl_._cached_size_)*/ {}};
  1278. }
  1279. MessageOfTricker::~MessageOfTricker()
  1280. {
  1281. // @@protoc_insertion_point(destructor:protobuf.MessageOfTricker)
  1282. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  1283. {
  1284. (void)arena;
  1285. return;
  1286. }
  1287. SharedDtor();
  1288. }
  1289. inline void MessageOfTricker::SharedDtor()
  1290. {
  1291. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1292. _impl_.buff_.~RepeatedField();
  1293. }
  1294. void MessageOfTricker::SetCachedSize(int size) const
  1295. {
  1296. _impl_._cached_size_.Set(size);
  1297. }
  1298. void MessageOfTricker::Clear()
  1299. {
  1300. // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfTricker)
  1301. uint32_t cached_has_bits = 0;
  1302. // Prevent compiler warnings about cached_has_bits being unused
  1303. (void)cached_has_bits;
  1304. _impl_.buff_.Clear();
  1305. ::memset(&_impl_.x_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.radius_) - reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.radius_));
  1306. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1307. }
  1308. const char* MessageOfTricker::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  1309. {
  1310. #define CHK_(x) \
  1311. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  1312. goto failure
  1313. while (!ctx->Done(&ptr))
  1314. {
  1315. uint32_t tag;
  1316. ptr = ::_pbi::ReadTag(ptr, &tag);
  1317. switch (tag >> 3)
  1318. {
  1319. // int32 x = 1;
  1320. case 1:
  1321. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  1322. {
  1323. _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1324. CHK_(ptr);
  1325. }
  1326. else
  1327. goto handle_unusual;
  1328. continue;
  1329. // int32 y = 2;
  1330. case 2:
  1331. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  1332. {
  1333. _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1334. CHK_(ptr);
  1335. }
  1336. else
  1337. goto handle_unusual;
  1338. continue;
  1339. // int32 speed = 3;
  1340. case 3:
  1341. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
  1342. {
  1343. _impl_.speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1344. CHK_(ptr);
  1345. }
  1346. else
  1347. goto handle_unusual;
  1348. continue;
  1349. // int32 damage = 4;
  1350. case 4:
  1351. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32))
  1352. {
  1353. _impl_.damage_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1354. CHK_(ptr);
  1355. }
  1356. else
  1357. goto handle_unusual;
  1358. continue;
  1359. // double time_until_skill_available = 5;
  1360. case 5:
  1361. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 41))
  1362. {
  1363. _impl_.time_until_skill_available_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  1364. ptr += sizeof(double);
  1365. }
  1366. else
  1367. goto handle_unusual;
  1368. continue;
  1369. // .protobuf.PlaceType place = 6;
  1370. case 6:
  1371. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48))
  1372. {
  1373. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1374. CHK_(ptr);
  1375. _internal_set_place(static_cast<::protobuf::PlaceType>(val));
  1376. }
  1377. else
  1378. goto handle_unusual;
  1379. continue;
  1380. // .protobuf.PropType prop = 7;
  1381. case 7:
  1382. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56))
  1383. {
  1384. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1385. CHK_(ptr);
  1386. _internal_set_prop(static_cast<::protobuf::PropType>(val));
  1387. }
  1388. else
  1389. goto handle_unusual;
  1390. continue;
  1391. // .protobuf.TrickerType tricker_type = 8;
  1392. case 8:
  1393. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64))
  1394. {
  1395. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1396. CHK_(ptr);
  1397. _internal_set_tricker_type(static_cast<::protobuf::TrickerType>(val));
  1398. }
  1399. else
  1400. goto handle_unusual;
  1401. continue;
  1402. // int64 guid = 9;
  1403. case 9:
  1404. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72))
  1405. {
  1406. _impl_.guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1407. CHK_(ptr);
  1408. }
  1409. else
  1410. goto handle_unusual;
  1411. continue;
  1412. // bool movable = 10;
  1413. case 10:
  1414. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80))
  1415. {
  1416. _impl_.movable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1417. CHK_(ptr);
  1418. }
  1419. else
  1420. goto handle_unusual;
  1421. continue;
  1422. // int64 player_id = 11;
  1423. case 11:
  1424. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 88))
  1425. {
  1426. _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1427. CHK_(ptr);
  1428. }
  1429. else
  1430. goto handle_unusual;
  1431. continue;
  1432. // int32 view_range = 12;
  1433. case 12:
  1434. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 96))
  1435. {
  1436. _impl_.view_range_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1437. CHK_(ptr);
  1438. }
  1439. else
  1440. goto handle_unusual;
  1441. continue;
  1442. // int32 radius = 13;
  1443. case 13:
  1444. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 104))
  1445. {
  1446. _impl_.radius_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1447. CHK_(ptr);
  1448. }
  1449. else
  1450. goto handle_unusual;
  1451. continue;
  1452. // repeated .protobuf.TrickerBuffType buff = 14;
  1453. case 14:
  1454. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 114))
  1455. {
  1456. ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_buff(), ptr, ctx);
  1457. CHK_(ptr);
  1458. }
  1459. else if (static_cast<uint8_t>(tag) == 112)
  1460. {
  1461. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1462. CHK_(ptr);
  1463. _internal_add_buff(static_cast<::protobuf::TrickerBuffType>(val));
  1464. }
  1465. else
  1466. goto handle_unusual;
  1467. continue;
  1468. default:
  1469. goto handle_unusual;
  1470. } // switch
  1471. handle_unusual:
  1472. if ((tag == 0) || ((tag & 7) == 4))
  1473. {
  1474. CHK_(ptr);
  1475. ctx->SetLastTag(tag);
  1476. goto message_done;
  1477. }
  1478. ptr = UnknownFieldParse(
  1479. tag,
  1480. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1481. ptr,
  1482. ctx
  1483. );
  1484. CHK_(ptr != nullptr);
  1485. } // while
  1486. message_done:
  1487. return ptr;
  1488. failure:
  1489. ptr = nullptr;
  1490. goto message_done;
  1491. #undef CHK_
  1492. }
  1493. uint8_t* MessageOfTricker::_InternalSerialize(
  1494. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  1495. ) const
  1496. {
  1497. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfTricker)
  1498. uint32_t cached_has_bits = 0;
  1499. (void)cached_has_bits;
  1500. // int32 x = 1;
  1501. if (this->_internal_x() != 0)
  1502. {
  1503. target = stream->EnsureSpace(target);
  1504. target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target);
  1505. }
  1506. // int32 y = 2;
  1507. if (this->_internal_y() != 0)
  1508. {
  1509. target = stream->EnsureSpace(target);
  1510. target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target);
  1511. }
  1512. // int32 speed = 3;
  1513. if (this->_internal_speed() != 0)
  1514. {
  1515. target = stream->EnsureSpace(target);
  1516. target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_speed(), target);
  1517. }
  1518. // int32 damage = 4;
  1519. if (this->_internal_damage() != 0)
  1520. {
  1521. target = stream->EnsureSpace(target);
  1522. target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_damage(), target);
  1523. }
  1524. // double time_until_skill_available = 5;
  1525. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1526. double tmp_time_until_skill_available = this->_internal_time_until_skill_available();
  1527. uint64_t raw_time_until_skill_available;
  1528. memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available));
  1529. if (raw_time_until_skill_available != 0)
  1530. {
  1531. target = stream->EnsureSpace(target);
  1532. target = ::_pbi::WireFormatLite::WriteDoubleToArray(5, this->_internal_time_until_skill_available(), target);
  1533. }
  1534. // .protobuf.PlaceType place = 6;
  1535. if (this->_internal_place() != 0)
  1536. {
  1537. target = stream->EnsureSpace(target);
  1538. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  1539. 6, this->_internal_place(), target
  1540. );
  1541. }
  1542. // .protobuf.PropType prop = 7;
  1543. if (this->_internal_prop() != 0)
  1544. {
  1545. target = stream->EnsureSpace(target);
  1546. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  1547. 7, this->_internal_prop(), target
  1548. );
  1549. }
  1550. // .protobuf.TrickerType tricker_type = 8;
  1551. if (this->_internal_tricker_type() != 0)
  1552. {
  1553. target = stream->EnsureSpace(target);
  1554. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  1555. 8, this->_internal_tricker_type(), target
  1556. );
  1557. }
  1558. // int64 guid = 9;
  1559. if (this->_internal_guid() != 0)
  1560. {
  1561. target = stream->EnsureSpace(target);
  1562. target = ::_pbi::WireFormatLite::WriteInt64ToArray(9, this->_internal_guid(), target);
  1563. }
  1564. // bool movable = 10;
  1565. if (this->_internal_movable() != 0)
  1566. {
  1567. target = stream->EnsureSpace(target);
  1568. target = ::_pbi::WireFormatLite::WriteBoolToArray(10, this->_internal_movable(), target);
  1569. }
  1570. // int64 player_id = 11;
  1571. if (this->_internal_player_id() != 0)
  1572. {
  1573. target = stream->EnsureSpace(target);
  1574. target = ::_pbi::WireFormatLite::WriteInt64ToArray(11, this->_internal_player_id(), target);
  1575. }
  1576. // int32 view_range = 12;
  1577. if (this->_internal_view_range() != 0)
  1578. {
  1579. target = stream->EnsureSpace(target);
  1580. target = ::_pbi::WireFormatLite::WriteInt32ToArray(12, this->_internal_view_range(), target);
  1581. }
  1582. // int32 radius = 13;
  1583. if (this->_internal_radius() != 0)
  1584. {
  1585. target = stream->EnsureSpace(target);
  1586. target = ::_pbi::WireFormatLite::WriteInt32ToArray(13, this->_internal_radius(), target);
  1587. }
  1588. // repeated .protobuf.TrickerBuffType buff = 14;
  1589. {
  1590. int byte_size = _impl_._buff_cached_byte_size_.load(std::memory_order_relaxed);
  1591. if (byte_size > 0)
  1592. {
  1593. target = stream->WriteEnumPacked(
  1594. 14, _impl_.buff_, byte_size, target
  1595. );
  1596. }
  1597. }
  1598. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  1599. {
  1600. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  1601. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  1602. );
  1603. }
  1604. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfTricker)
  1605. return target;
  1606. }
  1607. size_t MessageOfTricker::ByteSizeLong() const
  1608. {
  1609. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfTricker)
  1610. size_t total_size = 0;
  1611. uint32_t cached_has_bits = 0;
  1612. // Prevent compiler warnings about cached_has_bits being unused
  1613. (void)cached_has_bits;
  1614. // repeated .protobuf.TrickerBuffType buff = 14;
  1615. {
  1616. size_t data_size = 0;
  1617. unsigned int count = static_cast<unsigned int>(this->_internal_buff_size());
  1618. for (unsigned int i = 0; i < count; i++)
  1619. {
  1620. data_size += ::_pbi::WireFormatLite::EnumSize(
  1621. this->_internal_buff(static_cast<int>(i))
  1622. );
  1623. }
  1624. if (data_size > 0)
  1625. {
  1626. total_size += 1 +
  1627. ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
  1628. }
  1629. int cached_size = ::_pbi::ToCachedSize(data_size);
  1630. _impl_._buff_cached_byte_size_.store(cached_size, std::memory_order_relaxed);
  1631. total_size += data_size;
  1632. }
  1633. // int32 x = 1;
  1634. if (this->_internal_x() != 0)
  1635. {
  1636. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
  1637. }
  1638. // int32 y = 2;
  1639. if (this->_internal_y() != 0)
  1640. {
  1641. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
  1642. }
  1643. // int32 speed = 3;
  1644. if (this->_internal_speed() != 0)
  1645. {
  1646. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_speed());
  1647. }
  1648. // int32 damage = 4;
  1649. if (this->_internal_damage() != 0)
  1650. {
  1651. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_damage());
  1652. }
  1653. // double time_until_skill_available = 5;
  1654. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1655. double tmp_time_until_skill_available = this->_internal_time_until_skill_available();
  1656. uint64_t raw_time_until_skill_available;
  1657. memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available));
  1658. if (raw_time_until_skill_available != 0)
  1659. {
  1660. total_size += 1 + 8;
  1661. }
  1662. // .protobuf.PlaceType place = 6;
  1663. if (this->_internal_place() != 0)
  1664. {
  1665. total_size += 1 +
  1666. ::_pbi::WireFormatLite::EnumSize(this->_internal_place());
  1667. }
  1668. // .protobuf.PropType prop = 7;
  1669. if (this->_internal_prop() != 0)
  1670. {
  1671. total_size += 1 +
  1672. ::_pbi::WireFormatLite::EnumSize(this->_internal_prop());
  1673. }
  1674. // int64 guid = 9;
  1675. if (this->_internal_guid() != 0)
  1676. {
  1677. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_guid());
  1678. }
  1679. // .protobuf.TrickerType tricker_type = 8;
  1680. if (this->_internal_tricker_type() != 0)
  1681. {
  1682. total_size += 1 +
  1683. ::_pbi::WireFormatLite::EnumSize(this->_internal_tricker_type());
  1684. }
  1685. // bool movable = 10;
  1686. if (this->_internal_movable() != 0)
  1687. {
  1688. total_size += 1 + 1;
  1689. }
  1690. // int64 player_id = 11;
  1691. if (this->_internal_player_id() != 0)
  1692. {
  1693. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id());
  1694. }
  1695. // int32 view_range = 12;
  1696. if (this->_internal_view_range() != 0)
  1697. {
  1698. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_view_range());
  1699. }
  1700. // int32 radius = 13;
  1701. if (this->_internal_radius() != 0)
  1702. {
  1703. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_radius());
  1704. }
  1705. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  1706. }
  1707. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfTricker::_class_data_ = {
  1708. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  1709. MessageOfTricker::MergeImpl};
  1710. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfTricker::GetClassData() const
  1711. {
  1712. return &_class_data_;
  1713. }
  1714. void MessageOfTricker::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  1715. {
  1716. auto* const _this = static_cast<MessageOfTricker*>(&to_msg);
  1717. auto& from = static_cast<const MessageOfTricker&>(from_msg);
  1718. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfTricker)
  1719. GOOGLE_DCHECK_NE(&from, _this);
  1720. uint32_t cached_has_bits = 0;
  1721. (void)cached_has_bits;
  1722. _this->_impl_.buff_.MergeFrom(from._impl_.buff_);
  1723. if (from._internal_x() != 0)
  1724. {
  1725. _this->_internal_set_x(from._internal_x());
  1726. }
  1727. if (from._internal_y() != 0)
  1728. {
  1729. _this->_internal_set_y(from._internal_y());
  1730. }
  1731. if (from._internal_speed() != 0)
  1732. {
  1733. _this->_internal_set_speed(from._internal_speed());
  1734. }
  1735. if (from._internal_damage() != 0)
  1736. {
  1737. _this->_internal_set_damage(from._internal_damage());
  1738. }
  1739. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1740. double tmp_time_until_skill_available = from._internal_time_until_skill_available();
  1741. uint64_t raw_time_until_skill_available;
  1742. memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available));
  1743. if (raw_time_until_skill_available != 0)
  1744. {
  1745. _this->_internal_set_time_until_skill_available(from._internal_time_until_skill_available());
  1746. }
  1747. if (from._internal_place() != 0)
  1748. {
  1749. _this->_internal_set_place(from._internal_place());
  1750. }
  1751. if (from._internal_prop() != 0)
  1752. {
  1753. _this->_internal_set_prop(from._internal_prop());
  1754. }
  1755. if (from._internal_guid() != 0)
  1756. {
  1757. _this->_internal_set_guid(from._internal_guid());
  1758. }
  1759. if (from._internal_tricker_type() != 0)
  1760. {
  1761. _this->_internal_set_tricker_type(from._internal_tricker_type());
  1762. }
  1763. if (from._internal_movable() != 0)
  1764. {
  1765. _this->_internal_set_movable(from._internal_movable());
  1766. }
  1767. if (from._internal_player_id() != 0)
  1768. {
  1769. _this->_internal_set_player_id(from._internal_player_id());
  1770. }
  1771. if (from._internal_view_range() != 0)
  1772. {
  1773. _this->_internal_set_view_range(from._internal_view_range());
  1774. }
  1775. if (from._internal_radius() != 0)
  1776. {
  1777. _this->_internal_set_radius(from._internal_radius());
  1778. }
  1779. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1780. }
  1781. void MessageOfTricker::CopyFrom(const MessageOfTricker& from)
  1782. {
  1783. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfTricker)
  1784. if (&from == this)
  1785. return;
  1786. Clear();
  1787. MergeFrom(from);
  1788. }
  1789. bool MessageOfTricker::IsInitialized() const
  1790. {
  1791. return true;
  1792. }
  1793. void MessageOfTricker::InternalSwap(MessageOfTricker* other)
  1794. {
  1795. using std::swap;
  1796. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1797. _impl_.buff_.InternalSwap(&other->_impl_.buff_);
  1798. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1799. PROTOBUF_FIELD_OFFSET(MessageOfTricker, _impl_.radius_) + sizeof(MessageOfTricker::_impl_.radius_) - PROTOBUF_FIELD_OFFSET(MessageOfTricker, _impl_.x_)>(
  1800. reinterpret_cast<char*>(&_impl_.x_),
  1801. reinterpret_cast<char*>(&other->_impl_.x_)
  1802. );
  1803. }
  1804. ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfTricker::GetMetadata() const
  1805. {
  1806. return ::_pbi::AssignDescriptors(
  1807. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[1]
  1808. );
  1809. }
  1810. // ===================================================================
  1811. class MessageOfBullet::_Internal
  1812. {
  1813. public:
  1814. };
  1815. MessageOfBullet::MessageOfBullet(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  1816. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  1817. {
  1818. SharedCtor(arena, is_message_owned);
  1819. // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfBullet)
  1820. }
  1821. MessageOfBullet::MessageOfBullet(const MessageOfBullet& from) :
  1822. ::PROTOBUF_NAMESPACE_ID::Message()
  1823. {
  1824. MessageOfBullet* const _this = this;
  1825. (void)_this;
  1826. new (&_impl_) Impl_{
  1827. decltype(_impl_.type_){}, decltype(_impl_.x_){}, decltype(_impl_.facing_direction_){}, decltype(_impl_.y_){}, decltype(_impl_.team_){}, decltype(_impl_.guid_){}, decltype(_impl_.bomb_range_){}, decltype(_impl_.place_){}, /*decltype(_impl_._cached_size_)*/ {}};
  1828. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1829. ::memcpy(&_impl_.type_, &from._impl_.type_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.place_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.place_));
  1830. // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfBullet)
  1831. }
  1832. inline void MessageOfBullet::SharedCtor(
  1833. ::_pb::Arena* arena, bool is_message_owned
  1834. )
  1835. {
  1836. (void)arena;
  1837. (void)is_message_owned;
  1838. new (&_impl_) Impl_{
  1839. decltype(_impl_.type_){0}, decltype(_impl_.x_){0}, decltype(_impl_.facing_direction_){0}, decltype(_impl_.y_){0}, decltype(_impl_.team_){0}, decltype(_impl_.guid_){int64_t{0}}, decltype(_impl_.bomb_range_){0}, decltype(_impl_.place_){0}, /*decltype(_impl_._cached_size_)*/ {}};
  1840. }
  1841. MessageOfBullet::~MessageOfBullet()
  1842. {
  1843. // @@protoc_insertion_point(destructor:protobuf.MessageOfBullet)
  1844. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  1845. {
  1846. (void)arena;
  1847. return;
  1848. }
  1849. SharedDtor();
  1850. }
  1851. inline void MessageOfBullet::SharedDtor()
  1852. {
  1853. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1854. }
  1855. void MessageOfBullet::SetCachedSize(int size) const
  1856. {
  1857. _impl_._cached_size_.Set(size);
  1858. }
  1859. void MessageOfBullet::Clear()
  1860. {
  1861. // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfBullet)
  1862. uint32_t cached_has_bits = 0;
  1863. // Prevent compiler warnings about cached_has_bits being unused
  1864. (void)cached_has_bits;
  1865. ::memset(&_impl_.type_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.place_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.place_));
  1866. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1867. }
  1868. const char* MessageOfBullet::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  1869. {
  1870. #define CHK_(x) \
  1871. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  1872. goto failure
  1873. while (!ctx->Done(&ptr))
  1874. {
  1875. uint32_t tag;
  1876. ptr = ::_pbi::ReadTag(ptr, &tag);
  1877. switch (tag >> 3)
  1878. {
  1879. // .protobuf.BulletType type = 1;
  1880. case 1:
  1881. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  1882. {
  1883. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1884. CHK_(ptr);
  1885. _internal_set_type(static_cast<::protobuf::BulletType>(val));
  1886. }
  1887. else
  1888. goto handle_unusual;
  1889. continue;
  1890. // int32 x = 2;
  1891. case 2:
  1892. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  1893. {
  1894. _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1895. CHK_(ptr);
  1896. }
  1897. else
  1898. goto handle_unusual;
  1899. continue;
  1900. // int32 y = 3;
  1901. case 3:
  1902. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
  1903. {
  1904. _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1905. CHK_(ptr);
  1906. }
  1907. else
  1908. goto handle_unusual;
  1909. continue;
  1910. // double facing_direction = 4;
  1911. case 4:
  1912. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 33))
  1913. {
  1914. _impl_.facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  1915. ptr += sizeof(double);
  1916. }
  1917. else
  1918. goto handle_unusual;
  1919. continue;
  1920. // int64 guid = 5;
  1921. case 5:
  1922. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40))
  1923. {
  1924. _impl_.guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1925. CHK_(ptr);
  1926. }
  1927. else
  1928. goto handle_unusual;
  1929. continue;
  1930. // .protobuf.PlayerType team = 6;
  1931. case 6:
  1932. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48))
  1933. {
  1934. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1935. CHK_(ptr);
  1936. _internal_set_team(static_cast<::protobuf::PlayerType>(val));
  1937. }
  1938. else
  1939. goto handle_unusual;
  1940. continue;
  1941. // .protobuf.PlaceType place = 7;
  1942. case 7:
  1943. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56))
  1944. {
  1945. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1946. CHK_(ptr);
  1947. _internal_set_place(static_cast<::protobuf::PlaceType>(val));
  1948. }
  1949. else
  1950. goto handle_unusual;
  1951. continue;
  1952. // double bomb_range = 8;
  1953. case 8:
  1954. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 65))
  1955. {
  1956. _impl_.bomb_range_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  1957. ptr += sizeof(double);
  1958. }
  1959. else
  1960. goto handle_unusual;
  1961. continue;
  1962. default:
  1963. goto handle_unusual;
  1964. } // switch
  1965. handle_unusual:
  1966. if ((tag == 0) || ((tag & 7) == 4))
  1967. {
  1968. CHK_(ptr);
  1969. ctx->SetLastTag(tag);
  1970. goto message_done;
  1971. }
  1972. ptr = UnknownFieldParse(
  1973. tag,
  1974. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1975. ptr,
  1976. ctx
  1977. );
  1978. CHK_(ptr != nullptr);
  1979. } // while
  1980. message_done:
  1981. return ptr;
  1982. failure:
  1983. ptr = nullptr;
  1984. goto message_done;
  1985. #undef CHK_
  1986. }
  1987. uint8_t* MessageOfBullet::_InternalSerialize(
  1988. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  1989. ) const
  1990. {
  1991. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfBullet)
  1992. uint32_t cached_has_bits = 0;
  1993. (void)cached_has_bits;
  1994. // .protobuf.BulletType type = 1;
  1995. if (this->_internal_type() != 0)
  1996. {
  1997. target = stream->EnsureSpace(target);
  1998. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  1999. 1, this->_internal_type(), target
  2000. );
  2001. }
  2002. // int32 x = 2;
  2003. if (this->_internal_x() != 0)
  2004. {
  2005. target = stream->EnsureSpace(target);
  2006. target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target);
  2007. }
  2008. // int32 y = 3;
  2009. if (this->_internal_y() != 0)
  2010. {
  2011. target = stream->EnsureSpace(target);
  2012. target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target);
  2013. }
  2014. // double facing_direction = 4;
  2015. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2016. double tmp_facing_direction = this->_internal_facing_direction();
  2017. uint64_t raw_facing_direction;
  2018. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  2019. if (raw_facing_direction != 0)
  2020. {
  2021. target = stream->EnsureSpace(target);
  2022. target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target);
  2023. }
  2024. // int64 guid = 5;
  2025. if (this->_internal_guid() != 0)
  2026. {
  2027. target = stream->EnsureSpace(target);
  2028. target = ::_pbi::WireFormatLite::WriteInt64ToArray(5, this->_internal_guid(), target);
  2029. }
  2030. // .protobuf.PlayerType team = 6;
  2031. if (this->_internal_team() != 0)
  2032. {
  2033. target = stream->EnsureSpace(target);
  2034. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  2035. 6, this->_internal_team(), target
  2036. );
  2037. }
  2038. // .protobuf.PlaceType place = 7;
  2039. if (this->_internal_place() != 0)
  2040. {
  2041. target = stream->EnsureSpace(target);
  2042. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  2043. 7, this->_internal_place(), target
  2044. );
  2045. }
  2046. // double bomb_range = 8;
  2047. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2048. double tmp_bomb_range = this->_internal_bomb_range();
  2049. uint64_t raw_bomb_range;
  2050. memcpy(&raw_bomb_range, &tmp_bomb_range, sizeof(tmp_bomb_range));
  2051. if (raw_bomb_range != 0)
  2052. {
  2053. target = stream->EnsureSpace(target);
  2054. target = ::_pbi::WireFormatLite::WriteDoubleToArray(8, this->_internal_bomb_range(), target);
  2055. }
  2056. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  2057. {
  2058. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  2059. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  2060. );
  2061. }
  2062. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfBullet)
  2063. return target;
  2064. }
  2065. size_t MessageOfBullet::ByteSizeLong() const
  2066. {
  2067. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfBullet)
  2068. size_t total_size = 0;
  2069. uint32_t cached_has_bits = 0;
  2070. // Prevent compiler warnings about cached_has_bits being unused
  2071. (void)cached_has_bits;
  2072. // .protobuf.BulletType type = 1;
  2073. if (this->_internal_type() != 0)
  2074. {
  2075. total_size += 1 +
  2076. ::_pbi::WireFormatLite::EnumSize(this->_internal_type());
  2077. }
  2078. // int32 x = 2;
  2079. if (this->_internal_x() != 0)
  2080. {
  2081. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
  2082. }
  2083. // double facing_direction = 4;
  2084. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2085. double tmp_facing_direction = this->_internal_facing_direction();
  2086. uint64_t raw_facing_direction;
  2087. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  2088. if (raw_facing_direction != 0)
  2089. {
  2090. total_size += 1 + 8;
  2091. }
  2092. // int32 y = 3;
  2093. if (this->_internal_y() != 0)
  2094. {
  2095. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
  2096. }
  2097. // .protobuf.PlayerType team = 6;
  2098. if (this->_internal_team() != 0)
  2099. {
  2100. total_size += 1 +
  2101. ::_pbi::WireFormatLite::EnumSize(this->_internal_team());
  2102. }
  2103. // int64 guid = 5;
  2104. if (this->_internal_guid() != 0)
  2105. {
  2106. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_guid());
  2107. }
  2108. // double bomb_range = 8;
  2109. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2110. double tmp_bomb_range = this->_internal_bomb_range();
  2111. uint64_t raw_bomb_range;
  2112. memcpy(&raw_bomb_range, &tmp_bomb_range, sizeof(tmp_bomb_range));
  2113. if (raw_bomb_range != 0)
  2114. {
  2115. total_size += 1 + 8;
  2116. }
  2117. // .protobuf.PlaceType place = 7;
  2118. if (this->_internal_place() != 0)
  2119. {
  2120. total_size += 1 +
  2121. ::_pbi::WireFormatLite::EnumSize(this->_internal_place());
  2122. }
  2123. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  2124. }
  2125. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfBullet::_class_data_ = {
  2126. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  2127. MessageOfBullet::MergeImpl};
  2128. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfBullet::GetClassData() const
  2129. {
  2130. return &_class_data_;
  2131. }
  2132. void MessageOfBullet::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  2133. {
  2134. auto* const _this = static_cast<MessageOfBullet*>(&to_msg);
  2135. auto& from = static_cast<const MessageOfBullet&>(from_msg);
  2136. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfBullet)
  2137. GOOGLE_DCHECK_NE(&from, _this);
  2138. uint32_t cached_has_bits = 0;
  2139. (void)cached_has_bits;
  2140. if (from._internal_type() != 0)
  2141. {
  2142. _this->_internal_set_type(from._internal_type());
  2143. }
  2144. if (from._internal_x() != 0)
  2145. {
  2146. _this->_internal_set_x(from._internal_x());
  2147. }
  2148. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2149. double tmp_facing_direction = from._internal_facing_direction();
  2150. uint64_t raw_facing_direction;
  2151. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  2152. if (raw_facing_direction != 0)
  2153. {
  2154. _this->_internal_set_facing_direction(from._internal_facing_direction());
  2155. }
  2156. if (from._internal_y() != 0)
  2157. {
  2158. _this->_internal_set_y(from._internal_y());
  2159. }
  2160. if (from._internal_team() != 0)
  2161. {
  2162. _this->_internal_set_team(from._internal_team());
  2163. }
  2164. if (from._internal_guid() != 0)
  2165. {
  2166. _this->_internal_set_guid(from._internal_guid());
  2167. }
  2168. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2169. double tmp_bomb_range = from._internal_bomb_range();
  2170. uint64_t raw_bomb_range;
  2171. memcpy(&raw_bomb_range, &tmp_bomb_range, sizeof(tmp_bomb_range));
  2172. if (raw_bomb_range != 0)
  2173. {
  2174. _this->_internal_set_bomb_range(from._internal_bomb_range());
  2175. }
  2176. if (from._internal_place() != 0)
  2177. {
  2178. _this->_internal_set_place(from._internal_place());
  2179. }
  2180. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2181. }
  2182. void MessageOfBullet::CopyFrom(const MessageOfBullet& from)
  2183. {
  2184. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfBullet)
  2185. if (&from == this)
  2186. return;
  2187. Clear();
  2188. MergeFrom(from);
  2189. }
  2190. bool MessageOfBullet::IsInitialized() const
  2191. {
  2192. return true;
  2193. }
  2194. void MessageOfBullet::InternalSwap(MessageOfBullet* other)
  2195. {
  2196. using std::swap;
  2197. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2198. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2199. PROTOBUF_FIELD_OFFSET(MessageOfBullet, _impl_.place_) + sizeof(MessageOfBullet::_impl_.place_) - PROTOBUF_FIELD_OFFSET(MessageOfBullet, _impl_.type_)>(
  2200. reinterpret_cast<char*>(&_impl_.type_),
  2201. reinterpret_cast<char*>(&other->_impl_.type_)
  2202. );
  2203. }
  2204. ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfBullet::GetMetadata() const
  2205. {
  2206. return ::_pbi::AssignDescriptors(
  2207. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[2]
  2208. );
  2209. }
  2210. // ===================================================================
  2211. class MessageOfBombedBullet::_Internal
  2212. {
  2213. public:
  2214. };
  2215. MessageOfBombedBullet::MessageOfBombedBullet(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  2216. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  2217. {
  2218. SharedCtor(arena, is_message_owned);
  2219. // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfBombedBullet)
  2220. }
  2221. MessageOfBombedBullet::MessageOfBombedBullet(const MessageOfBombedBullet& from) :
  2222. ::PROTOBUF_NAMESPACE_ID::Message()
  2223. {
  2224. MessageOfBombedBullet* const _this = this;
  2225. (void)_this;
  2226. new (&_impl_) Impl_{
  2227. 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_)*/ {}};
  2228. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2229. ::memcpy(&_impl_.type_, &from._impl_.type_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.y_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.y_));
  2230. // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfBombedBullet)
  2231. }
  2232. inline void MessageOfBombedBullet::SharedCtor(
  2233. ::_pb::Arena* arena, bool is_message_owned
  2234. )
  2235. {
  2236. (void)arena;
  2237. (void)is_message_owned;
  2238. new (&_impl_) Impl_{
  2239. 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_)*/ {}};
  2240. }
  2241. MessageOfBombedBullet::~MessageOfBombedBullet()
  2242. {
  2243. // @@protoc_insertion_point(destructor:protobuf.MessageOfBombedBullet)
  2244. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  2245. {
  2246. (void)arena;
  2247. return;
  2248. }
  2249. SharedDtor();
  2250. }
  2251. inline void MessageOfBombedBullet::SharedDtor()
  2252. {
  2253. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2254. }
  2255. void MessageOfBombedBullet::SetCachedSize(int size) const
  2256. {
  2257. _impl_._cached_size_.Set(size);
  2258. }
  2259. void MessageOfBombedBullet::Clear()
  2260. {
  2261. // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfBombedBullet)
  2262. uint32_t cached_has_bits = 0;
  2263. // Prevent compiler warnings about cached_has_bits being unused
  2264. (void)cached_has_bits;
  2265. ::memset(&_impl_.type_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.y_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.y_));
  2266. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2267. }
  2268. const char* MessageOfBombedBullet::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  2269. {
  2270. #define CHK_(x) \
  2271. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  2272. goto failure
  2273. while (!ctx->Done(&ptr))
  2274. {
  2275. uint32_t tag;
  2276. ptr = ::_pbi::ReadTag(ptr, &tag);
  2277. switch (tag >> 3)
  2278. {
  2279. // .protobuf.BulletType type = 1;
  2280. case 1:
  2281. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  2282. {
  2283. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2284. CHK_(ptr);
  2285. _internal_set_type(static_cast<::protobuf::BulletType>(val));
  2286. }
  2287. else
  2288. goto handle_unusual;
  2289. continue;
  2290. // int32 x = 2;
  2291. case 2:
  2292. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  2293. {
  2294. _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2295. CHK_(ptr);
  2296. }
  2297. else
  2298. goto handle_unusual;
  2299. continue;
  2300. // int32 y = 3;
  2301. case 3:
  2302. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
  2303. {
  2304. _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2305. CHK_(ptr);
  2306. }
  2307. else
  2308. goto handle_unusual;
  2309. continue;
  2310. // double facing_direction = 4;
  2311. case 4:
  2312. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 33))
  2313. {
  2314. _impl_.facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  2315. ptr += sizeof(double);
  2316. }
  2317. else
  2318. goto handle_unusual;
  2319. continue;
  2320. // int64 mapping_id = 5;
  2321. case 5:
  2322. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40))
  2323. {
  2324. _impl_.mapping_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2325. CHK_(ptr);
  2326. }
  2327. else
  2328. goto handle_unusual;
  2329. continue;
  2330. // double bomb_range = 6;
  2331. case 6:
  2332. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 49))
  2333. {
  2334. _impl_.bomb_range_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  2335. ptr += sizeof(double);
  2336. }
  2337. else
  2338. goto handle_unusual;
  2339. continue;
  2340. default:
  2341. goto handle_unusual;
  2342. } // switch
  2343. handle_unusual:
  2344. if ((tag == 0) || ((tag & 7) == 4))
  2345. {
  2346. CHK_(ptr);
  2347. ctx->SetLastTag(tag);
  2348. goto message_done;
  2349. }
  2350. ptr = UnknownFieldParse(
  2351. tag,
  2352. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2353. ptr,
  2354. ctx
  2355. );
  2356. CHK_(ptr != nullptr);
  2357. } // while
  2358. message_done:
  2359. return ptr;
  2360. failure:
  2361. ptr = nullptr;
  2362. goto message_done;
  2363. #undef CHK_
  2364. }
  2365. uint8_t* MessageOfBombedBullet::_InternalSerialize(
  2366. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  2367. ) const
  2368. {
  2369. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfBombedBullet)
  2370. uint32_t cached_has_bits = 0;
  2371. (void)cached_has_bits;
  2372. // .protobuf.BulletType type = 1;
  2373. if (this->_internal_type() != 0)
  2374. {
  2375. target = stream->EnsureSpace(target);
  2376. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  2377. 1, this->_internal_type(), target
  2378. );
  2379. }
  2380. // int32 x = 2;
  2381. if (this->_internal_x() != 0)
  2382. {
  2383. target = stream->EnsureSpace(target);
  2384. target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target);
  2385. }
  2386. // int32 y = 3;
  2387. if (this->_internal_y() != 0)
  2388. {
  2389. target = stream->EnsureSpace(target);
  2390. target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target);
  2391. }
  2392. // double facing_direction = 4;
  2393. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2394. double tmp_facing_direction = this->_internal_facing_direction();
  2395. uint64_t raw_facing_direction;
  2396. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  2397. if (raw_facing_direction != 0)
  2398. {
  2399. target = stream->EnsureSpace(target);
  2400. target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target);
  2401. }
  2402. // int64 mapping_id = 5;
  2403. if (this->_internal_mapping_id() != 0)
  2404. {
  2405. target = stream->EnsureSpace(target);
  2406. target = ::_pbi::WireFormatLite::WriteInt64ToArray(5, this->_internal_mapping_id(), target);
  2407. }
  2408. // double bomb_range = 6;
  2409. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2410. double tmp_bomb_range = this->_internal_bomb_range();
  2411. uint64_t raw_bomb_range;
  2412. memcpy(&raw_bomb_range, &tmp_bomb_range, sizeof(tmp_bomb_range));
  2413. if (raw_bomb_range != 0)
  2414. {
  2415. target = stream->EnsureSpace(target);
  2416. target = ::_pbi::WireFormatLite::WriteDoubleToArray(6, this->_internal_bomb_range(), target);
  2417. }
  2418. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  2419. {
  2420. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  2421. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  2422. );
  2423. }
  2424. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfBombedBullet)
  2425. return target;
  2426. }
  2427. size_t MessageOfBombedBullet::ByteSizeLong() const
  2428. {
  2429. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfBombedBullet)
  2430. size_t total_size = 0;
  2431. uint32_t cached_has_bits = 0;
  2432. // Prevent compiler warnings about cached_has_bits being unused
  2433. (void)cached_has_bits;
  2434. // .protobuf.BulletType type = 1;
  2435. if (this->_internal_type() != 0)
  2436. {
  2437. total_size += 1 +
  2438. ::_pbi::WireFormatLite::EnumSize(this->_internal_type());
  2439. }
  2440. // int32 x = 2;
  2441. if (this->_internal_x() != 0)
  2442. {
  2443. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
  2444. }
  2445. // double facing_direction = 4;
  2446. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2447. double tmp_facing_direction = this->_internal_facing_direction();
  2448. uint64_t raw_facing_direction;
  2449. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  2450. if (raw_facing_direction != 0)
  2451. {
  2452. total_size += 1 + 8;
  2453. }
  2454. // int64 mapping_id = 5;
  2455. if (this->_internal_mapping_id() != 0)
  2456. {
  2457. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_mapping_id());
  2458. }
  2459. // double bomb_range = 6;
  2460. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2461. double tmp_bomb_range = this->_internal_bomb_range();
  2462. uint64_t raw_bomb_range;
  2463. memcpy(&raw_bomb_range, &tmp_bomb_range, sizeof(tmp_bomb_range));
  2464. if (raw_bomb_range != 0)
  2465. {
  2466. total_size += 1 + 8;
  2467. }
  2468. // int32 y = 3;
  2469. if (this->_internal_y() != 0)
  2470. {
  2471. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
  2472. }
  2473. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  2474. }
  2475. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfBombedBullet::_class_data_ = {
  2476. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  2477. MessageOfBombedBullet::MergeImpl};
  2478. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfBombedBullet::GetClassData() const
  2479. {
  2480. return &_class_data_;
  2481. }
  2482. void MessageOfBombedBullet::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  2483. {
  2484. auto* const _this = static_cast<MessageOfBombedBullet*>(&to_msg);
  2485. auto& from = static_cast<const MessageOfBombedBullet&>(from_msg);
  2486. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfBombedBullet)
  2487. GOOGLE_DCHECK_NE(&from, _this);
  2488. uint32_t cached_has_bits = 0;
  2489. (void)cached_has_bits;
  2490. if (from._internal_type() != 0)
  2491. {
  2492. _this->_internal_set_type(from._internal_type());
  2493. }
  2494. if (from._internal_x() != 0)
  2495. {
  2496. _this->_internal_set_x(from._internal_x());
  2497. }
  2498. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2499. double tmp_facing_direction = from._internal_facing_direction();
  2500. uint64_t raw_facing_direction;
  2501. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  2502. if (raw_facing_direction != 0)
  2503. {
  2504. _this->_internal_set_facing_direction(from._internal_facing_direction());
  2505. }
  2506. if (from._internal_mapping_id() != 0)
  2507. {
  2508. _this->_internal_set_mapping_id(from._internal_mapping_id());
  2509. }
  2510. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2511. double tmp_bomb_range = from._internal_bomb_range();
  2512. uint64_t raw_bomb_range;
  2513. memcpy(&raw_bomb_range, &tmp_bomb_range, sizeof(tmp_bomb_range));
  2514. if (raw_bomb_range != 0)
  2515. {
  2516. _this->_internal_set_bomb_range(from._internal_bomb_range());
  2517. }
  2518. if (from._internal_y() != 0)
  2519. {
  2520. _this->_internal_set_y(from._internal_y());
  2521. }
  2522. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2523. }
  2524. void MessageOfBombedBullet::CopyFrom(const MessageOfBombedBullet& from)
  2525. {
  2526. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfBombedBullet)
  2527. if (&from == this)
  2528. return;
  2529. Clear();
  2530. MergeFrom(from);
  2531. }
  2532. bool MessageOfBombedBullet::IsInitialized() const
  2533. {
  2534. return true;
  2535. }
  2536. void MessageOfBombedBullet::InternalSwap(MessageOfBombedBullet* other)
  2537. {
  2538. using std::swap;
  2539. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2540. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2541. PROTOBUF_FIELD_OFFSET(MessageOfBombedBullet, _impl_.y_) + sizeof(MessageOfBombedBullet::_impl_.y_) - PROTOBUF_FIELD_OFFSET(MessageOfBombedBullet, _impl_.type_)>(
  2542. reinterpret_cast<char*>(&_impl_.type_),
  2543. reinterpret_cast<char*>(&other->_impl_.type_)
  2544. );
  2545. }
  2546. ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfBombedBullet::GetMetadata() const
  2547. {
  2548. return ::_pbi::AssignDescriptors(
  2549. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[3]
  2550. );
  2551. }
  2552. // ===================================================================
  2553. class MessageOfProp::_Internal
  2554. {
  2555. public:
  2556. };
  2557. MessageOfProp::MessageOfProp(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  2558. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  2559. {
  2560. SharedCtor(arena, is_message_owned);
  2561. // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfProp)
  2562. }
  2563. MessageOfProp::MessageOfProp(const MessageOfProp& from) :
  2564. ::PROTOBUF_NAMESPACE_ID::Message()
  2565. {
  2566. MessageOfProp* const _this = this;
  2567. (void)_this;
  2568. new (&_impl_) Impl_{
  2569. decltype(_impl_.type_){}, decltype(_impl_.x_){}, decltype(_impl_.facing_direction_){}, decltype(_impl_.y_){}, decltype(_impl_.place_){}, decltype(_impl_.guid_){}, decltype(_impl_.size_){}, decltype(_impl_.is_moving_){}, /*decltype(_impl_._cached_size_)*/ {}};
  2570. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2571. ::memcpy(&_impl_.type_, &from._impl_.type_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.is_moving_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.is_moving_));
  2572. // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfProp)
  2573. }
  2574. inline void MessageOfProp::SharedCtor(
  2575. ::_pb::Arena* arena, bool is_message_owned
  2576. )
  2577. {
  2578. (void)arena;
  2579. (void)is_message_owned;
  2580. new (&_impl_) Impl_{
  2581. decltype(_impl_.type_){0}, decltype(_impl_.x_){0}, decltype(_impl_.facing_direction_){0}, decltype(_impl_.y_){0}, decltype(_impl_.place_){0}, decltype(_impl_.guid_){int64_t{0}}, decltype(_impl_.size_){0}, decltype(_impl_.is_moving_){false}, /*decltype(_impl_._cached_size_)*/ {}};
  2582. }
  2583. MessageOfProp::~MessageOfProp()
  2584. {
  2585. // @@protoc_insertion_point(destructor:protobuf.MessageOfProp)
  2586. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  2587. {
  2588. (void)arena;
  2589. return;
  2590. }
  2591. SharedDtor();
  2592. }
  2593. inline void MessageOfProp::SharedDtor()
  2594. {
  2595. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2596. }
  2597. void MessageOfProp::SetCachedSize(int size) const
  2598. {
  2599. _impl_._cached_size_.Set(size);
  2600. }
  2601. void MessageOfProp::Clear()
  2602. {
  2603. // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfProp)
  2604. uint32_t cached_has_bits = 0;
  2605. // Prevent compiler warnings about cached_has_bits being unused
  2606. (void)cached_has_bits;
  2607. ::memset(&_impl_.type_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.is_moving_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.is_moving_));
  2608. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2609. }
  2610. const char* MessageOfProp::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  2611. {
  2612. #define CHK_(x) \
  2613. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  2614. goto failure
  2615. while (!ctx->Done(&ptr))
  2616. {
  2617. uint32_t tag;
  2618. ptr = ::_pbi::ReadTag(ptr, &tag);
  2619. switch (tag >> 3)
  2620. {
  2621. // .protobuf.PropType type = 1;
  2622. case 1:
  2623. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  2624. {
  2625. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2626. CHK_(ptr);
  2627. _internal_set_type(static_cast<::protobuf::PropType>(val));
  2628. }
  2629. else
  2630. goto handle_unusual;
  2631. continue;
  2632. // int32 x = 2;
  2633. case 2:
  2634. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  2635. {
  2636. _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2637. CHK_(ptr);
  2638. }
  2639. else
  2640. goto handle_unusual;
  2641. continue;
  2642. // int32 y = 3;
  2643. case 3:
  2644. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
  2645. {
  2646. _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2647. CHK_(ptr);
  2648. }
  2649. else
  2650. goto handle_unusual;
  2651. continue;
  2652. // double facing_direction = 4;
  2653. case 4:
  2654. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 33))
  2655. {
  2656. _impl_.facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  2657. ptr += sizeof(double);
  2658. }
  2659. else
  2660. goto handle_unusual;
  2661. continue;
  2662. // int64 guid = 5;
  2663. case 5:
  2664. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40))
  2665. {
  2666. _impl_.guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2667. CHK_(ptr);
  2668. }
  2669. else
  2670. goto handle_unusual;
  2671. continue;
  2672. // .protobuf.PlaceType place = 6;
  2673. case 6:
  2674. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48))
  2675. {
  2676. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2677. CHK_(ptr);
  2678. _internal_set_place(static_cast<::protobuf::PlaceType>(val));
  2679. }
  2680. else
  2681. goto handle_unusual;
  2682. continue;
  2683. // int32 size = 7;
  2684. case 7:
  2685. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56))
  2686. {
  2687. _impl_.size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2688. CHK_(ptr);
  2689. }
  2690. else
  2691. goto handle_unusual;
  2692. continue;
  2693. // bool is_moving = 8;
  2694. case 8:
  2695. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64))
  2696. {
  2697. _impl_.is_moving_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2698. CHK_(ptr);
  2699. }
  2700. else
  2701. goto handle_unusual;
  2702. continue;
  2703. default:
  2704. goto handle_unusual;
  2705. } // switch
  2706. handle_unusual:
  2707. if ((tag == 0) || ((tag & 7) == 4))
  2708. {
  2709. CHK_(ptr);
  2710. ctx->SetLastTag(tag);
  2711. goto message_done;
  2712. }
  2713. ptr = UnknownFieldParse(
  2714. tag,
  2715. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2716. ptr,
  2717. ctx
  2718. );
  2719. CHK_(ptr != nullptr);
  2720. } // while
  2721. message_done:
  2722. return ptr;
  2723. failure:
  2724. ptr = nullptr;
  2725. goto message_done;
  2726. #undef CHK_
  2727. }
  2728. uint8_t* MessageOfProp::_InternalSerialize(
  2729. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  2730. ) const
  2731. {
  2732. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfProp)
  2733. uint32_t cached_has_bits = 0;
  2734. (void)cached_has_bits;
  2735. // .protobuf.PropType type = 1;
  2736. if (this->_internal_type() != 0)
  2737. {
  2738. target = stream->EnsureSpace(target);
  2739. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  2740. 1, this->_internal_type(), target
  2741. );
  2742. }
  2743. // int32 x = 2;
  2744. if (this->_internal_x() != 0)
  2745. {
  2746. target = stream->EnsureSpace(target);
  2747. target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target);
  2748. }
  2749. // int32 y = 3;
  2750. if (this->_internal_y() != 0)
  2751. {
  2752. target = stream->EnsureSpace(target);
  2753. target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target);
  2754. }
  2755. // double facing_direction = 4;
  2756. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2757. double tmp_facing_direction = this->_internal_facing_direction();
  2758. uint64_t raw_facing_direction;
  2759. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  2760. if (raw_facing_direction != 0)
  2761. {
  2762. target = stream->EnsureSpace(target);
  2763. target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target);
  2764. }
  2765. // int64 guid = 5;
  2766. if (this->_internal_guid() != 0)
  2767. {
  2768. target = stream->EnsureSpace(target);
  2769. target = ::_pbi::WireFormatLite::WriteInt64ToArray(5, this->_internal_guid(), target);
  2770. }
  2771. // .protobuf.PlaceType place = 6;
  2772. if (this->_internal_place() != 0)
  2773. {
  2774. target = stream->EnsureSpace(target);
  2775. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  2776. 6, this->_internal_place(), target
  2777. );
  2778. }
  2779. // int32 size = 7;
  2780. if (this->_internal_size() != 0)
  2781. {
  2782. target = stream->EnsureSpace(target);
  2783. target = ::_pbi::WireFormatLite::WriteInt32ToArray(7, this->_internal_size(), target);
  2784. }
  2785. // bool is_moving = 8;
  2786. if (this->_internal_is_moving() != 0)
  2787. {
  2788. target = stream->EnsureSpace(target);
  2789. target = ::_pbi::WireFormatLite::WriteBoolToArray(8, this->_internal_is_moving(), target);
  2790. }
  2791. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  2792. {
  2793. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  2794. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  2795. );
  2796. }
  2797. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfProp)
  2798. return target;
  2799. }
  2800. size_t MessageOfProp::ByteSizeLong() const
  2801. {
  2802. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfProp)
  2803. size_t total_size = 0;
  2804. uint32_t cached_has_bits = 0;
  2805. // Prevent compiler warnings about cached_has_bits being unused
  2806. (void)cached_has_bits;
  2807. // .protobuf.PropType type = 1;
  2808. if (this->_internal_type() != 0)
  2809. {
  2810. total_size += 1 +
  2811. ::_pbi::WireFormatLite::EnumSize(this->_internal_type());
  2812. }
  2813. // int32 x = 2;
  2814. if (this->_internal_x() != 0)
  2815. {
  2816. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
  2817. }
  2818. // double facing_direction = 4;
  2819. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2820. double tmp_facing_direction = this->_internal_facing_direction();
  2821. uint64_t raw_facing_direction;
  2822. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  2823. if (raw_facing_direction != 0)
  2824. {
  2825. total_size += 1 + 8;
  2826. }
  2827. // int32 y = 3;
  2828. if (this->_internal_y() != 0)
  2829. {
  2830. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
  2831. }
  2832. // .protobuf.PlaceType place = 6;
  2833. if (this->_internal_place() != 0)
  2834. {
  2835. total_size += 1 +
  2836. ::_pbi::WireFormatLite::EnumSize(this->_internal_place());
  2837. }
  2838. // int64 guid = 5;
  2839. if (this->_internal_guid() != 0)
  2840. {
  2841. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_guid());
  2842. }
  2843. // int32 size = 7;
  2844. if (this->_internal_size() != 0)
  2845. {
  2846. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_size());
  2847. }
  2848. // bool is_moving = 8;
  2849. if (this->_internal_is_moving() != 0)
  2850. {
  2851. total_size += 1 + 1;
  2852. }
  2853. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  2854. }
  2855. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfProp::_class_data_ = {
  2856. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  2857. MessageOfProp::MergeImpl};
  2858. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfProp::GetClassData() const
  2859. {
  2860. return &_class_data_;
  2861. }
  2862. void MessageOfProp::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  2863. {
  2864. auto* const _this = static_cast<MessageOfProp*>(&to_msg);
  2865. auto& from = static_cast<const MessageOfProp&>(from_msg);
  2866. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfProp)
  2867. GOOGLE_DCHECK_NE(&from, _this);
  2868. uint32_t cached_has_bits = 0;
  2869. (void)cached_has_bits;
  2870. if (from._internal_type() != 0)
  2871. {
  2872. _this->_internal_set_type(from._internal_type());
  2873. }
  2874. if (from._internal_x() != 0)
  2875. {
  2876. _this->_internal_set_x(from._internal_x());
  2877. }
  2878. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  2879. double tmp_facing_direction = from._internal_facing_direction();
  2880. uint64_t raw_facing_direction;
  2881. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  2882. if (raw_facing_direction != 0)
  2883. {
  2884. _this->_internal_set_facing_direction(from._internal_facing_direction());
  2885. }
  2886. if (from._internal_y() != 0)
  2887. {
  2888. _this->_internal_set_y(from._internal_y());
  2889. }
  2890. if (from._internal_place() != 0)
  2891. {
  2892. _this->_internal_set_place(from._internal_place());
  2893. }
  2894. if (from._internal_guid() != 0)
  2895. {
  2896. _this->_internal_set_guid(from._internal_guid());
  2897. }
  2898. if (from._internal_size() != 0)
  2899. {
  2900. _this->_internal_set_size(from._internal_size());
  2901. }
  2902. if (from._internal_is_moving() != 0)
  2903. {
  2904. _this->_internal_set_is_moving(from._internal_is_moving());
  2905. }
  2906. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2907. }
  2908. void MessageOfProp::CopyFrom(const MessageOfProp& from)
  2909. {
  2910. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfProp)
  2911. if (&from == this)
  2912. return;
  2913. Clear();
  2914. MergeFrom(from);
  2915. }
  2916. bool MessageOfProp::IsInitialized() const
  2917. {
  2918. return true;
  2919. }
  2920. void MessageOfProp::InternalSwap(MessageOfProp* other)
  2921. {
  2922. using std::swap;
  2923. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2924. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2925. PROTOBUF_FIELD_OFFSET(MessageOfProp, _impl_.is_moving_) + sizeof(MessageOfProp::_impl_.is_moving_) - PROTOBUF_FIELD_OFFSET(MessageOfProp, _impl_.type_)>(
  2926. reinterpret_cast<char*>(&_impl_.type_),
  2927. reinterpret_cast<char*>(&other->_impl_.type_)
  2928. );
  2929. }
  2930. ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfProp::GetMetadata() const
  2931. {
  2932. return ::_pbi::AssignDescriptors(
  2933. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[4]
  2934. );
  2935. }
  2936. // ===================================================================
  2937. class MessageOfPickedProp::_Internal
  2938. {
  2939. public:
  2940. };
  2941. MessageOfPickedProp::MessageOfPickedProp(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  2942. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  2943. {
  2944. SharedCtor(arena, is_message_owned);
  2945. // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfPickedProp)
  2946. }
  2947. MessageOfPickedProp::MessageOfPickedProp(const MessageOfPickedProp& from) :
  2948. ::PROTOBUF_NAMESPACE_ID::Message()
  2949. {
  2950. MessageOfPickedProp* const _this = this;
  2951. (void)_this;
  2952. new (&_impl_) Impl_{
  2953. decltype(_impl_.type_){}, decltype(_impl_.x_){}, decltype(_impl_.facing_direction_){}, decltype(_impl_.mapping_id_){}, decltype(_impl_.y_){}, /*decltype(_impl_._cached_size_)*/ {}};
  2954. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2955. ::memcpy(&_impl_.type_, &from._impl_.type_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.y_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.y_));
  2956. // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfPickedProp)
  2957. }
  2958. inline void MessageOfPickedProp::SharedCtor(
  2959. ::_pb::Arena* arena, bool is_message_owned
  2960. )
  2961. {
  2962. (void)arena;
  2963. (void)is_message_owned;
  2964. new (&_impl_) Impl_{
  2965. 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_)*/ {}};
  2966. }
  2967. MessageOfPickedProp::~MessageOfPickedProp()
  2968. {
  2969. // @@protoc_insertion_point(destructor:protobuf.MessageOfPickedProp)
  2970. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  2971. {
  2972. (void)arena;
  2973. return;
  2974. }
  2975. SharedDtor();
  2976. }
  2977. inline void MessageOfPickedProp::SharedDtor()
  2978. {
  2979. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2980. }
  2981. void MessageOfPickedProp::SetCachedSize(int size) const
  2982. {
  2983. _impl_._cached_size_.Set(size);
  2984. }
  2985. void MessageOfPickedProp::Clear()
  2986. {
  2987. // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfPickedProp)
  2988. uint32_t cached_has_bits = 0;
  2989. // Prevent compiler warnings about cached_has_bits being unused
  2990. (void)cached_has_bits;
  2991. ::memset(&_impl_.type_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.y_) - reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.y_));
  2992. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2993. }
  2994. const char* MessageOfPickedProp::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  2995. {
  2996. #define CHK_(x) \
  2997. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  2998. goto failure
  2999. while (!ctx->Done(&ptr))
  3000. {
  3001. uint32_t tag;
  3002. ptr = ::_pbi::ReadTag(ptr, &tag);
  3003. switch (tag >> 3)
  3004. {
  3005. // .protobuf.PropType type = 1;
  3006. case 1:
  3007. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  3008. {
  3009. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3010. CHK_(ptr);
  3011. _internal_set_type(static_cast<::protobuf::PropType>(val));
  3012. }
  3013. else
  3014. goto handle_unusual;
  3015. continue;
  3016. // int32 x = 2;
  3017. case 2:
  3018. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  3019. {
  3020. _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3021. CHK_(ptr);
  3022. }
  3023. else
  3024. goto handle_unusual;
  3025. continue;
  3026. // int32 y = 3;
  3027. case 3:
  3028. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
  3029. {
  3030. _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3031. CHK_(ptr);
  3032. }
  3033. else
  3034. goto handle_unusual;
  3035. continue;
  3036. // double facing_direction = 4;
  3037. case 4:
  3038. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 33))
  3039. {
  3040. _impl_.facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  3041. ptr += sizeof(double);
  3042. }
  3043. else
  3044. goto handle_unusual;
  3045. continue;
  3046. // int64 mapping_id = 5;
  3047. case 5:
  3048. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40))
  3049. {
  3050. _impl_.mapping_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3051. CHK_(ptr);
  3052. }
  3053. else
  3054. goto handle_unusual;
  3055. continue;
  3056. default:
  3057. goto handle_unusual;
  3058. } // switch
  3059. handle_unusual:
  3060. if ((tag == 0) || ((tag & 7) == 4))
  3061. {
  3062. CHK_(ptr);
  3063. ctx->SetLastTag(tag);
  3064. goto message_done;
  3065. }
  3066. ptr = UnknownFieldParse(
  3067. tag,
  3068. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3069. ptr,
  3070. ctx
  3071. );
  3072. CHK_(ptr != nullptr);
  3073. } // while
  3074. message_done:
  3075. return ptr;
  3076. failure:
  3077. ptr = nullptr;
  3078. goto message_done;
  3079. #undef CHK_
  3080. }
  3081. uint8_t* MessageOfPickedProp::_InternalSerialize(
  3082. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  3083. ) const
  3084. {
  3085. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfPickedProp)
  3086. uint32_t cached_has_bits = 0;
  3087. (void)cached_has_bits;
  3088. // .protobuf.PropType type = 1;
  3089. if (this->_internal_type() != 0)
  3090. {
  3091. target = stream->EnsureSpace(target);
  3092. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  3093. 1, this->_internal_type(), target
  3094. );
  3095. }
  3096. // int32 x = 2;
  3097. if (this->_internal_x() != 0)
  3098. {
  3099. target = stream->EnsureSpace(target);
  3100. target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target);
  3101. }
  3102. // int32 y = 3;
  3103. if (this->_internal_y() != 0)
  3104. {
  3105. target = stream->EnsureSpace(target);
  3106. target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target);
  3107. }
  3108. // double facing_direction = 4;
  3109. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  3110. double tmp_facing_direction = this->_internal_facing_direction();
  3111. uint64_t raw_facing_direction;
  3112. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  3113. if (raw_facing_direction != 0)
  3114. {
  3115. target = stream->EnsureSpace(target);
  3116. target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target);
  3117. }
  3118. // int64 mapping_id = 5;
  3119. if (this->_internal_mapping_id() != 0)
  3120. {
  3121. target = stream->EnsureSpace(target);
  3122. target = ::_pbi::WireFormatLite::WriteInt64ToArray(5, this->_internal_mapping_id(), target);
  3123. }
  3124. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  3125. {
  3126. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  3127. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  3128. );
  3129. }
  3130. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfPickedProp)
  3131. return target;
  3132. }
  3133. size_t MessageOfPickedProp::ByteSizeLong() const
  3134. {
  3135. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfPickedProp)
  3136. size_t total_size = 0;
  3137. uint32_t cached_has_bits = 0;
  3138. // Prevent compiler warnings about cached_has_bits being unused
  3139. (void)cached_has_bits;
  3140. // .protobuf.PropType type = 1;
  3141. if (this->_internal_type() != 0)
  3142. {
  3143. total_size += 1 +
  3144. ::_pbi::WireFormatLite::EnumSize(this->_internal_type());
  3145. }
  3146. // int32 x = 2;
  3147. if (this->_internal_x() != 0)
  3148. {
  3149. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_x());
  3150. }
  3151. // double facing_direction = 4;
  3152. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  3153. double tmp_facing_direction = this->_internal_facing_direction();
  3154. uint64_t raw_facing_direction;
  3155. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  3156. if (raw_facing_direction != 0)
  3157. {
  3158. total_size += 1 + 8;
  3159. }
  3160. // int64 mapping_id = 5;
  3161. if (this->_internal_mapping_id() != 0)
  3162. {
  3163. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_mapping_id());
  3164. }
  3165. // int32 y = 3;
  3166. if (this->_internal_y() != 0)
  3167. {
  3168. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_y());
  3169. }
  3170. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  3171. }
  3172. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfPickedProp::_class_data_ = {
  3173. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  3174. MessageOfPickedProp::MergeImpl};
  3175. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfPickedProp::GetClassData() const
  3176. {
  3177. return &_class_data_;
  3178. }
  3179. void MessageOfPickedProp::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  3180. {
  3181. auto* const _this = static_cast<MessageOfPickedProp*>(&to_msg);
  3182. auto& from = static_cast<const MessageOfPickedProp&>(from_msg);
  3183. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfPickedProp)
  3184. GOOGLE_DCHECK_NE(&from, _this);
  3185. uint32_t cached_has_bits = 0;
  3186. (void)cached_has_bits;
  3187. if (from._internal_type() != 0)
  3188. {
  3189. _this->_internal_set_type(from._internal_type());
  3190. }
  3191. if (from._internal_x() != 0)
  3192. {
  3193. _this->_internal_set_x(from._internal_x());
  3194. }
  3195. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  3196. double tmp_facing_direction = from._internal_facing_direction();
  3197. uint64_t raw_facing_direction;
  3198. memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction));
  3199. if (raw_facing_direction != 0)
  3200. {
  3201. _this->_internal_set_facing_direction(from._internal_facing_direction());
  3202. }
  3203. if (from._internal_mapping_id() != 0)
  3204. {
  3205. _this->_internal_set_mapping_id(from._internal_mapping_id());
  3206. }
  3207. if (from._internal_y() != 0)
  3208. {
  3209. _this->_internal_set_y(from._internal_y());
  3210. }
  3211. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3212. }
  3213. void MessageOfPickedProp::CopyFrom(const MessageOfPickedProp& from)
  3214. {
  3215. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfPickedProp)
  3216. if (&from == this)
  3217. return;
  3218. Clear();
  3219. MergeFrom(from);
  3220. }
  3221. bool MessageOfPickedProp::IsInitialized() const
  3222. {
  3223. return true;
  3224. }
  3225. void MessageOfPickedProp::InternalSwap(MessageOfPickedProp* other)
  3226. {
  3227. using std::swap;
  3228. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3229. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3230. PROTOBUF_FIELD_OFFSET(MessageOfPickedProp, _impl_.y_) + sizeof(MessageOfPickedProp::_impl_.y_) - PROTOBUF_FIELD_OFFSET(MessageOfPickedProp, _impl_.type_)>(
  3231. reinterpret_cast<char*>(&_impl_.type_),
  3232. reinterpret_cast<char*>(&other->_impl_.type_)
  3233. );
  3234. }
  3235. ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfPickedProp::GetMetadata() const
  3236. {
  3237. return ::_pbi::AssignDescriptors(
  3238. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[5]
  3239. );
  3240. }
  3241. // ===================================================================
  3242. class MessageOfMap_Row::_Internal
  3243. {
  3244. public:
  3245. };
  3246. MessageOfMap_Row::MessageOfMap_Row(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  3247. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  3248. {
  3249. SharedCtor(arena, is_message_owned);
  3250. // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfMap.Row)
  3251. }
  3252. MessageOfMap_Row::MessageOfMap_Row(const MessageOfMap_Row& from) :
  3253. ::PROTOBUF_NAMESPACE_ID::Message()
  3254. {
  3255. MessageOfMap_Row* const _this = this;
  3256. (void)_this;
  3257. new (&_impl_) Impl_{
  3258. decltype(_impl_.col_){from._impl_.col_}, /*decltype(_impl_._col_cached_byte_size_)*/ {0}, /*decltype(_impl_._cached_size_)*/ {}};
  3259. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3260. // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfMap.Row)
  3261. }
  3262. inline void MessageOfMap_Row::SharedCtor(
  3263. ::_pb::Arena* arena, bool is_message_owned
  3264. )
  3265. {
  3266. (void)arena;
  3267. (void)is_message_owned;
  3268. new (&_impl_) Impl_{
  3269. decltype(_impl_.col_){arena}, /*decltype(_impl_._col_cached_byte_size_)*/ {0}, /*decltype(_impl_._cached_size_)*/ {}};
  3270. }
  3271. MessageOfMap_Row::~MessageOfMap_Row()
  3272. {
  3273. // @@protoc_insertion_point(destructor:protobuf.MessageOfMap.Row)
  3274. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  3275. {
  3276. (void)arena;
  3277. return;
  3278. }
  3279. SharedDtor();
  3280. }
  3281. inline void MessageOfMap_Row::SharedDtor()
  3282. {
  3283. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3284. _impl_.col_.~RepeatedField();
  3285. }
  3286. void MessageOfMap_Row::SetCachedSize(int size) const
  3287. {
  3288. _impl_._cached_size_.Set(size);
  3289. }
  3290. void MessageOfMap_Row::Clear()
  3291. {
  3292. // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfMap.Row)
  3293. uint32_t cached_has_bits = 0;
  3294. // Prevent compiler warnings about cached_has_bits being unused
  3295. (void)cached_has_bits;
  3296. _impl_.col_.Clear();
  3297. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3298. }
  3299. const char* MessageOfMap_Row::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  3300. {
  3301. #define CHK_(x) \
  3302. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  3303. goto failure
  3304. while (!ctx->Done(&ptr))
  3305. {
  3306. uint32_t tag;
  3307. ptr = ::_pbi::ReadTag(ptr, &tag);
  3308. switch (tag >> 3)
  3309. {
  3310. // repeated .protobuf.PlaceType col = 1;
  3311. case 1:
  3312. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10))
  3313. {
  3314. ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_col(), ptr, ctx);
  3315. CHK_(ptr);
  3316. }
  3317. else if (static_cast<uint8_t>(tag) == 8)
  3318. {
  3319. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3320. CHK_(ptr);
  3321. _internal_add_col(static_cast<::protobuf::PlaceType>(val));
  3322. }
  3323. else
  3324. goto handle_unusual;
  3325. continue;
  3326. default:
  3327. goto handle_unusual;
  3328. } // switch
  3329. handle_unusual:
  3330. if ((tag == 0) || ((tag & 7) == 4))
  3331. {
  3332. CHK_(ptr);
  3333. ctx->SetLastTag(tag);
  3334. goto message_done;
  3335. }
  3336. ptr = UnknownFieldParse(
  3337. tag,
  3338. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3339. ptr,
  3340. ctx
  3341. );
  3342. CHK_(ptr != nullptr);
  3343. } // while
  3344. message_done:
  3345. return ptr;
  3346. failure:
  3347. ptr = nullptr;
  3348. goto message_done;
  3349. #undef CHK_
  3350. }
  3351. uint8_t* MessageOfMap_Row::_InternalSerialize(
  3352. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  3353. ) const
  3354. {
  3355. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfMap.Row)
  3356. uint32_t cached_has_bits = 0;
  3357. (void)cached_has_bits;
  3358. // repeated .protobuf.PlaceType col = 1;
  3359. {
  3360. int byte_size = _impl_._col_cached_byte_size_.load(std::memory_order_relaxed);
  3361. if (byte_size > 0)
  3362. {
  3363. target = stream->WriteEnumPacked(
  3364. 1, _impl_.col_, byte_size, target
  3365. );
  3366. }
  3367. }
  3368. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  3369. {
  3370. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  3371. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  3372. );
  3373. }
  3374. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfMap.Row)
  3375. return target;
  3376. }
  3377. size_t MessageOfMap_Row::ByteSizeLong() const
  3378. {
  3379. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfMap.Row)
  3380. size_t total_size = 0;
  3381. uint32_t cached_has_bits = 0;
  3382. // Prevent compiler warnings about cached_has_bits being unused
  3383. (void)cached_has_bits;
  3384. // repeated .protobuf.PlaceType col = 1;
  3385. {
  3386. size_t data_size = 0;
  3387. unsigned int count = static_cast<unsigned int>(this->_internal_col_size());
  3388. for (unsigned int i = 0; i < count; i++)
  3389. {
  3390. data_size += ::_pbi::WireFormatLite::EnumSize(
  3391. this->_internal_col(static_cast<int>(i))
  3392. );
  3393. }
  3394. if (data_size > 0)
  3395. {
  3396. total_size += 1 +
  3397. ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
  3398. }
  3399. int cached_size = ::_pbi::ToCachedSize(data_size);
  3400. _impl_._col_cached_byte_size_.store(cached_size, std::memory_order_relaxed);
  3401. total_size += data_size;
  3402. }
  3403. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  3404. }
  3405. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfMap_Row::_class_data_ = {
  3406. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  3407. MessageOfMap_Row::MergeImpl};
  3408. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfMap_Row::GetClassData() const
  3409. {
  3410. return &_class_data_;
  3411. }
  3412. void MessageOfMap_Row::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  3413. {
  3414. auto* const _this = static_cast<MessageOfMap_Row*>(&to_msg);
  3415. auto& from = static_cast<const MessageOfMap_Row&>(from_msg);
  3416. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfMap.Row)
  3417. GOOGLE_DCHECK_NE(&from, _this);
  3418. uint32_t cached_has_bits = 0;
  3419. (void)cached_has_bits;
  3420. _this->_impl_.col_.MergeFrom(from._impl_.col_);
  3421. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3422. }
  3423. void MessageOfMap_Row::CopyFrom(const MessageOfMap_Row& from)
  3424. {
  3425. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfMap.Row)
  3426. if (&from == this)
  3427. return;
  3428. Clear();
  3429. MergeFrom(from);
  3430. }
  3431. bool MessageOfMap_Row::IsInitialized() const
  3432. {
  3433. return true;
  3434. }
  3435. void MessageOfMap_Row::InternalSwap(MessageOfMap_Row* other)
  3436. {
  3437. using std::swap;
  3438. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3439. _impl_.col_.InternalSwap(&other->_impl_.col_);
  3440. }
  3441. ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfMap_Row::GetMetadata() const
  3442. {
  3443. return ::_pbi::AssignDescriptors(
  3444. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[6]
  3445. );
  3446. }
  3447. // ===================================================================
  3448. class MessageOfMap::_Internal
  3449. {
  3450. public:
  3451. };
  3452. MessageOfMap::MessageOfMap(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  3453. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  3454. {
  3455. SharedCtor(arena, is_message_owned);
  3456. // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfMap)
  3457. }
  3458. MessageOfMap::MessageOfMap(const MessageOfMap& from) :
  3459. ::PROTOBUF_NAMESPACE_ID::Message()
  3460. {
  3461. MessageOfMap* const _this = this;
  3462. (void)_this;
  3463. new (&_impl_) Impl_{
  3464. decltype(_impl_.row_){from._impl_.row_}, /*decltype(_impl_._cached_size_)*/ {}};
  3465. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3466. // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfMap)
  3467. }
  3468. inline void MessageOfMap::SharedCtor(
  3469. ::_pb::Arena* arena, bool is_message_owned
  3470. )
  3471. {
  3472. (void)arena;
  3473. (void)is_message_owned;
  3474. new (&_impl_) Impl_{
  3475. decltype(_impl_.row_){arena}, /*decltype(_impl_._cached_size_)*/ {}};
  3476. }
  3477. MessageOfMap::~MessageOfMap()
  3478. {
  3479. // @@protoc_insertion_point(destructor:protobuf.MessageOfMap)
  3480. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  3481. {
  3482. (void)arena;
  3483. return;
  3484. }
  3485. SharedDtor();
  3486. }
  3487. inline void MessageOfMap::SharedDtor()
  3488. {
  3489. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3490. _impl_.row_.~RepeatedPtrField();
  3491. }
  3492. void MessageOfMap::SetCachedSize(int size) const
  3493. {
  3494. _impl_._cached_size_.Set(size);
  3495. }
  3496. void MessageOfMap::Clear()
  3497. {
  3498. // @@protoc_insertion_point(message_clear_start:protobuf.MessageOfMap)
  3499. uint32_t cached_has_bits = 0;
  3500. // Prevent compiler warnings about cached_has_bits being unused
  3501. (void)cached_has_bits;
  3502. _impl_.row_.Clear();
  3503. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3504. }
  3505. const char* MessageOfMap::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  3506. {
  3507. #define CHK_(x) \
  3508. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  3509. goto failure
  3510. while (!ctx->Done(&ptr))
  3511. {
  3512. uint32_t tag;
  3513. ptr = ::_pbi::ReadTag(ptr, &tag);
  3514. switch (tag >> 3)
  3515. {
  3516. // repeated .protobuf.MessageOfMap.Row row = 2;
  3517. case 2:
  3518. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18))
  3519. {
  3520. ptr -= 1;
  3521. do
  3522. {
  3523. ptr += 1;
  3524. ptr = ctx->ParseMessage(_internal_add_row(), ptr);
  3525. CHK_(ptr);
  3526. if (!ctx->DataAvailable(ptr))
  3527. break;
  3528. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
  3529. }
  3530. else
  3531. goto handle_unusual;
  3532. continue;
  3533. default:
  3534. goto handle_unusual;
  3535. } // switch
  3536. handle_unusual:
  3537. if ((tag == 0) || ((tag & 7) == 4))
  3538. {
  3539. CHK_(ptr);
  3540. ctx->SetLastTag(tag);
  3541. goto message_done;
  3542. }
  3543. ptr = UnknownFieldParse(
  3544. tag,
  3545. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3546. ptr,
  3547. ctx
  3548. );
  3549. CHK_(ptr != nullptr);
  3550. } // while
  3551. message_done:
  3552. return ptr;
  3553. failure:
  3554. ptr = nullptr;
  3555. goto message_done;
  3556. #undef CHK_
  3557. }
  3558. uint8_t* MessageOfMap::_InternalSerialize(
  3559. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  3560. ) const
  3561. {
  3562. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfMap)
  3563. uint32_t cached_has_bits = 0;
  3564. (void)cached_has_bits;
  3565. // repeated .protobuf.MessageOfMap.Row row = 2;
  3566. for (unsigned i = 0,
  3567. n = static_cast<unsigned>(this->_internal_row_size());
  3568. i < n;
  3569. i++)
  3570. {
  3571. const auto& repfield = this->_internal_row(i);
  3572. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  3573. InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
  3574. }
  3575. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  3576. {
  3577. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  3578. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  3579. );
  3580. }
  3581. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfMap)
  3582. return target;
  3583. }
  3584. size_t MessageOfMap::ByteSizeLong() const
  3585. {
  3586. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfMap)
  3587. size_t total_size = 0;
  3588. uint32_t cached_has_bits = 0;
  3589. // Prevent compiler warnings about cached_has_bits being unused
  3590. (void)cached_has_bits;
  3591. // repeated .protobuf.MessageOfMap.Row row = 2;
  3592. total_size += 1UL * this->_internal_row_size();
  3593. for (const auto& msg : this->_impl_.row_)
  3594. {
  3595. total_size +=
  3596. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  3597. }
  3598. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  3599. }
  3600. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfMap::_class_data_ = {
  3601. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  3602. MessageOfMap::MergeImpl};
  3603. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageOfMap::GetClassData() const
  3604. {
  3605. return &_class_data_;
  3606. }
  3607. void MessageOfMap::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  3608. {
  3609. auto* const _this = static_cast<MessageOfMap*>(&to_msg);
  3610. auto& from = static_cast<const MessageOfMap&>(from_msg);
  3611. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfMap)
  3612. GOOGLE_DCHECK_NE(&from, _this);
  3613. uint32_t cached_has_bits = 0;
  3614. (void)cached_has_bits;
  3615. _this->_impl_.row_.MergeFrom(from._impl_.row_);
  3616. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3617. }
  3618. void MessageOfMap::CopyFrom(const MessageOfMap& from)
  3619. {
  3620. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfMap)
  3621. if (&from == this)
  3622. return;
  3623. Clear();
  3624. MergeFrom(from);
  3625. }
  3626. bool MessageOfMap::IsInitialized() const
  3627. {
  3628. return true;
  3629. }
  3630. void MessageOfMap::InternalSwap(MessageOfMap* other)
  3631. {
  3632. using std::swap;
  3633. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3634. _impl_.row_.InternalSwap(&other->_impl_.row_);
  3635. }
  3636. ::PROTOBUF_NAMESPACE_ID::Metadata MessageOfMap::GetMetadata() const
  3637. {
  3638. return ::_pbi::AssignDescriptors(
  3639. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[7]
  3640. );
  3641. }
  3642. // ===================================================================
  3643. class MessageToClient::_Internal
  3644. {
  3645. public:
  3646. static const ::protobuf::MessageOfMap& map_message(const MessageToClient* msg);
  3647. };
  3648. const ::protobuf::MessageOfMap&
  3649. MessageToClient::_Internal::map_message(const MessageToClient* msg)
  3650. {
  3651. return *msg->_impl_.map_message_;
  3652. }
  3653. MessageToClient::MessageToClient(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  3654. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  3655. {
  3656. SharedCtor(arena, is_message_owned);
  3657. // @@protoc_insertion_point(arena_constructor:protobuf.MessageToClient)
  3658. }
  3659. MessageToClient::MessageToClient(const MessageToClient& from) :
  3660. ::PROTOBUF_NAMESPACE_ID::Message()
  3661. {
  3662. MessageToClient* const _this = this;
  3663. (void)_this;
  3664. new (&_impl_) Impl_{
  3665. decltype(_impl_.student_message_){from._impl_.student_message_}, decltype(_impl_.tricker_message_){from._impl_.tricker_message_}, decltype(_impl_.prop_message_){from._impl_.prop_message_}, decltype(_impl_.bullet_message_){from._impl_.bullet_message_}, decltype(_impl_.bombed_bullet_message_){from._impl_.bombed_bullet_message_}, decltype(_impl_.map_message_){nullptr}, decltype(_impl_.game_state_){}, /*decltype(_impl_._cached_size_)*/ {}};
  3666. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3667. if (from._internal_has_map_message())
  3668. {
  3669. _this->_impl_.map_message_ = new ::protobuf::MessageOfMap(*from._impl_.map_message_);
  3670. }
  3671. _this->_impl_.game_state_ = from._impl_.game_state_;
  3672. // @@protoc_insertion_point(copy_constructor:protobuf.MessageToClient)
  3673. }
  3674. inline void MessageToClient::SharedCtor(
  3675. ::_pb::Arena* arena, bool is_message_owned
  3676. )
  3677. {
  3678. (void)arena;
  3679. (void)is_message_owned;
  3680. new (&_impl_) Impl_{
  3681. decltype(_impl_.student_message_){arena}, decltype(_impl_.tricker_message_){arena}, decltype(_impl_.prop_message_){arena}, decltype(_impl_.bullet_message_){arena}, decltype(_impl_.bombed_bullet_message_){arena}, decltype(_impl_.map_message_){nullptr}, decltype(_impl_.game_state_){0}, /*decltype(_impl_._cached_size_)*/ {}};
  3682. }
  3683. MessageToClient::~MessageToClient()
  3684. {
  3685. // @@protoc_insertion_point(destructor:protobuf.MessageToClient)
  3686. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  3687. {
  3688. (void)arena;
  3689. return;
  3690. }
  3691. SharedDtor();
  3692. }
  3693. inline void MessageToClient::SharedDtor()
  3694. {
  3695. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3696. _impl_.student_message_.~RepeatedPtrField();
  3697. _impl_.tricker_message_.~RepeatedPtrField();
  3698. _impl_.prop_message_.~RepeatedPtrField();
  3699. _impl_.bullet_message_.~RepeatedPtrField();
  3700. _impl_.bombed_bullet_message_.~RepeatedPtrField();
  3701. if (this != internal_default_instance())
  3702. delete _impl_.map_message_;
  3703. }
  3704. void MessageToClient::SetCachedSize(int size) const
  3705. {
  3706. _impl_._cached_size_.Set(size);
  3707. }
  3708. void MessageToClient::Clear()
  3709. {
  3710. // @@protoc_insertion_point(message_clear_start:protobuf.MessageToClient)
  3711. uint32_t cached_has_bits = 0;
  3712. // Prevent compiler warnings about cached_has_bits being unused
  3713. (void)cached_has_bits;
  3714. _impl_.student_message_.Clear();
  3715. _impl_.tricker_message_.Clear();
  3716. _impl_.prop_message_.Clear();
  3717. _impl_.bullet_message_.Clear();
  3718. _impl_.bombed_bullet_message_.Clear();
  3719. if (GetArenaForAllocation() == nullptr && _impl_.map_message_ != nullptr)
  3720. {
  3721. delete _impl_.map_message_;
  3722. }
  3723. _impl_.map_message_ = nullptr;
  3724. _impl_.game_state_ = 0;
  3725. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3726. }
  3727. const char* MessageToClient::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  3728. {
  3729. #define CHK_(x) \
  3730. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  3731. goto failure
  3732. while (!ctx->Done(&ptr))
  3733. {
  3734. uint32_t tag;
  3735. ptr = ::_pbi::ReadTag(ptr, &tag);
  3736. switch (tag >> 3)
  3737. {
  3738. // repeated .protobuf.MessageOfStudent student_message = 1;
  3739. case 1:
  3740. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10))
  3741. {
  3742. ptr -= 1;
  3743. do
  3744. {
  3745. ptr += 1;
  3746. ptr = ctx->ParseMessage(_internal_add_student_message(), ptr);
  3747. CHK_(ptr);
  3748. if (!ctx->DataAvailable(ptr))
  3749. break;
  3750. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
  3751. }
  3752. else
  3753. goto handle_unusual;
  3754. continue;
  3755. // repeated .protobuf.MessageOfTricker tricker_message = 2;
  3756. case 2:
  3757. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18))
  3758. {
  3759. ptr -= 1;
  3760. do
  3761. {
  3762. ptr += 1;
  3763. ptr = ctx->ParseMessage(_internal_add_tricker_message(), ptr);
  3764. CHK_(ptr);
  3765. if (!ctx->DataAvailable(ptr))
  3766. break;
  3767. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
  3768. }
  3769. else
  3770. goto handle_unusual;
  3771. continue;
  3772. // repeated .protobuf.MessageOfProp prop_message = 3;
  3773. case 3:
  3774. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26))
  3775. {
  3776. ptr -= 1;
  3777. do
  3778. {
  3779. ptr += 1;
  3780. ptr = ctx->ParseMessage(_internal_add_prop_message(), ptr);
  3781. CHK_(ptr);
  3782. if (!ctx->DataAvailable(ptr))
  3783. break;
  3784. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
  3785. }
  3786. else
  3787. goto handle_unusual;
  3788. continue;
  3789. // repeated .protobuf.MessageOfBullet bullet_message = 4;
  3790. case 4:
  3791. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34))
  3792. {
  3793. ptr -= 1;
  3794. do
  3795. {
  3796. ptr += 1;
  3797. ptr = ctx->ParseMessage(_internal_add_bullet_message(), ptr);
  3798. CHK_(ptr);
  3799. if (!ctx->DataAvailable(ptr))
  3800. break;
  3801. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr));
  3802. }
  3803. else
  3804. goto handle_unusual;
  3805. continue;
  3806. // repeated .protobuf.MessageOfBombedBullet bombed_bullet_message = 5;
  3807. case 5:
  3808. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42))
  3809. {
  3810. ptr -= 1;
  3811. do
  3812. {
  3813. ptr += 1;
  3814. ptr = ctx->ParseMessage(_internal_add_bombed_bullet_message(), ptr);
  3815. CHK_(ptr);
  3816. if (!ctx->DataAvailable(ptr))
  3817. break;
  3818. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr));
  3819. }
  3820. else
  3821. goto handle_unusual;
  3822. continue;
  3823. // .protobuf.MessageOfMap map_message = 6;
  3824. case 6:
  3825. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50))
  3826. {
  3827. ptr = ctx->ParseMessage(_internal_mutable_map_message(), ptr);
  3828. CHK_(ptr);
  3829. }
  3830. else
  3831. goto handle_unusual;
  3832. continue;
  3833. // .protobuf.GameState game_state = 7;
  3834. case 7:
  3835. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56))
  3836. {
  3837. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3838. CHK_(ptr);
  3839. _internal_set_game_state(static_cast<::protobuf::GameState>(val));
  3840. }
  3841. else
  3842. goto handle_unusual;
  3843. continue;
  3844. default:
  3845. goto handle_unusual;
  3846. } // switch
  3847. handle_unusual:
  3848. if ((tag == 0) || ((tag & 7) == 4))
  3849. {
  3850. CHK_(ptr);
  3851. ctx->SetLastTag(tag);
  3852. goto message_done;
  3853. }
  3854. ptr = UnknownFieldParse(
  3855. tag,
  3856. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3857. ptr,
  3858. ctx
  3859. );
  3860. CHK_(ptr != nullptr);
  3861. } // while
  3862. message_done:
  3863. return ptr;
  3864. failure:
  3865. ptr = nullptr;
  3866. goto message_done;
  3867. #undef CHK_
  3868. }
  3869. uint8_t* MessageToClient::_InternalSerialize(
  3870. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  3871. ) const
  3872. {
  3873. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageToClient)
  3874. uint32_t cached_has_bits = 0;
  3875. (void)cached_has_bits;
  3876. // repeated .protobuf.MessageOfStudent student_message = 1;
  3877. for (unsigned i = 0,
  3878. n = static_cast<unsigned>(this->_internal_student_message_size());
  3879. i < n;
  3880. i++)
  3881. {
  3882. const auto& repfield = this->_internal_student_message(i);
  3883. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  3884. InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
  3885. }
  3886. // repeated .protobuf.MessageOfTricker tricker_message = 2;
  3887. for (unsigned i = 0,
  3888. n = static_cast<unsigned>(this->_internal_tricker_message_size());
  3889. i < n;
  3890. i++)
  3891. {
  3892. const auto& repfield = this->_internal_tricker_message(i);
  3893. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  3894. InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
  3895. }
  3896. // repeated .protobuf.MessageOfProp prop_message = 3;
  3897. for (unsigned i = 0,
  3898. n = static_cast<unsigned>(this->_internal_prop_message_size());
  3899. i < n;
  3900. i++)
  3901. {
  3902. const auto& repfield = this->_internal_prop_message(i);
  3903. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  3904. InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream);
  3905. }
  3906. // repeated .protobuf.MessageOfBullet bullet_message = 4;
  3907. for (unsigned i = 0,
  3908. n = static_cast<unsigned>(this->_internal_bullet_message_size());
  3909. i < n;
  3910. i++)
  3911. {
  3912. const auto& repfield = this->_internal_bullet_message(i);
  3913. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  3914. InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream);
  3915. }
  3916. // repeated .protobuf.MessageOfBombedBullet bombed_bullet_message = 5;
  3917. for (unsigned i = 0,
  3918. n = static_cast<unsigned>(this->_internal_bombed_bullet_message_size());
  3919. i < n;
  3920. i++)
  3921. {
  3922. const auto& repfield = this->_internal_bombed_bullet_message(i);
  3923. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  3924. InternalWriteMessage(5, repfield, repfield.GetCachedSize(), target, stream);
  3925. }
  3926. // .protobuf.MessageOfMap map_message = 6;
  3927. if (this->_internal_has_map_message())
  3928. {
  3929. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  3930. InternalWriteMessage(6, _Internal::map_message(this), _Internal::map_message(this).GetCachedSize(), target, stream);
  3931. }
  3932. // .protobuf.GameState game_state = 7;
  3933. if (this->_internal_game_state() != 0)
  3934. {
  3935. target = stream->EnsureSpace(target);
  3936. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  3937. 7, this->_internal_game_state(), target
  3938. );
  3939. }
  3940. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  3941. {
  3942. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  3943. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  3944. );
  3945. }
  3946. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageToClient)
  3947. return target;
  3948. }
  3949. size_t MessageToClient::ByteSizeLong() const
  3950. {
  3951. // @@protoc_insertion_point(message_byte_size_start:protobuf.MessageToClient)
  3952. size_t total_size = 0;
  3953. uint32_t cached_has_bits = 0;
  3954. // Prevent compiler warnings about cached_has_bits being unused
  3955. (void)cached_has_bits;
  3956. // repeated .protobuf.MessageOfStudent student_message = 1;
  3957. total_size += 1UL * this->_internal_student_message_size();
  3958. for (const auto& msg : this->_impl_.student_message_)
  3959. {
  3960. total_size +=
  3961. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  3962. }
  3963. // repeated .protobuf.MessageOfTricker tricker_message = 2;
  3964. total_size += 1UL * this->_internal_tricker_message_size();
  3965. for (const auto& msg : this->_impl_.tricker_message_)
  3966. {
  3967. total_size +=
  3968. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  3969. }
  3970. // repeated .protobuf.MessageOfProp prop_message = 3;
  3971. total_size += 1UL * this->_internal_prop_message_size();
  3972. for (const auto& msg : this->_impl_.prop_message_)
  3973. {
  3974. total_size +=
  3975. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  3976. }
  3977. // repeated .protobuf.MessageOfBullet bullet_message = 4;
  3978. total_size += 1UL * this->_internal_bullet_message_size();
  3979. for (const auto& msg : this->_impl_.bullet_message_)
  3980. {
  3981. total_size +=
  3982. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  3983. }
  3984. // repeated .protobuf.MessageOfBombedBullet bombed_bullet_message = 5;
  3985. total_size += 1UL * this->_internal_bombed_bullet_message_size();
  3986. for (const auto& msg : this->_impl_.bombed_bullet_message_)
  3987. {
  3988. total_size +=
  3989. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  3990. }
  3991. // .protobuf.MessageOfMap map_message = 6;
  3992. if (this->_internal_has_map_message())
  3993. {
  3994. total_size += 1 +
  3995. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  3996. *_impl_.map_message_
  3997. );
  3998. }
  3999. // .protobuf.GameState game_state = 7;
  4000. if (this->_internal_game_state() != 0)
  4001. {
  4002. total_size += 1 +
  4003. ::_pbi::WireFormatLite::EnumSize(this->_internal_game_state());
  4004. }
  4005. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  4006. }
  4007. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageToClient::_class_data_ = {
  4008. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  4009. MessageToClient::MergeImpl};
  4010. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MessageToClient::GetClassData() const
  4011. {
  4012. return &_class_data_;
  4013. }
  4014. void MessageToClient::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  4015. {
  4016. auto* const _this = static_cast<MessageToClient*>(&to_msg);
  4017. auto& from = static_cast<const MessageToClient&>(from_msg);
  4018. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageToClient)
  4019. GOOGLE_DCHECK_NE(&from, _this);
  4020. uint32_t cached_has_bits = 0;
  4021. (void)cached_has_bits;
  4022. _this->_impl_.student_message_.MergeFrom(from._impl_.student_message_);
  4023. _this->_impl_.tricker_message_.MergeFrom(from._impl_.tricker_message_);
  4024. _this->_impl_.prop_message_.MergeFrom(from._impl_.prop_message_);
  4025. _this->_impl_.bullet_message_.MergeFrom(from._impl_.bullet_message_);
  4026. _this->_impl_.bombed_bullet_message_.MergeFrom(from._impl_.bombed_bullet_message_);
  4027. if (from._internal_has_map_message())
  4028. {
  4029. _this->_internal_mutable_map_message()->::protobuf::MessageOfMap::MergeFrom(
  4030. from._internal_map_message()
  4031. );
  4032. }
  4033. if (from._internal_game_state() != 0)
  4034. {
  4035. _this->_internal_set_game_state(from._internal_game_state());
  4036. }
  4037. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4038. }
  4039. void MessageToClient::CopyFrom(const MessageToClient& from)
  4040. {
  4041. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageToClient)
  4042. if (&from == this)
  4043. return;
  4044. Clear();
  4045. MergeFrom(from);
  4046. }
  4047. bool MessageToClient::IsInitialized() const
  4048. {
  4049. return true;
  4050. }
  4051. void MessageToClient::InternalSwap(MessageToClient* other)
  4052. {
  4053. using std::swap;
  4054. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4055. _impl_.student_message_.InternalSwap(&other->_impl_.student_message_);
  4056. _impl_.tricker_message_.InternalSwap(&other->_impl_.tricker_message_);
  4057. _impl_.prop_message_.InternalSwap(&other->_impl_.prop_message_);
  4058. _impl_.bullet_message_.InternalSwap(&other->_impl_.bullet_message_);
  4059. _impl_.bombed_bullet_message_.InternalSwap(&other->_impl_.bombed_bullet_message_);
  4060. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  4061. PROTOBUF_FIELD_OFFSET(MessageToClient, _impl_.game_state_) + sizeof(MessageToClient::_impl_.game_state_) - PROTOBUF_FIELD_OFFSET(MessageToClient, _impl_.map_message_)>(
  4062. reinterpret_cast<char*>(&_impl_.map_message_),
  4063. reinterpret_cast<char*>(&other->_impl_.map_message_)
  4064. );
  4065. }
  4066. ::PROTOBUF_NAMESPACE_ID::Metadata MessageToClient::GetMetadata() const
  4067. {
  4068. return ::_pbi::AssignDescriptors(
  4069. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[8]
  4070. );
  4071. }
  4072. // ===================================================================
  4073. class MoveRes::_Internal
  4074. {
  4075. public:
  4076. };
  4077. MoveRes::MoveRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  4078. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  4079. {
  4080. SharedCtor(arena, is_message_owned);
  4081. // @@protoc_insertion_point(arena_constructor:protobuf.MoveRes)
  4082. }
  4083. MoveRes::MoveRes(const MoveRes& from) :
  4084. ::PROTOBUF_NAMESPACE_ID::Message()
  4085. {
  4086. MoveRes* const _this = this;
  4087. (void)_this;
  4088. new (&_impl_) Impl_{
  4089. decltype(_impl_.actual_speed_){}, decltype(_impl_.actual_angle_){}, decltype(_impl_.act_success_){}, /*decltype(_impl_._cached_size_)*/ {}};
  4090. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4091. ::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_));
  4092. // @@protoc_insertion_point(copy_constructor:protobuf.MoveRes)
  4093. }
  4094. inline void MoveRes::SharedCtor(
  4095. ::_pb::Arena* arena, bool is_message_owned
  4096. )
  4097. {
  4098. (void)arena;
  4099. (void)is_message_owned;
  4100. new (&_impl_) Impl_{
  4101. decltype(_impl_.actual_speed_){int64_t{0}}, decltype(_impl_.actual_angle_){0}, decltype(_impl_.act_success_){false}, /*decltype(_impl_._cached_size_)*/ {}};
  4102. }
  4103. MoveRes::~MoveRes()
  4104. {
  4105. // @@protoc_insertion_point(destructor:protobuf.MoveRes)
  4106. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  4107. {
  4108. (void)arena;
  4109. return;
  4110. }
  4111. SharedDtor();
  4112. }
  4113. inline void MoveRes::SharedDtor()
  4114. {
  4115. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4116. }
  4117. void MoveRes::SetCachedSize(int size) const
  4118. {
  4119. _impl_._cached_size_.Set(size);
  4120. }
  4121. void MoveRes::Clear()
  4122. {
  4123. // @@protoc_insertion_point(message_clear_start:protobuf.MoveRes)
  4124. uint32_t cached_has_bits = 0;
  4125. // Prevent compiler warnings about cached_has_bits being unused
  4126. (void)cached_has_bits;
  4127. ::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_));
  4128. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4129. }
  4130. const char* MoveRes::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  4131. {
  4132. #define CHK_(x) \
  4133. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  4134. goto failure
  4135. while (!ctx->Done(&ptr))
  4136. {
  4137. uint32_t tag;
  4138. ptr = ::_pbi::ReadTag(ptr, &tag);
  4139. switch (tag >> 3)
  4140. {
  4141. // int64 actual_speed = 1;
  4142. case 1:
  4143. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  4144. {
  4145. _impl_.actual_speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  4146. CHK_(ptr);
  4147. }
  4148. else
  4149. goto handle_unusual;
  4150. continue;
  4151. // double actual_angle = 2;
  4152. case 2:
  4153. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 17))
  4154. {
  4155. _impl_.actual_angle_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  4156. ptr += sizeof(double);
  4157. }
  4158. else
  4159. goto handle_unusual;
  4160. continue;
  4161. // bool act_success = 3;
  4162. case 3:
  4163. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
  4164. {
  4165. _impl_.act_success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  4166. CHK_(ptr);
  4167. }
  4168. else
  4169. goto handle_unusual;
  4170. continue;
  4171. default:
  4172. goto handle_unusual;
  4173. } // switch
  4174. handle_unusual:
  4175. if ((tag == 0) || ((tag & 7) == 4))
  4176. {
  4177. CHK_(ptr);
  4178. ctx->SetLastTag(tag);
  4179. goto message_done;
  4180. }
  4181. ptr = UnknownFieldParse(
  4182. tag,
  4183. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4184. ptr,
  4185. ctx
  4186. );
  4187. CHK_(ptr != nullptr);
  4188. } // while
  4189. message_done:
  4190. return ptr;
  4191. failure:
  4192. ptr = nullptr;
  4193. goto message_done;
  4194. #undef CHK_
  4195. }
  4196. uint8_t* MoveRes::_InternalSerialize(
  4197. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  4198. ) const
  4199. {
  4200. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MoveRes)
  4201. uint32_t cached_has_bits = 0;
  4202. (void)cached_has_bits;
  4203. // int64 actual_speed = 1;
  4204. if (this->_internal_actual_speed() != 0)
  4205. {
  4206. target = stream->EnsureSpace(target);
  4207. target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_actual_speed(), target);
  4208. }
  4209. // double actual_angle = 2;
  4210. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  4211. double tmp_actual_angle = this->_internal_actual_angle();
  4212. uint64_t raw_actual_angle;
  4213. memcpy(&raw_actual_angle, &tmp_actual_angle, sizeof(tmp_actual_angle));
  4214. if (raw_actual_angle != 0)
  4215. {
  4216. target = stream->EnsureSpace(target);
  4217. target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_actual_angle(), target);
  4218. }
  4219. // bool act_success = 3;
  4220. if (this->_internal_act_success() != 0)
  4221. {
  4222. target = stream->EnsureSpace(target);
  4223. target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_act_success(), target);
  4224. }
  4225. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  4226. {
  4227. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  4228. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  4229. );
  4230. }
  4231. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MoveRes)
  4232. return target;
  4233. }
  4234. size_t MoveRes::ByteSizeLong() const
  4235. {
  4236. // @@protoc_insertion_point(message_byte_size_start:protobuf.MoveRes)
  4237. size_t total_size = 0;
  4238. uint32_t cached_has_bits = 0;
  4239. // Prevent compiler warnings about cached_has_bits being unused
  4240. (void)cached_has_bits;
  4241. // int64 actual_speed = 1;
  4242. if (this->_internal_actual_speed() != 0)
  4243. {
  4244. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_actual_speed());
  4245. }
  4246. // double actual_angle = 2;
  4247. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  4248. double tmp_actual_angle = this->_internal_actual_angle();
  4249. uint64_t raw_actual_angle;
  4250. memcpy(&raw_actual_angle, &tmp_actual_angle, sizeof(tmp_actual_angle));
  4251. if (raw_actual_angle != 0)
  4252. {
  4253. total_size += 1 + 8;
  4254. }
  4255. // bool act_success = 3;
  4256. if (this->_internal_act_success() != 0)
  4257. {
  4258. total_size += 1 + 1;
  4259. }
  4260. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  4261. }
  4262. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveRes::_class_data_ = {
  4263. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  4264. MoveRes::MergeImpl};
  4265. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MoveRes::GetClassData() const
  4266. {
  4267. return &_class_data_;
  4268. }
  4269. void MoveRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  4270. {
  4271. auto* const _this = static_cast<MoveRes*>(&to_msg);
  4272. auto& from = static_cast<const MoveRes&>(from_msg);
  4273. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MoveRes)
  4274. GOOGLE_DCHECK_NE(&from, _this);
  4275. uint32_t cached_has_bits = 0;
  4276. (void)cached_has_bits;
  4277. if (from._internal_actual_speed() != 0)
  4278. {
  4279. _this->_internal_set_actual_speed(from._internal_actual_speed());
  4280. }
  4281. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  4282. double tmp_actual_angle = from._internal_actual_angle();
  4283. uint64_t raw_actual_angle;
  4284. memcpy(&raw_actual_angle, &tmp_actual_angle, sizeof(tmp_actual_angle));
  4285. if (raw_actual_angle != 0)
  4286. {
  4287. _this->_internal_set_actual_angle(from._internal_actual_angle());
  4288. }
  4289. if (from._internal_act_success() != 0)
  4290. {
  4291. _this->_internal_set_act_success(from._internal_act_success());
  4292. }
  4293. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4294. }
  4295. void MoveRes::CopyFrom(const MoveRes& from)
  4296. {
  4297. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MoveRes)
  4298. if (&from == this)
  4299. return;
  4300. Clear();
  4301. MergeFrom(from);
  4302. }
  4303. bool MoveRes::IsInitialized() const
  4304. {
  4305. return true;
  4306. }
  4307. void MoveRes::InternalSwap(MoveRes* other)
  4308. {
  4309. using std::swap;
  4310. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4311. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  4312. PROTOBUF_FIELD_OFFSET(MoveRes, _impl_.act_success_) + sizeof(MoveRes::_impl_.act_success_) - PROTOBUF_FIELD_OFFSET(MoveRes, _impl_.actual_speed_)>(
  4313. reinterpret_cast<char*>(&_impl_.actual_speed_),
  4314. reinterpret_cast<char*>(&other->_impl_.actual_speed_)
  4315. );
  4316. }
  4317. ::PROTOBUF_NAMESPACE_ID::Metadata MoveRes::GetMetadata() const
  4318. {
  4319. return ::_pbi::AssignDescriptors(
  4320. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[9]
  4321. );
  4322. }
  4323. // ===================================================================
  4324. class BoolRes::_Internal
  4325. {
  4326. public:
  4327. };
  4328. BoolRes::BoolRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  4329. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  4330. {
  4331. SharedCtor(arena, is_message_owned);
  4332. // @@protoc_insertion_point(arena_constructor:protobuf.BoolRes)
  4333. }
  4334. BoolRes::BoolRes(const BoolRes& from) :
  4335. ::PROTOBUF_NAMESPACE_ID::Message()
  4336. {
  4337. BoolRes* const _this = this;
  4338. (void)_this;
  4339. new (&_impl_) Impl_{
  4340. decltype(_impl_.act_success_){}, /*decltype(_impl_._cached_size_)*/ {}};
  4341. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4342. _this->_impl_.act_success_ = from._impl_.act_success_;
  4343. // @@protoc_insertion_point(copy_constructor:protobuf.BoolRes)
  4344. }
  4345. inline void BoolRes::SharedCtor(
  4346. ::_pb::Arena* arena, bool is_message_owned
  4347. )
  4348. {
  4349. (void)arena;
  4350. (void)is_message_owned;
  4351. new (&_impl_) Impl_{
  4352. decltype(_impl_.act_success_){false}, /*decltype(_impl_._cached_size_)*/ {}};
  4353. }
  4354. BoolRes::~BoolRes()
  4355. {
  4356. // @@protoc_insertion_point(destructor:protobuf.BoolRes)
  4357. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  4358. {
  4359. (void)arena;
  4360. return;
  4361. }
  4362. SharedDtor();
  4363. }
  4364. inline void BoolRes::SharedDtor()
  4365. {
  4366. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4367. }
  4368. void BoolRes::SetCachedSize(int size) const
  4369. {
  4370. _impl_._cached_size_.Set(size);
  4371. }
  4372. void BoolRes::Clear()
  4373. {
  4374. // @@protoc_insertion_point(message_clear_start:protobuf.BoolRes)
  4375. uint32_t cached_has_bits = 0;
  4376. // Prevent compiler warnings about cached_has_bits being unused
  4377. (void)cached_has_bits;
  4378. _impl_.act_success_ = false;
  4379. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4380. }
  4381. const char* BoolRes::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  4382. {
  4383. #define CHK_(x) \
  4384. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  4385. goto failure
  4386. while (!ctx->Done(&ptr))
  4387. {
  4388. uint32_t tag;
  4389. ptr = ::_pbi::ReadTag(ptr, &tag);
  4390. switch (tag >> 3)
  4391. {
  4392. // bool act_success = 1;
  4393. case 1:
  4394. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  4395. {
  4396. _impl_.act_success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  4397. CHK_(ptr);
  4398. }
  4399. else
  4400. goto handle_unusual;
  4401. continue;
  4402. default:
  4403. goto handle_unusual;
  4404. } // switch
  4405. handle_unusual:
  4406. if ((tag == 0) || ((tag & 7) == 4))
  4407. {
  4408. CHK_(ptr);
  4409. ctx->SetLastTag(tag);
  4410. goto message_done;
  4411. }
  4412. ptr = UnknownFieldParse(
  4413. tag,
  4414. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4415. ptr,
  4416. ctx
  4417. );
  4418. CHK_(ptr != nullptr);
  4419. } // while
  4420. message_done:
  4421. return ptr;
  4422. failure:
  4423. ptr = nullptr;
  4424. goto message_done;
  4425. #undef CHK_
  4426. }
  4427. uint8_t* BoolRes::_InternalSerialize(
  4428. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  4429. ) const
  4430. {
  4431. // @@protoc_insertion_point(serialize_to_array_start:protobuf.BoolRes)
  4432. uint32_t cached_has_bits = 0;
  4433. (void)cached_has_bits;
  4434. // bool act_success = 1;
  4435. if (this->_internal_act_success() != 0)
  4436. {
  4437. target = stream->EnsureSpace(target);
  4438. target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_act_success(), target);
  4439. }
  4440. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  4441. {
  4442. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  4443. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  4444. );
  4445. }
  4446. // @@protoc_insertion_point(serialize_to_array_end:protobuf.BoolRes)
  4447. return target;
  4448. }
  4449. size_t BoolRes::ByteSizeLong() const
  4450. {
  4451. // @@protoc_insertion_point(message_byte_size_start:protobuf.BoolRes)
  4452. size_t total_size = 0;
  4453. uint32_t cached_has_bits = 0;
  4454. // Prevent compiler warnings about cached_has_bits being unused
  4455. (void)cached_has_bits;
  4456. // bool act_success = 1;
  4457. if (this->_internal_act_success() != 0)
  4458. {
  4459. total_size += 1 + 1;
  4460. }
  4461. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  4462. }
  4463. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BoolRes::_class_data_ = {
  4464. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  4465. BoolRes::MergeImpl};
  4466. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* BoolRes::GetClassData() const
  4467. {
  4468. return &_class_data_;
  4469. }
  4470. void BoolRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  4471. {
  4472. auto* const _this = static_cast<BoolRes*>(&to_msg);
  4473. auto& from = static_cast<const BoolRes&>(from_msg);
  4474. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.BoolRes)
  4475. GOOGLE_DCHECK_NE(&from, _this);
  4476. uint32_t cached_has_bits = 0;
  4477. (void)cached_has_bits;
  4478. if (from._internal_act_success() != 0)
  4479. {
  4480. _this->_internal_set_act_success(from._internal_act_success());
  4481. }
  4482. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4483. }
  4484. void BoolRes::CopyFrom(const BoolRes& from)
  4485. {
  4486. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.BoolRes)
  4487. if (&from == this)
  4488. return;
  4489. Clear();
  4490. MergeFrom(from);
  4491. }
  4492. bool BoolRes::IsInitialized() const
  4493. {
  4494. return true;
  4495. }
  4496. void BoolRes::InternalSwap(BoolRes* other)
  4497. {
  4498. using std::swap;
  4499. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4500. swap(_impl_.act_success_, other->_impl_.act_success_);
  4501. }
  4502. ::PROTOBUF_NAMESPACE_ID::Metadata BoolRes::GetMetadata() const
  4503. {
  4504. return ::_pbi::AssignDescriptors(
  4505. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[10]
  4506. );
  4507. }
  4508. // ===================================================================
  4509. class MsgRes::_Internal
  4510. {
  4511. public:
  4512. };
  4513. MsgRes::MsgRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  4514. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  4515. {
  4516. SharedCtor(arena, is_message_owned);
  4517. // @@protoc_insertion_point(arena_constructor:protobuf.MsgRes)
  4518. }
  4519. MsgRes::MsgRes(const MsgRes& from) :
  4520. ::PROTOBUF_NAMESPACE_ID::Message()
  4521. {
  4522. MsgRes* const _this = this;
  4523. (void)_this;
  4524. new (&_impl_) Impl_{
  4525. decltype(_impl_.message_received_){}, decltype(_impl_.from_player_id_){}, decltype(_impl_.have_message_){}, /*decltype(_impl_._cached_size_)*/ {}};
  4526. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4527. _impl_.message_received_.InitDefault();
  4528. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4529. _impl_.message_received_.Set("", GetArenaForAllocation());
  4530. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4531. if (!from._internal_message_received().empty())
  4532. {
  4533. _this->_impl_.message_received_.Set(from._internal_message_received(), _this->GetArenaForAllocation());
  4534. }
  4535. ::memcpy(&_impl_.from_player_id_, &from._impl_.from_player_id_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.have_message_) - reinterpret_cast<char*>(&_impl_.from_player_id_)) + sizeof(_impl_.have_message_));
  4536. // @@protoc_insertion_point(copy_constructor:protobuf.MsgRes)
  4537. }
  4538. inline void MsgRes::SharedCtor(
  4539. ::_pb::Arena* arena, bool is_message_owned
  4540. )
  4541. {
  4542. (void)arena;
  4543. (void)is_message_owned;
  4544. new (&_impl_) Impl_{
  4545. decltype(_impl_.message_received_){}, decltype(_impl_.from_player_id_){int64_t{0}}, decltype(_impl_.have_message_){false}, /*decltype(_impl_._cached_size_)*/ {}};
  4546. _impl_.message_received_.InitDefault();
  4547. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4548. _impl_.message_received_.Set("", GetArenaForAllocation());
  4549. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4550. }
  4551. MsgRes::~MsgRes()
  4552. {
  4553. // @@protoc_insertion_point(destructor:protobuf.MsgRes)
  4554. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  4555. {
  4556. (void)arena;
  4557. return;
  4558. }
  4559. SharedDtor();
  4560. }
  4561. inline void MsgRes::SharedDtor()
  4562. {
  4563. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4564. _impl_.message_received_.Destroy();
  4565. }
  4566. void MsgRes::SetCachedSize(int size) const
  4567. {
  4568. _impl_._cached_size_.Set(size);
  4569. }
  4570. void MsgRes::Clear()
  4571. {
  4572. // @@protoc_insertion_point(message_clear_start:protobuf.MsgRes)
  4573. uint32_t cached_has_bits = 0;
  4574. // Prevent compiler warnings about cached_has_bits being unused
  4575. (void)cached_has_bits;
  4576. _impl_.message_received_.ClearToEmpty();
  4577. ::memset(&_impl_.from_player_id_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.have_message_) - reinterpret_cast<char*>(&_impl_.from_player_id_)) + sizeof(_impl_.have_message_));
  4578. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4579. }
  4580. const char* MsgRes::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  4581. {
  4582. #define CHK_(x) \
  4583. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  4584. goto failure
  4585. while (!ctx->Done(&ptr))
  4586. {
  4587. uint32_t tag;
  4588. ptr = ::_pbi::ReadTag(ptr, &tag);
  4589. switch (tag >> 3)
  4590. {
  4591. // bool have_message = 1;
  4592. case 1:
  4593. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  4594. {
  4595. _impl_.have_message_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  4596. CHK_(ptr);
  4597. }
  4598. else
  4599. goto handle_unusual;
  4600. continue;
  4601. // int64 from_player_id = 2;
  4602. case 2:
  4603. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  4604. {
  4605. _impl_.from_player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  4606. CHK_(ptr);
  4607. }
  4608. else
  4609. goto handle_unusual;
  4610. continue;
  4611. // string message_received = 3;
  4612. case 3:
  4613. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26))
  4614. {
  4615. auto str = _internal_mutable_message_received();
  4616. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  4617. CHK_(ptr);
  4618. CHK_(::_pbi::VerifyUTF8(str, "protobuf.MsgRes.message_received"));
  4619. }
  4620. else
  4621. goto handle_unusual;
  4622. continue;
  4623. default:
  4624. goto handle_unusual;
  4625. } // switch
  4626. handle_unusual:
  4627. if ((tag == 0) || ((tag & 7) == 4))
  4628. {
  4629. CHK_(ptr);
  4630. ctx->SetLastTag(tag);
  4631. goto message_done;
  4632. }
  4633. ptr = UnknownFieldParse(
  4634. tag,
  4635. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4636. ptr,
  4637. ctx
  4638. );
  4639. CHK_(ptr != nullptr);
  4640. } // while
  4641. message_done:
  4642. return ptr;
  4643. failure:
  4644. ptr = nullptr;
  4645. goto message_done;
  4646. #undef CHK_
  4647. }
  4648. uint8_t* MsgRes::_InternalSerialize(
  4649. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  4650. ) const
  4651. {
  4652. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MsgRes)
  4653. uint32_t cached_has_bits = 0;
  4654. (void)cached_has_bits;
  4655. // bool have_message = 1;
  4656. if (this->_internal_have_message() != 0)
  4657. {
  4658. target = stream->EnsureSpace(target);
  4659. target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_have_message(), target);
  4660. }
  4661. // int64 from_player_id = 2;
  4662. if (this->_internal_from_player_id() != 0)
  4663. {
  4664. target = stream->EnsureSpace(target);
  4665. target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_from_player_id(), target);
  4666. }
  4667. // string message_received = 3;
  4668. if (!this->_internal_message_received().empty())
  4669. {
  4670. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  4671. this->_internal_message_received().data(), static_cast<int>(this->_internal_message_received().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "protobuf.MsgRes.message_received"
  4672. );
  4673. target = stream->WriteStringMaybeAliased(
  4674. 3, this->_internal_message_received(), target
  4675. );
  4676. }
  4677. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  4678. {
  4679. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  4680. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  4681. );
  4682. }
  4683. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MsgRes)
  4684. return target;
  4685. }
  4686. size_t MsgRes::ByteSizeLong() const
  4687. {
  4688. // @@protoc_insertion_point(message_byte_size_start:protobuf.MsgRes)
  4689. size_t total_size = 0;
  4690. uint32_t cached_has_bits = 0;
  4691. // Prevent compiler warnings about cached_has_bits being unused
  4692. (void)cached_has_bits;
  4693. // string message_received = 3;
  4694. if (!this->_internal_message_received().empty())
  4695. {
  4696. total_size += 1 +
  4697. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  4698. this->_internal_message_received()
  4699. );
  4700. }
  4701. // int64 from_player_id = 2;
  4702. if (this->_internal_from_player_id() != 0)
  4703. {
  4704. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_from_player_id());
  4705. }
  4706. // bool have_message = 1;
  4707. if (this->_internal_have_message() != 0)
  4708. {
  4709. total_size += 1 + 1;
  4710. }
  4711. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  4712. }
  4713. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MsgRes::_class_data_ = {
  4714. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  4715. MsgRes::MergeImpl};
  4716. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MsgRes::GetClassData() const
  4717. {
  4718. return &_class_data_;
  4719. }
  4720. void MsgRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  4721. {
  4722. auto* const _this = static_cast<MsgRes*>(&to_msg);
  4723. auto& from = static_cast<const MsgRes&>(from_msg);
  4724. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MsgRes)
  4725. GOOGLE_DCHECK_NE(&from, _this);
  4726. uint32_t cached_has_bits = 0;
  4727. (void)cached_has_bits;
  4728. if (!from._internal_message_received().empty())
  4729. {
  4730. _this->_internal_set_message_received(from._internal_message_received());
  4731. }
  4732. if (from._internal_from_player_id() != 0)
  4733. {
  4734. _this->_internal_set_from_player_id(from._internal_from_player_id());
  4735. }
  4736. if (from._internal_have_message() != 0)
  4737. {
  4738. _this->_internal_set_have_message(from._internal_have_message());
  4739. }
  4740. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4741. }
  4742. void MsgRes::CopyFrom(const MsgRes& from)
  4743. {
  4744. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MsgRes)
  4745. if (&from == this)
  4746. return;
  4747. Clear();
  4748. MergeFrom(from);
  4749. }
  4750. bool MsgRes::IsInitialized() const
  4751. {
  4752. return true;
  4753. }
  4754. void MsgRes::InternalSwap(MsgRes* other)
  4755. {
  4756. using std::swap;
  4757. auto* lhs_arena = GetArenaForAllocation();
  4758. auto* rhs_arena = other->GetArenaForAllocation();
  4759. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4760. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4761. &_impl_.message_received_, lhs_arena, &other->_impl_.message_received_, rhs_arena
  4762. );
  4763. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  4764. PROTOBUF_FIELD_OFFSET(MsgRes, _impl_.have_message_) + sizeof(MsgRes::_impl_.have_message_) - PROTOBUF_FIELD_OFFSET(MsgRes, _impl_.from_player_id_)>(
  4765. reinterpret_cast<char*>(&_impl_.from_player_id_),
  4766. reinterpret_cast<char*>(&other->_impl_.from_player_id_)
  4767. );
  4768. }
  4769. ::PROTOBUF_NAMESPACE_ID::Metadata MsgRes::GetMetadata() const
  4770. {
  4771. return ::_pbi::AssignDescriptors(
  4772. &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, file_level_metadata_Message2Clients_2eproto[11]
  4773. );
  4774. }
  4775. // @@protoc_insertion_point(namespace_scope)
  4776. } // namespace protobuf
  4777. PROTOBUF_NAMESPACE_OPEN
  4778. template<>
  4779. PROTOBUF_NOINLINE ::protobuf::MessageOfStudent*
  4780. Arena::CreateMaybeMessage<::protobuf::MessageOfStudent>(Arena* arena)
  4781. {
  4782. return Arena::CreateMessageInternal<::protobuf::MessageOfStudent>(arena);
  4783. }
  4784. template<>
  4785. PROTOBUF_NOINLINE ::protobuf::MessageOfTricker*
  4786. Arena::CreateMaybeMessage<::protobuf::MessageOfTricker>(Arena* arena)
  4787. {
  4788. return Arena::CreateMessageInternal<::protobuf::MessageOfTricker>(arena);
  4789. }
  4790. template<>
  4791. PROTOBUF_NOINLINE ::protobuf::MessageOfBullet*
  4792. Arena::CreateMaybeMessage<::protobuf::MessageOfBullet>(Arena* arena)
  4793. {
  4794. return Arena::CreateMessageInternal<::protobuf::MessageOfBullet>(arena);
  4795. }
  4796. template<>
  4797. PROTOBUF_NOINLINE ::protobuf::MessageOfBombedBullet*
  4798. Arena::CreateMaybeMessage<::protobuf::MessageOfBombedBullet>(Arena* arena)
  4799. {
  4800. return Arena::CreateMessageInternal<::protobuf::MessageOfBombedBullet>(arena);
  4801. }
  4802. template<>
  4803. PROTOBUF_NOINLINE ::protobuf::MessageOfProp*
  4804. Arena::CreateMaybeMessage<::protobuf::MessageOfProp>(Arena* arena)
  4805. {
  4806. return Arena::CreateMessageInternal<::protobuf::MessageOfProp>(arena);
  4807. }
  4808. template<>
  4809. PROTOBUF_NOINLINE ::protobuf::MessageOfPickedProp*
  4810. Arena::CreateMaybeMessage<::protobuf::MessageOfPickedProp>(Arena* arena)
  4811. {
  4812. return Arena::CreateMessageInternal<::protobuf::MessageOfPickedProp>(arena);
  4813. }
  4814. template<>
  4815. PROTOBUF_NOINLINE ::protobuf::MessageOfMap_Row*
  4816. Arena::CreateMaybeMessage<::protobuf::MessageOfMap_Row>(Arena* arena)
  4817. {
  4818. return Arena::CreateMessageInternal<::protobuf::MessageOfMap_Row>(arena);
  4819. }
  4820. template<>
  4821. PROTOBUF_NOINLINE ::protobuf::MessageOfMap*
  4822. Arena::CreateMaybeMessage<::protobuf::MessageOfMap>(Arena* arena)
  4823. {
  4824. return Arena::CreateMessageInternal<::protobuf::MessageOfMap>(arena);
  4825. }
  4826. template<>
  4827. PROTOBUF_NOINLINE ::protobuf::MessageToClient*
  4828. Arena::CreateMaybeMessage<::protobuf::MessageToClient>(Arena* arena)
  4829. {
  4830. return Arena::CreateMessageInternal<::protobuf::MessageToClient>(arena);
  4831. }
  4832. template<>
  4833. PROTOBUF_NOINLINE ::protobuf::MoveRes*
  4834. Arena::CreateMaybeMessage<::protobuf::MoveRes>(Arena* arena)
  4835. {
  4836. return Arena::CreateMessageInternal<::protobuf::MoveRes>(arena);
  4837. }
  4838. template<>
  4839. PROTOBUF_NOINLINE ::protobuf::BoolRes*
  4840. Arena::CreateMaybeMessage<::protobuf::BoolRes>(Arena* arena)
  4841. {
  4842. return Arena::CreateMessageInternal<::protobuf::BoolRes>(arena);
  4843. }
  4844. template<>
  4845. PROTOBUF_NOINLINE ::protobuf::MsgRes*
  4846. Arena::CreateMaybeMessage<::protobuf::MsgRes>(Arena* arena)
  4847. {
  4848. return Arena::CreateMessageInternal<::protobuf::MsgRes>(arena);
  4849. }
  4850. PROTOBUF_NAMESPACE_CLOSE
  4851. // @@protoc_insertion_point(global_scope)
  4852. #include <google/protobuf/port_undef.inc>