game_example_protocol.pb.h 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: game_example_protocol.proto
  3. #ifndef PROTOBUF_game_5fexample_5fprotocol_2eproto__INCLUDED
  4. #define PROTOBUF_game_5fexample_5fprotocol_2eproto__INCLUDED
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 2005000
  8. #error This file was generated by a newer version of protoc which is
  9. #error incompatible with your Protocol Buffer headers. Please update
  10. #error your headers.
  11. #endif
  12. #if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  13. #error This file was generated by an older version of protoc which is
  14. #error incompatible with your Protocol Buffer headers. Please
  15. #error regenerate this file with a newer version of protoc.
  16. #endif
  17. #include <google/protobuf/generated_message_util.h>
  18. #include <google/protobuf/message.h>
  19. #include <google/protobuf/repeated_field.h>
  20. #include <google/protobuf/extension_set.h>
  21. #include <google/protobuf/unknown_field_set.h>
  22. #include "game_example_def.pb.h"
  23. // @@protoc_insertion_point(includes)
  24. namespace game_example_protocols {
  25. // Internal implementation detail -- do not call these.
  26. void protobuf_AddDesc_game_5fexample_5fprotocol_2eproto();
  27. void protobuf_AssignDesc_game_5fexample_5fprotocol_2eproto();
  28. void protobuf_ShutdownFile_game_5fexample_5fprotocol_2eproto();
  29. class packetc2l_game_play;
  30. class packetl2c_game_play_result;
  31. // ===================================================================
  32. class packetc2l_game_play : public ::google::protobuf::Message {
  33. public:
  34. packetc2l_game_play();
  35. virtual ~packetc2l_game_play();
  36. packetc2l_game_play(const packetc2l_game_play& from);
  37. inline packetc2l_game_play& operator=(const packetc2l_game_play& from) {
  38. CopyFrom(from);
  39. return *this;
  40. }
  41. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  42. return _unknown_fields_;
  43. }
  44. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  45. return &_unknown_fields_;
  46. }
  47. static const ::google::protobuf::Descriptor* descriptor();
  48. static const packetc2l_game_play& default_instance();
  49. void Swap(packetc2l_game_play* other);
  50. // implements Message ----------------------------------------------
  51. packetc2l_game_play* New() const;
  52. void CopyFrom(const ::google::protobuf::Message& from);
  53. void MergeFrom(const ::google::protobuf::Message& from);
  54. void CopyFrom(const packetc2l_game_play& from);
  55. void MergeFrom(const packetc2l_game_play& from);
  56. void Clear();
  57. bool IsInitialized() const;
  58. int ByteSize() const;
  59. bool MergePartialFromCodedStream(
  60. ::google::protobuf::io::CodedInputStream* input);
  61. void SerializeWithCachedSizes(
  62. ::google::protobuf::io::CodedOutputStream* output) const;
  63. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  64. int GetCachedSize() const { return _cached_size_; }
  65. private:
  66. void SharedCtor();
  67. void SharedDtor();
  68. void SetCachedSize(int size) const;
  69. public:
  70. ::google::protobuf::Metadata GetMetadata() const;
  71. // nested types ----------------------------------------------------
  72. // accessors -------------------------------------------------------
  73. // optional .game_example_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_game_play];
  74. inline bool has_packet_id() const;
  75. inline void clear_packet_id();
  76. static const int kPacketIdFieldNumber = 1;
  77. inline ::game_example_protocols::e_server_msg_type packet_id() const;
  78. inline void set_packet_id(::game_example_protocols::e_server_msg_type value);
  79. // optional int32 select = 2 [default = 0];
  80. inline bool has_select() const;
  81. inline void clear_select();
  82. static const int kSelectFieldNumber = 2;
  83. inline ::google::protobuf::int32 select() const;
  84. inline void set_select(::google::protobuf::int32 value);
  85. // @@protoc_insertion_point(class_scope:game_example_protocols.packetc2l_game_play)
  86. private:
  87. inline void set_has_packet_id();
  88. inline void clear_has_packet_id();
  89. inline void set_has_select();
  90. inline void clear_has_select();
  91. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  92. int packet_id_;
  93. ::google::protobuf::int32 select_;
  94. mutable int _cached_size_;
  95. ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
  96. friend void protobuf_AddDesc_game_5fexample_5fprotocol_2eproto();
  97. friend void protobuf_AssignDesc_game_5fexample_5fprotocol_2eproto();
  98. friend void protobuf_ShutdownFile_game_5fexample_5fprotocol_2eproto();
  99. void InitAsDefaultInstance();
  100. static packetc2l_game_play* default_instance_;
  101. };
  102. // -------------------------------------------------------------------
  103. class packetl2c_game_play_result : public ::google::protobuf::Message {
  104. public:
  105. packetl2c_game_play_result();
  106. virtual ~packetl2c_game_play_result();
  107. packetl2c_game_play_result(const packetl2c_game_play_result& from);
  108. inline packetl2c_game_play_result& operator=(const packetl2c_game_play_result& from) {
  109. CopyFrom(from);
  110. return *this;
  111. }
  112. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  113. return _unknown_fields_;
  114. }
  115. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  116. return &_unknown_fields_;
  117. }
  118. static const ::google::protobuf::Descriptor* descriptor();
  119. static const packetl2c_game_play_result& default_instance();
  120. void Swap(packetl2c_game_play_result* other);
  121. // implements Message ----------------------------------------------
  122. packetl2c_game_play_result* New() const;
  123. void CopyFrom(const ::google::protobuf::Message& from);
  124. void MergeFrom(const ::google::protobuf::Message& from);
  125. void CopyFrom(const packetl2c_game_play_result& from);
  126. void MergeFrom(const packetl2c_game_play_result& from);
  127. void Clear();
  128. bool IsInitialized() const;
  129. int ByteSize() const;
  130. bool MergePartialFromCodedStream(
  131. ::google::protobuf::io::CodedInputStream* input);
  132. void SerializeWithCachedSizes(
  133. ::google::protobuf::io::CodedOutputStream* output) const;
  134. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  135. int GetCachedSize() const { return _cached_size_; }
  136. private:
  137. void SharedCtor();
  138. void SharedDtor();
  139. void SetCachedSize(int size) const;
  140. public:
  141. ::google::protobuf::Metadata GetMetadata() const;
  142. // nested types ----------------------------------------------------
  143. // accessors -------------------------------------------------------
  144. // optional .game_example_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_game_play_result];
  145. inline bool has_packet_id() const;
  146. inline void clear_packet_id();
  147. static const int kPacketIdFieldNumber = 1;
  148. inline ::game_example_protocols::e_server_msg_type packet_id() const;
  149. inline void set_packet_id(::game_example_protocols::e_server_msg_type value);
  150. // optional int32 random = 2;
  151. inline bool has_random() const;
  152. inline void clear_random();
  153. static const int kRandomFieldNumber = 2;
  154. inline ::google::protobuf::int32 random() const;
  155. inline void set_random(::google::protobuf::int32 value);
  156. // @@protoc_insertion_point(class_scope:game_example_protocols.packetl2c_game_play_result)
  157. private:
  158. inline void set_has_packet_id();
  159. inline void clear_has_packet_id();
  160. inline void set_has_random();
  161. inline void clear_has_random();
  162. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  163. int packet_id_;
  164. ::google::protobuf::int32 random_;
  165. mutable int _cached_size_;
  166. ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
  167. friend void protobuf_AddDesc_game_5fexample_5fprotocol_2eproto();
  168. friend void protobuf_AssignDesc_game_5fexample_5fprotocol_2eproto();
  169. friend void protobuf_ShutdownFile_game_5fexample_5fprotocol_2eproto();
  170. void InitAsDefaultInstance();
  171. static packetl2c_game_play_result* default_instance_;
  172. };
  173. // ===================================================================
  174. // ===================================================================
  175. // packetc2l_game_play
  176. // optional .game_example_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_game_play];
  177. inline bool packetc2l_game_play::has_packet_id() const {
  178. return (_has_bits_[0] & 0x00000001u) != 0;
  179. }
  180. inline void packetc2l_game_play::set_has_packet_id() {
  181. _has_bits_[0] |= 0x00000001u;
  182. }
  183. inline void packetc2l_game_play::clear_has_packet_id() {
  184. _has_bits_[0] &= ~0x00000001u;
  185. }
  186. inline void packetc2l_game_play::clear_packet_id() {
  187. packet_id_ = 10001;
  188. clear_has_packet_id();
  189. }
  190. inline ::game_example_protocols::e_server_msg_type packetc2l_game_play::packet_id() const {
  191. return static_cast< ::game_example_protocols::e_server_msg_type >(packet_id_);
  192. }
  193. inline void packetc2l_game_play::set_packet_id(::game_example_protocols::e_server_msg_type value) {
  194. assert(::game_example_protocols::e_server_msg_type_IsValid(value));
  195. set_has_packet_id();
  196. packet_id_ = value;
  197. }
  198. // optional int32 select = 2 [default = 0];
  199. inline bool packetc2l_game_play::has_select() const {
  200. return (_has_bits_[0] & 0x00000002u) != 0;
  201. }
  202. inline void packetc2l_game_play::set_has_select() {
  203. _has_bits_[0] |= 0x00000002u;
  204. }
  205. inline void packetc2l_game_play::clear_has_select() {
  206. _has_bits_[0] &= ~0x00000002u;
  207. }
  208. inline void packetc2l_game_play::clear_select() {
  209. select_ = 0;
  210. clear_has_select();
  211. }
  212. inline ::google::protobuf::int32 packetc2l_game_play::select() const {
  213. return select_;
  214. }
  215. inline void packetc2l_game_play::set_select(::google::protobuf::int32 value) {
  216. set_has_select();
  217. select_ = value;
  218. }
  219. // -------------------------------------------------------------------
  220. // packetl2c_game_play_result
  221. // optional .game_example_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_game_play_result];
  222. inline bool packetl2c_game_play_result::has_packet_id() const {
  223. return (_has_bits_[0] & 0x00000001u) != 0;
  224. }
  225. inline void packetl2c_game_play_result::set_has_packet_id() {
  226. _has_bits_[0] |= 0x00000001u;
  227. }
  228. inline void packetl2c_game_play_result::clear_has_packet_id() {
  229. _has_bits_[0] &= ~0x00000001u;
  230. }
  231. inline void packetl2c_game_play_result::clear_packet_id() {
  232. packet_id_ = 15001;
  233. clear_has_packet_id();
  234. }
  235. inline ::game_example_protocols::e_server_msg_type packetl2c_game_play_result::packet_id() const {
  236. return static_cast< ::game_example_protocols::e_server_msg_type >(packet_id_);
  237. }
  238. inline void packetl2c_game_play_result::set_packet_id(::game_example_protocols::e_server_msg_type value) {
  239. assert(::game_example_protocols::e_server_msg_type_IsValid(value));
  240. set_has_packet_id();
  241. packet_id_ = value;
  242. }
  243. // optional int32 random = 2;
  244. inline bool packetl2c_game_play_result::has_random() const {
  245. return (_has_bits_[0] & 0x00000002u) != 0;
  246. }
  247. inline void packetl2c_game_play_result::set_has_random() {
  248. _has_bits_[0] |= 0x00000002u;
  249. }
  250. inline void packetl2c_game_play_result::clear_has_random() {
  251. _has_bits_[0] &= ~0x00000002u;
  252. }
  253. inline void packetl2c_game_play_result::clear_random() {
  254. random_ = 0;
  255. clear_has_random();
  256. }
  257. inline ::google::protobuf::int32 packetl2c_game_play_result::random() const {
  258. return random_;
  259. }
  260. inline void packetl2c_game_play_result::set_random(::google::protobuf::int32 value) {
  261. set_has_random();
  262. random_ = value;
  263. }
  264. // @@protoc_insertion_point(namespace_scope)
  265. } // namespace game_example_protocols
  266. #ifndef SWIG
  267. namespace google {
  268. namespace protobuf {
  269. } // namespace google
  270. } // namespace protobuf
  271. #endif // SWIG
  272. // @@protoc_insertion_point(global_scope)
  273. #endif // PROTOBUF_game_5fexample_5fprotocol_2eproto__INCLUDED