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.h 83 kB

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