client2world_notice.pb.h 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: client2world_notice.proto
  3. #ifndef PROTOBUF_client2world_5fnotice_2eproto__INCLUDED
  4. #define PROTOBUF_client2world_5fnotice_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_5fnotice_2eproto();
  29. void protobuf_AssignDesc_client2world_5fnotice_2eproto();
  30. void protobuf_ShutdownFile_client2world_5fnotice_2eproto();
  31. class packetc2w_req_notice;
  32. class NoticeInfo;
  33. class packetw2c_req_notice_result;
  34. // ===================================================================
  35. class packetc2w_req_notice : public ::google::protobuf::Message {
  36. public:
  37. packetc2w_req_notice();
  38. virtual ~packetc2w_req_notice();
  39. packetc2w_req_notice(const packetc2w_req_notice& from);
  40. inline packetc2w_req_notice& operator=(const packetc2w_req_notice& 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 packetc2w_req_notice& default_instance();
  52. void Swap(packetc2w_req_notice* other);
  53. // implements Message ----------------------------------------------
  54. packetc2w_req_notice* New() const;
  55. void CopyFrom(const ::google::protobuf::Message& from);
  56. void MergeFrom(const ::google::protobuf::Message& from);
  57. void CopyFrom(const packetc2w_req_notice& from);
  58. void MergeFrom(const packetc2w_req_notice& 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 .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_notice];
  77. inline bool has_packet_id() const;
  78. inline void clear_packet_id();
  79. static const int kPacketIdFieldNumber = 1;
  80. inline ::client2world_protocols::e_server_msg_type packet_id() const;
  81. inline void set_packet_id(::client2world_protocols::e_server_msg_type value);
  82. // optional int32 lastTime = 2;
  83. inline bool has_lasttime() const;
  84. inline void clear_lasttime();
  85. static const int kLastTimeFieldNumber = 2;
  86. inline ::google::protobuf::int32 lasttime() const;
  87. inline void set_lasttime(::google::protobuf::int32 value);
  88. // @@protoc_insertion_point(class_scope:client2world_protocols.packetc2w_req_notice)
  89. private:
  90. inline void set_has_packet_id();
  91. inline void clear_has_packet_id();
  92. inline void set_has_lasttime();
  93. inline void clear_has_lasttime();
  94. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  95. int packet_id_;
  96. ::google::protobuf::int32 lasttime_;
  97. mutable int _cached_size_;
  98. ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
  99. friend void protobuf_AddDesc_client2world_5fnotice_2eproto();
  100. friend void protobuf_AssignDesc_client2world_5fnotice_2eproto();
  101. friend void protobuf_ShutdownFile_client2world_5fnotice_2eproto();
  102. void InitAsDefaultInstance();
  103. static packetc2w_req_notice* default_instance_;
  104. };
  105. // -------------------------------------------------------------------
  106. class NoticeInfo : public ::google::protobuf::Message {
  107. public:
  108. NoticeInfo();
  109. virtual ~NoticeInfo();
  110. NoticeInfo(const NoticeInfo& from);
  111. inline NoticeInfo& operator=(const NoticeInfo& from) {
  112. CopyFrom(from);
  113. return *this;
  114. }
  115. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  116. return _unknown_fields_;
  117. }
  118. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  119. return &_unknown_fields_;
  120. }
  121. static const ::google::protobuf::Descriptor* descriptor();
  122. static const NoticeInfo& default_instance();
  123. void Swap(NoticeInfo* other);
  124. // implements Message ----------------------------------------------
  125. NoticeInfo* New() const;
  126. void CopyFrom(const ::google::protobuf::Message& from);
  127. void MergeFrom(const ::google::protobuf::Message& from);
  128. void CopyFrom(const NoticeInfo& from);
  129. void MergeFrom(const NoticeInfo& from);
  130. void Clear();
  131. bool IsInitialized() const;
  132. int ByteSize() const;
  133. bool MergePartialFromCodedStream(
  134. ::google::protobuf::io::CodedInputStream* input);
  135. void SerializeWithCachedSizes(
  136. ::google::protobuf::io::CodedOutputStream* output) const;
  137. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  138. int GetCachedSize() const { return _cached_size_; }
  139. private:
  140. void SharedCtor();
  141. void SharedDtor();
  142. void SetCachedSize(int size) const;
  143. public:
  144. ::google::protobuf::Metadata GetMetadata() const;
  145. // nested types ----------------------------------------------------
  146. // accessors -------------------------------------------------------
  147. // optional int32 genTime = 1;
  148. inline bool has_gentime() const;
  149. inline void clear_gentime();
  150. static const int kGenTimeFieldNumber = 1;
  151. inline ::google::protobuf::int32 gentime() const;
  152. inline void set_gentime(::google::protobuf::int32 value);
  153. // optional int32 deadTime = 2;
  154. inline bool has_deadtime() const;
  155. inline void clear_deadtime();
  156. static const int kDeadTimeFieldNumber = 2;
  157. inline ::google::protobuf::int32 deadtime() const;
  158. inline void set_deadtime(::google::protobuf::int32 value);
  159. // optional int32 type = 3;
  160. inline bool has_type() const;
  161. inline void clear_type();
  162. static const int kTypeFieldNumber = 3;
  163. inline ::google::protobuf::int32 type() const;
  164. inline void set_type(::google::protobuf::int32 value);
  165. // optional string title = 4;
  166. inline bool has_title() const;
  167. inline void clear_title();
  168. static const int kTitleFieldNumber = 4;
  169. inline const ::std::string& title() const;
  170. inline void set_title(const ::std::string& value);
  171. inline void set_title(const char* value);
  172. inline void set_title(const char* value, size_t size);
  173. inline ::std::string* mutable_title();
  174. inline ::std::string* release_title();
  175. inline void set_allocated_title(::std::string* title);
  176. // optional string content = 5;
  177. inline bool has_content() const;
  178. inline void clear_content();
  179. static const int kContentFieldNumber = 5;
  180. inline const ::std::string& content() const;
  181. inline void set_content(const ::std::string& value);
  182. inline void set_content(const char* value);
  183. inline void set_content(const char* value, size_t size);
  184. inline ::std::string* mutable_content();
  185. inline ::std::string* release_content();
  186. inline void set_allocated_content(::std::string* content);
  187. // optional int32 order = 6;
  188. inline bool has_order() const;
  189. inline void clear_order();
  190. static const int kOrderFieldNumber = 6;
  191. inline ::google::protobuf::int32 order() const;
  192. inline void set_order(::google::protobuf::int32 value);
  193. // @@protoc_insertion_point(class_scope:client2world_protocols.NoticeInfo)
  194. private:
  195. inline void set_has_gentime();
  196. inline void clear_has_gentime();
  197. inline void set_has_deadtime();
  198. inline void clear_has_deadtime();
  199. inline void set_has_type();
  200. inline void clear_has_type();
  201. inline void set_has_title();
  202. inline void clear_has_title();
  203. inline void set_has_content();
  204. inline void clear_has_content();
  205. inline void set_has_order();
  206. inline void clear_has_order();
  207. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  208. ::google::protobuf::int32 gentime_;
  209. ::google::protobuf::int32 deadtime_;
  210. ::std::string* title_;
  211. ::google::protobuf::int32 type_;
  212. ::google::protobuf::int32 order_;
  213. ::std::string* content_;
  214. mutable int _cached_size_;
  215. ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32];
  216. friend void protobuf_AddDesc_client2world_5fnotice_2eproto();
  217. friend void protobuf_AssignDesc_client2world_5fnotice_2eproto();
  218. friend void protobuf_ShutdownFile_client2world_5fnotice_2eproto();
  219. void InitAsDefaultInstance();
  220. static NoticeInfo* default_instance_;
  221. };
  222. // -------------------------------------------------------------------
  223. class packetw2c_req_notice_result : public ::google::protobuf::Message {
  224. public:
  225. packetw2c_req_notice_result();
  226. virtual ~packetw2c_req_notice_result();
  227. packetw2c_req_notice_result(const packetw2c_req_notice_result& from);
  228. inline packetw2c_req_notice_result& operator=(const packetw2c_req_notice_result& from) {
  229. CopyFrom(from);
  230. return *this;
  231. }
  232. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  233. return _unknown_fields_;
  234. }
  235. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  236. return &_unknown_fields_;
  237. }
  238. static const ::google::protobuf::Descriptor* descriptor();
  239. static const packetw2c_req_notice_result& default_instance();
  240. void Swap(packetw2c_req_notice_result* other);
  241. // implements Message ----------------------------------------------
  242. packetw2c_req_notice_result* New() const;
  243. void CopyFrom(const ::google::protobuf::Message& from);
  244. void MergeFrom(const ::google::protobuf::Message& from);
  245. void CopyFrom(const packetw2c_req_notice_result& from);
  246. void MergeFrom(const packetw2c_req_notice_result& from);
  247. void Clear();
  248. bool IsInitialized() const;
  249. int ByteSize() const;
  250. bool MergePartialFromCodedStream(
  251. ::google::protobuf::io::CodedInputStream* input);
  252. void SerializeWithCachedSizes(
  253. ::google::protobuf::io::CodedOutputStream* output) const;
  254. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  255. int GetCachedSize() const { return _cached_size_; }
  256. private:
  257. void SharedCtor();
  258. void SharedDtor();
  259. void SetCachedSize(int size) const;
  260. public:
  261. ::google::protobuf::Metadata GetMetadata() const;
  262. // nested types ----------------------------------------------------
  263. // accessors -------------------------------------------------------
  264. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_notice_result];
  265. inline bool has_packet_id() const;
  266. inline void clear_packet_id();
  267. static const int kPacketIdFieldNumber = 1;
  268. inline ::client2world_protocols::e_server_msg_type packet_id() const;
  269. inline void set_packet_id(::client2world_protocols::e_server_msg_type value);
  270. // repeated .client2world_protocols.NoticeInfo infoList = 2;
  271. inline int infolist_size() const;
  272. inline void clear_infolist();
  273. static const int kInfoListFieldNumber = 2;
  274. inline const ::client2world_protocols::NoticeInfo& infolist(int index) const;
  275. inline ::client2world_protocols::NoticeInfo* mutable_infolist(int index);
  276. inline ::client2world_protocols::NoticeInfo* add_infolist();
  277. inline const ::google::protobuf::RepeatedPtrField< ::client2world_protocols::NoticeInfo >&
  278. infolist() const;
  279. inline ::google::protobuf::RepeatedPtrField< ::client2world_protocols::NoticeInfo >*
  280. mutable_infolist();
  281. // optional int32 lastTime = 3;
  282. inline bool has_lasttime() const;
  283. inline void clear_lasttime();
  284. static const int kLastTimeFieldNumber = 3;
  285. inline ::google::protobuf::int32 lasttime() const;
  286. inline void set_lasttime(::google::protobuf::int32 value);
  287. // @@protoc_insertion_point(class_scope:client2world_protocols.packetw2c_req_notice_result)
  288. private:
  289. inline void set_has_packet_id();
  290. inline void clear_has_packet_id();
  291. inline void set_has_lasttime();
  292. inline void clear_has_lasttime();
  293. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  294. ::google::protobuf::RepeatedPtrField< ::client2world_protocols::NoticeInfo > infolist_;
  295. int packet_id_;
  296. ::google::protobuf::int32 lasttime_;
  297. mutable int _cached_size_;
  298. ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
  299. friend void protobuf_AddDesc_client2world_5fnotice_2eproto();
  300. friend void protobuf_AssignDesc_client2world_5fnotice_2eproto();
  301. friend void protobuf_ShutdownFile_client2world_5fnotice_2eproto();
  302. void InitAsDefaultInstance();
  303. static packetw2c_req_notice_result* default_instance_;
  304. };
  305. // ===================================================================
  306. // ===================================================================
  307. // packetc2w_req_notice
  308. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_notice];
  309. inline bool packetc2w_req_notice::has_packet_id() const {
  310. return (_has_bits_[0] & 0x00000001u) != 0;
  311. }
  312. inline void packetc2w_req_notice::set_has_packet_id() {
  313. _has_bits_[0] |= 0x00000001u;
  314. }
  315. inline void packetc2w_req_notice::clear_has_packet_id() {
  316. _has_bits_[0] &= ~0x00000001u;
  317. }
  318. inline void packetc2w_req_notice::clear_packet_id() {
  319. packet_id_ = 5038;
  320. clear_has_packet_id();
  321. }
  322. inline ::client2world_protocols::e_server_msg_type packetc2w_req_notice::packet_id() const {
  323. return static_cast< ::client2world_protocols::e_server_msg_type >(packet_id_);
  324. }
  325. inline void packetc2w_req_notice::set_packet_id(::client2world_protocols::e_server_msg_type value) {
  326. assert(::client2world_protocols::e_server_msg_type_IsValid(value));
  327. set_has_packet_id();
  328. packet_id_ = value;
  329. }
  330. // optional int32 lastTime = 2;
  331. inline bool packetc2w_req_notice::has_lasttime() const {
  332. return (_has_bits_[0] & 0x00000002u) != 0;
  333. }
  334. inline void packetc2w_req_notice::set_has_lasttime() {
  335. _has_bits_[0] |= 0x00000002u;
  336. }
  337. inline void packetc2w_req_notice::clear_has_lasttime() {
  338. _has_bits_[0] &= ~0x00000002u;
  339. }
  340. inline void packetc2w_req_notice::clear_lasttime() {
  341. lasttime_ = 0;
  342. clear_has_lasttime();
  343. }
  344. inline ::google::protobuf::int32 packetc2w_req_notice::lasttime() const {
  345. return lasttime_;
  346. }
  347. inline void packetc2w_req_notice::set_lasttime(::google::protobuf::int32 value) {
  348. set_has_lasttime();
  349. lasttime_ = value;
  350. }
  351. // -------------------------------------------------------------------
  352. // NoticeInfo
  353. // optional int32 genTime = 1;
  354. inline bool NoticeInfo::has_gentime() const {
  355. return (_has_bits_[0] & 0x00000001u) != 0;
  356. }
  357. inline void NoticeInfo::set_has_gentime() {
  358. _has_bits_[0] |= 0x00000001u;
  359. }
  360. inline void NoticeInfo::clear_has_gentime() {
  361. _has_bits_[0] &= ~0x00000001u;
  362. }
  363. inline void NoticeInfo::clear_gentime() {
  364. gentime_ = 0;
  365. clear_has_gentime();
  366. }
  367. inline ::google::protobuf::int32 NoticeInfo::gentime() const {
  368. return gentime_;
  369. }
  370. inline void NoticeInfo::set_gentime(::google::protobuf::int32 value) {
  371. set_has_gentime();
  372. gentime_ = value;
  373. }
  374. // optional int32 deadTime = 2;
  375. inline bool NoticeInfo::has_deadtime() const {
  376. return (_has_bits_[0] & 0x00000002u) != 0;
  377. }
  378. inline void NoticeInfo::set_has_deadtime() {
  379. _has_bits_[0] |= 0x00000002u;
  380. }
  381. inline void NoticeInfo::clear_has_deadtime() {
  382. _has_bits_[0] &= ~0x00000002u;
  383. }
  384. inline void NoticeInfo::clear_deadtime() {
  385. deadtime_ = 0;
  386. clear_has_deadtime();
  387. }
  388. inline ::google::protobuf::int32 NoticeInfo::deadtime() const {
  389. return deadtime_;
  390. }
  391. inline void NoticeInfo::set_deadtime(::google::protobuf::int32 value) {
  392. set_has_deadtime();
  393. deadtime_ = value;
  394. }
  395. // optional int32 type = 3;
  396. inline bool NoticeInfo::has_type() const {
  397. return (_has_bits_[0] & 0x00000004u) != 0;
  398. }
  399. inline void NoticeInfo::set_has_type() {
  400. _has_bits_[0] |= 0x00000004u;
  401. }
  402. inline void NoticeInfo::clear_has_type() {
  403. _has_bits_[0] &= ~0x00000004u;
  404. }
  405. inline void NoticeInfo::clear_type() {
  406. type_ = 0;
  407. clear_has_type();
  408. }
  409. inline ::google::protobuf::int32 NoticeInfo::type() const {
  410. return type_;
  411. }
  412. inline void NoticeInfo::set_type(::google::protobuf::int32 value) {
  413. set_has_type();
  414. type_ = value;
  415. }
  416. // optional string title = 4;
  417. inline bool NoticeInfo::has_title() const {
  418. return (_has_bits_[0] & 0x00000008u) != 0;
  419. }
  420. inline void NoticeInfo::set_has_title() {
  421. _has_bits_[0] |= 0x00000008u;
  422. }
  423. inline void NoticeInfo::clear_has_title() {
  424. _has_bits_[0] &= ~0x00000008u;
  425. }
  426. inline void NoticeInfo::clear_title() {
  427. if (title_ != &::google::protobuf::internal::kEmptyString) {
  428. title_->clear();
  429. }
  430. clear_has_title();
  431. }
  432. inline const ::std::string& NoticeInfo::title() const {
  433. return *title_;
  434. }
  435. inline void NoticeInfo::set_title(const ::std::string& value) {
  436. set_has_title();
  437. if (title_ == &::google::protobuf::internal::kEmptyString) {
  438. title_ = new ::std::string;
  439. }
  440. title_->assign(value);
  441. }
  442. inline void NoticeInfo::set_title(const char* value) {
  443. set_has_title();
  444. if (title_ == &::google::protobuf::internal::kEmptyString) {
  445. title_ = new ::std::string;
  446. }
  447. title_->assign(value);
  448. }
  449. inline void NoticeInfo::set_title(const char* value, size_t size) {
  450. set_has_title();
  451. if (title_ == &::google::protobuf::internal::kEmptyString) {
  452. title_ = new ::std::string;
  453. }
  454. title_->assign(reinterpret_cast<const char*>(value), size);
  455. }
  456. inline ::std::string* NoticeInfo::mutable_title() {
  457. set_has_title();
  458. if (title_ == &::google::protobuf::internal::kEmptyString) {
  459. title_ = new ::std::string;
  460. }
  461. return title_;
  462. }
  463. inline ::std::string* NoticeInfo::release_title() {
  464. clear_has_title();
  465. if (title_ == &::google::protobuf::internal::kEmptyString) {
  466. return NULL;
  467. } else {
  468. ::std::string* temp = title_;
  469. title_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  470. return temp;
  471. }
  472. }
  473. inline void NoticeInfo::set_allocated_title(::std::string* title) {
  474. if (title_ != &::google::protobuf::internal::kEmptyString) {
  475. delete title_;
  476. }
  477. if (title) {
  478. set_has_title();
  479. title_ = title;
  480. } else {
  481. clear_has_title();
  482. title_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  483. }
  484. }
  485. // optional string content = 5;
  486. inline bool NoticeInfo::has_content() const {
  487. return (_has_bits_[0] & 0x00000010u) != 0;
  488. }
  489. inline void NoticeInfo::set_has_content() {
  490. _has_bits_[0] |= 0x00000010u;
  491. }
  492. inline void NoticeInfo::clear_has_content() {
  493. _has_bits_[0] &= ~0x00000010u;
  494. }
  495. inline void NoticeInfo::clear_content() {
  496. if (content_ != &::google::protobuf::internal::kEmptyString) {
  497. content_->clear();
  498. }
  499. clear_has_content();
  500. }
  501. inline const ::std::string& NoticeInfo::content() const {
  502. return *content_;
  503. }
  504. inline void NoticeInfo::set_content(const ::std::string& value) {
  505. set_has_content();
  506. if (content_ == &::google::protobuf::internal::kEmptyString) {
  507. content_ = new ::std::string;
  508. }
  509. content_->assign(value);
  510. }
  511. inline void NoticeInfo::set_content(const char* value) {
  512. set_has_content();
  513. if (content_ == &::google::protobuf::internal::kEmptyString) {
  514. content_ = new ::std::string;
  515. }
  516. content_->assign(value);
  517. }
  518. inline void NoticeInfo::set_content(const char* value, size_t size) {
  519. set_has_content();
  520. if (content_ == &::google::protobuf::internal::kEmptyString) {
  521. content_ = new ::std::string;
  522. }
  523. content_->assign(reinterpret_cast<const char*>(value), size);
  524. }
  525. inline ::std::string* NoticeInfo::mutable_content() {
  526. set_has_content();
  527. if (content_ == &::google::protobuf::internal::kEmptyString) {
  528. content_ = new ::std::string;
  529. }
  530. return content_;
  531. }
  532. inline ::std::string* NoticeInfo::release_content() {
  533. clear_has_content();
  534. if (content_ == &::google::protobuf::internal::kEmptyString) {
  535. return NULL;
  536. } else {
  537. ::std::string* temp = content_;
  538. content_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  539. return temp;
  540. }
  541. }
  542. inline void NoticeInfo::set_allocated_content(::std::string* content) {
  543. if (content_ != &::google::protobuf::internal::kEmptyString) {
  544. delete content_;
  545. }
  546. if (content) {
  547. set_has_content();
  548. content_ = content;
  549. } else {
  550. clear_has_content();
  551. content_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  552. }
  553. }
  554. // optional int32 order = 6;
  555. inline bool NoticeInfo::has_order() const {
  556. return (_has_bits_[0] & 0x00000020u) != 0;
  557. }
  558. inline void NoticeInfo::set_has_order() {
  559. _has_bits_[0] |= 0x00000020u;
  560. }
  561. inline void NoticeInfo::clear_has_order() {
  562. _has_bits_[0] &= ~0x00000020u;
  563. }
  564. inline void NoticeInfo::clear_order() {
  565. order_ = 0;
  566. clear_has_order();
  567. }
  568. inline ::google::protobuf::int32 NoticeInfo::order() const {
  569. return order_;
  570. }
  571. inline void NoticeInfo::set_order(::google::protobuf::int32 value) {
  572. set_has_order();
  573. order_ = value;
  574. }
  575. // -------------------------------------------------------------------
  576. // packetw2c_req_notice_result
  577. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_notice_result];
  578. inline bool packetw2c_req_notice_result::has_packet_id() const {
  579. return (_has_bits_[0] & 0x00000001u) != 0;
  580. }
  581. inline void packetw2c_req_notice_result::set_has_packet_id() {
  582. _has_bits_[0] |= 0x00000001u;
  583. }
  584. inline void packetw2c_req_notice_result::clear_has_packet_id() {
  585. _has_bits_[0] &= ~0x00000001u;
  586. }
  587. inline void packetw2c_req_notice_result::clear_packet_id() {
  588. packet_id_ = 7540;
  589. clear_has_packet_id();
  590. }
  591. inline ::client2world_protocols::e_server_msg_type packetw2c_req_notice_result::packet_id() const {
  592. return static_cast< ::client2world_protocols::e_server_msg_type >(packet_id_);
  593. }
  594. inline void packetw2c_req_notice_result::set_packet_id(::client2world_protocols::e_server_msg_type value) {
  595. assert(::client2world_protocols::e_server_msg_type_IsValid(value));
  596. set_has_packet_id();
  597. packet_id_ = value;
  598. }
  599. // repeated .client2world_protocols.NoticeInfo infoList = 2;
  600. inline int packetw2c_req_notice_result::infolist_size() const {
  601. return infolist_.size();
  602. }
  603. inline void packetw2c_req_notice_result::clear_infolist() {
  604. infolist_.Clear();
  605. }
  606. inline const ::client2world_protocols::NoticeInfo& packetw2c_req_notice_result::infolist(int index) const {
  607. return infolist_.Get(index);
  608. }
  609. inline ::client2world_protocols::NoticeInfo* packetw2c_req_notice_result::mutable_infolist(int index) {
  610. return infolist_.Mutable(index);
  611. }
  612. inline ::client2world_protocols::NoticeInfo* packetw2c_req_notice_result::add_infolist() {
  613. return infolist_.Add();
  614. }
  615. inline const ::google::protobuf::RepeatedPtrField< ::client2world_protocols::NoticeInfo >&
  616. packetw2c_req_notice_result::infolist() const {
  617. return infolist_;
  618. }
  619. inline ::google::protobuf::RepeatedPtrField< ::client2world_protocols::NoticeInfo >*
  620. packetw2c_req_notice_result::mutable_infolist() {
  621. return &infolist_;
  622. }
  623. // optional int32 lastTime = 3;
  624. inline bool packetw2c_req_notice_result::has_lasttime() const {
  625. return (_has_bits_[0] & 0x00000004u) != 0;
  626. }
  627. inline void packetw2c_req_notice_result::set_has_lasttime() {
  628. _has_bits_[0] |= 0x00000004u;
  629. }
  630. inline void packetw2c_req_notice_result::clear_has_lasttime() {
  631. _has_bits_[0] &= ~0x00000004u;
  632. }
  633. inline void packetw2c_req_notice_result::clear_lasttime() {
  634. lasttime_ = 0;
  635. clear_has_lasttime();
  636. }
  637. inline ::google::protobuf::int32 packetw2c_req_notice_result::lasttime() const {
  638. return lasttime_;
  639. }
  640. inline void packetw2c_req_notice_result::set_lasttime(::google::protobuf::int32 value) {
  641. set_has_lasttime();
  642. lasttime_ = value;
  643. }
  644. // @@protoc_insertion_point(namespace_scope)
  645. } // namespace client2world_protocols
  646. #ifndef SWIG
  647. namespace google {
  648. namespace protobuf {
  649. } // namespace google
  650. } // namespace protobuf
  651. #endif // SWIG
  652. // @@protoc_insertion_point(global_scope)
  653. #endif // PROTOBUF_client2world_5fnotice_2eproto__INCLUDED