client2world_player_quest.pb.cc 146 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: client2world_player_quest.proto
  3. #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
  4. #include "client2world_player_quest.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_receive_questreward_descriptor_ = NULL;
  18. const ::google::protobuf::internal::GeneratedMessageReflection*
  19. packetc2w_receive_questreward_reflection_ = NULL;
  20. const ::google::protobuf::Descriptor* packetw2c_receive_questreward_result_descriptor_ = NULL;
  21. const ::google::protobuf::internal::GeneratedMessageReflection*
  22. packetw2c_receive_questreward_result_reflection_ = NULL;
  23. const ::google::protobuf::Descriptor* packetc2w_recvall_questreward_descriptor_ = NULL;
  24. const ::google::protobuf::internal::GeneratedMessageReflection*
  25. packetc2w_recvall_questreward_reflection_ = NULL;
  26. const ::google::protobuf::Descriptor* packetw2c_recvall_questreward_result_descriptor_ = NULL;
  27. const ::google::protobuf::internal::GeneratedMessageReflection*
  28. packetw2c_recvall_questreward_result_reflection_ = NULL;
  29. const ::google::protobuf::Descriptor* packetc2w_get_quest_descriptor_ = NULL;
  30. const ::google::protobuf::internal::GeneratedMessageReflection*
  31. packetc2w_get_quest_reflection_ = NULL;
  32. const ::google::protobuf::Descriptor* packetw2c_get_quest_result_descriptor_ = NULL;
  33. const ::google::protobuf::internal::GeneratedMessageReflection*
  34. packetw2c_get_quest_result_reflection_ = NULL;
  35. const ::google::protobuf::Descriptor* packetc2w_receive_quest_score_descriptor_ = NULL;
  36. const ::google::protobuf::internal::GeneratedMessageReflection*
  37. packetc2w_receive_quest_score_reflection_ = NULL;
  38. const ::google::protobuf::Descriptor* packetw2c_receive_quest_score_result_descriptor_ = NULL;
  39. const ::google::protobuf::internal::GeneratedMessageReflection*
  40. packetw2c_receive_quest_score_result_reflection_ = NULL;
  41. const ::google::protobuf::Descriptor* packetc2w_receive_active_reward_descriptor_ = NULL;
  42. const ::google::protobuf::internal::GeneratedMessageReflection*
  43. packetc2w_receive_active_reward_reflection_ = NULL;
  44. const ::google::protobuf::Descriptor* packetw2c_receive_active_reward_result_descriptor_ = NULL;
  45. const ::google::protobuf::internal::GeneratedMessageReflection*
  46. packetw2c_receive_active_reward_result_reflection_ = NULL;
  47. const ::google::protobuf::Descriptor* packetw2c_quest_notify_descriptor_ = NULL;
  48. const ::google::protobuf::internal::GeneratedMessageReflection*
  49. packetw2c_quest_notify_reflection_ = NULL;
  50. } // namespace
  51. void protobuf_AssignDesc_client2world_5fplayer_5fquest_2eproto() {
  52. protobuf_AddDesc_client2world_5fplayer_5fquest_2eproto();
  53. const ::google::protobuf::FileDescriptor* file =
  54. ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
  55. "client2world_player_quest.proto");
  56. GOOGLE_CHECK(file != NULL);
  57. packetc2w_receive_questreward_descriptor_ = file->message_type(0);
  58. static const int packetc2w_receive_questreward_offsets_[3] = {
  59. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_receive_questreward, packet_id_),
  60. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_receive_questreward, type_),
  61. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_receive_questreward, questid_),
  62. };
  63. packetc2w_receive_questreward_reflection_ =
  64. new ::google::protobuf::internal::GeneratedMessageReflection(
  65. packetc2w_receive_questreward_descriptor_,
  66. packetc2w_receive_questreward::default_instance_,
  67. packetc2w_receive_questreward_offsets_,
  68. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_receive_questreward, _has_bits_[0]),
  69. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_receive_questreward, _unknown_fields_),
  70. -1,
  71. ::google::protobuf::DescriptorPool::generated_pool(),
  72. ::google::protobuf::MessageFactory::generated_factory(),
  73. sizeof(packetc2w_receive_questreward));
  74. packetw2c_receive_questreward_result_descriptor_ = file->message_type(1);
  75. static const int packetw2c_receive_questreward_result_offsets_[7] = {
  76. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_receive_questreward_result, packet_id_),
  77. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_receive_questreward_result, type_),
  78. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_receive_questreward_result, questid_),
  79. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_receive_questreward_result, result_),
  80. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_receive_questreward_result, items_),
  81. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_receive_questreward_result, nextquestid_),
  82. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_receive_questreward_result, nextquestcount_),
  83. };
  84. packetw2c_receive_questreward_result_reflection_ =
  85. new ::google::protobuf::internal::GeneratedMessageReflection(
  86. packetw2c_receive_questreward_result_descriptor_,
  87. packetw2c_receive_questreward_result::default_instance_,
  88. packetw2c_receive_questreward_result_offsets_,
  89. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_receive_questreward_result, _has_bits_[0]),
  90. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_receive_questreward_result, _unknown_fields_),
  91. -1,
  92. ::google::protobuf::DescriptorPool::generated_pool(),
  93. ::google::protobuf::MessageFactory::generated_factory(),
  94. sizeof(packetw2c_receive_questreward_result));
  95. packetc2w_recvall_questreward_descriptor_ = file->message_type(2);
  96. static const int packetc2w_recvall_questreward_offsets_[2] = {
  97. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_recvall_questreward, packet_id_),
  98. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_recvall_questreward, type_),
  99. };
  100. packetc2w_recvall_questreward_reflection_ =
  101. new ::google::protobuf::internal::GeneratedMessageReflection(
  102. packetc2w_recvall_questreward_descriptor_,
  103. packetc2w_recvall_questreward::default_instance_,
  104. packetc2w_recvall_questreward_offsets_,
  105. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_recvall_questreward, _has_bits_[0]),
  106. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_recvall_questreward, _unknown_fields_),
  107. -1,
  108. ::google::protobuf::DescriptorPool::generated_pool(),
  109. ::google::protobuf::MessageFactory::generated_factory(),
  110. sizeof(packetc2w_recvall_questreward));
  111. packetw2c_recvall_questreward_result_descriptor_ = file->message_type(3);
  112. static const int packetw2c_recvall_questreward_result_offsets_[6] = {
  113. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_recvall_questreward_result, packet_id_),
  114. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_recvall_questreward_result, type_),
  115. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_recvall_questreward_result, questid_),
  116. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_recvall_questreward_result, active_),
  117. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_recvall_questreward_result, result_),
  118. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_recvall_questreward_result, items_),
  119. };
  120. packetw2c_recvall_questreward_result_reflection_ =
  121. new ::google::protobuf::internal::GeneratedMessageReflection(
  122. packetw2c_recvall_questreward_result_descriptor_,
  123. packetw2c_recvall_questreward_result::default_instance_,
  124. packetw2c_recvall_questreward_result_offsets_,
  125. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_recvall_questreward_result, _has_bits_[0]),
  126. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_recvall_questreward_result, _unknown_fields_),
  127. -1,
  128. ::google::protobuf::DescriptorPool::generated_pool(),
  129. ::google::protobuf::MessageFactory::generated_factory(),
  130. sizeof(packetw2c_recvall_questreward_result));
  131. packetc2w_get_quest_descriptor_ = file->message_type(4);
  132. static const int packetc2w_get_quest_offsets_[2] = {
  133. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_get_quest, packet_id_),
  134. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_get_quest, questtype_),
  135. };
  136. packetc2w_get_quest_reflection_ =
  137. new ::google::protobuf::internal::GeneratedMessageReflection(
  138. packetc2w_get_quest_descriptor_,
  139. packetc2w_get_quest::default_instance_,
  140. packetc2w_get_quest_offsets_,
  141. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_get_quest, _has_bits_[0]),
  142. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_get_quest, _unknown_fields_),
  143. -1,
  144. ::google::protobuf::DescriptorPool::generated_pool(),
  145. ::google::protobuf::MessageFactory::generated_factory(),
  146. sizeof(packetc2w_get_quest));
  147. packetw2c_get_quest_result_descriptor_ = file->message_type(5);
  148. static const int packetw2c_get_quest_result_offsets_[6] = {
  149. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_get_quest_result, packet_id_),
  150. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_get_quest_result, questlist_),
  151. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_get_quest_result, rewardrecvlist_),
  152. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_get_quest_result, questtype_),
  153. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_get_quest_result, curscore_),
  154. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_get_quest_result, endtime_),
  155. };
  156. packetw2c_get_quest_result_reflection_ =
  157. new ::google::protobuf::internal::GeneratedMessageReflection(
  158. packetw2c_get_quest_result_descriptor_,
  159. packetw2c_get_quest_result::default_instance_,
  160. packetw2c_get_quest_result_offsets_,
  161. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_get_quest_result, _has_bits_[0]),
  162. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_get_quest_result, _unknown_fields_),
  163. -1,
  164. ::google::protobuf::DescriptorPool::generated_pool(),
  165. ::google::protobuf::MessageFactory::generated_factory(),
  166. sizeof(packetw2c_get_quest_result));
  167. packetc2w_receive_quest_score_descriptor_ = file->message_type(6);
  168. static const int packetc2w_receive_quest_score_offsets_[2] = {
  169. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_receive_quest_score, packet_id_),
  170. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_receive_quest_score, questid_),
  171. };
  172. packetc2w_receive_quest_score_reflection_ =
  173. new ::google::protobuf::internal::GeneratedMessageReflection(
  174. packetc2w_receive_quest_score_descriptor_,
  175. packetc2w_receive_quest_score::default_instance_,
  176. packetc2w_receive_quest_score_offsets_,
  177. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_receive_quest_score, _has_bits_[0]),
  178. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_receive_quest_score, _unknown_fields_),
  179. -1,
  180. ::google::protobuf::DescriptorPool::generated_pool(),
  181. ::google::protobuf::MessageFactory::generated_factory(),
  182. sizeof(packetc2w_receive_quest_score));
  183. packetw2c_receive_quest_score_result_descriptor_ = file->message_type(7);
  184. static const int packetw2c_receive_quest_score_result_offsets_[3] = {
  185. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_receive_quest_score_result, packet_id_),
  186. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_receive_quest_score_result, questid_),
  187. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_receive_quest_score_result, result_),
  188. };
  189. packetw2c_receive_quest_score_result_reflection_ =
  190. new ::google::protobuf::internal::GeneratedMessageReflection(
  191. packetw2c_receive_quest_score_result_descriptor_,
  192. packetw2c_receive_quest_score_result::default_instance_,
  193. packetw2c_receive_quest_score_result_offsets_,
  194. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_receive_quest_score_result, _has_bits_[0]),
  195. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_receive_quest_score_result, _unknown_fields_),
  196. -1,
  197. ::google::protobuf::DescriptorPool::generated_pool(),
  198. ::google::protobuf::MessageFactory::generated_factory(),
  199. sizeof(packetw2c_receive_quest_score_result));
  200. packetc2w_receive_active_reward_descriptor_ = file->message_type(8);
  201. static const int packetc2w_receive_active_reward_offsets_[3] = {
  202. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_receive_active_reward, packet_id_),
  203. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_receive_active_reward, questtype_),
  204. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_receive_active_reward, rewardid_),
  205. };
  206. packetc2w_receive_active_reward_reflection_ =
  207. new ::google::protobuf::internal::GeneratedMessageReflection(
  208. packetc2w_receive_active_reward_descriptor_,
  209. packetc2w_receive_active_reward::default_instance_,
  210. packetc2w_receive_active_reward_offsets_,
  211. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_receive_active_reward, _has_bits_[0]),
  212. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_receive_active_reward, _unknown_fields_),
  213. -1,
  214. ::google::protobuf::DescriptorPool::generated_pool(),
  215. ::google::protobuf::MessageFactory::generated_factory(),
  216. sizeof(packetc2w_receive_active_reward));
  217. packetw2c_receive_active_reward_result_descriptor_ = file->message_type(9);
  218. static const int packetw2c_receive_active_reward_result_offsets_[4] = {
  219. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_receive_active_reward_result, packet_id_),
  220. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_receive_active_reward_result, questtype_),
  221. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_receive_active_reward_result, rewardid_),
  222. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_receive_active_reward_result, result_),
  223. };
  224. packetw2c_receive_active_reward_result_reflection_ =
  225. new ::google::protobuf::internal::GeneratedMessageReflection(
  226. packetw2c_receive_active_reward_result_descriptor_,
  227. packetw2c_receive_active_reward_result::default_instance_,
  228. packetw2c_receive_active_reward_result_offsets_,
  229. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_receive_active_reward_result, _has_bits_[0]),
  230. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_receive_active_reward_result, _unknown_fields_),
  231. -1,
  232. ::google::protobuf::DescriptorPool::generated_pool(),
  233. ::google::protobuf::MessageFactory::generated_factory(),
  234. sizeof(packetw2c_receive_active_reward_result));
  235. packetw2c_quest_notify_descriptor_ = file->message_type(10);
  236. static const int packetw2c_quest_notify_offsets_[5] = {
  237. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_quest_notify, packet_id_),
  238. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_quest_notify, type_),
  239. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_quest_notify, questid_),
  240. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_quest_notify, count_),
  241. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_quest_notify, day_),
  242. };
  243. packetw2c_quest_notify_reflection_ =
  244. new ::google::protobuf::internal::GeneratedMessageReflection(
  245. packetw2c_quest_notify_descriptor_,
  246. packetw2c_quest_notify::default_instance_,
  247. packetw2c_quest_notify_offsets_,
  248. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_quest_notify, _has_bits_[0]),
  249. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_quest_notify, _unknown_fields_),
  250. -1,
  251. ::google::protobuf::DescriptorPool::generated_pool(),
  252. ::google::protobuf::MessageFactory::generated_factory(),
  253. sizeof(packetw2c_quest_notify));
  254. }
  255. namespace {
  256. GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
  257. inline void protobuf_AssignDescriptorsOnce() {
  258. ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
  259. &protobuf_AssignDesc_client2world_5fplayer_5fquest_2eproto);
  260. }
  261. void protobuf_RegisterTypes(const ::std::string&) {
  262. protobuf_AssignDescriptorsOnce();
  263. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  264. packetc2w_receive_questreward_descriptor_, &packetc2w_receive_questreward::default_instance());
  265. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  266. packetw2c_receive_questreward_result_descriptor_, &packetw2c_receive_questreward_result::default_instance());
  267. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  268. packetc2w_recvall_questreward_descriptor_, &packetc2w_recvall_questreward::default_instance());
  269. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  270. packetw2c_recvall_questreward_result_descriptor_, &packetw2c_recvall_questreward_result::default_instance());
  271. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  272. packetc2w_get_quest_descriptor_, &packetc2w_get_quest::default_instance());
  273. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  274. packetw2c_get_quest_result_descriptor_, &packetw2c_get_quest_result::default_instance());
  275. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  276. packetc2w_receive_quest_score_descriptor_, &packetc2w_receive_quest_score::default_instance());
  277. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  278. packetw2c_receive_quest_score_result_descriptor_, &packetw2c_receive_quest_score_result::default_instance());
  279. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  280. packetc2w_receive_active_reward_descriptor_, &packetc2w_receive_active_reward::default_instance());
  281. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  282. packetw2c_receive_active_reward_result_descriptor_, &packetw2c_receive_active_reward_result::default_instance());
  283. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  284. packetw2c_quest_notify_descriptor_, &packetw2c_quest_notify::default_instance());
  285. }
  286. } // namespace
  287. void protobuf_ShutdownFile_client2world_5fplayer_5fquest_2eproto() {
  288. delete packetc2w_receive_questreward::default_instance_;
  289. delete packetc2w_receive_questreward_reflection_;
  290. delete packetw2c_receive_questreward_result::default_instance_;
  291. delete packetw2c_receive_questreward_result_reflection_;
  292. delete packetc2w_recvall_questreward::default_instance_;
  293. delete packetc2w_recvall_questreward_reflection_;
  294. delete packetw2c_recvall_questreward_result::default_instance_;
  295. delete packetw2c_recvall_questreward_result_reflection_;
  296. delete packetc2w_get_quest::default_instance_;
  297. delete packetc2w_get_quest_reflection_;
  298. delete packetw2c_get_quest_result::default_instance_;
  299. delete packetw2c_get_quest_result_reflection_;
  300. delete packetc2w_receive_quest_score::default_instance_;
  301. delete packetc2w_receive_quest_score_reflection_;
  302. delete packetw2c_receive_quest_score_result::default_instance_;
  303. delete packetw2c_receive_quest_score_result_reflection_;
  304. delete packetc2w_receive_active_reward::default_instance_;
  305. delete packetc2w_receive_active_reward_reflection_;
  306. delete packetw2c_receive_active_reward_result::default_instance_;
  307. delete packetw2c_receive_active_reward_result_reflection_;
  308. delete packetw2c_quest_notify::default_instance_;
  309. delete packetw2c_quest_notify_reflection_;
  310. }
  311. void protobuf_AddDesc_client2world_5fplayer_5fquest_2eproto() {
  312. static bool already_here = false;
  313. if (already_here) return;
  314. already_here = true;
  315. GOOGLE_PROTOBUF_VERIFY_VERSION;
  316. ::client2world_protocols::protobuf_AddDesc_client2world_5fmsg_5ftype_2eproto();
  317. ::msg_type_def::protobuf_AddDesc_msg_5ftype_5fdef_2eproto();
  318. ::msg_info_def::protobuf_AddDesc_msg_5finfo_5fdef_2eproto();
  319. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  320. "\n\037client2world_player_quest.proto\022\026clien"
  321. "t2world_protocols\032\033client2world_msg_type"
  322. ".proto\032\022msg_type_def.proto\032\022msg_info_def"
  323. ".proto\"\233\001\n\035packetc2w_receive_questreward"
  324. "\022[\n\tpacket_id\030\001 \001(\0162).client2world_proto"
  325. "cols.e_server_msg_type:\035e_mst_c2w_receiv"
  326. "e_questreward\022\014\n\004type\030\002 \001(\005\022\017\n\007questid\030\003"
  327. " \001(\005\"\205\002\n$packetw2c_receive_questreward_r"
  328. "esult\022Z\n\tpacket_id\030\001 \001(\0162).client2world_"
  329. "protocols.e_server_msg_type:\034e_mst_w2c_q"
  330. "uestreward_result\022\014\n\004type\030\002 \001(\005\022\017\n\007quest"
  331. "id\030\003 \001(\005\022\016\n\006result\030\004 \001(\005\022%\n\005items\030\005 \003(\0132"
  332. "\026.msg_info_def.ItemInfo\022\023\n\013nextQuestId\030\006"
  333. " \001(\005\022\026\n\016nextQuestCount\030\007 \001(\005\"\212\001\n\035packetc"
  334. "2w_recvall_questreward\022[\n\tpacket_id\030\001 \001("
  335. "\0162).client2world_protocols.e_server_msg_"
  336. "type:\035e_mst_c2w_recvall_questreward\022\014\n\004t"
  337. "ype\030\002 \001(\005\"\360\001\n$packetw2c_recvall_questrew"
  338. "ard_result\022b\n\tpacket_id\030\001 \001(\0162).client2w"
  339. "orld_protocols.e_server_msg_type:$e_mst_"
  340. "w2c_recvall_questreward_result\022\014\n\004type\030\002"
  341. " \001(\005\022\017\n\007questid\030\003 \003(\005\022\016\n\006active\030\004 \003(\005\022\016\n"
  342. "\006result\030\005 \001(\005\022%\n\005items\030\006 \003(\0132\026.msg_info_"
  343. "def.ItemInfo\"{\n\023packetc2w_get_quest\022Q\n\tp"
  344. "acket_id\030\001 \001(\0162).client2world_protocols."
  345. "e_server_msg_type:\023e_mst_c2w_get_quest\022\021"
  346. "\n\tquestType\030\002 \001(\005\"\365\001\n\032packetw2c_get_ques"
  347. "t_result\022X\n\tpacket_id\030\001 \001(\0162).client2wor"
  348. "ld_protocols.e_server_msg_type:\032e_mst_w2"
  349. "c_get_quest_result\022/\n\tquestList\030\002 \003(\0132\034."
  350. "msg_info_def.msg_quest_info\022\026\n\016rewardRec"
  351. "vList\030\003 \003(\005\022\021\n\tquestType\030\004 \001(\005\022\020\n\010curSco"
  352. "re\030\005 \001(\005\022\017\n\007endTime\030\006 \001(\005\"\215\001\n\035packetc2w_"
  353. "receive_quest_score\022[\n\tpacket_id\030\001 \001(\0162)"
  354. ".client2world_protocols.e_server_msg_typ"
  355. "e:\035e_mst_c2w_receive_quest_score\022\017\n\007ques"
  356. "tId\030\002 \001(\005\"\253\001\n$packetw2c_receive_quest_sc"
  357. "ore_result\022b\n\tpacket_id\030\001 \001(\0162).client2w"
  358. "orld_protocols.e_server_msg_type:$e_mst_"
  359. "w2c_receive_quest_score_result\022\017\n\007questI"
  360. "d\030\002 \001(\005\022\016\n\006result\030\003 \001(\005\"\245\001\n\037packetc2w_re"
  361. "ceive_active_reward\022]\n\tpacket_id\030\001 \001(\0162)"
  362. ".client2world_protocols.e_server_msg_typ"
  363. "e:\037e_mst_c2w_receive_active_reward\022\021\n\tqu"
  364. "estType\030\002 \001(\005\022\020\n\010rewardId\030\003 \001(\005\"\303\001\n&pack"
  365. "etw2c_receive_active_reward_result\022d\n\tpa"
  366. "cket_id\030\001 \001(\0162).client2world_protocols.e"
  367. "_server_msg_type:&e_mst_w2c_receive_acti"
  368. "ve_reward_result\022\021\n\tquestType\030\002 \001(\005\022\020\n\010r"
  369. "ewardId\030\003 \001(\005\022\016\n\006result\030\004 \001(\005\"\251\001\n\026packet"
  370. "w2c_quest_notify\022T\n\tpacket_id\030\001 \001(\0162).cl"
  371. "ient2world_protocols.e_server_msg_type:\026"
  372. "e_mst_w2c_quest_notify\022\014\n\004type\030\002 \001(\005\022\017\n\007"
  373. "questId\030\003 \001(\005\022\r\n\005count\030\004 \001(\005\022\013\n\003day\030\005 \001("
  374. "\005", 2161);
  375. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  376. "client2world_player_quest.proto", &protobuf_RegisterTypes);
  377. packetc2w_receive_questreward::default_instance_ = new packetc2w_receive_questreward();
  378. packetw2c_receive_questreward_result::default_instance_ = new packetw2c_receive_questreward_result();
  379. packetc2w_recvall_questreward::default_instance_ = new packetc2w_recvall_questreward();
  380. packetw2c_recvall_questreward_result::default_instance_ = new packetw2c_recvall_questreward_result();
  381. packetc2w_get_quest::default_instance_ = new packetc2w_get_quest();
  382. packetw2c_get_quest_result::default_instance_ = new packetw2c_get_quest_result();
  383. packetc2w_receive_quest_score::default_instance_ = new packetc2w_receive_quest_score();
  384. packetw2c_receive_quest_score_result::default_instance_ = new packetw2c_receive_quest_score_result();
  385. packetc2w_receive_active_reward::default_instance_ = new packetc2w_receive_active_reward();
  386. packetw2c_receive_active_reward_result::default_instance_ = new packetw2c_receive_active_reward_result();
  387. packetw2c_quest_notify::default_instance_ = new packetw2c_quest_notify();
  388. packetc2w_receive_questreward::default_instance_->InitAsDefaultInstance();
  389. packetw2c_receive_questreward_result::default_instance_->InitAsDefaultInstance();
  390. packetc2w_recvall_questreward::default_instance_->InitAsDefaultInstance();
  391. packetw2c_recvall_questreward_result::default_instance_->InitAsDefaultInstance();
  392. packetc2w_get_quest::default_instance_->InitAsDefaultInstance();
  393. packetw2c_get_quest_result::default_instance_->InitAsDefaultInstance();
  394. packetc2w_receive_quest_score::default_instance_->InitAsDefaultInstance();
  395. packetw2c_receive_quest_score_result::default_instance_->InitAsDefaultInstance();
  396. packetc2w_receive_active_reward::default_instance_->InitAsDefaultInstance();
  397. packetw2c_receive_active_reward_result::default_instance_->InitAsDefaultInstance();
  398. packetw2c_quest_notify::default_instance_->InitAsDefaultInstance();
  399. ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_client2world_5fplayer_5fquest_2eproto);
  400. }
  401. // Force AddDescriptors() to be called at static initialization time.
  402. struct StaticDescriptorInitializer_client2world_5fplayer_5fquest_2eproto {
  403. StaticDescriptorInitializer_client2world_5fplayer_5fquest_2eproto() {
  404. protobuf_AddDesc_client2world_5fplayer_5fquest_2eproto();
  405. }
  406. } static_descriptor_initializer_client2world_5fplayer_5fquest_2eproto_;
  407. // ===================================================================
  408. #ifndef _MSC_VER
  409. const int packetc2w_receive_questreward::kPacketIdFieldNumber;
  410. const int packetc2w_receive_questreward::kTypeFieldNumber;
  411. const int packetc2w_receive_questreward::kQuestidFieldNumber;
  412. #endif // !_MSC_VER
  413. packetc2w_receive_questreward::packetc2w_receive_questreward()
  414. : ::google::protobuf::Message() {
  415. SharedCtor();
  416. }
  417. void packetc2w_receive_questreward::InitAsDefaultInstance() {
  418. }
  419. packetc2w_receive_questreward::packetc2w_receive_questreward(const packetc2w_receive_questreward& from)
  420. : ::google::protobuf::Message() {
  421. SharedCtor();
  422. MergeFrom(from);
  423. }
  424. void packetc2w_receive_questreward::SharedCtor() {
  425. _cached_size_ = 0;
  426. packet_id_ = 5059;
  427. type_ = 0;
  428. questid_ = 0;
  429. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  430. }
  431. packetc2w_receive_questreward::~packetc2w_receive_questreward() {
  432. SharedDtor();
  433. }
  434. void packetc2w_receive_questreward::SharedDtor() {
  435. if (this != default_instance_) {
  436. }
  437. }
  438. void packetc2w_receive_questreward::SetCachedSize(int size) const {
  439. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  440. _cached_size_ = size;
  441. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  442. }
  443. const ::google::protobuf::Descriptor* packetc2w_receive_questreward::descriptor() {
  444. protobuf_AssignDescriptorsOnce();
  445. return packetc2w_receive_questreward_descriptor_;
  446. }
  447. const packetc2w_receive_questreward& packetc2w_receive_questreward::default_instance() {
  448. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fplayer_5fquest_2eproto();
  449. return *default_instance_;
  450. }
  451. packetc2w_receive_questreward* packetc2w_receive_questreward::default_instance_ = NULL;
  452. packetc2w_receive_questreward* packetc2w_receive_questreward::New() const {
  453. return new packetc2w_receive_questreward;
  454. }
  455. void packetc2w_receive_questreward::Clear() {
  456. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  457. packet_id_ = 5059;
  458. type_ = 0;
  459. questid_ = 0;
  460. }
  461. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  462. mutable_unknown_fields()->Clear();
  463. }
  464. bool packetc2w_receive_questreward::MergePartialFromCodedStream(
  465. ::google::protobuf::io::CodedInputStream* input) {
  466. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  467. ::google::protobuf::uint32 tag;
  468. while ((tag = input->ReadTag()) != 0) {
  469. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  470. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_receive_questreward];
  471. case 1: {
  472. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  473. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  474. int value;
  475. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  476. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  477. input, &value)));
  478. if (::client2world_protocols::e_server_msg_type_IsValid(value)) {
  479. set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value));
  480. } else {
  481. mutable_unknown_fields()->AddVarint(1, value);
  482. }
  483. } else {
  484. goto handle_uninterpreted;
  485. }
  486. if (input->ExpectTag(16)) goto parse_type;
  487. break;
  488. }
  489. // optional int32 type = 2;
  490. case 2: {
  491. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  492. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  493. parse_type:
  494. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  495. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  496. input, &type_)));
  497. set_has_type();
  498. } else {
  499. goto handle_uninterpreted;
  500. }
  501. if (input->ExpectTag(24)) goto parse_questid;
  502. break;
  503. }
  504. // optional int32 questid = 3;
  505. case 3: {
  506. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  507. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  508. parse_questid:
  509. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  510. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  511. input, &questid_)));
  512. set_has_questid();
  513. } else {
  514. goto handle_uninterpreted;
  515. }
  516. if (input->ExpectAtEnd()) return true;
  517. break;
  518. }
  519. default: {
  520. handle_uninterpreted:
  521. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  522. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  523. return true;
  524. }
  525. DO_(::google::protobuf::internal::WireFormat::SkipField(
  526. input, tag, mutable_unknown_fields()));
  527. break;
  528. }
  529. }
  530. }
  531. return true;
  532. #undef DO_
  533. }
  534. void packetc2w_receive_questreward::SerializeWithCachedSizes(
  535. ::google::protobuf::io::CodedOutputStream* output) const {
  536. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_receive_questreward];
  537. if (has_packet_id()) {
  538. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  539. 1, this->packet_id(), output);
  540. }
  541. // optional int32 type = 2;
  542. if (has_type()) {
  543. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->type(), output);
  544. }
  545. // optional int32 questid = 3;
  546. if (has_questid()) {
  547. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->questid(), output);
  548. }
  549. if (!unknown_fields().empty()) {
  550. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  551. unknown_fields(), output);
  552. }
  553. }
  554. ::google::protobuf::uint8* packetc2w_receive_questreward::SerializeWithCachedSizesToArray(
  555. ::google::protobuf::uint8* target) const {
  556. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_receive_questreward];
  557. if (has_packet_id()) {
  558. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  559. 1, this->packet_id(), target);
  560. }
  561. // optional int32 type = 2;
  562. if (has_type()) {
  563. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->type(), target);
  564. }
  565. // optional int32 questid = 3;
  566. if (has_questid()) {
  567. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->questid(), target);
  568. }
  569. if (!unknown_fields().empty()) {
  570. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  571. unknown_fields(), target);
  572. }
  573. return target;
  574. }
  575. int packetc2w_receive_questreward::ByteSize() const {
  576. int total_size = 0;
  577. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  578. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_receive_questreward];
  579. if (has_packet_id()) {
  580. total_size += 1 +
  581. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  582. }
  583. // optional int32 type = 2;
  584. if (has_type()) {
  585. total_size += 1 +
  586. ::google::protobuf::internal::WireFormatLite::Int32Size(
  587. this->type());
  588. }
  589. // optional int32 questid = 3;
  590. if (has_questid()) {
  591. total_size += 1 +
  592. ::google::protobuf::internal::WireFormatLite::Int32Size(
  593. this->questid());
  594. }
  595. }
  596. if (!unknown_fields().empty()) {
  597. total_size +=
  598. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  599. unknown_fields());
  600. }
  601. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  602. _cached_size_ = total_size;
  603. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  604. return total_size;
  605. }
  606. void packetc2w_receive_questreward::MergeFrom(const ::google::protobuf::Message& from) {
  607. GOOGLE_CHECK_NE(&from, this);
  608. const packetc2w_receive_questreward* source =
  609. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2w_receive_questreward*>(
  610. &from);
  611. if (source == NULL) {
  612. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  613. } else {
  614. MergeFrom(*source);
  615. }
  616. }
  617. void packetc2w_receive_questreward::MergeFrom(const packetc2w_receive_questreward& from) {
  618. GOOGLE_CHECK_NE(&from, this);
  619. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  620. if (from.has_packet_id()) {
  621. set_packet_id(from.packet_id());
  622. }
  623. if (from.has_type()) {
  624. set_type(from.type());
  625. }
  626. if (from.has_questid()) {
  627. set_questid(from.questid());
  628. }
  629. }
  630. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  631. }
  632. void packetc2w_receive_questreward::CopyFrom(const ::google::protobuf::Message& from) {
  633. if (&from == this) return;
  634. Clear();
  635. MergeFrom(from);
  636. }
  637. void packetc2w_receive_questreward::CopyFrom(const packetc2w_receive_questreward& from) {
  638. if (&from == this) return;
  639. Clear();
  640. MergeFrom(from);
  641. }
  642. bool packetc2w_receive_questreward::IsInitialized() const {
  643. return true;
  644. }
  645. void packetc2w_receive_questreward::Swap(packetc2w_receive_questreward* other) {
  646. if (other != this) {
  647. std::swap(packet_id_, other->packet_id_);
  648. std::swap(type_, other->type_);
  649. std::swap(questid_, other->questid_);
  650. std::swap(_has_bits_[0], other->_has_bits_[0]);
  651. _unknown_fields_.Swap(&other->_unknown_fields_);
  652. std::swap(_cached_size_, other->_cached_size_);
  653. }
  654. }
  655. ::google::protobuf::Metadata packetc2w_receive_questreward::GetMetadata() const {
  656. protobuf_AssignDescriptorsOnce();
  657. ::google::protobuf::Metadata metadata;
  658. metadata.descriptor = packetc2w_receive_questreward_descriptor_;
  659. metadata.reflection = packetc2w_receive_questreward_reflection_;
  660. return metadata;
  661. }
  662. // ===================================================================
  663. #ifndef _MSC_VER
  664. const int packetw2c_receive_questreward_result::kPacketIdFieldNumber;
  665. const int packetw2c_receive_questreward_result::kTypeFieldNumber;
  666. const int packetw2c_receive_questreward_result::kQuestidFieldNumber;
  667. const int packetw2c_receive_questreward_result::kResultFieldNumber;
  668. const int packetw2c_receive_questreward_result::kItemsFieldNumber;
  669. const int packetw2c_receive_questreward_result::kNextQuestIdFieldNumber;
  670. const int packetw2c_receive_questreward_result::kNextQuestCountFieldNumber;
  671. #endif // !_MSC_VER
  672. packetw2c_receive_questreward_result::packetw2c_receive_questreward_result()
  673. : ::google::protobuf::Message() {
  674. SharedCtor();
  675. }
  676. void packetw2c_receive_questreward_result::InitAsDefaultInstance() {
  677. }
  678. packetw2c_receive_questreward_result::packetw2c_receive_questreward_result(const packetw2c_receive_questreward_result& from)
  679. : ::google::protobuf::Message() {
  680. SharedCtor();
  681. MergeFrom(from);
  682. }
  683. void packetw2c_receive_questreward_result::SharedCtor() {
  684. _cached_size_ = 0;
  685. packet_id_ = 7562;
  686. type_ = 0;
  687. questid_ = 0;
  688. result_ = 0;
  689. nextquestid_ = 0;
  690. nextquestcount_ = 0;
  691. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  692. }
  693. packetw2c_receive_questreward_result::~packetw2c_receive_questreward_result() {
  694. SharedDtor();
  695. }
  696. void packetw2c_receive_questreward_result::SharedDtor() {
  697. if (this != default_instance_) {
  698. }
  699. }
  700. void packetw2c_receive_questreward_result::SetCachedSize(int size) const {
  701. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  702. _cached_size_ = size;
  703. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  704. }
  705. const ::google::protobuf::Descriptor* packetw2c_receive_questreward_result::descriptor() {
  706. protobuf_AssignDescriptorsOnce();
  707. return packetw2c_receive_questreward_result_descriptor_;
  708. }
  709. const packetw2c_receive_questreward_result& packetw2c_receive_questreward_result::default_instance() {
  710. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fplayer_5fquest_2eproto();
  711. return *default_instance_;
  712. }
  713. packetw2c_receive_questreward_result* packetw2c_receive_questreward_result::default_instance_ = NULL;
  714. packetw2c_receive_questreward_result* packetw2c_receive_questreward_result::New() const {
  715. return new packetw2c_receive_questreward_result;
  716. }
  717. void packetw2c_receive_questreward_result::Clear() {
  718. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  719. packet_id_ = 7562;
  720. type_ = 0;
  721. questid_ = 0;
  722. result_ = 0;
  723. nextquestid_ = 0;
  724. nextquestcount_ = 0;
  725. }
  726. items_.Clear();
  727. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  728. mutable_unknown_fields()->Clear();
  729. }
  730. bool packetw2c_receive_questreward_result::MergePartialFromCodedStream(
  731. ::google::protobuf::io::CodedInputStream* input) {
  732. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  733. ::google::protobuf::uint32 tag;
  734. while ((tag = input->ReadTag()) != 0) {
  735. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  736. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_questreward_result];
  737. case 1: {
  738. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  739. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  740. int value;
  741. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  742. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  743. input, &value)));
  744. if (::client2world_protocols::e_server_msg_type_IsValid(value)) {
  745. set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value));
  746. } else {
  747. mutable_unknown_fields()->AddVarint(1, value);
  748. }
  749. } else {
  750. goto handle_uninterpreted;
  751. }
  752. if (input->ExpectTag(16)) goto parse_type;
  753. break;
  754. }
  755. // optional int32 type = 2;
  756. case 2: {
  757. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  758. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  759. parse_type:
  760. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  761. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  762. input, &type_)));
  763. set_has_type();
  764. } else {
  765. goto handle_uninterpreted;
  766. }
  767. if (input->ExpectTag(24)) goto parse_questid;
  768. break;
  769. }
  770. // optional int32 questid = 3;
  771. case 3: {
  772. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  773. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  774. parse_questid:
  775. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  776. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  777. input, &questid_)));
  778. set_has_questid();
  779. } else {
  780. goto handle_uninterpreted;
  781. }
  782. if (input->ExpectTag(32)) goto parse_result;
  783. break;
  784. }
  785. // optional int32 result = 4;
  786. case 4: {
  787. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  788. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  789. parse_result:
  790. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  791. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  792. input, &result_)));
  793. set_has_result();
  794. } else {
  795. goto handle_uninterpreted;
  796. }
  797. if (input->ExpectTag(42)) goto parse_items;
  798. break;
  799. }
  800. // repeated .msg_info_def.ItemInfo items = 5;
  801. case 5: {
  802. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  803. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  804. parse_items:
  805. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  806. input, add_items()));
  807. } else {
  808. goto handle_uninterpreted;
  809. }
  810. if (input->ExpectTag(42)) goto parse_items;
  811. if (input->ExpectTag(48)) goto parse_nextQuestId;
  812. break;
  813. }
  814. // optional int32 nextQuestId = 6;
  815. case 6: {
  816. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  817. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  818. parse_nextQuestId:
  819. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  820. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  821. input, &nextquestid_)));
  822. set_has_nextquestid();
  823. } else {
  824. goto handle_uninterpreted;
  825. }
  826. if (input->ExpectTag(56)) goto parse_nextQuestCount;
  827. break;
  828. }
  829. // optional int32 nextQuestCount = 7;
  830. case 7: {
  831. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  832. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  833. parse_nextQuestCount:
  834. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  835. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  836. input, &nextquestcount_)));
  837. set_has_nextquestcount();
  838. } else {
  839. goto handle_uninterpreted;
  840. }
  841. if (input->ExpectAtEnd()) return true;
  842. break;
  843. }
  844. default: {
  845. handle_uninterpreted:
  846. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  847. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  848. return true;
  849. }
  850. DO_(::google::protobuf::internal::WireFormat::SkipField(
  851. input, tag, mutable_unknown_fields()));
  852. break;
  853. }
  854. }
  855. }
  856. return true;
  857. #undef DO_
  858. }
  859. void packetw2c_receive_questreward_result::SerializeWithCachedSizes(
  860. ::google::protobuf::io::CodedOutputStream* output) const {
  861. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_questreward_result];
  862. if (has_packet_id()) {
  863. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  864. 1, this->packet_id(), output);
  865. }
  866. // optional int32 type = 2;
  867. if (has_type()) {
  868. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->type(), output);
  869. }
  870. // optional int32 questid = 3;
  871. if (has_questid()) {
  872. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->questid(), output);
  873. }
  874. // optional int32 result = 4;
  875. if (has_result()) {
  876. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->result(), output);
  877. }
  878. // repeated .msg_info_def.ItemInfo items = 5;
  879. for (int i = 0; i < this->items_size(); i++) {
  880. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  881. 5, this->items(i), output);
  882. }
  883. // optional int32 nextQuestId = 6;
  884. if (has_nextquestid()) {
  885. ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->nextquestid(), output);
  886. }
  887. // optional int32 nextQuestCount = 7;
  888. if (has_nextquestcount()) {
  889. ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->nextquestcount(), output);
  890. }
  891. if (!unknown_fields().empty()) {
  892. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  893. unknown_fields(), output);
  894. }
  895. }
  896. ::google::protobuf::uint8* packetw2c_receive_questreward_result::SerializeWithCachedSizesToArray(
  897. ::google::protobuf::uint8* target) const {
  898. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_questreward_result];
  899. if (has_packet_id()) {
  900. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  901. 1, this->packet_id(), target);
  902. }
  903. // optional int32 type = 2;
  904. if (has_type()) {
  905. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->type(), target);
  906. }
  907. // optional int32 questid = 3;
  908. if (has_questid()) {
  909. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->questid(), target);
  910. }
  911. // optional int32 result = 4;
  912. if (has_result()) {
  913. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->result(), target);
  914. }
  915. // repeated .msg_info_def.ItemInfo items = 5;
  916. for (int i = 0; i < this->items_size(); i++) {
  917. target = ::google::protobuf::internal::WireFormatLite::
  918. WriteMessageNoVirtualToArray(
  919. 5, this->items(i), target);
  920. }
  921. // optional int32 nextQuestId = 6;
  922. if (has_nextquestid()) {
  923. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->nextquestid(), target);
  924. }
  925. // optional int32 nextQuestCount = 7;
  926. if (has_nextquestcount()) {
  927. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->nextquestcount(), target);
  928. }
  929. if (!unknown_fields().empty()) {
  930. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  931. unknown_fields(), target);
  932. }
  933. return target;
  934. }
  935. int packetw2c_receive_questreward_result::ByteSize() const {
  936. int total_size = 0;
  937. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  938. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_questreward_result];
  939. if (has_packet_id()) {
  940. total_size += 1 +
  941. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  942. }
  943. // optional int32 type = 2;
  944. if (has_type()) {
  945. total_size += 1 +
  946. ::google::protobuf::internal::WireFormatLite::Int32Size(
  947. this->type());
  948. }
  949. // optional int32 questid = 3;
  950. if (has_questid()) {
  951. total_size += 1 +
  952. ::google::protobuf::internal::WireFormatLite::Int32Size(
  953. this->questid());
  954. }
  955. // optional int32 result = 4;
  956. if (has_result()) {
  957. total_size += 1 +
  958. ::google::protobuf::internal::WireFormatLite::Int32Size(
  959. this->result());
  960. }
  961. // optional int32 nextQuestId = 6;
  962. if (has_nextquestid()) {
  963. total_size += 1 +
  964. ::google::protobuf::internal::WireFormatLite::Int32Size(
  965. this->nextquestid());
  966. }
  967. // optional int32 nextQuestCount = 7;
  968. if (has_nextquestcount()) {
  969. total_size += 1 +
  970. ::google::protobuf::internal::WireFormatLite::Int32Size(
  971. this->nextquestcount());
  972. }
  973. }
  974. // repeated .msg_info_def.ItemInfo items = 5;
  975. total_size += 1 * this->items_size();
  976. for (int i = 0; i < this->items_size(); i++) {
  977. total_size +=
  978. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  979. this->items(i));
  980. }
  981. if (!unknown_fields().empty()) {
  982. total_size +=
  983. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  984. unknown_fields());
  985. }
  986. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  987. _cached_size_ = total_size;
  988. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  989. return total_size;
  990. }
  991. void packetw2c_receive_questreward_result::MergeFrom(const ::google::protobuf::Message& from) {
  992. GOOGLE_CHECK_NE(&from, this);
  993. const packetw2c_receive_questreward_result* source =
  994. ::google::protobuf::internal::dynamic_cast_if_available<const packetw2c_receive_questreward_result*>(
  995. &from);
  996. if (source == NULL) {
  997. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  998. } else {
  999. MergeFrom(*source);
  1000. }
  1001. }
  1002. void packetw2c_receive_questreward_result::MergeFrom(const packetw2c_receive_questreward_result& from) {
  1003. GOOGLE_CHECK_NE(&from, this);
  1004. items_.MergeFrom(from.items_);
  1005. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1006. if (from.has_packet_id()) {
  1007. set_packet_id(from.packet_id());
  1008. }
  1009. if (from.has_type()) {
  1010. set_type(from.type());
  1011. }
  1012. if (from.has_questid()) {
  1013. set_questid(from.questid());
  1014. }
  1015. if (from.has_result()) {
  1016. set_result(from.result());
  1017. }
  1018. if (from.has_nextquestid()) {
  1019. set_nextquestid(from.nextquestid());
  1020. }
  1021. if (from.has_nextquestcount()) {
  1022. set_nextquestcount(from.nextquestcount());
  1023. }
  1024. }
  1025. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  1026. }
  1027. void packetw2c_receive_questreward_result::CopyFrom(const ::google::protobuf::Message& from) {
  1028. if (&from == this) return;
  1029. Clear();
  1030. MergeFrom(from);
  1031. }
  1032. void packetw2c_receive_questreward_result::CopyFrom(const packetw2c_receive_questreward_result& from) {
  1033. if (&from == this) return;
  1034. Clear();
  1035. MergeFrom(from);
  1036. }
  1037. bool packetw2c_receive_questreward_result::IsInitialized() const {
  1038. return true;
  1039. }
  1040. void packetw2c_receive_questreward_result::Swap(packetw2c_receive_questreward_result* other) {
  1041. if (other != this) {
  1042. std::swap(packet_id_, other->packet_id_);
  1043. std::swap(type_, other->type_);
  1044. std::swap(questid_, other->questid_);
  1045. std::swap(result_, other->result_);
  1046. items_.Swap(&other->items_);
  1047. std::swap(nextquestid_, other->nextquestid_);
  1048. std::swap(nextquestcount_, other->nextquestcount_);
  1049. std::swap(_has_bits_[0], other->_has_bits_[0]);
  1050. _unknown_fields_.Swap(&other->_unknown_fields_);
  1051. std::swap(_cached_size_, other->_cached_size_);
  1052. }
  1053. }
  1054. ::google::protobuf::Metadata packetw2c_receive_questreward_result::GetMetadata() const {
  1055. protobuf_AssignDescriptorsOnce();
  1056. ::google::protobuf::Metadata metadata;
  1057. metadata.descriptor = packetw2c_receive_questreward_result_descriptor_;
  1058. metadata.reflection = packetw2c_receive_questreward_result_reflection_;
  1059. return metadata;
  1060. }
  1061. // ===================================================================
  1062. #ifndef _MSC_VER
  1063. const int packetc2w_recvall_questreward::kPacketIdFieldNumber;
  1064. const int packetc2w_recvall_questreward::kTypeFieldNumber;
  1065. #endif // !_MSC_VER
  1066. packetc2w_recvall_questreward::packetc2w_recvall_questreward()
  1067. : ::google::protobuf::Message() {
  1068. SharedCtor();
  1069. }
  1070. void packetc2w_recvall_questreward::InitAsDefaultInstance() {
  1071. }
  1072. packetc2w_recvall_questreward::packetc2w_recvall_questreward(const packetc2w_recvall_questreward& from)
  1073. : ::google::protobuf::Message() {
  1074. SharedCtor();
  1075. MergeFrom(from);
  1076. }
  1077. void packetc2w_recvall_questreward::SharedCtor() {
  1078. _cached_size_ = 0;
  1079. packet_id_ = 5256;
  1080. type_ = 0;
  1081. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1082. }
  1083. packetc2w_recvall_questreward::~packetc2w_recvall_questreward() {
  1084. SharedDtor();
  1085. }
  1086. void packetc2w_recvall_questreward::SharedDtor() {
  1087. if (this != default_instance_) {
  1088. }
  1089. }
  1090. void packetc2w_recvall_questreward::SetCachedSize(int size) const {
  1091. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1092. _cached_size_ = size;
  1093. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1094. }
  1095. const ::google::protobuf::Descriptor* packetc2w_recvall_questreward::descriptor() {
  1096. protobuf_AssignDescriptorsOnce();
  1097. return packetc2w_recvall_questreward_descriptor_;
  1098. }
  1099. const packetc2w_recvall_questreward& packetc2w_recvall_questreward::default_instance() {
  1100. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fplayer_5fquest_2eproto();
  1101. return *default_instance_;
  1102. }
  1103. packetc2w_recvall_questreward* packetc2w_recvall_questreward::default_instance_ = NULL;
  1104. packetc2w_recvall_questreward* packetc2w_recvall_questreward::New() const {
  1105. return new packetc2w_recvall_questreward;
  1106. }
  1107. void packetc2w_recvall_questreward::Clear() {
  1108. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1109. packet_id_ = 5256;
  1110. type_ = 0;
  1111. }
  1112. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1113. mutable_unknown_fields()->Clear();
  1114. }
  1115. bool packetc2w_recvall_questreward::MergePartialFromCodedStream(
  1116. ::google::protobuf::io::CodedInputStream* input) {
  1117. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  1118. ::google::protobuf::uint32 tag;
  1119. while ((tag = input->ReadTag()) != 0) {
  1120. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1121. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_recvall_questreward];
  1122. case 1: {
  1123. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1124. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1125. int value;
  1126. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1127. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1128. input, &value)));
  1129. if (::client2world_protocols::e_server_msg_type_IsValid(value)) {
  1130. set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value));
  1131. } else {
  1132. mutable_unknown_fields()->AddVarint(1, value);
  1133. }
  1134. } else {
  1135. goto handle_uninterpreted;
  1136. }
  1137. if (input->ExpectTag(16)) goto parse_type;
  1138. break;
  1139. }
  1140. // optional int32 type = 2;
  1141. case 2: {
  1142. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1143. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1144. parse_type:
  1145. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1146. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1147. input, &type_)));
  1148. set_has_type();
  1149. } else {
  1150. goto handle_uninterpreted;
  1151. }
  1152. if (input->ExpectAtEnd()) return true;
  1153. break;
  1154. }
  1155. default: {
  1156. handle_uninterpreted:
  1157. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1158. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  1159. return true;
  1160. }
  1161. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1162. input, tag, mutable_unknown_fields()));
  1163. break;
  1164. }
  1165. }
  1166. }
  1167. return true;
  1168. #undef DO_
  1169. }
  1170. void packetc2w_recvall_questreward::SerializeWithCachedSizes(
  1171. ::google::protobuf::io::CodedOutputStream* output) const {
  1172. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_recvall_questreward];
  1173. if (has_packet_id()) {
  1174. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1175. 1, this->packet_id(), output);
  1176. }
  1177. // optional int32 type = 2;
  1178. if (has_type()) {
  1179. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->type(), output);
  1180. }
  1181. if (!unknown_fields().empty()) {
  1182. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1183. unknown_fields(), output);
  1184. }
  1185. }
  1186. ::google::protobuf::uint8* packetc2w_recvall_questreward::SerializeWithCachedSizesToArray(
  1187. ::google::protobuf::uint8* target) const {
  1188. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_recvall_questreward];
  1189. if (has_packet_id()) {
  1190. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1191. 1, this->packet_id(), target);
  1192. }
  1193. // optional int32 type = 2;
  1194. if (has_type()) {
  1195. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->type(), target);
  1196. }
  1197. if (!unknown_fields().empty()) {
  1198. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1199. unknown_fields(), target);
  1200. }
  1201. return target;
  1202. }
  1203. int packetc2w_recvall_questreward::ByteSize() const {
  1204. int total_size = 0;
  1205. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1206. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_recvall_questreward];
  1207. if (has_packet_id()) {
  1208. total_size += 1 +
  1209. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  1210. }
  1211. // optional int32 type = 2;
  1212. if (has_type()) {
  1213. total_size += 1 +
  1214. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1215. this->type());
  1216. }
  1217. }
  1218. if (!unknown_fields().empty()) {
  1219. total_size +=
  1220. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1221. unknown_fields());
  1222. }
  1223. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1224. _cached_size_ = total_size;
  1225. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1226. return total_size;
  1227. }
  1228. void packetc2w_recvall_questreward::MergeFrom(const ::google::protobuf::Message& from) {
  1229. GOOGLE_CHECK_NE(&from, this);
  1230. const packetc2w_recvall_questreward* source =
  1231. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2w_recvall_questreward*>(
  1232. &from);
  1233. if (source == NULL) {
  1234. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1235. } else {
  1236. MergeFrom(*source);
  1237. }
  1238. }
  1239. void packetc2w_recvall_questreward::MergeFrom(const packetc2w_recvall_questreward& from) {
  1240. GOOGLE_CHECK_NE(&from, this);
  1241. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1242. if (from.has_packet_id()) {
  1243. set_packet_id(from.packet_id());
  1244. }
  1245. if (from.has_type()) {
  1246. set_type(from.type());
  1247. }
  1248. }
  1249. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  1250. }
  1251. void packetc2w_recvall_questreward::CopyFrom(const ::google::protobuf::Message& from) {
  1252. if (&from == this) return;
  1253. Clear();
  1254. MergeFrom(from);
  1255. }
  1256. void packetc2w_recvall_questreward::CopyFrom(const packetc2w_recvall_questreward& from) {
  1257. if (&from == this) return;
  1258. Clear();
  1259. MergeFrom(from);
  1260. }
  1261. bool packetc2w_recvall_questreward::IsInitialized() const {
  1262. return true;
  1263. }
  1264. void packetc2w_recvall_questreward::Swap(packetc2w_recvall_questreward* other) {
  1265. if (other != this) {
  1266. std::swap(packet_id_, other->packet_id_);
  1267. std::swap(type_, other->type_);
  1268. std::swap(_has_bits_[0], other->_has_bits_[0]);
  1269. _unknown_fields_.Swap(&other->_unknown_fields_);
  1270. std::swap(_cached_size_, other->_cached_size_);
  1271. }
  1272. }
  1273. ::google::protobuf::Metadata packetc2w_recvall_questreward::GetMetadata() const {
  1274. protobuf_AssignDescriptorsOnce();
  1275. ::google::protobuf::Metadata metadata;
  1276. metadata.descriptor = packetc2w_recvall_questreward_descriptor_;
  1277. metadata.reflection = packetc2w_recvall_questreward_reflection_;
  1278. return metadata;
  1279. }
  1280. // ===================================================================
  1281. #ifndef _MSC_VER
  1282. const int packetw2c_recvall_questreward_result::kPacketIdFieldNumber;
  1283. const int packetw2c_recvall_questreward_result::kTypeFieldNumber;
  1284. const int packetw2c_recvall_questreward_result::kQuestidFieldNumber;
  1285. const int packetw2c_recvall_questreward_result::kActiveFieldNumber;
  1286. const int packetw2c_recvall_questreward_result::kResultFieldNumber;
  1287. const int packetw2c_recvall_questreward_result::kItemsFieldNumber;
  1288. #endif // !_MSC_VER
  1289. packetw2c_recvall_questreward_result::packetw2c_recvall_questreward_result()
  1290. : ::google::protobuf::Message() {
  1291. SharedCtor();
  1292. }
  1293. void packetw2c_recvall_questreward_result::InitAsDefaultInstance() {
  1294. }
  1295. packetw2c_recvall_questreward_result::packetw2c_recvall_questreward_result(const packetw2c_recvall_questreward_result& from)
  1296. : ::google::protobuf::Message() {
  1297. SharedCtor();
  1298. MergeFrom(from);
  1299. }
  1300. void packetw2c_recvall_questreward_result::SharedCtor() {
  1301. _cached_size_ = 0;
  1302. packet_id_ = 7804;
  1303. type_ = 0;
  1304. result_ = 0;
  1305. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1306. }
  1307. packetw2c_recvall_questreward_result::~packetw2c_recvall_questreward_result() {
  1308. SharedDtor();
  1309. }
  1310. void packetw2c_recvall_questreward_result::SharedDtor() {
  1311. if (this != default_instance_) {
  1312. }
  1313. }
  1314. void packetw2c_recvall_questreward_result::SetCachedSize(int size) const {
  1315. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1316. _cached_size_ = size;
  1317. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1318. }
  1319. const ::google::protobuf::Descriptor* packetw2c_recvall_questreward_result::descriptor() {
  1320. protobuf_AssignDescriptorsOnce();
  1321. return packetw2c_recvall_questreward_result_descriptor_;
  1322. }
  1323. const packetw2c_recvall_questreward_result& packetw2c_recvall_questreward_result::default_instance() {
  1324. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fplayer_5fquest_2eproto();
  1325. return *default_instance_;
  1326. }
  1327. packetw2c_recvall_questreward_result* packetw2c_recvall_questreward_result::default_instance_ = NULL;
  1328. packetw2c_recvall_questreward_result* packetw2c_recvall_questreward_result::New() const {
  1329. return new packetw2c_recvall_questreward_result;
  1330. }
  1331. void packetw2c_recvall_questreward_result::Clear() {
  1332. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1333. packet_id_ = 7804;
  1334. type_ = 0;
  1335. result_ = 0;
  1336. }
  1337. questid_.Clear();
  1338. active_.Clear();
  1339. items_.Clear();
  1340. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1341. mutable_unknown_fields()->Clear();
  1342. }
  1343. bool packetw2c_recvall_questreward_result::MergePartialFromCodedStream(
  1344. ::google::protobuf::io::CodedInputStream* input) {
  1345. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  1346. ::google::protobuf::uint32 tag;
  1347. while ((tag = input->ReadTag()) != 0) {
  1348. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1349. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_recvall_questreward_result];
  1350. case 1: {
  1351. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1352. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1353. int value;
  1354. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1355. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1356. input, &value)));
  1357. if (::client2world_protocols::e_server_msg_type_IsValid(value)) {
  1358. set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value));
  1359. } else {
  1360. mutable_unknown_fields()->AddVarint(1, value);
  1361. }
  1362. } else {
  1363. goto handle_uninterpreted;
  1364. }
  1365. if (input->ExpectTag(16)) goto parse_type;
  1366. break;
  1367. }
  1368. // optional int32 type = 2;
  1369. case 2: {
  1370. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1371. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1372. parse_type:
  1373. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1374. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1375. input, &type_)));
  1376. set_has_type();
  1377. } else {
  1378. goto handle_uninterpreted;
  1379. }
  1380. if (input->ExpectTag(24)) goto parse_questid;
  1381. break;
  1382. }
  1383. // repeated int32 questid = 3;
  1384. case 3: {
  1385. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1386. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1387. parse_questid:
  1388. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
  1389. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1390. 1, 24, input, this->mutable_questid())));
  1391. } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
  1392. == ::google::protobuf::internal::WireFormatLite::
  1393. WIRETYPE_LENGTH_DELIMITED) {
  1394. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
  1395. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1396. input, this->mutable_questid())));
  1397. } else {
  1398. goto handle_uninterpreted;
  1399. }
  1400. if (input->ExpectTag(24)) goto parse_questid;
  1401. if (input->ExpectTag(32)) goto parse_active;
  1402. break;
  1403. }
  1404. // repeated int32 active = 4;
  1405. case 4: {
  1406. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1407. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1408. parse_active:
  1409. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
  1410. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1411. 1, 32, input, this->mutable_active())));
  1412. } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
  1413. == ::google::protobuf::internal::WireFormatLite::
  1414. WIRETYPE_LENGTH_DELIMITED) {
  1415. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
  1416. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1417. input, this->mutable_active())));
  1418. } else {
  1419. goto handle_uninterpreted;
  1420. }
  1421. if (input->ExpectTag(32)) goto parse_active;
  1422. if (input->ExpectTag(40)) goto parse_result;
  1423. break;
  1424. }
  1425. // optional int32 result = 5;
  1426. case 5: {
  1427. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1428. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1429. parse_result:
  1430. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1431. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1432. input, &result_)));
  1433. set_has_result();
  1434. } else {
  1435. goto handle_uninterpreted;
  1436. }
  1437. if (input->ExpectTag(50)) goto parse_items;
  1438. break;
  1439. }
  1440. // repeated .msg_info_def.ItemInfo items = 6;
  1441. case 6: {
  1442. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1443. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  1444. parse_items:
  1445. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  1446. input, add_items()));
  1447. } else {
  1448. goto handle_uninterpreted;
  1449. }
  1450. if (input->ExpectTag(50)) goto parse_items;
  1451. if (input->ExpectAtEnd()) return true;
  1452. break;
  1453. }
  1454. default: {
  1455. handle_uninterpreted:
  1456. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1457. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  1458. return true;
  1459. }
  1460. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1461. input, tag, mutable_unknown_fields()));
  1462. break;
  1463. }
  1464. }
  1465. }
  1466. return true;
  1467. #undef DO_
  1468. }
  1469. void packetw2c_recvall_questreward_result::SerializeWithCachedSizes(
  1470. ::google::protobuf::io::CodedOutputStream* output) const {
  1471. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_recvall_questreward_result];
  1472. if (has_packet_id()) {
  1473. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1474. 1, this->packet_id(), output);
  1475. }
  1476. // optional int32 type = 2;
  1477. if (has_type()) {
  1478. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->type(), output);
  1479. }
  1480. // repeated int32 questid = 3;
  1481. for (int i = 0; i < this->questid_size(); i++) {
  1482. ::google::protobuf::internal::WireFormatLite::WriteInt32(
  1483. 3, this->questid(i), output);
  1484. }
  1485. // repeated int32 active = 4;
  1486. for (int i = 0; i < this->active_size(); i++) {
  1487. ::google::protobuf::internal::WireFormatLite::WriteInt32(
  1488. 4, this->active(i), output);
  1489. }
  1490. // optional int32 result = 5;
  1491. if (has_result()) {
  1492. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->result(), output);
  1493. }
  1494. // repeated .msg_info_def.ItemInfo items = 6;
  1495. for (int i = 0; i < this->items_size(); i++) {
  1496. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1497. 6, this->items(i), output);
  1498. }
  1499. if (!unknown_fields().empty()) {
  1500. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1501. unknown_fields(), output);
  1502. }
  1503. }
  1504. ::google::protobuf::uint8* packetw2c_recvall_questreward_result::SerializeWithCachedSizesToArray(
  1505. ::google::protobuf::uint8* target) const {
  1506. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_recvall_questreward_result];
  1507. if (has_packet_id()) {
  1508. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1509. 1, this->packet_id(), target);
  1510. }
  1511. // optional int32 type = 2;
  1512. if (has_type()) {
  1513. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->type(), target);
  1514. }
  1515. // repeated int32 questid = 3;
  1516. for (int i = 0; i < this->questid_size(); i++) {
  1517. target = ::google::protobuf::internal::WireFormatLite::
  1518. WriteInt32ToArray(3, this->questid(i), target);
  1519. }
  1520. // repeated int32 active = 4;
  1521. for (int i = 0; i < this->active_size(); i++) {
  1522. target = ::google::protobuf::internal::WireFormatLite::
  1523. WriteInt32ToArray(4, this->active(i), target);
  1524. }
  1525. // optional int32 result = 5;
  1526. if (has_result()) {
  1527. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->result(), target);
  1528. }
  1529. // repeated .msg_info_def.ItemInfo items = 6;
  1530. for (int i = 0; i < this->items_size(); i++) {
  1531. target = ::google::protobuf::internal::WireFormatLite::
  1532. WriteMessageNoVirtualToArray(
  1533. 6, this->items(i), target);
  1534. }
  1535. if (!unknown_fields().empty()) {
  1536. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1537. unknown_fields(), target);
  1538. }
  1539. return target;
  1540. }
  1541. int packetw2c_recvall_questreward_result::ByteSize() const {
  1542. int total_size = 0;
  1543. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1544. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_recvall_questreward_result];
  1545. if (has_packet_id()) {
  1546. total_size += 1 +
  1547. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  1548. }
  1549. // optional int32 type = 2;
  1550. if (has_type()) {
  1551. total_size += 1 +
  1552. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1553. this->type());
  1554. }
  1555. // optional int32 result = 5;
  1556. if (has_result()) {
  1557. total_size += 1 +
  1558. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1559. this->result());
  1560. }
  1561. }
  1562. // repeated int32 questid = 3;
  1563. {
  1564. int data_size = 0;
  1565. for (int i = 0; i < this->questid_size(); i++) {
  1566. data_size += ::google::protobuf::internal::WireFormatLite::
  1567. Int32Size(this->questid(i));
  1568. }
  1569. total_size += 1 * this->questid_size() + data_size;
  1570. }
  1571. // repeated int32 active = 4;
  1572. {
  1573. int data_size = 0;
  1574. for (int i = 0; i < this->active_size(); i++) {
  1575. data_size += ::google::protobuf::internal::WireFormatLite::
  1576. Int32Size(this->active(i));
  1577. }
  1578. total_size += 1 * this->active_size() + data_size;
  1579. }
  1580. // repeated .msg_info_def.ItemInfo items = 6;
  1581. total_size += 1 * this->items_size();
  1582. for (int i = 0; i < this->items_size(); i++) {
  1583. total_size +=
  1584. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  1585. this->items(i));
  1586. }
  1587. if (!unknown_fields().empty()) {
  1588. total_size +=
  1589. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1590. unknown_fields());
  1591. }
  1592. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1593. _cached_size_ = total_size;
  1594. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1595. return total_size;
  1596. }
  1597. void packetw2c_recvall_questreward_result::MergeFrom(const ::google::protobuf::Message& from) {
  1598. GOOGLE_CHECK_NE(&from, this);
  1599. const packetw2c_recvall_questreward_result* source =
  1600. ::google::protobuf::internal::dynamic_cast_if_available<const packetw2c_recvall_questreward_result*>(
  1601. &from);
  1602. if (source == NULL) {
  1603. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1604. } else {
  1605. MergeFrom(*source);
  1606. }
  1607. }
  1608. void packetw2c_recvall_questreward_result::MergeFrom(const packetw2c_recvall_questreward_result& from) {
  1609. GOOGLE_CHECK_NE(&from, this);
  1610. questid_.MergeFrom(from.questid_);
  1611. active_.MergeFrom(from.active_);
  1612. items_.MergeFrom(from.items_);
  1613. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1614. if (from.has_packet_id()) {
  1615. set_packet_id(from.packet_id());
  1616. }
  1617. if (from.has_type()) {
  1618. set_type(from.type());
  1619. }
  1620. if (from.has_result()) {
  1621. set_result(from.result());
  1622. }
  1623. }
  1624. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  1625. }
  1626. void packetw2c_recvall_questreward_result::CopyFrom(const ::google::protobuf::Message& from) {
  1627. if (&from == this) return;
  1628. Clear();
  1629. MergeFrom(from);
  1630. }
  1631. void packetw2c_recvall_questreward_result::CopyFrom(const packetw2c_recvall_questreward_result& from) {
  1632. if (&from == this) return;
  1633. Clear();
  1634. MergeFrom(from);
  1635. }
  1636. bool packetw2c_recvall_questreward_result::IsInitialized() const {
  1637. return true;
  1638. }
  1639. void packetw2c_recvall_questreward_result::Swap(packetw2c_recvall_questreward_result* other) {
  1640. if (other != this) {
  1641. std::swap(packet_id_, other->packet_id_);
  1642. std::swap(type_, other->type_);
  1643. questid_.Swap(&other->questid_);
  1644. active_.Swap(&other->active_);
  1645. std::swap(result_, other->result_);
  1646. items_.Swap(&other->items_);
  1647. std::swap(_has_bits_[0], other->_has_bits_[0]);
  1648. _unknown_fields_.Swap(&other->_unknown_fields_);
  1649. std::swap(_cached_size_, other->_cached_size_);
  1650. }
  1651. }
  1652. ::google::protobuf::Metadata packetw2c_recvall_questreward_result::GetMetadata() const {
  1653. protobuf_AssignDescriptorsOnce();
  1654. ::google::protobuf::Metadata metadata;
  1655. metadata.descriptor = packetw2c_recvall_questreward_result_descriptor_;
  1656. metadata.reflection = packetw2c_recvall_questreward_result_reflection_;
  1657. return metadata;
  1658. }
  1659. // ===================================================================
  1660. #ifndef _MSC_VER
  1661. const int packetc2w_get_quest::kPacketIdFieldNumber;
  1662. const int packetc2w_get_quest::kQuestTypeFieldNumber;
  1663. #endif // !_MSC_VER
  1664. packetc2w_get_quest::packetc2w_get_quest()
  1665. : ::google::protobuf::Message() {
  1666. SharedCtor();
  1667. }
  1668. void packetc2w_get_quest::InitAsDefaultInstance() {
  1669. }
  1670. packetc2w_get_quest::packetc2w_get_quest(const packetc2w_get_quest& from)
  1671. : ::google::protobuf::Message() {
  1672. SharedCtor();
  1673. MergeFrom(from);
  1674. }
  1675. void packetc2w_get_quest::SharedCtor() {
  1676. _cached_size_ = 0;
  1677. packet_id_ = 5100;
  1678. questtype_ = 0;
  1679. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1680. }
  1681. packetc2w_get_quest::~packetc2w_get_quest() {
  1682. SharedDtor();
  1683. }
  1684. void packetc2w_get_quest::SharedDtor() {
  1685. if (this != default_instance_) {
  1686. }
  1687. }
  1688. void packetc2w_get_quest::SetCachedSize(int size) const {
  1689. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1690. _cached_size_ = size;
  1691. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1692. }
  1693. const ::google::protobuf::Descriptor* packetc2w_get_quest::descriptor() {
  1694. protobuf_AssignDescriptorsOnce();
  1695. return packetc2w_get_quest_descriptor_;
  1696. }
  1697. const packetc2w_get_quest& packetc2w_get_quest::default_instance() {
  1698. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fplayer_5fquest_2eproto();
  1699. return *default_instance_;
  1700. }
  1701. packetc2w_get_quest* packetc2w_get_quest::default_instance_ = NULL;
  1702. packetc2w_get_quest* packetc2w_get_quest::New() const {
  1703. return new packetc2w_get_quest;
  1704. }
  1705. void packetc2w_get_quest::Clear() {
  1706. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1707. packet_id_ = 5100;
  1708. questtype_ = 0;
  1709. }
  1710. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1711. mutable_unknown_fields()->Clear();
  1712. }
  1713. bool packetc2w_get_quest::MergePartialFromCodedStream(
  1714. ::google::protobuf::io::CodedInputStream* input) {
  1715. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  1716. ::google::protobuf::uint32 tag;
  1717. while ((tag = input->ReadTag()) != 0) {
  1718. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1719. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_get_quest];
  1720. case 1: {
  1721. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1722. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1723. int value;
  1724. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1725. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1726. input, &value)));
  1727. if (::client2world_protocols::e_server_msg_type_IsValid(value)) {
  1728. set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value));
  1729. } else {
  1730. mutable_unknown_fields()->AddVarint(1, value);
  1731. }
  1732. } else {
  1733. goto handle_uninterpreted;
  1734. }
  1735. if (input->ExpectTag(16)) goto parse_questType;
  1736. break;
  1737. }
  1738. // optional int32 questType = 2;
  1739. case 2: {
  1740. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1741. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1742. parse_questType:
  1743. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1744. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1745. input, &questtype_)));
  1746. set_has_questtype();
  1747. } else {
  1748. goto handle_uninterpreted;
  1749. }
  1750. if (input->ExpectAtEnd()) return true;
  1751. break;
  1752. }
  1753. default: {
  1754. handle_uninterpreted:
  1755. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1756. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  1757. return true;
  1758. }
  1759. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1760. input, tag, mutable_unknown_fields()));
  1761. break;
  1762. }
  1763. }
  1764. }
  1765. return true;
  1766. #undef DO_
  1767. }
  1768. void packetc2w_get_quest::SerializeWithCachedSizes(
  1769. ::google::protobuf::io::CodedOutputStream* output) const {
  1770. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_get_quest];
  1771. if (has_packet_id()) {
  1772. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1773. 1, this->packet_id(), output);
  1774. }
  1775. // optional int32 questType = 2;
  1776. if (has_questtype()) {
  1777. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->questtype(), output);
  1778. }
  1779. if (!unknown_fields().empty()) {
  1780. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1781. unknown_fields(), output);
  1782. }
  1783. }
  1784. ::google::protobuf::uint8* packetc2w_get_quest::SerializeWithCachedSizesToArray(
  1785. ::google::protobuf::uint8* target) const {
  1786. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_get_quest];
  1787. if (has_packet_id()) {
  1788. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1789. 1, this->packet_id(), target);
  1790. }
  1791. // optional int32 questType = 2;
  1792. if (has_questtype()) {
  1793. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->questtype(), target);
  1794. }
  1795. if (!unknown_fields().empty()) {
  1796. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1797. unknown_fields(), target);
  1798. }
  1799. return target;
  1800. }
  1801. int packetc2w_get_quest::ByteSize() const {
  1802. int total_size = 0;
  1803. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1804. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_get_quest];
  1805. if (has_packet_id()) {
  1806. total_size += 1 +
  1807. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  1808. }
  1809. // optional int32 questType = 2;
  1810. if (has_questtype()) {
  1811. total_size += 1 +
  1812. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1813. this->questtype());
  1814. }
  1815. }
  1816. if (!unknown_fields().empty()) {
  1817. total_size +=
  1818. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1819. unknown_fields());
  1820. }
  1821. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1822. _cached_size_ = total_size;
  1823. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1824. return total_size;
  1825. }
  1826. void packetc2w_get_quest::MergeFrom(const ::google::protobuf::Message& from) {
  1827. GOOGLE_CHECK_NE(&from, this);
  1828. const packetc2w_get_quest* source =
  1829. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2w_get_quest*>(
  1830. &from);
  1831. if (source == NULL) {
  1832. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1833. } else {
  1834. MergeFrom(*source);
  1835. }
  1836. }
  1837. void packetc2w_get_quest::MergeFrom(const packetc2w_get_quest& from) {
  1838. GOOGLE_CHECK_NE(&from, this);
  1839. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1840. if (from.has_packet_id()) {
  1841. set_packet_id(from.packet_id());
  1842. }
  1843. if (from.has_questtype()) {
  1844. set_questtype(from.questtype());
  1845. }
  1846. }
  1847. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  1848. }
  1849. void packetc2w_get_quest::CopyFrom(const ::google::protobuf::Message& from) {
  1850. if (&from == this) return;
  1851. Clear();
  1852. MergeFrom(from);
  1853. }
  1854. void packetc2w_get_quest::CopyFrom(const packetc2w_get_quest& from) {
  1855. if (&from == this) return;
  1856. Clear();
  1857. MergeFrom(from);
  1858. }
  1859. bool packetc2w_get_quest::IsInitialized() const {
  1860. return true;
  1861. }
  1862. void packetc2w_get_quest::Swap(packetc2w_get_quest* other) {
  1863. if (other != this) {
  1864. std::swap(packet_id_, other->packet_id_);
  1865. std::swap(questtype_, other->questtype_);
  1866. std::swap(_has_bits_[0], other->_has_bits_[0]);
  1867. _unknown_fields_.Swap(&other->_unknown_fields_);
  1868. std::swap(_cached_size_, other->_cached_size_);
  1869. }
  1870. }
  1871. ::google::protobuf::Metadata packetc2w_get_quest::GetMetadata() const {
  1872. protobuf_AssignDescriptorsOnce();
  1873. ::google::protobuf::Metadata metadata;
  1874. metadata.descriptor = packetc2w_get_quest_descriptor_;
  1875. metadata.reflection = packetc2w_get_quest_reflection_;
  1876. return metadata;
  1877. }
  1878. // ===================================================================
  1879. #ifndef _MSC_VER
  1880. const int packetw2c_get_quest_result::kPacketIdFieldNumber;
  1881. const int packetw2c_get_quest_result::kQuestListFieldNumber;
  1882. const int packetw2c_get_quest_result::kRewardRecvListFieldNumber;
  1883. const int packetw2c_get_quest_result::kQuestTypeFieldNumber;
  1884. const int packetw2c_get_quest_result::kCurScoreFieldNumber;
  1885. const int packetw2c_get_quest_result::kEndTimeFieldNumber;
  1886. #endif // !_MSC_VER
  1887. packetw2c_get_quest_result::packetw2c_get_quest_result()
  1888. : ::google::protobuf::Message() {
  1889. SharedCtor();
  1890. }
  1891. void packetw2c_get_quest_result::InitAsDefaultInstance() {
  1892. }
  1893. packetw2c_get_quest_result::packetw2c_get_quest_result(const packetw2c_get_quest_result& from)
  1894. : ::google::protobuf::Message() {
  1895. SharedCtor();
  1896. MergeFrom(from);
  1897. }
  1898. void packetw2c_get_quest_result::SharedCtor() {
  1899. _cached_size_ = 0;
  1900. packet_id_ = 7607;
  1901. questtype_ = 0;
  1902. curscore_ = 0;
  1903. endtime_ = 0;
  1904. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1905. }
  1906. packetw2c_get_quest_result::~packetw2c_get_quest_result() {
  1907. SharedDtor();
  1908. }
  1909. void packetw2c_get_quest_result::SharedDtor() {
  1910. if (this != default_instance_) {
  1911. }
  1912. }
  1913. void packetw2c_get_quest_result::SetCachedSize(int size) const {
  1914. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1915. _cached_size_ = size;
  1916. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1917. }
  1918. const ::google::protobuf::Descriptor* packetw2c_get_quest_result::descriptor() {
  1919. protobuf_AssignDescriptorsOnce();
  1920. return packetw2c_get_quest_result_descriptor_;
  1921. }
  1922. const packetw2c_get_quest_result& packetw2c_get_quest_result::default_instance() {
  1923. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fplayer_5fquest_2eproto();
  1924. return *default_instance_;
  1925. }
  1926. packetw2c_get_quest_result* packetw2c_get_quest_result::default_instance_ = NULL;
  1927. packetw2c_get_quest_result* packetw2c_get_quest_result::New() const {
  1928. return new packetw2c_get_quest_result;
  1929. }
  1930. void packetw2c_get_quest_result::Clear() {
  1931. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1932. packet_id_ = 7607;
  1933. questtype_ = 0;
  1934. curscore_ = 0;
  1935. endtime_ = 0;
  1936. }
  1937. questlist_.Clear();
  1938. rewardrecvlist_.Clear();
  1939. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1940. mutable_unknown_fields()->Clear();
  1941. }
  1942. bool packetw2c_get_quest_result::MergePartialFromCodedStream(
  1943. ::google::protobuf::io::CodedInputStream* input) {
  1944. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  1945. ::google::protobuf::uint32 tag;
  1946. while ((tag = input->ReadTag()) != 0) {
  1947. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1948. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_get_quest_result];
  1949. case 1: {
  1950. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1951. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1952. int value;
  1953. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1954. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1955. input, &value)));
  1956. if (::client2world_protocols::e_server_msg_type_IsValid(value)) {
  1957. set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value));
  1958. } else {
  1959. mutable_unknown_fields()->AddVarint(1, value);
  1960. }
  1961. } else {
  1962. goto handle_uninterpreted;
  1963. }
  1964. if (input->ExpectTag(18)) goto parse_questList;
  1965. break;
  1966. }
  1967. // repeated .msg_info_def.msg_quest_info questList = 2;
  1968. case 2: {
  1969. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1970. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  1971. parse_questList:
  1972. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  1973. input, add_questlist()));
  1974. } else {
  1975. goto handle_uninterpreted;
  1976. }
  1977. if (input->ExpectTag(18)) goto parse_questList;
  1978. if (input->ExpectTag(24)) goto parse_rewardRecvList;
  1979. break;
  1980. }
  1981. // repeated int32 rewardRecvList = 3;
  1982. case 3: {
  1983. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1984. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1985. parse_rewardRecvList:
  1986. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
  1987. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1988. 1, 24, input, this->mutable_rewardrecvlist())));
  1989. } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
  1990. == ::google::protobuf::internal::WireFormatLite::
  1991. WIRETYPE_LENGTH_DELIMITED) {
  1992. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
  1993. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1994. input, this->mutable_rewardrecvlist())));
  1995. } else {
  1996. goto handle_uninterpreted;
  1997. }
  1998. if (input->ExpectTag(24)) goto parse_rewardRecvList;
  1999. if (input->ExpectTag(32)) goto parse_questType;
  2000. break;
  2001. }
  2002. // optional int32 questType = 4;
  2003. case 4: {
  2004. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2005. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2006. parse_questType:
  2007. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2008. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2009. input, &questtype_)));
  2010. set_has_questtype();
  2011. } else {
  2012. goto handle_uninterpreted;
  2013. }
  2014. if (input->ExpectTag(40)) goto parse_curScore;
  2015. break;
  2016. }
  2017. // optional int32 curScore = 5;
  2018. case 5: {
  2019. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2020. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2021. parse_curScore:
  2022. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2023. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2024. input, &curscore_)));
  2025. set_has_curscore();
  2026. } else {
  2027. goto handle_uninterpreted;
  2028. }
  2029. if (input->ExpectTag(48)) goto parse_endTime;
  2030. break;
  2031. }
  2032. // optional int32 endTime = 6;
  2033. case 6: {
  2034. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2035. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2036. parse_endTime:
  2037. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2038. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2039. input, &endtime_)));
  2040. set_has_endtime();
  2041. } else {
  2042. goto handle_uninterpreted;
  2043. }
  2044. if (input->ExpectAtEnd()) return true;
  2045. break;
  2046. }
  2047. default: {
  2048. handle_uninterpreted:
  2049. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2050. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  2051. return true;
  2052. }
  2053. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2054. input, tag, mutable_unknown_fields()));
  2055. break;
  2056. }
  2057. }
  2058. }
  2059. return true;
  2060. #undef DO_
  2061. }
  2062. void packetw2c_get_quest_result::SerializeWithCachedSizes(
  2063. ::google::protobuf::io::CodedOutputStream* output) const {
  2064. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_get_quest_result];
  2065. if (has_packet_id()) {
  2066. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2067. 1, this->packet_id(), output);
  2068. }
  2069. // repeated .msg_info_def.msg_quest_info questList = 2;
  2070. for (int i = 0; i < this->questlist_size(); i++) {
  2071. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2072. 2, this->questlist(i), output);
  2073. }
  2074. // repeated int32 rewardRecvList = 3;
  2075. for (int i = 0; i < this->rewardrecvlist_size(); i++) {
  2076. ::google::protobuf::internal::WireFormatLite::WriteInt32(
  2077. 3, this->rewardrecvlist(i), output);
  2078. }
  2079. // optional int32 questType = 4;
  2080. if (has_questtype()) {
  2081. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->questtype(), output);
  2082. }
  2083. // optional int32 curScore = 5;
  2084. if (has_curscore()) {
  2085. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->curscore(), output);
  2086. }
  2087. // optional int32 endTime = 6;
  2088. if (has_endtime()) {
  2089. ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->endtime(), output);
  2090. }
  2091. if (!unknown_fields().empty()) {
  2092. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2093. unknown_fields(), output);
  2094. }
  2095. }
  2096. ::google::protobuf::uint8* packetw2c_get_quest_result::SerializeWithCachedSizesToArray(
  2097. ::google::protobuf::uint8* target) const {
  2098. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_get_quest_result];
  2099. if (has_packet_id()) {
  2100. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2101. 1, this->packet_id(), target);
  2102. }
  2103. // repeated .msg_info_def.msg_quest_info questList = 2;
  2104. for (int i = 0; i < this->questlist_size(); i++) {
  2105. target = ::google::protobuf::internal::WireFormatLite::
  2106. WriteMessageNoVirtualToArray(
  2107. 2, this->questlist(i), target);
  2108. }
  2109. // repeated int32 rewardRecvList = 3;
  2110. for (int i = 0; i < this->rewardrecvlist_size(); i++) {
  2111. target = ::google::protobuf::internal::WireFormatLite::
  2112. WriteInt32ToArray(3, this->rewardrecvlist(i), target);
  2113. }
  2114. // optional int32 questType = 4;
  2115. if (has_questtype()) {
  2116. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->questtype(), target);
  2117. }
  2118. // optional int32 curScore = 5;
  2119. if (has_curscore()) {
  2120. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->curscore(), target);
  2121. }
  2122. // optional int32 endTime = 6;
  2123. if (has_endtime()) {
  2124. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->endtime(), target);
  2125. }
  2126. if (!unknown_fields().empty()) {
  2127. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2128. unknown_fields(), target);
  2129. }
  2130. return target;
  2131. }
  2132. int packetw2c_get_quest_result::ByteSize() const {
  2133. int total_size = 0;
  2134. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2135. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_get_quest_result];
  2136. if (has_packet_id()) {
  2137. total_size += 1 +
  2138. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  2139. }
  2140. // optional int32 questType = 4;
  2141. if (has_questtype()) {
  2142. total_size += 1 +
  2143. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2144. this->questtype());
  2145. }
  2146. // optional int32 curScore = 5;
  2147. if (has_curscore()) {
  2148. total_size += 1 +
  2149. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2150. this->curscore());
  2151. }
  2152. // optional int32 endTime = 6;
  2153. if (has_endtime()) {
  2154. total_size += 1 +
  2155. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2156. this->endtime());
  2157. }
  2158. }
  2159. // repeated .msg_info_def.msg_quest_info questList = 2;
  2160. total_size += 1 * this->questlist_size();
  2161. for (int i = 0; i < this->questlist_size(); i++) {
  2162. total_size +=
  2163. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  2164. this->questlist(i));
  2165. }
  2166. // repeated int32 rewardRecvList = 3;
  2167. {
  2168. int data_size = 0;
  2169. for (int i = 0; i < this->rewardrecvlist_size(); i++) {
  2170. data_size += ::google::protobuf::internal::WireFormatLite::
  2171. Int32Size(this->rewardrecvlist(i));
  2172. }
  2173. total_size += 1 * this->rewardrecvlist_size() + data_size;
  2174. }
  2175. if (!unknown_fields().empty()) {
  2176. total_size +=
  2177. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2178. unknown_fields());
  2179. }
  2180. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2181. _cached_size_ = total_size;
  2182. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2183. return total_size;
  2184. }
  2185. void packetw2c_get_quest_result::MergeFrom(const ::google::protobuf::Message& from) {
  2186. GOOGLE_CHECK_NE(&from, this);
  2187. const packetw2c_get_quest_result* source =
  2188. ::google::protobuf::internal::dynamic_cast_if_available<const packetw2c_get_quest_result*>(
  2189. &from);
  2190. if (source == NULL) {
  2191. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2192. } else {
  2193. MergeFrom(*source);
  2194. }
  2195. }
  2196. void packetw2c_get_quest_result::MergeFrom(const packetw2c_get_quest_result& from) {
  2197. GOOGLE_CHECK_NE(&from, this);
  2198. questlist_.MergeFrom(from.questlist_);
  2199. rewardrecvlist_.MergeFrom(from.rewardrecvlist_);
  2200. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2201. if (from.has_packet_id()) {
  2202. set_packet_id(from.packet_id());
  2203. }
  2204. if (from.has_questtype()) {
  2205. set_questtype(from.questtype());
  2206. }
  2207. if (from.has_curscore()) {
  2208. set_curscore(from.curscore());
  2209. }
  2210. if (from.has_endtime()) {
  2211. set_endtime(from.endtime());
  2212. }
  2213. }
  2214. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  2215. }
  2216. void packetw2c_get_quest_result::CopyFrom(const ::google::protobuf::Message& from) {
  2217. if (&from == this) return;
  2218. Clear();
  2219. MergeFrom(from);
  2220. }
  2221. void packetw2c_get_quest_result::CopyFrom(const packetw2c_get_quest_result& from) {
  2222. if (&from == this) return;
  2223. Clear();
  2224. MergeFrom(from);
  2225. }
  2226. bool packetw2c_get_quest_result::IsInitialized() const {
  2227. return true;
  2228. }
  2229. void packetw2c_get_quest_result::Swap(packetw2c_get_quest_result* other) {
  2230. if (other != this) {
  2231. std::swap(packet_id_, other->packet_id_);
  2232. questlist_.Swap(&other->questlist_);
  2233. rewardrecvlist_.Swap(&other->rewardrecvlist_);
  2234. std::swap(questtype_, other->questtype_);
  2235. std::swap(curscore_, other->curscore_);
  2236. std::swap(endtime_, other->endtime_);
  2237. std::swap(_has_bits_[0], other->_has_bits_[0]);
  2238. _unknown_fields_.Swap(&other->_unknown_fields_);
  2239. std::swap(_cached_size_, other->_cached_size_);
  2240. }
  2241. }
  2242. ::google::protobuf::Metadata packetw2c_get_quest_result::GetMetadata() const {
  2243. protobuf_AssignDescriptorsOnce();
  2244. ::google::protobuf::Metadata metadata;
  2245. metadata.descriptor = packetw2c_get_quest_result_descriptor_;
  2246. metadata.reflection = packetw2c_get_quest_result_reflection_;
  2247. return metadata;
  2248. }
  2249. // ===================================================================
  2250. #ifndef _MSC_VER
  2251. const int packetc2w_receive_quest_score::kPacketIdFieldNumber;
  2252. const int packetc2w_receive_quest_score::kQuestIdFieldNumber;
  2253. #endif // !_MSC_VER
  2254. packetc2w_receive_quest_score::packetc2w_receive_quest_score()
  2255. : ::google::protobuf::Message() {
  2256. SharedCtor();
  2257. }
  2258. void packetc2w_receive_quest_score::InitAsDefaultInstance() {
  2259. }
  2260. packetc2w_receive_quest_score::packetc2w_receive_quest_score(const packetc2w_receive_quest_score& from)
  2261. : ::google::protobuf::Message() {
  2262. SharedCtor();
  2263. MergeFrom(from);
  2264. }
  2265. void packetc2w_receive_quest_score::SharedCtor() {
  2266. _cached_size_ = 0;
  2267. packet_id_ = 5101;
  2268. questid_ = 0;
  2269. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2270. }
  2271. packetc2w_receive_quest_score::~packetc2w_receive_quest_score() {
  2272. SharedDtor();
  2273. }
  2274. void packetc2w_receive_quest_score::SharedDtor() {
  2275. if (this != default_instance_) {
  2276. }
  2277. }
  2278. void packetc2w_receive_quest_score::SetCachedSize(int size) const {
  2279. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2280. _cached_size_ = size;
  2281. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2282. }
  2283. const ::google::protobuf::Descriptor* packetc2w_receive_quest_score::descriptor() {
  2284. protobuf_AssignDescriptorsOnce();
  2285. return packetc2w_receive_quest_score_descriptor_;
  2286. }
  2287. const packetc2w_receive_quest_score& packetc2w_receive_quest_score::default_instance() {
  2288. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fplayer_5fquest_2eproto();
  2289. return *default_instance_;
  2290. }
  2291. packetc2w_receive_quest_score* packetc2w_receive_quest_score::default_instance_ = NULL;
  2292. packetc2w_receive_quest_score* packetc2w_receive_quest_score::New() const {
  2293. return new packetc2w_receive_quest_score;
  2294. }
  2295. void packetc2w_receive_quest_score::Clear() {
  2296. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2297. packet_id_ = 5101;
  2298. questid_ = 0;
  2299. }
  2300. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2301. mutable_unknown_fields()->Clear();
  2302. }
  2303. bool packetc2w_receive_quest_score::MergePartialFromCodedStream(
  2304. ::google::protobuf::io::CodedInputStream* input) {
  2305. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  2306. ::google::protobuf::uint32 tag;
  2307. while ((tag = input->ReadTag()) != 0) {
  2308. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2309. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_receive_quest_score];
  2310. case 1: {
  2311. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2312. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2313. int value;
  2314. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2315. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2316. input, &value)));
  2317. if (::client2world_protocols::e_server_msg_type_IsValid(value)) {
  2318. set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value));
  2319. } else {
  2320. mutable_unknown_fields()->AddVarint(1, value);
  2321. }
  2322. } else {
  2323. goto handle_uninterpreted;
  2324. }
  2325. if (input->ExpectTag(16)) goto parse_questId;
  2326. break;
  2327. }
  2328. // optional int32 questId = 2;
  2329. case 2: {
  2330. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2331. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2332. parse_questId:
  2333. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2334. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2335. input, &questid_)));
  2336. set_has_questid();
  2337. } else {
  2338. goto handle_uninterpreted;
  2339. }
  2340. if (input->ExpectAtEnd()) return true;
  2341. break;
  2342. }
  2343. default: {
  2344. handle_uninterpreted:
  2345. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2346. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  2347. return true;
  2348. }
  2349. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2350. input, tag, mutable_unknown_fields()));
  2351. break;
  2352. }
  2353. }
  2354. }
  2355. return true;
  2356. #undef DO_
  2357. }
  2358. void packetc2w_receive_quest_score::SerializeWithCachedSizes(
  2359. ::google::protobuf::io::CodedOutputStream* output) const {
  2360. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_receive_quest_score];
  2361. if (has_packet_id()) {
  2362. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2363. 1, this->packet_id(), output);
  2364. }
  2365. // optional int32 questId = 2;
  2366. if (has_questid()) {
  2367. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->questid(), output);
  2368. }
  2369. if (!unknown_fields().empty()) {
  2370. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2371. unknown_fields(), output);
  2372. }
  2373. }
  2374. ::google::protobuf::uint8* packetc2w_receive_quest_score::SerializeWithCachedSizesToArray(
  2375. ::google::protobuf::uint8* target) const {
  2376. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_receive_quest_score];
  2377. if (has_packet_id()) {
  2378. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2379. 1, this->packet_id(), target);
  2380. }
  2381. // optional int32 questId = 2;
  2382. if (has_questid()) {
  2383. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->questid(), target);
  2384. }
  2385. if (!unknown_fields().empty()) {
  2386. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2387. unknown_fields(), target);
  2388. }
  2389. return target;
  2390. }
  2391. int packetc2w_receive_quest_score::ByteSize() const {
  2392. int total_size = 0;
  2393. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2394. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_receive_quest_score];
  2395. if (has_packet_id()) {
  2396. total_size += 1 +
  2397. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  2398. }
  2399. // optional int32 questId = 2;
  2400. if (has_questid()) {
  2401. total_size += 1 +
  2402. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2403. this->questid());
  2404. }
  2405. }
  2406. if (!unknown_fields().empty()) {
  2407. total_size +=
  2408. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2409. unknown_fields());
  2410. }
  2411. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2412. _cached_size_ = total_size;
  2413. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2414. return total_size;
  2415. }
  2416. void packetc2w_receive_quest_score::MergeFrom(const ::google::protobuf::Message& from) {
  2417. GOOGLE_CHECK_NE(&from, this);
  2418. const packetc2w_receive_quest_score* source =
  2419. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2w_receive_quest_score*>(
  2420. &from);
  2421. if (source == NULL) {
  2422. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2423. } else {
  2424. MergeFrom(*source);
  2425. }
  2426. }
  2427. void packetc2w_receive_quest_score::MergeFrom(const packetc2w_receive_quest_score& from) {
  2428. GOOGLE_CHECK_NE(&from, this);
  2429. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2430. if (from.has_packet_id()) {
  2431. set_packet_id(from.packet_id());
  2432. }
  2433. if (from.has_questid()) {
  2434. set_questid(from.questid());
  2435. }
  2436. }
  2437. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  2438. }
  2439. void packetc2w_receive_quest_score::CopyFrom(const ::google::protobuf::Message& from) {
  2440. if (&from == this) return;
  2441. Clear();
  2442. MergeFrom(from);
  2443. }
  2444. void packetc2w_receive_quest_score::CopyFrom(const packetc2w_receive_quest_score& from) {
  2445. if (&from == this) return;
  2446. Clear();
  2447. MergeFrom(from);
  2448. }
  2449. bool packetc2w_receive_quest_score::IsInitialized() const {
  2450. return true;
  2451. }
  2452. void packetc2w_receive_quest_score::Swap(packetc2w_receive_quest_score* other) {
  2453. if (other != this) {
  2454. std::swap(packet_id_, other->packet_id_);
  2455. std::swap(questid_, other->questid_);
  2456. std::swap(_has_bits_[0], other->_has_bits_[0]);
  2457. _unknown_fields_.Swap(&other->_unknown_fields_);
  2458. std::swap(_cached_size_, other->_cached_size_);
  2459. }
  2460. }
  2461. ::google::protobuf::Metadata packetc2w_receive_quest_score::GetMetadata() const {
  2462. protobuf_AssignDescriptorsOnce();
  2463. ::google::protobuf::Metadata metadata;
  2464. metadata.descriptor = packetc2w_receive_quest_score_descriptor_;
  2465. metadata.reflection = packetc2w_receive_quest_score_reflection_;
  2466. return metadata;
  2467. }
  2468. // ===================================================================
  2469. #ifndef _MSC_VER
  2470. const int packetw2c_receive_quest_score_result::kPacketIdFieldNumber;
  2471. const int packetw2c_receive_quest_score_result::kQuestIdFieldNumber;
  2472. const int packetw2c_receive_quest_score_result::kResultFieldNumber;
  2473. #endif // !_MSC_VER
  2474. packetw2c_receive_quest_score_result::packetw2c_receive_quest_score_result()
  2475. : ::google::protobuf::Message() {
  2476. SharedCtor();
  2477. }
  2478. void packetw2c_receive_quest_score_result::InitAsDefaultInstance() {
  2479. }
  2480. packetw2c_receive_quest_score_result::packetw2c_receive_quest_score_result(const packetw2c_receive_quest_score_result& from)
  2481. : ::google::protobuf::Message() {
  2482. SharedCtor();
  2483. MergeFrom(from);
  2484. }
  2485. void packetw2c_receive_quest_score_result::SharedCtor() {
  2486. _cached_size_ = 0;
  2487. packet_id_ = 7608;
  2488. questid_ = 0;
  2489. result_ = 0;
  2490. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2491. }
  2492. packetw2c_receive_quest_score_result::~packetw2c_receive_quest_score_result() {
  2493. SharedDtor();
  2494. }
  2495. void packetw2c_receive_quest_score_result::SharedDtor() {
  2496. if (this != default_instance_) {
  2497. }
  2498. }
  2499. void packetw2c_receive_quest_score_result::SetCachedSize(int size) const {
  2500. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2501. _cached_size_ = size;
  2502. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2503. }
  2504. const ::google::protobuf::Descriptor* packetw2c_receive_quest_score_result::descriptor() {
  2505. protobuf_AssignDescriptorsOnce();
  2506. return packetw2c_receive_quest_score_result_descriptor_;
  2507. }
  2508. const packetw2c_receive_quest_score_result& packetw2c_receive_quest_score_result::default_instance() {
  2509. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fplayer_5fquest_2eproto();
  2510. return *default_instance_;
  2511. }
  2512. packetw2c_receive_quest_score_result* packetw2c_receive_quest_score_result::default_instance_ = NULL;
  2513. packetw2c_receive_quest_score_result* packetw2c_receive_quest_score_result::New() const {
  2514. return new packetw2c_receive_quest_score_result;
  2515. }
  2516. void packetw2c_receive_quest_score_result::Clear() {
  2517. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2518. packet_id_ = 7608;
  2519. questid_ = 0;
  2520. result_ = 0;
  2521. }
  2522. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2523. mutable_unknown_fields()->Clear();
  2524. }
  2525. bool packetw2c_receive_quest_score_result::MergePartialFromCodedStream(
  2526. ::google::protobuf::io::CodedInputStream* input) {
  2527. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  2528. ::google::protobuf::uint32 tag;
  2529. while ((tag = input->ReadTag()) != 0) {
  2530. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2531. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_receive_quest_score_result];
  2532. case 1: {
  2533. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2534. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2535. int value;
  2536. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2537. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2538. input, &value)));
  2539. if (::client2world_protocols::e_server_msg_type_IsValid(value)) {
  2540. set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value));
  2541. } else {
  2542. mutable_unknown_fields()->AddVarint(1, value);
  2543. }
  2544. } else {
  2545. goto handle_uninterpreted;
  2546. }
  2547. if (input->ExpectTag(16)) goto parse_questId;
  2548. break;
  2549. }
  2550. // optional int32 questId = 2;
  2551. case 2: {
  2552. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2553. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2554. parse_questId:
  2555. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2556. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2557. input, &questid_)));
  2558. set_has_questid();
  2559. } else {
  2560. goto handle_uninterpreted;
  2561. }
  2562. if (input->ExpectTag(24)) goto parse_result;
  2563. break;
  2564. }
  2565. // optional int32 result = 3;
  2566. case 3: {
  2567. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2568. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2569. parse_result:
  2570. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2571. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2572. input, &result_)));
  2573. set_has_result();
  2574. } else {
  2575. goto handle_uninterpreted;
  2576. }
  2577. if (input->ExpectAtEnd()) return true;
  2578. break;
  2579. }
  2580. default: {
  2581. handle_uninterpreted:
  2582. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2583. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  2584. return true;
  2585. }
  2586. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2587. input, tag, mutable_unknown_fields()));
  2588. break;
  2589. }
  2590. }
  2591. }
  2592. return true;
  2593. #undef DO_
  2594. }
  2595. void packetw2c_receive_quest_score_result::SerializeWithCachedSizes(
  2596. ::google::protobuf::io::CodedOutputStream* output) const {
  2597. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_receive_quest_score_result];
  2598. if (has_packet_id()) {
  2599. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2600. 1, this->packet_id(), output);
  2601. }
  2602. // optional int32 questId = 2;
  2603. if (has_questid()) {
  2604. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->questid(), output);
  2605. }
  2606. // optional int32 result = 3;
  2607. if (has_result()) {
  2608. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->result(), output);
  2609. }
  2610. if (!unknown_fields().empty()) {
  2611. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2612. unknown_fields(), output);
  2613. }
  2614. }
  2615. ::google::protobuf::uint8* packetw2c_receive_quest_score_result::SerializeWithCachedSizesToArray(
  2616. ::google::protobuf::uint8* target) const {
  2617. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_receive_quest_score_result];
  2618. if (has_packet_id()) {
  2619. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2620. 1, this->packet_id(), target);
  2621. }
  2622. // optional int32 questId = 2;
  2623. if (has_questid()) {
  2624. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->questid(), target);
  2625. }
  2626. // optional int32 result = 3;
  2627. if (has_result()) {
  2628. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->result(), target);
  2629. }
  2630. if (!unknown_fields().empty()) {
  2631. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2632. unknown_fields(), target);
  2633. }
  2634. return target;
  2635. }
  2636. int packetw2c_receive_quest_score_result::ByteSize() const {
  2637. int total_size = 0;
  2638. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2639. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_receive_quest_score_result];
  2640. if (has_packet_id()) {
  2641. total_size += 1 +
  2642. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  2643. }
  2644. // optional int32 questId = 2;
  2645. if (has_questid()) {
  2646. total_size += 1 +
  2647. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2648. this->questid());
  2649. }
  2650. // optional int32 result = 3;
  2651. if (has_result()) {
  2652. total_size += 1 +
  2653. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2654. this->result());
  2655. }
  2656. }
  2657. if (!unknown_fields().empty()) {
  2658. total_size +=
  2659. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2660. unknown_fields());
  2661. }
  2662. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2663. _cached_size_ = total_size;
  2664. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2665. return total_size;
  2666. }
  2667. void packetw2c_receive_quest_score_result::MergeFrom(const ::google::protobuf::Message& from) {
  2668. GOOGLE_CHECK_NE(&from, this);
  2669. const packetw2c_receive_quest_score_result* source =
  2670. ::google::protobuf::internal::dynamic_cast_if_available<const packetw2c_receive_quest_score_result*>(
  2671. &from);
  2672. if (source == NULL) {
  2673. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2674. } else {
  2675. MergeFrom(*source);
  2676. }
  2677. }
  2678. void packetw2c_receive_quest_score_result::MergeFrom(const packetw2c_receive_quest_score_result& from) {
  2679. GOOGLE_CHECK_NE(&from, this);
  2680. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2681. if (from.has_packet_id()) {
  2682. set_packet_id(from.packet_id());
  2683. }
  2684. if (from.has_questid()) {
  2685. set_questid(from.questid());
  2686. }
  2687. if (from.has_result()) {
  2688. set_result(from.result());
  2689. }
  2690. }
  2691. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  2692. }
  2693. void packetw2c_receive_quest_score_result::CopyFrom(const ::google::protobuf::Message& from) {
  2694. if (&from == this) return;
  2695. Clear();
  2696. MergeFrom(from);
  2697. }
  2698. void packetw2c_receive_quest_score_result::CopyFrom(const packetw2c_receive_quest_score_result& from) {
  2699. if (&from == this) return;
  2700. Clear();
  2701. MergeFrom(from);
  2702. }
  2703. bool packetw2c_receive_quest_score_result::IsInitialized() const {
  2704. return true;
  2705. }
  2706. void packetw2c_receive_quest_score_result::Swap(packetw2c_receive_quest_score_result* other) {
  2707. if (other != this) {
  2708. std::swap(packet_id_, other->packet_id_);
  2709. std::swap(questid_, other->questid_);
  2710. std::swap(result_, other->result_);
  2711. std::swap(_has_bits_[0], other->_has_bits_[0]);
  2712. _unknown_fields_.Swap(&other->_unknown_fields_);
  2713. std::swap(_cached_size_, other->_cached_size_);
  2714. }
  2715. }
  2716. ::google::protobuf::Metadata packetw2c_receive_quest_score_result::GetMetadata() const {
  2717. protobuf_AssignDescriptorsOnce();
  2718. ::google::protobuf::Metadata metadata;
  2719. metadata.descriptor = packetw2c_receive_quest_score_result_descriptor_;
  2720. metadata.reflection = packetw2c_receive_quest_score_result_reflection_;
  2721. return metadata;
  2722. }
  2723. // ===================================================================
  2724. #ifndef _MSC_VER
  2725. const int packetc2w_receive_active_reward::kPacketIdFieldNumber;
  2726. const int packetc2w_receive_active_reward::kQuestTypeFieldNumber;
  2727. const int packetc2w_receive_active_reward::kRewardIdFieldNumber;
  2728. #endif // !_MSC_VER
  2729. packetc2w_receive_active_reward::packetc2w_receive_active_reward()
  2730. : ::google::protobuf::Message() {
  2731. SharedCtor();
  2732. }
  2733. void packetc2w_receive_active_reward::InitAsDefaultInstance() {
  2734. }
  2735. packetc2w_receive_active_reward::packetc2w_receive_active_reward(const packetc2w_receive_active_reward& from)
  2736. : ::google::protobuf::Message() {
  2737. SharedCtor();
  2738. MergeFrom(from);
  2739. }
  2740. void packetc2w_receive_active_reward::SharedCtor() {
  2741. _cached_size_ = 0;
  2742. packet_id_ = 5102;
  2743. questtype_ = 0;
  2744. rewardid_ = 0;
  2745. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2746. }
  2747. packetc2w_receive_active_reward::~packetc2w_receive_active_reward() {
  2748. SharedDtor();
  2749. }
  2750. void packetc2w_receive_active_reward::SharedDtor() {
  2751. if (this != default_instance_) {
  2752. }
  2753. }
  2754. void packetc2w_receive_active_reward::SetCachedSize(int size) const {
  2755. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2756. _cached_size_ = size;
  2757. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2758. }
  2759. const ::google::protobuf::Descriptor* packetc2w_receive_active_reward::descriptor() {
  2760. protobuf_AssignDescriptorsOnce();
  2761. return packetc2w_receive_active_reward_descriptor_;
  2762. }
  2763. const packetc2w_receive_active_reward& packetc2w_receive_active_reward::default_instance() {
  2764. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fplayer_5fquest_2eproto();
  2765. return *default_instance_;
  2766. }
  2767. packetc2w_receive_active_reward* packetc2w_receive_active_reward::default_instance_ = NULL;
  2768. packetc2w_receive_active_reward* packetc2w_receive_active_reward::New() const {
  2769. return new packetc2w_receive_active_reward;
  2770. }
  2771. void packetc2w_receive_active_reward::Clear() {
  2772. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2773. packet_id_ = 5102;
  2774. questtype_ = 0;
  2775. rewardid_ = 0;
  2776. }
  2777. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2778. mutable_unknown_fields()->Clear();
  2779. }
  2780. bool packetc2w_receive_active_reward::MergePartialFromCodedStream(
  2781. ::google::protobuf::io::CodedInputStream* input) {
  2782. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  2783. ::google::protobuf::uint32 tag;
  2784. while ((tag = input->ReadTag()) != 0) {
  2785. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2786. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_receive_active_reward];
  2787. case 1: {
  2788. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2789. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2790. int value;
  2791. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2792. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2793. input, &value)));
  2794. if (::client2world_protocols::e_server_msg_type_IsValid(value)) {
  2795. set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value));
  2796. } else {
  2797. mutable_unknown_fields()->AddVarint(1, value);
  2798. }
  2799. } else {
  2800. goto handle_uninterpreted;
  2801. }
  2802. if (input->ExpectTag(16)) goto parse_questType;
  2803. break;
  2804. }
  2805. // optional int32 questType = 2;
  2806. case 2: {
  2807. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2808. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2809. parse_questType:
  2810. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2811. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2812. input, &questtype_)));
  2813. set_has_questtype();
  2814. } else {
  2815. goto handle_uninterpreted;
  2816. }
  2817. if (input->ExpectTag(24)) goto parse_rewardId;
  2818. break;
  2819. }
  2820. // optional int32 rewardId = 3;
  2821. case 3: {
  2822. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2823. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2824. parse_rewardId:
  2825. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2826. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2827. input, &rewardid_)));
  2828. set_has_rewardid();
  2829. } else {
  2830. goto handle_uninterpreted;
  2831. }
  2832. if (input->ExpectAtEnd()) return true;
  2833. break;
  2834. }
  2835. default: {
  2836. handle_uninterpreted:
  2837. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2838. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  2839. return true;
  2840. }
  2841. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2842. input, tag, mutable_unknown_fields()));
  2843. break;
  2844. }
  2845. }
  2846. }
  2847. return true;
  2848. #undef DO_
  2849. }
  2850. void packetc2w_receive_active_reward::SerializeWithCachedSizes(
  2851. ::google::protobuf::io::CodedOutputStream* output) const {
  2852. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_receive_active_reward];
  2853. if (has_packet_id()) {
  2854. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2855. 1, this->packet_id(), output);
  2856. }
  2857. // optional int32 questType = 2;
  2858. if (has_questtype()) {
  2859. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->questtype(), output);
  2860. }
  2861. // optional int32 rewardId = 3;
  2862. if (has_rewardid()) {
  2863. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->rewardid(), output);
  2864. }
  2865. if (!unknown_fields().empty()) {
  2866. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2867. unknown_fields(), output);
  2868. }
  2869. }
  2870. ::google::protobuf::uint8* packetc2w_receive_active_reward::SerializeWithCachedSizesToArray(
  2871. ::google::protobuf::uint8* target) const {
  2872. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_receive_active_reward];
  2873. if (has_packet_id()) {
  2874. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2875. 1, this->packet_id(), target);
  2876. }
  2877. // optional int32 questType = 2;
  2878. if (has_questtype()) {
  2879. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->questtype(), target);
  2880. }
  2881. // optional int32 rewardId = 3;
  2882. if (has_rewardid()) {
  2883. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->rewardid(), target);
  2884. }
  2885. if (!unknown_fields().empty()) {
  2886. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2887. unknown_fields(), target);
  2888. }
  2889. return target;
  2890. }
  2891. int packetc2w_receive_active_reward::ByteSize() const {
  2892. int total_size = 0;
  2893. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2894. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_receive_active_reward];
  2895. if (has_packet_id()) {
  2896. total_size += 1 +
  2897. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  2898. }
  2899. // optional int32 questType = 2;
  2900. if (has_questtype()) {
  2901. total_size += 1 +
  2902. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2903. this->questtype());
  2904. }
  2905. // optional int32 rewardId = 3;
  2906. if (has_rewardid()) {
  2907. total_size += 1 +
  2908. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2909. this->rewardid());
  2910. }
  2911. }
  2912. if (!unknown_fields().empty()) {
  2913. total_size +=
  2914. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2915. unknown_fields());
  2916. }
  2917. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2918. _cached_size_ = total_size;
  2919. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2920. return total_size;
  2921. }
  2922. void packetc2w_receive_active_reward::MergeFrom(const ::google::protobuf::Message& from) {
  2923. GOOGLE_CHECK_NE(&from, this);
  2924. const packetc2w_receive_active_reward* source =
  2925. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2w_receive_active_reward*>(
  2926. &from);
  2927. if (source == NULL) {
  2928. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2929. } else {
  2930. MergeFrom(*source);
  2931. }
  2932. }
  2933. void packetc2w_receive_active_reward::MergeFrom(const packetc2w_receive_active_reward& from) {
  2934. GOOGLE_CHECK_NE(&from, this);
  2935. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2936. if (from.has_packet_id()) {
  2937. set_packet_id(from.packet_id());
  2938. }
  2939. if (from.has_questtype()) {
  2940. set_questtype(from.questtype());
  2941. }
  2942. if (from.has_rewardid()) {
  2943. set_rewardid(from.rewardid());
  2944. }
  2945. }
  2946. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  2947. }
  2948. void packetc2w_receive_active_reward::CopyFrom(const ::google::protobuf::Message& from) {
  2949. if (&from == this) return;
  2950. Clear();
  2951. MergeFrom(from);
  2952. }
  2953. void packetc2w_receive_active_reward::CopyFrom(const packetc2w_receive_active_reward& from) {
  2954. if (&from == this) return;
  2955. Clear();
  2956. MergeFrom(from);
  2957. }
  2958. bool packetc2w_receive_active_reward::IsInitialized() const {
  2959. return true;
  2960. }
  2961. void packetc2w_receive_active_reward::Swap(packetc2w_receive_active_reward* other) {
  2962. if (other != this) {
  2963. std::swap(packet_id_, other->packet_id_);
  2964. std::swap(questtype_, other->questtype_);
  2965. std::swap(rewardid_, other->rewardid_);
  2966. std::swap(_has_bits_[0], other->_has_bits_[0]);
  2967. _unknown_fields_.Swap(&other->_unknown_fields_);
  2968. std::swap(_cached_size_, other->_cached_size_);
  2969. }
  2970. }
  2971. ::google::protobuf::Metadata packetc2w_receive_active_reward::GetMetadata() const {
  2972. protobuf_AssignDescriptorsOnce();
  2973. ::google::protobuf::Metadata metadata;
  2974. metadata.descriptor = packetc2w_receive_active_reward_descriptor_;
  2975. metadata.reflection = packetc2w_receive_active_reward_reflection_;
  2976. return metadata;
  2977. }
  2978. // ===================================================================
  2979. #ifndef _MSC_VER
  2980. const int packetw2c_receive_active_reward_result::kPacketIdFieldNumber;
  2981. const int packetw2c_receive_active_reward_result::kQuestTypeFieldNumber;
  2982. const int packetw2c_receive_active_reward_result::kRewardIdFieldNumber;
  2983. const int packetw2c_receive_active_reward_result::kResultFieldNumber;
  2984. #endif // !_MSC_VER
  2985. packetw2c_receive_active_reward_result::packetw2c_receive_active_reward_result()
  2986. : ::google::protobuf::Message() {
  2987. SharedCtor();
  2988. }
  2989. void packetw2c_receive_active_reward_result::InitAsDefaultInstance() {
  2990. }
  2991. packetw2c_receive_active_reward_result::packetw2c_receive_active_reward_result(const packetw2c_receive_active_reward_result& from)
  2992. : ::google::protobuf::Message() {
  2993. SharedCtor();
  2994. MergeFrom(from);
  2995. }
  2996. void packetw2c_receive_active_reward_result::SharedCtor() {
  2997. _cached_size_ = 0;
  2998. packet_id_ = 7609;
  2999. questtype_ = 0;
  3000. rewardid_ = 0;
  3001. result_ = 0;
  3002. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3003. }
  3004. packetw2c_receive_active_reward_result::~packetw2c_receive_active_reward_result() {
  3005. SharedDtor();
  3006. }
  3007. void packetw2c_receive_active_reward_result::SharedDtor() {
  3008. if (this != default_instance_) {
  3009. }
  3010. }
  3011. void packetw2c_receive_active_reward_result::SetCachedSize(int size) const {
  3012. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3013. _cached_size_ = size;
  3014. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3015. }
  3016. const ::google::protobuf::Descriptor* packetw2c_receive_active_reward_result::descriptor() {
  3017. protobuf_AssignDescriptorsOnce();
  3018. return packetw2c_receive_active_reward_result_descriptor_;
  3019. }
  3020. const packetw2c_receive_active_reward_result& packetw2c_receive_active_reward_result::default_instance() {
  3021. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fplayer_5fquest_2eproto();
  3022. return *default_instance_;
  3023. }
  3024. packetw2c_receive_active_reward_result* packetw2c_receive_active_reward_result::default_instance_ = NULL;
  3025. packetw2c_receive_active_reward_result* packetw2c_receive_active_reward_result::New() const {
  3026. return new packetw2c_receive_active_reward_result;
  3027. }
  3028. void packetw2c_receive_active_reward_result::Clear() {
  3029. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3030. packet_id_ = 7609;
  3031. questtype_ = 0;
  3032. rewardid_ = 0;
  3033. result_ = 0;
  3034. }
  3035. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3036. mutable_unknown_fields()->Clear();
  3037. }
  3038. bool packetw2c_receive_active_reward_result::MergePartialFromCodedStream(
  3039. ::google::protobuf::io::CodedInputStream* input) {
  3040. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  3041. ::google::protobuf::uint32 tag;
  3042. while ((tag = input->ReadTag()) != 0) {
  3043. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  3044. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_receive_active_reward_result];
  3045. case 1: {
  3046. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3047. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3048. int value;
  3049. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3050. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3051. input, &value)));
  3052. if (::client2world_protocols::e_server_msg_type_IsValid(value)) {
  3053. set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value));
  3054. } else {
  3055. mutable_unknown_fields()->AddVarint(1, value);
  3056. }
  3057. } else {
  3058. goto handle_uninterpreted;
  3059. }
  3060. if (input->ExpectTag(16)) goto parse_questType;
  3061. break;
  3062. }
  3063. // optional int32 questType = 2;
  3064. case 2: {
  3065. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3066. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3067. parse_questType:
  3068. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3069. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3070. input, &questtype_)));
  3071. set_has_questtype();
  3072. } else {
  3073. goto handle_uninterpreted;
  3074. }
  3075. if (input->ExpectTag(24)) goto parse_rewardId;
  3076. break;
  3077. }
  3078. // optional int32 rewardId = 3;
  3079. case 3: {
  3080. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3081. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3082. parse_rewardId:
  3083. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3084. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3085. input, &rewardid_)));
  3086. set_has_rewardid();
  3087. } else {
  3088. goto handle_uninterpreted;
  3089. }
  3090. if (input->ExpectTag(32)) goto parse_result;
  3091. break;
  3092. }
  3093. // optional int32 result = 4;
  3094. case 4: {
  3095. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3096. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3097. parse_result:
  3098. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3099. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3100. input, &result_)));
  3101. set_has_result();
  3102. } else {
  3103. goto handle_uninterpreted;
  3104. }
  3105. if (input->ExpectAtEnd()) return true;
  3106. break;
  3107. }
  3108. default: {
  3109. handle_uninterpreted:
  3110. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3111. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  3112. return true;
  3113. }
  3114. DO_(::google::protobuf::internal::WireFormat::SkipField(
  3115. input, tag, mutable_unknown_fields()));
  3116. break;
  3117. }
  3118. }
  3119. }
  3120. return true;
  3121. #undef DO_
  3122. }
  3123. void packetw2c_receive_active_reward_result::SerializeWithCachedSizes(
  3124. ::google::protobuf::io::CodedOutputStream* output) const {
  3125. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_receive_active_reward_result];
  3126. if (has_packet_id()) {
  3127. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3128. 1, this->packet_id(), output);
  3129. }
  3130. // optional int32 questType = 2;
  3131. if (has_questtype()) {
  3132. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->questtype(), output);
  3133. }
  3134. // optional int32 rewardId = 3;
  3135. if (has_rewardid()) {
  3136. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->rewardid(), output);
  3137. }
  3138. // optional int32 result = 4;
  3139. if (has_result()) {
  3140. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->result(), output);
  3141. }
  3142. if (!unknown_fields().empty()) {
  3143. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3144. unknown_fields(), output);
  3145. }
  3146. }
  3147. ::google::protobuf::uint8* packetw2c_receive_active_reward_result::SerializeWithCachedSizesToArray(
  3148. ::google::protobuf::uint8* target) const {
  3149. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_receive_active_reward_result];
  3150. if (has_packet_id()) {
  3151. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3152. 1, this->packet_id(), target);
  3153. }
  3154. // optional int32 questType = 2;
  3155. if (has_questtype()) {
  3156. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->questtype(), target);
  3157. }
  3158. // optional int32 rewardId = 3;
  3159. if (has_rewardid()) {
  3160. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->rewardid(), target);
  3161. }
  3162. // optional int32 result = 4;
  3163. if (has_result()) {
  3164. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->result(), target);
  3165. }
  3166. if (!unknown_fields().empty()) {
  3167. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3168. unknown_fields(), target);
  3169. }
  3170. return target;
  3171. }
  3172. int packetw2c_receive_active_reward_result::ByteSize() const {
  3173. int total_size = 0;
  3174. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3175. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_receive_active_reward_result];
  3176. if (has_packet_id()) {
  3177. total_size += 1 +
  3178. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  3179. }
  3180. // optional int32 questType = 2;
  3181. if (has_questtype()) {
  3182. total_size += 1 +
  3183. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3184. this->questtype());
  3185. }
  3186. // optional int32 rewardId = 3;
  3187. if (has_rewardid()) {
  3188. total_size += 1 +
  3189. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3190. this->rewardid());
  3191. }
  3192. // optional int32 result = 4;
  3193. if (has_result()) {
  3194. total_size += 1 +
  3195. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3196. this->result());
  3197. }
  3198. }
  3199. if (!unknown_fields().empty()) {
  3200. total_size +=
  3201. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3202. unknown_fields());
  3203. }
  3204. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3205. _cached_size_ = total_size;
  3206. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3207. return total_size;
  3208. }
  3209. void packetw2c_receive_active_reward_result::MergeFrom(const ::google::protobuf::Message& from) {
  3210. GOOGLE_CHECK_NE(&from, this);
  3211. const packetw2c_receive_active_reward_result* source =
  3212. ::google::protobuf::internal::dynamic_cast_if_available<const packetw2c_receive_active_reward_result*>(
  3213. &from);
  3214. if (source == NULL) {
  3215. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3216. } else {
  3217. MergeFrom(*source);
  3218. }
  3219. }
  3220. void packetw2c_receive_active_reward_result::MergeFrom(const packetw2c_receive_active_reward_result& from) {
  3221. GOOGLE_CHECK_NE(&from, this);
  3222. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3223. if (from.has_packet_id()) {
  3224. set_packet_id(from.packet_id());
  3225. }
  3226. if (from.has_questtype()) {
  3227. set_questtype(from.questtype());
  3228. }
  3229. if (from.has_rewardid()) {
  3230. set_rewardid(from.rewardid());
  3231. }
  3232. if (from.has_result()) {
  3233. set_result(from.result());
  3234. }
  3235. }
  3236. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  3237. }
  3238. void packetw2c_receive_active_reward_result::CopyFrom(const ::google::protobuf::Message& from) {
  3239. if (&from == this) return;
  3240. Clear();
  3241. MergeFrom(from);
  3242. }
  3243. void packetw2c_receive_active_reward_result::CopyFrom(const packetw2c_receive_active_reward_result& from) {
  3244. if (&from == this) return;
  3245. Clear();
  3246. MergeFrom(from);
  3247. }
  3248. bool packetw2c_receive_active_reward_result::IsInitialized() const {
  3249. return true;
  3250. }
  3251. void packetw2c_receive_active_reward_result::Swap(packetw2c_receive_active_reward_result* other) {
  3252. if (other != this) {
  3253. std::swap(packet_id_, other->packet_id_);
  3254. std::swap(questtype_, other->questtype_);
  3255. std::swap(rewardid_, other->rewardid_);
  3256. std::swap(result_, other->result_);
  3257. std::swap(_has_bits_[0], other->_has_bits_[0]);
  3258. _unknown_fields_.Swap(&other->_unknown_fields_);
  3259. std::swap(_cached_size_, other->_cached_size_);
  3260. }
  3261. }
  3262. ::google::protobuf::Metadata packetw2c_receive_active_reward_result::GetMetadata() const {
  3263. protobuf_AssignDescriptorsOnce();
  3264. ::google::protobuf::Metadata metadata;
  3265. metadata.descriptor = packetw2c_receive_active_reward_result_descriptor_;
  3266. metadata.reflection = packetw2c_receive_active_reward_result_reflection_;
  3267. return metadata;
  3268. }
  3269. // ===================================================================
  3270. #ifndef _MSC_VER
  3271. const int packetw2c_quest_notify::kPacketIdFieldNumber;
  3272. const int packetw2c_quest_notify::kTypeFieldNumber;
  3273. const int packetw2c_quest_notify::kQuestIdFieldNumber;
  3274. const int packetw2c_quest_notify::kCountFieldNumber;
  3275. const int packetw2c_quest_notify::kDayFieldNumber;
  3276. #endif // !_MSC_VER
  3277. packetw2c_quest_notify::packetw2c_quest_notify()
  3278. : ::google::protobuf::Message() {
  3279. SharedCtor();
  3280. }
  3281. void packetw2c_quest_notify::InitAsDefaultInstance() {
  3282. }
  3283. packetw2c_quest_notify::packetw2c_quest_notify(const packetw2c_quest_notify& from)
  3284. : ::google::protobuf::Message() {
  3285. SharedCtor();
  3286. MergeFrom(from);
  3287. }
  3288. void packetw2c_quest_notify::SharedCtor() {
  3289. _cached_size_ = 0;
  3290. packet_id_ = 7613;
  3291. type_ = 0;
  3292. questid_ = 0;
  3293. count_ = 0;
  3294. day_ = 0;
  3295. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3296. }
  3297. packetw2c_quest_notify::~packetw2c_quest_notify() {
  3298. SharedDtor();
  3299. }
  3300. void packetw2c_quest_notify::SharedDtor() {
  3301. if (this != default_instance_) {
  3302. }
  3303. }
  3304. void packetw2c_quest_notify::SetCachedSize(int size) const {
  3305. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3306. _cached_size_ = size;
  3307. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3308. }
  3309. const ::google::protobuf::Descriptor* packetw2c_quest_notify::descriptor() {
  3310. protobuf_AssignDescriptorsOnce();
  3311. return packetw2c_quest_notify_descriptor_;
  3312. }
  3313. const packetw2c_quest_notify& packetw2c_quest_notify::default_instance() {
  3314. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fplayer_5fquest_2eproto();
  3315. return *default_instance_;
  3316. }
  3317. packetw2c_quest_notify* packetw2c_quest_notify::default_instance_ = NULL;
  3318. packetw2c_quest_notify* packetw2c_quest_notify::New() const {
  3319. return new packetw2c_quest_notify;
  3320. }
  3321. void packetw2c_quest_notify::Clear() {
  3322. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3323. packet_id_ = 7613;
  3324. type_ = 0;
  3325. questid_ = 0;
  3326. count_ = 0;
  3327. day_ = 0;
  3328. }
  3329. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3330. mutable_unknown_fields()->Clear();
  3331. }
  3332. bool packetw2c_quest_notify::MergePartialFromCodedStream(
  3333. ::google::protobuf::io::CodedInputStream* input) {
  3334. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  3335. ::google::protobuf::uint32 tag;
  3336. while ((tag = input->ReadTag()) != 0) {
  3337. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  3338. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_quest_notify];
  3339. case 1: {
  3340. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3341. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3342. int value;
  3343. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3344. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3345. input, &value)));
  3346. if (::client2world_protocols::e_server_msg_type_IsValid(value)) {
  3347. set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value));
  3348. } else {
  3349. mutable_unknown_fields()->AddVarint(1, value);
  3350. }
  3351. } else {
  3352. goto handle_uninterpreted;
  3353. }
  3354. if (input->ExpectTag(16)) goto parse_type;
  3355. break;
  3356. }
  3357. // optional int32 type = 2;
  3358. case 2: {
  3359. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3360. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3361. parse_type:
  3362. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3363. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3364. input, &type_)));
  3365. set_has_type();
  3366. } else {
  3367. goto handle_uninterpreted;
  3368. }
  3369. if (input->ExpectTag(24)) goto parse_questId;
  3370. break;
  3371. }
  3372. // optional int32 questId = 3;
  3373. case 3: {
  3374. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3375. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3376. parse_questId:
  3377. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3378. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3379. input, &questid_)));
  3380. set_has_questid();
  3381. } else {
  3382. goto handle_uninterpreted;
  3383. }
  3384. if (input->ExpectTag(32)) goto parse_count;
  3385. break;
  3386. }
  3387. // optional int32 count = 4;
  3388. case 4: {
  3389. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3390. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3391. parse_count:
  3392. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3393. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3394. input, &count_)));
  3395. set_has_count();
  3396. } else {
  3397. goto handle_uninterpreted;
  3398. }
  3399. if (input->ExpectTag(40)) goto parse_day;
  3400. break;
  3401. }
  3402. // optional int32 day = 5;
  3403. case 5: {
  3404. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3405. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3406. parse_day:
  3407. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3408. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3409. input, &day_)));
  3410. set_has_day();
  3411. } else {
  3412. goto handle_uninterpreted;
  3413. }
  3414. if (input->ExpectAtEnd()) return true;
  3415. break;
  3416. }
  3417. default: {
  3418. handle_uninterpreted:
  3419. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3420. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  3421. return true;
  3422. }
  3423. DO_(::google::protobuf::internal::WireFormat::SkipField(
  3424. input, tag, mutable_unknown_fields()));
  3425. break;
  3426. }
  3427. }
  3428. }
  3429. return true;
  3430. #undef DO_
  3431. }
  3432. void packetw2c_quest_notify::SerializeWithCachedSizes(
  3433. ::google::protobuf::io::CodedOutputStream* output) const {
  3434. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_quest_notify];
  3435. if (has_packet_id()) {
  3436. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3437. 1, this->packet_id(), output);
  3438. }
  3439. // optional int32 type = 2;
  3440. if (has_type()) {
  3441. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->type(), output);
  3442. }
  3443. // optional int32 questId = 3;
  3444. if (has_questid()) {
  3445. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->questid(), output);
  3446. }
  3447. // optional int32 count = 4;
  3448. if (has_count()) {
  3449. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->count(), output);
  3450. }
  3451. // optional int32 day = 5;
  3452. if (has_day()) {
  3453. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->day(), output);
  3454. }
  3455. if (!unknown_fields().empty()) {
  3456. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3457. unknown_fields(), output);
  3458. }
  3459. }
  3460. ::google::protobuf::uint8* packetw2c_quest_notify::SerializeWithCachedSizesToArray(
  3461. ::google::protobuf::uint8* target) const {
  3462. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_quest_notify];
  3463. if (has_packet_id()) {
  3464. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3465. 1, this->packet_id(), target);
  3466. }
  3467. // optional int32 type = 2;
  3468. if (has_type()) {
  3469. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->type(), target);
  3470. }
  3471. // optional int32 questId = 3;
  3472. if (has_questid()) {
  3473. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->questid(), target);
  3474. }
  3475. // optional int32 count = 4;
  3476. if (has_count()) {
  3477. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->count(), target);
  3478. }
  3479. // optional int32 day = 5;
  3480. if (has_day()) {
  3481. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->day(), target);
  3482. }
  3483. if (!unknown_fields().empty()) {
  3484. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3485. unknown_fields(), target);
  3486. }
  3487. return target;
  3488. }
  3489. int packetw2c_quest_notify::ByteSize() const {
  3490. int total_size = 0;
  3491. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3492. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_quest_notify];
  3493. if (has_packet_id()) {
  3494. total_size += 1 +
  3495. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  3496. }
  3497. // optional int32 type = 2;
  3498. if (has_type()) {
  3499. total_size += 1 +
  3500. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3501. this->type());
  3502. }
  3503. // optional int32 questId = 3;
  3504. if (has_questid()) {
  3505. total_size += 1 +
  3506. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3507. this->questid());
  3508. }
  3509. // optional int32 count = 4;
  3510. if (has_count()) {
  3511. total_size += 1 +
  3512. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3513. this->count());
  3514. }
  3515. // optional int32 day = 5;
  3516. if (has_day()) {
  3517. total_size += 1 +
  3518. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3519. this->day());
  3520. }
  3521. }
  3522. if (!unknown_fields().empty()) {
  3523. total_size +=
  3524. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3525. unknown_fields());
  3526. }
  3527. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3528. _cached_size_ = total_size;
  3529. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3530. return total_size;
  3531. }
  3532. void packetw2c_quest_notify::MergeFrom(const ::google::protobuf::Message& from) {
  3533. GOOGLE_CHECK_NE(&from, this);
  3534. const packetw2c_quest_notify* source =
  3535. ::google::protobuf::internal::dynamic_cast_if_available<const packetw2c_quest_notify*>(
  3536. &from);
  3537. if (source == NULL) {
  3538. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3539. } else {
  3540. MergeFrom(*source);
  3541. }
  3542. }
  3543. void packetw2c_quest_notify::MergeFrom(const packetw2c_quest_notify& from) {
  3544. GOOGLE_CHECK_NE(&from, this);
  3545. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3546. if (from.has_packet_id()) {
  3547. set_packet_id(from.packet_id());
  3548. }
  3549. if (from.has_type()) {
  3550. set_type(from.type());
  3551. }
  3552. if (from.has_questid()) {
  3553. set_questid(from.questid());
  3554. }
  3555. if (from.has_count()) {
  3556. set_count(from.count());
  3557. }
  3558. if (from.has_day()) {
  3559. set_day(from.day());
  3560. }
  3561. }
  3562. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  3563. }
  3564. void packetw2c_quest_notify::CopyFrom(const ::google::protobuf::Message& from) {
  3565. if (&from == this) return;
  3566. Clear();
  3567. MergeFrom(from);
  3568. }
  3569. void packetw2c_quest_notify::CopyFrom(const packetw2c_quest_notify& from) {
  3570. if (&from == this) return;
  3571. Clear();
  3572. MergeFrom(from);
  3573. }
  3574. bool packetw2c_quest_notify::IsInitialized() const {
  3575. return true;
  3576. }
  3577. void packetw2c_quest_notify::Swap(packetw2c_quest_notify* other) {
  3578. if (other != this) {
  3579. std::swap(packet_id_, other->packet_id_);
  3580. std::swap(type_, other->type_);
  3581. std::swap(questid_, other->questid_);
  3582. std::swap(count_, other->count_);
  3583. std::swap(day_, other->day_);
  3584. std::swap(_has_bits_[0], other->_has_bits_[0]);
  3585. _unknown_fields_.Swap(&other->_unknown_fields_);
  3586. std::swap(_cached_size_, other->_cached_size_);
  3587. }
  3588. }
  3589. ::google::protobuf::Metadata packetw2c_quest_notify::GetMetadata() const {
  3590. protobuf_AssignDescriptorsOnce();
  3591. ::google::protobuf::Metadata metadata;
  3592. metadata.descriptor = packetw2c_quest_notify_descriptor_;
  3593. metadata.reflection = packetw2c_quest_notify_reflection_;
  3594. return metadata;
  3595. }
  3596. // @@protoc_insertion_point(namespace_scope)
  3597. } // namespace client2world_protocols
  3598. // @@protoc_insertion_point(global_scope)