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

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