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.

Message2Server.pb.cc 95 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: Message2Server.proto
  3. #include "Message2Server.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 PlayerMsg::PlayerMsg(
  20. ::_pbi::ConstantInitialized
  21. ) :
  22. _impl_{
  23. /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_.player_type_)*/ 0, /*decltype(_impl_.job_type_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_._oneof_case_)*/ {}}
  24. {
  25. }
  26. struct PlayerMsgDefaultTypeInternal
  27. {
  28. PROTOBUF_CONSTEXPR PlayerMsgDefaultTypeInternal() :
  29. _instance(::_pbi::ConstantInitialized{})
  30. {
  31. }
  32. ~PlayerMsgDefaultTypeInternal()
  33. {
  34. }
  35. union
  36. {
  37. PlayerMsg _instance;
  38. };
  39. };
  40. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PlayerMsgDefaultTypeInternal _PlayerMsg_default_instance_;
  41. PROTOBUF_CONSTEXPR MoveMsg::MoveMsg(
  42. ::_pbi::ConstantInitialized
  43. ) :
  44. _impl_{
  45. /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_.angle_)*/ 0, /*decltype(_impl_.time_in_milliseconds_)*/ int64_t{0}, /*decltype(_impl_._cached_size_)*/ {}}
  46. {
  47. }
  48. struct MoveMsgDefaultTypeInternal
  49. {
  50. PROTOBUF_CONSTEXPR MoveMsgDefaultTypeInternal() :
  51. _instance(::_pbi::ConstantInitialized{})
  52. {
  53. }
  54. ~MoveMsgDefaultTypeInternal()
  55. {
  56. }
  57. union
  58. {
  59. MoveMsg _instance;
  60. };
  61. };
  62. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveMsgDefaultTypeInternal _MoveMsg_default_instance_;
  63. PROTOBUF_CONSTEXPR PropMsg::PropMsg(
  64. ::_pbi::ConstantInitialized
  65. ) :
  66. _impl_{
  67. /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_.prop_type_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
  68. {
  69. }
  70. struct PropMsgDefaultTypeInternal
  71. {
  72. PROTOBUF_CONSTEXPR PropMsgDefaultTypeInternal() :
  73. _instance(::_pbi::ConstantInitialized{})
  74. {
  75. }
  76. ~PropMsgDefaultTypeInternal()
  77. {
  78. }
  79. union
  80. {
  81. PropMsg _instance;
  82. };
  83. };
  84. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PropMsgDefaultTypeInternal _PropMsg_default_instance_;
  85. PROTOBUF_CONSTEXPR SendMsg::SendMsg(
  86. ::_pbi::ConstantInitialized
  87. ) :
  88. _impl_{
  89. /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_.to_player_id_)*/ int64_t{0}, /*decltype(_impl_.message_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_._oneof_case_)*/ {}}
  90. {
  91. }
  92. struct SendMsgDefaultTypeInternal
  93. {
  94. PROTOBUF_CONSTEXPR SendMsgDefaultTypeInternal() :
  95. _instance(::_pbi::ConstantInitialized{})
  96. {
  97. }
  98. ~SendMsgDefaultTypeInternal()
  99. {
  100. }
  101. union
  102. {
  103. SendMsg _instance;
  104. };
  105. };
  106. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SendMsgDefaultTypeInternal _SendMsg_default_instance_;
  107. PROTOBUF_CONSTEXPR AttackMsg::AttackMsg(
  108. ::_pbi::ConstantInitialized
  109. ) :
  110. _impl_{
  111. /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_.angle_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
  112. {
  113. }
  114. struct AttackMsgDefaultTypeInternal
  115. {
  116. PROTOBUF_CONSTEXPR AttackMsgDefaultTypeInternal() :
  117. _instance(::_pbi::ConstantInitialized{})
  118. {
  119. }
  120. ~AttackMsgDefaultTypeInternal()
  121. {
  122. }
  123. union
  124. {
  125. AttackMsg _instance;
  126. };
  127. };
  128. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttackMsgDefaultTypeInternal _AttackMsg_default_instance_;
  129. PROTOBUF_CONSTEXPR IDMsg::IDMsg(
  130. ::_pbi::ConstantInitialized
  131. ) :
  132. _impl_{
  133. /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_._cached_size_)*/ {}}
  134. {
  135. }
  136. struct IDMsgDefaultTypeInternal
  137. {
  138. PROTOBUF_CONSTEXPR IDMsgDefaultTypeInternal() :
  139. _instance(::_pbi::ConstantInitialized{})
  140. {
  141. }
  142. ~IDMsgDefaultTypeInternal()
  143. {
  144. }
  145. union
  146. {
  147. IDMsg _instance;
  148. };
  149. };
  150. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IDMsgDefaultTypeInternal _IDMsg_default_instance_;
  151. PROTOBUF_CONSTEXPR TreatAndRescueMsg::TreatAndRescueMsg(
  152. ::_pbi::ConstantInitialized
  153. ) :
  154. _impl_{
  155. /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_.to_player_id_)*/ int64_t{0}, /*decltype(_impl_._cached_size_)*/ {}}
  156. {
  157. }
  158. struct TreatAndRescueMsgDefaultTypeInternal
  159. {
  160. PROTOBUF_CONSTEXPR TreatAndRescueMsgDefaultTypeInternal() :
  161. _instance(::_pbi::ConstantInitialized{})
  162. {
  163. }
  164. ~TreatAndRescueMsgDefaultTypeInternal()
  165. {
  166. }
  167. union
  168. {
  169. TreatAndRescueMsg _instance;
  170. };
  171. };
  172. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TreatAndRescueMsgDefaultTypeInternal _TreatAndRescueMsg_default_instance_;
  173. PROTOBUF_CONSTEXPR SkillMsg::SkillMsg(
  174. ::_pbi::ConstantInitialized
  175. ) :
  176. _impl_{
  177. /*decltype(_impl_.player_id_)*/ int64_t{0}, /*decltype(_impl_.skill_id_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}}
  178. {
  179. }
  180. struct SkillMsgDefaultTypeInternal
  181. {
  182. PROTOBUF_CONSTEXPR SkillMsgDefaultTypeInternal() :
  183. _instance(::_pbi::ConstantInitialized{})
  184. {
  185. }
  186. ~SkillMsgDefaultTypeInternal()
  187. {
  188. }
  189. union
  190. {
  191. SkillMsg _instance;
  192. };
  193. };
  194. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SkillMsgDefaultTypeInternal _SkillMsg_default_instance_;
  195. } // namespace protobuf
  196. static ::_pb::Metadata file_level_metadata_Message2Server_2eproto[8];
  197. static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_Message2Server_2eproto = nullptr;
  198. static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_Message2Server_2eproto = nullptr;
  199. const uint32_t TableStruct_Message2Server_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  200. ~0u, // no _has_bits_
  201. PROTOBUF_FIELD_OFFSET(::protobuf::PlayerMsg, _internal_metadata_),
  202. ~0u, // no _extensions_
  203. PROTOBUF_FIELD_OFFSET(::protobuf::PlayerMsg, _impl_._oneof_case_[0]),
  204. ~0u, // no _weak_field_map_
  205. ~0u, // no _inlined_string_donated_
  206. PROTOBUF_FIELD_OFFSET(::protobuf::PlayerMsg, _impl_.player_id_),
  207. ::_pbi::kInvalidFieldOffsetTag,
  208. ::_pbi::kInvalidFieldOffsetTag,
  209. PROTOBUF_FIELD_OFFSET(::protobuf::PlayerMsg, _impl_.player_type_),
  210. PROTOBUF_FIELD_OFFSET(::protobuf::PlayerMsg, _impl_.job_type_),
  211. ~0u, // no _has_bits_
  212. PROTOBUF_FIELD_OFFSET(::protobuf::MoveMsg, _internal_metadata_),
  213. ~0u, // no _extensions_
  214. ~0u, // no _oneof_case_
  215. ~0u, // no _weak_field_map_
  216. ~0u, // no _inlined_string_donated_
  217. PROTOBUF_FIELD_OFFSET(::protobuf::MoveMsg, _impl_.player_id_),
  218. PROTOBUF_FIELD_OFFSET(::protobuf::MoveMsg, _impl_.angle_),
  219. PROTOBUF_FIELD_OFFSET(::protobuf::MoveMsg, _impl_.time_in_milliseconds_),
  220. ~0u, // no _has_bits_
  221. PROTOBUF_FIELD_OFFSET(::protobuf::PropMsg, _internal_metadata_),
  222. ~0u, // no _extensions_
  223. ~0u, // no _oneof_case_
  224. ~0u, // no _weak_field_map_
  225. ~0u, // no _inlined_string_donated_
  226. PROTOBUF_FIELD_OFFSET(::protobuf::PropMsg, _impl_.player_id_),
  227. PROTOBUF_FIELD_OFFSET(::protobuf::PropMsg, _impl_.prop_type_),
  228. ~0u, // no _has_bits_
  229. PROTOBUF_FIELD_OFFSET(::protobuf::SendMsg, _internal_metadata_),
  230. ~0u, // no _extensions_
  231. PROTOBUF_FIELD_OFFSET(::protobuf::SendMsg, _impl_._oneof_case_[0]),
  232. ~0u, // no _weak_field_map_
  233. ~0u, // no _inlined_string_donated_
  234. PROTOBUF_FIELD_OFFSET(::protobuf::SendMsg, _impl_.player_id_),
  235. PROTOBUF_FIELD_OFFSET(::protobuf::SendMsg, _impl_.to_player_id_),
  236. ::_pbi::kInvalidFieldOffsetTag,
  237. ::_pbi::kInvalidFieldOffsetTag,
  238. PROTOBUF_FIELD_OFFSET(::protobuf::SendMsg, _impl_.message_),
  239. ~0u, // no _has_bits_
  240. PROTOBUF_FIELD_OFFSET(::protobuf::AttackMsg, _internal_metadata_),
  241. ~0u, // no _extensions_
  242. ~0u, // no _oneof_case_
  243. ~0u, // no _weak_field_map_
  244. ~0u, // no _inlined_string_donated_
  245. PROTOBUF_FIELD_OFFSET(::protobuf::AttackMsg, _impl_.player_id_),
  246. PROTOBUF_FIELD_OFFSET(::protobuf::AttackMsg, _impl_.angle_),
  247. ~0u, // no _has_bits_
  248. PROTOBUF_FIELD_OFFSET(::protobuf::IDMsg, _internal_metadata_),
  249. ~0u, // no _extensions_
  250. ~0u, // no _oneof_case_
  251. ~0u, // no _weak_field_map_
  252. ~0u, // no _inlined_string_donated_
  253. PROTOBUF_FIELD_OFFSET(::protobuf::IDMsg, _impl_.player_id_),
  254. ~0u, // no _has_bits_
  255. PROTOBUF_FIELD_OFFSET(::protobuf::TreatAndRescueMsg, _internal_metadata_),
  256. ~0u, // no _extensions_
  257. ~0u, // no _oneof_case_
  258. ~0u, // no _weak_field_map_
  259. ~0u, // no _inlined_string_donated_
  260. PROTOBUF_FIELD_OFFSET(::protobuf::TreatAndRescueMsg, _impl_.player_id_),
  261. PROTOBUF_FIELD_OFFSET(::protobuf::TreatAndRescueMsg, _impl_.to_player_id_),
  262. ~0u, // no _has_bits_
  263. PROTOBUF_FIELD_OFFSET(::protobuf::SkillMsg, _internal_metadata_),
  264. ~0u, // no _extensions_
  265. ~0u, // no _oneof_case_
  266. ~0u, // no _weak_field_map_
  267. ~0u, // no _inlined_string_donated_
  268. PROTOBUF_FIELD_OFFSET(::protobuf::SkillMsg, _impl_.player_id_),
  269. PROTOBUF_FIELD_OFFSET(::protobuf::SkillMsg, _impl_.skill_id_),
  270. };
  271. static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  272. {0, -1, -1, sizeof(::protobuf::PlayerMsg)},
  273. {11, -1, -1, sizeof(::protobuf::MoveMsg)},
  274. {20, -1, -1, sizeof(::protobuf::PropMsg)},
  275. {28, -1, -1, sizeof(::protobuf::SendMsg)},
  276. {39, -1, -1, sizeof(::protobuf::AttackMsg)},
  277. {47, -1, -1, sizeof(::protobuf::IDMsg)},
  278. {54, -1, -1, sizeof(::protobuf::TreatAndRescueMsg)},
  279. {62, -1, -1, sizeof(::protobuf::SkillMsg)},
  280. };
  281. static const ::_pb::Message* const file_default_instances[] = {
  282. &::protobuf::_PlayerMsg_default_instance_._instance,
  283. &::protobuf::_MoveMsg_default_instance_._instance,
  284. &::protobuf::_PropMsg_default_instance_._instance,
  285. &::protobuf::_SendMsg_default_instance_._instance,
  286. &::protobuf::_AttackMsg_default_instance_._instance,
  287. &::protobuf::_IDMsg_default_instance_._instance,
  288. &::protobuf::_TreatAndRescueMsg_default_instance_._instance,
  289. &::protobuf::_SkillMsg_default_instance_._instance,
  290. };
  291. const char descriptor_table_protodef_Message2Server_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  292. "\n\024Message2Server.proto\022\010protobuf\032\021Messag"
  293. "eType.proto\"\263\001\n\tPlayerMsg\022\021\n\tplayer_id\030\001"
  294. " \001(\003\022-\n\014student_type\030\002 \001(\0162\025.protobuf.St"
  295. "udentTypeH\000\022-\n\014tricker_type\030\003 \001(\0162\025.prot"
  296. "obuf.TrickerTypeH\000\022)\n\013player_type\030\004 \001(\0162"
  297. "\024.protobuf.PlayerTypeB\n\n\010job_type\"I\n\007Mov"
  298. "eMsg\022\021\n\tplayer_id\030\001 \001(\003\022\r\n\005angle\030\002 \001(\001\022\034"
  299. "\n\024time_in_milliseconds\030\003 \001(\003\"C\n\007PropMsg\022"
  300. "\021\n\tplayer_id\030\001 \001(\003\022%\n\tprop_type\030\002 \001(\0162\022."
  301. "protobuf.PropType\"o\n\007SendMsg\022\021\n\tplayer_i"
  302. "d\030\001 \001(\003\022\024\n\014to_player_id\030\002 \001(\003\022\026\n\014text_me"
  303. "ssage\030\003 \001(\tH\000\022\030\n\016binary_message\030\004 \001(\014H\000B"
  304. "\t\n\007message\"-\n\tAttackMsg\022\021\n\tplayer_id\030\001 \001"
  305. "(\003\022\r\n\005angle\030\002 \001(\001\"\032\n\005IDMsg\022\021\n\tplayer_id\030"
  306. "\001 \001(\003\"<\n\021TreatAndRescueMsg\022\021\n\tplayer_id\030"
  307. "\001 \001(\003\022\024\n\014to_player_id\030\002 \001(\003\"/\n\010SkillMsg\022"
  308. "\021\n\tplayer_id\030\001 \001(\003\022\020\n\010skill_id\030\002 \001(\005b\006pr"
  309. "oto3";
  310. static const ::_pbi::DescriptorTable* const descriptor_table_Message2Server_2eproto_deps[1] = {
  311. &::descriptor_table_MessageType_2eproto,
  312. };
  313. static ::_pbi::once_flag descriptor_table_Message2Server_2eproto_once;
  314. const ::_pbi::DescriptorTable descriptor_table_Message2Server_2eproto = {
  315. false,
  316. false,
  317. 684,
  318. descriptor_table_protodef_Message2Server_2eproto,
  319. "Message2Server.proto",
  320. &descriptor_table_Message2Server_2eproto_once,
  321. descriptor_table_Message2Server_2eproto_deps,
  322. 1,
  323. 8,
  324. schemas,
  325. file_default_instances,
  326. TableStruct_Message2Server_2eproto::offsets,
  327. file_level_metadata_Message2Server_2eproto,
  328. file_level_enum_descriptors_Message2Server_2eproto,
  329. file_level_service_descriptors_Message2Server_2eproto,
  330. };
  331. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_Message2Server_2eproto_getter()
  332. {
  333. return &descriptor_table_Message2Server_2eproto;
  334. }
  335. // Force running AddDescriptors() at dynamic initialization time.
  336. PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_Message2Server_2eproto(&descriptor_table_Message2Server_2eproto);
  337. namespace protobuf
  338. {
  339. // ===================================================================
  340. class PlayerMsg::_Internal
  341. {
  342. public:
  343. };
  344. PlayerMsg::PlayerMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  345. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  346. {
  347. SharedCtor(arena, is_message_owned);
  348. // @@protoc_insertion_point(arena_constructor:protobuf.PlayerMsg)
  349. }
  350. PlayerMsg::PlayerMsg(const PlayerMsg& from) :
  351. ::PROTOBUF_NAMESPACE_ID::Message()
  352. {
  353. PlayerMsg* const _this = this;
  354. (void)_this;
  355. new (&_impl_) Impl_{
  356. decltype(_impl_.player_id_){}, decltype(_impl_.player_type_){}, decltype(_impl_.job_type_){}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_._oneof_case_)*/ {}};
  357. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  358. ::memcpy(&_impl_.player_id_, &from._impl_.player_id_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.player_type_) - reinterpret_cast<char*>(&_impl_.player_id_)) + sizeof(_impl_.player_type_));
  359. clear_has_job_type();
  360. switch (from.job_type_case())
  361. {
  362. case kStudentType:
  363. {
  364. _this->_internal_set_student_type(from._internal_student_type());
  365. break;
  366. }
  367. case kTrickerType:
  368. {
  369. _this->_internal_set_tricker_type(from._internal_tricker_type());
  370. break;
  371. }
  372. case JOB_TYPE_NOT_SET:
  373. {
  374. break;
  375. }
  376. }
  377. // @@protoc_insertion_point(copy_constructor:protobuf.PlayerMsg)
  378. }
  379. inline void PlayerMsg::SharedCtor(
  380. ::_pb::Arena* arena, bool is_message_owned
  381. )
  382. {
  383. (void)arena;
  384. (void)is_message_owned;
  385. new (&_impl_) Impl_{
  386. decltype(_impl_.player_id_){int64_t{0}}, decltype(_impl_.player_type_){0}, decltype(_impl_.job_type_){}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_._oneof_case_)*/ {}};
  387. clear_has_job_type();
  388. }
  389. PlayerMsg::~PlayerMsg()
  390. {
  391. // @@protoc_insertion_point(destructor:protobuf.PlayerMsg)
  392. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  393. {
  394. (void)arena;
  395. return;
  396. }
  397. SharedDtor();
  398. }
  399. inline void PlayerMsg::SharedDtor()
  400. {
  401. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  402. if (has_job_type())
  403. {
  404. clear_job_type();
  405. }
  406. }
  407. void PlayerMsg::SetCachedSize(int size) const
  408. {
  409. _impl_._cached_size_.Set(size);
  410. }
  411. void PlayerMsg::clear_job_type()
  412. {
  413. // @@protoc_insertion_point(one_of_clear_start:protobuf.PlayerMsg)
  414. switch (job_type_case())
  415. {
  416. case kStudentType:
  417. {
  418. // No need to clear
  419. break;
  420. }
  421. case kTrickerType:
  422. {
  423. // No need to clear
  424. break;
  425. }
  426. case JOB_TYPE_NOT_SET:
  427. {
  428. break;
  429. }
  430. }
  431. _impl_._oneof_case_[0] = JOB_TYPE_NOT_SET;
  432. }
  433. void PlayerMsg::Clear()
  434. {
  435. // @@protoc_insertion_point(message_clear_start:protobuf.PlayerMsg)
  436. uint32_t cached_has_bits = 0;
  437. // Prevent compiler warnings about cached_has_bits being unused
  438. (void)cached_has_bits;
  439. ::memset(&_impl_.player_id_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.player_type_) - reinterpret_cast<char*>(&_impl_.player_id_)) + sizeof(_impl_.player_type_));
  440. clear_job_type();
  441. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  442. }
  443. const char* PlayerMsg::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  444. {
  445. #define CHK_(x) \
  446. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  447. goto failure
  448. while (!ctx->Done(&ptr))
  449. {
  450. uint32_t tag;
  451. ptr = ::_pbi::ReadTag(ptr, &tag);
  452. switch (tag >> 3)
  453. {
  454. // int64 player_id = 1;
  455. case 1:
  456. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  457. {
  458. _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  459. CHK_(ptr);
  460. }
  461. else
  462. goto handle_unusual;
  463. continue;
  464. // .protobuf.StudentType student_type = 2;
  465. case 2:
  466. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  467. {
  468. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  469. CHK_(ptr);
  470. _internal_set_student_type(static_cast<::protobuf::StudentType>(val));
  471. }
  472. else
  473. goto handle_unusual;
  474. continue;
  475. // .protobuf.TrickerType tricker_type = 3;
  476. case 3:
  477. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
  478. {
  479. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  480. CHK_(ptr);
  481. _internal_set_tricker_type(static_cast<::protobuf::TrickerType>(val));
  482. }
  483. else
  484. goto handle_unusual;
  485. continue;
  486. // .protobuf.PlayerType player_type = 4;
  487. case 4:
  488. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32))
  489. {
  490. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  491. CHK_(ptr);
  492. _internal_set_player_type(static_cast<::protobuf::PlayerType>(val));
  493. }
  494. else
  495. goto handle_unusual;
  496. continue;
  497. default:
  498. goto handle_unusual;
  499. } // switch
  500. handle_unusual:
  501. if ((tag == 0) || ((tag & 7) == 4))
  502. {
  503. CHK_(ptr);
  504. ctx->SetLastTag(tag);
  505. goto message_done;
  506. }
  507. ptr = UnknownFieldParse(
  508. tag,
  509. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  510. ptr,
  511. ctx
  512. );
  513. CHK_(ptr != nullptr);
  514. } // while
  515. message_done:
  516. return ptr;
  517. failure:
  518. ptr = nullptr;
  519. goto message_done;
  520. #undef CHK_
  521. }
  522. uint8_t* PlayerMsg::_InternalSerialize(
  523. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  524. ) const
  525. {
  526. // @@protoc_insertion_point(serialize_to_array_start:protobuf.PlayerMsg)
  527. uint32_t cached_has_bits = 0;
  528. (void)cached_has_bits;
  529. // int64 player_id = 1;
  530. if (this->_internal_player_id() != 0)
  531. {
  532. target = stream->EnsureSpace(target);
  533. target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target);
  534. }
  535. // .protobuf.StudentType student_type = 2;
  536. if (_internal_has_student_type())
  537. {
  538. target = stream->EnsureSpace(target);
  539. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  540. 2, this->_internal_student_type(), target
  541. );
  542. }
  543. // .protobuf.TrickerType tricker_type = 3;
  544. if (_internal_has_tricker_type())
  545. {
  546. target = stream->EnsureSpace(target);
  547. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  548. 3, this->_internal_tricker_type(), target
  549. );
  550. }
  551. // .protobuf.PlayerType player_type = 4;
  552. if (this->_internal_player_type() != 0)
  553. {
  554. target = stream->EnsureSpace(target);
  555. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  556. 4, this->_internal_player_type(), target
  557. );
  558. }
  559. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  560. {
  561. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  562. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  563. );
  564. }
  565. // @@protoc_insertion_point(serialize_to_array_end:protobuf.PlayerMsg)
  566. return target;
  567. }
  568. size_t PlayerMsg::ByteSizeLong() const
  569. {
  570. // @@protoc_insertion_point(message_byte_size_start:protobuf.PlayerMsg)
  571. size_t total_size = 0;
  572. uint32_t cached_has_bits = 0;
  573. // Prevent compiler warnings about cached_has_bits being unused
  574. (void)cached_has_bits;
  575. // int64 player_id = 1;
  576. if (this->_internal_player_id() != 0)
  577. {
  578. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id());
  579. }
  580. // .protobuf.PlayerType player_type = 4;
  581. if (this->_internal_player_type() != 0)
  582. {
  583. total_size += 1 +
  584. ::_pbi::WireFormatLite::EnumSize(this->_internal_player_type());
  585. }
  586. switch (job_type_case())
  587. {
  588. // .protobuf.StudentType student_type = 2;
  589. case kStudentType:
  590. {
  591. total_size += 1 +
  592. ::_pbi::WireFormatLite::EnumSize(this->_internal_student_type());
  593. break;
  594. }
  595. // .protobuf.TrickerType tricker_type = 3;
  596. case kTrickerType:
  597. {
  598. total_size += 1 +
  599. ::_pbi::WireFormatLite::EnumSize(this->_internal_tricker_type());
  600. break;
  601. }
  602. case JOB_TYPE_NOT_SET:
  603. {
  604. break;
  605. }
  606. }
  607. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  608. }
  609. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PlayerMsg::_class_data_ = {
  610. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  611. PlayerMsg::MergeImpl};
  612. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* PlayerMsg::GetClassData() const
  613. {
  614. return &_class_data_;
  615. }
  616. void PlayerMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  617. {
  618. auto* const _this = static_cast<PlayerMsg*>(&to_msg);
  619. auto& from = static_cast<const PlayerMsg&>(from_msg);
  620. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.PlayerMsg)
  621. GOOGLE_DCHECK_NE(&from, _this);
  622. uint32_t cached_has_bits = 0;
  623. (void)cached_has_bits;
  624. if (from._internal_player_id() != 0)
  625. {
  626. _this->_internal_set_player_id(from._internal_player_id());
  627. }
  628. if (from._internal_player_type() != 0)
  629. {
  630. _this->_internal_set_player_type(from._internal_player_type());
  631. }
  632. switch (from.job_type_case())
  633. {
  634. case kStudentType:
  635. {
  636. _this->_internal_set_student_type(from._internal_student_type());
  637. break;
  638. }
  639. case kTrickerType:
  640. {
  641. _this->_internal_set_tricker_type(from._internal_tricker_type());
  642. break;
  643. }
  644. case JOB_TYPE_NOT_SET:
  645. {
  646. break;
  647. }
  648. }
  649. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  650. }
  651. void PlayerMsg::CopyFrom(const PlayerMsg& from)
  652. {
  653. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.PlayerMsg)
  654. if (&from == this)
  655. return;
  656. Clear();
  657. MergeFrom(from);
  658. }
  659. bool PlayerMsg::IsInitialized() const
  660. {
  661. return true;
  662. }
  663. void PlayerMsg::InternalSwap(PlayerMsg* other)
  664. {
  665. using std::swap;
  666. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  667. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  668. PROTOBUF_FIELD_OFFSET(PlayerMsg, _impl_.player_type_) + sizeof(PlayerMsg::_impl_.player_type_) - PROTOBUF_FIELD_OFFSET(PlayerMsg, _impl_.player_id_)>(
  669. reinterpret_cast<char*>(&_impl_.player_id_),
  670. reinterpret_cast<char*>(&other->_impl_.player_id_)
  671. );
  672. swap(_impl_.job_type_, other->_impl_.job_type_);
  673. swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
  674. }
  675. ::PROTOBUF_NAMESPACE_ID::Metadata PlayerMsg::GetMetadata() const
  676. {
  677. return ::_pbi::AssignDescriptors(
  678. &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[0]
  679. );
  680. }
  681. // ===================================================================
  682. class MoveMsg::_Internal
  683. {
  684. public:
  685. };
  686. MoveMsg::MoveMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  687. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  688. {
  689. SharedCtor(arena, is_message_owned);
  690. // @@protoc_insertion_point(arena_constructor:protobuf.MoveMsg)
  691. }
  692. MoveMsg::MoveMsg(const MoveMsg& from) :
  693. ::PROTOBUF_NAMESPACE_ID::Message()
  694. {
  695. MoveMsg* const _this = this;
  696. (void)_this;
  697. new (&_impl_) Impl_{
  698. decltype(_impl_.player_id_){}, decltype(_impl_.angle_){}, decltype(_impl_.time_in_milliseconds_){}, /*decltype(_impl_._cached_size_)*/ {}};
  699. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  700. ::memcpy(&_impl_.player_id_, &from._impl_.player_id_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.time_in_milliseconds_) - reinterpret_cast<char*>(&_impl_.player_id_)) + sizeof(_impl_.time_in_milliseconds_));
  701. // @@protoc_insertion_point(copy_constructor:protobuf.MoveMsg)
  702. }
  703. inline void MoveMsg::SharedCtor(
  704. ::_pb::Arena* arena, bool is_message_owned
  705. )
  706. {
  707. (void)arena;
  708. (void)is_message_owned;
  709. new (&_impl_) Impl_{
  710. decltype(_impl_.player_id_){int64_t{0}}, decltype(_impl_.angle_){0}, decltype(_impl_.time_in_milliseconds_){int64_t{0}}, /*decltype(_impl_._cached_size_)*/ {}};
  711. }
  712. MoveMsg::~MoveMsg()
  713. {
  714. // @@protoc_insertion_point(destructor:protobuf.MoveMsg)
  715. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  716. {
  717. (void)arena;
  718. return;
  719. }
  720. SharedDtor();
  721. }
  722. inline void MoveMsg::SharedDtor()
  723. {
  724. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  725. }
  726. void MoveMsg::SetCachedSize(int size) const
  727. {
  728. _impl_._cached_size_.Set(size);
  729. }
  730. void MoveMsg::Clear()
  731. {
  732. // @@protoc_insertion_point(message_clear_start:protobuf.MoveMsg)
  733. uint32_t cached_has_bits = 0;
  734. // Prevent compiler warnings about cached_has_bits being unused
  735. (void)cached_has_bits;
  736. ::memset(&_impl_.player_id_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.time_in_milliseconds_) - reinterpret_cast<char*>(&_impl_.player_id_)) + sizeof(_impl_.time_in_milliseconds_));
  737. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  738. }
  739. const char* MoveMsg::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  740. {
  741. #define CHK_(x) \
  742. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  743. goto failure
  744. while (!ctx->Done(&ptr))
  745. {
  746. uint32_t tag;
  747. ptr = ::_pbi::ReadTag(ptr, &tag);
  748. switch (tag >> 3)
  749. {
  750. // int64 player_id = 1;
  751. case 1:
  752. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  753. {
  754. _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  755. CHK_(ptr);
  756. }
  757. else
  758. goto handle_unusual;
  759. continue;
  760. // double angle = 2;
  761. case 2:
  762. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 17))
  763. {
  764. _impl_.angle_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  765. ptr += sizeof(double);
  766. }
  767. else
  768. goto handle_unusual;
  769. continue;
  770. // int64 time_in_milliseconds = 3;
  771. case 3:
  772. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24))
  773. {
  774. _impl_.time_in_milliseconds_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  775. CHK_(ptr);
  776. }
  777. else
  778. goto handle_unusual;
  779. continue;
  780. default:
  781. goto handle_unusual;
  782. } // switch
  783. handle_unusual:
  784. if ((tag == 0) || ((tag & 7) == 4))
  785. {
  786. CHK_(ptr);
  787. ctx->SetLastTag(tag);
  788. goto message_done;
  789. }
  790. ptr = UnknownFieldParse(
  791. tag,
  792. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  793. ptr,
  794. ctx
  795. );
  796. CHK_(ptr != nullptr);
  797. } // while
  798. message_done:
  799. return ptr;
  800. failure:
  801. ptr = nullptr;
  802. goto message_done;
  803. #undef CHK_
  804. }
  805. uint8_t* MoveMsg::_InternalSerialize(
  806. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  807. ) const
  808. {
  809. // @@protoc_insertion_point(serialize_to_array_start:protobuf.MoveMsg)
  810. uint32_t cached_has_bits = 0;
  811. (void)cached_has_bits;
  812. // int64 player_id = 1;
  813. if (this->_internal_player_id() != 0)
  814. {
  815. target = stream->EnsureSpace(target);
  816. target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target);
  817. }
  818. // double angle = 2;
  819. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  820. double tmp_angle = this->_internal_angle();
  821. uint64_t raw_angle;
  822. memcpy(&raw_angle, &tmp_angle, sizeof(tmp_angle));
  823. if (raw_angle != 0)
  824. {
  825. target = stream->EnsureSpace(target);
  826. target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_angle(), target);
  827. }
  828. // int64 time_in_milliseconds = 3;
  829. if (this->_internal_time_in_milliseconds() != 0)
  830. {
  831. target = stream->EnsureSpace(target);
  832. target = ::_pbi::WireFormatLite::WriteInt64ToArray(3, this->_internal_time_in_milliseconds(), target);
  833. }
  834. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  835. {
  836. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  837. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  838. );
  839. }
  840. // @@protoc_insertion_point(serialize_to_array_end:protobuf.MoveMsg)
  841. return target;
  842. }
  843. size_t MoveMsg::ByteSizeLong() const
  844. {
  845. // @@protoc_insertion_point(message_byte_size_start:protobuf.MoveMsg)
  846. size_t total_size = 0;
  847. uint32_t cached_has_bits = 0;
  848. // Prevent compiler warnings about cached_has_bits being unused
  849. (void)cached_has_bits;
  850. // int64 player_id = 1;
  851. if (this->_internal_player_id() != 0)
  852. {
  853. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id());
  854. }
  855. // double angle = 2;
  856. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  857. double tmp_angle = this->_internal_angle();
  858. uint64_t raw_angle;
  859. memcpy(&raw_angle, &tmp_angle, sizeof(tmp_angle));
  860. if (raw_angle != 0)
  861. {
  862. total_size += 1 + 8;
  863. }
  864. // int64 time_in_milliseconds = 3;
  865. if (this->_internal_time_in_milliseconds() != 0)
  866. {
  867. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_time_in_milliseconds());
  868. }
  869. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  870. }
  871. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveMsg::_class_data_ = {
  872. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  873. MoveMsg::MergeImpl};
  874. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* MoveMsg::GetClassData() const
  875. {
  876. return &_class_data_;
  877. }
  878. void MoveMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  879. {
  880. auto* const _this = static_cast<MoveMsg*>(&to_msg);
  881. auto& from = static_cast<const MoveMsg&>(from_msg);
  882. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MoveMsg)
  883. GOOGLE_DCHECK_NE(&from, _this);
  884. uint32_t cached_has_bits = 0;
  885. (void)cached_has_bits;
  886. if (from._internal_player_id() != 0)
  887. {
  888. _this->_internal_set_player_id(from._internal_player_id());
  889. }
  890. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  891. double tmp_angle = from._internal_angle();
  892. uint64_t raw_angle;
  893. memcpy(&raw_angle, &tmp_angle, sizeof(tmp_angle));
  894. if (raw_angle != 0)
  895. {
  896. _this->_internal_set_angle(from._internal_angle());
  897. }
  898. if (from._internal_time_in_milliseconds() != 0)
  899. {
  900. _this->_internal_set_time_in_milliseconds(from._internal_time_in_milliseconds());
  901. }
  902. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  903. }
  904. void MoveMsg::CopyFrom(const MoveMsg& from)
  905. {
  906. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MoveMsg)
  907. if (&from == this)
  908. return;
  909. Clear();
  910. MergeFrom(from);
  911. }
  912. bool MoveMsg::IsInitialized() const
  913. {
  914. return true;
  915. }
  916. void MoveMsg::InternalSwap(MoveMsg* other)
  917. {
  918. using std::swap;
  919. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  920. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  921. PROTOBUF_FIELD_OFFSET(MoveMsg, _impl_.time_in_milliseconds_) + sizeof(MoveMsg::_impl_.time_in_milliseconds_) - PROTOBUF_FIELD_OFFSET(MoveMsg, _impl_.player_id_)>(
  922. reinterpret_cast<char*>(&_impl_.player_id_),
  923. reinterpret_cast<char*>(&other->_impl_.player_id_)
  924. );
  925. }
  926. ::PROTOBUF_NAMESPACE_ID::Metadata MoveMsg::GetMetadata() const
  927. {
  928. return ::_pbi::AssignDescriptors(
  929. &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[1]
  930. );
  931. }
  932. // ===================================================================
  933. class PropMsg::_Internal
  934. {
  935. public:
  936. };
  937. PropMsg::PropMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  938. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  939. {
  940. SharedCtor(arena, is_message_owned);
  941. // @@protoc_insertion_point(arena_constructor:protobuf.PropMsg)
  942. }
  943. PropMsg::PropMsg(const PropMsg& from) :
  944. ::PROTOBUF_NAMESPACE_ID::Message()
  945. {
  946. PropMsg* const _this = this;
  947. (void)_this;
  948. new (&_impl_) Impl_{
  949. decltype(_impl_.player_id_){}, decltype(_impl_.prop_type_){}, /*decltype(_impl_._cached_size_)*/ {}};
  950. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  951. ::memcpy(&_impl_.player_id_, &from._impl_.player_id_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.prop_type_) - reinterpret_cast<char*>(&_impl_.player_id_)) + sizeof(_impl_.prop_type_));
  952. // @@protoc_insertion_point(copy_constructor:protobuf.PropMsg)
  953. }
  954. inline void PropMsg::SharedCtor(
  955. ::_pb::Arena* arena, bool is_message_owned
  956. )
  957. {
  958. (void)arena;
  959. (void)is_message_owned;
  960. new (&_impl_) Impl_{
  961. decltype(_impl_.player_id_){int64_t{0}}, decltype(_impl_.prop_type_){0}, /*decltype(_impl_._cached_size_)*/ {}};
  962. }
  963. PropMsg::~PropMsg()
  964. {
  965. // @@protoc_insertion_point(destructor:protobuf.PropMsg)
  966. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  967. {
  968. (void)arena;
  969. return;
  970. }
  971. SharedDtor();
  972. }
  973. inline void PropMsg::SharedDtor()
  974. {
  975. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  976. }
  977. void PropMsg::SetCachedSize(int size) const
  978. {
  979. _impl_._cached_size_.Set(size);
  980. }
  981. void PropMsg::Clear()
  982. {
  983. // @@protoc_insertion_point(message_clear_start:protobuf.PropMsg)
  984. uint32_t cached_has_bits = 0;
  985. // Prevent compiler warnings about cached_has_bits being unused
  986. (void)cached_has_bits;
  987. ::memset(&_impl_.player_id_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.prop_type_) - reinterpret_cast<char*>(&_impl_.player_id_)) + sizeof(_impl_.prop_type_));
  988. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  989. }
  990. const char* PropMsg::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  991. {
  992. #define CHK_(x) \
  993. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  994. goto failure
  995. while (!ctx->Done(&ptr))
  996. {
  997. uint32_t tag;
  998. ptr = ::_pbi::ReadTag(ptr, &tag);
  999. switch (tag >> 3)
  1000. {
  1001. // int64 player_id = 1;
  1002. case 1:
  1003. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  1004. {
  1005. _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1006. CHK_(ptr);
  1007. }
  1008. else
  1009. goto handle_unusual;
  1010. continue;
  1011. // .protobuf.PropType prop_type = 2;
  1012. case 2:
  1013. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  1014. {
  1015. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1016. CHK_(ptr);
  1017. _internal_set_prop_type(static_cast<::protobuf::PropType>(val));
  1018. }
  1019. else
  1020. goto handle_unusual;
  1021. continue;
  1022. default:
  1023. goto handle_unusual;
  1024. } // switch
  1025. handle_unusual:
  1026. if ((tag == 0) || ((tag & 7) == 4))
  1027. {
  1028. CHK_(ptr);
  1029. ctx->SetLastTag(tag);
  1030. goto message_done;
  1031. }
  1032. ptr = UnknownFieldParse(
  1033. tag,
  1034. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1035. ptr,
  1036. ctx
  1037. );
  1038. CHK_(ptr != nullptr);
  1039. } // while
  1040. message_done:
  1041. return ptr;
  1042. failure:
  1043. ptr = nullptr;
  1044. goto message_done;
  1045. #undef CHK_
  1046. }
  1047. uint8_t* PropMsg::_InternalSerialize(
  1048. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  1049. ) const
  1050. {
  1051. // @@protoc_insertion_point(serialize_to_array_start:protobuf.PropMsg)
  1052. uint32_t cached_has_bits = 0;
  1053. (void)cached_has_bits;
  1054. // int64 player_id = 1;
  1055. if (this->_internal_player_id() != 0)
  1056. {
  1057. target = stream->EnsureSpace(target);
  1058. target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target);
  1059. }
  1060. // .protobuf.PropType prop_type = 2;
  1061. if (this->_internal_prop_type() != 0)
  1062. {
  1063. target = stream->EnsureSpace(target);
  1064. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  1065. 2, this->_internal_prop_type(), target
  1066. );
  1067. }
  1068. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  1069. {
  1070. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  1071. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  1072. );
  1073. }
  1074. // @@protoc_insertion_point(serialize_to_array_end:protobuf.PropMsg)
  1075. return target;
  1076. }
  1077. size_t PropMsg::ByteSizeLong() const
  1078. {
  1079. // @@protoc_insertion_point(message_byte_size_start:protobuf.PropMsg)
  1080. size_t total_size = 0;
  1081. uint32_t cached_has_bits = 0;
  1082. // Prevent compiler warnings about cached_has_bits being unused
  1083. (void)cached_has_bits;
  1084. // int64 player_id = 1;
  1085. if (this->_internal_player_id() != 0)
  1086. {
  1087. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id());
  1088. }
  1089. // .protobuf.PropType prop_type = 2;
  1090. if (this->_internal_prop_type() != 0)
  1091. {
  1092. total_size += 1 +
  1093. ::_pbi::WireFormatLite::EnumSize(this->_internal_prop_type());
  1094. }
  1095. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  1096. }
  1097. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PropMsg::_class_data_ = {
  1098. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  1099. PropMsg::MergeImpl};
  1100. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* PropMsg::GetClassData() const
  1101. {
  1102. return &_class_data_;
  1103. }
  1104. void PropMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  1105. {
  1106. auto* const _this = static_cast<PropMsg*>(&to_msg);
  1107. auto& from = static_cast<const PropMsg&>(from_msg);
  1108. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.PropMsg)
  1109. GOOGLE_DCHECK_NE(&from, _this);
  1110. uint32_t cached_has_bits = 0;
  1111. (void)cached_has_bits;
  1112. if (from._internal_player_id() != 0)
  1113. {
  1114. _this->_internal_set_player_id(from._internal_player_id());
  1115. }
  1116. if (from._internal_prop_type() != 0)
  1117. {
  1118. _this->_internal_set_prop_type(from._internal_prop_type());
  1119. }
  1120. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1121. }
  1122. void PropMsg::CopyFrom(const PropMsg& from)
  1123. {
  1124. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.PropMsg)
  1125. if (&from == this)
  1126. return;
  1127. Clear();
  1128. MergeFrom(from);
  1129. }
  1130. bool PropMsg::IsInitialized() const
  1131. {
  1132. return true;
  1133. }
  1134. void PropMsg::InternalSwap(PropMsg* other)
  1135. {
  1136. using std::swap;
  1137. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1138. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1139. PROTOBUF_FIELD_OFFSET(PropMsg, _impl_.prop_type_) + sizeof(PropMsg::_impl_.prop_type_) - PROTOBUF_FIELD_OFFSET(PropMsg, _impl_.player_id_)>(
  1140. reinterpret_cast<char*>(&_impl_.player_id_),
  1141. reinterpret_cast<char*>(&other->_impl_.player_id_)
  1142. );
  1143. }
  1144. ::PROTOBUF_NAMESPACE_ID::Metadata PropMsg::GetMetadata() const
  1145. {
  1146. return ::_pbi::AssignDescriptors(
  1147. &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[2]
  1148. );
  1149. }
  1150. // ===================================================================
  1151. class SendMsg::_Internal
  1152. {
  1153. public:
  1154. };
  1155. SendMsg::SendMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  1156. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  1157. {
  1158. SharedCtor(arena, is_message_owned);
  1159. // @@protoc_insertion_point(arena_constructor:protobuf.SendMsg)
  1160. }
  1161. SendMsg::SendMsg(const SendMsg& from) :
  1162. ::PROTOBUF_NAMESPACE_ID::Message()
  1163. {
  1164. SendMsg* const _this = this;
  1165. (void)_this;
  1166. new (&_impl_) Impl_{
  1167. decltype(_impl_.player_id_){}, decltype(_impl_.to_player_id_){}, decltype(_impl_.message_){}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_._oneof_case_)*/ {}};
  1168. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1169. ::memcpy(&_impl_.player_id_, &from._impl_.player_id_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.to_player_id_) - reinterpret_cast<char*>(&_impl_.player_id_)) + sizeof(_impl_.to_player_id_));
  1170. clear_has_message();
  1171. switch (from.message_case())
  1172. {
  1173. case kTextMessage:
  1174. {
  1175. _this->_internal_set_text_message(from._internal_text_message());
  1176. break;
  1177. }
  1178. case kBinaryMessage:
  1179. {
  1180. _this->_internal_set_binary_message(from._internal_binary_message());
  1181. break;
  1182. }
  1183. case MESSAGE_NOT_SET:
  1184. {
  1185. break;
  1186. }
  1187. }
  1188. // @@protoc_insertion_point(copy_constructor:protobuf.SendMsg)
  1189. }
  1190. inline void SendMsg::SharedCtor(
  1191. ::_pb::Arena* arena, bool is_message_owned
  1192. )
  1193. {
  1194. (void)arena;
  1195. (void)is_message_owned;
  1196. new (&_impl_) Impl_{
  1197. decltype(_impl_.player_id_){int64_t{0}}, decltype(_impl_.to_player_id_){int64_t{0}}, decltype(_impl_.message_){}, /*decltype(_impl_._cached_size_)*/ {}, /*decltype(_impl_._oneof_case_)*/ {}};
  1198. clear_has_message();
  1199. }
  1200. SendMsg::~SendMsg()
  1201. {
  1202. // @@protoc_insertion_point(destructor:protobuf.SendMsg)
  1203. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  1204. {
  1205. (void)arena;
  1206. return;
  1207. }
  1208. SharedDtor();
  1209. }
  1210. inline void SendMsg::SharedDtor()
  1211. {
  1212. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1213. if (has_message())
  1214. {
  1215. clear_message();
  1216. }
  1217. }
  1218. void SendMsg::SetCachedSize(int size) const
  1219. {
  1220. _impl_._cached_size_.Set(size);
  1221. }
  1222. void SendMsg::clear_message()
  1223. {
  1224. // @@protoc_insertion_point(one_of_clear_start:protobuf.SendMsg)
  1225. switch (message_case())
  1226. {
  1227. case kTextMessage:
  1228. {
  1229. _impl_.message_.text_message_.Destroy();
  1230. break;
  1231. }
  1232. case kBinaryMessage:
  1233. {
  1234. _impl_.message_.binary_message_.Destroy();
  1235. break;
  1236. }
  1237. case MESSAGE_NOT_SET:
  1238. {
  1239. break;
  1240. }
  1241. }
  1242. _impl_._oneof_case_[0] = MESSAGE_NOT_SET;
  1243. }
  1244. void SendMsg::Clear()
  1245. {
  1246. // @@protoc_insertion_point(message_clear_start:protobuf.SendMsg)
  1247. uint32_t cached_has_bits = 0;
  1248. // Prevent compiler warnings about cached_has_bits being unused
  1249. (void)cached_has_bits;
  1250. ::memset(&_impl_.player_id_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.to_player_id_) - reinterpret_cast<char*>(&_impl_.player_id_)) + sizeof(_impl_.to_player_id_));
  1251. clear_message();
  1252. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1253. }
  1254. const char* SendMsg::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  1255. {
  1256. #define CHK_(x) \
  1257. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  1258. goto failure
  1259. while (!ctx->Done(&ptr))
  1260. {
  1261. uint32_t tag;
  1262. ptr = ::_pbi::ReadTag(ptr, &tag);
  1263. switch (tag >> 3)
  1264. {
  1265. // int64 player_id = 1;
  1266. case 1:
  1267. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  1268. {
  1269. _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1270. CHK_(ptr);
  1271. }
  1272. else
  1273. goto handle_unusual;
  1274. continue;
  1275. // int64 to_player_id = 2;
  1276. case 2:
  1277. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  1278. {
  1279. _impl_.to_player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1280. CHK_(ptr);
  1281. }
  1282. else
  1283. goto handle_unusual;
  1284. continue;
  1285. // string text_message = 3;
  1286. case 3:
  1287. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26))
  1288. {
  1289. auto str = _internal_mutable_text_message();
  1290. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  1291. CHK_(ptr);
  1292. CHK_(::_pbi::VerifyUTF8(str, "protobuf.SendMsg.text_message"));
  1293. }
  1294. else
  1295. goto handle_unusual;
  1296. continue;
  1297. // bytes binary_message = 4;
  1298. case 4:
  1299. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34))
  1300. {
  1301. auto str = _internal_mutable_binary_message();
  1302. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  1303. CHK_(ptr);
  1304. }
  1305. else
  1306. goto handle_unusual;
  1307. continue;
  1308. default:
  1309. goto handle_unusual;
  1310. } // switch
  1311. handle_unusual:
  1312. if ((tag == 0) || ((tag & 7) == 4))
  1313. {
  1314. CHK_(ptr);
  1315. ctx->SetLastTag(tag);
  1316. goto message_done;
  1317. }
  1318. ptr = UnknownFieldParse(
  1319. tag,
  1320. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1321. ptr,
  1322. ctx
  1323. );
  1324. CHK_(ptr != nullptr);
  1325. } // while
  1326. message_done:
  1327. return ptr;
  1328. failure:
  1329. ptr = nullptr;
  1330. goto message_done;
  1331. #undef CHK_
  1332. }
  1333. uint8_t* SendMsg::_InternalSerialize(
  1334. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  1335. ) const
  1336. {
  1337. // @@protoc_insertion_point(serialize_to_array_start:protobuf.SendMsg)
  1338. uint32_t cached_has_bits = 0;
  1339. (void)cached_has_bits;
  1340. // int64 player_id = 1;
  1341. if (this->_internal_player_id() != 0)
  1342. {
  1343. target = stream->EnsureSpace(target);
  1344. target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target);
  1345. }
  1346. // int64 to_player_id = 2;
  1347. if (this->_internal_to_player_id() != 0)
  1348. {
  1349. target = stream->EnsureSpace(target);
  1350. target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_to_player_id(), target);
  1351. }
  1352. // string text_message = 3;
  1353. if (_internal_has_text_message())
  1354. {
  1355. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  1356. this->_internal_text_message().data(), static_cast<int>(this->_internal_text_message().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "protobuf.SendMsg.text_message"
  1357. );
  1358. target = stream->WriteStringMaybeAliased(
  1359. 3, this->_internal_text_message(), target
  1360. );
  1361. }
  1362. // bytes binary_message = 4;
  1363. if (_internal_has_binary_message())
  1364. {
  1365. target = stream->WriteBytesMaybeAliased(
  1366. 4, this->_internal_binary_message(), target
  1367. );
  1368. }
  1369. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  1370. {
  1371. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  1372. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  1373. );
  1374. }
  1375. // @@protoc_insertion_point(serialize_to_array_end:protobuf.SendMsg)
  1376. return target;
  1377. }
  1378. size_t SendMsg::ByteSizeLong() const
  1379. {
  1380. // @@protoc_insertion_point(message_byte_size_start:protobuf.SendMsg)
  1381. size_t total_size = 0;
  1382. uint32_t cached_has_bits = 0;
  1383. // Prevent compiler warnings about cached_has_bits being unused
  1384. (void)cached_has_bits;
  1385. // int64 player_id = 1;
  1386. if (this->_internal_player_id() != 0)
  1387. {
  1388. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id());
  1389. }
  1390. // int64 to_player_id = 2;
  1391. if (this->_internal_to_player_id() != 0)
  1392. {
  1393. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_to_player_id());
  1394. }
  1395. switch (message_case())
  1396. {
  1397. // string text_message = 3;
  1398. case kTextMessage:
  1399. {
  1400. total_size += 1 +
  1401. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1402. this->_internal_text_message()
  1403. );
  1404. break;
  1405. }
  1406. // bytes binary_message = 4;
  1407. case kBinaryMessage:
  1408. {
  1409. total_size += 1 +
  1410. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
  1411. this->_internal_binary_message()
  1412. );
  1413. break;
  1414. }
  1415. case MESSAGE_NOT_SET:
  1416. {
  1417. break;
  1418. }
  1419. }
  1420. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  1421. }
  1422. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SendMsg::_class_data_ = {
  1423. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  1424. SendMsg::MergeImpl};
  1425. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* SendMsg::GetClassData() const
  1426. {
  1427. return &_class_data_;
  1428. }
  1429. void SendMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  1430. {
  1431. auto* const _this = static_cast<SendMsg*>(&to_msg);
  1432. auto& from = static_cast<const SendMsg&>(from_msg);
  1433. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.SendMsg)
  1434. GOOGLE_DCHECK_NE(&from, _this);
  1435. uint32_t cached_has_bits = 0;
  1436. (void)cached_has_bits;
  1437. if (from._internal_player_id() != 0)
  1438. {
  1439. _this->_internal_set_player_id(from._internal_player_id());
  1440. }
  1441. if (from._internal_to_player_id() != 0)
  1442. {
  1443. _this->_internal_set_to_player_id(from._internal_to_player_id());
  1444. }
  1445. switch (from.message_case())
  1446. {
  1447. case kTextMessage:
  1448. {
  1449. _this->_internal_set_text_message(from._internal_text_message());
  1450. break;
  1451. }
  1452. case kBinaryMessage:
  1453. {
  1454. _this->_internal_set_binary_message(from._internal_binary_message());
  1455. break;
  1456. }
  1457. case MESSAGE_NOT_SET:
  1458. {
  1459. break;
  1460. }
  1461. }
  1462. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1463. }
  1464. void SendMsg::CopyFrom(const SendMsg& from)
  1465. {
  1466. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.SendMsg)
  1467. if (&from == this)
  1468. return;
  1469. Clear();
  1470. MergeFrom(from);
  1471. }
  1472. bool SendMsg::IsInitialized() const
  1473. {
  1474. return true;
  1475. }
  1476. void SendMsg::InternalSwap(SendMsg* other)
  1477. {
  1478. using std::swap;
  1479. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1480. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1481. PROTOBUF_FIELD_OFFSET(SendMsg, _impl_.to_player_id_) + sizeof(SendMsg::_impl_.to_player_id_) - PROTOBUF_FIELD_OFFSET(SendMsg, _impl_.player_id_)>(
  1482. reinterpret_cast<char*>(&_impl_.player_id_),
  1483. reinterpret_cast<char*>(&other->_impl_.player_id_)
  1484. );
  1485. swap(_impl_.message_, other->_impl_.message_);
  1486. swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
  1487. }
  1488. ::PROTOBUF_NAMESPACE_ID::Metadata SendMsg::GetMetadata() const
  1489. {
  1490. return ::_pbi::AssignDescriptors(
  1491. &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[3]
  1492. );
  1493. }
  1494. // ===================================================================
  1495. class AttackMsg::_Internal
  1496. {
  1497. public:
  1498. };
  1499. AttackMsg::AttackMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  1500. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  1501. {
  1502. SharedCtor(arena, is_message_owned);
  1503. // @@protoc_insertion_point(arena_constructor:protobuf.AttackMsg)
  1504. }
  1505. AttackMsg::AttackMsg(const AttackMsg& from) :
  1506. ::PROTOBUF_NAMESPACE_ID::Message()
  1507. {
  1508. AttackMsg* const _this = this;
  1509. (void)_this;
  1510. new (&_impl_) Impl_{
  1511. decltype(_impl_.player_id_){}, decltype(_impl_.angle_){}, /*decltype(_impl_._cached_size_)*/ {}};
  1512. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1513. ::memcpy(&_impl_.player_id_, &from._impl_.player_id_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.angle_) - reinterpret_cast<char*>(&_impl_.player_id_)) + sizeof(_impl_.angle_));
  1514. // @@protoc_insertion_point(copy_constructor:protobuf.AttackMsg)
  1515. }
  1516. inline void AttackMsg::SharedCtor(
  1517. ::_pb::Arena* arena, bool is_message_owned
  1518. )
  1519. {
  1520. (void)arena;
  1521. (void)is_message_owned;
  1522. new (&_impl_) Impl_{
  1523. decltype(_impl_.player_id_){int64_t{0}}, decltype(_impl_.angle_){0}, /*decltype(_impl_._cached_size_)*/ {}};
  1524. }
  1525. AttackMsg::~AttackMsg()
  1526. {
  1527. // @@protoc_insertion_point(destructor:protobuf.AttackMsg)
  1528. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  1529. {
  1530. (void)arena;
  1531. return;
  1532. }
  1533. SharedDtor();
  1534. }
  1535. inline void AttackMsg::SharedDtor()
  1536. {
  1537. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1538. }
  1539. void AttackMsg::SetCachedSize(int size) const
  1540. {
  1541. _impl_._cached_size_.Set(size);
  1542. }
  1543. void AttackMsg::Clear()
  1544. {
  1545. // @@protoc_insertion_point(message_clear_start:protobuf.AttackMsg)
  1546. uint32_t cached_has_bits = 0;
  1547. // Prevent compiler warnings about cached_has_bits being unused
  1548. (void)cached_has_bits;
  1549. ::memset(&_impl_.player_id_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.angle_) - reinterpret_cast<char*>(&_impl_.player_id_)) + sizeof(_impl_.angle_));
  1550. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1551. }
  1552. const char* AttackMsg::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  1553. {
  1554. #define CHK_(x) \
  1555. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  1556. goto failure
  1557. while (!ctx->Done(&ptr))
  1558. {
  1559. uint32_t tag;
  1560. ptr = ::_pbi::ReadTag(ptr, &tag);
  1561. switch (tag >> 3)
  1562. {
  1563. // int64 player_id = 1;
  1564. case 1:
  1565. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  1566. {
  1567. _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1568. CHK_(ptr);
  1569. }
  1570. else
  1571. goto handle_unusual;
  1572. continue;
  1573. // double angle = 2;
  1574. case 2:
  1575. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 17))
  1576. {
  1577. _impl_.angle_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  1578. ptr += sizeof(double);
  1579. }
  1580. else
  1581. goto handle_unusual;
  1582. continue;
  1583. default:
  1584. goto handle_unusual;
  1585. } // switch
  1586. handle_unusual:
  1587. if ((tag == 0) || ((tag & 7) == 4))
  1588. {
  1589. CHK_(ptr);
  1590. ctx->SetLastTag(tag);
  1591. goto message_done;
  1592. }
  1593. ptr = UnknownFieldParse(
  1594. tag,
  1595. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1596. ptr,
  1597. ctx
  1598. );
  1599. CHK_(ptr != nullptr);
  1600. } // while
  1601. message_done:
  1602. return ptr;
  1603. failure:
  1604. ptr = nullptr;
  1605. goto message_done;
  1606. #undef CHK_
  1607. }
  1608. uint8_t* AttackMsg::_InternalSerialize(
  1609. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  1610. ) const
  1611. {
  1612. // @@protoc_insertion_point(serialize_to_array_start:protobuf.AttackMsg)
  1613. uint32_t cached_has_bits = 0;
  1614. (void)cached_has_bits;
  1615. // int64 player_id = 1;
  1616. if (this->_internal_player_id() != 0)
  1617. {
  1618. target = stream->EnsureSpace(target);
  1619. target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target);
  1620. }
  1621. // double angle = 2;
  1622. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1623. double tmp_angle = this->_internal_angle();
  1624. uint64_t raw_angle;
  1625. memcpy(&raw_angle, &tmp_angle, sizeof(tmp_angle));
  1626. if (raw_angle != 0)
  1627. {
  1628. target = stream->EnsureSpace(target);
  1629. target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_angle(), target);
  1630. }
  1631. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  1632. {
  1633. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  1634. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  1635. );
  1636. }
  1637. // @@protoc_insertion_point(serialize_to_array_end:protobuf.AttackMsg)
  1638. return target;
  1639. }
  1640. size_t AttackMsg::ByteSizeLong() const
  1641. {
  1642. // @@protoc_insertion_point(message_byte_size_start:protobuf.AttackMsg)
  1643. size_t total_size = 0;
  1644. uint32_t cached_has_bits = 0;
  1645. // Prevent compiler warnings about cached_has_bits being unused
  1646. (void)cached_has_bits;
  1647. // int64 player_id = 1;
  1648. if (this->_internal_player_id() != 0)
  1649. {
  1650. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id());
  1651. }
  1652. // double angle = 2;
  1653. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1654. double tmp_angle = this->_internal_angle();
  1655. uint64_t raw_angle;
  1656. memcpy(&raw_angle, &tmp_angle, sizeof(tmp_angle));
  1657. if (raw_angle != 0)
  1658. {
  1659. total_size += 1 + 8;
  1660. }
  1661. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  1662. }
  1663. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AttackMsg::_class_data_ = {
  1664. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  1665. AttackMsg::MergeImpl};
  1666. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* AttackMsg::GetClassData() const
  1667. {
  1668. return &_class_data_;
  1669. }
  1670. void AttackMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  1671. {
  1672. auto* const _this = static_cast<AttackMsg*>(&to_msg);
  1673. auto& from = static_cast<const AttackMsg&>(from_msg);
  1674. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.AttackMsg)
  1675. GOOGLE_DCHECK_NE(&from, _this);
  1676. uint32_t cached_has_bits = 0;
  1677. (void)cached_has_bits;
  1678. if (from._internal_player_id() != 0)
  1679. {
  1680. _this->_internal_set_player_id(from._internal_player_id());
  1681. }
  1682. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  1683. double tmp_angle = from._internal_angle();
  1684. uint64_t raw_angle;
  1685. memcpy(&raw_angle, &tmp_angle, sizeof(tmp_angle));
  1686. if (raw_angle != 0)
  1687. {
  1688. _this->_internal_set_angle(from._internal_angle());
  1689. }
  1690. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1691. }
  1692. void AttackMsg::CopyFrom(const AttackMsg& from)
  1693. {
  1694. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.AttackMsg)
  1695. if (&from == this)
  1696. return;
  1697. Clear();
  1698. MergeFrom(from);
  1699. }
  1700. bool AttackMsg::IsInitialized() const
  1701. {
  1702. return true;
  1703. }
  1704. void AttackMsg::InternalSwap(AttackMsg* other)
  1705. {
  1706. using std::swap;
  1707. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1708. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1709. PROTOBUF_FIELD_OFFSET(AttackMsg, _impl_.angle_) + sizeof(AttackMsg::_impl_.angle_) - PROTOBUF_FIELD_OFFSET(AttackMsg, _impl_.player_id_)>(
  1710. reinterpret_cast<char*>(&_impl_.player_id_),
  1711. reinterpret_cast<char*>(&other->_impl_.player_id_)
  1712. );
  1713. }
  1714. ::PROTOBUF_NAMESPACE_ID::Metadata AttackMsg::GetMetadata() const
  1715. {
  1716. return ::_pbi::AssignDescriptors(
  1717. &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[4]
  1718. );
  1719. }
  1720. // ===================================================================
  1721. class IDMsg::_Internal
  1722. {
  1723. public:
  1724. };
  1725. IDMsg::IDMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  1726. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  1727. {
  1728. SharedCtor(arena, is_message_owned);
  1729. // @@protoc_insertion_point(arena_constructor:protobuf.IDMsg)
  1730. }
  1731. IDMsg::IDMsg(const IDMsg& from) :
  1732. ::PROTOBUF_NAMESPACE_ID::Message()
  1733. {
  1734. IDMsg* const _this = this;
  1735. (void)_this;
  1736. new (&_impl_) Impl_{
  1737. decltype(_impl_.player_id_){}, /*decltype(_impl_._cached_size_)*/ {}};
  1738. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1739. _this->_impl_.player_id_ = from._impl_.player_id_;
  1740. // @@protoc_insertion_point(copy_constructor:protobuf.IDMsg)
  1741. }
  1742. inline void IDMsg::SharedCtor(
  1743. ::_pb::Arena* arena, bool is_message_owned
  1744. )
  1745. {
  1746. (void)arena;
  1747. (void)is_message_owned;
  1748. new (&_impl_) Impl_{
  1749. decltype(_impl_.player_id_){int64_t{0}}, /*decltype(_impl_._cached_size_)*/ {}};
  1750. }
  1751. IDMsg::~IDMsg()
  1752. {
  1753. // @@protoc_insertion_point(destructor:protobuf.IDMsg)
  1754. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  1755. {
  1756. (void)arena;
  1757. return;
  1758. }
  1759. SharedDtor();
  1760. }
  1761. inline void IDMsg::SharedDtor()
  1762. {
  1763. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1764. }
  1765. void IDMsg::SetCachedSize(int size) const
  1766. {
  1767. _impl_._cached_size_.Set(size);
  1768. }
  1769. void IDMsg::Clear()
  1770. {
  1771. // @@protoc_insertion_point(message_clear_start:protobuf.IDMsg)
  1772. uint32_t cached_has_bits = 0;
  1773. // Prevent compiler warnings about cached_has_bits being unused
  1774. (void)cached_has_bits;
  1775. _impl_.player_id_ = int64_t{0};
  1776. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1777. }
  1778. const char* IDMsg::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  1779. {
  1780. #define CHK_(x) \
  1781. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  1782. goto failure
  1783. while (!ctx->Done(&ptr))
  1784. {
  1785. uint32_t tag;
  1786. ptr = ::_pbi::ReadTag(ptr, &tag);
  1787. switch (tag >> 3)
  1788. {
  1789. // int64 player_id = 1;
  1790. case 1:
  1791. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  1792. {
  1793. _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1794. CHK_(ptr);
  1795. }
  1796. else
  1797. goto handle_unusual;
  1798. continue;
  1799. default:
  1800. goto handle_unusual;
  1801. } // switch
  1802. handle_unusual:
  1803. if ((tag == 0) || ((tag & 7) == 4))
  1804. {
  1805. CHK_(ptr);
  1806. ctx->SetLastTag(tag);
  1807. goto message_done;
  1808. }
  1809. ptr = UnknownFieldParse(
  1810. tag,
  1811. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1812. ptr,
  1813. ctx
  1814. );
  1815. CHK_(ptr != nullptr);
  1816. } // while
  1817. message_done:
  1818. return ptr;
  1819. failure:
  1820. ptr = nullptr;
  1821. goto message_done;
  1822. #undef CHK_
  1823. }
  1824. uint8_t* IDMsg::_InternalSerialize(
  1825. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  1826. ) const
  1827. {
  1828. // @@protoc_insertion_point(serialize_to_array_start:protobuf.IDMsg)
  1829. uint32_t cached_has_bits = 0;
  1830. (void)cached_has_bits;
  1831. // int64 player_id = 1;
  1832. if (this->_internal_player_id() != 0)
  1833. {
  1834. target = stream->EnsureSpace(target);
  1835. target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target);
  1836. }
  1837. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  1838. {
  1839. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  1840. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  1841. );
  1842. }
  1843. // @@protoc_insertion_point(serialize_to_array_end:protobuf.IDMsg)
  1844. return target;
  1845. }
  1846. size_t IDMsg::ByteSizeLong() const
  1847. {
  1848. // @@protoc_insertion_point(message_byte_size_start:protobuf.IDMsg)
  1849. size_t total_size = 0;
  1850. uint32_t cached_has_bits = 0;
  1851. // Prevent compiler warnings about cached_has_bits being unused
  1852. (void)cached_has_bits;
  1853. // int64 player_id = 1;
  1854. if (this->_internal_player_id() != 0)
  1855. {
  1856. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id());
  1857. }
  1858. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  1859. }
  1860. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IDMsg::_class_data_ = {
  1861. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  1862. IDMsg::MergeImpl};
  1863. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* IDMsg::GetClassData() const
  1864. {
  1865. return &_class_data_;
  1866. }
  1867. void IDMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  1868. {
  1869. auto* const _this = static_cast<IDMsg*>(&to_msg);
  1870. auto& from = static_cast<const IDMsg&>(from_msg);
  1871. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.IDMsg)
  1872. GOOGLE_DCHECK_NE(&from, _this);
  1873. uint32_t cached_has_bits = 0;
  1874. (void)cached_has_bits;
  1875. if (from._internal_player_id() != 0)
  1876. {
  1877. _this->_internal_set_player_id(from._internal_player_id());
  1878. }
  1879. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1880. }
  1881. void IDMsg::CopyFrom(const IDMsg& from)
  1882. {
  1883. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.IDMsg)
  1884. if (&from == this)
  1885. return;
  1886. Clear();
  1887. MergeFrom(from);
  1888. }
  1889. bool IDMsg::IsInitialized() const
  1890. {
  1891. return true;
  1892. }
  1893. void IDMsg::InternalSwap(IDMsg* other)
  1894. {
  1895. using std::swap;
  1896. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1897. swap(_impl_.player_id_, other->_impl_.player_id_);
  1898. }
  1899. ::PROTOBUF_NAMESPACE_ID::Metadata IDMsg::GetMetadata() const
  1900. {
  1901. return ::_pbi::AssignDescriptors(
  1902. &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[5]
  1903. );
  1904. }
  1905. // ===================================================================
  1906. class TreatAndRescueMsg::_Internal
  1907. {
  1908. public:
  1909. };
  1910. TreatAndRescueMsg::TreatAndRescueMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  1911. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  1912. {
  1913. SharedCtor(arena, is_message_owned);
  1914. // @@protoc_insertion_point(arena_constructor:protobuf.TreatAndRescueMsg)
  1915. }
  1916. TreatAndRescueMsg::TreatAndRescueMsg(const TreatAndRescueMsg& from) :
  1917. ::PROTOBUF_NAMESPACE_ID::Message()
  1918. {
  1919. TreatAndRescueMsg* const _this = this;
  1920. (void)_this;
  1921. new (&_impl_) Impl_{
  1922. decltype(_impl_.player_id_){}, decltype(_impl_.to_player_id_){}, /*decltype(_impl_._cached_size_)*/ {}};
  1923. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1924. ::memcpy(&_impl_.player_id_, &from._impl_.player_id_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.to_player_id_) - reinterpret_cast<char*>(&_impl_.player_id_)) + sizeof(_impl_.to_player_id_));
  1925. // @@protoc_insertion_point(copy_constructor:protobuf.TreatAndRescueMsg)
  1926. }
  1927. inline void TreatAndRescueMsg::SharedCtor(
  1928. ::_pb::Arena* arena, bool is_message_owned
  1929. )
  1930. {
  1931. (void)arena;
  1932. (void)is_message_owned;
  1933. new (&_impl_) Impl_{
  1934. decltype(_impl_.player_id_){int64_t{0}}, decltype(_impl_.to_player_id_){int64_t{0}}, /*decltype(_impl_._cached_size_)*/ {}};
  1935. }
  1936. TreatAndRescueMsg::~TreatAndRescueMsg()
  1937. {
  1938. // @@protoc_insertion_point(destructor:protobuf.TreatAndRescueMsg)
  1939. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  1940. {
  1941. (void)arena;
  1942. return;
  1943. }
  1944. SharedDtor();
  1945. }
  1946. inline void TreatAndRescueMsg::SharedDtor()
  1947. {
  1948. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1949. }
  1950. void TreatAndRescueMsg::SetCachedSize(int size) const
  1951. {
  1952. _impl_._cached_size_.Set(size);
  1953. }
  1954. void TreatAndRescueMsg::Clear()
  1955. {
  1956. // @@protoc_insertion_point(message_clear_start:protobuf.TreatAndRescueMsg)
  1957. uint32_t cached_has_bits = 0;
  1958. // Prevent compiler warnings about cached_has_bits being unused
  1959. (void)cached_has_bits;
  1960. ::memset(&_impl_.player_id_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.to_player_id_) - reinterpret_cast<char*>(&_impl_.player_id_)) + sizeof(_impl_.to_player_id_));
  1961. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1962. }
  1963. const char* TreatAndRescueMsg::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  1964. {
  1965. #define CHK_(x) \
  1966. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  1967. goto failure
  1968. while (!ctx->Done(&ptr))
  1969. {
  1970. uint32_t tag;
  1971. ptr = ::_pbi::ReadTag(ptr, &tag);
  1972. switch (tag >> 3)
  1973. {
  1974. // int64 player_id = 1;
  1975. case 1:
  1976. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  1977. {
  1978. _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1979. CHK_(ptr);
  1980. }
  1981. else
  1982. goto handle_unusual;
  1983. continue;
  1984. // int64 to_player_id = 2;
  1985. case 2:
  1986. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  1987. {
  1988. _impl_.to_player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1989. CHK_(ptr);
  1990. }
  1991. else
  1992. goto handle_unusual;
  1993. continue;
  1994. default:
  1995. goto handle_unusual;
  1996. } // switch
  1997. handle_unusual:
  1998. if ((tag == 0) || ((tag & 7) == 4))
  1999. {
  2000. CHK_(ptr);
  2001. ctx->SetLastTag(tag);
  2002. goto message_done;
  2003. }
  2004. ptr = UnknownFieldParse(
  2005. tag,
  2006. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2007. ptr,
  2008. ctx
  2009. );
  2010. CHK_(ptr != nullptr);
  2011. } // while
  2012. message_done:
  2013. return ptr;
  2014. failure:
  2015. ptr = nullptr;
  2016. goto message_done;
  2017. #undef CHK_
  2018. }
  2019. uint8_t* TreatAndRescueMsg::_InternalSerialize(
  2020. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  2021. ) const
  2022. {
  2023. // @@protoc_insertion_point(serialize_to_array_start:protobuf.TreatAndRescueMsg)
  2024. uint32_t cached_has_bits = 0;
  2025. (void)cached_has_bits;
  2026. // int64 player_id = 1;
  2027. if (this->_internal_player_id() != 0)
  2028. {
  2029. target = stream->EnsureSpace(target);
  2030. target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target);
  2031. }
  2032. // int64 to_player_id = 2;
  2033. if (this->_internal_to_player_id() != 0)
  2034. {
  2035. target = stream->EnsureSpace(target);
  2036. target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_to_player_id(), target);
  2037. }
  2038. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  2039. {
  2040. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  2041. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  2042. );
  2043. }
  2044. // @@protoc_insertion_point(serialize_to_array_end:protobuf.TreatAndRescueMsg)
  2045. return target;
  2046. }
  2047. size_t TreatAndRescueMsg::ByteSizeLong() const
  2048. {
  2049. // @@protoc_insertion_point(message_byte_size_start:protobuf.TreatAndRescueMsg)
  2050. size_t total_size = 0;
  2051. uint32_t cached_has_bits = 0;
  2052. // Prevent compiler warnings about cached_has_bits being unused
  2053. (void)cached_has_bits;
  2054. // int64 player_id = 1;
  2055. if (this->_internal_player_id() != 0)
  2056. {
  2057. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id());
  2058. }
  2059. // int64 to_player_id = 2;
  2060. if (this->_internal_to_player_id() != 0)
  2061. {
  2062. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_to_player_id());
  2063. }
  2064. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  2065. }
  2066. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TreatAndRescueMsg::_class_data_ = {
  2067. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  2068. TreatAndRescueMsg::MergeImpl};
  2069. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* TreatAndRescueMsg::GetClassData() const
  2070. {
  2071. return &_class_data_;
  2072. }
  2073. void TreatAndRescueMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  2074. {
  2075. auto* const _this = static_cast<TreatAndRescueMsg*>(&to_msg);
  2076. auto& from = static_cast<const TreatAndRescueMsg&>(from_msg);
  2077. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.TreatAndRescueMsg)
  2078. GOOGLE_DCHECK_NE(&from, _this);
  2079. uint32_t cached_has_bits = 0;
  2080. (void)cached_has_bits;
  2081. if (from._internal_player_id() != 0)
  2082. {
  2083. _this->_internal_set_player_id(from._internal_player_id());
  2084. }
  2085. if (from._internal_to_player_id() != 0)
  2086. {
  2087. _this->_internal_set_to_player_id(from._internal_to_player_id());
  2088. }
  2089. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2090. }
  2091. void TreatAndRescueMsg::CopyFrom(const TreatAndRescueMsg& from)
  2092. {
  2093. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.TreatAndRescueMsg)
  2094. if (&from == this)
  2095. return;
  2096. Clear();
  2097. MergeFrom(from);
  2098. }
  2099. bool TreatAndRescueMsg::IsInitialized() const
  2100. {
  2101. return true;
  2102. }
  2103. void TreatAndRescueMsg::InternalSwap(TreatAndRescueMsg* other)
  2104. {
  2105. using std::swap;
  2106. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2107. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2108. PROTOBUF_FIELD_OFFSET(TreatAndRescueMsg, _impl_.to_player_id_) + sizeof(TreatAndRescueMsg::_impl_.to_player_id_) - PROTOBUF_FIELD_OFFSET(TreatAndRescueMsg, _impl_.player_id_)>(
  2109. reinterpret_cast<char*>(&_impl_.player_id_),
  2110. reinterpret_cast<char*>(&other->_impl_.player_id_)
  2111. );
  2112. }
  2113. ::PROTOBUF_NAMESPACE_ID::Metadata TreatAndRescueMsg::GetMetadata() const
  2114. {
  2115. return ::_pbi::AssignDescriptors(
  2116. &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[6]
  2117. );
  2118. }
  2119. // ===================================================================
  2120. class SkillMsg::_Internal
  2121. {
  2122. public:
  2123. };
  2124. SkillMsg::SkillMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) :
  2125. ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned)
  2126. {
  2127. SharedCtor(arena, is_message_owned);
  2128. // @@protoc_insertion_point(arena_constructor:protobuf.SkillMsg)
  2129. }
  2130. SkillMsg::SkillMsg(const SkillMsg& from) :
  2131. ::PROTOBUF_NAMESPACE_ID::Message()
  2132. {
  2133. SkillMsg* const _this = this;
  2134. (void)_this;
  2135. new (&_impl_) Impl_{
  2136. decltype(_impl_.player_id_){}, decltype(_impl_.skill_id_){}, /*decltype(_impl_._cached_size_)*/ {}};
  2137. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2138. ::memcpy(&_impl_.player_id_, &from._impl_.player_id_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.skill_id_) - reinterpret_cast<char*>(&_impl_.player_id_)) + sizeof(_impl_.skill_id_));
  2139. // @@protoc_insertion_point(copy_constructor:protobuf.SkillMsg)
  2140. }
  2141. inline void SkillMsg::SharedCtor(
  2142. ::_pb::Arena* arena, bool is_message_owned
  2143. )
  2144. {
  2145. (void)arena;
  2146. (void)is_message_owned;
  2147. new (&_impl_) Impl_{
  2148. decltype(_impl_.player_id_){int64_t{0}}, decltype(_impl_.skill_id_){0}, /*decltype(_impl_._cached_size_)*/ {}};
  2149. }
  2150. SkillMsg::~SkillMsg()
  2151. {
  2152. // @@protoc_insertion_point(destructor:protobuf.SkillMsg)
  2153. if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>())
  2154. {
  2155. (void)arena;
  2156. return;
  2157. }
  2158. SharedDtor();
  2159. }
  2160. inline void SkillMsg::SharedDtor()
  2161. {
  2162. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2163. }
  2164. void SkillMsg::SetCachedSize(int size) const
  2165. {
  2166. _impl_._cached_size_.Set(size);
  2167. }
  2168. void SkillMsg::Clear()
  2169. {
  2170. // @@protoc_insertion_point(message_clear_start:protobuf.SkillMsg)
  2171. uint32_t cached_has_bits = 0;
  2172. // Prevent compiler warnings about cached_has_bits being unused
  2173. (void)cached_has_bits;
  2174. ::memset(&_impl_.player_id_, 0, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.skill_id_) - reinterpret_cast<char*>(&_impl_.player_id_)) + sizeof(_impl_.skill_id_));
  2175. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2176. }
  2177. const char* SkillMsg::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
  2178. {
  2179. #define CHK_(x) \
  2180. if (PROTOBUF_PREDICT_FALSE(!(x))) \
  2181. goto failure
  2182. while (!ctx->Done(&ptr))
  2183. {
  2184. uint32_t tag;
  2185. ptr = ::_pbi::ReadTag(ptr, &tag);
  2186. switch (tag >> 3)
  2187. {
  2188. // int64 player_id = 1;
  2189. case 1:
  2190. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8))
  2191. {
  2192. _impl_.player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2193. CHK_(ptr);
  2194. }
  2195. else
  2196. goto handle_unusual;
  2197. continue;
  2198. // int32 skill_id = 2;
  2199. case 2:
  2200. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16))
  2201. {
  2202. _impl_.skill_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2203. CHK_(ptr);
  2204. }
  2205. else
  2206. goto handle_unusual;
  2207. continue;
  2208. default:
  2209. goto handle_unusual;
  2210. } // switch
  2211. handle_unusual:
  2212. if ((tag == 0) || ((tag & 7) == 4))
  2213. {
  2214. CHK_(ptr);
  2215. ctx->SetLastTag(tag);
  2216. goto message_done;
  2217. }
  2218. ptr = UnknownFieldParse(
  2219. tag,
  2220. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2221. ptr,
  2222. ctx
  2223. );
  2224. CHK_(ptr != nullptr);
  2225. } // while
  2226. message_done:
  2227. return ptr;
  2228. failure:
  2229. ptr = nullptr;
  2230. goto message_done;
  2231. #undef CHK_
  2232. }
  2233. uint8_t* SkillMsg::_InternalSerialize(
  2234. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  2235. ) const
  2236. {
  2237. // @@protoc_insertion_point(serialize_to_array_start:protobuf.SkillMsg)
  2238. uint32_t cached_has_bits = 0;
  2239. (void)cached_has_bits;
  2240. // int64 player_id = 1;
  2241. if (this->_internal_player_id() != 0)
  2242. {
  2243. target = stream->EnsureSpace(target);
  2244. target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target);
  2245. }
  2246. // int32 skill_id = 2;
  2247. if (this->_internal_skill_id() != 0)
  2248. {
  2249. target = stream->EnsureSpace(target);
  2250. target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_skill_id(), target);
  2251. }
  2252. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields()))
  2253. {
  2254. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  2255. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream
  2256. );
  2257. }
  2258. // @@protoc_insertion_point(serialize_to_array_end:protobuf.SkillMsg)
  2259. return target;
  2260. }
  2261. size_t SkillMsg::ByteSizeLong() const
  2262. {
  2263. // @@protoc_insertion_point(message_byte_size_start:protobuf.SkillMsg)
  2264. size_t total_size = 0;
  2265. uint32_t cached_has_bits = 0;
  2266. // Prevent compiler warnings about cached_has_bits being unused
  2267. (void)cached_has_bits;
  2268. // int64 player_id = 1;
  2269. if (this->_internal_player_id() != 0)
  2270. {
  2271. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_player_id());
  2272. }
  2273. // int32 skill_id = 2;
  2274. if (this->_internal_skill_id() != 0)
  2275. {
  2276. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_skill_id());
  2277. }
  2278. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  2279. }
  2280. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SkillMsg::_class_data_ = {
  2281. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  2282. SkillMsg::MergeImpl};
  2283. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* SkillMsg::GetClassData() const
  2284. {
  2285. return &_class_data_;
  2286. }
  2287. void SkillMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg)
  2288. {
  2289. auto* const _this = static_cast<SkillMsg*>(&to_msg);
  2290. auto& from = static_cast<const SkillMsg&>(from_msg);
  2291. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf.SkillMsg)
  2292. GOOGLE_DCHECK_NE(&from, _this);
  2293. uint32_t cached_has_bits = 0;
  2294. (void)cached_has_bits;
  2295. if (from._internal_player_id() != 0)
  2296. {
  2297. _this->_internal_set_player_id(from._internal_player_id());
  2298. }
  2299. if (from._internal_skill_id() != 0)
  2300. {
  2301. _this->_internal_set_skill_id(from._internal_skill_id());
  2302. }
  2303. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2304. }
  2305. void SkillMsg::CopyFrom(const SkillMsg& from)
  2306. {
  2307. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf.SkillMsg)
  2308. if (&from == this)
  2309. return;
  2310. Clear();
  2311. MergeFrom(from);
  2312. }
  2313. bool SkillMsg::IsInitialized() const
  2314. {
  2315. return true;
  2316. }
  2317. void SkillMsg::InternalSwap(SkillMsg* other)
  2318. {
  2319. using std::swap;
  2320. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2321. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2322. PROTOBUF_FIELD_OFFSET(SkillMsg, _impl_.skill_id_) + sizeof(SkillMsg::_impl_.skill_id_) - PROTOBUF_FIELD_OFFSET(SkillMsg, _impl_.player_id_)>(
  2323. reinterpret_cast<char*>(&_impl_.player_id_),
  2324. reinterpret_cast<char*>(&other->_impl_.player_id_)
  2325. );
  2326. }
  2327. ::PROTOBUF_NAMESPACE_ID::Metadata SkillMsg::GetMetadata() const
  2328. {
  2329. return ::_pbi::AssignDescriptors(
  2330. &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, file_level_metadata_Message2Server_2eproto[7]
  2331. );
  2332. }
  2333. // @@protoc_insertion_point(namespace_scope)
  2334. } // namespace protobuf
  2335. PROTOBUF_NAMESPACE_OPEN
  2336. template<>
  2337. PROTOBUF_NOINLINE ::protobuf::PlayerMsg*
  2338. Arena::CreateMaybeMessage<::protobuf::PlayerMsg>(Arena* arena)
  2339. {
  2340. return Arena::CreateMessageInternal<::protobuf::PlayerMsg>(arena);
  2341. }
  2342. template<>
  2343. PROTOBUF_NOINLINE ::protobuf::MoveMsg*
  2344. Arena::CreateMaybeMessage<::protobuf::MoveMsg>(Arena* arena)
  2345. {
  2346. return Arena::CreateMessageInternal<::protobuf::MoveMsg>(arena);
  2347. }
  2348. template<>
  2349. PROTOBUF_NOINLINE ::protobuf::PropMsg*
  2350. Arena::CreateMaybeMessage<::protobuf::PropMsg>(Arena* arena)
  2351. {
  2352. return Arena::CreateMessageInternal<::protobuf::PropMsg>(arena);
  2353. }
  2354. template<>
  2355. PROTOBUF_NOINLINE ::protobuf::SendMsg*
  2356. Arena::CreateMaybeMessage<::protobuf::SendMsg>(Arena* arena)
  2357. {
  2358. return Arena::CreateMessageInternal<::protobuf::SendMsg>(arena);
  2359. }
  2360. template<>
  2361. PROTOBUF_NOINLINE ::protobuf::AttackMsg*
  2362. Arena::CreateMaybeMessage<::protobuf::AttackMsg>(Arena* arena)
  2363. {
  2364. return Arena::CreateMessageInternal<::protobuf::AttackMsg>(arena);
  2365. }
  2366. template<>
  2367. PROTOBUF_NOINLINE ::protobuf::IDMsg*
  2368. Arena::CreateMaybeMessage<::protobuf::IDMsg>(Arena* arena)
  2369. {
  2370. return Arena::CreateMessageInternal<::protobuf::IDMsg>(arena);
  2371. }
  2372. template<>
  2373. PROTOBUF_NOINLINE ::protobuf::TreatAndRescueMsg*
  2374. Arena::CreateMaybeMessage<::protobuf::TreatAndRescueMsg>(Arena* arena)
  2375. {
  2376. return Arena::CreateMessageInternal<::protobuf::TreatAndRescueMsg>(arena);
  2377. }
  2378. template<>
  2379. PROTOBUF_NOINLINE ::protobuf::SkillMsg*
  2380. Arena::CreateMaybeMessage<::protobuf::SkillMsg>(Arena* arena)
  2381. {
  2382. return Arena::CreateMessageInternal<::protobuf::SkillMsg>(arena);
  2383. }
  2384. PROTOBUF_NAMESPACE_CLOSE
  2385. // @@protoc_insertion_point(global_scope)
  2386. #include <google/protobuf/port_undef.inc>