client2world_chat.pb.h 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: client2world_chat.proto
  3. #ifndef PROTOBUF_client2world_5fchat_2eproto__INCLUDED
  4. #define PROTOBUF_client2world_5fchat_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_5fchat_2eproto();
  29. void protobuf_AssignDesc_client2world_5fchat_2eproto();
  30. void protobuf_ShutdownFile_client2world_5fchat_2eproto();
  31. class packetw2c_notify;
  32. // ===================================================================
  33. class packetw2c_notify : public ::google::protobuf::Message {
  34. public:
  35. packetw2c_notify();
  36. virtual ~packetw2c_notify();
  37. packetw2c_notify(const packetw2c_notify& from);
  38. inline packetw2c_notify& operator=(const packetw2c_notify& from) {
  39. CopyFrom(from);
  40. return *this;
  41. }
  42. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  43. return _unknown_fields_;
  44. }
  45. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  46. return &_unknown_fields_;
  47. }
  48. static const ::google::protobuf::Descriptor* descriptor();
  49. static const packetw2c_notify& default_instance();
  50. void Swap(packetw2c_notify* other);
  51. // implements Message ----------------------------------------------
  52. packetw2c_notify* New() const;
  53. void CopyFrom(const ::google::protobuf::Message& from);
  54. void MergeFrom(const ::google::protobuf::Message& from);
  55. void CopyFrom(const packetw2c_notify& from);
  56. void MergeFrom(const packetw2c_notify& from);
  57. void Clear();
  58. bool IsInitialized() const;
  59. int ByteSize() const;
  60. bool MergePartialFromCodedStream(
  61. ::google::protobuf::io::CodedInputStream* input);
  62. void SerializeWithCachedSizes(
  63. ::google::protobuf::io::CodedOutputStream* output) const;
  64. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  65. int GetCachedSize() const { return _cached_size_; }
  66. private:
  67. void SharedCtor();
  68. void SharedDtor();
  69. void SetCachedSize(int size) const;
  70. public:
  71. ::google::protobuf::Metadata GetMetadata() const;
  72. // nested types ----------------------------------------------------
  73. // accessors -------------------------------------------------------
  74. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_notify];
  75. inline bool has_packet_id() const;
  76. inline void clear_packet_id();
  77. static const int kPacketIdFieldNumber = 1;
  78. inline ::client2world_protocols::e_server_msg_type packet_id() const;
  79. inline void set_packet_id(::client2world_protocols::e_server_msg_type value);
  80. // optional string content = 2;
  81. inline bool has_content() const;
  82. inline void clear_content();
  83. static const int kContentFieldNumber = 2;
  84. inline const ::std::string& content() const;
  85. inline void set_content(const ::std::string& value);
  86. inline void set_content(const char* value);
  87. inline void set_content(const char* value, size_t size);
  88. inline ::std::string* mutable_content();
  89. inline ::std::string* release_content();
  90. inline void set_allocated_content(::std::string* content);
  91. // optional int32 notifyType = 3;
  92. inline bool has_notifytype() const;
  93. inline void clear_notifytype();
  94. static const int kNotifyTypeFieldNumber = 3;
  95. inline ::google::protobuf::int32 notifytype() const;
  96. inline void set_notifytype(::google::protobuf::int32 value);
  97. // optional string talkerNickName = 4;
  98. inline bool has_talkernickname() const;
  99. inline void clear_talkernickname();
  100. static const int kTalkerNickNameFieldNumber = 4;
  101. inline const ::std::string& talkernickname() const;
  102. inline void set_talkernickname(const ::std::string& value);
  103. inline void set_talkernickname(const char* value);
  104. inline void set_talkernickname(const char* value, size_t size);
  105. inline ::std::string* mutable_talkernickname();
  106. inline ::std::string* release_talkernickname();
  107. inline void set_allocated_talkernickname(::std::string* talkernickname);
  108. // optional int32 playerId = 5;
  109. inline bool has_playerid() const;
  110. inline void clear_playerid();
  111. static const int kPlayerIdFieldNumber = 5;
  112. inline ::google::protobuf::int32 playerid() const;
  113. inline void set_playerid(::google::protobuf::int32 value);
  114. // optional int32 talkerVIPLevel = 6;
  115. inline bool has_talkerviplevel() const;
  116. inline void clear_talkerviplevel();
  117. static const int kTalkerVIPLevelFieldNumber = 6;
  118. inline ::google::protobuf::int32 talkerviplevel() const;
  119. inline void set_talkerviplevel(::google::protobuf::int32 value);
  120. // optional bool hasMonthCard = 7;
  121. inline bool has_hasmonthcard() const;
  122. inline void clear_hasmonthcard();
  123. static const int kHasMonthCardFieldNumber = 7;
  124. inline bool hasmonthcard() const;
  125. inline void set_hasmonthcard(bool value);
  126. // optional int32 repCount = 8 [default = 1];
  127. inline bool has_repcount() const;
  128. inline void clear_repcount();
  129. static const int kRepCountFieldNumber = 8;
  130. inline ::google::protobuf::int32 repcount() const;
  131. inline void set_repcount(::google::protobuf::int32 value);
  132. // optional int32 interval = 9 [default = 0];
  133. inline bool has_interval() const;
  134. inline void clear_interval();
  135. static const int kIntervalFieldNumber = 9;
  136. inline ::google::protobuf::int32 interval() const;
  137. inline void set_interval(::google::protobuf::int32 value);
  138. // optional int32 showPos = 10;
  139. inline bool has_showpos() const;
  140. inline void clear_showpos();
  141. static const int kShowPosFieldNumber = 10;
  142. inline ::google::protobuf::int32 showpos() const;
  143. inline void set_showpos(::google::protobuf::int32 value);
  144. // @@protoc_insertion_point(class_scope:client2world_protocols.packetw2c_notify)
  145. private:
  146. inline void set_has_packet_id();
  147. inline void clear_has_packet_id();
  148. inline void set_has_content();
  149. inline void clear_has_content();
  150. inline void set_has_notifytype();
  151. inline void clear_has_notifytype();
  152. inline void set_has_talkernickname();
  153. inline void clear_has_talkernickname();
  154. inline void set_has_playerid();
  155. inline void clear_has_playerid();
  156. inline void set_has_talkerviplevel();
  157. inline void clear_has_talkerviplevel();
  158. inline void set_has_hasmonthcard();
  159. inline void clear_has_hasmonthcard();
  160. inline void set_has_repcount();
  161. inline void clear_has_repcount();
  162. inline void set_has_interval();
  163. inline void clear_has_interval();
  164. inline void set_has_showpos();
  165. inline void clear_has_showpos();
  166. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  167. ::std::string* content_;
  168. int packet_id_;
  169. ::google::protobuf::int32 notifytype_;
  170. ::std::string* talkernickname_;
  171. ::google::protobuf::int32 playerid_;
  172. ::google::protobuf::int32 talkerviplevel_;
  173. bool hasmonthcard_;
  174. ::google::protobuf::int32 repcount_;
  175. ::google::protobuf::int32 interval_;
  176. ::google::protobuf::int32 showpos_;
  177. mutable int _cached_size_;
  178. ::google::protobuf::uint32 _has_bits_[(10 + 31) / 32];
  179. friend void protobuf_AddDesc_client2world_5fchat_2eproto();
  180. friend void protobuf_AssignDesc_client2world_5fchat_2eproto();
  181. friend void protobuf_ShutdownFile_client2world_5fchat_2eproto();
  182. void InitAsDefaultInstance();
  183. static packetw2c_notify* default_instance_;
  184. };
  185. // ===================================================================
  186. // ===================================================================
  187. // packetw2c_notify
  188. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_notify];
  189. inline bool packetw2c_notify::has_packet_id() const {
  190. return (_has_bits_[0] & 0x00000001u) != 0;
  191. }
  192. inline void packetw2c_notify::set_has_packet_id() {
  193. _has_bits_[0] |= 0x00000001u;
  194. }
  195. inline void packetw2c_notify::clear_has_packet_id() {
  196. _has_bits_[0] &= ~0x00000001u;
  197. }
  198. inline void packetw2c_notify::clear_packet_id() {
  199. packet_id_ = 7523;
  200. clear_has_packet_id();
  201. }
  202. inline ::client2world_protocols::e_server_msg_type packetw2c_notify::packet_id() const {
  203. return static_cast< ::client2world_protocols::e_server_msg_type >(packet_id_);
  204. }
  205. inline void packetw2c_notify::set_packet_id(::client2world_protocols::e_server_msg_type value) {
  206. assert(::client2world_protocols::e_server_msg_type_IsValid(value));
  207. set_has_packet_id();
  208. packet_id_ = value;
  209. }
  210. // optional string content = 2;
  211. inline bool packetw2c_notify::has_content() const {
  212. return (_has_bits_[0] & 0x00000002u) != 0;
  213. }
  214. inline void packetw2c_notify::set_has_content() {
  215. _has_bits_[0] |= 0x00000002u;
  216. }
  217. inline void packetw2c_notify::clear_has_content() {
  218. _has_bits_[0] &= ~0x00000002u;
  219. }
  220. inline void packetw2c_notify::clear_content() {
  221. if (content_ != &::google::protobuf::internal::kEmptyString) {
  222. content_->clear();
  223. }
  224. clear_has_content();
  225. }
  226. inline const ::std::string& packetw2c_notify::content() const {
  227. return *content_;
  228. }
  229. inline void packetw2c_notify::set_content(const ::std::string& value) {
  230. set_has_content();
  231. if (content_ == &::google::protobuf::internal::kEmptyString) {
  232. content_ = new ::std::string;
  233. }
  234. content_->assign(value);
  235. }
  236. inline void packetw2c_notify::set_content(const char* value) {
  237. set_has_content();
  238. if (content_ == &::google::protobuf::internal::kEmptyString) {
  239. content_ = new ::std::string;
  240. }
  241. content_->assign(value);
  242. }
  243. inline void packetw2c_notify::set_content(const char* value, size_t size) {
  244. set_has_content();
  245. if (content_ == &::google::protobuf::internal::kEmptyString) {
  246. content_ = new ::std::string;
  247. }
  248. content_->assign(reinterpret_cast<const char*>(value), size);
  249. }
  250. inline ::std::string* packetw2c_notify::mutable_content() {
  251. set_has_content();
  252. if (content_ == &::google::protobuf::internal::kEmptyString) {
  253. content_ = new ::std::string;
  254. }
  255. return content_;
  256. }
  257. inline ::std::string* packetw2c_notify::release_content() {
  258. clear_has_content();
  259. if (content_ == &::google::protobuf::internal::kEmptyString) {
  260. return NULL;
  261. } else {
  262. ::std::string* temp = content_;
  263. content_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  264. return temp;
  265. }
  266. }
  267. inline void packetw2c_notify::set_allocated_content(::std::string* content) {
  268. if (content_ != &::google::protobuf::internal::kEmptyString) {
  269. delete content_;
  270. }
  271. if (content) {
  272. set_has_content();
  273. content_ = content;
  274. } else {
  275. clear_has_content();
  276. content_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  277. }
  278. }
  279. // optional int32 notifyType = 3;
  280. inline bool packetw2c_notify::has_notifytype() const {
  281. return (_has_bits_[0] & 0x00000004u) != 0;
  282. }
  283. inline void packetw2c_notify::set_has_notifytype() {
  284. _has_bits_[0] |= 0x00000004u;
  285. }
  286. inline void packetw2c_notify::clear_has_notifytype() {
  287. _has_bits_[0] &= ~0x00000004u;
  288. }
  289. inline void packetw2c_notify::clear_notifytype() {
  290. notifytype_ = 0;
  291. clear_has_notifytype();
  292. }
  293. inline ::google::protobuf::int32 packetw2c_notify::notifytype() const {
  294. return notifytype_;
  295. }
  296. inline void packetw2c_notify::set_notifytype(::google::protobuf::int32 value) {
  297. set_has_notifytype();
  298. notifytype_ = value;
  299. }
  300. // optional string talkerNickName = 4;
  301. inline bool packetw2c_notify::has_talkernickname() const {
  302. return (_has_bits_[0] & 0x00000008u) != 0;
  303. }
  304. inline void packetw2c_notify::set_has_talkernickname() {
  305. _has_bits_[0] |= 0x00000008u;
  306. }
  307. inline void packetw2c_notify::clear_has_talkernickname() {
  308. _has_bits_[0] &= ~0x00000008u;
  309. }
  310. inline void packetw2c_notify::clear_talkernickname() {
  311. if (talkernickname_ != &::google::protobuf::internal::kEmptyString) {
  312. talkernickname_->clear();
  313. }
  314. clear_has_talkernickname();
  315. }
  316. inline const ::std::string& packetw2c_notify::talkernickname() const {
  317. return *talkernickname_;
  318. }
  319. inline void packetw2c_notify::set_talkernickname(const ::std::string& value) {
  320. set_has_talkernickname();
  321. if (talkernickname_ == &::google::protobuf::internal::kEmptyString) {
  322. talkernickname_ = new ::std::string;
  323. }
  324. talkernickname_->assign(value);
  325. }
  326. inline void packetw2c_notify::set_talkernickname(const char* value) {
  327. set_has_talkernickname();
  328. if (talkernickname_ == &::google::protobuf::internal::kEmptyString) {
  329. talkernickname_ = new ::std::string;
  330. }
  331. talkernickname_->assign(value);
  332. }
  333. inline void packetw2c_notify::set_talkernickname(const char* value, size_t size) {
  334. set_has_talkernickname();
  335. if (talkernickname_ == &::google::protobuf::internal::kEmptyString) {
  336. talkernickname_ = new ::std::string;
  337. }
  338. talkernickname_->assign(reinterpret_cast<const char*>(value), size);
  339. }
  340. inline ::std::string* packetw2c_notify::mutable_talkernickname() {
  341. set_has_talkernickname();
  342. if (talkernickname_ == &::google::protobuf::internal::kEmptyString) {
  343. talkernickname_ = new ::std::string;
  344. }
  345. return talkernickname_;
  346. }
  347. inline ::std::string* packetw2c_notify::release_talkernickname() {
  348. clear_has_talkernickname();
  349. if (talkernickname_ == &::google::protobuf::internal::kEmptyString) {
  350. return NULL;
  351. } else {
  352. ::std::string* temp = talkernickname_;
  353. talkernickname_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  354. return temp;
  355. }
  356. }
  357. inline void packetw2c_notify::set_allocated_talkernickname(::std::string* talkernickname) {
  358. if (talkernickname_ != &::google::protobuf::internal::kEmptyString) {
  359. delete talkernickname_;
  360. }
  361. if (talkernickname) {
  362. set_has_talkernickname();
  363. talkernickname_ = talkernickname;
  364. } else {
  365. clear_has_talkernickname();
  366. talkernickname_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  367. }
  368. }
  369. // optional int32 playerId = 5;
  370. inline bool packetw2c_notify::has_playerid() const {
  371. return (_has_bits_[0] & 0x00000010u) != 0;
  372. }
  373. inline void packetw2c_notify::set_has_playerid() {
  374. _has_bits_[0] |= 0x00000010u;
  375. }
  376. inline void packetw2c_notify::clear_has_playerid() {
  377. _has_bits_[0] &= ~0x00000010u;
  378. }
  379. inline void packetw2c_notify::clear_playerid() {
  380. playerid_ = 0;
  381. clear_has_playerid();
  382. }
  383. inline ::google::protobuf::int32 packetw2c_notify::playerid() const {
  384. return playerid_;
  385. }
  386. inline void packetw2c_notify::set_playerid(::google::protobuf::int32 value) {
  387. set_has_playerid();
  388. playerid_ = value;
  389. }
  390. // optional int32 talkerVIPLevel = 6;
  391. inline bool packetw2c_notify::has_talkerviplevel() const {
  392. return (_has_bits_[0] & 0x00000020u) != 0;
  393. }
  394. inline void packetw2c_notify::set_has_talkerviplevel() {
  395. _has_bits_[0] |= 0x00000020u;
  396. }
  397. inline void packetw2c_notify::clear_has_talkerviplevel() {
  398. _has_bits_[0] &= ~0x00000020u;
  399. }
  400. inline void packetw2c_notify::clear_talkerviplevel() {
  401. talkerviplevel_ = 0;
  402. clear_has_talkerviplevel();
  403. }
  404. inline ::google::protobuf::int32 packetw2c_notify::talkerviplevel() const {
  405. return talkerviplevel_;
  406. }
  407. inline void packetw2c_notify::set_talkerviplevel(::google::protobuf::int32 value) {
  408. set_has_talkerviplevel();
  409. talkerviplevel_ = value;
  410. }
  411. // optional bool hasMonthCard = 7;
  412. inline bool packetw2c_notify::has_hasmonthcard() const {
  413. return (_has_bits_[0] & 0x00000040u) != 0;
  414. }
  415. inline void packetw2c_notify::set_has_hasmonthcard() {
  416. _has_bits_[0] |= 0x00000040u;
  417. }
  418. inline void packetw2c_notify::clear_has_hasmonthcard() {
  419. _has_bits_[0] &= ~0x00000040u;
  420. }
  421. inline void packetw2c_notify::clear_hasmonthcard() {
  422. hasmonthcard_ = false;
  423. clear_has_hasmonthcard();
  424. }
  425. inline bool packetw2c_notify::hasmonthcard() const {
  426. return hasmonthcard_;
  427. }
  428. inline void packetw2c_notify::set_hasmonthcard(bool value) {
  429. set_has_hasmonthcard();
  430. hasmonthcard_ = value;
  431. }
  432. // optional int32 repCount = 8 [default = 1];
  433. inline bool packetw2c_notify::has_repcount() const {
  434. return (_has_bits_[0] & 0x00000080u) != 0;
  435. }
  436. inline void packetw2c_notify::set_has_repcount() {
  437. _has_bits_[0] |= 0x00000080u;
  438. }
  439. inline void packetw2c_notify::clear_has_repcount() {
  440. _has_bits_[0] &= ~0x00000080u;
  441. }
  442. inline void packetw2c_notify::clear_repcount() {
  443. repcount_ = 1;
  444. clear_has_repcount();
  445. }
  446. inline ::google::protobuf::int32 packetw2c_notify::repcount() const {
  447. return repcount_;
  448. }
  449. inline void packetw2c_notify::set_repcount(::google::protobuf::int32 value) {
  450. set_has_repcount();
  451. repcount_ = value;
  452. }
  453. // optional int32 interval = 9 [default = 0];
  454. inline bool packetw2c_notify::has_interval() const {
  455. return (_has_bits_[0] & 0x00000100u) != 0;
  456. }
  457. inline void packetw2c_notify::set_has_interval() {
  458. _has_bits_[0] |= 0x00000100u;
  459. }
  460. inline void packetw2c_notify::clear_has_interval() {
  461. _has_bits_[0] &= ~0x00000100u;
  462. }
  463. inline void packetw2c_notify::clear_interval() {
  464. interval_ = 0;
  465. clear_has_interval();
  466. }
  467. inline ::google::protobuf::int32 packetw2c_notify::interval() const {
  468. return interval_;
  469. }
  470. inline void packetw2c_notify::set_interval(::google::protobuf::int32 value) {
  471. set_has_interval();
  472. interval_ = value;
  473. }
  474. // optional int32 showPos = 10;
  475. inline bool packetw2c_notify::has_showpos() const {
  476. return (_has_bits_[0] & 0x00000200u) != 0;
  477. }
  478. inline void packetw2c_notify::set_has_showpos() {
  479. _has_bits_[0] |= 0x00000200u;
  480. }
  481. inline void packetw2c_notify::clear_has_showpos() {
  482. _has_bits_[0] &= ~0x00000200u;
  483. }
  484. inline void packetw2c_notify::clear_showpos() {
  485. showpos_ = 0;
  486. clear_has_showpos();
  487. }
  488. inline ::google::protobuf::int32 packetw2c_notify::showpos() const {
  489. return showpos_;
  490. }
  491. inline void packetw2c_notify::set_showpos(::google::protobuf::int32 value) {
  492. set_has_showpos();
  493. showpos_ = value;
  494. }
  495. // @@protoc_insertion_point(namespace_scope)
  496. } // namespace client2world_protocols
  497. #ifndef SWIG
  498. namespace google {
  499. namespace protobuf {
  500. } // namespace google
  501. } // namespace protobuf
  502. #endif // SWIG
  503. // @@protoc_insertion_point(global_scope)
  504. #endif // PROTOBUF_client2world_5fchat_2eproto__INCLUDED