common_protocol.pb.h 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: common_protocol.proto
  3. #ifndef PROTOBUF_common_5fprotocol_2eproto__INCLUDED
  4. #define PROTOBUF_common_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. // @@protoc_insertion_point(includes)
  23. namespace common_protocol {
  24. // Internal implementation detail -- do not call these.
  25. void protobuf_AddDesc_common_5fprotocol_2eproto();
  26. void protobuf_AssignDesc_common_5fprotocol_2eproto();
  27. void protobuf_ShutdownFile_common_5fprotocol_2eproto();
  28. class PlayerConnect;
  29. class PlayerConnectResult;
  30. // ===================================================================
  31. class PlayerConnect : public ::google::protobuf::Message {
  32. public:
  33. PlayerConnect();
  34. virtual ~PlayerConnect();
  35. PlayerConnect(const PlayerConnect& from);
  36. inline PlayerConnect& operator=(const PlayerConnect& from) {
  37. CopyFrom(from);
  38. return *this;
  39. }
  40. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  41. return _unknown_fields_;
  42. }
  43. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  44. return &_unknown_fields_;
  45. }
  46. static const ::google::protobuf::Descriptor* descriptor();
  47. static const PlayerConnect& default_instance();
  48. void Swap(PlayerConnect* other);
  49. // implements Message ----------------------------------------------
  50. PlayerConnect* New() const;
  51. void CopyFrom(const ::google::protobuf::Message& from);
  52. void MergeFrom(const ::google::protobuf::Message& from);
  53. void CopyFrom(const PlayerConnect& from);
  54. void MergeFrom(const PlayerConnect& from);
  55. void Clear();
  56. bool IsInitialized() const;
  57. int ByteSize() const;
  58. bool MergePartialFromCodedStream(
  59. ::google::protobuf::io::CodedInputStream* input);
  60. void SerializeWithCachedSizes(
  61. ::google::protobuf::io::CodedOutputStream* output) const;
  62. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  63. int GetCachedSize() const { return _cached_size_; }
  64. private:
  65. void SharedCtor();
  66. void SharedDtor();
  67. void SetCachedSize(int size) const;
  68. public:
  69. ::google::protobuf::Metadata GetMetadata() const;
  70. // nested types ----------------------------------------------------
  71. // accessors -------------------------------------------------------
  72. // optional string account = 1;
  73. inline bool has_account() const;
  74. inline void clear_account();
  75. static const int kAccountFieldNumber = 1;
  76. inline const ::std::string& account() const;
  77. inline void set_account(const ::std::string& value);
  78. inline void set_account(const char* value);
  79. inline void set_account(const char* value, size_t size);
  80. inline ::std::string* mutable_account();
  81. inline ::std::string* release_account();
  82. inline void set_allocated_account(::std::string* account);
  83. // optional string token = 2;
  84. inline bool has_token() const;
  85. inline void clear_token();
  86. static const int kTokenFieldNumber = 2;
  87. inline const ::std::string& token() const;
  88. inline void set_token(const ::std::string& value);
  89. inline void set_token(const char* value);
  90. inline void set_token(const char* value, size_t size);
  91. inline ::std::string* mutable_token();
  92. inline ::std::string* release_token();
  93. inline void set_allocated_token(::std::string* token);
  94. // optional string sign = 3;
  95. inline bool has_sign() const;
  96. inline void clear_sign();
  97. static const int kSignFieldNumber = 3;
  98. inline const ::std::string& sign() const;
  99. inline void set_sign(const ::std::string& value);
  100. inline void set_sign(const char* value);
  101. inline void set_sign(const char* value, size_t size);
  102. inline ::std::string* mutable_sign();
  103. inline ::std::string* release_sign();
  104. inline void set_allocated_sign(::std::string* sign);
  105. // optional string platform = 4 [default = "dwc_def"];
  106. inline bool has_platform() const;
  107. inline void clear_platform();
  108. static const int kPlatformFieldNumber = 4;
  109. inline const ::std::string& platform() const;
  110. inline void set_platform(const ::std::string& value);
  111. inline void set_platform(const char* value);
  112. inline void set_platform(const char* value, size_t size);
  113. inline ::std::string* mutable_platform();
  114. inline ::std::string* release_platform();
  115. inline void set_allocated_platform(::std::string* platform);
  116. // optional string pay_platform = 5 [default = "dwc_def"];
  117. inline bool has_pay_platform() const;
  118. inline void clear_pay_platform();
  119. static const int kPayPlatformFieldNumber = 5;
  120. inline const ::std::string& pay_platform() const;
  121. inline void set_pay_platform(const ::std::string& value);
  122. inline void set_pay_platform(const char* value);
  123. inline void set_pay_platform(const char* value, size_t size);
  124. inline ::std::string* mutable_pay_platform();
  125. inline ::std::string* release_pay_platform();
  126. inline void set_allocated_pay_platform(::std::string* pay_platform);
  127. // optional string channel = 6 [default = "0"];
  128. inline bool has_channel() const;
  129. inline void clear_channel();
  130. static const int kChannelFieldNumber = 6;
  131. inline const ::std::string& channel() const;
  132. inline void set_channel(const ::std::string& value);
  133. inline void set_channel(const char* value);
  134. inline void set_channel(const char* value, size_t size);
  135. inline ::std::string* mutable_channel();
  136. inline ::std::string* release_channel();
  137. inline void set_allocated_channel(::std::string* channel);
  138. // @@protoc_insertion_point(class_scope:common_protocol.PlayerConnect)
  139. private:
  140. inline void set_has_account();
  141. inline void clear_has_account();
  142. inline void set_has_token();
  143. inline void clear_has_token();
  144. inline void set_has_sign();
  145. inline void clear_has_sign();
  146. inline void set_has_platform();
  147. inline void clear_has_platform();
  148. inline void set_has_pay_platform();
  149. inline void clear_has_pay_platform();
  150. inline void set_has_channel();
  151. inline void clear_has_channel();
  152. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  153. ::std::string* account_;
  154. ::std::string* token_;
  155. ::std::string* sign_;
  156. ::std::string* platform_;
  157. static ::std::string* _default_platform_;
  158. ::std::string* pay_platform_;
  159. static ::std::string* _default_pay_platform_;
  160. ::std::string* channel_;
  161. static ::std::string* _default_channel_;
  162. mutable int _cached_size_;
  163. ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32];
  164. friend void protobuf_AddDesc_common_5fprotocol_2eproto();
  165. friend void protobuf_AssignDesc_common_5fprotocol_2eproto();
  166. friend void protobuf_ShutdownFile_common_5fprotocol_2eproto();
  167. void InitAsDefaultInstance();
  168. static PlayerConnect* default_instance_;
  169. };
  170. // -------------------------------------------------------------------
  171. class PlayerConnectResult : public ::google::protobuf::Message {
  172. public:
  173. PlayerConnectResult();
  174. virtual ~PlayerConnectResult();
  175. PlayerConnectResult(const PlayerConnectResult& from);
  176. inline PlayerConnectResult& operator=(const PlayerConnectResult& from) {
  177. CopyFrom(from);
  178. return *this;
  179. }
  180. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  181. return _unknown_fields_;
  182. }
  183. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  184. return &_unknown_fields_;
  185. }
  186. static const ::google::protobuf::Descriptor* descriptor();
  187. static const PlayerConnectResult& default_instance();
  188. void Swap(PlayerConnectResult* other);
  189. // implements Message ----------------------------------------------
  190. PlayerConnectResult* New() const;
  191. void CopyFrom(const ::google::protobuf::Message& from);
  192. void MergeFrom(const ::google::protobuf::Message& from);
  193. void CopyFrom(const PlayerConnectResult& from);
  194. void MergeFrom(const PlayerConnectResult& from);
  195. void Clear();
  196. bool IsInitialized() const;
  197. int ByteSize() const;
  198. bool MergePartialFromCodedStream(
  199. ::google::protobuf::io::CodedInputStream* input);
  200. void SerializeWithCachedSizes(
  201. ::google::protobuf::io::CodedOutputStream* output) const;
  202. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  203. int GetCachedSize() const { return _cached_size_; }
  204. private:
  205. void SharedCtor();
  206. void SharedDtor();
  207. void SetCachedSize(int size) const;
  208. public:
  209. ::google::protobuf::Metadata GetMetadata() const;
  210. // nested types ----------------------------------------------------
  211. // accessors -------------------------------------------------------
  212. // optional int32 servertime = 1;
  213. inline bool has_servertime() const;
  214. inline void clear_servertime();
  215. static const int kServertimeFieldNumber = 1;
  216. inline ::google::protobuf::int32 servertime() const;
  217. inline void set_servertime(::google::protobuf::int32 value);
  218. // optional int32 gaming = 2;
  219. inline bool has_gaming() const;
  220. inline void clear_gaming();
  221. static const int kGamingFieldNumber = 2;
  222. inline ::google::protobuf::int32 gaming() const;
  223. inline void set_gaming(::google::protobuf::int32 value);
  224. // optional string ver = 3;
  225. inline bool has_ver() const;
  226. inline void clear_ver();
  227. static const int kVerFieldNumber = 3;
  228. inline const ::std::string& ver() const;
  229. inline void set_ver(const ::std::string& value);
  230. inline void set_ver(const char* value);
  231. inline void set_ver(const char* value, size_t size);
  232. inline ::std::string* mutable_ver();
  233. inline ::std::string* release_ver();
  234. inline void set_allocated_ver(::std::string* ver);
  235. // optional int32 result = 4;
  236. inline bool has_result() const;
  237. inline void clear_result();
  238. static const int kResultFieldNumber = 4;
  239. inline ::google::protobuf::int32 result() const;
  240. inline void set_result(::google::protobuf::int32 value);
  241. // @@protoc_insertion_point(class_scope:common_protocol.PlayerConnectResult)
  242. private:
  243. inline void set_has_servertime();
  244. inline void clear_has_servertime();
  245. inline void set_has_gaming();
  246. inline void clear_has_gaming();
  247. inline void set_has_ver();
  248. inline void clear_has_ver();
  249. inline void set_has_result();
  250. inline void clear_has_result();
  251. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  252. ::google::protobuf::int32 servertime_;
  253. ::google::protobuf::int32 gaming_;
  254. ::std::string* ver_;
  255. ::google::protobuf::int32 result_;
  256. mutable int _cached_size_;
  257. ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
  258. friend void protobuf_AddDesc_common_5fprotocol_2eproto();
  259. friend void protobuf_AssignDesc_common_5fprotocol_2eproto();
  260. friend void protobuf_ShutdownFile_common_5fprotocol_2eproto();
  261. void InitAsDefaultInstance();
  262. static PlayerConnectResult* default_instance_;
  263. };
  264. // ===================================================================
  265. // ===================================================================
  266. // PlayerConnect
  267. // optional string account = 1;
  268. inline bool PlayerConnect::has_account() const {
  269. return (_has_bits_[0] & 0x00000001u) != 0;
  270. }
  271. inline void PlayerConnect::set_has_account() {
  272. _has_bits_[0] |= 0x00000001u;
  273. }
  274. inline void PlayerConnect::clear_has_account() {
  275. _has_bits_[0] &= ~0x00000001u;
  276. }
  277. inline void PlayerConnect::clear_account() {
  278. if (account_ != &::google::protobuf::internal::kEmptyString) {
  279. account_->clear();
  280. }
  281. clear_has_account();
  282. }
  283. inline const ::std::string& PlayerConnect::account() const {
  284. return *account_;
  285. }
  286. inline void PlayerConnect::set_account(const ::std::string& value) {
  287. set_has_account();
  288. if (account_ == &::google::protobuf::internal::kEmptyString) {
  289. account_ = new ::std::string;
  290. }
  291. account_->assign(value);
  292. }
  293. inline void PlayerConnect::set_account(const char* value) {
  294. set_has_account();
  295. if (account_ == &::google::protobuf::internal::kEmptyString) {
  296. account_ = new ::std::string;
  297. }
  298. account_->assign(value);
  299. }
  300. inline void PlayerConnect::set_account(const char* value, size_t size) {
  301. set_has_account();
  302. if (account_ == &::google::protobuf::internal::kEmptyString) {
  303. account_ = new ::std::string;
  304. }
  305. account_->assign(reinterpret_cast<const char*>(value), size);
  306. }
  307. inline ::std::string* PlayerConnect::mutable_account() {
  308. set_has_account();
  309. if (account_ == &::google::protobuf::internal::kEmptyString) {
  310. account_ = new ::std::string;
  311. }
  312. return account_;
  313. }
  314. inline ::std::string* PlayerConnect::release_account() {
  315. clear_has_account();
  316. if (account_ == &::google::protobuf::internal::kEmptyString) {
  317. return NULL;
  318. } else {
  319. ::std::string* temp = account_;
  320. account_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  321. return temp;
  322. }
  323. }
  324. inline void PlayerConnect::set_allocated_account(::std::string* account) {
  325. if (account_ != &::google::protobuf::internal::kEmptyString) {
  326. delete account_;
  327. }
  328. if (account) {
  329. set_has_account();
  330. account_ = account;
  331. } else {
  332. clear_has_account();
  333. account_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  334. }
  335. }
  336. // optional string token = 2;
  337. inline bool PlayerConnect::has_token() const {
  338. return (_has_bits_[0] & 0x00000002u) != 0;
  339. }
  340. inline void PlayerConnect::set_has_token() {
  341. _has_bits_[0] |= 0x00000002u;
  342. }
  343. inline void PlayerConnect::clear_has_token() {
  344. _has_bits_[0] &= ~0x00000002u;
  345. }
  346. inline void PlayerConnect::clear_token() {
  347. if (token_ != &::google::protobuf::internal::kEmptyString) {
  348. token_->clear();
  349. }
  350. clear_has_token();
  351. }
  352. inline const ::std::string& PlayerConnect::token() const {
  353. return *token_;
  354. }
  355. inline void PlayerConnect::set_token(const ::std::string& value) {
  356. set_has_token();
  357. if (token_ == &::google::protobuf::internal::kEmptyString) {
  358. token_ = new ::std::string;
  359. }
  360. token_->assign(value);
  361. }
  362. inline void PlayerConnect::set_token(const char* value) {
  363. set_has_token();
  364. if (token_ == &::google::protobuf::internal::kEmptyString) {
  365. token_ = new ::std::string;
  366. }
  367. token_->assign(value);
  368. }
  369. inline void PlayerConnect::set_token(const char* value, size_t size) {
  370. set_has_token();
  371. if (token_ == &::google::protobuf::internal::kEmptyString) {
  372. token_ = new ::std::string;
  373. }
  374. token_->assign(reinterpret_cast<const char*>(value), size);
  375. }
  376. inline ::std::string* PlayerConnect::mutable_token() {
  377. set_has_token();
  378. if (token_ == &::google::protobuf::internal::kEmptyString) {
  379. token_ = new ::std::string;
  380. }
  381. return token_;
  382. }
  383. inline ::std::string* PlayerConnect::release_token() {
  384. clear_has_token();
  385. if (token_ == &::google::protobuf::internal::kEmptyString) {
  386. return NULL;
  387. } else {
  388. ::std::string* temp = token_;
  389. token_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  390. return temp;
  391. }
  392. }
  393. inline void PlayerConnect::set_allocated_token(::std::string* token) {
  394. if (token_ != &::google::protobuf::internal::kEmptyString) {
  395. delete token_;
  396. }
  397. if (token) {
  398. set_has_token();
  399. token_ = token;
  400. } else {
  401. clear_has_token();
  402. token_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  403. }
  404. }
  405. // optional string sign = 3;
  406. inline bool PlayerConnect::has_sign() const {
  407. return (_has_bits_[0] & 0x00000004u) != 0;
  408. }
  409. inline void PlayerConnect::set_has_sign() {
  410. _has_bits_[0] |= 0x00000004u;
  411. }
  412. inline void PlayerConnect::clear_has_sign() {
  413. _has_bits_[0] &= ~0x00000004u;
  414. }
  415. inline void PlayerConnect::clear_sign() {
  416. if (sign_ != &::google::protobuf::internal::kEmptyString) {
  417. sign_->clear();
  418. }
  419. clear_has_sign();
  420. }
  421. inline const ::std::string& PlayerConnect::sign() const {
  422. return *sign_;
  423. }
  424. inline void PlayerConnect::set_sign(const ::std::string& value) {
  425. set_has_sign();
  426. if (sign_ == &::google::protobuf::internal::kEmptyString) {
  427. sign_ = new ::std::string;
  428. }
  429. sign_->assign(value);
  430. }
  431. inline void PlayerConnect::set_sign(const char* value) {
  432. set_has_sign();
  433. if (sign_ == &::google::protobuf::internal::kEmptyString) {
  434. sign_ = new ::std::string;
  435. }
  436. sign_->assign(value);
  437. }
  438. inline void PlayerConnect::set_sign(const char* value, size_t size) {
  439. set_has_sign();
  440. if (sign_ == &::google::protobuf::internal::kEmptyString) {
  441. sign_ = new ::std::string;
  442. }
  443. sign_->assign(reinterpret_cast<const char*>(value), size);
  444. }
  445. inline ::std::string* PlayerConnect::mutable_sign() {
  446. set_has_sign();
  447. if (sign_ == &::google::protobuf::internal::kEmptyString) {
  448. sign_ = new ::std::string;
  449. }
  450. return sign_;
  451. }
  452. inline ::std::string* PlayerConnect::release_sign() {
  453. clear_has_sign();
  454. if (sign_ == &::google::protobuf::internal::kEmptyString) {
  455. return NULL;
  456. } else {
  457. ::std::string* temp = sign_;
  458. sign_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  459. return temp;
  460. }
  461. }
  462. inline void PlayerConnect::set_allocated_sign(::std::string* sign) {
  463. if (sign_ != &::google::protobuf::internal::kEmptyString) {
  464. delete sign_;
  465. }
  466. if (sign) {
  467. set_has_sign();
  468. sign_ = sign;
  469. } else {
  470. clear_has_sign();
  471. sign_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  472. }
  473. }
  474. // optional string platform = 4 [default = "dwc_def"];
  475. inline bool PlayerConnect::has_platform() const {
  476. return (_has_bits_[0] & 0x00000008u) != 0;
  477. }
  478. inline void PlayerConnect::set_has_platform() {
  479. _has_bits_[0] |= 0x00000008u;
  480. }
  481. inline void PlayerConnect::clear_has_platform() {
  482. _has_bits_[0] &= ~0x00000008u;
  483. }
  484. inline void PlayerConnect::clear_platform() {
  485. if (platform_ != _default_platform_) {
  486. platform_->assign(*_default_platform_);
  487. }
  488. clear_has_platform();
  489. }
  490. inline const ::std::string& PlayerConnect::platform() const {
  491. return *platform_;
  492. }
  493. inline void PlayerConnect::set_platform(const ::std::string& value) {
  494. set_has_platform();
  495. if (platform_ == _default_platform_) {
  496. platform_ = new ::std::string;
  497. }
  498. platform_->assign(value);
  499. }
  500. inline void PlayerConnect::set_platform(const char* value) {
  501. set_has_platform();
  502. if (platform_ == _default_platform_) {
  503. platform_ = new ::std::string;
  504. }
  505. platform_->assign(value);
  506. }
  507. inline void PlayerConnect::set_platform(const char* value, size_t size) {
  508. set_has_platform();
  509. if (platform_ == _default_platform_) {
  510. platform_ = new ::std::string;
  511. }
  512. platform_->assign(reinterpret_cast<const char*>(value), size);
  513. }
  514. inline ::std::string* PlayerConnect::mutable_platform() {
  515. set_has_platform();
  516. if (platform_ == _default_platform_) {
  517. platform_ = new ::std::string(*_default_platform_);
  518. }
  519. return platform_;
  520. }
  521. inline ::std::string* PlayerConnect::release_platform() {
  522. clear_has_platform();
  523. if (platform_ == _default_platform_) {
  524. return NULL;
  525. } else {
  526. ::std::string* temp = platform_;
  527. platform_ = const_cast< ::std::string*>(_default_platform_);
  528. return temp;
  529. }
  530. }
  531. inline void PlayerConnect::set_allocated_platform(::std::string* platform) {
  532. if (platform_ != _default_platform_) {
  533. delete platform_;
  534. }
  535. if (platform) {
  536. set_has_platform();
  537. platform_ = platform;
  538. } else {
  539. clear_has_platform();
  540. platform_ = const_cast< ::std::string*>(_default_platform_);
  541. }
  542. }
  543. // optional string pay_platform = 5 [default = "dwc_def"];
  544. inline bool PlayerConnect::has_pay_platform() const {
  545. return (_has_bits_[0] & 0x00000010u) != 0;
  546. }
  547. inline void PlayerConnect::set_has_pay_platform() {
  548. _has_bits_[0] |= 0x00000010u;
  549. }
  550. inline void PlayerConnect::clear_has_pay_platform() {
  551. _has_bits_[0] &= ~0x00000010u;
  552. }
  553. inline void PlayerConnect::clear_pay_platform() {
  554. if (pay_platform_ != _default_pay_platform_) {
  555. pay_platform_->assign(*_default_pay_platform_);
  556. }
  557. clear_has_pay_platform();
  558. }
  559. inline const ::std::string& PlayerConnect::pay_platform() const {
  560. return *pay_platform_;
  561. }
  562. inline void PlayerConnect::set_pay_platform(const ::std::string& value) {
  563. set_has_pay_platform();
  564. if (pay_platform_ == _default_pay_platform_) {
  565. pay_platform_ = new ::std::string;
  566. }
  567. pay_platform_->assign(value);
  568. }
  569. inline void PlayerConnect::set_pay_platform(const char* value) {
  570. set_has_pay_platform();
  571. if (pay_platform_ == _default_pay_platform_) {
  572. pay_platform_ = new ::std::string;
  573. }
  574. pay_platform_->assign(value);
  575. }
  576. inline void PlayerConnect::set_pay_platform(const char* value, size_t size) {
  577. set_has_pay_platform();
  578. if (pay_platform_ == _default_pay_platform_) {
  579. pay_platform_ = new ::std::string;
  580. }
  581. pay_platform_->assign(reinterpret_cast<const char*>(value), size);
  582. }
  583. inline ::std::string* PlayerConnect::mutable_pay_platform() {
  584. set_has_pay_platform();
  585. if (pay_platform_ == _default_pay_platform_) {
  586. pay_platform_ = new ::std::string(*_default_pay_platform_);
  587. }
  588. return pay_platform_;
  589. }
  590. inline ::std::string* PlayerConnect::release_pay_platform() {
  591. clear_has_pay_platform();
  592. if (pay_platform_ == _default_pay_platform_) {
  593. return NULL;
  594. } else {
  595. ::std::string* temp = pay_platform_;
  596. pay_platform_ = const_cast< ::std::string*>(_default_pay_platform_);
  597. return temp;
  598. }
  599. }
  600. inline void PlayerConnect::set_allocated_pay_platform(::std::string* pay_platform) {
  601. if (pay_platform_ != _default_pay_platform_) {
  602. delete pay_platform_;
  603. }
  604. if (pay_platform) {
  605. set_has_pay_platform();
  606. pay_platform_ = pay_platform;
  607. } else {
  608. clear_has_pay_platform();
  609. pay_platform_ = const_cast< ::std::string*>(_default_pay_platform_);
  610. }
  611. }
  612. // optional string channel = 6 [default = "0"];
  613. inline bool PlayerConnect::has_channel() const {
  614. return (_has_bits_[0] & 0x00000020u) != 0;
  615. }
  616. inline void PlayerConnect::set_has_channel() {
  617. _has_bits_[0] |= 0x00000020u;
  618. }
  619. inline void PlayerConnect::clear_has_channel() {
  620. _has_bits_[0] &= ~0x00000020u;
  621. }
  622. inline void PlayerConnect::clear_channel() {
  623. if (channel_ != _default_channel_) {
  624. channel_->assign(*_default_channel_);
  625. }
  626. clear_has_channel();
  627. }
  628. inline const ::std::string& PlayerConnect::channel() const {
  629. return *channel_;
  630. }
  631. inline void PlayerConnect::set_channel(const ::std::string& value) {
  632. set_has_channel();
  633. if (channel_ == _default_channel_) {
  634. channel_ = new ::std::string;
  635. }
  636. channel_->assign(value);
  637. }
  638. inline void PlayerConnect::set_channel(const char* value) {
  639. set_has_channel();
  640. if (channel_ == _default_channel_) {
  641. channel_ = new ::std::string;
  642. }
  643. channel_->assign(value);
  644. }
  645. inline void PlayerConnect::set_channel(const char* value, size_t size) {
  646. set_has_channel();
  647. if (channel_ == _default_channel_) {
  648. channel_ = new ::std::string;
  649. }
  650. channel_->assign(reinterpret_cast<const char*>(value), size);
  651. }
  652. inline ::std::string* PlayerConnect::mutable_channel() {
  653. set_has_channel();
  654. if (channel_ == _default_channel_) {
  655. channel_ = new ::std::string(*_default_channel_);
  656. }
  657. return channel_;
  658. }
  659. inline ::std::string* PlayerConnect::release_channel() {
  660. clear_has_channel();
  661. if (channel_ == _default_channel_) {
  662. return NULL;
  663. } else {
  664. ::std::string* temp = channel_;
  665. channel_ = const_cast< ::std::string*>(_default_channel_);
  666. return temp;
  667. }
  668. }
  669. inline void PlayerConnect::set_allocated_channel(::std::string* channel) {
  670. if (channel_ != _default_channel_) {
  671. delete channel_;
  672. }
  673. if (channel) {
  674. set_has_channel();
  675. channel_ = channel;
  676. } else {
  677. clear_has_channel();
  678. channel_ = const_cast< ::std::string*>(_default_channel_);
  679. }
  680. }
  681. // -------------------------------------------------------------------
  682. // PlayerConnectResult
  683. // optional int32 servertime = 1;
  684. inline bool PlayerConnectResult::has_servertime() const {
  685. return (_has_bits_[0] & 0x00000001u) != 0;
  686. }
  687. inline void PlayerConnectResult::set_has_servertime() {
  688. _has_bits_[0] |= 0x00000001u;
  689. }
  690. inline void PlayerConnectResult::clear_has_servertime() {
  691. _has_bits_[0] &= ~0x00000001u;
  692. }
  693. inline void PlayerConnectResult::clear_servertime() {
  694. servertime_ = 0;
  695. clear_has_servertime();
  696. }
  697. inline ::google::protobuf::int32 PlayerConnectResult::servertime() const {
  698. return servertime_;
  699. }
  700. inline void PlayerConnectResult::set_servertime(::google::protobuf::int32 value) {
  701. set_has_servertime();
  702. servertime_ = value;
  703. }
  704. // optional int32 gaming = 2;
  705. inline bool PlayerConnectResult::has_gaming() const {
  706. return (_has_bits_[0] & 0x00000002u) != 0;
  707. }
  708. inline void PlayerConnectResult::set_has_gaming() {
  709. _has_bits_[0] |= 0x00000002u;
  710. }
  711. inline void PlayerConnectResult::clear_has_gaming() {
  712. _has_bits_[0] &= ~0x00000002u;
  713. }
  714. inline void PlayerConnectResult::clear_gaming() {
  715. gaming_ = 0;
  716. clear_has_gaming();
  717. }
  718. inline ::google::protobuf::int32 PlayerConnectResult::gaming() const {
  719. return gaming_;
  720. }
  721. inline void PlayerConnectResult::set_gaming(::google::protobuf::int32 value) {
  722. set_has_gaming();
  723. gaming_ = value;
  724. }
  725. // optional string ver = 3;
  726. inline bool PlayerConnectResult::has_ver() const {
  727. return (_has_bits_[0] & 0x00000004u) != 0;
  728. }
  729. inline void PlayerConnectResult::set_has_ver() {
  730. _has_bits_[0] |= 0x00000004u;
  731. }
  732. inline void PlayerConnectResult::clear_has_ver() {
  733. _has_bits_[0] &= ~0x00000004u;
  734. }
  735. inline void PlayerConnectResult::clear_ver() {
  736. if (ver_ != &::google::protobuf::internal::kEmptyString) {
  737. ver_->clear();
  738. }
  739. clear_has_ver();
  740. }
  741. inline const ::std::string& PlayerConnectResult::ver() const {
  742. return *ver_;
  743. }
  744. inline void PlayerConnectResult::set_ver(const ::std::string& value) {
  745. set_has_ver();
  746. if (ver_ == &::google::protobuf::internal::kEmptyString) {
  747. ver_ = new ::std::string;
  748. }
  749. ver_->assign(value);
  750. }
  751. inline void PlayerConnectResult::set_ver(const char* value) {
  752. set_has_ver();
  753. if (ver_ == &::google::protobuf::internal::kEmptyString) {
  754. ver_ = new ::std::string;
  755. }
  756. ver_->assign(value);
  757. }
  758. inline void PlayerConnectResult::set_ver(const char* value, size_t size) {
  759. set_has_ver();
  760. if (ver_ == &::google::protobuf::internal::kEmptyString) {
  761. ver_ = new ::std::string;
  762. }
  763. ver_->assign(reinterpret_cast<const char*>(value), size);
  764. }
  765. inline ::std::string* PlayerConnectResult::mutable_ver() {
  766. set_has_ver();
  767. if (ver_ == &::google::protobuf::internal::kEmptyString) {
  768. ver_ = new ::std::string;
  769. }
  770. return ver_;
  771. }
  772. inline ::std::string* PlayerConnectResult::release_ver() {
  773. clear_has_ver();
  774. if (ver_ == &::google::protobuf::internal::kEmptyString) {
  775. return NULL;
  776. } else {
  777. ::std::string* temp = ver_;
  778. ver_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  779. return temp;
  780. }
  781. }
  782. inline void PlayerConnectResult::set_allocated_ver(::std::string* ver) {
  783. if (ver_ != &::google::protobuf::internal::kEmptyString) {
  784. delete ver_;
  785. }
  786. if (ver) {
  787. set_has_ver();
  788. ver_ = ver;
  789. } else {
  790. clear_has_ver();
  791. ver_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  792. }
  793. }
  794. // optional int32 result = 4;
  795. inline bool PlayerConnectResult::has_result() const {
  796. return (_has_bits_[0] & 0x00000008u) != 0;
  797. }
  798. inline void PlayerConnectResult::set_has_result() {
  799. _has_bits_[0] |= 0x00000008u;
  800. }
  801. inline void PlayerConnectResult::clear_has_result() {
  802. _has_bits_[0] &= ~0x00000008u;
  803. }
  804. inline void PlayerConnectResult::clear_result() {
  805. result_ = 0;
  806. clear_has_result();
  807. }
  808. inline ::google::protobuf::int32 PlayerConnectResult::result() const {
  809. return result_;
  810. }
  811. inline void PlayerConnectResult::set_result(::google::protobuf::int32 value) {
  812. set_has_result();
  813. result_ = value;
  814. }
  815. // @@protoc_insertion_point(namespace_scope)
  816. } // namespace common_protocol
  817. #ifndef SWIG
  818. namespace google {
  819. namespace protobuf {
  820. } // namespace google
  821. } // namespace protobuf
  822. #endif // SWIG
  823. // @@protoc_insertion_point(global_scope)
  824. #endif // PROTOBUF_common_5fprotocol_2eproto__INCLUDED