client2world_shop.pb.h 22 KB

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