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

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