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

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