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

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