client2world_mail.pb.h 103 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: client2world_mail.proto
  3. #ifndef PROTOBUF_client2world_5fmail_2eproto__INCLUDED
  4. #define PROTOBUF_client2world_5fmail_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_5fmail_2eproto();
  29. void protobuf_AssignDesc_client2world_5fmail_2eproto();
  30. void protobuf_ShutdownFile_client2world_5fmail_2eproto();
  31. class packetc2w_get_mails;
  32. class mail_info;
  33. class packetw2c_get_mails_result;
  34. class packetc2w_recv_mail_gifts;
  35. class packetw2c_recv_mail_gifts_result;
  36. class packetc2w_remove_mail;
  37. class packetw2c_remove_mail_result;
  38. class packetw2c_accept_gift_notify;
  39. class packetc2w_req_send_mail_log;
  40. class SendMailLogInfo;
  41. class packetw2c_req_send_mail_log_result;
  42. class packetc2w_remove_mail_log;
  43. class packetw2c_remove_mail_log_result;
  44. // ===================================================================
  45. class packetc2w_get_mails : public ::google::protobuf::Message {
  46. public:
  47. packetc2w_get_mails();
  48. virtual ~packetc2w_get_mails();
  49. packetc2w_get_mails(const packetc2w_get_mails& from);
  50. inline packetc2w_get_mails& operator=(const packetc2w_get_mails& from) {
  51. CopyFrom(from);
  52. return *this;
  53. }
  54. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  55. return _unknown_fields_;
  56. }
  57. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  58. return &_unknown_fields_;
  59. }
  60. static const ::google::protobuf::Descriptor* descriptor();
  61. static const packetc2w_get_mails& default_instance();
  62. void Swap(packetc2w_get_mails* other);
  63. // implements Message ----------------------------------------------
  64. packetc2w_get_mails* New() const;
  65. void CopyFrom(const ::google::protobuf::Message& from);
  66. void MergeFrom(const ::google::protobuf::Message& from);
  67. void CopyFrom(const packetc2w_get_mails& from);
  68. void MergeFrom(const packetc2w_get_mails& from);
  69. void Clear();
  70. bool IsInitialized() const;
  71. int ByteSize() const;
  72. bool MergePartialFromCodedStream(
  73. ::google::protobuf::io::CodedInputStream* input);
  74. void SerializeWithCachedSizes(
  75. ::google::protobuf::io::CodedOutputStream* output) const;
  76. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  77. int GetCachedSize() const { return _cached_size_; }
  78. private:
  79. void SharedCtor();
  80. void SharedDtor();
  81. void SetCachedSize(int size) const;
  82. public:
  83. ::google::protobuf::Metadata GetMetadata() const;
  84. // nested types ----------------------------------------------------
  85. // accessors -------------------------------------------------------
  86. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_get_mails];
  87. inline bool has_packet_id() const;
  88. inline void clear_packet_id();
  89. static const int kPacketIdFieldNumber = 1;
  90. inline ::client2world_protocols::e_server_msg_type packet_id() const;
  91. inline void set_packet_id(::client2world_protocols::e_server_msg_type value);
  92. // optional int32 lastTime = 2;
  93. inline bool has_lasttime() const;
  94. inline void clear_lasttime();
  95. static const int kLastTimeFieldNumber = 2;
  96. inline ::google::protobuf::int32 lasttime() const;
  97. inline void set_lasttime(::google::protobuf::int32 value);
  98. // @@protoc_insertion_point(class_scope:client2world_protocols.packetc2w_get_mails)
  99. private:
  100. inline void set_has_packet_id();
  101. inline void clear_has_packet_id();
  102. inline void set_has_lasttime();
  103. inline void clear_has_lasttime();
  104. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  105. int packet_id_;
  106. ::google::protobuf::int32 lasttime_;
  107. mutable int _cached_size_;
  108. ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
  109. friend void protobuf_AddDesc_client2world_5fmail_2eproto();
  110. friend void protobuf_AssignDesc_client2world_5fmail_2eproto();
  111. friend void protobuf_ShutdownFile_client2world_5fmail_2eproto();
  112. void InitAsDefaultInstance();
  113. static packetc2w_get_mails* default_instance_;
  114. };
  115. // -------------------------------------------------------------------
  116. class mail_info : public ::google::protobuf::Message {
  117. public:
  118. mail_info();
  119. virtual ~mail_info();
  120. mail_info(const mail_info& from);
  121. inline mail_info& operator=(const mail_info& from) {
  122. CopyFrom(from);
  123. return *this;
  124. }
  125. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  126. return _unknown_fields_;
  127. }
  128. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  129. return &_unknown_fields_;
  130. }
  131. static const ::google::protobuf::Descriptor* descriptor();
  132. static const mail_info& default_instance();
  133. void Swap(mail_info* other);
  134. // implements Message ----------------------------------------------
  135. mail_info* New() const;
  136. void CopyFrom(const ::google::protobuf::Message& from);
  137. void MergeFrom(const ::google::protobuf::Message& from);
  138. void CopyFrom(const mail_info& from);
  139. void MergeFrom(const mail_info& from);
  140. void Clear();
  141. bool IsInitialized() const;
  142. int ByteSize() const;
  143. bool MergePartialFromCodedStream(
  144. ::google::protobuf::io::CodedInputStream* input);
  145. void SerializeWithCachedSizes(
  146. ::google::protobuf::io::CodedOutputStream* output) const;
  147. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  148. int GetCachedSize() const { return _cached_size_; }
  149. private:
  150. void SharedCtor();
  151. void SharedDtor();
  152. void SetCachedSize(int size) const;
  153. public:
  154. ::google::protobuf::Metadata GetMetadata() const;
  155. // nested types ----------------------------------------------------
  156. // accessors -------------------------------------------------------
  157. // optional string mailId = 1;
  158. inline bool has_mailid() const;
  159. inline void clear_mailid();
  160. static const int kMailIdFieldNumber = 1;
  161. inline const ::std::string& mailid() const;
  162. inline void set_mailid(const ::std::string& value);
  163. inline void set_mailid(const char* value);
  164. inline void set_mailid(const char* value, size_t size);
  165. inline ::std::string* mutable_mailid();
  166. inline ::std::string* release_mailid();
  167. inline void set_allocated_mailid(::std::string* mailid);
  168. // optional int32 time = 2;
  169. inline bool has_time() const;
  170. inline void clear_time();
  171. static const int kTimeFieldNumber = 2;
  172. inline ::google::protobuf::int32 time() const;
  173. inline void set_time(::google::protobuf::int32 value);
  174. // optional string title = 3;
  175. inline bool has_title() const;
  176. inline void clear_title();
  177. static const int kTitleFieldNumber = 3;
  178. inline const ::std::string& title() const;
  179. inline void set_title(const ::std::string& value);
  180. inline void set_title(const char* value);
  181. inline void set_title(const char* value, size_t size);
  182. inline ::std::string* mutable_title();
  183. inline ::std::string* release_title();
  184. inline void set_allocated_title(::std::string* title);
  185. // optional string sender = 4;
  186. inline bool has_sender() const;
  187. inline void clear_sender();
  188. static const int kSenderFieldNumber = 4;
  189. inline const ::std::string& sender() const;
  190. inline void set_sender(const ::std::string& value);
  191. inline void set_sender(const char* value);
  192. inline void set_sender(const char* value, size_t size);
  193. inline ::std::string* mutable_sender();
  194. inline ::std::string* release_sender();
  195. inline void set_allocated_sender(::std::string* sender);
  196. // optional string content = 5;
  197. inline bool has_content() const;
  198. inline void clear_content();
  199. static const int kContentFieldNumber = 5;
  200. inline const ::std::string& content() const;
  201. inline void set_content(const ::std::string& value);
  202. inline void set_content(const char* value);
  203. inline void set_content(const char* value, size_t size);
  204. inline ::std::string* mutable_content();
  205. inline ::std::string* release_content();
  206. inline void set_allocated_content(::std::string* content);
  207. // optional bool isRecvive = 6;
  208. inline bool has_isrecvive() const;
  209. inline void clear_isrecvive();
  210. static const int kIsRecviveFieldNumber = 6;
  211. inline bool isrecvive() const;
  212. inline void set_isrecvive(bool value);
  213. // repeated .msg_info_def.msg_gift gifts = 7;
  214. inline int gifts_size() const;
  215. inline void clear_gifts();
  216. static const int kGiftsFieldNumber = 7;
  217. inline const ::msg_info_def::msg_gift& gifts(int index) const;
  218. inline ::msg_info_def::msg_gift* mutable_gifts(int index);
  219. inline ::msg_info_def::msg_gift* add_gifts();
  220. inline const ::google::protobuf::RepeatedPtrField< ::msg_info_def::msg_gift >&
  221. gifts() const;
  222. inline ::google::protobuf::RepeatedPtrField< ::msg_info_def::msg_gift >*
  223. mutable_gifts();
  224. // optional int32 senderId = 8;
  225. inline bool has_senderid() const;
  226. inline void clear_senderid();
  227. static const int kSenderIdFieldNumber = 8;
  228. inline ::google::protobuf::int32 senderid() const;
  229. inline void set_senderid(::google::protobuf::int32 value);
  230. // @@protoc_insertion_point(class_scope:client2world_protocols.mail_info)
  231. private:
  232. inline void set_has_mailid();
  233. inline void clear_has_mailid();
  234. inline void set_has_time();
  235. inline void clear_has_time();
  236. inline void set_has_title();
  237. inline void clear_has_title();
  238. inline void set_has_sender();
  239. inline void clear_has_sender();
  240. inline void set_has_content();
  241. inline void clear_has_content();
  242. inline void set_has_isrecvive();
  243. inline void clear_has_isrecvive();
  244. inline void set_has_senderid();
  245. inline void clear_has_senderid();
  246. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  247. ::std::string* mailid_;
  248. ::std::string* title_;
  249. ::std::string* sender_;
  250. ::google::protobuf::int32 time_;
  251. bool isrecvive_;
  252. ::std::string* content_;
  253. ::google::protobuf::RepeatedPtrField< ::msg_info_def::msg_gift > gifts_;
  254. ::google::protobuf::int32 senderid_;
  255. mutable int _cached_size_;
  256. ::google::protobuf::uint32 _has_bits_[(8 + 31) / 32];
  257. friend void protobuf_AddDesc_client2world_5fmail_2eproto();
  258. friend void protobuf_AssignDesc_client2world_5fmail_2eproto();
  259. friend void protobuf_ShutdownFile_client2world_5fmail_2eproto();
  260. void InitAsDefaultInstance();
  261. static mail_info* default_instance_;
  262. };
  263. // -------------------------------------------------------------------
  264. class packetw2c_get_mails_result : public ::google::protobuf::Message {
  265. public:
  266. packetw2c_get_mails_result();
  267. virtual ~packetw2c_get_mails_result();
  268. packetw2c_get_mails_result(const packetw2c_get_mails_result& from);
  269. inline packetw2c_get_mails_result& operator=(const packetw2c_get_mails_result& from) {
  270. CopyFrom(from);
  271. return *this;
  272. }
  273. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  274. return _unknown_fields_;
  275. }
  276. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  277. return &_unknown_fields_;
  278. }
  279. static const ::google::protobuf::Descriptor* descriptor();
  280. static const packetw2c_get_mails_result& default_instance();
  281. void Swap(packetw2c_get_mails_result* other);
  282. // implements Message ----------------------------------------------
  283. packetw2c_get_mails_result* New() const;
  284. void CopyFrom(const ::google::protobuf::Message& from);
  285. void MergeFrom(const ::google::protobuf::Message& from);
  286. void CopyFrom(const packetw2c_get_mails_result& from);
  287. void MergeFrom(const packetw2c_get_mails_result& from);
  288. void Clear();
  289. bool IsInitialized() const;
  290. int ByteSize() const;
  291. bool MergePartialFromCodedStream(
  292. ::google::protobuf::io::CodedInputStream* input);
  293. void SerializeWithCachedSizes(
  294. ::google::protobuf::io::CodedOutputStream* output) const;
  295. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  296. int GetCachedSize() const { return _cached_size_; }
  297. private:
  298. void SharedCtor();
  299. void SharedDtor();
  300. void SetCachedSize(int size) const;
  301. public:
  302. ::google::protobuf::Metadata GetMetadata() const;
  303. // nested types ----------------------------------------------------
  304. // accessors -------------------------------------------------------
  305. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_get_mails_result];
  306. inline bool has_packet_id() const;
  307. inline void clear_packet_id();
  308. static const int kPacketIdFieldNumber = 1;
  309. inline ::client2world_protocols::e_server_msg_type packet_id() const;
  310. inline void set_packet_id(::client2world_protocols::e_server_msg_type value);
  311. // optional int32 lastTime = 2;
  312. inline bool has_lasttime() const;
  313. inline void clear_lasttime();
  314. static const int kLastTimeFieldNumber = 2;
  315. inline ::google::protobuf::int32 lasttime() const;
  316. inline void set_lasttime(::google::protobuf::int32 value);
  317. // repeated .client2world_protocols.mail_info mails = 3;
  318. inline int mails_size() const;
  319. inline void clear_mails();
  320. static const int kMailsFieldNumber = 3;
  321. inline const ::client2world_protocols::mail_info& mails(int index) const;
  322. inline ::client2world_protocols::mail_info* mutable_mails(int index);
  323. inline ::client2world_protocols::mail_info* add_mails();
  324. inline const ::google::protobuf::RepeatedPtrField< ::client2world_protocols::mail_info >&
  325. mails() const;
  326. inline ::google::protobuf::RepeatedPtrField< ::client2world_protocols::mail_info >*
  327. mutable_mails();
  328. // @@protoc_insertion_point(class_scope:client2world_protocols.packetw2c_get_mails_result)
  329. private:
  330. inline void set_has_packet_id();
  331. inline void clear_has_packet_id();
  332. inline void set_has_lasttime();
  333. inline void clear_has_lasttime();
  334. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  335. int packet_id_;
  336. ::google::protobuf::int32 lasttime_;
  337. ::google::protobuf::RepeatedPtrField< ::client2world_protocols::mail_info > mails_;
  338. mutable int _cached_size_;
  339. ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
  340. friend void protobuf_AddDesc_client2world_5fmail_2eproto();
  341. friend void protobuf_AssignDesc_client2world_5fmail_2eproto();
  342. friend void protobuf_ShutdownFile_client2world_5fmail_2eproto();
  343. void InitAsDefaultInstance();
  344. static packetw2c_get_mails_result* default_instance_;
  345. };
  346. // -------------------------------------------------------------------
  347. class packetc2w_recv_mail_gifts : public ::google::protobuf::Message {
  348. public:
  349. packetc2w_recv_mail_gifts();
  350. virtual ~packetc2w_recv_mail_gifts();
  351. packetc2w_recv_mail_gifts(const packetc2w_recv_mail_gifts& from);
  352. inline packetc2w_recv_mail_gifts& operator=(const packetc2w_recv_mail_gifts& from) {
  353. CopyFrom(from);
  354. return *this;
  355. }
  356. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  357. return _unknown_fields_;
  358. }
  359. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  360. return &_unknown_fields_;
  361. }
  362. static const ::google::protobuf::Descriptor* descriptor();
  363. static const packetc2w_recv_mail_gifts& default_instance();
  364. void Swap(packetc2w_recv_mail_gifts* other);
  365. // implements Message ----------------------------------------------
  366. packetc2w_recv_mail_gifts* New() const;
  367. void CopyFrom(const ::google::protobuf::Message& from);
  368. void MergeFrom(const ::google::protobuf::Message& from);
  369. void CopyFrom(const packetc2w_recv_mail_gifts& from);
  370. void MergeFrom(const packetc2w_recv_mail_gifts& from);
  371. void Clear();
  372. bool IsInitialized() const;
  373. int ByteSize() const;
  374. bool MergePartialFromCodedStream(
  375. ::google::protobuf::io::CodedInputStream* input);
  376. void SerializeWithCachedSizes(
  377. ::google::protobuf::io::CodedOutputStream* output) const;
  378. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  379. int GetCachedSize() const { return _cached_size_; }
  380. private:
  381. void SharedCtor();
  382. void SharedDtor();
  383. void SetCachedSize(int size) const;
  384. public:
  385. ::google::protobuf::Metadata GetMetadata() const;
  386. // nested types ----------------------------------------------------
  387. // accessors -------------------------------------------------------
  388. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_recv_mail_gifts];
  389. inline bool has_packet_id() const;
  390. inline void clear_packet_id();
  391. static const int kPacketIdFieldNumber = 1;
  392. inline ::client2world_protocols::e_server_msg_type packet_id() const;
  393. inline void set_packet_id(::client2world_protocols::e_server_msg_type value);
  394. // optional string mailId = 2;
  395. inline bool has_mailid() const;
  396. inline void clear_mailid();
  397. static const int kMailIdFieldNumber = 2;
  398. inline const ::std::string& mailid() const;
  399. inline void set_mailid(const ::std::string& value);
  400. inline void set_mailid(const char* value);
  401. inline void set_mailid(const char* value, size_t size);
  402. inline ::std::string* mutable_mailid();
  403. inline ::std::string* release_mailid();
  404. inline void set_allocated_mailid(::std::string* mailid);
  405. // @@protoc_insertion_point(class_scope:client2world_protocols.packetc2w_recv_mail_gifts)
  406. private:
  407. inline void set_has_packet_id();
  408. inline void clear_has_packet_id();
  409. inline void set_has_mailid();
  410. inline void clear_has_mailid();
  411. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  412. ::std::string* mailid_;
  413. int packet_id_;
  414. mutable int _cached_size_;
  415. ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
  416. friend void protobuf_AddDesc_client2world_5fmail_2eproto();
  417. friend void protobuf_AssignDesc_client2world_5fmail_2eproto();
  418. friend void protobuf_ShutdownFile_client2world_5fmail_2eproto();
  419. void InitAsDefaultInstance();
  420. static packetc2w_recv_mail_gifts* default_instance_;
  421. };
  422. // -------------------------------------------------------------------
  423. class packetw2c_recv_mail_gifts_result : public ::google::protobuf::Message {
  424. public:
  425. packetw2c_recv_mail_gifts_result();
  426. virtual ~packetw2c_recv_mail_gifts_result();
  427. packetw2c_recv_mail_gifts_result(const packetw2c_recv_mail_gifts_result& from);
  428. inline packetw2c_recv_mail_gifts_result& operator=(const packetw2c_recv_mail_gifts_result& from) {
  429. CopyFrom(from);
  430. return *this;
  431. }
  432. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  433. return _unknown_fields_;
  434. }
  435. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  436. return &_unknown_fields_;
  437. }
  438. static const ::google::protobuf::Descriptor* descriptor();
  439. static const packetw2c_recv_mail_gifts_result& default_instance();
  440. void Swap(packetw2c_recv_mail_gifts_result* other);
  441. // implements Message ----------------------------------------------
  442. packetw2c_recv_mail_gifts_result* New() const;
  443. void CopyFrom(const ::google::protobuf::Message& from);
  444. void MergeFrom(const ::google::protobuf::Message& from);
  445. void CopyFrom(const packetw2c_recv_mail_gifts_result& from);
  446. void MergeFrom(const packetw2c_recv_mail_gifts_result& from);
  447. void Clear();
  448. bool IsInitialized() const;
  449. int ByteSize() const;
  450. bool MergePartialFromCodedStream(
  451. ::google::protobuf::io::CodedInputStream* input);
  452. void SerializeWithCachedSizes(
  453. ::google::protobuf::io::CodedOutputStream* output) const;
  454. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  455. int GetCachedSize() const { return _cached_size_; }
  456. private:
  457. void SharedCtor();
  458. void SharedDtor();
  459. void SetCachedSize(int size) const;
  460. public:
  461. ::google::protobuf::Metadata GetMetadata() const;
  462. // nested types ----------------------------------------------------
  463. // accessors -------------------------------------------------------
  464. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_recv_mail_gifts_result];
  465. inline bool has_packet_id() const;
  466. inline void clear_packet_id();
  467. static const int kPacketIdFieldNumber = 1;
  468. inline ::client2world_protocols::e_server_msg_type packet_id() const;
  469. inline void set_packet_id(::client2world_protocols::e_server_msg_type value);
  470. // optional string mailId = 2;
  471. inline bool has_mailid() const;
  472. inline void clear_mailid();
  473. static const int kMailIdFieldNumber = 2;
  474. inline const ::std::string& mailid() const;
  475. inline void set_mailid(const ::std::string& value);
  476. inline void set_mailid(const char* value);
  477. inline void set_mailid(const char* value, size_t size);
  478. inline ::std::string* mutable_mailid();
  479. inline ::std::string* release_mailid();
  480. inline void set_allocated_mailid(::std::string* mailid);
  481. // optional int32 result = 3;
  482. inline bool has_result() const;
  483. inline void clear_result();
  484. static const int kResultFieldNumber = 3;
  485. inline ::google::protobuf::int32 result() const;
  486. inline void set_result(::google::protobuf::int32 value);
  487. // @@protoc_insertion_point(class_scope:client2world_protocols.packetw2c_recv_mail_gifts_result)
  488. private:
  489. inline void set_has_packet_id();
  490. inline void clear_has_packet_id();
  491. inline void set_has_mailid();
  492. inline void clear_has_mailid();
  493. inline void set_has_result();
  494. inline void clear_has_result();
  495. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  496. ::std::string* mailid_;
  497. int packet_id_;
  498. ::google::protobuf::int32 result_;
  499. mutable int _cached_size_;
  500. ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
  501. friend void protobuf_AddDesc_client2world_5fmail_2eproto();
  502. friend void protobuf_AssignDesc_client2world_5fmail_2eproto();
  503. friend void protobuf_ShutdownFile_client2world_5fmail_2eproto();
  504. void InitAsDefaultInstance();
  505. static packetw2c_recv_mail_gifts_result* default_instance_;
  506. };
  507. // -------------------------------------------------------------------
  508. class packetc2w_remove_mail : public ::google::protobuf::Message {
  509. public:
  510. packetc2w_remove_mail();
  511. virtual ~packetc2w_remove_mail();
  512. packetc2w_remove_mail(const packetc2w_remove_mail& from);
  513. inline packetc2w_remove_mail& operator=(const packetc2w_remove_mail& from) {
  514. CopyFrom(from);
  515. return *this;
  516. }
  517. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  518. return _unknown_fields_;
  519. }
  520. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  521. return &_unknown_fields_;
  522. }
  523. static const ::google::protobuf::Descriptor* descriptor();
  524. static const packetc2w_remove_mail& default_instance();
  525. void Swap(packetc2w_remove_mail* other);
  526. // implements Message ----------------------------------------------
  527. packetc2w_remove_mail* New() const;
  528. void CopyFrom(const ::google::protobuf::Message& from);
  529. void MergeFrom(const ::google::protobuf::Message& from);
  530. void CopyFrom(const packetc2w_remove_mail& from);
  531. void MergeFrom(const packetc2w_remove_mail& from);
  532. void Clear();
  533. bool IsInitialized() const;
  534. int ByteSize() const;
  535. bool MergePartialFromCodedStream(
  536. ::google::protobuf::io::CodedInputStream* input);
  537. void SerializeWithCachedSizes(
  538. ::google::protobuf::io::CodedOutputStream* output) const;
  539. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  540. int GetCachedSize() const { return _cached_size_; }
  541. private:
  542. void SharedCtor();
  543. void SharedDtor();
  544. void SetCachedSize(int size) const;
  545. public:
  546. ::google::protobuf::Metadata GetMetadata() const;
  547. // nested types ----------------------------------------------------
  548. // accessors -------------------------------------------------------
  549. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_remove_mail];
  550. inline bool has_packet_id() const;
  551. inline void clear_packet_id();
  552. static const int kPacketIdFieldNumber = 1;
  553. inline ::client2world_protocols::e_server_msg_type packet_id() const;
  554. inline void set_packet_id(::client2world_protocols::e_server_msg_type value);
  555. // optional string mailId = 2;
  556. inline bool has_mailid() const;
  557. inline void clear_mailid();
  558. static const int kMailIdFieldNumber = 2;
  559. inline const ::std::string& mailid() const;
  560. inline void set_mailid(const ::std::string& value);
  561. inline void set_mailid(const char* value);
  562. inline void set_mailid(const char* value, size_t size);
  563. inline ::std::string* mutable_mailid();
  564. inline ::std::string* release_mailid();
  565. inline void set_allocated_mailid(::std::string* mailid);
  566. // @@protoc_insertion_point(class_scope:client2world_protocols.packetc2w_remove_mail)
  567. private:
  568. inline void set_has_packet_id();
  569. inline void clear_has_packet_id();
  570. inline void set_has_mailid();
  571. inline void clear_has_mailid();
  572. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  573. ::std::string* mailid_;
  574. int packet_id_;
  575. mutable int _cached_size_;
  576. ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
  577. friend void protobuf_AddDesc_client2world_5fmail_2eproto();
  578. friend void protobuf_AssignDesc_client2world_5fmail_2eproto();
  579. friend void protobuf_ShutdownFile_client2world_5fmail_2eproto();
  580. void InitAsDefaultInstance();
  581. static packetc2w_remove_mail* default_instance_;
  582. };
  583. // -------------------------------------------------------------------
  584. class packetw2c_remove_mail_result : public ::google::protobuf::Message {
  585. public:
  586. packetw2c_remove_mail_result();
  587. virtual ~packetw2c_remove_mail_result();
  588. packetw2c_remove_mail_result(const packetw2c_remove_mail_result& from);
  589. inline packetw2c_remove_mail_result& operator=(const packetw2c_remove_mail_result& from) {
  590. CopyFrom(from);
  591. return *this;
  592. }
  593. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  594. return _unknown_fields_;
  595. }
  596. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  597. return &_unknown_fields_;
  598. }
  599. static const ::google::protobuf::Descriptor* descriptor();
  600. static const packetw2c_remove_mail_result& default_instance();
  601. void Swap(packetw2c_remove_mail_result* other);
  602. // implements Message ----------------------------------------------
  603. packetw2c_remove_mail_result* New() const;
  604. void CopyFrom(const ::google::protobuf::Message& from);
  605. void MergeFrom(const ::google::protobuf::Message& from);
  606. void CopyFrom(const packetw2c_remove_mail_result& from);
  607. void MergeFrom(const packetw2c_remove_mail_result& from);
  608. void Clear();
  609. bool IsInitialized() const;
  610. int ByteSize() const;
  611. bool MergePartialFromCodedStream(
  612. ::google::protobuf::io::CodedInputStream* input);
  613. void SerializeWithCachedSizes(
  614. ::google::protobuf::io::CodedOutputStream* output) const;
  615. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  616. int GetCachedSize() const { return _cached_size_; }
  617. private:
  618. void SharedCtor();
  619. void SharedDtor();
  620. void SetCachedSize(int size) const;
  621. public:
  622. ::google::protobuf::Metadata GetMetadata() const;
  623. // nested types ----------------------------------------------------
  624. // accessors -------------------------------------------------------
  625. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_remove_mail_result];
  626. inline bool has_packet_id() const;
  627. inline void clear_packet_id();
  628. static const int kPacketIdFieldNumber = 1;
  629. inline ::client2world_protocols::e_server_msg_type packet_id() const;
  630. inline void set_packet_id(::client2world_protocols::e_server_msg_type value);
  631. // optional string mailId = 2;
  632. inline bool has_mailid() const;
  633. inline void clear_mailid();
  634. static const int kMailIdFieldNumber = 2;
  635. inline const ::std::string& mailid() const;
  636. inline void set_mailid(const ::std::string& value);
  637. inline void set_mailid(const char* value);
  638. inline void set_mailid(const char* value, size_t size);
  639. inline ::std::string* mutable_mailid();
  640. inline ::std::string* release_mailid();
  641. inline void set_allocated_mailid(::std::string* mailid);
  642. // optional int32 result = 3;
  643. inline bool has_result() const;
  644. inline void clear_result();
  645. static const int kResultFieldNumber = 3;
  646. inline ::google::protobuf::int32 result() const;
  647. inline void set_result(::google::protobuf::int32 value);
  648. // @@protoc_insertion_point(class_scope:client2world_protocols.packetw2c_remove_mail_result)
  649. private:
  650. inline void set_has_packet_id();
  651. inline void clear_has_packet_id();
  652. inline void set_has_mailid();
  653. inline void clear_has_mailid();
  654. inline void set_has_result();
  655. inline void clear_has_result();
  656. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  657. ::std::string* mailid_;
  658. int packet_id_;
  659. ::google::protobuf::int32 result_;
  660. mutable int _cached_size_;
  661. ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
  662. friend void protobuf_AddDesc_client2world_5fmail_2eproto();
  663. friend void protobuf_AssignDesc_client2world_5fmail_2eproto();
  664. friend void protobuf_ShutdownFile_client2world_5fmail_2eproto();
  665. void InitAsDefaultInstance();
  666. static packetw2c_remove_mail_result* default_instance_;
  667. };
  668. // -------------------------------------------------------------------
  669. class packetw2c_accept_gift_notify : public ::google::protobuf::Message {
  670. public:
  671. packetw2c_accept_gift_notify();
  672. virtual ~packetw2c_accept_gift_notify();
  673. packetw2c_accept_gift_notify(const packetw2c_accept_gift_notify& from);
  674. inline packetw2c_accept_gift_notify& operator=(const packetw2c_accept_gift_notify& from) {
  675. CopyFrom(from);
  676. return *this;
  677. }
  678. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  679. return _unknown_fields_;
  680. }
  681. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  682. return &_unknown_fields_;
  683. }
  684. static const ::google::protobuf::Descriptor* descriptor();
  685. static const packetw2c_accept_gift_notify& default_instance();
  686. void Swap(packetw2c_accept_gift_notify* other);
  687. // implements Message ----------------------------------------------
  688. packetw2c_accept_gift_notify* New() const;
  689. void CopyFrom(const ::google::protobuf::Message& from);
  690. void MergeFrom(const ::google::protobuf::Message& from);
  691. void CopyFrom(const packetw2c_accept_gift_notify& from);
  692. void MergeFrom(const packetw2c_accept_gift_notify& from);
  693. void Clear();
  694. bool IsInitialized() const;
  695. int ByteSize() const;
  696. bool MergePartialFromCodedStream(
  697. ::google::protobuf::io::CodedInputStream* input);
  698. void SerializeWithCachedSizes(
  699. ::google::protobuf::io::CodedOutputStream* output) const;
  700. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  701. int GetCachedSize() const { return _cached_size_; }
  702. private:
  703. void SharedCtor();
  704. void SharedDtor();
  705. void SetCachedSize(int size) const;
  706. public:
  707. ::google::protobuf::Metadata GetMetadata() const;
  708. // nested types ----------------------------------------------------
  709. // accessors -------------------------------------------------------
  710. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_accept_gift_notify];
  711. inline bool has_packet_id() const;
  712. inline void clear_packet_id();
  713. static const int kPacketIdFieldNumber = 1;
  714. inline ::client2world_protocols::e_server_msg_type packet_id() const;
  715. inline void set_packet_id(::client2world_protocols::e_server_msg_type value);
  716. // @@protoc_insertion_point(class_scope:client2world_protocols.packetw2c_accept_gift_notify)
  717. private:
  718. inline void set_has_packet_id();
  719. inline void clear_has_packet_id();
  720. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  721. int packet_id_;
  722. mutable int _cached_size_;
  723. ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
  724. friend void protobuf_AddDesc_client2world_5fmail_2eproto();
  725. friend void protobuf_AssignDesc_client2world_5fmail_2eproto();
  726. friend void protobuf_ShutdownFile_client2world_5fmail_2eproto();
  727. void InitAsDefaultInstance();
  728. static packetw2c_accept_gift_notify* default_instance_;
  729. };
  730. // -------------------------------------------------------------------
  731. class packetc2w_req_send_mail_log : public ::google::protobuf::Message {
  732. public:
  733. packetc2w_req_send_mail_log();
  734. virtual ~packetc2w_req_send_mail_log();
  735. packetc2w_req_send_mail_log(const packetc2w_req_send_mail_log& from);
  736. inline packetc2w_req_send_mail_log& operator=(const packetc2w_req_send_mail_log& from) {
  737. CopyFrom(from);
  738. return *this;
  739. }
  740. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  741. return _unknown_fields_;
  742. }
  743. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  744. return &_unknown_fields_;
  745. }
  746. static const ::google::protobuf::Descriptor* descriptor();
  747. static const packetc2w_req_send_mail_log& default_instance();
  748. void Swap(packetc2w_req_send_mail_log* other);
  749. // implements Message ----------------------------------------------
  750. packetc2w_req_send_mail_log* New() const;
  751. void CopyFrom(const ::google::protobuf::Message& from);
  752. void MergeFrom(const ::google::protobuf::Message& from);
  753. void CopyFrom(const packetc2w_req_send_mail_log& from);
  754. void MergeFrom(const packetc2w_req_send_mail_log& from);
  755. void Clear();
  756. bool IsInitialized() const;
  757. int ByteSize() const;
  758. bool MergePartialFromCodedStream(
  759. ::google::protobuf::io::CodedInputStream* input);
  760. void SerializeWithCachedSizes(
  761. ::google::protobuf::io::CodedOutputStream* output) const;
  762. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  763. int GetCachedSize() const { return _cached_size_; }
  764. private:
  765. void SharedCtor();
  766. void SharedDtor();
  767. void SetCachedSize(int size) const;
  768. public:
  769. ::google::protobuf::Metadata GetMetadata() const;
  770. // nested types ----------------------------------------------------
  771. // accessors -------------------------------------------------------
  772. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_send_mail_log];
  773. inline bool has_packet_id() const;
  774. inline void clear_packet_id();
  775. static const int kPacketIdFieldNumber = 1;
  776. inline ::client2world_protocols::e_server_msg_type packet_id() const;
  777. inline void set_packet_id(::client2world_protocols::e_server_msg_type value);
  778. // optional int32 lastTime = 2;
  779. inline bool has_lasttime() const;
  780. inline void clear_lasttime();
  781. static const int kLastTimeFieldNumber = 2;
  782. inline ::google::protobuf::int32 lasttime() const;
  783. inline void set_lasttime(::google::protobuf::int32 value);
  784. // @@protoc_insertion_point(class_scope:client2world_protocols.packetc2w_req_send_mail_log)
  785. private:
  786. inline void set_has_packet_id();
  787. inline void clear_has_packet_id();
  788. inline void set_has_lasttime();
  789. inline void clear_has_lasttime();
  790. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  791. int packet_id_;
  792. ::google::protobuf::int32 lasttime_;
  793. mutable int _cached_size_;
  794. ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
  795. friend void protobuf_AddDesc_client2world_5fmail_2eproto();
  796. friend void protobuf_AssignDesc_client2world_5fmail_2eproto();
  797. friend void protobuf_ShutdownFile_client2world_5fmail_2eproto();
  798. void InitAsDefaultInstance();
  799. static packetc2w_req_send_mail_log* default_instance_;
  800. };
  801. // -------------------------------------------------------------------
  802. class SendMailLogInfo : public ::google::protobuf::Message {
  803. public:
  804. SendMailLogInfo();
  805. virtual ~SendMailLogInfo();
  806. SendMailLogInfo(const SendMailLogInfo& from);
  807. inline SendMailLogInfo& operator=(const SendMailLogInfo& from) {
  808. CopyFrom(from);
  809. return *this;
  810. }
  811. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  812. return _unknown_fields_;
  813. }
  814. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  815. return &_unknown_fields_;
  816. }
  817. static const ::google::protobuf::Descriptor* descriptor();
  818. static const SendMailLogInfo& default_instance();
  819. void Swap(SendMailLogInfo* other);
  820. // implements Message ----------------------------------------------
  821. SendMailLogInfo* New() const;
  822. void CopyFrom(const ::google::protobuf::Message& from);
  823. void MergeFrom(const ::google::protobuf::Message& from);
  824. void CopyFrom(const SendMailLogInfo& from);
  825. void MergeFrom(const SendMailLogInfo& from);
  826. void Clear();
  827. bool IsInitialized() const;
  828. int ByteSize() const;
  829. bool MergePartialFromCodedStream(
  830. ::google::protobuf::io::CodedInputStream* input);
  831. void SerializeWithCachedSizes(
  832. ::google::protobuf::io::CodedOutputStream* output) const;
  833. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  834. int GetCachedSize() const { return _cached_size_; }
  835. private:
  836. void SharedCtor();
  837. void SharedDtor();
  838. void SetCachedSize(int size) const;
  839. public:
  840. ::google::protobuf::Metadata GetMetadata() const;
  841. // nested types ----------------------------------------------------
  842. // accessors -------------------------------------------------------
  843. // optional int32 sendTime = 1;
  844. inline bool has_sendtime() const;
  845. inline void clear_sendtime();
  846. static const int kSendTimeFieldNumber = 1;
  847. inline ::google::protobuf::int32 sendtime() const;
  848. inline void set_sendtime(::google::protobuf::int32 value);
  849. // optional int32 firendId = 2;
  850. inline bool has_firendid() const;
  851. inline void clear_firendid();
  852. static const int kFirendIdFieldNumber = 2;
  853. inline ::google::protobuf::int32 firendid() const;
  854. inline void set_firendid(::google::protobuf::int32 value);
  855. // optional string content = 3;
  856. inline bool has_content() const;
  857. inline void clear_content();
  858. static const int kContentFieldNumber = 3;
  859. inline const ::std::string& content() const;
  860. inline void set_content(const ::std::string& value);
  861. inline void set_content(const char* value);
  862. inline void set_content(const char* value, size_t size);
  863. inline ::std::string* mutable_content();
  864. inline ::std::string* release_content();
  865. inline void set_allocated_content(::std::string* content);
  866. // optional string mailId = 4;
  867. inline bool has_mailid() const;
  868. inline void clear_mailid();
  869. static const int kMailIdFieldNumber = 4;
  870. inline const ::std::string& mailid() const;
  871. inline void set_mailid(const ::std::string& value);
  872. inline void set_mailid(const char* value);
  873. inline void set_mailid(const char* value, size_t size);
  874. inline ::std::string* mutable_mailid();
  875. inline ::std::string* release_mailid();
  876. inline void set_allocated_mailid(::std::string* mailid);
  877. // optional string title = 5;
  878. inline bool has_title() const;
  879. inline void clear_title();
  880. static const int kTitleFieldNumber = 5;
  881. inline const ::std::string& title() const;
  882. inline void set_title(const ::std::string& value);
  883. inline void set_title(const char* value);
  884. inline void set_title(const char* value, size_t size);
  885. inline ::std::string* mutable_title();
  886. inline ::std::string* release_title();
  887. inline void set_allocated_title(::std::string* title);
  888. // optional string friendNickName = 6;
  889. inline bool has_friendnickname() const;
  890. inline void clear_friendnickname();
  891. static const int kFriendNickNameFieldNumber = 6;
  892. inline const ::std::string& friendnickname() const;
  893. inline void set_friendnickname(const ::std::string& value);
  894. inline void set_friendnickname(const char* value);
  895. inline void set_friendnickname(const char* value, size_t size);
  896. inline ::std::string* mutable_friendnickname();
  897. inline ::std::string* release_friendnickname();
  898. inline void set_allocated_friendnickname(::std::string* friendnickname);
  899. // @@protoc_insertion_point(class_scope:client2world_protocols.SendMailLogInfo)
  900. private:
  901. inline void set_has_sendtime();
  902. inline void clear_has_sendtime();
  903. inline void set_has_firendid();
  904. inline void clear_has_firendid();
  905. inline void set_has_content();
  906. inline void clear_has_content();
  907. inline void set_has_mailid();
  908. inline void clear_has_mailid();
  909. inline void set_has_title();
  910. inline void clear_has_title();
  911. inline void set_has_friendnickname();
  912. inline void clear_has_friendnickname();
  913. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  914. ::google::protobuf::int32 sendtime_;
  915. ::google::protobuf::int32 firendid_;
  916. ::std::string* content_;
  917. ::std::string* mailid_;
  918. ::std::string* title_;
  919. ::std::string* friendnickname_;
  920. mutable int _cached_size_;
  921. ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32];
  922. friend void protobuf_AddDesc_client2world_5fmail_2eproto();
  923. friend void protobuf_AssignDesc_client2world_5fmail_2eproto();
  924. friend void protobuf_ShutdownFile_client2world_5fmail_2eproto();
  925. void InitAsDefaultInstance();
  926. static SendMailLogInfo* default_instance_;
  927. };
  928. // -------------------------------------------------------------------
  929. class packetw2c_req_send_mail_log_result : public ::google::protobuf::Message {
  930. public:
  931. packetw2c_req_send_mail_log_result();
  932. virtual ~packetw2c_req_send_mail_log_result();
  933. packetw2c_req_send_mail_log_result(const packetw2c_req_send_mail_log_result& from);
  934. inline packetw2c_req_send_mail_log_result& operator=(const packetw2c_req_send_mail_log_result& from) {
  935. CopyFrom(from);
  936. return *this;
  937. }
  938. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  939. return _unknown_fields_;
  940. }
  941. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  942. return &_unknown_fields_;
  943. }
  944. static const ::google::protobuf::Descriptor* descriptor();
  945. static const packetw2c_req_send_mail_log_result& default_instance();
  946. void Swap(packetw2c_req_send_mail_log_result* other);
  947. // implements Message ----------------------------------------------
  948. packetw2c_req_send_mail_log_result* New() const;
  949. void CopyFrom(const ::google::protobuf::Message& from);
  950. void MergeFrom(const ::google::protobuf::Message& from);
  951. void CopyFrom(const packetw2c_req_send_mail_log_result& from);
  952. void MergeFrom(const packetw2c_req_send_mail_log_result& from);
  953. void Clear();
  954. bool IsInitialized() const;
  955. int ByteSize() const;
  956. bool MergePartialFromCodedStream(
  957. ::google::protobuf::io::CodedInputStream* input);
  958. void SerializeWithCachedSizes(
  959. ::google::protobuf::io::CodedOutputStream* output) const;
  960. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  961. int GetCachedSize() const { return _cached_size_; }
  962. private:
  963. void SharedCtor();
  964. void SharedDtor();
  965. void SetCachedSize(int size) const;
  966. public:
  967. ::google::protobuf::Metadata GetMetadata() const;
  968. // nested types ----------------------------------------------------
  969. // accessors -------------------------------------------------------
  970. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_send_mail_log_result];
  971. inline bool has_packet_id() const;
  972. inline void clear_packet_id();
  973. static const int kPacketIdFieldNumber = 1;
  974. inline ::client2world_protocols::e_server_msg_type packet_id() const;
  975. inline void set_packet_id(::client2world_protocols::e_server_msg_type value);
  976. // repeated .client2world_protocols.SendMailLogInfo logList = 2;
  977. inline int loglist_size() const;
  978. inline void clear_loglist();
  979. static const int kLogListFieldNumber = 2;
  980. inline const ::client2world_protocols::SendMailLogInfo& loglist(int index) const;
  981. inline ::client2world_protocols::SendMailLogInfo* mutable_loglist(int index);
  982. inline ::client2world_protocols::SendMailLogInfo* add_loglist();
  983. inline const ::google::protobuf::RepeatedPtrField< ::client2world_protocols::SendMailLogInfo >&
  984. loglist() const;
  985. inline ::google::protobuf::RepeatedPtrField< ::client2world_protocols::SendMailLogInfo >*
  986. mutable_loglist();
  987. // optional int32 lastTime = 3;
  988. inline bool has_lasttime() const;
  989. inline void clear_lasttime();
  990. static const int kLastTimeFieldNumber = 3;
  991. inline ::google::protobuf::int32 lasttime() const;
  992. inline void set_lasttime(::google::protobuf::int32 value);
  993. // @@protoc_insertion_point(class_scope:client2world_protocols.packetw2c_req_send_mail_log_result)
  994. private:
  995. inline void set_has_packet_id();
  996. inline void clear_has_packet_id();
  997. inline void set_has_lasttime();
  998. inline void clear_has_lasttime();
  999. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  1000. ::google::protobuf::RepeatedPtrField< ::client2world_protocols::SendMailLogInfo > loglist_;
  1001. int packet_id_;
  1002. ::google::protobuf::int32 lasttime_;
  1003. mutable int _cached_size_;
  1004. ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
  1005. friend void protobuf_AddDesc_client2world_5fmail_2eproto();
  1006. friend void protobuf_AssignDesc_client2world_5fmail_2eproto();
  1007. friend void protobuf_ShutdownFile_client2world_5fmail_2eproto();
  1008. void InitAsDefaultInstance();
  1009. static packetw2c_req_send_mail_log_result* default_instance_;
  1010. };
  1011. // -------------------------------------------------------------------
  1012. class packetc2w_remove_mail_log : public ::google::protobuf::Message {
  1013. public:
  1014. packetc2w_remove_mail_log();
  1015. virtual ~packetc2w_remove_mail_log();
  1016. packetc2w_remove_mail_log(const packetc2w_remove_mail_log& from);
  1017. inline packetc2w_remove_mail_log& operator=(const packetc2w_remove_mail_log& from) {
  1018. CopyFrom(from);
  1019. return *this;
  1020. }
  1021. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1022. return _unknown_fields_;
  1023. }
  1024. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1025. return &_unknown_fields_;
  1026. }
  1027. static const ::google::protobuf::Descriptor* descriptor();
  1028. static const packetc2w_remove_mail_log& default_instance();
  1029. void Swap(packetc2w_remove_mail_log* other);
  1030. // implements Message ----------------------------------------------
  1031. packetc2w_remove_mail_log* New() const;
  1032. void CopyFrom(const ::google::protobuf::Message& from);
  1033. void MergeFrom(const ::google::protobuf::Message& from);
  1034. void CopyFrom(const packetc2w_remove_mail_log& from);
  1035. void MergeFrom(const packetc2w_remove_mail_log& from);
  1036. void Clear();
  1037. bool IsInitialized() const;
  1038. int ByteSize() const;
  1039. bool MergePartialFromCodedStream(
  1040. ::google::protobuf::io::CodedInputStream* input);
  1041. void SerializeWithCachedSizes(
  1042. ::google::protobuf::io::CodedOutputStream* output) const;
  1043. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  1044. int GetCachedSize() const { return _cached_size_; }
  1045. private:
  1046. void SharedCtor();
  1047. void SharedDtor();
  1048. void SetCachedSize(int size) const;
  1049. public:
  1050. ::google::protobuf::Metadata GetMetadata() const;
  1051. // nested types ----------------------------------------------------
  1052. // accessors -------------------------------------------------------
  1053. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_remove_mail_log];
  1054. inline bool has_packet_id() const;
  1055. inline void clear_packet_id();
  1056. static const int kPacketIdFieldNumber = 1;
  1057. inline ::client2world_protocols::e_server_msg_type packet_id() const;
  1058. inline void set_packet_id(::client2world_protocols::e_server_msg_type value);
  1059. // optional string mailId = 2;
  1060. inline bool has_mailid() const;
  1061. inline void clear_mailid();
  1062. static const int kMailIdFieldNumber = 2;
  1063. inline const ::std::string& mailid() const;
  1064. inline void set_mailid(const ::std::string& value);
  1065. inline void set_mailid(const char* value);
  1066. inline void set_mailid(const char* value, size_t size);
  1067. inline ::std::string* mutable_mailid();
  1068. inline ::std::string* release_mailid();
  1069. inline void set_allocated_mailid(::std::string* mailid);
  1070. // @@protoc_insertion_point(class_scope:client2world_protocols.packetc2w_remove_mail_log)
  1071. private:
  1072. inline void set_has_packet_id();
  1073. inline void clear_has_packet_id();
  1074. inline void set_has_mailid();
  1075. inline void clear_has_mailid();
  1076. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  1077. ::std::string* mailid_;
  1078. int packet_id_;
  1079. mutable int _cached_size_;
  1080. ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
  1081. friend void protobuf_AddDesc_client2world_5fmail_2eproto();
  1082. friend void protobuf_AssignDesc_client2world_5fmail_2eproto();
  1083. friend void protobuf_ShutdownFile_client2world_5fmail_2eproto();
  1084. void InitAsDefaultInstance();
  1085. static packetc2w_remove_mail_log* default_instance_;
  1086. };
  1087. // -------------------------------------------------------------------
  1088. class packetw2c_remove_mail_log_result : public ::google::protobuf::Message {
  1089. public:
  1090. packetw2c_remove_mail_log_result();
  1091. virtual ~packetw2c_remove_mail_log_result();
  1092. packetw2c_remove_mail_log_result(const packetw2c_remove_mail_log_result& from);
  1093. inline packetw2c_remove_mail_log_result& operator=(const packetw2c_remove_mail_log_result& from) {
  1094. CopyFrom(from);
  1095. return *this;
  1096. }
  1097. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1098. return _unknown_fields_;
  1099. }
  1100. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1101. return &_unknown_fields_;
  1102. }
  1103. static const ::google::protobuf::Descriptor* descriptor();
  1104. static const packetw2c_remove_mail_log_result& default_instance();
  1105. void Swap(packetw2c_remove_mail_log_result* other);
  1106. // implements Message ----------------------------------------------
  1107. packetw2c_remove_mail_log_result* New() const;
  1108. void CopyFrom(const ::google::protobuf::Message& from);
  1109. void MergeFrom(const ::google::protobuf::Message& from);
  1110. void CopyFrom(const packetw2c_remove_mail_log_result& from);
  1111. void MergeFrom(const packetw2c_remove_mail_log_result& from);
  1112. void Clear();
  1113. bool IsInitialized() const;
  1114. int ByteSize() const;
  1115. bool MergePartialFromCodedStream(
  1116. ::google::protobuf::io::CodedInputStream* input);
  1117. void SerializeWithCachedSizes(
  1118. ::google::protobuf::io::CodedOutputStream* output) const;
  1119. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  1120. int GetCachedSize() const { return _cached_size_; }
  1121. private:
  1122. void SharedCtor();
  1123. void SharedDtor();
  1124. void SetCachedSize(int size) const;
  1125. public:
  1126. ::google::protobuf::Metadata GetMetadata() const;
  1127. // nested types ----------------------------------------------------
  1128. // accessors -------------------------------------------------------
  1129. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_remove_mail_log_result];
  1130. inline bool has_packet_id() const;
  1131. inline void clear_packet_id();
  1132. static const int kPacketIdFieldNumber = 1;
  1133. inline ::client2world_protocols::e_server_msg_type packet_id() const;
  1134. inline void set_packet_id(::client2world_protocols::e_server_msg_type value);
  1135. // optional string mailId = 2;
  1136. inline bool has_mailid() const;
  1137. inline void clear_mailid();
  1138. static const int kMailIdFieldNumber = 2;
  1139. inline const ::std::string& mailid() const;
  1140. inline void set_mailid(const ::std::string& value);
  1141. inline void set_mailid(const char* value);
  1142. inline void set_mailid(const char* value, size_t size);
  1143. inline ::std::string* mutable_mailid();
  1144. inline ::std::string* release_mailid();
  1145. inline void set_allocated_mailid(::std::string* mailid);
  1146. // optional int32 result = 3;
  1147. inline bool has_result() const;
  1148. inline void clear_result();
  1149. static const int kResultFieldNumber = 3;
  1150. inline ::google::protobuf::int32 result() const;
  1151. inline void set_result(::google::protobuf::int32 value);
  1152. // @@protoc_insertion_point(class_scope:client2world_protocols.packetw2c_remove_mail_log_result)
  1153. private:
  1154. inline void set_has_packet_id();
  1155. inline void clear_has_packet_id();
  1156. inline void set_has_mailid();
  1157. inline void clear_has_mailid();
  1158. inline void set_has_result();
  1159. inline void clear_has_result();
  1160. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  1161. ::std::string* mailid_;
  1162. int packet_id_;
  1163. ::google::protobuf::int32 result_;
  1164. mutable int _cached_size_;
  1165. ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
  1166. friend void protobuf_AddDesc_client2world_5fmail_2eproto();
  1167. friend void protobuf_AssignDesc_client2world_5fmail_2eproto();
  1168. friend void protobuf_ShutdownFile_client2world_5fmail_2eproto();
  1169. void InitAsDefaultInstance();
  1170. static packetw2c_remove_mail_log_result* default_instance_;
  1171. };
  1172. // ===================================================================
  1173. // ===================================================================
  1174. // packetc2w_get_mails
  1175. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_get_mails];
  1176. inline bool packetc2w_get_mails::has_packet_id() const {
  1177. return (_has_bits_[0] & 0x00000001u) != 0;
  1178. }
  1179. inline void packetc2w_get_mails::set_has_packet_id() {
  1180. _has_bits_[0] |= 0x00000001u;
  1181. }
  1182. inline void packetc2w_get_mails::clear_has_packet_id() {
  1183. _has_bits_[0] &= ~0x00000001u;
  1184. }
  1185. inline void packetc2w_get_mails::clear_packet_id() {
  1186. packet_id_ = 5014;
  1187. clear_has_packet_id();
  1188. }
  1189. inline ::client2world_protocols::e_server_msg_type packetc2w_get_mails::packet_id() const {
  1190. return static_cast< ::client2world_protocols::e_server_msg_type >(packet_id_);
  1191. }
  1192. inline void packetc2w_get_mails::set_packet_id(::client2world_protocols::e_server_msg_type value) {
  1193. assert(::client2world_protocols::e_server_msg_type_IsValid(value));
  1194. set_has_packet_id();
  1195. packet_id_ = value;
  1196. }
  1197. // optional int32 lastTime = 2;
  1198. inline bool packetc2w_get_mails::has_lasttime() const {
  1199. return (_has_bits_[0] & 0x00000002u) != 0;
  1200. }
  1201. inline void packetc2w_get_mails::set_has_lasttime() {
  1202. _has_bits_[0] |= 0x00000002u;
  1203. }
  1204. inline void packetc2w_get_mails::clear_has_lasttime() {
  1205. _has_bits_[0] &= ~0x00000002u;
  1206. }
  1207. inline void packetc2w_get_mails::clear_lasttime() {
  1208. lasttime_ = 0;
  1209. clear_has_lasttime();
  1210. }
  1211. inline ::google::protobuf::int32 packetc2w_get_mails::lasttime() const {
  1212. return lasttime_;
  1213. }
  1214. inline void packetc2w_get_mails::set_lasttime(::google::protobuf::int32 value) {
  1215. set_has_lasttime();
  1216. lasttime_ = value;
  1217. }
  1218. // -------------------------------------------------------------------
  1219. // mail_info
  1220. // optional string mailId = 1;
  1221. inline bool mail_info::has_mailid() const {
  1222. return (_has_bits_[0] & 0x00000001u) != 0;
  1223. }
  1224. inline void mail_info::set_has_mailid() {
  1225. _has_bits_[0] |= 0x00000001u;
  1226. }
  1227. inline void mail_info::clear_has_mailid() {
  1228. _has_bits_[0] &= ~0x00000001u;
  1229. }
  1230. inline void mail_info::clear_mailid() {
  1231. if (mailid_ != &::google::protobuf::internal::kEmptyString) {
  1232. mailid_->clear();
  1233. }
  1234. clear_has_mailid();
  1235. }
  1236. inline const ::std::string& mail_info::mailid() const {
  1237. return *mailid_;
  1238. }
  1239. inline void mail_info::set_mailid(const ::std::string& value) {
  1240. set_has_mailid();
  1241. if (mailid_ == &::google::protobuf::internal::kEmptyString) {
  1242. mailid_ = new ::std::string;
  1243. }
  1244. mailid_->assign(value);
  1245. }
  1246. inline void mail_info::set_mailid(const char* value) {
  1247. set_has_mailid();
  1248. if (mailid_ == &::google::protobuf::internal::kEmptyString) {
  1249. mailid_ = new ::std::string;
  1250. }
  1251. mailid_->assign(value);
  1252. }
  1253. inline void mail_info::set_mailid(const char* value, size_t size) {
  1254. set_has_mailid();
  1255. if (mailid_ == &::google::protobuf::internal::kEmptyString) {
  1256. mailid_ = new ::std::string;
  1257. }
  1258. mailid_->assign(reinterpret_cast<const char*>(value), size);
  1259. }
  1260. inline ::std::string* mail_info::mutable_mailid() {
  1261. set_has_mailid();
  1262. if (mailid_ == &::google::protobuf::internal::kEmptyString) {
  1263. mailid_ = new ::std::string;
  1264. }
  1265. return mailid_;
  1266. }
  1267. inline ::std::string* mail_info::release_mailid() {
  1268. clear_has_mailid();
  1269. if (mailid_ == &::google::protobuf::internal::kEmptyString) {
  1270. return NULL;
  1271. } else {
  1272. ::std::string* temp = mailid_;
  1273. mailid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  1274. return temp;
  1275. }
  1276. }
  1277. inline void mail_info::set_allocated_mailid(::std::string* mailid) {
  1278. if (mailid_ != &::google::protobuf::internal::kEmptyString) {
  1279. delete mailid_;
  1280. }
  1281. if (mailid) {
  1282. set_has_mailid();
  1283. mailid_ = mailid;
  1284. } else {
  1285. clear_has_mailid();
  1286. mailid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  1287. }
  1288. }
  1289. // optional int32 time = 2;
  1290. inline bool mail_info::has_time() const {
  1291. return (_has_bits_[0] & 0x00000002u) != 0;
  1292. }
  1293. inline void mail_info::set_has_time() {
  1294. _has_bits_[0] |= 0x00000002u;
  1295. }
  1296. inline void mail_info::clear_has_time() {
  1297. _has_bits_[0] &= ~0x00000002u;
  1298. }
  1299. inline void mail_info::clear_time() {
  1300. time_ = 0;
  1301. clear_has_time();
  1302. }
  1303. inline ::google::protobuf::int32 mail_info::time() const {
  1304. return time_;
  1305. }
  1306. inline void mail_info::set_time(::google::protobuf::int32 value) {
  1307. set_has_time();
  1308. time_ = value;
  1309. }
  1310. // optional string title = 3;
  1311. inline bool mail_info::has_title() const {
  1312. return (_has_bits_[0] & 0x00000004u) != 0;
  1313. }
  1314. inline void mail_info::set_has_title() {
  1315. _has_bits_[0] |= 0x00000004u;
  1316. }
  1317. inline void mail_info::clear_has_title() {
  1318. _has_bits_[0] &= ~0x00000004u;
  1319. }
  1320. inline void mail_info::clear_title() {
  1321. if (title_ != &::google::protobuf::internal::kEmptyString) {
  1322. title_->clear();
  1323. }
  1324. clear_has_title();
  1325. }
  1326. inline const ::std::string& mail_info::title() const {
  1327. return *title_;
  1328. }
  1329. inline void mail_info::set_title(const ::std::string& value) {
  1330. set_has_title();
  1331. if (title_ == &::google::protobuf::internal::kEmptyString) {
  1332. title_ = new ::std::string;
  1333. }
  1334. title_->assign(value);
  1335. }
  1336. inline void mail_info::set_title(const char* value) {
  1337. set_has_title();
  1338. if (title_ == &::google::protobuf::internal::kEmptyString) {
  1339. title_ = new ::std::string;
  1340. }
  1341. title_->assign(value);
  1342. }
  1343. inline void mail_info::set_title(const char* value, size_t size) {
  1344. set_has_title();
  1345. if (title_ == &::google::protobuf::internal::kEmptyString) {
  1346. title_ = new ::std::string;
  1347. }
  1348. title_->assign(reinterpret_cast<const char*>(value), size);
  1349. }
  1350. inline ::std::string* mail_info::mutable_title() {
  1351. set_has_title();
  1352. if (title_ == &::google::protobuf::internal::kEmptyString) {
  1353. title_ = new ::std::string;
  1354. }
  1355. return title_;
  1356. }
  1357. inline ::std::string* mail_info::release_title() {
  1358. clear_has_title();
  1359. if (title_ == &::google::protobuf::internal::kEmptyString) {
  1360. return NULL;
  1361. } else {
  1362. ::std::string* temp = title_;
  1363. title_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  1364. return temp;
  1365. }
  1366. }
  1367. inline void mail_info::set_allocated_title(::std::string* title) {
  1368. if (title_ != &::google::protobuf::internal::kEmptyString) {
  1369. delete title_;
  1370. }
  1371. if (title) {
  1372. set_has_title();
  1373. title_ = title;
  1374. } else {
  1375. clear_has_title();
  1376. title_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  1377. }
  1378. }
  1379. // optional string sender = 4;
  1380. inline bool mail_info::has_sender() const {
  1381. return (_has_bits_[0] & 0x00000008u) != 0;
  1382. }
  1383. inline void mail_info::set_has_sender() {
  1384. _has_bits_[0] |= 0x00000008u;
  1385. }
  1386. inline void mail_info::clear_has_sender() {
  1387. _has_bits_[0] &= ~0x00000008u;
  1388. }
  1389. inline void mail_info::clear_sender() {
  1390. if (sender_ != &::google::protobuf::internal::kEmptyString) {
  1391. sender_->clear();
  1392. }
  1393. clear_has_sender();
  1394. }
  1395. inline const ::std::string& mail_info::sender() const {
  1396. return *sender_;
  1397. }
  1398. inline void mail_info::set_sender(const ::std::string& value) {
  1399. set_has_sender();
  1400. if (sender_ == &::google::protobuf::internal::kEmptyString) {
  1401. sender_ = new ::std::string;
  1402. }
  1403. sender_->assign(value);
  1404. }
  1405. inline void mail_info::set_sender(const char* value) {
  1406. set_has_sender();
  1407. if (sender_ == &::google::protobuf::internal::kEmptyString) {
  1408. sender_ = new ::std::string;
  1409. }
  1410. sender_->assign(value);
  1411. }
  1412. inline void mail_info::set_sender(const char* value, size_t size) {
  1413. set_has_sender();
  1414. if (sender_ == &::google::protobuf::internal::kEmptyString) {
  1415. sender_ = new ::std::string;
  1416. }
  1417. sender_->assign(reinterpret_cast<const char*>(value), size);
  1418. }
  1419. inline ::std::string* mail_info::mutable_sender() {
  1420. set_has_sender();
  1421. if (sender_ == &::google::protobuf::internal::kEmptyString) {
  1422. sender_ = new ::std::string;
  1423. }
  1424. return sender_;
  1425. }
  1426. inline ::std::string* mail_info::release_sender() {
  1427. clear_has_sender();
  1428. if (sender_ == &::google::protobuf::internal::kEmptyString) {
  1429. return NULL;
  1430. } else {
  1431. ::std::string* temp = sender_;
  1432. sender_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  1433. return temp;
  1434. }
  1435. }
  1436. inline void mail_info::set_allocated_sender(::std::string* sender) {
  1437. if (sender_ != &::google::protobuf::internal::kEmptyString) {
  1438. delete sender_;
  1439. }
  1440. if (sender) {
  1441. set_has_sender();
  1442. sender_ = sender;
  1443. } else {
  1444. clear_has_sender();
  1445. sender_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  1446. }
  1447. }
  1448. // optional string content = 5;
  1449. inline bool mail_info::has_content() const {
  1450. return (_has_bits_[0] & 0x00000010u) != 0;
  1451. }
  1452. inline void mail_info::set_has_content() {
  1453. _has_bits_[0] |= 0x00000010u;
  1454. }
  1455. inline void mail_info::clear_has_content() {
  1456. _has_bits_[0] &= ~0x00000010u;
  1457. }
  1458. inline void mail_info::clear_content() {
  1459. if (content_ != &::google::protobuf::internal::kEmptyString) {
  1460. content_->clear();
  1461. }
  1462. clear_has_content();
  1463. }
  1464. inline const ::std::string& mail_info::content() const {
  1465. return *content_;
  1466. }
  1467. inline void mail_info::set_content(const ::std::string& value) {
  1468. set_has_content();
  1469. if (content_ == &::google::protobuf::internal::kEmptyString) {
  1470. content_ = new ::std::string;
  1471. }
  1472. content_->assign(value);
  1473. }
  1474. inline void mail_info::set_content(const char* value) {
  1475. set_has_content();
  1476. if (content_ == &::google::protobuf::internal::kEmptyString) {
  1477. content_ = new ::std::string;
  1478. }
  1479. content_->assign(value);
  1480. }
  1481. inline void mail_info::set_content(const char* value, size_t size) {
  1482. set_has_content();
  1483. if (content_ == &::google::protobuf::internal::kEmptyString) {
  1484. content_ = new ::std::string;
  1485. }
  1486. content_->assign(reinterpret_cast<const char*>(value), size);
  1487. }
  1488. inline ::std::string* mail_info::mutable_content() {
  1489. set_has_content();
  1490. if (content_ == &::google::protobuf::internal::kEmptyString) {
  1491. content_ = new ::std::string;
  1492. }
  1493. return content_;
  1494. }
  1495. inline ::std::string* mail_info::release_content() {
  1496. clear_has_content();
  1497. if (content_ == &::google::protobuf::internal::kEmptyString) {
  1498. return NULL;
  1499. } else {
  1500. ::std::string* temp = content_;
  1501. content_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  1502. return temp;
  1503. }
  1504. }
  1505. inline void mail_info::set_allocated_content(::std::string* content) {
  1506. if (content_ != &::google::protobuf::internal::kEmptyString) {
  1507. delete content_;
  1508. }
  1509. if (content) {
  1510. set_has_content();
  1511. content_ = content;
  1512. } else {
  1513. clear_has_content();
  1514. content_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  1515. }
  1516. }
  1517. // optional bool isRecvive = 6;
  1518. inline bool mail_info::has_isrecvive() const {
  1519. return (_has_bits_[0] & 0x00000020u) != 0;
  1520. }
  1521. inline void mail_info::set_has_isrecvive() {
  1522. _has_bits_[0] |= 0x00000020u;
  1523. }
  1524. inline void mail_info::clear_has_isrecvive() {
  1525. _has_bits_[0] &= ~0x00000020u;
  1526. }
  1527. inline void mail_info::clear_isrecvive() {
  1528. isrecvive_ = false;
  1529. clear_has_isrecvive();
  1530. }
  1531. inline bool mail_info::isrecvive() const {
  1532. return isrecvive_;
  1533. }
  1534. inline void mail_info::set_isrecvive(bool value) {
  1535. set_has_isrecvive();
  1536. isrecvive_ = value;
  1537. }
  1538. // repeated .msg_info_def.msg_gift gifts = 7;
  1539. inline int mail_info::gifts_size() const {
  1540. return gifts_.size();
  1541. }
  1542. inline void mail_info::clear_gifts() {
  1543. gifts_.Clear();
  1544. }
  1545. inline const ::msg_info_def::msg_gift& mail_info::gifts(int index) const {
  1546. return gifts_.Get(index);
  1547. }
  1548. inline ::msg_info_def::msg_gift* mail_info::mutable_gifts(int index) {
  1549. return gifts_.Mutable(index);
  1550. }
  1551. inline ::msg_info_def::msg_gift* mail_info::add_gifts() {
  1552. return gifts_.Add();
  1553. }
  1554. inline const ::google::protobuf::RepeatedPtrField< ::msg_info_def::msg_gift >&
  1555. mail_info::gifts() const {
  1556. return gifts_;
  1557. }
  1558. inline ::google::protobuf::RepeatedPtrField< ::msg_info_def::msg_gift >*
  1559. mail_info::mutable_gifts() {
  1560. return &gifts_;
  1561. }
  1562. // optional int32 senderId = 8;
  1563. inline bool mail_info::has_senderid() const {
  1564. return (_has_bits_[0] & 0x00000080u) != 0;
  1565. }
  1566. inline void mail_info::set_has_senderid() {
  1567. _has_bits_[0] |= 0x00000080u;
  1568. }
  1569. inline void mail_info::clear_has_senderid() {
  1570. _has_bits_[0] &= ~0x00000080u;
  1571. }
  1572. inline void mail_info::clear_senderid() {
  1573. senderid_ = 0;
  1574. clear_has_senderid();
  1575. }
  1576. inline ::google::protobuf::int32 mail_info::senderid() const {
  1577. return senderid_;
  1578. }
  1579. inline void mail_info::set_senderid(::google::protobuf::int32 value) {
  1580. set_has_senderid();
  1581. senderid_ = value;
  1582. }
  1583. // -------------------------------------------------------------------
  1584. // packetw2c_get_mails_result
  1585. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_get_mails_result];
  1586. inline bool packetw2c_get_mails_result::has_packet_id() const {
  1587. return (_has_bits_[0] & 0x00000001u) != 0;
  1588. }
  1589. inline void packetw2c_get_mails_result::set_has_packet_id() {
  1590. _has_bits_[0] |= 0x00000001u;
  1591. }
  1592. inline void packetw2c_get_mails_result::clear_has_packet_id() {
  1593. _has_bits_[0] &= ~0x00000001u;
  1594. }
  1595. inline void packetw2c_get_mails_result::clear_packet_id() {
  1596. packet_id_ = 7513;
  1597. clear_has_packet_id();
  1598. }
  1599. inline ::client2world_protocols::e_server_msg_type packetw2c_get_mails_result::packet_id() const {
  1600. return static_cast< ::client2world_protocols::e_server_msg_type >(packet_id_);
  1601. }
  1602. inline void packetw2c_get_mails_result::set_packet_id(::client2world_protocols::e_server_msg_type value) {
  1603. assert(::client2world_protocols::e_server_msg_type_IsValid(value));
  1604. set_has_packet_id();
  1605. packet_id_ = value;
  1606. }
  1607. // optional int32 lastTime = 2;
  1608. inline bool packetw2c_get_mails_result::has_lasttime() const {
  1609. return (_has_bits_[0] & 0x00000002u) != 0;
  1610. }
  1611. inline void packetw2c_get_mails_result::set_has_lasttime() {
  1612. _has_bits_[0] |= 0x00000002u;
  1613. }
  1614. inline void packetw2c_get_mails_result::clear_has_lasttime() {
  1615. _has_bits_[0] &= ~0x00000002u;
  1616. }
  1617. inline void packetw2c_get_mails_result::clear_lasttime() {
  1618. lasttime_ = 0;
  1619. clear_has_lasttime();
  1620. }
  1621. inline ::google::protobuf::int32 packetw2c_get_mails_result::lasttime() const {
  1622. return lasttime_;
  1623. }
  1624. inline void packetw2c_get_mails_result::set_lasttime(::google::protobuf::int32 value) {
  1625. set_has_lasttime();
  1626. lasttime_ = value;
  1627. }
  1628. // repeated .client2world_protocols.mail_info mails = 3;
  1629. inline int packetw2c_get_mails_result::mails_size() const {
  1630. return mails_.size();
  1631. }
  1632. inline void packetw2c_get_mails_result::clear_mails() {
  1633. mails_.Clear();
  1634. }
  1635. inline const ::client2world_protocols::mail_info& packetw2c_get_mails_result::mails(int index) const {
  1636. return mails_.Get(index);
  1637. }
  1638. inline ::client2world_protocols::mail_info* packetw2c_get_mails_result::mutable_mails(int index) {
  1639. return mails_.Mutable(index);
  1640. }
  1641. inline ::client2world_protocols::mail_info* packetw2c_get_mails_result::add_mails() {
  1642. return mails_.Add();
  1643. }
  1644. inline const ::google::protobuf::RepeatedPtrField< ::client2world_protocols::mail_info >&
  1645. packetw2c_get_mails_result::mails() const {
  1646. return mails_;
  1647. }
  1648. inline ::google::protobuf::RepeatedPtrField< ::client2world_protocols::mail_info >*
  1649. packetw2c_get_mails_result::mutable_mails() {
  1650. return &mails_;
  1651. }
  1652. // -------------------------------------------------------------------
  1653. // packetc2w_recv_mail_gifts
  1654. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_recv_mail_gifts];
  1655. inline bool packetc2w_recv_mail_gifts::has_packet_id() const {
  1656. return (_has_bits_[0] & 0x00000001u) != 0;
  1657. }
  1658. inline void packetc2w_recv_mail_gifts::set_has_packet_id() {
  1659. _has_bits_[0] |= 0x00000001u;
  1660. }
  1661. inline void packetc2w_recv_mail_gifts::clear_has_packet_id() {
  1662. _has_bits_[0] &= ~0x00000001u;
  1663. }
  1664. inline void packetc2w_recv_mail_gifts::clear_packet_id() {
  1665. packet_id_ = 5015;
  1666. clear_has_packet_id();
  1667. }
  1668. inline ::client2world_protocols::e_server_msg_type packetc2w_recv_mail_gifts::packet_id() const {
  1669. return static_cast< ::client2world_protocols::e_server_msg_type >(packet_id_);
  1670. }
  1671. inline void packetc2w_recv_mail_gifts::set_packet_id(::client2world_protocols::e_server_msg_type value) {
  1672. assert(::client2world_protocols::e_server_msg_type_IsValid(value));
  1673. set_has_packet_id();
  1674. packet_id_ = value;
  1675. }
  1676. // optional string mailId = 2;
  1677. inline bool packetc2w_recv_mail_gifts::has_mailid() const {
  1678. return (_has_bits_[0] & 0x00000002u) != 0;
  1679. }
  1680. inline void packetc2w_recv_mail_gifts::set_has_mailid() {
  1681. _has_bits_[0] |= 0x00000002u;
  1682. }
  1683. inline void packetc2w_recv_mail_gifts::clear_has_mailid() {
  1684. _has_bits_[0] &= ~0x00000002u;
  1685. }
  1686. inline void packetc2w_recv_mail_gifts::clear_mailid() {
  1687. if (mailid_ != &::google::protobuf::internal::kEmptyString) {
  1688. mailid_->clear();
  1689. }
  1690. clear_has_mailid();
  1691. }
  1692. inline const ::std::string& packetc2w_recv_mail_gifts::mailid() const {
  1693. return *mailid_;
  1694. }
  1695. inline void packetc2w_recv_mail_gifts::set_mailid(const ::std::string& value) {
  1696. set_has_mailid();
  1697. if (mailid_ == &::google::protobuf::internal::kEmptyString) {
  1698. mailid_ = new ::std::string;
  1699. }
  1700. mailid_->assign(value);
  1701. }
  1702. inline void packetc2w_recv_mail_gifts::set_mailid(const char* value) {
  1703. set_has_mailid();
  1704. if (mailid_ == &::google::protobuf::internal::kEmptyString) {
  1705. mailid_ = new ::std::string;
  1706. }
  1707. mailid_->assign(value);
  1708. }
  1709. inline void packetc2w_recv_mail_gifts::set_mailid(const char* value, size_t size) {
  1710. set_has_mailid();
  1711. if (mailid_ == &::google::protobuf::internal::kEmptyString) {
  1712. mailid_ = new ::std::string;
  1713. }
  1714. mailid_->assign(reinterpret_cast<const char*>(value), size);
  1715. }
  1716. inline ::std::string* packetc2w_recv_mail_gifts::mutable_mailid() {
  1717. set_has_mailid();
  1718. if (mailid_ == &::google::protobuf::internal::kEmptyString) {
  1719. mailid_ = new ::std::string;
  1720. }
  1721. return mailid_;
  1722. }
  1723. inline ::std::string* packetc2w_recv_mail_gifts::release_mailid() {
  1724. clear_has_mailid();
  1725. if (mailid_ == &::google::protobuf::internal::kEmptyString) {
  1726. return NULL;
  1727. } else {
  1728. ::std::string* temp = mailid_;
  1729. mailid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  1730. return temp;
  1731. }
  1732. }
  1733. inline void packetc2w_recv_mail_gifts::set_allocated_mailid(::std::string* mailid) {
  1734. if (mailid_ != &::google::protobuf::internal::kEmptyString) {
  1735. delete mailid_;
  1736. }
  1737. if (mailid) {
  1738. set_has_mailid();
  1739. mailid_ = mailid;
  1740. } else {
  1741. clear_has_mailid();
  1742. mailid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  1743. }
  1744. }
  1745. // -------------------------------------------------------------------
  1746. // packetw2c_recv_mail_gifts_result
  1747. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_recv_mail_gifts_result];
  1748. inline bool packetw2c_recv_mail_gifts_result::has_packet_id() const {
  1749. return (_has_bits_[0] & 0x00000001u) != 0;
  1750. }
  1751. inline void packetw2c_recv_mail_gifts_result::set_has_packet_id() {
  1752. _has_bits_[0] |= 0x00000001u;
  1753. }
  1754. inline void packetw2c_recv_mail_gifts_result::clear_has_packet_id() {
  1755. _has_bits_[0] &= ~0x00000001u;
  1756. }
  1757. inline void packetw2c_recv_mail_gifts_result::clear_packet_id() {
  1758. packet_id_ = 7514;
  1759. clear_has_packet_id();
  1760. }
  1761. inline ::client2world_protocols::e_server_msg_type packetw2c_recv_mail_gifts_result::packet_id() const {
  1762. return static_cast< ::client2world_protocols::e_server_msg_type >(packet_id_);
  1763. }
  1764. inline void packetw2c_recv_mail_gifts_result::set_packet_id(::client2world_protocols::e_server_msg_type value) {
  1765. assert(::client2world_protocols::e_server_msg_type_IsValid(value));
  1766. set_has_packet_id();
  1767. packet_id_ = value;
  1768. }
  1769. // optional string mailId = 2;
  1770. inline bool packetw2c_recv_mail_gifts_result::has_mailid() const {
  1771. return (_has_bits_[0] & 0x00000002u) != 0;
  1772. }
  1773. inline void packetw2c_recv_mail_gifts_result::set_has_mailid() {
  1774. _has_bits_[0] |= 0x00000002u;
  1775. }
  1776. inline void packetw2c_recv_mail_gifts_result::clear_has_mailid() {
  1777. _has_bits_[0] &= ~0x00000002u;
  1778. }
  1779. inline void packetw2c_recv_mail_gifts_result::clear_mailid() {
  1780. if (mailid_ != &::google::protobuf::internal::kEmptyString) {
  1781. mailid_->clear();
  1782. }
  1783. clear_has_mailid();
  1784. }
  1785. inline const ::std::string& packetw2c_recv_mail_gifts_result::mailid() const {
  1786. return *mailid_;
  1787. }
  1788. inline void packetw2c_recv_mail_gifts_result::set_mailid(const ::std::string& value) {
  1789. set_has_mailid();
  1790. if (mailid_ == &::google::protobuf::internal::kEmptyString) {
  1791. mailid_ = new ::std::string;
  1792. }
  1793. mailid_->assign(value);
  1794. }
  1795. inline void packetw2c_recv_mail_gifts_result::set_mailid(const char* value) {
  1796. set_has_mailid();
  1797. if (mailid_ == &::google::protobuf::internal::kEmptyString) {
  1798. mailid_ = new ::std::string;
  1799. }
  1800. mailid_->assign(value);
  1801. }
  1802. inline void packetw2c_recv_mail_gifts_result::set_mailid(const char* value, size_t size) {
  1803. set_has_mailid();
  1804. if (mailid_ == &::google::protobuf::internal::kEmptyString) {
  1805. mailid_ = new ::std::string;
  1806. }
  1807. mailid_->assign(reinterpret_cast<const char*>(value), size);
  1808. }
  1809. inline ::std::string* packetw2c_recv_mail_gifts_result::mutable_mailid() {
  1810. set_has_mailid();
  1811. if (mailid_ == &::google::protobuf::internal::kEmptyString) {
  1812. mailid_ = new ::std::string;
  1813. }
  1814. return mailid_;
  1815. }
  1816. inline ::std::string* packetw2c_recv_mail_gifts_result::release_mailid() {
  1817. clear_has_mailid();
  1818. if (mailid_ == &::google::protobuf::internal::kEmptyString) {
  1819. return NULL;
  1820. } else {
  1821. ::std::string* temp = mailid_;
  1822. mailid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  1823. return temp;
  1824. }
  1825. }
  1826. inline void packetw2c_recv_mail_gifts_result::set_allocated_mailid(::std::string* mailid) {
  1827. if (mailid_ != &::google::protobuf::internal::kEmptyString) {
  1828. delete mailid_;
  1829. }
  1830. if (mailid) {
  1831. set_has_mailid();
  1832. mailid_ = mailid;
  1833. } else {
  1834. clear_has_mailid();
  1835. mailid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  1836. }
  1837. }
  1838. // optional int32 result = 3;
  1839. inline bool packetw2c_recv_mail_gifts_result::has_result() const {
  1840. return (_has_bits_[0] & 0x00000004u) != 0;
  1841. }
  1842. inline void packetw2c_recv_mail_gifts_result::set_has_result() {
  1843. _has_bits_[0] |= 0x00000004u;
  1844. }
  1845. inline void packetw2c_recv_mail_gifts_result::clear_has_result() {
  1846. _has_bits_[0] &= ~0x00000004u;
  1847. }
  1848. inline void packetw2c_recv_mail_gifts_result::clear_result() {
  1849. result_ = 0;
  1850. clear_has_result();
  1851. }
  1852. inline ::google::protobuf::int32 packetw2c_recv_mail_gifts_result::result() const {
  1853. return result_;
  1854. }
  1855. inline void packetw2c_recv_mail_gifts_result::set_result(::google::protobuf::int32 value) {
  1856. set_has_result();
  1857. result_ = value;
  1858. }
  1859. // -------------------------------------------------------------------
  1860. // packetc2w_remove_mail
  1861. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_remove_mail];
  1862. inline bool packetc2w_remove_mail::has_packet_id() const {
  1863. return (_has_bits_[0] & 0x00000001u) != 0;
  1864. }
  1865. inline void packetc2w_remove_mail::set_has_packet_id() {
  1866. _has_bits_[0] |= 0x00000001u;
  1867. }
  1868. inline void packetc2w_remove_mail::clear_has_packet_id() {
  1869. _has_bits_[0] &= ~0x00000001u;
  1870. }
  1871. inline void packetc2w_remove_mail::clear_packet_id() {
  1872. packet_id_ = 5017;
  1873. clear_has_packet_id();
  1874. }
  1875. inline ::client2world_protocols::e_server_msg_type packetc2w_remove_mail::packet_id() const {
  1876. return static_cast< ::client2world_protocols::e_server_msg_type >(packet_id_);
  1877. }
  1878. inline void packetc2w_remove_mail::set_packet_id(::client2world_protocols::e_server_msg_type value) {
  1879. assert(::client2world_protocols::e_server_msg_type_IsValid(value));
  1880. set_has_packet_id();
  1881. packet_id_ = value;
  1882. }
  1883. // optional string mailId = 2;
  1884. inline bool packetc2w_remove_mail::has_mailid() const {
  1885. return (_has_bits_[0] & 0x00000002u) != 0;
  1886. }
  1887. inline void packetc2w_remove_mail::set_has_mailid() {
  1888. _has_bits_[0] |= 0x00000002u;
  1889. }
  1890. inline void packetc2w_remove_mail::clear_has_mailid() {
  1891. _has_bits_[0] &= ~0x00000002u;
  1892. }
  1893. inline void packetc2w_remove_mail::clear_mailid() {
  1894. if (mailid_ != &::google::protobuf::internal::kEmptyString) {
  1895. mailid_->clear();
  1896. }
  1897. clear_has_mailid();
  1898. }
  1899. inline const ::std::string& packetc2w_remove_mail::mailid() const {
  1900. return *mailid_;
  1901. }
  1902. inline void packetc2w_remove_mail::set_mailid(const ::std::string& value) {
  1903. set_has_mailid();
  1904. if (mailid_ == &::google::protobuf::internal::kEmptyString) {
  1905. mailid_ = new ::std::string;
  1906. }
  1907. mailid_->assign(value);
  1908. }
  1909. inline void packetc2w_remove_mail::set_mailid(const char* value) {
  1910. set_has_mailid();
  1911. if (mailid_ == &::google::protobuf::internal::kEmptyString) {
  1912. mailid_ = new ::std::string;
  1913. }
  1914. mailid_->assign(value);
  1915. }
  1916. inline void packetc2w_remove_mail::set_mailid(const char* value, size_t size) {
  1917. set_has_mailid();
  1918. if (mailid_ == &::google::protobuf::internal::kEmptyString) {
  1919. mailid_ = new ::std::string;
  1920. }
  1921. mailid_->assign(reinterpret_cast<const char*>(value), size);
  1922. }
  1923. inline ::std::string* packetc2w_remove_mail::mutable_mailid() {
  1924. set_has_mailid();
  1925. if (mailid_ == &::google::protobuf::internal::kEmptyString) {
  1926. mailid_ = new ::std::string;
  1927. }
  1928. return mailid_;
  1929. }
  1930. inline ::std::string* packetc2w_remove_mail::release_mailid() {
  1931. clear_has_mailid();
  1932. if (mailid_ == &::google::protobuf::internal::kEmptyString) {
  1933. return NULL;
  1934. } else {
  1935. ::std::string* temp = mailid_;
  1936. mailid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  1937. return temp;
  1938. }
  1939. }
  1940. inline void packetc2w_remove_mail::set_allocated_mailid(::std::string* mailid) {
  1941. if (mailid_ != &::google::protobuf::internal::kEmptyString) {
  1942. delete mailid_;
  1943. }
  1944. if (mailid) {
  1945. set_has_mailid();
  1946. mailid_ = mailid;
  1947. } else {
  1948. clear_has_mailid();
  1949. mailid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  1950. }
  1951. }
  1952. // -------------------------------------------------------------------
  1953. // packetw2c_remove_mail_result
  1954. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_remove_mail_result];
  1955. inline bool packetw2c_remove_mail_result::has_packet_id() const {
  1956. return (_has_bits_[0] & 0x00000001u) != 0;
  1957. }
  1958. inline void packetw2c_remove_mail_result::set_has_packet_id() {
  1959. _has_bits_[0] |= 0x00000001u;
  1960. }
  1961. inline void packetw2c_remove_mail_result::clear_has_packet_id() {
  1962. _has_bits_[0] &= ~0x00000001u;
  1963. }
  1964. inline void packetw2c_remove_mail_result::clear_packet_id() {
  1965. packet_id_ = 7516;
  1966. clear_has_packet_id();
  1967. }
  1968. inline ::client2world_protocols::e_server_msg_type packetw2c_remove_mail_result::packet_id() const {
  1969. return static_cast< ::client2world_protocols::e_server_msg_type >(packet_id_);
  1970. }
  1971. inline void packetw2c_remove_mail_result::set_packet_id(::client2world_protocols::e_server_msg_type value) {
  1972. assert(::client2world_protocols::e_server_msg_type_IsValid(value));
  1973. set_has_packet_id();
  1974. packet_id_ = value;
  1975. }
  1976. // optional string mailId = 2;
  1977. inline bool packetw2c_remove_mail_result::has_mailid() const {
  1978. return (_has_bits_[0] & 0x00000002u) != 0;
  1979. }
  1980. inline void packetw2c_remove_mail_result::set_has_mailid() {
  1981. _has_bits_[0] |= 0x00000002u;
  1982. }
  1983. inline void packetw2c_remove_mail_result::clear_has_mailid() {
  1984. _has_bits_[0] &= ~0x00000002u;
  1985. }
  1986. inline void packetw2c_remove_mail_result::clear_mailid() {
  1987. if (mailid_ != &::google::protobuf::internal::kEmptyString) {
  1988. mailid_->clear();
  1989. }
  1990. clear_has_mailid();
  1991. }
  1992. inline const ::std::string& packetw2c_remove_mail_result::mailid() const {
  1993. return *mailid_;
  1994. }
  1995. inline void packetw2c_remove_mail_result::set_mailid(const ::std::string& value) {
  1996. set_has_mailid();
  1997. if (mailid_ == &::google::protobuf::internal::kEmptyString) {
  1998. mailid_ = new ::std::string;
  1999. }
  2000. mailid_->assign(value);
  2001. }
  2002. inline void packetw2c_remove_mail_result::set_mailid(const char* value) {
  2003. set_has_mailid();
  2004. if (mailid_ == &::google::protobuf::internal::kEmptyString) {
  2005. mailid_ = new ::std::string;
  2006. }
  2007. mailid_->assign(value);
  2008. }
  2009. inline void packetw2c_remove_mail_result::set_mailid(const char* value, size_t size) {
  2010. set_has_mailid();
  2011. if (mailid_ == &::google::protobuf::internal::kEmptyString) {
  2012. mailid_ = new ::std::string;
  2013. }
  2014. mailid_->assign(reinterpret_cast<const char*>(value), size);
  2015. }
  2016. inline ::std::string* packetw2c_remove_mail_result::mutable_mailid() {
  2017. set_has_mailid();
  2018. if (mailid_ == &::google::protobuf::internal::kEmptyString) {
  2019. mailid_ = new ::std::string;
  2020. }
  2021. return mailid_;
  2022. }
  2023. inline ::std::string* packetw2c_remove_mail_result::release_mailid() {
  2024. clear_has_mailid();
  2025. if (mailid_ == &::google::protobuf::internal::kEmptyString) {
  2026. return NULL;
  2027. } else {
  2028. ::std::string* temp = mailid_;
  2029. mailid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  2030. return temp;
  2031. }
  2032. }
  2033. inline void packetw2c_remove_mail_result::set_allocated_mailid(::std::string* mailid) {
  2034. if (mailid_ != &::google::protobuf::internal::kEmptyString) {
  2035. delete mailid_;
  2036. }
  2037. if (mailid) {
  2038. set_has_mailid();
  2039. mailid_ = mailid;
  2040. } else {
  2041. clear_has_mailid();
  2042. mailid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  2043. }
  2044. }
  2045. // optional int32 result = 3;
  2046. inline bool packetw2c_remove_mail_result::has_result() const {
  2047. return (_has_bits_[0] & 0x00000004u) != 0;
  2048. }
  2049. inline void packetw2c_remove_mail_result::set_has_result() {
  2050. _has_bits_[0] |= 0x00000004u;
  2051. }
  2052. inline void packetw2c_remove_mail_result::clear_has_result() {
  2053. _has_bits_[0] &= ~0x00000004u;
  2054. }
  2055. inline void packetw2c_remove_mail_result::clear_result() {
  2056. result_ = 0;
  2057. clear_has_result();
  2058. }
  2059. inline ::google::protobuf::int32 packetw2c_remove_mail_result::result() const {
  2060. return result_;
  2061. }
  2062. inline void packetw2c_remove_mail_result::set_result(::google::protobuf::int32 value) {
  2063. set_has_result();
  2064. result_ = value;
  2065. }
  2066. // -------------------------------------------------------------------
  2067. // packetw2c_accept_gift_notify
  2068. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_accept_gift_notify];
  2069. inline bool packetw2c_accept_gift_notify::has_packet_id() const {
  2070. return (_has_bits_[0] & 0x00000001u) != 0;
  2071. }
  2072. inline void packetw2c_accept_gift_notify::set_has_packet_id() {
  2073. _has_bits_[0] |= 0x00000001u;
  2074. }
  2075. inline void packetw2c_accept_gift_notify::clear_has_packet_id() {
  2076. _has_bits_[0] &= ~0x00000001u;
  2077. }
  2078. inline void packetw2c_accept_gift_notify::clear_packet_id() {
  2079. packet_id_ = 7546;
  2080. clear_has_packet_id();
  2081. }
  2082. inline ::client2world_protocols::e_server_msg_type packetw2c_accept_gift_notify::packet_id() const {
  2083. return static_cast< ::client2world_protocols::e_server_msg_type >(packet_id_);
  2084. }
  2085. inline void packetw2c_accept_gift_notify::set_packet_id(::client2world_protocols::e_server_msg_type value) {
  2086. assert(::client2world_protocols::e_server_msg_type_IsValid(value));
  2087. set_has_packet_id();
  2088. packet_id_ = value;
  2089. }
  2090. // -------------------------------------------------------------------
  2091. // packetc2w_req_send_mail_log
  2092. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_send_mail_log];
  2093. inline bool packetc2w_req_send_mail_log::has_packet_id() const {
  2094. return (_has_bits_[0] & 0x00000001u) != 0;
  2095. }
  2096. inline void packetc2w_req_send_mail_log::set_has_packet_id() {
  2097. _has_bits_[0] |= 0x00000001u;
  2098. }
  2099. inline void packetc2w_req_send_mail_log::clear_has_packet_id() {
  2100. _has_bits_[0] &= ~0x00000001u;
  2101. }
  2102. inline void packetc2w_req_send_mail_log::clear_packet_id() {
  2103. packet_id_ = 5045;
  2104. clear_has_packet_id();
  2105. }
  2106. inline ::client2world_protocols::e_server_msg_type packetc2w_req_send_mail_log::packet_id() const {
  2107. return static_cast< ::client2world_protocols::e_server_msg_type >(packet_id_);
  2108. }
  2109. inline void packetc2w_req_send_mail_log::set_packet_id(::client2world_protocols::e_server_msg_type value) {
  2110. assert(::client2world_protocols::e_server_msg_type_IsValid(value));
  2111. set_has_packet_id();
  2112. packet_id_ = value;
  2113. }
  2114. // optional int32 lastTime = 2;
  2115. inline bool packetc2w_req_send_mail_log::has_lasttime() const {
  2116. return (_has_bits_[0] & 0x00000002u) != 0;
  2117. }
  2118. inline void packetc2w_req_send_mail_log::set_has_lasttime() {
  2119. _has_bits_[0] |= 0x00000002u;
  2120. }
  2121. inline void packetc2w_req_send_mail_log::clear_has_lasttime() {
  2122. _has_bits_[0] &= ~0x00000002u;
  2123. }
  2124. inline void packetc2w_req_send_mail_log::clear_lasttime() {
  2125. lasttime_ = 0;
  2126. clear_has_lasttime();
  2127. }
  2128. inline ::google::protobuf::int32 packetc2w_req_send_mail_log::lasttime() const {
  2129. return lasttime_;
  2130. }
  2131. inline void packetc2w_req_send_mail_log::set_lasttime(::google::protobuf::int32 value) {
  2132. set_has_lasttime();
  2133. lasttime_ = value;
  2134. }
  2135. // -------------------------------------------------------------------
  2136. // SendMailLogInfo
  2137. // optional int32 sendTime = 1;
  2138. inline bool SendMailLogInfo::has_sendtime() const {
  2139. return (_has_bits_[0] & 0x00000001u) != 0;
  2140. }
  2141. inline void SendMailLogInfo::set_has_sendtime() {
  2142. _has_bits_[0] |= 0x00000001u;
  2143. }
  2144. inline void SendMailLogInfo::clear_has_sendtime() {
  2145. _has_bits_[0] &= ~0x00000001u;
  2146. }
  2147. inline void SendMailLogInfo::clear_sendtime() {
  2148. sendtime_ = 0;
  2149. clear_has_sendtime();
  2150. }
  2151. inline ::google::protobuf::int32 SendMailLogInfo::sendtime() const {
  2152. return sendtime_;
  2153. }
  2154. inline void SendMailLogInfo::set_sendtime(::google::protobuf::int32 value) {
  2155. set_has_sendtime();
  2156. sendtime_ = value;
  2157. }
  2158. // optional int32 firendId = 2;
  2159. inline bool SendMailLogInfo::has_firendid() const {
  2160. return (_has_bits_[0] & 0x00000002u) != 0;
  2161. }
  2162. inline void SendMailLogInfo::set_has_firendid() {
  2163. _has_bits_[0] |= 0x00000002u;
  2164. }
  2165. inline void SendMailLogInfo::clear_has_firendid() {
  2166. _has_bits_[0] &= ~0x00000002u;
  2167. }
  2168. inline void SendMailLogInfo::clear_firendid() {
  2169. firendid_ = 0;
  2170. clear_has_firendid();
  2171. }
  2172. inline ::google::protobuf::int32 SendMailLogInfo::firendid() const {
  2173. return firendid_;
  2174. }
  2175. inline void SendMailLogInfo::set_firendid(::google::protobuf::int32 value) {
  2176. set_has_firendid();
  2177. firendid_ = value;
  2178. }
  2179. // optional string content = 3;
  2180. inline bool SendMailLogInfo::has_content() const {
  2181. return (_has_bits_[0] & 0x00000004u) != 0;
  2182. }
  2183. inline void SendMailLogInfo::set_has_content() {
  2184. _has_bits_[0] |= 0x00000004u;
  2185. }
  2186. inline void SendMailLogInfo::clear_has_content() {
  2187. _has_bits_[0] &= ~0x00000004u;
  2188. }
  2189. inline void SendMailLogInfo::clear_content() {
  2190. if (content_ != &::google::protobuf::internal::kEmptyString) {
  2191. content_->clear();
  2192. }
  2193. clear_has_content();
  2194. }
  2195. inline const ::std::string& SendMailLogInfo::content() const {
  2196. return *content_;
  2197. }
  2198. inline void SendMailLogInfo::set_content(const ::std::string& value) {
  2199. set_has_content();
  2200. if (content_ == &::google::protobuf::internal::kEmptyString) {
  2201. content_ = new ::std::string;
  2202. }
  2203. content_->assign(value);
  2204. }
  2205. inline void SendMailLogInfo::set_content(const char* value) {
  2206. set_has_content();
  2207. if (content_ == &::google::protobuf::internal::kEmptyString) {
  2208. content_ = new ::std::string;
  2209. }
  2210. content_->assign(value);
  2211. }
  2212. inline void SendMailLogInfo::set_content(const char* value, size_t size) {
  2213. set_has_content();
  2214. if (content_ == &::google::protobuf::internal::kEmptyString) {
  2215. content_ = new ::std::string;
  2216. }
  2217. content_->assign(reinterpret_cast<const char*>(value), size);
  2218. }
  2219. inline ::std::string* SendMailLogInfo::mutable_content() {
  2220. set_has_content();
  2221. if (content_ == &::google::protobuf::internal::kEmptyString) {
  2222. content_ = new ::std::string;
  2223. }
  2224. return content_;
  2225. }
  2226. inline ::std::string* SendMailLogInfo::release_content() {
  2227. clear_has_content();
  2228. if (content_ == &::google::protobuf::internal::kEmptyString) {
  2229. return NULL;
  2230. } else {
  2231. ::std::string* temp = content_;
  2232. content_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  2233. return temp;
  2234. }
  2235. }
  2236. inline void SendMailLogInfo::set_allocated_content(::std::string* content) {
  2237. if (content_ != &::google::protobuf::internal::kEmptyString) {
  2238. delete content_;
  2239. }
  2240. if (content) {
  2241. set_has_content();
  2242. content_ = content;
  2243. } else {
  2244. clear_has_content();
  2245. content_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  2246. }
  2247. }
  2248. // optional string mailId = 4;
  2249. inline bool SendMailLogInfo::has_mailid() const {
  2250. return (_has_bits_[0] & 0x00000008u) != 0;
  2251. }
  2252. inline void SendMailLogInfo::set_has_mailid() {
  2253. _has_bits_[0] |= 0x00000008u;
  2254. }
  2255. inline void SendMailLogInfo::clear_has_mailid() {
  2256. _has_bits_[0] &= ~0x00000008u;
  2257. }
  2258. inline void SendMailLogInfo::clear_mailid() {
  2259. if (mailid_ != &::google::protobuf::internal::kEmptyString) {
  2260. mailid_->clear();
  2261. }
  2262. clear_has_mailid();
  2263. }
  2264. inline const ::std::string& SendMailLogInfo::mailid() const {
  2265. return *mailid_;
  2266. }
  2267. inline void SendMailLogInfo::set_mailid(const ::std::string& value) {
  2268. set_has_mailid();
  2269. if (mailid_ == &::google::protobuf::internal::kEmptyString) {
  2270. mailid_ = new ::std::string;
  2271. }
  2272. mailid_->assign(value);
  2273. }
  2274. inline void SendMailLogInfo::set_mailid(const char* value) {
  2275. set_has_mailid();
  2276. if (mailid_ == &::google::protobuf::internal::kEmptyString) {
  2277. mailid_ = new ::std::string;
  2278. }
  2279. mailid_->assign(value);
  2280. }
  2281. inline void SendMailLogInfo::set_mailid(const char* value, size_t size) {
  2282. set_has_mailid();
  2283. if (mailid_ == &::google::protobuf::internal::kEmptyString) {
  2284. mailid_ = new ::std::string;
  2285. }
  2286. mailid_->assign(reinterpret_cast<const char*>(value), size);
  2287. }
  2288. inline ::std::string* SendMailLogInfo::mutable_mailid() {
  2289. set_has_mailid();
  2290. if (mailid_ == &::google::protobuf::internal::kEmptyString) {
  2291. mailid_ = new ::std::string;
  2292. }
  2293. return mailid_;
  2294. }
  2295. inline ::std::string* SendMailLogInfo::release_mailid() {
  2296. clear_has_mailid();
  2297. if (mailid_ == &::google::protobuf::internal::kEmptyString) {
  2298. return NULL;
  2299. } else {
  2300. ::std::string* temp = mailid_;
  2301. mailid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  2302. return temp;
  2303. }
  2304. }
  2305. inline void SendMailLogInfo::set_allocated_mailid(::std::string* mailid) {
  2306. if (mailid_ != &::google::protobuf::internal::kEmptyString) {
  2307. delete mailid_;
  2308. }
  2309. if (mailid) {
  2310. set_has_mailid();
  2311. mailid_ = mailid;
  2312. } else {
  2313. clear_has_mailid();
  2314. mailid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  2315. }
  2316. }
  2317. // optional string title = 5;
  2318. inline bool SendMailLogInfo::has_title() const {
  2319. return (_has_bits_[0] & 0x00000010u) != 0;
  2320. }
  2321. inline void SendMailLogInfo::set_has_title() {
  2322. _has_bits_[0] |= 0x00000010u;
  2323. }
  2324. inline void SendMailLogInfo::clear_has_title() {
  2325. _has_bits_[0] &= ~0x00000010u;
  2326. }
  2327. inline void SendMailLogInfo::clear_title() {
  2328. if (title_ != &::google::protobuf::internal::kEmptyString) {
  2329. title_->clear();
  2330. }
  2331. clear_has_title();
  2332. }
  2333. inline const ::std::string& SendMailLogInfo::title() const {
  2334. return *title_;
  2335. }
  2336. inline void SendMailLogInfo::set_title(const ::std::string& value) {
  2337. set_has_title();
  2338. if (title_ == &::google::protobuf::internal::kEmptyString) {
  2339. title_ = new ::std::string;
  2340. }
  2341. title_->assign(value);
  2342. }
  2343. inline void SendMailLogInfo::set_title(const char* value) {
  2344. set_has_title();
  2345. if (title_ == &::google::protobuf::internal::kEmptyString) {
  2346. title_ = new ::std::string;
  2347. }
  2348. title_->assign(value);
  2349. }
  2350. inline void SendMailLogInfo::set_title(const char* value, size_t size) {
  2351. set_has_title();
  2352. if (title_ == &::google::protobuf::internal::kEmptyString) {
  2353. title_ = new ::std::string;
  2354. }
  2355. title_->assign(reinterpret_cast<const char*>(value), size);
  2356. }
  2357. inline ::std::string* SendMailLogInfo::mutable_title() {
  2358. set_has_title();
  2359. if (title_ == &::google::protobuf::internal::kEmptyString) {
  2360. title_ = new ::std::string;
  2361. }
  2362. return title_;
  2363. }
  2364. inline ::std::string* SendMailLogInfo::release_title() {
  2365. clear_has_title();
  2366. if (title_ == &::google::protobuf::internal::kEmptyString) {
  2367. return NULL;
  2368. } else {
  2369. ::std::string* temp = title_;
  2370. title_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  2371. return temp;
  2372. }
  2373. }
  2374. inline void SendMailLogInfo::set_allocated_title(::std::string* title) {
  2375. if (title_ != &::google::protobuf::internal::kEmptyString) {
  2376. delete title_;
  2377. }
  2378. if (title) {
  2379. set_has_title();
  2380. title_ = title;
  2381. } else {
  2382. clear_has_title();
  2383. title_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  2384. }
  2385. }
  2386. // optional string friendNickName = 6;
  2387. inline bool SendMailLogInfo::has_friendnickname() const {
  2388. return (_has_bits_[0] & 0x00000020u) != 0;
  2389. }
  2390. inline void SendMailLogInfo::set_has_friendnickname() {
  2391. _has_bits_[0] |= 0x00000020u;
  2392. }
  2393. inline void SendMailLogInfo::clear_has_friendnickname() {
  2394. _has_bits_[0] &= ~0x00000020u;
  2395. }
  2396. inline void SendMailLogInfo::clear_friendnickname() {
  2397. if (friendnickname_ != &::google::protobuf::internal::kEmptyString) {
  2398. friendnickname_->clear();
  2399. }
  2400. clear_has_friendnickname();
  2401. }
  2402. inline const ::std::string& SendMailLogInfo::friendnickname() const {
  2403. return *friendnickname_;
  2404. }
  2405. inline void SendMailLogInfo::set_friendnickname(const ::std::string& value) {
  2406. set_has_friendnickname();
  2407. if (friendnickname_ == &::google::protobuf::internal::kEmptyString) {
  2408. friendnickname_ = new ::std::string;
  2409. }
  2410. friendnickname_->assign(value);
  2411. }
  2412. inline void SendMailLogInfo::set_friendnickname(const char* value) {
  2413. set_has_friendnickname();
  2414. if (friendnickname_ == &::google::protobuf::internal::kEmptyString) {
  2415. friendnickname_ = new ::std::string;
  2416. }
  2417. friendnickname_->assign(value);
  2418. }
  2419. inline void SendMailLogInfo::set_friendnickname(const char* value, size_t size) {
  2420. set_has_friendnickname();
  2421. if (friendnickname_ == &::google::protobuf::internal::kEmptyString) {
  2422. friendnickname_ = new ::std::string;
  2423. }
  2424. friendnickname_->assign(reinterpret_cast<const char*>(value), size);
  2425. }
  2426. inline ::std::string* SendMailLogInfo::mutable_friendnickname() {
  2427. set_has_friendnickname();
  2428. if (friendnickname_ == &::google::protobuf::internal::kEmptyString) {
  2429. friendnickname_ = new ::std::string;
  2430. }
  2431. return friendnickname_;
  2432. }
  2433. inline ::std::string* SendMailLogInfo::release_friendnickname() {
  2434. clear_has_friendnickname();
  2435. if (friendnickname_ == &::google::protobuf::internal::kEmptyString) {
  2436. return NULL;
  2437. } else {
  2438. ::std::string* temp = friendnickname_;
  2439. friendnickname_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  2440. return temp;
  2441. }
  2442. }
  2443. inline void SendMailLogInfo::set_allocated_friendnickname(::std::string* friendnickname) {
  2444. if (friendnickname_ != &::google::protobuf::internal::kEmptyString) {
  2445. delete friendnickname_;
  2446. }
  2447. if (friendnickname) {
  2448. set_has_friendnickname();
  2449. friendnickname_ = friendnickname;
  2450. } else {
  2451. clear_has_friendnickname();
  2452. friendnickname_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  2453. }
  2454. }
  2455. // -------------------------------------------------------------------
  2456. // packetw2c_req_send_mail_log_result
  2457. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_send_mail_log_result];
  2458. inline bool packetw2c_req_send_mail_log_result::has_packet_id() const {
  2459. return (_has_bits_[0] & 0x00000001u) != 0;
  2460. }
  2461. inline void packetw2c_req_send_mail_log_result::set_has_packet_id() {
  2462. _has_bits_[0] |= 0x00000001u;
  2463. }
  2464. inline void packetw2c_req_send_mail_log_result::clear_has_packet_id() {
  2465. _has_bits_[0] &= ~0x00000001u;
  2466. }
  2467. inline void packetw2c_req_send_mail_log_result::clear_packet_id() {
  2468. packet_id_ = 7549;
  2469. clear_has_packet_id();
  2470. }
  2471. inline ::client2world_protocols::e_server_msg_type packetw2c_req_send_mail_log_result::packet_id() const {
  2472. return static_cast< ::client2world_protocols::e_server_msg_type >(packet_id_);
  2473. }
  2474. inline void packetw2c_req_send_mail_log_result::set_packet_id(::client2world_protocols::e_server_msg_type value) {
  2475. assert(::client2world_protocols::e_server_msg_type_IsValid(value));
  2476. set_has_packet_id();
  2477. packet_id_ = value;
  2478. }
  2479. // repeated .client2world_protocols.SendMailLogInfo logList = 2;
  2480. inline int packetw2c_req_send_mail_log_result::loglist_size() const {
  2481. return loglist_.size();
  2482. }
  2483. inline void packetw2c_req_send_mail_log_result::clear_loglist() {
  2484. loglist_.Clear();
  2485. }
  2486. inline const ::client2world_protocols::SendMailLogInfo& packetw2c_req_send_mail_log_result::loglist(int index) const {
  2487. return loglist_.Get(index);
  2488. }
  2489. inline ::client2world_protocols::SendMailLogInfo* packetw2c_req_send_mail_log_result::mutable_loglist(int index) {
  2490. return loglist_.Mutable(index);
  2491. }
  2492. inline ::client2world_protocols::SendMailLogInfo* packetw2c_req_send_mail_log_result::add_loglist() {
  2493. return loglist_.Add();
  2494. }
  2495. inline const ::google::protobuf::RepeatedPtrField< ::client2world_protocols::SendMailLogInfo >&
  2496. packetw2c_req_send_mail_log_result::loglist() const {
  2497. return loglist_;
  2498. }
  2499. inline ::google::protobuf::RepeatedPtrField< ::client2world_protocols::SendMailLogInfo >*
  2500. packetw2c_req_send_mail_log_result::mutable_loglist() {
  2501. return &loglist_;
  2502. }
  2503. // optional int32 lastTime = 3;
  2504. inline bool packetw2c_req_send_mail_log_result::has_lasttime() const {
  2505. return (_has_bits_[0] & 0x00000004u) != 0;
  2506. }
  2507. inline void packetw2c_req_send_mail_log_result::set_has_lasttime() {
  2508. _has_bits_[0] |= 0x00000004u;
  2509. }
  2510. inline void packetw2c_req_send_mail_log_result::clear_has_lasttime() {
  2511. _has_bits_[0] &= ~0x00000004u;
  2512. }
  2513. inline void packetw2c_req_send_mail_log_result::clear_lasttime() {
  2514. lasttime_ = 0;
  2515. clear_has_lasttime();
  2516. }
  2517. inline ::google::protobuf::int32 packetw2c_req_send_mail_log_result::lasttime() const {
  2518. return lasttime_;
  2519. }
  2520. inline void packetw2c_req_send_mail_log_result::set_lasttime(::google::protobuf::int32 value) {
  2521. set_has_lasttime();
  2522. lasttime_ = value;
  2523. }
  2524. // -------------------------------------------------------------------
  2525. // packetc2w_remove_mail_log
  2526. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_remove_mail_log];
  2527. inline bool packetc2w_remove_mail_log::has_packet_id() const {
  2528. return (_has_bits_[0] & 0x00000001u) != 0;
  2529. }
  2530. inline void packetc2w_remove_mail_log::set_has_packet_id() {
  2531. _has_bits_[0] |= 0x00000001u;
  2532. }
  2533. inline void packetc2w_remove_mail_log::clear_has_packet_id() {
  2534. _has_bits_[0] &= ~0x00000001u;
  2535. }
  2536. inline void packetc2w_remove_mail_log::clear_packet_id() {
  2537. packet_id_ = 5046;
  2538. clear_has_packet_id();
  2539. }
  2540. inline ::client2world_protocols::e_server_msg_type packetc2w_remove_mail_log::packet_id() const {
  2541. return static_cast< ::client2world_protocols::e_server_msg_type >(packet_id_);
  2542. }
  2543. inline void packetc2w_remove_mail_log::set_packet_id(::client2world_protocols::e_server_msg_type value) {
  2544. assert(::client2world_protocols::e_server_msg_type_IsValid(value));
  2545. set_has_packet_id();
  2546. packet_id_ = value;
  2547. }
  2548. // optional string mailId = 2;
  2549. inline bool packetc2w_remove_mail_log::has_mailid() const {
  2550. return (_has_bits_[0] & 0x00000002u) != 0;
  2551. }
  2552. inline void packetc2w_remove_mail_log::set_has_mailid() {
  2553. _has_bits_[0] |= 0x00000002u;
  2554. }
  2555. inline void packetc2w_remove_mail_log::clear_has_mailid() {
  2556. _has_bits_[0] &= ~0x00000002u;
  2557. }
  2558. inline void packetc2w_remove_mail_log::clear_mailid() {
  2559. if (mailid_ != &::google::protobuf::internal::kEmptyString) {
  2560. mailid_->clear();
  2561. }
  2562. clear_has_mailid();
  2563. }
  2564. inline const ::std::string& packetc2w_remove_mail_log::mailid() const {
  2565. return *mailid_;
  2566. }
  2567. inline void packetc2w_remove_mail_log::set_mailid(const ::std::string& value) {
  2568. set_has_mailid();
  2569. if (mailid_ == &::google::protobuf::internal::kEmptyString) {
  2570. mailid_ = new ::std::string;
  2571. }
  2572. mailid_->assign(value);
  2573. }
  2574. inline void packetc2w_remove_mail_log::set_mailid(const char* value) {
  2575. set_has_mailid();
  2576. if (mailid_ == &::google::protobuf::internal::kEmptyString) {
  2577. mailid_ = new ::std::string;
  2578. }
  2579. mailid_->assign(value);
  2580. }
  2581. inline void packetc2w_remove_mail_log::set_mailid(const char* value, size_t size) {
  2582. set_has_mailid();
  2583. if (mailid_ == &::google::protobuf::internal::kEmptyString) {
  2584. mailid_ = new ::std::string;
  2585. }
  2586. mailid_->assign(reinterpret_cast<const char*>(value), size);
  2587. }
  2588. inline ::std::string* packetc2w_remove_mail_log::mutable_mailid() {
  2589. set_has_mailid();
  2590. if (mailid_ == &::google::protobuf::internal::kEmptyString) {
  2591. mailid_ = new ::std::string;
  2592. }
  2593. return mailid_;
  2594. }
  2595. inline ::std::string* packetc2w_remove_mail_log::release_mailid() {
  2596. clear_has_mailid();
  2597. if (mailid_ == &::google::protobuf::internal::kEmptyString) {
  2598. return NULL;
  2599. } else {
  2600. ::std::string* temp = mailid_;
  2601. mailid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  2602. return temp;
  2603. }
  2604. }
  2605. inline void packetc2w_remove_mail_log::set_allocated_mailid(::std::string* mailid) {
  2606. if (mailid_ != &::google::protobuf::internal::kEmptyString) {
  2607. delete mailid_;
  2608. }
  2609. if (mailid) {
  2610. set_has_mailid();
  2611. mailid_ = mailid;
  2612. } else {
  2613. clear_has_mailid();
  2614. mailid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  2615. }
  2616. }
  2617. // -------------------------------------------------------------------
  2618. // packetw2c_remove_mail_log_result
  2619. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_remove_mail_log_result];
  2620. inline bool packetw2c_remove_mail_log_result::has_packet_id() const {
  2621. return (_has_bits_[0] & 0x00000001u) != 0;
  2622. }
  2623. inline void packetw2c_remove_mail_log_result::set_has_packet_id() {
  2624. _has_bits_[0] |= 0x00000001u;
  2625. }
  2626. inline void packetw2c_remove_mail_log_result::clear_has_packet_id() {
  2627. _has_bits_[0] &= ~0x00000001u;
  2628. }
  2629. inline void packetw2c_remove_mail_log_result::clear_packet_id() {
  2630. packet_id_ = 7550;
  2631. clear_has_packet_id();
  2632. }
  2633. inline ::client2world_protocols::e_server_msg_type packetw2c_remove_mail_log_result::packet_id() const {
  2634. return static_cast< ::client2world_protocols::e_server_msg_type >(packet_id_);
  2635. }
  2636. inline void packetw2c_remove_mail_log_result::set_packet_id(::client2world_protocols::e_server_msg_type value) {
  2637. assert(::client2world_protocols::e_server_msg_type_IsValid(value));
  2638. set_has_packet_id();
  2639. packet_id_ = value;
  2640. }
  2641. // optional string mailId = 2;
  2642. inline bool packetw2c_remove_mail_log_result::has_mailid() const {
  2643. return (_has_bits_[0] & 0x00000002u) != 0;
  2644. }
  2645. inline void packetw2c_remove_mail_log_result::set_has_mailid() {
  2646. _has_bits_[0] |= 0x00000002u;
  2647. }
  2648. inline void packetw2c_remove_mail_log_result::clear_has_mailid() {
  2649. _has_bits_[0] &= ~0x00000002u;
  2650. }
  2651. inline void packetw2c_remove_mail_log_result::clear_mailid() {
  2652. if (mailid_ != &::google::protobuf::internal::kEmptyString) {
  2653. mailid_->clear();
  2654. }
  2655. clear_has_mailid();
  2656. }
  2657. inline const ::std::string& packetw2c_remove_mail_log_result::mailid() const {
  2658. return *mailid_;
  2659. }
  2660. inline void packetw2c_remove_mail_log_result::set_mailid(const ::std::string& value) {
  2661. set_has_mailid();
  2662. if (mailid_ == &::google::protobuf::internal::kEmptyString) {
  2663. mailid_ = new ::std::string;
  2664. }
  2665. mailid_->assign(value);
  2666. }
  2667. inline void packetw2c_remove_mail_log_result::set_mailid(const char* value) {
  2668. set_has_mailid();
  2669. if (mailid_ == &::google::protobuf::internal::kEmptyString) {
  2670. mailid_ = new ::std::string;
  2671. }
  2672. mailid_->assign(value);
  2673. }
  2674. inline void packetw2c_remove_mail_log_result::set_mailid(const char* value, size_t size) {
  2675. set_has_mailid();
  2676. if (mailid_ == &::google::protobuf::internal::kEmptyString) {
  2677. mailid_ = new ::std::string;
  2678. }
  2679. mailid_->assign(reinterpret_cast<const char*>(value), size);
  2680. }
  2681. inline ::std::string* packetw2c_remove_mail_log_result::mutable_mailid() {
  2682. set_has_mailid();
  2683. if (mailid_ == &::google::protobuf::internal::kEmptyString) {
  2684. mailid_ = new ::std::string;
  2685. }
  2686. return mailid_;
  2687. }
  2688. inline ::std::string* packetw2c_remove_mail_log_result::release_mailid() {
  2689. clear_has_mailid();
  2690. if (mailid_ == &::google::protobuf::internal::kEmptyString) {
  2691. return NULL;
  2692. } else {
  2693. ::std::string* temp = mailid_;
  2694. mailid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  2695. return temp;
  2696. }
  2697. }
  2698. inline void packetw2c_remove_mail_log_result::set_allocated_mailid(::std::string* mailid) {
  2699. if (mailid_ != &::google::protobuf::internal::kEmptyString) {
  2700. delete mailid_;
  2701. }
  2702. if (mailid) {
  2703. set_has_mailid();
  2704. mailid_ = mailid;
  2705. } else {
  2706. clear_has_mailid();
  2707. mailid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  2708. }
  2709. }
  2710. // optional int32 result = 3;
  2711. inline bool packetw2c_remove_mail_log_result::has_result() const {
  2712. return (_has_bits_[0] & 0x00000004u) != 0;
  2713. }
  2714. inline void packetw2c_remove_mail_log_result::set_has_result() {
  2715. _has_bits_[0] |= 0x00000004u;
  2716. }
  2717. inline void packetw2c_remove_mail_log_result::clear_has_result() {
  2718. _has_bits_[0] &= ~0x00000004u;
  2719. }
  2720. inline void packetw2c_remove_mail_log_result::clear_result() {
  2721. result_ = 0;
  2722. clear_has_result();
  2723. }
  2724. inline ::google::protobuf::int32 packetw2c_remove_mail_log_result::result() const {
  2725. return result_;
  2726. }
  2727. inline void packetw2c_remove_mail_log_result::set_result(::google::protobuf::int32 value) {
  2728. set_has_result();
  2729. result_ = value;
  2730. }
  2731. // @@protoc_insertion_point(namespace_scope)
  2732. } // namespace client2world_protocols
  2733. #ifndef SWIG
  2734. namespace google {
  2735. namespace protobuf {
  2736. } // namespace google
  2737. } // namespace protobuf
  2738. #endif // SWIG
  2739. // @@protoc_insertion_point(global_scope)
  2740. #endif // PROTOBUF_client2world_5fmail_2eproto__INCLUDED