client2world_mail.pb.cc 157 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: client2world_mail.proto
  3. #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
  4. #include "client2world_mail.pb.h"
  5. #include <algorithm>
  6. #include <google/protobuf/stubs/common.h>
  7. #include <google/protobuf/stubs/once.h>
  8. #include <google/protobuf/io/coded_stream.h>
  9. #include <google/protobuf/wire_format_lite_inl.h>
  10. #include <google/protobuf/descriptor.h>
  11. #include <google/protobuf/generated_message_reflection.h>
  12. #include <google/protobuf/reflection_ops.h>
  13. #include <google/protobuf/wire_format.h>
  14. // @@protoc_insertion_point(includes)
  15. namespace client2world_protocols {
  16. namespace {
  17. const ::google::protobuf::Descriptor* packetc2w_get_mails_descriptor_ = NULL;
  18. const ::google::protobuf::internal::GeneratedMessageReflection*
  19. packetc2w_get_mails_reflection_ = NULL;
  20. const ::google::protobuf::Descriptor* mail_info_descriptor_ = NULL;
  21. const ::google::protobuf::internal::GeneratedMessageReflection*
  22. mail_info_reflection_ = NULL;
  23. const ::google::protobuf::Descriptor* packetw2c_get_mails_result_descriptor_ = NULL;
  24. const ::google::protobuf::internal::GeneratedMessageReflection*
  25. packetw2c_get_mails_result_reflection_ = NULL;
  26. const ::google::protobuf::Descriptor* packetc2w_recv_mail_gifts_descriptor_ = NULL;
  27. const ::google::protobuf::internal::GeneratedMessageReflection*
  28. packetc2w_recv_mail_gifts_reflection_ = NULL;
  29. const ::google::protobuf::Descriptor* packetw2c_recv_mail_gifts_result_descriptor_ = NULL;
  30. const ::google::protobuf::internal::GeneratedMessageReflection*
  31. packetw2c_recv_mail_gifts_result_reflection_ = NULL;
  32. const ::google::protobuf::Descriptor* packetc2w_remove_mail_descriptor_ = NULL;
  33. const ::google::protobuf::internal::GeneratedMessageReflection*
  34. packetc2w_remove_mail_reflection_ = NULL;
  35. const ::google::protobuf::Descriptor* packetw2c_remove_mail_result_descriptor_ = NULL;
  36. const ::google::protobuf::internal::GeneratedMessageReflection*
  37. packetw2c_remove_mail_result_reflection_ = NULL;
  38. const ::google::protobuf::Descriptor* packetw2c_accept_gift_notify_descriptor_ = NULL;
  39. const ::google::protobuf::internal::GeneratedMessageReflection*
  40. packetw2c_accept_gift_notify_reflection_ = NULL;
  41. const ::google::protobuf::Descriptor* packetc2w_req_send_mail_log_descriptor_ = NULL;
  42. const ::google::protobuf::internal::GeneratedMessageReflection*
  43. packetc2w_req_send_mail_log_reflection_ = NULL;
  44. const ::google::protobuf::Descriptor* SendMailLogInfo_descriptor_ = NULL;
  45. const ::google::protobuf::internal::GeneratedMessageReflection*
  46. SendMailLogInfo_reflection_ = NULL;
  47. const ::google::protobuf::Descriptor* packetw2c_req_send_mail_log_result_descriptor_ = NULL;
  48. const ::google::protobuf::internal::GeneratedMessageReflection*
  49. packetw2c_req_send_mail_log_result_reflection_ = NULL;
  50. const ::google::protobuf::Descriptor* packetc2w_remove_mail_log_descriptor_ = NULL;
  51. const ::google::protobuf::internal::GeneratedMessageReflection*
  52. packetc2w_remove_mail_log_reflection_ = NULL;
  53. const ::google::protobuf::Descriptor* packetw2c_remove_mail_log_result_descriptor_ = NULL;
  54. const ::google::protobuf::internal::GeneratedMessageReflection*
  55. packetw2c_remove_mail_log_result_reflection_ = NULL;
  56. } // namespace
  57. void protobuf_AssignDesc_client2world_5fmail_2eproto() {
  58. protobuf_AddDesc_client2world_5fmail_2eproto();
  59. const ::google::protobuf::FileDescriptor* file =
  60. ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
  61. "client2world_mail.proto");
  62. GOOGLE_CHECK(file != NULL);
  63. packetc2w_get_mails_descriptor_ = file->message_type(0);
  64. static const int packetc2w_get_mails_offsets_[2] = {
  65. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_get_mails, packet_id_),
  66. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_get_mails, lasttime_),
  67. };
  68. packetc2w_get_mails_reflection_ =
  69. new ::google::protobuf::internal::GeneratedMessageReflection(
  70. packetc2w_get_mails_descriptor_,
  71. packetc2w_get_mails::default_instance_,
  72. packetc2w_get_mails_offsets_,
  73. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_get_mails, _has_bits_[0]),
  74. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_get_mails, _unknown_fields_),
  75. -1,
  76. ::google::protobuf::DescriptorPool::generated_pool(),
  77. ::google::protobuf::MessageFactory::generated_factory(),
  78. sizeof(packetc2w_get_mails));
  79. mail_info_descriptor_ = file->message_type(1);
  80. static const int mail_info_offsets_[8] = {
  81. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(mail_info, mailid_),
  82. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(mail_info, time_),
  83. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(mail_info, title_),
  84. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(mail_info, sender_),
  85. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(mail_info, content_),
  86. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(mail_info, isrecvive_),
  87. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(mail_info, gifts_),
  88. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(mail_info, senderid_),
  89. };
  90. mail_info_reflection_ =
  91. new ::google::protobuf::internal::GeneratedMessageReflection(
  92. mail_info_descriptor_,
  93. mail_info::default_instance_,
  94. mail_info_offsets_,
  95. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(mail_info, _has_bits_[0]),
  96. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(mail_info, _unknown_fields_),
  97. -1,
  98. ::google::protobuf::DescriptorPool::generated_pool(),
  99. ::google::protobuf::MessageFactory::generated_factory(),
  100. sizeof(mail_info));
  101. packetw2c_get_mails_result_descriptor_ = file->message_type(2);
  102. static const int packetw2c_get_mails_result_offsets_[3] = {
  103. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_get_mails_result, packet_id_),
  104. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_get_mails_result, lasttime_),
  105. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_get_mails_result, mails_),
  106. };
  107. packetw2c_get_mails_result_reflection_ =
  108. new ::google::protobuf::internal::GeneratedMessageReflection(
  109. packetw2c_get_mails_result_descriptor_,
  110. packetw2c_get_mails_result::default_instance_,
  111. packetw2c_get_mails_result_offsets_,
  112. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_get_mails_result, _has_bits_[0]),
  113. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_get_mails_result, _unknown_fields_),
  114. -1,
  115. ::google::protobuf::DescriptorPool::generated_pool(),
  116. ::google::protobuf::MessageFactory::generated_factory(),
  117. sizeof(packetw2c_get_mails_result));
  118. packetc2w_recv_mail_gifts_descriptor_ = file->message_type(3);
  119. static const int packetc2w_recv_mail_gifts_offsets_[2] = {
  120. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_recv_mail_gifts, packet_id_),
  121. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_recv_mail_gifts, mailid_),
  122. };
  123. packetc2w_recv_mail_gifts_reflection_ =
  124. new ::google::protobuf::internal::GeneratedMessageReflection(
  125. packetc2w_recv_mail_gifts_descriptor_,
  126. packetc2w_recv_mail_gifts::default_instance_,
  127. packetc2w_recv_mail_gifts_offsets_,
  128. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_recv_mail_gifts, _has_bits_[0]),
  129. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_recv_mail_gifts, _unknown_fields_),
  130. -1,
  131. ::google::protobuf::DescriptorPool::generated_pool(),
  132. ::google::protobuf::MessageFactory::generated_factory(),
  133. sizeof(packetc2w_recv_mail_gifts));
  134. packetw2c_recv_mail_gifts_result_descriptor_ = file->message_type(4);
  135. static const int packetw2c_recv_mail_gifts_result_offsets_[3] = {
  136. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_recv_mail_gifts_result, packet_id_),
  137. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_recv_mail_gifts_result, mailid_),
  138. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_recv_mail_gifts_result, result_),
  139. };
  140. packetw2c_recv_mail_gifts_result_reflection_ =
  141. new ::google::protobuf::internal::GeneratedMessageReflection(
  142. packetw2c_recv_mail_gifts_result_descriptor_,
  143. packetw2c_recv_mail_gifts_result::default_instance_,
  144. packetw2c_recv_mail_gifts_result_offsets_,
  145. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_recv_mail_gifts_result, _has_bits_[0]),
  146. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_recv_mail_gifts_result, _unknown_fields_),
  147. -1,
  148. ::google::protobuf::DescriptorPool::generated_pool(),
  149. ::google::protobuf::MessageFactory::generated_factory(),
  150. sizeof(packetw2c_recv_mail_gifts_result));
  151. packetc2w_remove_mail_descriptor_ = file->message_type(5);
  152. static const int packetc2w_remove_mail_offsets_[2] = {
  153. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_remove_mail, packet_id_),
  154. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_remove_mail, mailid_),
  155. };
  156. packetc2w_remove_mail_reflection_ =
  157. new ::google::protobuf::internal::GeneratedMessageReflection(
  158. packetc2w_remove_mail_descriptor_,
  159. packetc2w_remove_mail::default_instance_,
  160. packetc2w_remove_mail_offsets_,
  161. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_remove_mail, _has_bits_[0]),
  162. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_remove_mail, _unknown_fields_),
  163. -1,
  164. ::google::protobuf::DescriptorPool::generated_pool(),
  165. ::google::protobuf::MessageFactory::generated_factory(),
  166. sizeof(packetc2w_remove_mail));
  167. packetw2c_remove_mail_result_descriptor_ = file->message_type(6);
  168. static const int packetw2c_remove_mail_result_offsets_[3] = {
  169. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_remove_mail_result, packet_id_),
  170. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_remove_mail_result, mailid_),
  171. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_remove_mail_result, result_),
  172. };
  173. packetw2c_remove_mail_result_reflection_ =
  174. new ::google::protobuf::internal::GeneratedMessageReflection(
  175. packetw2c_remove_mail_result_descriptor_,
  176. packetw2c_remove_mail_result::default_instance_,
  177. packetw2c_remove_mail_result_offsets_,
  178. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_remove_mail_result, _has_bits_[0]),
  179. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_remove_mail_result, _unknown_fields_),
  180. -1,
  181. ::google::protobuf::DescriptorPool::generated_pool(),
  182. ::google::protobuf::MessageFactory::generated_factory(),
  183. sizeof(packetw2c_remove_mail_result));
  184. packetw2c_accept_gift_notify_descriptor_ = file->message_type(7);
  185. static const int packetw2c_accept_gift_notify_offsets_[1] = {
  186. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_accept_gift_notify, packet_id_),
  187. };
  188. packetw2c_accept_gift_notify_reflection_ =
  189. new ::google::protobuf::internal::GeneratedMessageReflection(
  190. packetw2c_accept_gift_notify_descriptor_,
  191. packetw2c_accept_gift_notify::default_instance_,
  192. packetw2c_accept_gift_notify_offsets_,
  193. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_accept_gift_notify, _has_bits_[0]),
  194. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_accept_gift_notify, _unknown_fields_),
  195. -1,
  196. ::google::protobuf::DescriptorPool::generated_pool(),
  197. ::google::protobuf::MessageFactory::generated_factory(),
  198. sizeof(packetw2c_accept_gift_notify));
  199. packetc2w_req_send_mail_log_descriptor_ = file->message_type(8);
  200. static const int packetc2w_req_send_mail_log_offsets_[2] = {
  201. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_send_mail_log, packet_id_),
  202. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_send_mail_log, lasttime_),
  203. };
  204. packetc2w_req_send_mail_log_reflection_ =
  205. new ::google::protobuf::internal::GeneratedMessageReflection(
  206. packetc2w_req_send_mail_log_descriptor_,
  207. packetc2w_req_send_mail_log::default_instance_,
  208. packetc2w_req_send_mail_log_offsets_,
  209. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_send_mail_log, _has_bits_[0]),
  210. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_send_mail_log, _unknown_fields_),
  211. -1,
  212. ::google::protobuf::DescriptorPool::generated_pool(),
  213. ::google::protobuf::MessageFactory::generated_factory(),
  214. sizeof(packetc2w_req_send_mail_log));
  215. SendMailLogInfo_descriptor_ = file->message_type(9);
  216. static const int SendMailLogInfo_offsets_[6] = {
  217. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendMailLogInfo, sendtime_),
  218. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendMailLogInfo, firendid_),
  219. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendMailLogInfo, content_),
  220. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendMailLogInfo, mailid_),
  221. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendMailLogInfo, title_),
  222. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendMailLogInfo, friendnickname_),
  223. };
  224. SendMailLogInfo_reflection_ =
  225. new ::google::protobuf::internal::GeneratedMessageReflection(
  226. SendMailLogInfo_descriptor_,
  227. SendMailLogInfo::default_instance_,
  228. SendMailLogInfo_offsets_,
  229. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendMailLogInfo, _has_bits_[0]),
  230. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendMailLogInfo, _unknown_fields_),
  231. -1,
  232. ::google::protobuf::DescriptorPool::generated_pool(),
  233. ::google::protobuf::MessageFactory::generated_factory(),
  234. sizeof(SendMailLogInfo));
  235. packetw2c_req_send_mail_log_result_descriptor_ = file->message_type(10);
  236. static const int packetw2c_req_send_mail_log_result_offsets_[3] = {
  237. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_send_mail_log_result, packet_id_),
  238. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_send_mail_log_result, loglist_),
  239. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_send_mail_log_result, lasttime_),
  240. };
  241. packetw2c_req_send_mail_log_result_reflection_ =
  242. new ::google::protobuf::internal::GeneratedMessageReflection(
  243. packetw2c_req_send_mail_log_result_descriptor_,
  244. packetw2c_req_send_mail_log_result::default_instance_,
  245. packetw2c_req_send_mail_log_result_offsets_,
  246. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_send_mail_log_result, _has_bits_[0]),
  247. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_send_mail_log_result, _unknown_fields_),
  248. -1,
  249. ::google::protobuf::DescriptorPool::generated_pool(),
  250. ::google::protobuf::MessageFactory::generated_factory(),
  251. sizeof(packetw2c_req_send_mail_log_result));
  252. packetc2w_remove_mail_log_descriptor_ = file->message_type(11);
  253. static const int packetc2w_remove_mail_log_offsets_[2] = {
  254. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_remove_mail_log, packet_id_),
  255. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_remove_mail_log, mailid_),
  256. };
  257. packetc2w_remove_mail_log_reflection_ =
  258. new ::google::protobuf::internal::GeneratedMessageReflection(
  259. packetc2w_remove_mail_log_descriptor_,
  260. packetc2w_remove_mail_log::default_instance_,
  261. packetc2w_remove_mail_log_offsets_,
  262. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_remove_mail_log, _has_bits_[0]),
  263. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_remove_mail_log, _unknown_fields_),
  264. -1,
  265. ::google::protobuf::DescriptorPool::generated_pool(),
  266. ::google::protobuf::MessageFactory::generated_factory(),
  267. sizeof(packetc2w_remove_mail_log));
  268. packetw2c_remove_mail_log_result_descriptor_ = file->message_type(12);
  269. static const int packetw2c_remove_mail_log_result_offsets_[3] = {
  270. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_remove_mail_log_result, packet_id_),
  271. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_remove_mail_log_result, mailid_),
  272. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_remove_mail_log_result, result_),
  273. };
  274. packetw2c_remove_mail_log_result_reflection_ =
  275. new ::google::protobuf::internal::GeneratedMessageReflection(
  276. packetw2c_remove_mail_log_result_descriptor_,
  277. packetw2c_remove_mail_log_result::default_instance_,
  278. packetw2c_remove_mail_log_result_offsets_,
  279. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_remove_mail_log_result, _has_bits_[0]),
  280. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_remove_mail_log_result, _unknown_fields_),
  281. -1,
  282. ::google::protobuf::DescriptorPool::generated_pool(),
  283. ::google::protobuf::MessageFactory::generated_factory(),
  284. sizeof(packetw2c_remove_mail_log_result));
  285. }
  286. namespace {
  287. GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
  288. inline void protobuf_AssignDescriptorsOnce() {
  289. ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
  290. &protobuf_AssignDesc_client2world_5fmail_2eproto);
  291. }
  292. void protobuf_RegisterTypes(const ::std::string&) {
  293. protobuf_AssignDescriptorsOnce();
  294. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  295. packetc2w_get_mails_descriptor_, &packetc2w_get_mails::default_instance());
  296. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  297. mail_info_descriptor_, &mail_info::default_instance());
  298. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  299. packetw2c_get_mails_result_descriptor_, &packetw2c_get_mails_result::default_instance());
  300. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  301. packetc2w_recv_mail_gifts_descriptor_, &packetc2w_recv_mail_gifts::default_instance());
  302. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  303. packetw2c_recv_mail_gifts_result_descriptor_, &packetw2c_recv_mail_gifts_result::default_instance());
  304. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  305. packetc2w_remove_mail_descriptor_, &packetc2w_remove_mail::default_instance());
  306. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  307. packetw2c_remove_mail_result_descriptor_, &packetw2c_remove_mail_result::default_instance());
  308. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  309. packetw2c_accept_gift_notify_descriptor_, &packetw2c_accept_gift_notify::default_instance());
  310. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  311. packetc2w_req_send_mail_log_descriptor_, &packetc2w_req_send_mail_log::default_instance());
  312. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  313. SendMailLogInfo_descriptor_, &SendMailLogInfo::default_instance());
  314. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  315. packetw2c_req_send_mail_log_result_descriptor_, &packetw2c_req_send_mail_log_result::default_instance());
  316. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  317. packetc2w_remove_mail_log_descriptor_, &packetc2w_remove_mail_log::default_instance());
  318. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  319. packetw2c_remove_mail_log_result_descriptor_, &packetw2c_remove_mail_log_result::default_instance());
  320. }
  321. } // namespace
  322. void protobuf_ShutdownFile_client2world_5fmail_2eproto() {
  323. delete packetc2w_get_mails::default_instance_;
  324. delete packetc2w_get_mails_reflection_;
  325. delete mail_info::default_instance_;
  326. delete mail_info_reflection_;
  327. delete packetw2c_get_mails_result::default_instance_;
  328. delete packetw2c_get_mails_result_reflection_;
  329. delete packetc2w_recv_mail_gifts::default_instance_;
  330. delete packetc2w_recv_mail_gifts_reflection_;
  331. delete packetw2c_recv_mail_gifts_result::default_instance_;
  332. delete packetw2c_recv_mail_gifts_result_reflection_;
  333. delete packetc2w_remove_mail::default_instance_;
  334. delete packetc2w_remove_mail_reflection_;
  335. delete packetw2c_remove_mail_result::default_instance_;
  336. delete packetw2c_remove_mail_result_reflection_;
  337. delete packetw2c_accept_gift_notify::default_instance_;
  338. delete packetw2c_accept_gift_notify_reflection_;
  339. delete packetc2w_req_send_mail_log::default_instance_;
  340. delete packetc2w_req_send_mail_log_reflection_;
  341. delete SendMailLogInfo::default_instance_;
  342. delete SendMailLogInfo_reflection_;
  343. delete packetw2c_req_send_mail_log_result::default_instance_;
  344. delete packetw2c_req_send_mail_log_result_reflection_;
  345. delete packetc2w_remove_mail_log::default_instance_;
  346. delete packetc2w_remove_mail_log_reflection_;
  347. delete packetw2c_remove_mail_log_result::default_instance_;
  348. delete packetw2c_remove_mail_log_result_reflection_;
  349. }
  350. void protobuf_AddDesc_client2world_5fmail_2eproto() {
  351. static bool already_here = false;
  352. if (already_here) return;
  353. already_here = true;
  354. GOOGLE_PROTOBUF_VERIFY_VERSION;
  355. ::client2world_protocols::protobuf_AddDesc_client2world_5fmsg_5ftype_2eproto();
  356. ::msg_type_def::protobuf_AddDesc_msg_5ftype_5fdef_2eproto();
  357. ::msg_info_def::protobuf_AddDesc_msg_5finfo_5fdef_2eproto();
  358. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  359. "\n\027client2world_mail.proto\022\026client2world_"
  360. "protocols\032\033client2world_msg_type.proto\032\022"
  361. "msg_type_def.proto\032\022msg_info_def.proto\"z"
  362. "\n\023packetc2w_get_mails\022Q\n\tpacket_id\030\001 \001(\016"
  363. "2).client2world_protocols.e_server_msg_t"
  364. "ype:\023e_mst_c2w_get_mails\022\020\n\010lastTime\030\002 \001"
  365. "(\005\"\245\001\n\tmail_info\022\016\n\006mailId\030\001 \001(\t\022\014\n\004time"
  366. "\030\002 \001(\005\022\r\n\005title\030\003 \001(\t\022\016\n\006sender\030\004 \001(\t\022\017\n"
  367. "\007content\030\005 \001(\t\022\021\n\tisRecvive\030\006 \001(\010\022%\n\005gif"
  368. "ts\030\007 \003(\0132\026.msg_info_def.msg_gift\022\020\n\010send"
  369. "erId\030\010 \001(\005\"\272\001\n\032packetw2c_get_mails_resul"
  370. "t\022X\n\tpacket_id\030\001 \001(\0162).client2world_prot"
  371. "ocols.e_server_msg_type:\032e_mst_w2c_get_m"
  372. "ails_result\022\020\n\010lastTime\030\002 \001(\005\0220\n\005mails\030\003"
  373. " \003(\0132!.client2world_protocols.mail_info\""
  374. "\204\001\n\031packetc2w_recv_mail_gifts\022W\n\tpacket_"
  375. "id\030\001 \001(\0162).client2world_protocols.e_serv"
  376. "er_msg_type:\031e_mst_c2w_recv_mail_gifts\022\016"
  377. "\n\006mailId\030\002 \001(\t\"\242\001\n packetw2c_recv_mail_g"
  378. "ifts_result\022^\n\tpacket_id\030\001 \001(\0162).client2"
  379. "world_protocols.e_server_msg_type: e_mst"
  380. "_w2c_recv_mail_gifts_result\022\016\n\006mailId\030\002 "
  381. "\001(\t\022\016\n\006result\030\003 \001(\005\"|\n\025packetc2w_remove_"
  382. "mail\022S\n\tpacket_id\030\001 \001(\0162).client2world_p"
  383. "rotocols.e_server_msg_type:\025e_mst_c2w_re"
  384. "move_mail\022\016\n\006mailId\030\002 \001(\t\"\232\001\n\034packetw2c_"
  385. "remove_mail_result\022Z\n\tpacket_id\030\001 \001(\0162)."
  386. "client2world_protocols.e_server_msg_type"
  387. ":\034e_mst_w2c_remove_mail_result\022\016\n\006mailId"
  388. "\030\002 \001(\t\022\016\n\006result\030\003 \001(\005\"z\n\034packetw2c_acce"
  389. "pt_gift_notify\022Z\n\tpacket_id\030\001 \001(\0162).clie"
  390. "nt2world_protocols.e_server_msg_type:\034e_"
  391. "mst_w2c_accept_gift_notify\"\212\001\n\033packetc2w"
  392. "_req_send_mail_log\022Y\n\tpacket_id\030\001 \001(\0162)."
  393. "client2world_protocols.e_server_msg_type"
  394. ":\033e_mst_c2w_req_send_mail_log\022\020\n\010lastTim"
  395. "e\030\002 \001(\005\"}\n\017SendMailLogInfo\022\020\n\010sendTime\030\001"
  396. " \001(\005\022\020\n\010firendId\030\002 \001(\005\022\017\n\007content\030\003 \001(\t\022"
  397. "\016\n\006mailId\030\004 \001(\t\022\r\n\005title\030\005 \001(\t\022\026\n\016friend"
  398. "NickName\030\006 \001(\t\"\322\001\n\"packetw2c_req_send_ma"
  399. "il_log_result\022`\n\tpacket_id\030\001 \001(\0162).clien"
  400. "t2world_protocols.e_server_msg_type:\"e_m"
  401. "st_w2c_req_send_mail_log_result\0228\n\007logLi"
  402. "st\030\002 \003(\0132\'.client2world_protocols.SendMa"
  403. "ilLogInfo\022\020\n\010lastTime\030\003 \001(\005\"\204\001\n\031packetc2"
  404. "w_remove_mail_log\022W\n\tpacket_id\030\001 \001(\0162).c"
  405. "lient2world_protocols.e_server_msg_type:"
  406. "\031e_mst_c2w_remove_mail_log\022\016\n\006mailId\030\002 \001"
  407. "(\t\"\242\001\n packetw2c_remove_mail_log_result\022"
  408. "^\n\tpacket_id\030\001 \001(\0162).client2world_protoc"
  409. "ols.e_server_msg_type: e_mst_w2c_remove_"
  410. "mail_log_result\022\016\n\006mailId\030\002 \001(\t\022\016\n\006resul"
  411. "t\030\003 \001(\005", 2087);
  412. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  413. "client2world_mail.proto", &protobuf_RegisterTypes);
  414. packetc2w_get_mails::default_instance_ = new packetc2w_get_mails();
  415. mail_info::default_instance_ = new mail_info();
  416. packetw2c_get_mails_result::default_instance_ = new packetw2c_get_mails_result();
  417. packetc2w_recv_mail_gifts::default_instance_ = new packetc2w_recv_mail_gifts();
  418. packetw2c_recv_mail_gifts_result::default_instance_ = new packetw2c_recv_mail_gifts_result();
  419. packetc2w_remove_mail::default_instance_ = new packetc2w_remove_mail();
  420. packetw2c_remove_mail_result::default_instance_ = new packetw2c_remove_mail_result();
  421. packetw2c_accept_gift_notify::default_instance_ = new packetw2c_accept_gift_notify();
  422. packetc2w_req_send_mail_log::default_instance_ = new packetc2w_req_send_mail_log();
  423. SendMailLogInfo::default_instance_ = new SendMailLogInfo();
  424. packetw2c_req_send_mail_log_result::default_instance_ = new packetw2c_req_send_mail_log_result();
  425. packetc2w_remove_mail_log::default_instance_ = new packetc2w_remove_mail_log();
  426. packetw2c_remove_mail_log_result::default_instance_ = new packetw2c_remove_mail_log_result();
  427. packetc2w_get_mails::default_instance_->InitAsDefaultInstance();
  428. mail_info::default_instance_->InitAsDefaultInstance();
  429. packetw2c_get_mails_result::default_instance_->InitAsDefaultInstance();
  430. packetc2w_recv_mail_gifts::default_instance_->InitAsDefaultInstance();
  431. packetw2c_recv_mail_gifts_result::default_instance_->InitAsDefaultInstance();
  432. packetc2w_remove_mail::default_instance_->InitAsDefaultInstance();
  433. packetw2c_remove_mail_result::default_instance_->InitAsDefaultInstance();
  434. packetw2c_accept_gift_notify::default_instance_->InitAsDefaultInstance();
  435. packetc2w_req_send_mail_log::default_instance_->InitAsDefaultInstance();
  436. SendMailLogInfo::default_instance_->InitAsDefaultInstance();
  437. packetw2c_req_send_mail_log_result::default_instance_->InitAsDefaultInstance();
  438. packetc2w_remove_mail_log::default_instance_->InitAsDefaultInstance();
  439. packetw2c_remove_mail_log_result::default_instance_->InitAsDefaultInstance();
  440. ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_client2world_5fmail_2eproto);
  441. }
  442. // Force AddDescriptors() to be called at static initialization time.
  443. struct StaticDescriptorInitializer_client2world_5fmail_2eproto {
  444. StaticDescriptorInitializer_client2world_5fmail_2eproto() {
  445. protobuf_AddDesc_client2world_5fmail_2eproto();
  446. }
  447. } static_descriptor_initializer_client2world_5fmail_2eproto_;
  448. // ===================================================================
  449. #ifndef _MSC_VER
  450. const int packetc2w_get_mails::kPacketIdFieldNumber;
  451. const int packetc2w_get_mails::kLastTimeFieldNumber;
  452. #endif // !_MSC_VER
  453. packetc2w_get_mails::packetc2w_get_mails()
  454. : ::google::protobuf::Message() {
  455. SharedCtor();
  456. }
  457. void packetc2w_get_mails::InitAsDefaultInstance() {
  458. }
  459. packetc2w_get_mails::packetc2w_get_mails(const packetc2w_get_mails& from)
  460. : ::google::protobuf::Message() {
  461. SharedCtor();
  462. MergeFrom(from);
  463. }
  464. void packetc2w_get_mails::SharedCtor() {
  465. _cached_size_ = 0;
  466. packet_id_ = 5014;
  467. lasttime_ = 0;
  468. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  469. }
  470. packetc2w_get_mails::~packetc2w_get_mails() {
  471. SharedDtor();
  472. }
  473. void packetc2w_get_mails::SharedDtor() {
  474. if (this != default_instance_) {
  475. }
  476. }
  477. void packetc2w_get_mails::SetCachedSize(int size) const {
  478. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  479. _cached_size_ = size;
  480. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  481. }
  482. const ::google::protobuf::Descriptor* packetc2w_get_mails::descriptor() {
  483. protobuf_AssignDescriptorsOnce();
  484. return packetc2w_get_mails_descriptor_;
  485. }
  486. const packetc2w_get_mails& packetc2w_get_mails::default_instance() {
  487. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fmail_2eproto();
  488. return *default_instance_;
  489. }
  490. packetc2w_get_mails* packetc2w_get_mails::default_instance_ = NULL;
  491. packetc2w_get_mails* packetc2w_get_mails::New() const {
  492. return new packetc2w_get_mails;
  493. }
  494. void packetc2w_get_mails::Clear() {
  495. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  496. packet_id_ = 5014;
  497. lasttime_ = 0;
  498. }
  499. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  500. mutable_unknown_fields()->Clear();
  501. }
  502. bool packetc2w_get_mails::MergePartialFromCodedStream(
  503. ::google::protobuf::io::CodedInputStream* input) {
  504. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  505. ::google::protobuf::uint32 tag;
  506. while ((tag = input->ReadTag()) != 0) {
  507. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  508. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_get_mails];
  509. case 1: {
  510. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  511. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  512. int value;
  513. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  514. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  515. input, &value)));
  516. if (::client2world_protocols::e_server_msg_type_IsValid(value)) {
  517. set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value));
  518. } else {
  519. mutable_unknown_fields()->AddVarint(1, value);
  520. }
  521. } else {
  522. goto handle_uninterpreted;
  523. }
  524. if (input->ExpectTag(16)) goto parse_lastTime;
  525. break;
  526. }
  527. // optional int32 lastTime = 2;
  528. case 2: {
  529. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  530. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  531. parse_lastTime:
  532. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  533. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  534. input, &lasttime_)));
  535. set_has_lasttime();
  536. } else {
  537. goto handle_uninterpreted;
  538. }
  539. if (input->ExpectAtEnd()) return true;
  540. break;
  541. }
  542. default: {
  543. handle_uninterpreted:
  544. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  545. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  546. return true;
  547. }
  548. DO_(::google::protobuf::internal::WireFormat::SkipField(
  549. input, tag, mutable_unknown_fields()));
  550. break;
  551. }
  552. }
  553. }
  554. return true;
  555. #undef DO_
  556. }
  557. void packetc2w_get_mails::SerializeWithCachedSizes(
  558. ::google::protobuf::io::CodedOutputStream* output) const {
  559. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_get_mails];
  560. if (has_packet_id()) {
  561. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  562. 1, this->packet_id(), output);
  563. }
  564. // optional int32 lastTime = 2;
  565. if (has_lasttime()) {
  566. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->lasttime(), output);
  567. }
  568. if (!unknown_fields().empty()) {
  569. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  570. unknown_fields(), output);
  571. }
  572. }
  573. ::google::protobuf::uint8* packetc2w_get_mails::SerializeWithCachedSizesToArray(
  574. ::google::protobuf::uint8* target) const {
  575. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_get_mails];
  576. if (has_packet_id()) {
  577. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  578. 1, this->packet_id(), target);
  579. }
  580. // optional int32 lastTime = 2;
  581. if (has_lasttime()) {
  582. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->lasttime(), target);
  583. }
  584. if (!unknown_fields().empty()) {
  585. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  586. unknown_fields(), target);
  587. }
  588. return target;
  589. }
  590. int packetc2w_get_mails::ByteSize() const {
  591. int total_size = 0;
  592. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  593. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_get_mails];
  594. if (has_packet_id()) {
  595. total_size += 1 +
  596. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  597. }
  598. // optional int32 lastTime = 2;
  599. if (has_lasttime()) {
  600. total_size += 1 +
  601. ::google::protobuf::internal::WireFormatLite::Int32Size(
  602. this->lasttime());
  603. }
  604. }
  605. if (!unknown_fields().empty()) {
  606. total_size +=
  607. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  608. unknown_fields());
  609. }
  610. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  611. _cached_size_ = total_size;
  612. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  613. return total_size;
  614. }
  615. void packetc2w_get_mails::MergeFrom(const ::google::protobuf::Message& from) {
  616. GOOGLE_CHECK_NE(&from, this);
  617. const packetc2w_get_mails* source =
  618. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2w_get_mails*>(
  619. &from);
  620. if (source == NULL) {
  621. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  622. } else {
  623. MergeFrom(*source);
  624. }
  625. }
  626. void packetc2w_get_mails::MergeFrom(const packetc2w_get_mails& from) {
  627. GOOGLE_CHECK_NE(&from, this);
  628. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  629. if (from.has_packet_id()) {
  630. set_packet_id(from.packet_id());
  631. }
  632. if (from.has_lasttime()) {
  633. set_lasttime(from.lasttime());
  634. }
  635. }
  636. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  637. }
  638. void packetc2w_get_mails::CopyFrom(const ::google::protobuf::Message& from) {
  639. if (&from == this) return;
  640. Clear();
  641. MergeFrom(from);
  642. }
  643. void packetc2w_get_mails::CopyFrom(const packetc2w_get_mails& from) {
  644. if (&from == this) return;
  645. Clear();
  646. MergeFrom(from);
  647. }
  648. bool packetc2w_get_mails::IsInitialized() const {
  649. return true;
  650. }
  651. void packetc2w_get_mails::Swap(packetc2w_get_mails* other) {
  652. if (other != this) {
  653. std::swap(packet_id_, other->packet_id_);
  654. std::swap(lasttime_, other->lasttime_);
  655. std::swap(_has_bits_[0], other->_has_bits_[0]);
  656. _unknown_fields_.Swap(&other->_unknown_fields_);
  657. std::swap(_cached_size_, other->_cached_size_);
  658. }
  659. }
  660. ::google::protobuf::Metadata packetc2w_get_mails::GetMetadata() const {
  661. protobuf_AssignDescriptorsOnce();
  662. ::google::protobuf::Metadata metadata;
  663. metadata.descriptor = packetc2w_get_mails_descriptor_;
  664. metadata.reflection = packetc2w_get_mails_reflection_;
  665. return metadata;
  666. }
  667. // ===================================================================
  668. #ifndef _MSC_VER
  669. const int mail_info::kMailIdFieldNumber;
  670. const int mail_info::kTimeFieldNumber;
  671. const int mail_info::kTitleFieldNumber;
  672. const int mail_info::kSenderFieldNumber;
  673. const int mail_info::kContentFieldNumber;
  674. const int mail_info::kIsRecviveFieldNumber;
  675. const int mail_info::kGiftsFieldNumber;
  676. const int mail_info::kSenderIdFieldNumber;
  677. #endif // !_MSC_VER
  678. mail_info::mail_info()
  679. : ::google::protobuf::Message() {
  680. SharedCtor();
  681. }
  682. void mail_info::InitAsDefaultInstance() {
  683. }
  684. mail_info::mail_info(const mail_info& from)
  685. : ::google::protobuf::Message() {
  686. SharedCtor();
  687. MergeFrom(from);
  688. }
  689. void mail_info::SharedCtor() {
  690. _cached_size_ = 0;
  691. mailid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  692. time_ = 0;
  693. title_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  694. sender_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  695. content_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  696. isrecvive_ = false;
  697. senderid_ = 0;
  698. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  699. }
  700. mail_info::~mail_info() {
  701. SharedDtor();
  702. }
  703. void mail_info::SharedDtor() {
  704. if (mailid_ != &::google::protobuf::internal::kEmptyString) {
  705. delete mailid_;
  706. }
  707. if (title_ != &::google::protobuf::internal::kEmptyString) {
  708. delete title_;
  709. }
  710. if (sender_ != &::google::protobuf::internal::kEmptyString) {
  711. delete sender_;
  712. }
  713. if (content_ != &::google::protobuf::internal::kEmptyString) {
  714. delete content_;
  715. }
  716. if (this != default_instance_) {
  717. }
  718. }
  719. void mail_info::SetCachedSize(int size) const {
  720. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  721. _cached_size_ = size;
  722. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  723. }
  724. const ::google::protobuf::Descriptor* mail_info::descriptor() {
  725. protobuf_AssignDescriptorsOnce();
  726. return mail_info_descriptor_;
  727. }
  728. const mail_info& mail_info::default_instance() {
  729. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fmail_2eproto();
  730. return *default_instance_;
  731. }
  732. mail_info* mail_info::default_instance_ = NULL;
  733. mail_info* mail_info::New() const {
  734. return new mail_info;
  735. }
  736. void mail_info::Clear() {
  737. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  738. if (has_mailid()) {
  739. if (mailid_ != &::google::protobuf::internal::kEmptyString) {
  740. mailid_->clear();
  741. }
  742. }
  743. time_ = 0;
  744. if (has_title()) {
  745. if (title_ != &::google::protobuf::internal::kEmptyString) {
  746. title_->clear();
  747. }
  748. }
  749. if (has_sender()) {
  750. if (sender_ != &::google::protobuf::internal::kEmptyString) {
  751. sender_->clear();
  752. }
  753. }
  754. if (has_content()) {
  755. if (content_ != &::google::protobuf::internal::kEmptyString) {
  756. content_->clear();
  757. }
  758. }
  759. isrecvive_ = false;
  760. senderid_ = 0;
  761. }
  762. gifts_.Clear();
  763. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  764. mutable_unknown_fields()->Clear();
  765. }
  766. bool mail_info::MergePartialFromCodedStream(
  767. ::google::protobuf::io::CodedInputStream* input) {
  768. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  769. ::google::protobuf::uint32 tag;
  770. while ((tag = input->ReadTag()) != 0) {
  771. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  772. // optional string mailId = 1;
  773. case 1: {
  774. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  775. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  776. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  777. input, this->mutable_mailid()));
  778. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  779. this->mailid().data(), this->mailid().length(),
  780. ::google::protobuf::internal::WireFormat::PARSE);
  781. } else {
  782. goto handle_uninterpreted;
  783. }
  784. if (input->ExpectTag(16)) goto parse_time;
  785. break;
  786. }
  787. // optional int32 time = 2;
  788. case 2: {
  789. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  790. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  791. parse_time:
  792. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  793. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  794. input, &time_)));
  795. set_has_time();
  796. } else {
  797. goto handle_uninterpreted;
  798. }
  799. if (input->ExpectTag(26)) goto parse_title;
  800. break;
  801. }
  802. // optional string title = 3;
  803. case 3: {
  804. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  805. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  806. parse_title:
  807. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  808. input, this->mutable_title()));
  809. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  810. this->title().data(), this->title().length(),
  811. ::google::protobuf::internal::WireFormat::PARSE);
  812. } else {
  813. goto handle_uninterpreted;
  814. }
  815. if (input->ExpectTag(34)) goto parse_sender;
  816. break;
  817. }
  818. // optional string sender = 4;
  819. case 4: {
  820. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  821. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  822. parse_sender:
  823. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  824. input, this->mutable_sender()));
  825. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  826. this->sender().data(), this->sender().length(),
  827. ::google::protobuf::internal::WireFormat::PARSE);
  828. } else {
  829. goto handle_uninterpreted;
  830. }
  831. if (input->ExpectTag(42)) goto parse_content;
  832. break;
  833. }
  834. // optional string content = 5;
  835. case 5: {
  836. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  837. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  838. parse_content:
  839. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  840. input, this->mutable_content()));
  841. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  842. this->content().data(), this->content().length(),
  843. ::google::protobuf::internal::WireFormat::PARSE);
  844. } else {
  845. goto handle_uninterpreted;
  846. }
  847. if (input->ExpectTag(48)) goto parse_isRecvive;
  848. break;
  849. }
  850. // optional bool isRecvive = 6;
  851. case 6: {
  852. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  853. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  854. parse_isRecvive:
  855. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  856. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  857. input, &isrecvive_)));
  858. set_has_isrecvive();
  859. } else {
  860. goto handle_uninterpreted;
  861. }
  862. if (input->ExpectTag(58)) goto parse_gifts;
  863. break;
  864. }
  865. // repeated .msg_info_def.msg_gift gifts = 7;
  866. case 7: {
  867. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  868. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  869. parse_gifts:
  870. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  871. input, add_gifts()));
  872. } else {
  873. goto handle_uninterpreted;
  874. }
  875. if (input->ExpectTag(58)) goto parse_gifts;
  876. if (input->ExpectTag(64)) goto parse_senderId;
  877. break;
  878. }
  879. // optional int32 senderId = 8;
  880. case 8: {
  881. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  882. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  883. parse_senderId:
  884. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  885. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  886. input, &senderid_)));
  887. set_has_senderid();
  888. } else {
  889. goto handle_uninterpreted;
  890. }
  891. if (input->ExpectAtEnd()) return true;
  892. break;
  893. }
  894. default: {
  895. handle_uninterpreted:
  896. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  897. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  898. return true;
  899. }
  900. DO_(::google::protobuf::internal::WireFormat::SkipField(
  901. input, tag, mutable_unknown_fields()));
  902. break;
  903. }
  904. }
  905. }
  906. return true;
  907. #undef DO_
  908. }
  909. void mail_info::SerializeWithCachedSizes(
  910. ::google::protobuf::io::CodedOutputStream* output) const {
  911. // optional string mailId = 1;
  912. if (has_mailid()) {
  913. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  914. this->mailid().data(), this->mailid().length(),
  915. ::google::protobuf::internal::WireFormat::SERIALIZE);
  916. ::google::protobuf::internal::WireFormatLite::WriteString(
  917. 1, this->mailid(), output);
  918. }
  919. // optional int32 time = 2;
  920. if (has_time()) {
  921. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->time(), output);
  922. }
  923. // optional string title = 3;
  924. if (has_title()) {
  925. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  926. this->title().data(), this->title().length(),
  927. ::google::protobuf::internal::WireFormat::SERIALIZE);
  928. ::google::protobuf::internal::WireFormatLite::WriteString(
  929. 3, this->title(), output);
  930. }
  931. // optional string sender = 4;
  932. if (has_sender()) {
  933. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  934. this->sender().data(), this->sender().length(),
  935. ::google::protobuf::internal::WireFormat::SERIALIZE);
  936. ::google::protobuf::internal::WireFormatLite::WriteString(
  937. 4, this->sender(), output);
  938. }
  939. // optional string content = 5;
  940. if (has_content()) {
  941. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  942. this->content().data(), this->content().length(),
  943. ::google::protobuf::internal::WireFormat::SERIALIZE);
  944. ::google::protobuf::internal::WireFormatLite::WriteString(
  945. 5, this->content(), output);
  946. }
  947. // optional bool isRecvive = 6;
  948. if (has_isrecvive()) {
  949. ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->isrecvive(), output);
  950. }
  951. // repeated .msg_info_def.msg_gift gifts = 7;
  952. for (int i = 0; i < this->gifts_size(); i++) {
  953. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  954. 7, this->gifts(i), output);
  955. }
  956. // optional int32 senderId = 8;
  957. if (has_senderid()) {
  958. ::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->senderid(), output);
  959. }
  960. if (!unknown_fields().empty()) {
  961. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  962. unknown_fields(), output);
  963. }
  964. }
  965. ::google::protobuf::uint8* mail_info::SerializeWithCachedSizesToArray(
  966. ::google::protobuf::uint8* target) const {
  967. // optional string mailId = 1;
  968. if (has_mailid()) {
  969. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  970. this->mailid().data(), this->mailid().length(),
  971. ::google::protobuf::internal::WireFormat::SERIALIZE);
  972. target =
  973. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  974. 1, this->mailid(), target);
  975. }
  976. // optional int32 time = 2;
  977. if (has_time()) {
  978. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->time(), target);
  979. }
  980. // optional string title = 3;
  981. if (has_title()) {
  982. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  983. this->title().data(), this->title().length(),
  984. ::google::protobuf::internal::WireFormat::SERIALIZE);
  985. target =
  986. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  987. 3, this->title(), target);
  988. }
  989. // optional string sender = 4;
  990. if (has_sender()) {
  991. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  992. this->sender().data(), this->sender().length(),
  993. ::google::protobuf::internal::WireFormat::SERIALIZE);
  994. target =
  995. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  996. 4, this->sender(), target);
  997. }
  998. // optional string content = 5;
  999. if (has_content()) {
  1000. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  1001. this->content().data(), this->content().length(),
  1002. ::google::protobuf::internal::WireFormat::SERIALIZE);
  1003. target =
  1004. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1005. 5, this->content(), target);
  1006. }
  1007. // optional bool isRecvive = 6;
  1008. if (has_isrecvive()) {
  1009. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->isrecvive(), target);
  1010. }
  1011. // repeated .msg_info_def.msg_gift gifts = 7;
  1012. for (int i = 0; i < this->gifts_size(); i++) {
  1013. target = ::google::protobuf::internal::WireFormatLite::
  1014. WriteMessageNoVirtualToArray(
  1015. 7, this->gifts(i), target);
  1016. }
  1017. // optional int32 senderId = 8;
  1018. if (has_senderid()) {
  1019. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->senderid(), target);
  1020. }
  1021. if (!unknown_fields().empty()) {
  1022. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1023. unknown_fields(), target);
  1024. }
  1025. return target;
  1026. }
  1027. int mail_info::ByteSize() const {
  1028. int total_size = 0;
  1029. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1030. // optional string mailId = 1;
  1031. if (has_mailid()) {
  1032. total_size += 1 +
  1033. ::google::protobuf::internal::WireFormatLite::StringSize(
  1034. this->mailid());
  1035. }
  1036. // optional int32 time = 2;
  1037. if (has_time()) {
  1038. total_size += 1 +
  1039. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1040. this->time());
  1041. }
  1042. // optional string title = 3;
  1043. if (has_title()) {
  1044. total_size += 1 +
  1045. ::google::protobuf::internal::WireFormatLite::StringSize(
  1046. this->title());
  1047. }
  1048. // optional string sender = 4;
  1049. if (has_sender()) {
  1050. total_size += 1 +
  1051. ::google::protobuf::internal::WireFormatLite::StringSize(
  1052. this->sender());
  1053. }
  1054. // optional string content = 5;
  1055. if (has_content()) {
  1056. total_size += 1 +
  1057. ::google::protobuf::internal::WireFormatLite::StringSize(
  1058. this->content());
  1059. }
  1060. // optional bool isRecvive = 6;
  1061. if (has_isrecvive()) {
  1062. total_size += 1 + 1;
  1063. }
  1064. // optional int32 senderId = 8;
  1065. if (has_senderid()) {
  1066. total_size += 1 +
  1067. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1068. this->senderid());
  1069. }
  1070. }
  1071. // repeated .msg_info_def.msg_gift gifts = 7;
  1072. total_size += 1 * this->gifts_size();
  1073. for (int i = 0; i < this->gifts_size(); i++) {
  1074. total_size +=
  1075. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  1076. this->gifts(i));
  1077. }
  1078. if (!unknown_fields().empty()) {
  1079. total_size +=
  1080. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1081. unknown_fields());
  1082. }
  1083. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1084. _cached_size_ = total_size;
  1085. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1086. return total_size;
  1087. }
  1088. void mail_info::MergeFrom(const ::google::protobuf::Message& from) {
  1089. GOOGLE_CHECK_NE(&from, this);
  1090. const mail_info* source =
  1091. ::google::protobuf::internal::dynamic_cast_if_available<const mail_info*>(
  1092. &from);
  1093. if (source == NULL) {
  1094. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1095. } else {
  1096. MergeFrom(*source);
  1097. }
  1098. }
  1099. void mail_info::MergeFrom(const mail_info& from) {
  1100. GOOGLE_CHECK_NE(&from, this);
  1101. gifts_.MergeFrom(from.gifts_);
  1102. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1103. if (from.has_mailid()) {
  1104. set_mailid(from.mailid());
  1105. }
  1106. if (from.has_time()) {
  1107. set_time(from.time());
  1108. }
  1109. if (from.has_title()) {
  1110. set_title(from.title());
  1111. }
  1112. if (from.has_sender()) {
  1113. set_sender(from.sender());
  1114. }
  1115. if (from.has_content()) {
  1116. set_content(from.content());
  1117. }
  1118. if (from.has_isrecvive()) {
  1119. set_isrecvive(from.isrecvive());
  1120. }
  1121. if (from.has_senderid()) {
  1122. set_senderid(from.senderid());
  1123. }
  1124. }
  1125. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  1126. }
  1127. void mail_info::CopyFrom(const ::google::protobuf::Message& from) {
  1128. if (&from == this) return;
  1129. Clear();
  1130. MergeFrom(from);
  1131. }
  1132. void mail_info::CopyFrom(const mail_info& from) {
  1133. if (&from == this) return;
  1134. Clear();
  1135. MergeFrom(from);
  1136. }
  1137. bool mail_info::IsInitialized() const {
  1138. return true;
  1139. }
  1140. void mail_info::Swap(mail_info* other) {
  1141. if (other != this) {
  1142. std::swap(mailid_, other->mailid_);
  1143. std::swap(time_, other->time_);
  1144. std::swap(title_, other->title_);
  1145. std::swap(sender_, other->sender_);
  1146. std::swap(content_, other->content_);
  1147. std::swap(isrecvive_, other->isrecvive_);
  1148. gifts_.Swap(&other->gifts_);
  1149. std::swap(senderid_, other->senderid_);
  1150. std::swap(_has_bits_[0], other->_has_bits_[0]);
  1151. _unknown_fields_.Swap(&other->_unknown_fields_);
  1152. std::swap(_cached_size_, other->_cached_size_);
  1153. }
  1154. }
  1155. ::google::protobuf::Metadata mail_info::GetMetadata() const {
  1156. protobuf_AssignDescriptorsOnce();
  1157. ::google::protobuf::Metadata metadata;
  1158. metadata.descriptor = mail_info_descriptor_;
  1159. metadata.reflection = mail_info_reflection_;
  1160. return metadata;
  1161. }
  1162. // ===================================================================
  1163. #ifndef _MSC_VER
  1164. const int packetw2c_get_mails_result::kPacketIdFieldNumber;
  1165. const int packetw2c_get_mails_result::kLastTimeFieldNumber;
  1166. const int packetw2c_get_mails_result::kMailsFieldNumber;
  1167. #endif // !_MSC_VER
  1168. packetw2c_get_mails_result::packetw2c_get_mails_result()
  1169. : ::google::protobuf::Message() {
  1170. SharedCtor();
  1171. }
  1172. void packetw2c_get_mails_result::InitAsDefaultInstance() {
  1173. }
  1174. packetw2c_get_mails_result::packetw2c_get_mails_result(const packetw2c_get_mails_result& from)
  1175. : ::google::protobuf::Message() {
  1176. SharedCtor();
  1177. MergeFrom(from);
  1178. }
  1179. void packetw2c_get_mails_result::SharedCtor() {
  1180. _cached_size_ = 0;
  1181. packet_id_ = 7513;
  1182. lasttime_ = 0;
  1183. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1184. }
  1185. packetw2c_get_mails_result::~packetw2c_get_mails_result() {
  1186. SharedDtor();
  1187. }
  1188. void packetw2c_get_mails_result::SharedDtor() {
  1189. if (this != default_instance_) {
  1190. }
  1191. }
  1192. void packetw2c_get_mails_result::SetCachedSize(int size) const {
  1193. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1194. _cached_size_ = size;
  1195. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1196. }
  1197. const ::google::protobuf::Descriptor* packetw2c_get_mails_result::descriptor() {
  1198. protobuf_AssignDescriptorsOnce();
  1199. return packetw2c_get_mails_result_descriptor_;
  1200. }
  1201. const packetw2c_get_mails_result& packetw2c_get_mails_result::default_instance() {
  1202. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fmail_2eproto();
  1203. return *default_instance_;
  1204. }
  1205. packetw2c_get_mails_result* packetw2c_get_mails_result::default_instance_ = NULL;
  1206. packetw2c_get_mails_result* packetw2c_get_mails_result::New() const {
  1207. return new packetw2c_get_mails_result;
  1208. }
  1209. void packetw2c_get_mails_result::Clear() {
  1210. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1211. packet_id_ = 7513;
  1212. lasttime_ = 0;
  1213. }
  1214. mails_.Clear();
  1215. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1216. mutable_unknown_fields()->Clear();
  1217. }
  1218. bool packetw2c_get_mails_result::MergePartialFromCodedStream(
  1219. ::google::protobuf::io::CodedInputStream* input) {
  1220. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  1221. ::google::protobuf::uint32 tag;
  1222. while ((tag = input->ReadTag()) != 0) {
  1223. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1224. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_get_mails_result];
  1225. case 1: {
  1226. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1227. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1228. int value;
  1229. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1230. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1231. input, &value)));
  1232. if (::client2world_protocols::e_server_msg_type_IsValid(value)) {
  1233. set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value));
  1234. } else {
  1235. mutable_unknown_fields()->AddVarint(1, value);
  1236. }
  1237. } else {
  1238. goto handle_uninterpreted;
  1239. }
  1240. if (input->ExpectTag(16)) goto parse_lastTime;
  1241. break;
  1242. }
  1243. // optional int32 lastTime = 2;
  1244. case 2: {
  1245. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1246. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1247. parse_lastTime:
  1248. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1249. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1250. input, &lasttime_)));
  1251. set_has_lasttime();
  1252. } else {
  1253. goto handle_uninterpreted;
  1254. }
  1255. if (input->ExpectTag(26)) goto parse_mails;
  1256. break;
  1257. }
  1258. // repeated .client2world_protocols.mail_info mails = 3;
  1259. case 3: {
  1260. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1261. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  1262. parse_mails:
  1263. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  1264. input, add_mails()));
  1265. } else {
  1266. goto handle_uninterpreted;
  1267. }
  1268. if (input->ExpectTag(26)) goto parse_mails;
  1269. if (input->ExpectAtEnd()) return true;
  1270. break;
  1271. }
  1272. default: {
  1273. handle_uninterpreted:
  1274. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1275. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  1276. return true;
  1277. }
  1278. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1279. input, tag, mutable_unknown_fields()));
  1280. break;
  1281. }
  1282. }
  1283. }
  1284. return true;
  1285. #undef DO_
  1286. }
  1287. void packetw2c_get_mails_result::SerializeWithCachedSizes(
  1288. ::google::protobuf::io::CodedOutputStream* output) const {
  1289. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_get_mails_result];
  1290. if (has_packet_id()) {
  1291. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1292. 1, this->packet_id(), output);
  1293. }
  1294. // optional int32 lastTime = 2;
  1295. if (has_lasttime()) {
  1296. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->lasttime(), output);
  1297. }
  1298. // repeated .client2world_protocols.mail_info mails = 3;
  1299. for (int i = 0; i < this->mails_size(); i++) {
  1300. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1301. 3, this->mails(i), output);
  1302. }
  1303. if (!unknown_fields().empty()) {
  1304. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1305. unknown_fields(), output);
  1306. }
  1307. }
  1308. ::google::protobuf::uint8* packetw2c_get_mails_result::SerializeWithCachedSizesToArray(
  1309. ::google::protobuf::uint8* target) const {
  1310. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_get_mails_result];
  1311. if (has_packet_id()) {
  1312. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1313. 1, this->packet_id(), target);
  1314. }
  1315. // optional int32 lastTime = 2;
  1316. if (has_lasttime()) {
  1317. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->lasttime(), target);
  1318. }
  1319. // repeated .client2world_protocols.mail_info mails = 3;
  1320. for (int i = 0; i < this->mails_size(); i++) {
  1321. target = ::google::protobuf::internal::WireFormatLite::
  1322. WriteMessageNoVirtualToArray(
  1323. 3, this->mails(i), target);
  1324. }
  1325. if (!unknown_fields().empty()) {
  1326. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1327. unknown_fields(), target);
  1328. }
  1329. return target;
  1330. }
  1331. int packetw2c_get_mails_result::ByteSize() const {
  1332. int total_size = 0;
  1333. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1334. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_get_mails_result];
  1335. if (has_packet_id()) {
  1336. total_size += 1 +
  1337. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  1338. }
  1339. // optional int32 lastTime = 2;
  1340. if (has_lasttime()) {
  1341. total_size += 1 +
  1342. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1343. this->lasttime());
  1344. }
  1345. }
  1346. // repeated .client2world_protocols.mail_info mails = 3;
  1347. total_size += 1 * this->mails_size();
  1348. for (int i = 0; i < this->mails_size(); i++) {
  1349. total_size +=
  1350. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  1351. this->mails(i));
  1352. }
  1353. if (!unknown_fields().empty()) {
  1354. total_size +=
  1355. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1356. unknown_fields());
  1357. }
  1358. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1359. _cached_size_ = total_size;
  1360. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1361. return total_size;
  1362. }
  1363. void packetw2c_get_mails_result::MergeFrom(const ::google::protobuf::Message& from) {
  1364. GOOGLE_CHECK_NE(&from, this);
  1365. const packetw2c_get_mails_result* source =
  1366. ::google::protobuf::internal::dynamic_cast_if_available<const packetw2c_get_mails_result*>(
  1367. &from);
  1368. if (source == NULL) {
  1369. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1370. } else {
  1371. MergeFrom(*source);
  1372. }
  1373. }
  1374. void packetw2c_get_mails_result::MergeFrom(const packetw2c_get_mails_result& from) {
  1375. GOOGLE_CHECK_NE(&from, this);
  1376. mails_.MergeFrom(from.mails_);
  1377. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1378. if (from.has_packet_id()) {
  1379. set_packet_id(from.packet_id());
  1380. }
  1381. if (from.has_lasttime()) {
  1382. set_lasttime(from.lasttime());
  1383. }
  1384. }
  1385. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  1386. }
  1387. void packetw2c_get_mails_result::CopyFrom(const ::google::protobuf::Message& from) {
  1388. if (&from == this) return;
  1389. Clear();
  1390. MergeFrom(from);
  1391. }
  1392. void packetw2c_get_mails_result::CopyFrom(const packetw2c_get_mails_result& from) {
  1393. if (&from == this) return;
  1394. Clear();
  1395. MergeFrom(from);
  1396. }
  1397. bool packetw2c_get_mails_result::IsInitialized() const {
  1398. return true;
  1399. }
  1400. void packetw2c_get_mails_result::Swap(packetw2c_get_mails_result* other) {
  1401. if (other != this) {
  1402. std::swap(packet_id_, other->packet_id_);
  1403. std::swap(lasttime_, other->lasttime_);
  1404. mails_.Swap(&other->mails_);
  1405. std::swap(_has_bits_[0], other->_has_bits_[0]);
  1406. _unknown_fields_.Swap(&other->_unknown_fields_);
  1407. std::swap(_cached_size_, other->_cached_size_);
  1408. }
  1409. }
  1410. ::google::protobuf::Metadata packetw2c_get_mails_result::GetMetadata() const {
  1411. protobuf_AssignDescriptorsOnce();
  1412. ::google::protobuf::Metadata metadata;
  1413. metadata.descriptor = packetw2c_get_mails_result_descriptor_;
  1414. metadata.reflection = packetw2c_get_mails_result_reflection_;
  1415. return metadata;
  1416. }
  1417. // ===================================================================
  1418. #ifndef _MSC_VER
  1419. const int packetc2w_recv_mail_gifts::kPacketIdFieldNumber;
  1420. const int packetc2w_recv_mail_gifts::kMailIdFieldNumber;
  1421. #endif // !_MSC_VER
  1422. packetc2w_recv_mail_gifts::packetc2w_recv_mail_gifts()
  1423. : ::google::protobuf::Message() {
  1424. SharedCtor();
  1425. }
  1426. void packetc2w_recv_mail_gifts::InitAsDefaultInstance() {
  1427. }
  1428. packetc2w_recv_mail_gifts::packetc2w_recv_mail_gifts(const packetc2w_recv_mail_gifts& from)
  1429. : ::google::protobuf::Message() {
  1430. SharedCtor();
  1431. MergeFrom(from);
  1432. }
  1433. void packetc2w_recv_mail_gifts::SharedCtor() {
  1434. _cached_size_ = 0;
  1435. packet_id_ = 5015;
  1436. mailid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  1437. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1438. }
  1439. packetc2w_recv_mail_gifts::~packetc2w_recv_mail_gifts() {
  1440. SharedDtor();
  1441. }
  1442. void packetc2w_recv_mail_gifts::SharedDtor() {
  1443. if (mailid_ != &::google::protobuf::internal::kEmptyString) {
  1444. delete mailid_;
  1445. }
  1446. if (this != default_instance_) {
  1447. }
  1448. }
  1449. void packetc2w_recv_mail_gifts::SetCachedSize(int size) const {
  1450. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1451. _cached_size_ = size;
  1452. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1453. }
  1454. const ::google::protobuf::Descriptor* packetc2w_recv_mail_gifts::descriptor() {
  1455. protobuf_AssignDescriptorsOnce();
  1456. return packetc2w_recv_mail_gifts_descriptor_;
  1457. }
  1458. const packetc2w_recv_mail_gifts& packetc2w_recv_mail_gifts::default_instance() {
  1459. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fmail_2eproto();
  1460. return *default_instance_;
  1461. }
  1462. packetc2w_recv_mail_gifts* packetc2w_recv_mail_gifts::default_instance_ = NULL;
  1463. packetc2w_recv_mail_gifts* packetc2w_recv_mail_gifts::New() const {
  1464. return new packetc2w_recv_mail_gifts;
  1465. }
  1466. void packetc2w_recv_mail_gifts::Clear() {
  1467. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1468. packet_id_ = 5015;
  1469. if (has_mailid()) {
  1470. if (mailid_ != &::google::protobuf::internal::kEmptyString) {
  1471. mailid_->clear();
  1472. }
  1473. }
  1474. }
  1475. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1476. mutable_unknown_fields()->Clear();
  1477. }
  1478. bool packetc2w_recv_mail_gifts::MergePartialFromCodedStream(
  1479. ::google::protobuf::io::CodedInputStream* input) {
  1480. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  1481. ::google::protobuf::uint32 tag;
  1482. while ((tag = input->ReadTag()) != 0) {
  1483. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1484. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_recv_mail_gifts];
  1485. case 1: {
  1486. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1487. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1488. int value;
  1489. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1490. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1491. input, &value)));
  1492. if (::client2world_protocols::e_server_msg_type_IsValid(value)) {
  1493. set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value));
  1494. } else {
  1495. mutable_unknown_fields()->AddVarint(1, value);
  1496. }
  1497. } else {
  1498. goto handle_uninterpreted;
  1499. }
  1500. if (input->ExpectTag(18)) goto parse_mailId;
  1501. break;
  1502. }
  1503. // optional string mailId = 2;
  1504. case 2: {
  1505. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1506. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  1507. parse_mailId:
  1508. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1509. input, this->mutable_mailid()));
  1510. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  1511. this->mailid().data(), this->mailid().length(),
  1512. ::google::protobuf::internal::WireFormat::PARSE);
  1513. } else {
  1514. goto handle_uninterpreted;
  1515. }
  1516. if (input->ExpectAtEnd()) return true;
  1517. break;
  1518. }
  1519. default: {
  1520. handle_uninterpreted:
  1521. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1522. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  1523. return true;
  1524. }
  1525. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1526. input, tag, mutable_unknown_fields()));
  1527. break;
  1528. }
  1529. }
  1530. }
  1531. return true;
  1532. #undef DO_
  1533. }
  1534. void packetc2w_recv_mail_gifts::SerializeWithCachedSizes(
  1535. ::google::protobuf::io::CodedOutputStream* output) const {
  1536. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_recv_mail_gifts];
  1537. if (has_packet_id()) {
  1538. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1539. 1, this->packet_id(), output);
  1540. }
  1541. // optional string mailId = 2;
  1542. if (has_mailid()) {
  1543. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  1544. this->mailid().data(), this->mailid().length(),
  1545. ::google::protobuf::internal::WireFormat::SERIALIZE);
  1546. ::google::protobuf::internal::WireFormatLite::WriteString(
  1547. 2, this->mailid(), output);
  1548. }
  1549. if (!unknown_fields().empty()) {
  1550. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1551. unknown_fields(), output);
  1552. }
  1553. }
  1554. ::google::protobuf::uint8* packetc2w_recv_mail_gifts::SerializeWithCachedSizesToArray(
  1555. ::google::protobuf::uint8* target) const {
  1556. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_recv_mail_gifts];
  1557. if (has_packet_id()) {
  1558. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1559. 1, this->packet_id(), target);
  1560. }
  1561. // optional string mailId = 2;
  1562. if (has_mailid()) {
  1563. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  1564. this->mailid().data(), this->mailid().length(),
  1565. ::google::protobuf::internal::WireFormat::SERIALIZE);
  1566. target =
  1567. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1568. 2, this->mailid(), target);
  1569. }
  1570. if (!unknown_fields().empty()) {
  1571. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1572. unknown_fields(), target);
  1573. }
  1574. return target;
  1575. }
  1576. int packetc2w_recv_mail_gifts::ByteSize() const {
  1577. int total_size = 0;
  1578. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1579. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_recv_mail_gifts];
  1580. if (has_packet_id()) {
  1581. total_size += 1 +
  1582. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  1583. }
  1584. // optional string mailId = 2;
  1585. if (has_mailid()) {
  1586. total_size += 1 +
  1587. ::google::protobuf::internal::WireFormatLite::StringSize(
  1588. this->mailid());
  1589. }
  1590. }
  1591. if (!unknown_fields().empty()) {
  1592. total_size +=
  1593. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1594. unknown_fields());
  1595. }
  1596. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1597. _cached_size_ = total_size;
  1598. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1599. return total_size;
  1600. }
  1601. void packetc2w_recv_mail_gifts::MergeFrom(const ::google::protobuf::Message& from) {
  1602. GOOGLE_CHECK_NE(&from, this);
  1603. const packetc2w_recv_mail_gifts* source =
  1604. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2w_recv_mail_gifts*>(
  1605. &from);
  1606. if (source == NULL) {
  1607. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1608. } else {
  1609. MergeFrom(*source);
  1610. }
  1611. }
  1612. void packetc2w_recv_mail_gifts::MergeFrom(const packetc2w_recv_mail_gifts& from) {
  1613. GOOGLE_CHECK_NE(&from, this);
  1614. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1615. if (from.has_packet_id()) {
  1616. set_packet_id(from.packet_id());
  1617. }
  1618. if (from.has_mailid()) {
  1619. set_mailid(from.mailid());
  1620. }
  1621. }
  1622. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  1623. }
  1624. void packetc2w_recv_mail_gifts::CopyFrom(const ::google::protobuf::Message& from) {
  1625. if (&from == this) return;
  1626. Clear();
  1627. MergeFrom(from);
  1628. }
  1629. void packetc2w_recv_mail_gifts::CopyFrom(const packetc2w_recv_mail_gifts& from) {
  1630. if (&from == this) return;
  1631. Clear();
  1632. MergeFrom(from);
  1633. }
  1634. bool packetc2w_recv_mail_gifts::IsInitialized() const {
  1635. return true;
  1636. }
  1637. void packetc2w_recv_mail_gifts::Swap(packetc2w_recv_mail_gifts* other) {
  1638. if (other != this) {
  1639. std::swap(packet_id_, other->packet_id_);
  1640. std::swap(mailid_, other->mailid_);
  1641. std::swap(_has_bits_[0], other->_has_bits_[0]);
  1642. _unknown_fields_.Swap(&other->_unknown_fields_);
  1643. std::swap(_cached_size_, other->_cached_size_);
  1644. }
  1645. }
  1646. ::google::protobuf::Metadata packetc2w_recv_mail_gifts::GetMetadata() const {
  1647. protobuf_AssignDescriptorsOnce();
  1648. ::google::protobuf::Metadata metadata;
  1649. metadata.descriptor = packetc2w_recv_mail_gifts_descriptor_;
  1650. metadata.reflection = packetc2w_recv_mail_gifts_reflection_;
  1651. return metadata;
  1652. }
  1653. // ===================================================================
  1654. #ifndef _MSC_VER
  1655. const int packetw2c_recv_mail_gifts_result::kPacketIdFieldNumber;
  1656. const int packetw2c_recv_mail_gifts_result::kMailIdFieldNumber;
  1657. const int packetw2c_recv_mail_gifts_result::kResultFieldNumber;
  1658. #endif // !_MSC_VER
  1659. packetw2c_recv_mail_gifts_result::packetw2c_recv_mail_gifts_result()
  1660. : ::google::protobuf::Message() {
  1661. SharedCtor();
  1662. }
  1663. void packetw2c_recv_mail_gifts_result::InitAsDefaultInstance() {
  1664. }
  1665. packetw2c_recv_mail_gifts_result::packetw2c_recv_mail_gifts_result(const packetw2c_recv_mail_gifts_result& from)
  1666. : ::google::protobuf::Message() {
  1667. SharedCtor();
  1668. MergeFrom(from);
  1669. }
  1670. void packetw2c_recv_mail_gifts_result::SharedCtor() {
  1671. _cached_size_ = 0;
  1672. packet_id_ = 7514;
  1673. mailid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  1674. result_ = 0;
  1675. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1676. }
  1677. packetw2c_recv_mail_gifts_result::~packetw2c_recv_mail_gifts_result() {
  1678. SharedDtor();
  1679. }
  1680. void packetw2c_recv_mail_gifts_result::SharedDtor() {
  1681. if (mailid_ != &::google::protobuf::internal::kEmptyString) {
  1682. delete mailid_;
  1683. }
  1684. if (this != default_instance_) {
  1685. }
  1686. }
  1687. void packetw2c_recv_mail_gifts_result::SetCachedSize(int size) const {
  1688. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1689. _cached_size_ = size;
  1690. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1691. }
  1692. const ::google::protobuf::Descriptor* packetw2c_recv_mail_gifts_result::descriptor() {
  1693. protobuf_AssignDescriptorsOnce();
  1694. return packetw2c_recv_mail_gifts_result_descriptor_;
  1695. }
  1696. const packetw2c_recv_mail_gifts_result& packetw2c_recv_mail_gifts_result::default_instance() {
  1697. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fmail_2eproto();
  1698. return *default_instance_;
  1699. }
  1700. packetw2c_recv_mail_gifts_result* packetw2c_recv_mail_gifts_result::default_instance_ = NULL;
  1701. packetw2c_recv_mail_gifts_result* packetw2c_recv_mail_gifts_result::New() const {
  1702. return new packetw2c_recv_mail_gifts_result;
  1703. }
  1704. void packetw2c_recv_mail_gifts_result::Clear() {
  1705. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1706. packet_id_ = 7514;
  1707. if (has_mailid()) {
  1708. if (mailid_ != &::google::protobuf::internal::kEmptyString) {
  1709. mailid_->clear();
  1710. }
  1711. }
  1712. result_ = 0;
  1713. }
  1714. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1715. mutable_unknown_fields()->Clear();
  1716. }
  1717. bool packetw2c_recv_mail_gifts_result::MergePartialFromCodedStream(
  1718. ::google::protobuf::io::CodedInputStream* input) {
  1719. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  1720. ::google::protobuf::uint32 tag;
  1721. while ((tag = input->ReadTag()) != 0) {
  1722. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1723. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_recv_mail_gifts_result];
  1724. case 1: {
  1725. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1726. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1727. int value;
  1728. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1729. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1730. input, &value)));
  1731. if (::client2world_protocols::e_server_msg_type_IsValid(value)) {
  1732. set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value));
  1733. } else {
  1734. mutable_unknown_fields()->AddVarint(1, value);
  1735. }
  1736. } else {
  1737. goto handle_uninterpreted;
  1738. }
  1739. if (input->ExpectTag(18)) goto parse_mailId;
  1740. break;
  1741. }
  1742. // optional string mailId = 2;
  1743. case 2: {
  1744. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1745. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  1746. parse_mailId:
  1747. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1748. input, this->mutable_mailid()));
  1749. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  1750. this->mailid().data(), this->mailid().length(),
  1751. ::google::protobuf::internal::WireFormat::PARSE);
  1752. } else {
  1753. goto handle_uninterpreted;
  1754. }
  1755. if (input->ExpectTag(24)) goto parse_result;
  1756. break;
  1757. }
  1758. // optional int32 result = 3;
  1759. case 3: {
  1760. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1761. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1762. parse_result:
  1763. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1764. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1765. input, &result_)));
  1766. set_has_result();
  1767. } else {
  1768. goto handle_uninterpreted;
  1769. }
  1770. if (input->ExpectAtEnd()) return true;
  1771. break;
  1772. }
  1773. default: {
  1774. handle_uninterpreted:
  1775. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1776. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  1777. return true;
  1778. }
  1779. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1780. input, tag, mutable_unknown_fields()));
  1781. break;
  1782. }
  1783. }
  1784. }
  1785. return true;
  1786. #undef DO_
  1787. }
  1788. void packetw2c_recv_mail_gifts_result::SerializeWithCachedSizes(
  1789. ::google::protobuf::io::CodedOutputStream* output) const {
  1790. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_recv_mail_gifts_result];
  1791. if (has_packet_id()) {
  1792. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1793. 1, this->packet_id(), output);
  1794. }
  1795. // optional string mailId = 2;
  1796. if (has_mailid()) {
  1797. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  1798. this->mailid().data(), this->mailid().length(),
  1799. ::google::protobuf::internal::WireFormat::SERIALIZE);
  1800. ::google::protobuf::internal::WireFormatLite::WriteString(
  1801. 2, this->mailid(), output);
  1802. }
  1803. // optional int32 result = 3;
  1804. if (has_result()) {
  1805. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->result(), output);
  1806. }
  1807. if (!unknown_fields().empty()) {
  1808. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1809. unknown_fields(), output);
  1810. }
  1811. }
  1812. ::google::protobuf::uint8* packetw2c_recv_mail_gifts_result::SerializeWithCachedSizesToArray(
  1813. ::google::protobuf::uint8* target) const {
  1814. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_recv_mail_gifts_result];
  1815. if (has_packet_id()) {
  1816. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1817. 1, this->packet_id(), target);
  1818. }
  1819. // optional string mailId = 2;
  1820. if (has_mailid()) {
  1821. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  1822. this->mailid().data(), this->mailid().length(),
  1823. ::google::protobuf::internal::WireFormat::SERIALIZE);
  1824. target =
  1825. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1826. 2, this->mailid(), target);
  1827. }
  1828. // optional int32 result = 3;
  1829. if (has_result()) {
  1830. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->result(), target);
  1831. }
  1832. if (!unknown_fields().empty()) {
  1833. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1834. unknown_fields(), target);
  1835. }
  1836. return target;
  1837. }
  1838. int packetw2c_recv_mail_gifts_result::ByteSize() const {
  1839. int total_size = 0;
  1840. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1841. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_recv_mail_gifts_result];
  1842. if (has_packet_id()) {
  1843. total_size += 1 +
  1844. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  1845. }
  1846. // optional string mailId = 2;
  1847. if (has_mailid()) {
  1848. total_size += 1 +
  1849. ::google::protobuf::internal::WireFormatLite::StringSize(
  1850. this->mailid());
  1851. }
  1852. // optional int32 result = 3;
  1853. if (has_result()) {
  1854. total_size += 1 +
  1855. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1856. this->result());
  1857. }
  1858. }
  1859. if (!unknown_fields().empty()) {
  1860. total_size +=
  1861. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1862. unknown_fields());
  1863. }
  1864. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1865. _cached_size_ = total_size;
  1866. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1867. return total_size;
  1868. }
  1869. void packetw2c_recv_mail_gifts_result::MergeFrom(const ::google::protobuf::Message& from) {
  1870. GOOGLE_CHECK_NE(&from, this);
  1871. const packetw2c_recv_mail_gifts_result* source =
  1872. ::google::protobuf::internal::dynamic_cast_if_available<const packetw2c_recv_mail_gifts_result*>(
  1873. &from);
  1874. if (source == NULL) {
  1875. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1876. } else {
  1877. MergeFrom(*source);
  1878. }
  1879. }
  1880. void packetw2c_recv_mail_gifts_result::MergeFrom(const packetw2c_recv_mail_gifts_result& from) {
  1881. GOOGLE_CHECK_NE(&from, this);
  1882. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1883. if (from.has_packet_id()) {
  1884. set_packet_id(from.packet_id());
  1885. }
  1886. if (from.has_mailid()) {
  1887. set_mailid(from.mailid());
  1888. }
  1889. if (from.has_result()) {
  1890. set_result(from.result());
  1891. }
  1892. }
  1893. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  1894. }
  1895. void packetw2c_recv_mail_gifts_result::CopyFrom(const ::google::protobuf::Message& from) {
  1896. if (&from == this) return;
  1897. Clear();
  1898. MergeFrom(from);
  1899. }
  1900. void packetw2c_recv_mail_gifts_result::CopyFrom(const packetw2c_recv_mail_gifts_result& from) {
  1901. if (&from == this) return;
  1902. Clear();
  1903. MergeFrom(from);
  1904. }
  1905. bool packetw2c_recv_mail_gifts_result::IsInitialized() const {
  1906. return true;
  1907. }
  1908. void packetw2c_recv_mail_gifts_result::Swap(packetw2c_recv_mail_gifts_result* other) {
  1909. if (other != this) {
  1910. std::swap(packet_id_, other->packet_id_);
  1911. std::swap(mailid_, other->mailid_);
  1912. std::swap(result_, other->result_);
  1913. std::swap(_has_bits_[0], other->_has_bits_[0]);
  1914. _unknown_fields_.Swap(&other->_unknown_fields_);
  1915. std::swap(_cached_size_, other->_cached_size_);
  1916. }
  1917. }
  1918. ::google::protobuf::Metadata packetw2c_recv_mail_gifts_result::GetMetadata() const {
  1919. protobuf_AssignDescriptorsOnce();
  1920. ::google::protobuf::Metadata metadata;
  1921. metadata.descriptor = packetw2c_recv_mail_gifts_result_descriptor_;
  1922. metadata.reflection = packetw2c_recv_mail_gifts_result_reflection_;
  1923. return metadata;
  1924. }
  1925. // ===================================================================
  1926. #ifndef _MSC_VER
  1927. const int packetc2w_remove_mail::kPacketIdFieldNumber;
  1928. const int packetc2w_remove_mail::kMailIdFieldNumber;
  1929. #endif // !_MSC_VER
  1930. packetc2w_remove_mail::packetc2w_remove_mail()
  1931. : ::google::protobuf::Message() {
  1932. SharedCtor();
  1933. }
  1934. void packetc2w_remove_mail::InitAsDefaultInstance() {
  1935. }
  1936. packetc2w_remove_mail::packetc2w_remove_mail(const packetc2w_remove_mail& from)
  1937. : ::google::protobuf::Message() {
  1938. SharedCtor();
  1939. MergeFrom(from);
  1940. }
  1941. void packetc2w_remove_mail::SharedCtor() {
  1942. _cached_size_ = 0;
  1943. packet_id_ = 5017;
  1944. mailid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  1945. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1946. }
  1947. packetc2w_remove_mail::~packetc2w_remove_mail() {
  1948. SharedDtor();
  1949. }
  1950. void packetc2w_remove_mail::SharedDtor() {
  1951. if (mailid_ != &::google::protobuf::internal::kEmptyString) {
  1952. delete mailid_;
  1953. }
  1954. if (this != default_instance_) {
  1955. }
  1956. }
  1957. void packetc2w_remove_mail::SetCachedSize(int size) const {
  1958. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1959. _cached_size_ = size;
  1960. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1961. }
  1962. const ::google::protobuf::Descriptor* packetc2w_remove_mail::descriptor() {
  1963. protobuf_AssignDescriptorsOnce();
  1964. return packetc2w_remove_mail_descriptor_;
  1965. }
  1966. const packetc2w_remove_mail& packetc2w_remove_mail::default_instance() {
  1967. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fmail_2eproto();
  1968. return *default_instance_;
  1969. }
  1970. packetc2w_remove_mail* packetc2w_remove_mail::default_instance_ = NULL;
  1971. packetc2w_remove_mail* packetc2w_remove_mail::New() const {
  1972. return new packetc2w_remove_mail;
  1973. }
  1974. void packetc2w_remove_mail::Clear() {
  1975. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1976. packet_id_ = 5017;
  1977. if (has_mailid()) {
  1978. if (mailid_ != &::google::protobuf::internal::kEmptyString) {
  1979. mailid_->clear();
  1980. }
  1981. }
  1982. }
  1983. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1984. mutable_unknown_fields()->Clear();
  1985. }
  1986. bool packetc2w_remove_mail::MergePartialFromCodedStream(
  1987. ::google::protobuf::io::CodedInputStream* input) {
  1988. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  1989. ::google::protobuf::uint32 tag;
  1990. while ((tag = input->ReadTag()) != 0) {
  1991. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1992. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_remove_mail];
  1993. case 1: {
  1994. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1995. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1996. int value;
  1997. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1998. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1999. input, &value)));
  2000. if (::client2world_protocols::e_server_msg_type_IsValid(value)) {
  2001. set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value));
  2002. } else {
  2003. mutable_unknown_fields()->AddVarint(1, value);
  2004. }
  2005. } else {
  2006. goto handle_uninterpreted;
  2007. }
  2008. if (input->ExpectTag(18)) goto parse_mailId;
  2009. break;
  2010. }
  2011. // optional string mailId = 2;
  2012. case 2: {
  2013. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2014. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  2015. parse_mailId:
  2016. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  2017. input, this->mutable_mailid()));
  2018. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  2019. this->mailid().data(), this->mailid().length(),
  2020. ::google::protobuf::internal::WireFormat::PARSE);
  2021. } else {
  2022. goto handle_uninterpreted;
  2023. }
  2024. if (input->ExpectAtEnd()) return true;
  2025. break;
  2026. }
  2027. default: {
  2028. handle_uninterpreted:
  2029. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2030. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  2031. return true;
  2032. }
  2033. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2034. input, tag, mutable_unknown_fields()));
  2035. break;
  2036. }
  2037. }
  2038. }
  2039. return true;
  2040. #undef DO_
  2041. }
  2042. void packetc2w_remove_mail::SerializeWithCachedSizes(
  2043. ::google::protobuf::io::CodedOutputStream* output) const {
  2044. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_remove_mail];
  2045. if (has_packet_id()) {
  2046. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2047. 1, this->packet_id(), output);
  2048. }
  2049. // optional string mailId = 2;
  2050. if (has_mailid()) {
  2051. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  2052. this->mailid().data(), this->mailid().length(),
  2053. ::google::protobuf::internal::WireFormat::SERIALIZE);
  2054. ::google::protobuf::internal::WireFormatLite::WriteString(
  2055. 2, this->mailid(), output);
  2056. }
  2057. if (!unknown_fields().empty()) {
  2058. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2059. unknown_fields(), output);
  2060. }
  2061. }
  2062. ::google::protobuf::uint8* packetc2w_remove_mail::SerializeWithCachedSizesToArray(
  2063. ::google::protobuf::uint8* target) const {
  2064. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_remove_mail];
  2065. if (has_packet_id()) {
  2066. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2067. 1, this->packet_id(), target);
  2068. }
  2069. // optional string mailId = 2;
  2070. if (has_mailid()) {
  2071. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  2072. this->mailid().data(), this->mailid().length(),
  2073. ::google::protobuf::internal::WireFormat::SERIALIZE);
  2074. target =
  2075. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  2076. 2, this->mailid(), target);
  2077. }
  2078. if (!unknown_fields().empty()) {
  2079. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2080. unknown_fields(), target);
  2081. }
  2082. return target;
  2083. }
  2084. int packetc2w_remove_mail::ByteSize() const {
  2085. int total_size = 0;
  2086. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2087. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_remove_mail];
  2088. if (has_packet_id()) {
  2089. total_size += 1 +
  2090. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  2091. }
  2092. // optional string mailId = 2;
  2093. if (has_mailid()) {
  2094. total_size += 1 +
  2095. ::google::protobuf::internal::WireFormatLite::StringSize(
  2096. this->mailid());
  2097. }
  2098. }
  2099. if (!unknown_fields().empty()) {
  2100. total_size +=
  2101. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2102. unknown_fields());
  2103. }
  2104. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2105. _cached_size_ = total_size;
  2106. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2107. return total_size;
  2108. }
  2109. void packetc2w_remove_mail::MergeFrom(const ::google::protobuf::Message& from) {
  2110. GOOGLE_CHECK_NE(&from, this);
  2111. const packetc2w_remove_mail* source =
  2112. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2w_remove_mail*>(
  2113. &from);
  2114. if (source == NULL) {
  2115. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2116. } else {
  2117. MergeFrom(*source);
  2118. }
  2119. }
  2120. void packetc2w_remove_mail::MergeFrom(const packetc2w_remove_mail& from) {
  2121. GOOGLE_CHECK_NE(&from, this);
  2122. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2123. if (from.has_packet_id()) {
  2124. set_packet_id(from.packet_id());
  2125. }
  2126. if (from.has_mailid()) {
  2127. set_mailid(from.mailid());
  2128. }
  2129. }
  2130. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  2131. }
  2132. void packetc2w_remove_mail::CopyFrom(const ::google::protobuf::Message& from) {
  2133. if (&from == this) return;
  2134. Clear();
  2135. MergeFrom(from);
  2136. }
  2137. void packetc2w_remove_mail::CopyFrom(const packetc2w_remove_mail& from) {
  2138. if (&from == this) return;
  2139. Clear();
  2140. MergeFrom(from);
  2141. }
  2142. bool packetc2w_remove_mail::IsInitialized() const {
  2143. return true;
  2144. }
  2145. void packetc2w_remove_mail::Swap(packetc2w_remove_mail* other) {
  2146. if (other != this) {
  2147. std::swap(packet_id_, other->packet_id_);
  2148. std::swap(mailid_, other->mailid_);
  2149. std::swap(_has_bits_[0], other->_has_bits_[0]);
  2150. _unknown_fields_.Swap(&other->_unknown_fields_);
  2151. std::swap(_cached_size_, other->_cached_size_);
  2152. }
  2153. }
  2154. ::google::protobuf::Metadata packetc2w_remove_mail::GetMetadata() const {
  2155. protobuf_AssignDescriptorsOnce();
  2156. ::google::protobuf::Metadata metadata;
  2157. metadata.descriptor = packetc2w_remove_mail_descriptor_;
  2158. metadata.reflection = packetc2w_remove_mail_reflection_;
  2159. return metadata;
  2160. }
  2161. // ===================================================================
  2162. #ifndef _MSC_VER
  2163. const int packetw2c_remove_mail_result::kPacketIdFieldNumber;
  2164. const int packetw2c_remove_mail_result::kMailIdFieldNumber;
  2165. const int packetw2c_remove_mail_result::kResultFieldNumber;
  2166. #endif // !_MSC_VER
  2167. packetw2c_remove_mail_result::packetw2c_remove_mail_result()
  2168. : ::google::protobuf::Message() {
  2169. SharedCtor();
  2170. }
  2171. void packetw2c_remove_mail_result::InitAsDefaultInstance() {
  2172. }
  2173. packetw2c_remove_mail_result::packetw2c_remove_mail_result(const packetw2c_remove_mail_result& from)
  2174. : ::google::protobuf::Message() {
  2175. SharedCtor();
  2176. MergeFrom(from);
  2177. }
  2178. void packetw2c_remove_mail_result::SharedCtor() {
  2179. _cached_size_ = 0;
  2180. packet_id_ = 7516;
  2181. mailid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  2182. result_ = 0;
  2183. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2184. }
  2185. packetw2c_remove_mail_result::~packetw2c_remove_mail_result() {
  2186. SharedDtor();
  2187. }
  2188. void packetw2c_remove_mail_result::SharedDtor() {
  2189. if (mailid_ != &::google::protobuf::internal::kEmptyString) {
  2190. delete mailid_;
  2191. }
  2192. if (this != default_instance_) {
  2193. }
  2194. }
  2195. void packetw2c_remove_mail_result::SetCachedSize(int size) const {
  2196. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2197. _cached_size_ = size;
  2198. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2199. }
  2200. const ::google::protobuf::Descriptor* packetw2c_remove_mail_result::descriptor() {
  2201. protobuf_AssignDescriptorsOnce();
  2202. return packetw2c_remove_mail_result_descriptor_;
  2203. }
  2204. const packetw2c_remove_mail_result& packetw2c_remove_mail_result::default_instance() {
  2205. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fmail_2eproto();
  2206. return *default_instance_;
  2207. }
  2208. packetw2c_remove_mail_result* packetw2c_remove_mail_result::default_instance_ = NULL;
  2209. packetw2c_remove_mail_result* packetw2c_remove_mail_result::New() const {
  2210. return new packetw2c_remove_mail_result;
  2211. }
  2212. void packetw2c_remove_mail_result::Clear() {
  2213. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2214. packet_id_ = 7516;
  2215. if (has_mailid()) {
  2216. if (mailid_ != &::google::protobuf::internal::kEmptyString) {
  2217. mailid_->clear();
  2218. }
  2219. }
  2220. result_ = 0;
  2221. }
  2222. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2223. mutable_unknown_fields()->Clear();
  2224. }
  2225. bool packetw2c_remove_mail_result::MergePartialFromCodedStream(
  2226. ::google::protobuf::io::CodedInputStream* input) {
  2227. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  2228. ::google::protobuf::uint32 tag;
  2229. while ((tag = input->ReadTag()) != 0) {
  2230. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2231. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_remove_mail_result];
  2232. case 1: {
  2233. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2234. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2235. int value;
  2236. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2237. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2238. input, &value)));
  2239. if (::client2world_protocols::e_server_msg_type_IsValid(value)) {
  2240. set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value));
  2241. } else {
  2242. mutable_unknown_fields()->AddVarint(1, value);
  2243. }
  2244. } else {
  2245. goto handle_uninterpreted;
  2246. }
  2247. if (input->ExpectTag(18)) goto parse_mailId;
  2248. break;
  2249. }
  2250. // optional string mailId = 2;
  2251. case 2: {
  2252. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2253. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  2254. parse_mailId:
  2255. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  2256. input, this->mutable_mailid()));
  2257. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  2258. this->mailid().data(), this->mailid().length(),
  2259. ::google::protobuf::internal::WireFormat::PARSE);
  2260. } else {
  2261. goto handle_uninterpreted;
  2262. }
  2263. if (input->ExpectTag(24)) goto parse_result;
  2264. break;
  2265. }
  2266. // optional int32 result = 3;
  2267. case 3: {
  2268. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2269. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2270. parse_result:
  2271. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2272. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2273. input, &result_)));
  2274. set_has_result();
  2275. } else {
  2276. goto handle_uninterpreted;
  2277. }
  2278. if (input->ExpectAtEnd()) return true;
  2279. break;
  2280. }
  2281. default: {
  2282. handle_uninterpreted:
  2283. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2284. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  2285. return true;
  2286. }
  2287. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2288. input, tag, mutable_unknown_fields()));
  2289. break;
  2290. }
  2291. }
  2292. }
  2293. return true;
  2294. #undef DO_
  2295. }
  2296. void packetw2c_remove_mail_result::SerializeWithCachedSizes(
  2297. ::google::protobuf::io::CodedOutputStream* output) const {
  2298. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_remove_mail_result];
  2299. if (has_packet_id()) {
  2300. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2301. 1, this->packet_id(), output);
  2302. }
  2303. // optional string mailId = 2;
  2304. if (has_mailid()) {
  2305. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  2306. this->mailid().data(), this->mailid().length(),
  2307. ::google::protobuf::internal::WireFormat::SERIALIZE);
  2308. ::google::protobuf::internal::WireFormatLite::WriteString(
  2309. 2, this->mailid(), output);
  2310. }
  2311. // optional int32 result = 3;
  2312. if (has_result()) {
  2313. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->result(), output);
  2314. }
  2315. if (!unknown_fields().empty()) {
  2316. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2317. unknown_fields(), output);
  2318. }
  2319. }
  2320. ::google::protobuf::uint8* packetw2c_remove_mail_result::SerializeWithCachedSizesToArray(
  2321. ::google::protobuf::uint8* target) const {
  2322. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_remove_mail_result];
  2323. if (has_packet_id()) {
  2324. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2325. 1, this->packet_id(), target);
  2326. }
  2327. // optional string mailId = 2;
  2328. if (has_mailid()) {
  2329. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  2330. this->mailid().data(), this->mailid().length(),
  2331. ::google::protobuf::internal::WireFormat::SERIALIZE);
  2332. target =
  2333. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  2334. 2, this->mailid(), target);
  2335. }
  2336. // optional int32 result = 3;
  2337. if (has_result()) {
  2338. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->result(), target);
  2339. }
  2340. if (!unknown_fields().empty()) {
  2341. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2342. unknown_fields(), target);
  2343. }
  2344. return target;
  2345. }
  2346. int packetw2c_remove_mail_result::ByteSize() const {
  2347. int total_size = 0;
  2348. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2349. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_remove_mail_result];
  2350. if (has_packet_id()) {
  2351. total_size += 1 +
  2352. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  2353. }
  2354. // optional string mailId = 2;
  2355. if (has_mailid()) {
  2356. total_size += 1 +
  2357. ::google::protobuf::internal::WireFormatLite::StringSize(
  2358. this->mailid());
  2359. }
  2360. // optional int32 result = 3;
  2361. if (has_result()) {
  2362. total_size += 1 +
  2363. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2364. this->result());
  2365. }
  2366. }
  2367. if (!unknown_fields().empty()) {
  2368. total_size +=
  2369. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2370. unknown_fields());
  2371. }
  2372. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2373. _cached_size_ = total_size;
  2374. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2375. return total_size;
  2376. }
  2377. void packetw2c_remove_mail_result::MergeFrom(const ::google::protobuf::Message& from) {
  2378. GOOGLE_CHECK_NE(&from, this);
  2379. const packetw2c_remove_mail_result* source =
  2380. ::google::protobuf::internal::dynamic_cast_if_available<const packetw2c_remove_mail_result*>(
  2381. &from);
  2382. if (source == NULL) {
  2383. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2384. } else {
  2385. MergeFrom(*source);
  2386. }
  2387. }
  2388. void packetw2c_remove_mail_result::MergeFrom(const packetw2c_remove_mail_result& from) {
  2389. GOOGLE_CHECK_NE(&from, this);
  2390. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2391. if (from.has_packet_id()) {
  2392. set_packet_id(from.packet_id());
  2393. }
  2394. if (from.has_mailid()) {
  2395. set_mailid(from.mailid());
  2396. }
  2397. if (from.has_result()) {
  2398. set_result(from.result());
  2399. }
  2400. }
  2401. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  2402. }
  2403. void packetw2c_remove_mail_result::CopyFrom(const ::google::protobuf::Message& from) {
  2404. if (&from == this) return;
  2405. Clear();
  2406. MergeFrom(from);
  2407. }
  2408. void packetw2c_remove_mail_result::CopyFrom(const packetw2c_remove_mail_result& from) {
  2409. if (&from == this) return;
  2410. Clear();
  2411. MergeFrom(from);
  2412. }
  2413. bool packetw2c_remove_mail_result::IsInitialized() const {
  2414. return true;
  2415. }
  2416. void packetw2c_remove_mail_result::Swap(packetw2c_remove_mail_result* other) {
  2417. if (other != this) {
  2418. std::swap(packet_id_, other->packet_id_);
  2419. std::swap(mailid_, other->mailid_);
  2420. std::swap(result_, other->result_);
  2421. std::swap(_has_bits_[0], other->_has_bits_[0]);
  2422. _unknown_fields_.Swap(&other->_unknown_fields_);
  2423. std::swap(_cached_size_, other->_cached_size_);
  2424. }
  2425. }
  2426. ::google::protobuf::Metadata packetw2c_remove_mail_result::GetMetadata() const {
  2427. protobuf_AssignDescriptorsOnce();
  2428. ::google::protobuf::Metadata metadata;
  2429. metadata.descriptor = packetw2c_remove_mail_result_descriptor_;
  2430. metadata.reflection = packetw2c_remove_mail_result_reflection_;
  2431. return metadata;
  2432. }
  2433. // ===================================================================
  2434. #ifndef _MSC_VER
  2435. const int packetw2c_accept_gift_notify::kPacketIdFieldNumber;
  2436. #endif // !_MSC_VER
  2437. packetw2c_accept_gift_notify::packetw2c_accept_gift_notify()
  2438. : ::google::protobuf::Message() {
  2439. SharedCtor();
  2440. }
  2441. void packetw2c_accept_gift_notify::InitAsDefaultInstance() {
  2442. }
  2443. packetw2c_accept_gift_notify::packetw2c_accept_gift_notify(const packetw2c_accept_gift_notify& from)
  2444. : ::google::protobuf::Message() {
  2445. SharedCtor();
  2446. MergeFrom(from);
  2447. }
  2448. void packetw2c_accept_gift_notify::SharedCtor() {
  2449. _cached_size_ = 0;
  2450. packet_id_ = 7546;
  2451. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2452. }
  2453. packetw2c_accept_gift_notify::~packetw2c_accept_gift_notify() {
  2454. SharedDtor();
  2455. }
  2456. void packetw2c_accept_gift_notify::SharedDtor() {
  2457. if (this != default_instance_) {
  2458. }
  2459. }
  2460. void packetw2c_accept_gift_notify::SetCachedSize(int size) const {
  2461. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2462. _cached_size_ = size;
  2463. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2464. }
  2465. const ::google::protobuf::Descriptor* packetw2c_accept_gift_notify::descriptor() {
  2466. protobuf_AssignDescriptorsOnce();
  2467. return packetw2c_accept_gift_notify_descriptor_;
  2468. }
  2469. const packetw2c_accept_gift_notify& packetw2c_accept_gift_notify::default_instance() {
  2470. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fmail_2eproto();
  2471. return *default_instance_;
  2472. }
  2473. packetw2c_accept_gift_notify* packetw2c_accept_gift_notify::default_instance_ = NULL;
  2474. packetw2c_accept_gift_notify* packetw2c_accept_gift_notify::New() const {
  2475. return new packetw2c_accept_gift_notify;
  2476. }
  2477. void packetw2c_accept_gift_notify::Clear() {
  2478. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2479. packet_id_ = 7546;
  2480. }
  2481. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2482. mutable_unknown_fields()->Clear();
  2483. }
  2484. bool packetw2c_accept_gift_notify::MergePartialFromCodedStream(
  2485. ::google::protobuf::io::CodedInputStream* input) {
  2486. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  2487. ::google::protobuf::uint32 tag;
  2488. while ((tag = input->ReadTag()) != 0) {
  2489. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2490. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_accept_gift_notify];
  2491. case 1: {
  2492. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2493. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2494. int value;
  2495. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2496. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2497. input, &value)));
  2498. if (::client2world_protocols::e_server_msg_type_IsValid(value)) {
  2499. set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value));
  2500. } else {
  2501. mutable_unknown_fields()->AddVarint(1, value);
  2502. }
  2503. } else {
  2504. goto handle_uninterpreted;
  2505. }
  2506. if (input->ExpectAtEnd()) return true;
  2507. break;
  2508. }
  2509. default: {
  2510. handle_uninterpreted:
  2511. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2512. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  2513. return true;
  2514. }
  2515. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2516. input, tag, mutable_unknown_fields()));
  2517. break;
  2518. }
  2519. }
  2520. }
  2521. return true;
  2522. #undef DO_
  2523. }
  2524. void packetw2c_accept_gift_notify::SerializeWithCachedSizes(
  2525. ::google::protobuf::io::CodedOutputStream* output) const {
  2526. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_accept_gift_notify];
  2527. if (has_packet_id()) {
  2528. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2529. 1, this->packet_id(), output);
  2530. }
  2531. if (!unknown_fields().empty()) {
  2532. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2533. unknown_fields(), output);
  2534. }
  2535. }
  2536. ::google::protobuf::uint8* packetw2c_accept_gift_notify::SerializeWithCachedSizesToArray(
  2537. ::google::protobuf::uint8* target) const {
  2538. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_accept_gift_notify];
  2539. if (has_packet_id()) {
  2540. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2541. 1, this->packet_id(), target);
  2542. }
  2543. if (!unknown_fields().empty()) {
  2544. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2545. unknown_fields(), target);
  2546. }
  2547. return target;
  2548. }
  2549. int packetw2c_accept_gift_notify::ByteSize() const {
  2550. int total_size = 0;
  2551. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2552. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_accept_gift_notify];
  2553. if (has_packet_id()) {
  2554. total_size += 1 +
  2555. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  2556. }
  2557. }
  2558. if (!unknown_fields().empty()) {
  2559. total_size +=
  2560. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2561. unknown_fields());
  2562. }
  2563. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2564. _cached_size_ = total_size;
  2565. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2566. return total_size;
  2567. }
  2568. void packetw2c_accept_gift_notify::MergeFrom(const ::google::protobuf::Message& from) {
  2569. GOOGLE_CHECK_NE(&from, this);
  2570. const packetw2c_accept_gift_notify* source =
  2571. ::google::protobuf::internal::dynamic_cast_if_available<const packetw2c_accept_gift_notify*>(
  2572. &from);
  2573. if (source == NULL) {
  2574. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2575. } else {
  2576. MergeFrom(*source);
  2577. }
  2578. }
  2579. void packetw2c_accept_gift_notify::MergeFrom(const packetw2c_accept_gift_notify& from) {
  2580. GOOGLE_CHECK_NE(&from, this);
  2581. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2582. if (from.has_packet_id()) {
  2583. set_packet_id(from.packet_id());
  2584. }
  2585. }
  2586. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  2587. }
  2588. void packetw2c_accept_gift_notify::CopyFrom(const ::google::protobuf::Message& from) {
  2589. if (&from == this) return;
  2590. Clear();
  2591. MergeFrom(from);
  2592. }
  2593. void packetw2c_accept_gift_notify::CopyFrom(const packetw2c_accept_gift_notify& from) {
  2594. if (&from == this) return;
  2595. Clear();
  2596. MergeFrom(from);
  2597. }
  2598. bool packetw2c_accept_gift_notify::IsInitialized() const {
  2599. return true;
  2600. }
  2601. void packetw2c_accept_gift_notify::Swap(packetw2c_accept_gift_notify* other) {
  2602. if (other != this) {
  2603. std::swap(packet_id_, other->packet_id_);
  2604. std::swap(_has_bits_[0], other->_has_bits_[0]);
  2605. _unknown_fields_.Swap(&other->_unknown_fields_);
  2606. std::swap(_cached_size_, other->_cached_size_);
  2607. }
  2608. }
  2609. ::google::protobuf::Metadata packetw2c_accept_gift_notify::GetMetadata() const {
  2610. protobuf_AssignDescriptorsOnce();
  2611. ::google::protobuf::Metadata metadata;
  2612. metadata.descriptor = packetw2c_accept_gift_notify_descriptor_;
  2613. metadata.reflection = packetw2c_accept_gift_notify_reflection_;
  2614. return metadata;
  2615. }
  2616. // ===================================================================
  2617. #ifndef _MSC_VER
  2618. const int packetc2w_req_send_mail_log::kPacketIdFieldNumber;
  2619. const int packetc2w_req_send_mail_log::kLastTimeFieldNumber;
  2620. #endif // !_MSC_VER
  2621. packetc2w_req_send_mail_log::packetc2w_req_send_mail_log()
  2622. : ::google::protobuf::Message() {
  2623. SharedCtor();
  2624. }
  2625. void packetc2w_req_send_mail_log::InitAsDefaultInstance() {
  2626. }
  2627. packetc2w_req_send_mail_log::packetc2w_req_send_mail_log(const packetc2w_req_send_mail_log& from)
  2628. : ::google::protobuf::Message() {
  2629. SharedCtor();
  2630. MergeFrom(from);
  2631. }
  2632. void packetc2w_req_send_mail_log::SharedCtor() {
  2633. _cached_size_ = 0;
  2634. packet_id_ = 5045;
  2635. lasttime_ = 0;
  2636. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2637. }
  2638. packetc2w_req_send_mail_log::~packetc2w_req_send_mail_log() {
  2639. SharedDtor();
  2640. }
  2641. void packetc2w_req_send_mail_log::SharedDtor() {
  2642. if (this != default_instance_) {
  2643. }
  2644. }
  2645. void packetc2w_req_send_mail_log::SetCachedSize(int size) const {
  2646. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2647. _cached_size_ = size;
  2648. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2649. }
  2650. const ::google::protobuf::Descriptor* packetc2w_req_send_mail_log::descriptor() {
  2651. protobuf_AssignDescriptorsOnce();
  2652. return packetc2w_req_send_mail_log_descriptor_;
  2653. }
  2654. const packetc2w_req_send_mail_log& packetc2w_req_send_mail_log::default_instance() {
  2655. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fmail_2eproto();
  2656. return *default_instance_;
  2657. }
  2658. packetc2w_req_send_mail_log* packetc2w_req_send_mail_log::default_instance_ = NULL;
  2659. packetc2w_req_send_mail_log* packetc2w_req_send_mail_log::New() const {
  2660. return new packetc2w_req_send_mail_log;
  2661. }
  2662. void packetc2w_req_send_mail_log::Clear() {
  2663. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2664. packet_id_ = 5045;
  2665. lasttime_ = 0;
  2666. }
  2667. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2668. mutable_unknown_fields()->Clear();
  2669. }
  2670. bool packetc2w_req_send_mail_log::MergePartialFromCodedStream(
  2671. ::google::protobuf::io::CodedInputStream* input) {
  2672. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  2673. ::google::protobuf::uint32 tag;
  2674. while ((tag = input->ReadTag()) != 0) {
  2675. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2676. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_send_mail_log];
  2677. case 1: {
  2678. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2679. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2680. int value;
  2681. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2682. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2683. input, &value)));
  2684. if (::client2world_protocols::e_server_msg_type_IsValid(value)) {
  2685. set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value));
  2686. } else {
  2687. mutable_unknown_fields()->AddVarint(1, value);
  2688. }
  2689. } else {
  2690. goto handle_uninterpreted;
  2691. }
  2692. if (input->ExpectTag(16)) goto parse_lastTime;
  2693. break;
  2694. }
  2695. // optional int32 lastTime = 2;
  2696. case 2: {
  2697. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2698. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2699. parse_lastTime:
  2700. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2701. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2702. input, &lasttime_)));
  2703. set_has_lasttime();
  2704. } else {
  2705. goto handle_uninterpreted;
  2706. }
  2707. if (input->ExpectAtEnd()) return true;
  2708. break;
  2709. }
  2710. default: {
  2711. handle_uninterpreted:
  2712. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2713. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  2714. return true;
  2715. }
  2716. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2717. input, tag, mutable_unknown_fields()));
  2718. break;
  2719. }
  2720. }
  2721. }
  2722. return true;
  2723. #undef DO_
  2724. }
  2725. void packetc2w_req_send_mail_log::SerializeWithCachedSizes(
  2726. ::google::protobuf::io::CodedOutputStream* output) const {
  2727. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_send_mail_log];
  2728. if (has_packet_id()) {
  2729. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2730. 1, this->packet_id(), output);
  2731. }
  2732. // optional int32 lastTime = 2;
  2733. if (has_lasttime()) {
  2734. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->lasttime(), output);
  2735. }
  2736. if (!unknown_fields().empty()) {
  2737. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2738. unknown_fields(), output);
  2739. }
  2740. }
  2741. ::google::protobuf::uint8* packetc2w_req_send_mail_log::SerializeWithCachedSizesToArray(
  2742. ::google::protobuf::uint8* target) const {
  2743. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_send_mail_log];
  2744. if (has_packet_id()) {
  2745. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2746. 1, this->packet_id(), target);
  2747. }
  2748. // optional int32 lastTime = 2;
  2749. if (has_lasttime()) {
  2750. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->lasttime(), target);
  2751. }
  2752. if (!unknown_fields().empty()) {
  2753. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2754. unknown_fields(), target);
  2755. }
  2756. return target;
  2757. }
  2758. int packetc2w_req_send_mail_log::ByteSize() const {
  2759. int total_size = 0;
  2760. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2761. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_send_mail_log];
  2762. if (has_packet_id()) {
  2763. total_size += 1 +
  2764. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  2765. }
  2766. // optional int32 lastTime = 2;
  2767. if (has_lasttime()) {
  2768. total_size += 1 +
  2769. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2770. this->lasttime());
  2771. }
  2772. }
  2773. if (!unknown_fields().empty()) {
  2774. total_size +=
  2775. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2776. unknown_fields());
  2777. }
  2778. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2779. _cached_size_ = total_size;
  2780. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2781. return total_size;
  2782. }
  2783. void packetc2w_req_send_mail_log::MergeFrom(const ::google::protobuf::Message& from) {
  2784. GOOGLE_CHECK_NE(&from, this);
  2785. const packetc2w_req_send_mail_log* source =
  2786. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2w_req_send_mail_log*>(
  2787. &from);
  2788. if (source == NULL) {
  2789. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2790. } else {
  2791. MergeFrom(*source);
  2792. }
  2793. }
  2794. void packetc2w_req_send_mail_log::MergeFrom(const packetc2w_req_send_mail_log& from) {
  2795. GOOGLE_CHECK_NE(&from, this);
  2796. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2797. if (from.has_packet_id()) {
  2798. set_packet_id(from.packet_id());
  2799. }
  2800. if (from.has_lasttime()) {
  2801. set_lasttime(from.lasttime());
  2802. }
  2803. }
  2804. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  2805. }
  2806. void packetc2w_req_send_mail_log::CopyFrom(const ::google::protobuf::Message& from) {
  2807. if (&from == this) return;
  2808. Clear();
  2809. MergeFrom(from);
  2810. }
  2811. void packetc2w_req_send_mail_log::CopyFrom(const packetc2w_req_send_mail_log& from) {
  2812. if (&from == this) return;
  2813. Clear();
  2814. MergeFrom(from);
  2815. }
  2816. bool packetc2w_req_send_mail_log::IsInitialized() const {
  2817. return true;
  2818. }
  2819. void packetc2w_req_send_mail_log::Swap(packetc2w_req_send_mail_log* other) {
  2820. if (other != this) {
  2821. std::swap(packet_id_, other->packet_id_);
  2822. std::swap(lasttime_, other->lasttime_);
  2823. std::swap(_has_bits_[0], other->_has_bits_[0]);
  2824. _unknown_fields_.Swap(&other->_unknown_fields_);
  2825. std::swap(_cached_size_, other->_cached_size_);
  2826. }
  2827. }
  2828. ::google::protobuf::Metadata packetc2w_req_send_mail_log::GetMetadata() const {
  2829. protobuf_AssignDescriptorsOnce();
  2830. ::google::protobuf::Metadata metadata;
  2831. metadata.descriptor = packetc2w_req_send_mail_log_descriptor_;
  2832. metadata.reflection = packetc2w_req_send_mail_log_reflection_;
  2833. return metadata;
  2834. }
  2835. // ===================================================================
  2836. #ifndef _MSC_VER
  2837. const int SendMailLogInfo::kSendTimeFieldNumber;
  2838. const int SendMailLogInfo::kFirendIdFieldNumber;
  2839. const int SendMailLogInfo::kContentFieldNumber;
  2840. const int SendMailLogInfo::kMailIdFieldNumber;
  2841. const int SendMailLogInfo::kTitleFieldNumber;
  2842. const int SendMailLogInfo::kFriendNickNameFieldNumber;
  2843. #endif // !_MSC_VER
  2844. SendMailLogInfo::SendMailLogInfo()
  2845. : ::google::protobuf::Message() {
  2846. SharedCtor();
  2847. }
  2848. void SendMailLogInfo::InitAsDefaultInstance() {
  2849. }
  2850. SendMailLogInfo::SendMailLogInfo(const SendMailLogInfo& from)
  2851. : ::google::protobuf::Message() {
  2852. SharedCtor();
  2853. MergeFrom(from);
  2854. }
  2855. void SendMailLogInfo::SharedCtor() {
  2856. _cached_size_ = 0;
  2857. sendtime_ = 0;
  2858. firendid_ = 0;
  2859. content_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  2860. mailid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  2861. title_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  2862. friendnickname_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  2863. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2864. }
  2865. SendMailLogInfo::~SendMailLogInfo() {
  2866. SharedDtor();
  2867. }
  2868. void SendMailLogInfo::SharedDtor() {
  2869. if (content_ != &::google::protobuf::internal::kEmptyString) {
  2870. delete content_;
  2871. }
  2872. if (mailid_ != &::google::protobuf::internal::kEmptyString) {
  2873. delete mailid_;
  2874. }
  2875. if (title_ != &::google::protobuf::internal::kEmptyString) {
  2876. delete title_;
  2877. }
  2878. if (friendnickname_ != &::google::protobuf::internal::kEmptyString) {
  2879. delete friendnickname_;
  2880. }
  2881. if (this != default_instance_) {
  2882. }
  2883. }
  2884. void SendMailLogInfo::SetCachedSize(int size) const {
  2885. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2886. _cached_size_ = size;
  2887. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2888. }
  2889. const ::google::protobuf::Descriptor* SendMailLogInfo::descriptor() {
  2890. protobuf_AssignDescriptorsOnce();
  2891. return SendMailLogInfo_descriptor_;
  2892. }
  2893. const SendMailLogInfo& SendMailLogInfo::default_instance() {
  2894. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fmail_2eproto();
  2895. return *default_instance_;
  2896. }
  2897. SendMailLogInfo* SendMailLogInfo::default_instance_ = NULL;
  2898. SendMailLogInfo* SendMailLogInfo::New() const {
  2899. return new SendMailLogInfo;
  2900. }
  2901. void SendMailLogInfo::Clear() {
  2902. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2903. sendtime_ = 0;
  2904. firendid_ = 0;
  2905. if (has_content()) {
  2906. if (content_ != &::google::protobuf::internal::kEmptyString) {
  2907. content_->clear();
  2908. }
  2909. }
  2910. if (has_mailid()) {
  2911. if (mailid_ != &::google::protobuf::internal::kEmptyString) {
  2912. mailid_->clear();
  2913. }
  2914. }
  2915. if (has_title()) {
  2916. if (title_ != &::google::protobuf::internal::kEmptyString) {
  2917. title_->clear();
  2918. }
  2919. }
  2920. if (has_friendnickname()) {
  2921. if (friendnickname_ != &::google::protobuf::internal::kEmptyString) {
  2922. friendnickname_->clear();
  2923. }
  2924. }
  2925. }
  2926. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2927. mutable_unknown_fields()->Clear();
  2928. }
  2929. bool SendMailLogInfo::MergePartialFromCodedStream(
  2930. ::google::protobuf::io::CodedInputStream* input) {
  2931. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  2932. ::google::protobuf::uint32 tag;
  2933. while ((tag = input->ReadTag()) != 0) {
  2934. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2935. // optional int32 sendTime = 1;
  2936. case 1: {
  2937. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2938. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2939. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2940. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2941. input, &sendtime_)));
  2942. set_has_sendtime();
  2943. } else {
  2944. goto handle_uninterpreted;
  2945. }
  2946. if (input->ExpectTag(16)) goto parse_firendId;
  2947. break;
  2948. }
  2949. // optional int32 firendId = 2;
  2950. case 2: {
  2951. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2952. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2953. parse_firendId:
  2954. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2955. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2956. input, &firendid_)));
  2957. set_has_firendid();
  2958. } else {
  2959. goto handle_uninterpreted;
  2960. }
  2961. if (input->ExpectTag(26)) goto parse_content;
  2962. break;
  2963. }
  2964. // optional string content = 3;
  2965. case 3: {
  2966. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2967. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  2968. parse_content:
  2969. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  2970. input, this->mutable_content()));
  2971. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  2972. this->content().data(), this->content().length(),
  2973. ::google::protobuf::internal::WireFormat::PARSE);
  2974. } else {
  2975. goto handle_uninterpreted;
  2976. }
  2977. if (input->ExpectTag(34)) goto parse_mailId;
  2978. break;
  2979. }
  2980. // optional string mailId = 4;
  2981. case 4: {
  2982. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2983. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  2984. parse_mailId:
  2985. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  2986. input, this->mutable_mailid()));
  2987. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  2988. this->mailid().data(), this->mailid().length(),
  2989. ::google::protobuf::internal::WireFormat::PARSE);
  2990. } else {
  2991. goto handle_uninterpreted;
  2992. }
  2993. if (input->ExpectTag(42)) goto parse_title;
  2994. break;
  2995. }
  2996. // optional string title = 5;
  2997. case 5: {
  2998. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2999. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  3000. parse_title:
  3001. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  3002. input, this->mutable_title()));
  3003. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  3004. this->title().data(), this->title().length(),
  3005. ::google::protobuf::internal::WireFormat::PARSE);
  3006. } else {
  3007. goto handle_uninterpreted;
  3008. }
  3009. if (input->ExpectTag(50)) goto parse_friendNickName;
  3010. break;
  3011. }
  3012. // optional string friendNickName = 6;
  3013. case 6: {
  3014. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3015. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  3016. parse_friendNickName:
  3017. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  3018. input, this->mutable_friendnickname()));
  3019. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  3020. this->friendnickname().data(), this->friendnickname().length(),
  3021. ::google::protobuf::internal::WireFormat::PARSE);
  3022. } else {
  3023. goto handle_uninterpreted;
  3024. }
  3025. if (input->ExpectAtEnd()) return true;
  3026. break;
  3027. }
  3028. default: {
  3029. handle_uninterpreted:
  3030. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3031. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  3032. return true;
  3033. }
  3034. DO_(::google::protobuf::internal::WireFormat::SkipField(
  3035. input, tag, mutable_unknown_fields()));
  3036. break;
  3037. }
  3038. }
  3039. }
  3040. return true;
  3041. #undef DO_
  3042. }
  3043. void SendMailLogInfo::SerializeWithCachedSizes(
  3044. ::google::protobuf::io::CodedOutputStream* output) const {
  3045. // optional int32 sendTime = 1;
  3046. if (has_sendtime()) {
  3047. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->sendtime(), output);
  3048. }
  3049. // optional int32 firendId = 2;
  3050. if (has_firendid()) {
  3051. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->firendid(), output);
  3052. }
  3053. // optional string content = 3;
  3054. if (has_content()) {
  3055. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  3056. this->content().data(), this->content().length(),
  3057. ::google::protobuf::internal::WireFormat::SERIALIZE);
  3058. ::google::protobuf::internal::WireFormatLite::WriteString(
  3059. 3, this->content(), output);
  3060. }
  3061. // optional string mailId = 4;
  3062. if (has_mailid()) {
  3063. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  3064. this->mailid().data(), this->mailid().length(),
  3065. ::google::protobuf::internal::WireFormat::SERIALIZE);
  3066. ::google::protobuf::internal::WireFormatLite::WriteString(
  3067. 4, this->mailid(), output);
  3068. }
  3069. // optional string title = 5;
  3070. if (has_title()) {
  3071. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  3072. this->title().data(), this->title().length(),
  3073. ::google::protobuf::internal::WireFormat::SERIALIZE);
  3074. ::google::protobuf::internal::WireFormatLite::WriteString(
  3075. 5, this->title(), output);
  3076. }
  3077. // optional string friendNickName = 6;
  3078. if (has_friendnickname()) {
  3079. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  3080. this->friendnickname().data(), this->friendnickname().length(),
  3081. ::google::protobuf::internal::WireFormat::SERIALIZE);
  3082. ::google::protobuf::internal::WireFormatLite::WriteString(
  3083. 6, this->friendnickname(), output);
  3084. }
  3085. if (!unknown_fields().empty()) {
  3086. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3087. unknown_fields(), output);
  3088. }
  3089. }
  3090. ::google::protobuf::uint8* SendMailLogInfo::SerializeWithCachedSizesToArray(
  3091. ::google::protobuf::uint8* target) const {
  3092. // optional int32 sendTime = 1;
  3093. if (has_sendtime()) {
  3094. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->sendtime(), target);
  3095. }
  3096. // optional int32 firendId = 2;
  3097. if (has_firendid()) {
  3098. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->firendid(), target);
  3099. }
  3100. // optional string content = 3;
  3101. if (has_content()) {
  3102. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  3103. this->content().data(), this->content().length(),
  3104. ::google::protobuf::internal::WireFormat::SERIALIZE);
  3105. target =
  3106. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  3107. 3, this->content(), target);
  3108. }
  3109. // optional string mailId = 4;
  3110. if (has_mailid()) {
  3111. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  3112. this->mailid().data(), this->mailid().length(),
  3113. ::google::protobuf::internal::WireFormat::SERIALIZE);
  3114. target =
  3115. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  3116. 4, this->mailid(), target);
  3117. }
  3118. // optional string title = 5;
  3119. if (has_title()) {
  3120. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  3121. this->title().data(), this->title().length(),
  3122. ::google::protobuf::internal::WireFormat::SERIALIZE);
  3123. target =
  3124. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  3125. 5, this->title(), target);
  3126. }
  3127. // optional string friendNickName = 6;
  3128. if (has_friendnickname()) {
  3129. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  3130. this->friendnickname().data(), this->friendnickname().length(),
  3131. ::google::protobuf::internal::WireFormat::SERIALIZE);
  3132. target =
  3133. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  3134. 6, this->friendnickname(), target);
  3135. }
  3136. if (!unknown_fields().empty()) {
  3137. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3138. unknown_fields(), target);
  3139. }
  3140. return target;
  3141. }
  3142. int SendMailLogInfo::ByteSize() const {
  3143. int total_size = 0;
  3144. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3145. // optional int32 sendTime = 1;
  3146. if (has_sendtime()) {
  3147. total_size += 1 +
  3148. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3149. this->sendtime());
  3150. }
  3151. // optional int32 firendId = 2;
  3152. if (has_firendid()) {
  3153. total_size += 1 +
  3154. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3155. this->firendid());
  3156. }
  3157. // optional string content = 3;
  3158. if (has_content()) {
  3159. total_size += 1 +
  3160. ::google::protobuf::internal::WireFormatLite::StringSize(
  3161. this->content());
  3162. }
  3163. // optional string mailId = 4;
  3164. if (has_mailid()) {
  3165. total_size += 1 +
  3166. ::google::protobuf::internal::WireFormatLite::StringSize(
  3167. this->mailid());
  3168. }
  3169. // optional string title = 5;
  3170. if (has_title()) {
  3171. total_size += 1 +
  3172. ::google::protobuf::internal::WireFormatLite::StringSize(
  3173. this->title());
  3174. }
  3175. // optional string friendNickName = 6;
  3176. if (has_friendnickname()) {
  3177. total_size += 1 +
  3178. ::google::protobuf::internal::WireFormatLite::StringSize(
  3179. this->friendnickname());
  3180. }
  3181. }
  3182. if (!unknown_fields().empty()) {
  3183. total_size +=
  3184. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3185. unknown_fields());
  3186. }
  3187. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3188. _cached_size_ = total_size;
  3189. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3190. return total_size;
  3191. }
  3192. void SendMailLogInfo::MergeFrom(const ::google::protobuf::Message& from) {
  3193. GOOGLE_CHECK_NE(&from, this);
  3194. const SendMailLogInfo* source =
  3195. ::google::protobuf::internal::dynamic_cast_if_available<const SendMailLogInfo*>(
  3196. &from);
  3197. if (source == NULL) {
  3198. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3199. } else {
  3200. MergeFrom(*source);
  3201. }
  3202. }
  3203. void SendMailLogInfo::MergeFrom(const SendMailLogInfo& from) {
  3204. GOOGLE_CHECK_NE(&from, this);
  3205. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3206. if (from.has_sendtime()) {
  3207. set_sendtime(from.sendtime());
  3208. }
  3209. if (from.has_firendid()) {
  3210. set_firendid(from.firendid());
  3211. }
  3212. if (from.has_content()) {
  3213. set_content(from.content());
  3214. }
  3215. if (from.has_mailid()) {
  3216. set_mailid(from.mailid());
  3217. }
  3218. if (from.has_title()) {
  3219. set_title(from.title());
  3220. }
  3221. if (from.has_friendnickname()) {
  3222. set_friendnickname(from.friendnickname());
  3223. }
  3224. }
  3225. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  3226. }
  3227. void SendMailLogInfo::CopyFrom(const ::google::protobuf::Message& from) {
  3228. if (&from == this) return;
  3229. Clear();
  3230. MergeFrom(from);
  3231. }
  3232. void SendMailLogInfo::CopyFrom(const SendMailLogInfo& from) {
  3233. if (&from == this) return;
  3234. Clear();
  3235. MergeFrom(from);
  3236. }
  3237. bool SendMailLogInfo::IsInitialized() const {
  3238. return true;
  3239. }
  3240. void SendMailLogInfo::Swap(SendMailLogInfo* other) {
  3241. if (other != this) {
  3242. std::swap(sendtime_, other->sendtime_);
  3243. std::swap(firendid_, other->firendid_);
  3244. std::swap(content_, other->content_);
  3245. std::swap(mailid_, other->mailid_);
  3246. std::swap(title_, other->title_);
  3247. std::swap(friendnickname_, other->friendnickname_);
  3248. std::swap(_has_bits_[0], other->_has_bits_[0]);
  3249. _unknown_fields_.Swap(&other->_unknown_fields_);
  3250. std::swap(_cached_size_, other->_cached_size_);
  3251. }
  3252. }
  3253. ::google::protobuf::Metadata SendMailLogInfo::GetMetadata() const {
  3254. protobuf_AssignDescriptorsOnce();
  3255. ::google::protobuf::Metadata metadata;
  3256. metadata.descriptor = SendMailLogInfo_descriptor_;
  3257. metadata.reflection = SendMailLogInfo_reflection_;
  3258. return metadata;
  3259. }
  3260. // ===================================================================
  3261. #ifndef _MSC_VER
  3262. const int packetw2c_req_send_mail_log_result::kPacketIdFieldNumber;
  3263. const int packetw2c_req_send_mail_log_result::kLogListFieldNumber;
  3264. const int packetw2c_req_send_mail_log_result::kLastTimeFieldNumber;
  3265. #endif // !_MSC_VER
  3266. packetw2c_req_send_mail_log_result::packetw2c_req_send_mail_log_result()
  3267. : ::google::protobuf::Message() {
  3268. SharedCtor();
  3269. }
  3270. void packetw2c_req_send_mail_log_result::InitAsDefaultInstance() {
  3271. }
  3272. packetw2c_req_send_mail_log_result::packetw2c_req_send_mail_log_result(const packetw2c_req_send_mail_log_result& from)
  3273. : ::google::protobuf::Message() {
  3274. SharedCtor();
  3275. MergeFrom(from);
  3276. }
  3277. void packetw2c_req_send_mail_log_result::SharedCtor() {
  3278. _cached_size_ = 0;
  3279. packet_id_ = 7549;
  3280. lasttime_ = 0;
  3281. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3282. }
  3283. packetw2c_req_send_mail_log_result::~packetw2c_req_send_mail_log_result() {
  3284. SharedDtor();
  3285. }
  3286. void packetw2c_req_send_mail_log_result::SharedDtor() {
  3287. if (this != default_instance_) {
  3288. }
  3289. }
  3290. void packetw2c_req_send_mail_log_result::SetCachedSize(int size) const {
  3291. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3292. _cached_size_ = size;
  3293. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3294. }
  3295. const ::google::protobuf::Descriptor* packetw2c_req_send_mail_log_result::descriptor() {
  3296. protobuf_AssignDescriptorsOnce();
  3297. return packetw2c_req_send_mail_log_result_descriptor_;
  3298. }
  3299. const packetw2c_req_send_mail_log_result& packetw2c_req_send_mail_log_result::default_instance() {
  3300. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fmail_2eproto();
  3301. return *default_instance_;
  3302. }
  3303. packetw2c_req_send_mail_log_result* packetw2c_req_send_mail_log_result::default_instance_ = NULL;
  3304. packetw2c_req_send_mail_log_result* packetw2c_req_send_mail_log_result::New() const {
  3305. return new packetw2c_req_send_mail_log_result;
  3306. }
  3307. void packetw2c_req_send_mail_log_result::Clear() {
  3308. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3309. packet_id_ = 7549;
  3310. lasttime_ = 0;
  3311. }
  3312. loglist_.Clear();
  3313. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3314. mutable_unknown_fields()->Clear();
  3315. }
  3316. bool packetw2c_req_send_mail_log_result::MergePartialFromCodedStream(
  3317. ::google::protobuf::io::CodedInputStream* input) {
  3318. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  3319. ::google::protobuf::uint32 tag;
  3320. while ((tag = input->ReadTag()) != 0) {
  3321. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  3322. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_send_mail_log_result];
  3323. case 1: {
  3324. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3325. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3326. int value;
  3327. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3328. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3329. input, &value)));
  3330. if (::client2world_protocols::e_server_msg_type_IsValid(value)) {
  3331. set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value));
  3332. } else {
  3333. mutable_unknown_fields()->AddVarint(1, value);
  3334. }
  3335. } else {
  3336. goto handle_uninterpreted;
  3337. }
  3338. if (input->ExpectTag(18)) goto parse_logList;
  3339. break;
  3340. }
  3341. // repeated .client2world_protocols.SendMailLogInfo logList = 2;
  3342. case 2: {
  3343. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3344. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  3345. parse_logList:
  3346. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  3347. input, add_loglist()));
  3348. } else {
  3349. goto handle_uninterpreted;
  3350. }
  3351. if (input->ExpectTag(18)) goto parse_logList;
  3352. if (input->ExpectTag(24)) goto parse_lastTime;
  3353. break;
  3354. }
  3355. // optional int32 lastTime = 3;
  3356. case 3: {
  3357. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3358. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3359. parse_lastTime:
  3360. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3361. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3362. input, &lasttime_)));
  3363. set_has_lasttime();
  3364. } else {
  3365. goto handle_uninterpreted;
  3366. }
  3367. if (input->ExpectAtEnd()) return true;
  3368. break;
  3369. }
  3370. default: {
  3371. handle_uninterpreted:
  3372. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3373. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  3374. return true;
  3375. }
  3376. DO_(::google::protobuf::internal::WireFormat::SkipField(
  3377. input, tag, mutable_unknown_fields()));
  3378. break;
  3379. }
  3380. }
  3381. }
  3382. return true;
  3383. #undef DO_
  3384. }
  3385. void packetw2c_req_send_mail_log_result::SerializeWithCachedSizes(
  3386. ::google::protobuf::io::CodedOutputStream* output) const {
  3387. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_send_mail_log_result];
  3388. if (has_packet_id()) {
  3389. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3390. 1, this->packet_id(), output);
  3391. }
  3392. // repeated .client2world_protocols.SendMailLogInfo logList = 2;
  3393. for (int i = 0; i < this->loglist_size(); i++) {
  3394. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3395. 2, this->loglist(i), output);
  3396. }
  3397. // optional int32 lastTime = 3;
  3398. if (has_lasttime()) {
  3399. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->lasttime(), output);
  3400. }
  3401. if (!unknown_fields().empty()) {
  3402. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3403. unknown_fields(), output);
  3404. }
  3405. }
  3406. ::google::protobuf::uint8* packetw2c_req_send_mail_log_result::SerializeWithCachedSizesToArray(
  3407. ::google::protobuf::uint8* target) const {
  3408. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_send_mail_log_result];
  3409. if (has_packet_id()) {
  3410. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3411. 1, this->packet_id(), target);
  3412. }
  3413. // repeated .client2world_protocols.SendMailLogInfo logList = 2;
  3414. for (int i = 0; i < this->loglist_size(); i++) {
  3415. target = ::google::protobuf::internal::WireFormatLite::
  3416. WriteMessageNoVirtualToArray(
  3417. 2, this->loglist(i), target);
  3418. }
  3419. // optional int32 lastTime = 3;
  3420. if (has_lasttime()) {
  3421. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->lasttime(), target);
  3422. }
  3423. if (!unknown_fields().empty()) {
  3424. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3425. unknown_fields(), target);
  3426. }
  3427. return target;
  3428. }
  3429. int packetw2c_req_send_mail_log_result::ByteSize() const {
  3430. int total_size = 0;
  3431. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3432. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_send_mail_log_result];
  3433. if (has_packet_id()) {
  3434. total_size += 1 +
  3435. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  3436. }
  3437. // optional int32 lastTime = 3;
  3438. if (has_lasttime()) {
  3439. total_size += 1 +
  3440. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3441. this->lasttime());
  3442. }
  3443. }
  3444. // repeated .client2world_protocols.SendMailLogInfo logList = 2;
  3445. total_size += 1 * this->loglist_size();
  3446. for (int i = 0; i < this->loglist_size(); i++) {
  3447. total_size +=
  3448. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  3449. this->loglist(i));
  3450. }
  3451. if (!unknown_fields().empty()) {
  3452. total_size +=
  3453. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3454. unknown_fields());
  3455. }
  3456. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3457. _cached_size_ = total_size;
  3458. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3459. return total_size;
  3460. }
  3461. void packetw2c_req_send_mail_log_result::MergeFrom(const ::google::protobuf::Message& from) {
  3462. GOOGLE_CHECK_NE(&from, this);
  3463. const packetw2c_req_send_mail_log_result* source =
  3464. ::google::protobuf::internal::dynamic_cast_if_available<const packetw2c_req_send_mail_log_result*>(
  3465. &from);
  3466. if (source == NULL) {
  3467. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3468. } else {
  3469. MergeFrom(*source);
  3470. }
  3471. }
  3472. void packetw2c_req_send_mail_log_result::MergeFrom(const packetw2c_req_send_mail_log_result& from) {
  3473. GOOGLE_CHECK_NE(&from, this);
  3474. loglist_.MergeFrom(from.loglist_);
  3475. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3476. if (from.has_packet_id()) {
  3477. set_packet_id(from.packet_id());
  3478. }
  3479. if (from.has_lasttime()) {
  3480. set_lasttime(from.lasttime());
  3481. }
  3482. }
  3483. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  3484. }
  3485. void packetw2c_req_send_mail_log_result::CopyFrom(const ::google::protobuf::Message& from) {
  3486. if (&from == this) return;
  3487. Clear();
  3488. MergeFrom(from);
  3489. }
  3490. void packetw2c_req_send_mail_log_result::CopyFrom(const packetw2c_req_send_mail_log_result& from) {
  3491. if (&from == this) return;
  3492. Clear();
  3493. MergeFrom(from);
  3494. }
  3495. bool packetw2c_req_send_mail_log_result::IsInitialized() const {
  3496. return true;
  3497. }
  3498. void packetw2c_req_send_mail_log_result::Swap(packetw2c_req_send_mail_log_result* other) {
  3499. if (other != this) {
  3500. std::swap(packet_id_, other->packet_id_);
  3501. loglist_.Swap(&other->loglist_);
  3502. std::swap(lasttime_, other->lasttime_);
  3503. std::swap(_has_bits_[0], other->_has_bits_[0]);
  3504. _unknown_fields_.Swap(&other->_unknown_fields_);
  3505. std::swap(_cached_size_, other->_cached_size_);
  3506. }
  3507. }
  3508. ::google::protobuf::Metadata packetw2c_req_send_mail_log_result::GetMetadata() const {
  3509. protobuf_AssignDescriptorsOnce();
  3510. ::google::protobuf::Metadata metadata;
  3511. metadata.descriptor = packetw2c_req_send_mail_log_result_descriptor_;
  3512. metadata.reflection = packetw2c_req_send_mail_log_result_reflection_;
  3513. return metadata;
  3514. }
  3515. // ===================================================================
  3516. #ifndef _MSC_VER
  3517. const int packetc2w_remove_mail_log::kPacketIdFieldNumber;
  3518. const int packetc2w_remove_mail_log::kMailIdFieldNumber;
  3519. #endif // !_MSC_VER
  3520. packetc2w_remove_mail_log::packetc2w_remove_mail_log()
  3521. : ::google::protobuf::Message() {
  3522. SharedCtor();
  3523. }
  3524. void packetc2w_remove_mail_log::InitAsDefaultInstance() {
  3525. }
  3526. packetc2w_remove_mail_log::packetc2w_remove_mail_log(const packetc2w_remove_mail_log& from)
  3527. : ::google::protobuf::Message() {
  3528. SharedCtor();
  3529. MergeFrom(from);
  3530. }
  3531. void packetc2w_remove_mail_log::SharedCtor() {
  3532. _cached_size_ = 0;
  3533. packet_id_ = 5046;
  3534. mailid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  3535. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3536. }
  3537. packetc2w_remove_mail_log::~packetc2w_remove_mail_log() {
  3538. SharedDtor();
  3539. }
  3540. void packetc2w_remove_mail_log::SharedDtor() {
  3541. if (mailid_ != &::google::protobuf::internal::kEmptyString) {
  3542. delete mailid_;
  3543. }
  3544. if (this != default_instance_) {
  3545. }
  3546. }
  3547. void packetc2w_remove_mail_log::SetCachedSize(int size) const {
  3548. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3549. _cached_size_ = size;
  3550. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3551. }
  3552. const ::google::protobuf::Descriptor* packetc2w_remove_mail_log::descriptor() {
  3553. protobuf_AssignDescriptorsOnce();
  3554. return packetc2w_remove_mail_log_descriptor_;
  3555. }
  3556. const packetc2w_remove_mail_log& packetc2w_remove_mail_log::default_instance() {
  3557. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fmail_2eproto();
  3558. return *default_instance_;
  3559. }
  3560. packetc2w_remove_mail_log* packetc2w_remove_mail_log::default_instance_ = NULL;
  3561. packetc2w_remove_mail_log* packetc2w_remove_mail_log::New() const {
  3562. return new packetc2w_remove_mail_log;
  3563. }
  3564. void packetc2w_remove_mail_log::Clear() {
  3565. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3566. packet_id_ = 5046;
  3567. if (has_mailid()) {
  3568. if (mailid_ != &::google::protobuf::internal::kEmptyString) {
  3569. mailid_->clear();
  3570. }
  3571. }
  3572. }
  3573. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3574. mutable_unknown_fields()->Clear();
  3575. }
  3576. bool packetc2w_remove_mail_log::MergePartialFromCodedStream(
  3577. ::google::protobuf::io::CodedInputStream* input) {
  3578. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  3579. ::google::protobuf::uint32 tag;
  3580. while ((tag = input->ReadTag()) != 0) {
  3581. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  3582. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_remove_mail_log];
  3583. case 1: {
  3584. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3585. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3586. int value;
  3587. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3588. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3589. input, &value)));
  3590. if (::client2world_protocols::e_server_msg_type_IsValid(value)) {
  3591. set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value));
  3592. } else {
  3593. mutable_unknown_fields()->AddVarint(1, value);
  3594. }
  3595. } else {
  3596. goto handle_uninterpreted;
  3597. }
  3598. if (input->ExpectTag(18)) goto parse_mailId;
  3599. break;
  3600. }
  3601. // optional string mailId = 2;
  3602. case 2: {
  3603. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3604. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  3605. parse_mailId:
  3606. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  3607. input, this->mutable_mailid()));
  3608. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  3609. this->mailid().data(), this->mailid().length(),
  3610. ::google::protobuf::internal::WireFormat::PARSE);
  3611. } else {
  3612. goto handle_uninterpreted;
  3613. }
  3614. if (input->ExpectAtEnd()) return true;
  3615. break;
  3616. }
  3617. default: {
  3618. handle_uninterpreted:
  3619. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3620. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  3621. return true;
  3622. }
  3623. DO_(::google::protobuf::internal::WireFormat::SkipField(
  3624. input, tag, mutable_unknown_fields()));
  3625. break;
  3626. }
  3627. }
  3628. }
  3629. return true;
  3630. #undef DO_
  3631. }
  3632. void packetc2w_remove_mail_log::SerializeWithCachedSizes(
  3633. ::google::protobuf::io::CodedOutputStream* output) const {
  3634. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_remove_mail_log];
  3635. if (has_packet_id()) {
  3636. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3637. 1, this->packet_id(), output);
  3638. }
  3639. // optional string mailId = 2;
  3640. if (has_mailid()) {
  3641. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  3642. this->mailid().data(), this->mailid().length(),
  3643. ::google::protobuf::internal::WireFormat::SERIALIZE);
  3644. ::google::protobuf::internal::WireFormatLite::WriteString(
  3645. 2, this->mailid(), output);
  3646. }
  3647. if (!unknown_fields().empty()) {
  3648. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3649. unknown_fields(), output);
  3650. }
  3651. }
  3652. ::google::protobuf::uint8* packetc2w_remove_mail_log::SerializeWithCachedSizesToArray(
  3653. ::google::protobuf::uint8* target) const {
  3654. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_remove_mail_log];
  3655. if (has_packet_id()) {
  3656. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3657. 1, this->packet_id(), target);
  3658. }
  3659. // optional string mailId = 2;
  3660. if (has_mailid()) {
  3661. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  3662. this->mailid().data(), this->mailid().length(),
  3663. ::google::protobuf::internal::WireFormat::SERIALIZE);
  3664. target =
  3665. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  3666. 2, this->mailid(), target);
  3667. }
  3668. if (!unknown_fields().empty()) {
  3669. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3670. unknown_fields(), target);
  3671. }
  3672. return target;
  3673. }
  3674. int packetc2w_remove_mail_log::ByteSize() const {
  3675. int total_size = 0;
  3676. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3677. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_remove_mail_log];
  3678. if (has_packet_id()) {
  3679. total_size += 1 +
  3680. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  3681. }
  3682. // optional string mailId = 2;
  3683. if (has_mailid()) {
  3684. total_size += 1 +
  3685. ::google::protobuf::internal::WireFormatLite::StringSize(
  3686. this->mailid());
  3687. }
  3688. }
  3689. if (!unknown_fields().empty()) {
  3690. total_size +=
  3691. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3692. unknown_fields());
  3693. }
  3694. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3695. _cached_size_ = total_size;
  3696. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3697. return total_size;
  3698. }
  3699. void packetc2w_remove_mail_log::MergeFrom(const ::google::protobuf::Message& from) {
  3700. GOOGLE_CHECK_NE(&from, this);
  3701. const packetc2w_remove_mail_log* source =
  3702. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2w_remove_mail_log*>(
  3703. &from);
  3704. if (source == NULL) {
  3705. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3706. } else {
  3707. MergeFrom(*source);
  3708. }
  3709. }
  3710. void packetc2w_remove_mail_log::MergeFrom(const packetc2w_remove_mail_log& from) {
  3711. GOOGLE_CHECK_NE(&from, this);
  3712. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3713. if (from.has_packet_id()) {
  3714. set_packet_id(from.packet_id());
  3715. }
  3716. if (from.has_mailid()) {
  3717. set_mailid(from.mailid());
  3718. }
  3719. }
  3720. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  3721. }
  3722. void packetc2w_remove_mail_log::CopyFrom(const ::google::protobuf::Message& from) {
  3723. if (&from == this) return;
  3724. Clear();
  3725. MergeFrom(from);
  3726. }
  3727. void packetc2w_remove_mail_log::CopyFrom(const packetc2w_remove_mail_log& from) {
  3728. if (&from == this) return;
  3729. Clear();
  3730. MergeFrom(from);
  3731. }
  3732. bool packetc2w_remove_mail_log::IsInitialized() const {
  3733. return true;
  3734. }
  3735. void packetc2w_remove_mail_log::Swap(packetc2w_remove_mail_log* other) {
  3736. if (other != this) {
  3737. std::swap(packet_id_, other->packet_id_);
  3738. std::swap(mailid_, other->mailid_);
  3739. std::swap(_has_bits_[0], other->_has_bits_[0]);
  3740. _unknown_fields_.Swap(&other->_unknown_fields_);
  3741. std::swap(_cached_size_, other->_cached_size_);
  3742. }
  3743. }
  3744. ::google::protobuf::Metadata packetc2w_remove_mail_log::GetMetadata() const {
  3745. protobuf_AssignDescriptorsOnce();
  3746. ::google::protobuf::Metadata metadata;
  3747. metadata.descriptor = packetc2w_remove_mail_log_descriptor_;
  3748. metadata.reflection = packetc2w_remove_mail_log_reflection_;
  3749. return metadata;
  3750. }
  3751. // ===================================================================
  3752. #ifndef _MSC_VER
  3753. const int packetw2c_remove_mail_log_result::kPacketIdFieldNumber;
  3754. const int packetw2c_remove_mail_log_result::kMailIdFieldNumber;
  3755. const int packetw2c_remove_mail_log_result::kResultFieldNumber;
  3756. #endif // !_MSC_VER
  3757. packetw2c_remove_mail_log_result::packetw2c_remove_mail_log_result()
  3758. : ::google::protobuf::Message() {
  3759. SharedCtor();
  3760. }
  3761. void packetw2c_remove_mail_log_result::InitAsDefaultInstance() {
  3762. }
  3763. packetw2c_remove_mail_log_result::packetw2c_remove_mail_log_result(const packetw2c_remove_mail_log_result& from)
  3764. : ::google::protobuf::Message() {
  3765. SharedCtor();
  3766. MergeFrom(from);
  3767. }
  3768. void packetw2c_remove_mail_log_result::SharedCtor() {
  3769. _cached_size_ = 0;
  3770. packet_id_ = 7550;
  3771. mailid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  3772. result_ = 0;
  3773. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3774. }
  3775. packetw2c_remove_mail_log_result::~packetw2c_remove_mail_log_result() {
  3776. SharedDtor();
  3777. }
  3778. void packetw2c_remove_mail_log_result::SharedDtor() {
  3779. if (mailid_ != &::google::protobuf::internal::kEmptyString) {
  3780. delete mailid_;
  3781. }
  3782. if (this != default_instance_) {
  3783. }
  3784. }
  3785. void packetw2c_remove_mail_log_result::SetCachedSize(int size) const {
  3786. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3787. _cached_size_ = size;
  3788. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3789. }
  3790. const ::google::protobuf::Descriptor* packetw2c_remove_mail_log_result::descriptor() {
  3791. protobuf_AssignDescriptorsOnce();
  3792. return packetw2c_remove_mail_log_result_descriptor_;
  3793. }
  3794. const packetw2c_remove_mail_log_result& packetw2c_remove_mail_log_result::default_instance() {
  3795. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fmail_2eproto();
  3796. return *default_instance_;
  3797. }
  3798. packetw2c_remove_mail_log_result* packetw2c_remove_mail_log_result::default_instance_ = NULL;
  3799. packetw2c_remove_mail_log_result* packetw2c_remove_mail_log_result::New() const {
  3800. return new packetw2c_remove_mail_log_result;
  3801. }
  3802. void packetw2c_remove_mail_log_result::Clear() {
  3803. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3804. packet_id_ = 7550;
  3805. if (has_mailid()) {
  3806. if (mailid_ != &::google::protobuf::internal::kEmptyString) {
  3807. mailid_->clear();
  3808. }
  3809. }
  3810. result_ = 0;
  3811. }
  3812. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3813. mutable_unknown_fields()->Clear();
  3814. }
  3815. bool packetw2c_remove_mail_log_result::MergePartialFromCodedStream(
  3816. ::google::protobuf::io::CodedInputStream* input) {
  3817. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  3818. ::google::protobuf::uint32 tag;
  3819. while ((tag = input->ReadTag()) != 0) {
  3820. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  3821. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_remove_mail_log_result];
  3822. case 1: {
  3823. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3824. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3825. int value;
  3826. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3827. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3828. input, &value)));
  3829. if (::client2world_protocols::e_server_msg_type_IsValid(value)) {
  3830. set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value));
  3831. } else {
  3832. mutable_unknown_fields()->AddVarint(1, value);
  3833. }
  3834. } else {
  3835. goto handle_uninterpreted;
  3836. }
  3837. if (input->ExpectTag(18)) goto parse_mailId;
  3838. break;
  3839. }
  3840. // optional string mailId = 2;
  3841. case 2: {
  3842. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3843. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  3844. parse_mailId:
  3845. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  3846. input, this->mutable_mailid()));
  3847. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  3848. this->mailid().data(), this->mailid().length(),
  3849. ::google::protobuf::internal::WireFormat::PARSE);
  3850. } else {
  3851. goto handle_uninterpreted;
  3852. }
  3853. if (input->ExpectTag(24)) goto parse_result;
  3854. break;
  3855. }
  3856. // optional int32 result = 3;
  3857. case 3: {
  3858. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3859. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3860. parse_result:
  3861. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3862. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3863. input, &result_)));
  3864. set_has_result();
  3865. } else {
  3866. goto handle_uninterpreted;
  3867. }
  3868. if (input->ExpectAtEnd()) return true;
  3869. break;
  3870. }
  3871. default: {
  3872. handle_uninterpreted:
  3873. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3874. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  3875. return true;
  3876. }
  3877. DO_(::google::protobuf::internal::WireFormat::SkipField(
  3878. input, tag, mutable_unknown_fields()));
  3879. break;
  3880. }
  3881. }
  3882. }
  3883. return true;
  3884. #undef DO_
  3885. }
  3886. void packetw2c_remove_mail_log_result::SerializeWithCachedSizes(
  3887. ::google::protobuf::io::CodedOutputStream* output) const {
  3888. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_remove_mail_log_result];
  3889. if (has_packet_id()) {
  3890. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3891. 1, this->packet_id(), output);
  3892. }
  3893. // optional string mailId = 2;
  3894. if (has_mailid()) {
  3895. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  3896. this->mailid().data(), this->mailid().length(),
  3897. ::google::protobuf::internal::WireFormat::SERIALIZE);
  3898. ::google::protobuf::internal::WireFormatLite::WriteString(
  3899. 2, this->mailid(), output);
  3900. }
  3901. // optional int32 result = 3;
  3902. if (has_result()) {
  3903. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->result(), output);
  3904. }
  3905. if (!unknown_fields().empty()) {
  3906. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3907. unknown_fields(), output);
  3908. }
  3909. }
  3910. ::google::protobuf::uint8* packetw2c_remove_mail_log_result::SerializeWithCachedSizesToArray(
  3911. ::google::protobuf::uint8* target) const {
  3912. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_remove_mail_log_result];
  3913. if (has_packet_id()) {
  3914. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3915. 1, this->packet_id(), target);
  3916. }
  3917. // optional string mailId = 2;
  3918. if (has_mailid()) {
  3919. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  3920. this->mailid().data(), this->mailid().length(),
  3921. ::google::protobuf::internal::WireFormat::SERIALIZE);
  3922. target =
  3923. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  3924. 2, this->mailid(), target);
  3925. }
  3926. // optional int32 result = 3;
  3927. if (has_result()) {
  3928. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->result(), target);
  3929. }
  3930. if (!unknown_fields().empty()) {
  3931. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3932. unknown_fields(), target);
  3933. }
  3934. return target;
  3935. }
  3936. int packetw2c_remove_mail_log_result::ByteSize() const {
  3937. int total_size = 0;
  3938. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3939. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_remove_mail_log_result];
  3940. if (has_packet_id()) {
  3941. total_size += 1 +
  3942. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  3943. }
  3944. // optional string mailId = 2;
  3945. if (has_mailid()) {
  3946. total_size += 1 +
  3947. ::google::protobuf::internal::WireFormatLite::StringSize(
  3948. this->mailid());
  3949. }
  3950. // optional int32 result = 3;
  3951. if (has_result()) {
  3952. total_size += 1 +
  3953. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3954. this->result());
  3955. }
  3956. }
  3957. if (!unknown_fields().empty()) {
  3958. total_size +=
  3959. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3960. unknown_fields());
  3961. }
  3962. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3963. _cached_size_ = total_size;
  3964. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3965. return total_size;
  3966. }
  3967. void packetw2c_remove_mail_log_result::MergeFrom(const ::google::protobuf::Message& from) {
  3968. GOOGLE_CHECK_NE(&from, this);
  3969. const packetw2c_remove_mail_log_result* source =
  3970. ::google::protobuf::internal::dynamic_cast_if_available<const packetw2c_remove_mail_log_result*>(
  3971. &from);
  3972. if (source == NULL) {
  3973. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3974. } else {
  3975. MergeFrom(*source);
  3976. }
  3977. }
  3978. void packetw2c_remove_mail_log_result::MergeFrom(const packetw2c_remove_mail_log_result& from) {
  3979. GOOGLE_CHECK_NE(&from, this);
  3980. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3981. if (from.has_packet_id()) {
  3982. set_packet_id(from.packet_id());
  3983. }
  3984. if (from.has_mailid()) {
  3985. set_mailid(from.mailid());
  3986. }
  3987. if (from.has_result()) {
  3988. set_result(from.result());
  3989. }
  3990. }
  3991. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  3992. }
  3993. void packetw2c_remove_mail_log_result::CopyFrom(const ::google::protobuf::Message& from) {
  3994. if (&from == this) return;
  3995. Clear();
  3996. MergeFrom(from);
  3997. }
  3998. void packetw2c_remove_mail_log_result::CopyFrom(const packetw2c_remove_mail_log_result& from) {
  3999. if (&from == this) return;
  4000. Clear();
  4001. MergeFrom(from);
  4002. }
  4003. bool packetw2c_remove_mail_log_result::IsInitialized() const {
  4004. return true;
  4005. }
  4006. void packetw2c_remove_mail_log_result::Swap(packetw2c_remove_mail_log_result* other) {
  4007. if (other != this) {
  4008. std::swap(packet_id_, other->packet_id_);
  4009. std::swap(mailid_, other->mailid_);
  4010. std::swap(result_, other->result_);
  4011. std::swap(_has_bits_[0], other->_has_bits_[0]);
  4012. _unknown_fields_.Swap(&other->_unknown_fields_);
  4013. std::swap(_cached_size_, other->_cached_size_);
  4014. }
  4015. }
  4016. ::google::protobuf::Metadata packetw2c_remove_mail_log_result::GetMetadata() const {
  4017. protobuf_AssignDescriptorsOnce();
  4018. ::google::protobuf::Metadata metadata;
  4019. metadata.descriptor = packetw2c_remove_mail_log_result_descriptor_;
  4020. metadata.reflection = packetw2c_remove_mail_log_result_reflection_;
  4021. return metadata;
  4022. }
  4023. // @@protoc_insertion_point(namespace_scope)
  4024. } // namespace client2world_protocols
  4025. // @@protoc_insertion_point(global_scope)