client2gate_protocol.pb.h 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: client2gate_protocol.proto
  3. #ifndef PROTOBUF_client2gate_5fprotocol_2eproto__INCLUDED
  4. #define PROTOBUF_client2gate_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 "client2gate_msg_type.pb.h"
  23. #include "msg_type_def.pb.h"
  24. // @@protoc_insertion_point(includes)
  25. namespace client2gate_protocols {
  26. // Internal implementation detail -- do not call these.
  27. void protobuf_AddDesc_client2gate_5fprotocol_2eproto();
  28. void protobuf_AssignDesc_client2gate_5fprotocol_2eproto();
  29. void protobuf_ShutdownFile_client2gate_5fprotocol_2eproto();
  30. class packetc2g_heartbeat;
  31. class packetg2c_heartbeat;
  32. class msg_packet;
  33. class packet_g2c_send_msglist;
  34. // ===================================================================
  35. class packetc2g_heartbeat : public ::google::protobuf::Message {
  36. public:
  37. packetc2g_heartbeat();
  38. virtual ~packetc2g_heartbeat();
  39. packetc2g_heartbeat(const packetc2g_heartbeat& from);
  40. inline packetc2g_heartbeat& operator=(const packetc2g_heartbeat& from) {
  41. CopyFrom(from);
  42. return *this;
  43. }
  44. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  45. return _unknown_fields_;
  46. }
  47. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  48. return &_unknown_fields_;
  49. }
  50. static const ::google::protobuf::Descriptor* descriptor();
  51. static const packetc2g_heartbeat& default_instance();
  52. void Swap(packetc2g_heartbeat* other);
  53. // implements Message ----------------------------------------------
  54. packetc2g_heartbeat* New() const;
  55. void CopyFrom(const ::google::protobuf::Message& from);
  56. void MergeFrom(const ::google::protobuf::Message& from);
  57. void CopyFrom(const packetc2g_heartbeat& from);
  58. void MergeFrom(const packetc2g_heartbeat& from);
  59. void Clear();
  60. bool IsInitialized() const;
  61. int ByteSize() const;
  62. bool MergePartialFromCodedStream(
  63. ::google::protobuf::io::CodedInputStream* input);
  64. void SerializeWithCachedSizes(
  65. ::google::protobuf::io::CodedOutputStream* output) const;
  66. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  67. int GetCachedSize() const { return _cached_size_; }
  68. private:
  69. void SharedCtor();
  70. void SharedDtor();
  71. void SetCachedSize(int size) const;
  72. public:
  73. ::google::protobuf::Metadata GetMetadata() const;
  74. // nested types ----------------------------------------------------
  75. // accessors -------------------------------------------------------
  76. // optional .client2gate_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2g_heartbeat];
  77. inline bool has_packet_id() const;
  78. inline void clear_packet_id();
  79. static const int kPacketIdFieldNumber = 1;
  80. inline ::client2gate_protocols::e_server_msg_type packet_id() const;
  81. inline void set_packet_id(::client2gate_protocols::e_server_msg_type value);
  82. // @@protoc_insertion_point(class_scope:client2gate_protocols.packetc2g_heartbeat)
  83. private:
  84. inline void set_has_packet_id();
  85. inline void clear_has_packet_id();
  86. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  87. int packet_id_;
  88. mutable int _cached_size_;
  89. ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
  90. friend void protobuf_AddDesc_client2gate_5fprotocol_2eproto();
  91. friend void protobuf_AssignDesc_client2gate_5fprotocol_2eproto();
  92. friend void protobuf_ShutdownFile_client2gate_5fprotocol_2eproto();
  93. void InitAsDefaultInstance();
  94. static packetc2g_heartbeat* default_instance_;
  95. };
  96. // -------------------------------------------------------------------
  97. class packetg2c_heartbeat : public ::google::protobuf::Message {
  98. public:
  99. packetg2c_heartbeat();
  100. virtual ~packetg2c_heartbeat();
  101. packetg2c_heartbeat(const packetg2c_heartbeat& from);
  102. inline packetg2c_heartbeat& operator=(const packetg2c_heartbeat& from) {
  103. CopyFrom(from);
  104. return *this;
  105. }
  106. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  107. return _unknown_fields_;
  108. }
  109. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  110. return &_unknown_fields_;
  111. }
  112. static const ::google::protobuf::Descriptor* descriptor();
  113. static const packetg2c_heartbeat& default_instance();
  114. void Swap(packetg2c_heartbeat* other);
  115. // implements Message ----------------------------------------------
  116. packetg2c_heartbeat* New() const;
  117. void CopyFrom(const ::google::protobuf::Message& from);
  118. void MergeFrom(const ::google::protobuf::Message& from);
  119. void CopyFrom(const packetg2c_heartbeat& from);
  120. void MergeFrom(const packetg2c_heartbeat& from);
  121. void Clear();
  122. bool IsInitialized() const;
  123. int ByteSize() const;
  124. bool MergePartialFromCodedStream(
  125. ::google::protobuf::io::CodedInputStream* input);
  126. void SerializeWithCachedSizes(
  127. ::google::protobuf::io::CodedOutputStream* output) const;
  128. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  129. int GetCachedSize() const { return _cached_size_; }
  130. private:
  131. void SharedCtor();
  132. void SharedDtor();
  133. void SetCachedSize(int size) const;
  134. public:
  135. ::google::protobuf::Metadata GetMetadata() const;
  136. // nested types ----------------------------------------------------
  137. // accessors -------------------------------------------------------
  138. // optional .client2gate_protocols.e_server_msg_type packet_id = 1 [default = e_mst_g2c_heartbeat];
  139. inline bool has_packet_id() const;
  140. inline void clear_packet_id();
  141. static const int kPacketIdFieldNumber = 1;
  142. inline ::client2gate_protocols::e_server_msg_type packet_id() const;
  143. inline void set_packet_id(::client2gate_protocols::e_server_msg_type value);
  144. // @@protoc_insertion_point(class_scope:client2gate_protocols.packetg2c_heartbeat)
  145. private:
  146. inline void set_has_packet_id();
  147. inline void clear_has_packet_id();
  148. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  149. int packet_id_;
  150. mutable int _cached_size_;
  151. ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
  152. friend void protobuf_AddDesc_client2gate_5fprotocol_2eproto();
  153. friend void protobuf_AssignDesc_client2gate_5fprotocol_2eproto();
  154. friend void protobuf_ShutdownFile_client2gate_5fprotocol_2eproto();
  155. void InitAsDefaultInstance();
  156. static packetg2c_heartbeat* default_instance_;
  157. };
  158. // -------------------------------------------------------------------
  159. class msg_packet : public ::google::protobuf::Message {
  160. public:
  161. msg_packet();
  162. virtual ~msg_packet();
  163. msg_packet(const msg_packet& from);
  164. inline msg_packet& operator=(const msg_packet& from) {
  165. CopyFrom(from);
  166. return *this;
  167. }
  168. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  169. return _unknown_fields_;
  170. }
  171. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  172. return &_unknown_fields_;
  173. }
  174. static const ::google::protobuf::Descriptor* descriptor();
  175. static const msg_packet& default_instance();
  176. void Swap(msg_packet* other);
  177. // implements Message ----------------------------------------------
  178. msg_packet* New() const;
  179. void CopyFrom(const ::google::protobuf::Message& from);
  180. void MergeFrom(const ::google::protobuf::Message& from);
  181. void CopyFrom(const msg_packet& from);
  182. void MergeFrom(const msg_packet& from);
  183. void Clear();
  184. bool IsInitialized() const;
  185. int ByteSize() const;
  186. bool MergePartialFromCodedStream(
  187. ::google::protobuf::io::CodedInputStream* input);
  188. void SerializeWithCachedSizes(
  189. ::google::protobuf::io::CodedOutputStream* output) const;
  190. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  191. int GetCachedSize() const { return _cached_size_; }
  192. private:
  193. void SharedCtor();
  194. void SharedDtor();
  195. void SetCachedSize(int size) const;
  196. public:
  197. ::google::protobuf::Metadata GetMetadata() const;
  198. // nested types ----------------------------------------------------
  199. // accessors -------------------------------------------------------
  200. // optional int32 msgid = 1;
  201. inline bool has_msgid() const;
  202. inline void clear_msgid();
  203. static const int kMsgidFieldNumber = 1;
  204. inline ::google::protobuf::int32 msgid() const;
  205. inline void set_msgid(::google::protobuf::int32 value);
  206. // optional bytes msginfo = 2;
  207. inline bool has_msginfo() const;
  208. inline void clear_msginfo();
  209. static const int kMsginfoFieldNumber = 2;
  210. inline const ::std::string& msginfo() const;
  211. inline void set_msginfo(const ::std::string& value);
  212. inline void set_msginfo(const char* value);
  213. inline void set_msginfo(const void* value, size_t size);
  214. inline ::std::string* mutable_msginfo();
  215. inline ::std::string* release_msginfo();
  216. inline void set_allocated_msginfo(::std::string* msginfo);
  217. // @@protoc_insertion_point(class_scope:client2gate_protocols.msg_packet)
  218. private:
  219. inline void set_has_msgid();
  220. inline void clear_has_msgid();
  221. inline void set_has_msginfo();
  222. inline void clear_has_msginfo();
  223. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  224. ::std::string* msginfo_;
  225. ::google::protobuf::int32 msgid_;
  226. mutable int _cached_size_;
  227. ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
  228. friend void protobuf_AddDesc_client2gate_5fprotocol_2eproto();
  229. friend void protobuf_AssignDesc_client2gate_5fprotocol_2eproto();
  230. friend void protobuf_ShutdownFile_client2gate_5fprotocol_2eproto();
  231. void InitAsDefaultInstance();
  232. static msg_packet* default_instance_;
  233. };
  234. // -------------------------------------------------------------------
  235. class packet_g2c_send_msglist : public ::google::protobuf::Message {
  236. public:
  237. packet_g2c_send_msglist();
  238. virtual ~packet_g2c_send_msglist();
  239. packet_g2c_send_msglist(const packet_g2c_send_msglist& from);
  240. inline packet_g2c_send_msglist& operator=(const packet_g2c_send_msglist& from) {
  241. CopyFrom(from);
  242. return *this;
  243. }
  244. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  245. return _unknown_fields_;
  246. }
  247. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  248. return &_unknown_fields_;
  249. }
  250. static const ::google::protobuf::Descriptor* descriptor();
  251. static const packet_g2c_send_msglist& default_instance();
  252. void Swap(packet_g2c_send_msglist* other);
  253. // implements Message ----------------------------------------------
  254. packet_g2c_send_msglist* New() const;
  255. void CopyFrom(const ::google::protobuf::Message& from);
  256. void MergeFrom(const ::google::protobuf::Message& from);
  257. void CopyFrom(const packet_g2c_send_msglist& from);
  258. void MergeFrom(const packet_g2c_send_msglist& from);
  259. void Clear();
  260. bool IsInitialized() const;
  261. int ByteSize() const;
  262. bool MergePartialFromCodedStream(
  263. ::google::protobuf::io::CodedInputStream* input);
  264. void SerializeWithCachedSizes(
  265. ::google::protobuf::io::CodedOutputStream* output) const;
  266. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  267. int GetCachedSize() const { return _cached_size_; }
  268. private:
  269. void SharedCtor();
  270. void SharedDtor();
  271. void SetCachedSize(int size) const;
  272. public:
  273. ::google::protobuf::Metadata GetMetadata() const;
  274. // nested types ----------------------------------------------------
  275. // accessors -------------------------------------------------------
  276. // optional .client2gate_protocols.e_server_msg_type packet_id = 1 [default = e_mst_g2c_send_msglist];
  277. inline bool has_packet_id() const;
  278. inline void clear_packet_id();
  279. static const int kPacketIdFieldNumber = 1;
  280. inline ::client2gate_protocols::e_server_msg_type packet_id() const;
  281. inline void set_packet_id(::client2gate_protocols::e_server_msg_type value);
  282. // repeated .client2gate_protocols.msg_packet msgpaks = 3;
  283. inline int msgpaks_size() const;
  284. inline void clear_msgpaks();
  285. static const int kMsgpaksFieldNumber = 3;
  286. inline const ::client2gate_protocols::msg_packet& msgpaks(int index) const;
  287. inline ::client2gate_protocols::msg_packet* mutable_msgpaks(int index);
  288. inline ::client2gate_protocols::msg_packet* add_msgpaks();
  289. inline const ::google::protobuf::RepeatedPtrField< ::client2gate_protocols::msg_packet >&
  290. msgpaks() const;
  291. inline ::google::protobuf::RepeatedPtrField< ::client2gate_protocols::msg_packet >*
  292. mutable_msgpaks();
  293. // @@protoc_insertion_point(class_scope:client2gate_protocols.packet_g2c_send_msglist)
  294. private:
  295. inline void set_has_packet_id();
  296. inline void clear_has_packet_id();
  297. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  298. ::google::protobuf::RepeatedPtrField< ::client2gate_protocols::msg_packet > msgpaks_;
  299. int packet_id_;
  300. mutable int _cached_size_;
  301. ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
  302. friend void protobuf_AddDesc_client2gate_5fprotocol_2eproto();
  303. friend void protobuf_AssignDesc_client2gate_5fprotocol_2eproto();
  304. friend void protobuf_ShutdownFile_client2gate_5fprotocol_2eproto();
  305. void InitAsDefaultInstance();
  306. static packet_g2c_send_msglist* default_instance_;
  307. };
  308. // ===================================================================
  309. // ===================================================================
  310. // packetc2g_heartbeat
  311. // optional .client2gate_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2g_heartbeat];
  312. inline bool packetc2g_heartbeat::has_packet_id() const {
  313. return (_has_bits_[0] & 0x00000001u) != 0;
  314. }
  315. inline void packetc2g_heartbeat::set_has_packet_id() {
  316. _has_bits_[0] |= 0x00000001u;
  317. }
  318. inline void packetc2g_heartbeat::clear_has_packet_id() {
  319. _has_bits_[0] &= ~0x00000001u;
  320. }
  321. inline void packetc2g_heartbeat::clear_packet_id() {
  322. packet_id_ = 301;
  323. clear_has_packet_id();
  324. }
  325. inline ::client2gate_protocols::e_server_msg_type packetc2g_heartbeat::packet_id() const {
  326. return static_cast< ::client2gate_protocols::e_server_msg_type >(packet_id_);
  327. }
  328. inline void packetc2g_heartbeat::set_packet_id(::client2gate_protocols::e_server_msg_type value) {
  329. assert(::client2gate_protocols::e_server_msg_type_IsValid(value));
  330. set_has_packet_id();
  331. packet_id_ = value;
  332. }
  333. // -------------------------------------------------------------------
  334. // packetg2c_heartbeat
  335. // optional .client2gate_protocols.e_server_msg_type packet_id = 1 [default = e_mst_g2c_heartbeat];
  336. inline bool packetg2c_heartbeat::has_packet_id() const {
  337. return (_has_bits_[0] & 0x00000001u) != 0;
  338. }
  339. inline void packetg2c_heartbeat::set_has_packet_id() {
  340. _has_bits_[0] |= 0x00000001u;
  341. }
  342. inline void packetg2c_heartbeat::clear_has_packet_id() {
  343. _has_bits_[0] &= ~0x00000001u;
  344. }
  345. inline void packetg2c_heartbeat::clear_packet_id() {
  346. packet_id_ = 403;
  347. clear_has_packet_id();
  348. }
  349. inline ::client2gate_protocols::e_server_msg_type packetg2c_heartbeat::packet_id() const {
  350. return static_cast< ::client2gate_protocols::e_server_msg_type >(packet_id_);
  351. }
  352. inline void packetg2c_heartbeat::set_packet_id(::client2gate_protocols::e_server_msg_type value) {
  353. assert(::client2gate_protocols::e_server_msg_type_IsValid(value));
  354. set_has_packet_id();
  355. packet_id_ = value;
  356. }
  357. // -------------------------------------------------------------------
  358. // msg_packet
  359. // optional int32 msgid = 1;
  360. inline bool msg_packet::has_msgid() const {
  361. return (_has_bits_[0] & 0x00000001u) != 0;
  362. }
  363. inline void msg_packet::set_has_msgid() {
  364. _has_bits_[0] |= 0x00000001u;
  365. }
  366. inline void msg_packet::clear_has_msgid() {
  367. _has_bits_[0] &= ~0x00000001u;
  368. }
  369. inline void msg_packet::clear_msgid() {
  370. msgid_ = 0;
  371. clear_has_msgid();
  372. }
  373. inline ::google::protobuf::int32 msg_packet::msgid() const {
  374. return msgid_;
  375. }
  376. inline void msg_packet::set_msgid(::google::protobuf::int32 value) {
  377. set_has_msgid();
  378. msgid_ = value;
  379. }
  380. // optional bytes msginfo = 2;
  381. inline bool msg_packet::has_msginfo() const {
  382. return (_has_bits_[0] & 0x00000002u) != 0;
  383. }
  384. inline void msg_packet::set_has_msginfo() {
  385. _has_bits_[0] |= 0x00000002u;
  386. }
  387. inline void msg_packet::clear_has_msginfo() {
  388. _has_bits_[0] &= ~0x00000002u;
  389. }
  390. inline void msg_packet::clear_msginfo() {
  391. if (msginfo_ != &::google::protobuf::internal::kEmptyString) {
  392. msginfo_->clear();
  393. }
  394. clear_has_msginfo();
  395. }
  396. inline const ::std::string& msg_packet::msginfo() const {
  397. return *msginfo_;
  398. }
  399. inline void msg_packet::set_msginfo(const ::std::string& value) {
  400. set_has_msginfo();
  401. if (msginfo_ == &::google::protobuf::internal::kEmptyString) {
  402. msginfo_ = new ::std::string;
  403. }
  404. msginfo_->assign(value);
  405. }
  406. inline void msg_packet::set_msginfo(const char* value) {
  407. set_has_msginfo();
  408. if (msginfo_ == &::google::protobuf::internal::kEmptyString) {
  409. msginfo_ = new ::std::string;
  410. }
  411. msginfo_->assign(value);
  412. }
  413. inline void msg_packet::set_msginfo(const void* value, size_t size) {
  414. set_has_msginfo();
  415. if (msginfo_ == &::google::protobuf::internal::kEmptyString) {
  416. msginfo_ = new ::std::string;
  417. }
  418. msginfo_->assign(reinterpret_cast<const char*>(value), size);
  419. }
  420. inline ::std::string* msg_packet::mutable_msginfo() {
  421. set_has_msginfo();
  422. if (msginfo_ == &::google::protobuf::internal::kEmptyString) {
  423. msginfo_ = new ::std::string;
  424. }
  425. return msginfo_;
  426. }
  427. inline ::std::string* msg_packet::release_msginfo() {
  428. clear_has_msginfo();
  429. if (msginfo_ == &::google::protobuf::internal::kEmptyString) {
  430. return NULL;
  431. } else {
  432. ::std::string* temp = msginfo_;
  433. msginfo_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  434. return temp;
  435. }
  436. }
  437. inline void msg_packet::set_allocated_msginfo(::std::string* msginfo) {
  438. if (msginfo_ != &::google::protobuf::internal::kEmptyString) {
  439. delete msginfo_;
  440. }
  441. if (msginfo) {
  442. set_has_msginfo();
  443. msginfo_ = msginfo;
  444. } else {
  445. clear_has_msginfo();
  446. msginfo_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  447. }
  448. }
  449. // -------------------------------------------------------------------
  450. // packet_g2c_send_msglist
  451. // optional .client2gate_protocols.e_server_msg_type packet_id = 1 [default = e_mst_g2c_send_msglist];
  452. inline bool packet_g2c_send_msglist::has_packet_id() const {
  453. return (_has_bits_[0] & 0x00000001u) != 0;
  454. }
  455. inline void packet_g2c_send_msglist::set_has_packet_id() {
  456. _has_bits_[0] |= 0x00000001u;
  457. }
  458. inline void packet_g2c_send_msglist::clear_has_packet_id() {
  459. _has_bits_[0] &= ~0x00000001u;
  460. }
  461. inline void packet_g2c_send_msglist::clear_packet_id() {
  462. packet_id_ = 402;
  463. clear_has_packet_id();
  464. }
  465. inline ::client2gate_protocols::e_server_msg_type packet_g2c_send_msglist::packet_id() const {
  466. return static_cast< ::client2gate_protocols::e_server_msg_type >(packet_id_);
  467. }
  468. inline void packet_g2c_send_msglist::set_packet_id(::client2gate_protocols::e_server_msg_type value) {
  469. assert(::client2gate_protocols::e_server_msg_type_IsValid(value));
  470. set_has_packet_id();
  471. packet_id_ = value;
  472. }
  473. // repeated .client2gate_protocols.msg_packet msgpaks = 3;
  474. inline int packet_g2c_send_msglist::msgpaks_size() const {
  475. return msgpaks_.size();
  476. }
  477. inline void packet_g2c_send_msglist::clear_msgpaks() {
  478. msgpaks_.Clear();
  479. }
  480. inline const ::client2gate_protocols::msg_packet& packet_g2c_send_msglist::msgpaks(int index) const {
  481. return msgpaks_.Get(index);
  482. }
  483. inline ::client2gate_protocols::msg_packet* packet_g2c_send_msglist::mutable_msgpaks(int index) {
  484. return msgpaks_.Mutable(index);
  485. }
  486. inline ::client2gate_protocols::msg_packet* packet_g2c_send_msglist::add_msgpaks() {
  487. return msgpaks_.Add();
  488. }
  489. inline const ::google::protobuf::RepeatedPtrField< ::client2gate_protocols::msg_packet >&
  490. packet_g2c_send_msglist::msgpaks() const {
  491. return msgpaks_;
  492. }
  493. inline ::google::protobuf::RepeatedPtrField< ::client2gate_protocols::msg_packet >*
  494. packet_g2c_send_msglist::mutable_msgpaks() {
  495. return &msgpaks_;
  496. }
  497. // @@protoc_insertion_point(namespace_scope)
  498. } // namespace client2gate_protocols
  499. #ifndef SWIG
  500. namespace google {
  501. namespace protobuf {
  502. } // namespace google
  503. } // namespace protobuf
  504. #endif // SWIG
  505. // @@protoc_insertion_point(global_scope)
  506. #endif // PROTOBUF_client2gate_5fprotocol_2eproto__INCLUDED